mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
Update with new service features.
This commit is contained in:
parent
2379acae5d
commit
a915aea9ea
9 changed files with 440 additions and 109 deletions
|
@ -94,6 +94,30 @@ module.exports = function(options) {
|
|||
.on(wire.DeviceLogcatEntryMessage, function(channel, message, data) {
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.AirplaneModeEvent, function(channel, message, data) {
|
||||
dbapi.setDeviceAirplaneMode(message.serial, message.enabled)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.BatteryEvent, function(channel, message, data) {
|
||||
dbapi.setDeviceBattery(message.serial, message)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.BrowserPackageEvent, function(channel, message, data) {
|
||||
dbapi.setDeviceBrowser(message.serial, message)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.ConnectivityEvent, function(channel, message, data) {
|
||||
dbapi.setDeviceConnectivity(message.serial, message)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.PhoneStateEvent, function(channel, message, data) {
|
||||
dbapi.setDevicePhoneState(message.serial, message)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.RotationEvent, function(channel, message, data) {
|
||||
dbapi.setDeviceRotation(message.serial, message.rotation)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.handler())
|
||||
|
||||
lifecycle.observe(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue