mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 777331 DeviceManagerSUT support for info uptimemillis. r=wlach
This commit is contained in:
parent
41d22962cf
commit
bd62c86f66
@ -437,6 +437,8 @@ class DeviceManager:
|
||||
os - name of the os
|
||||
id - unique id of the device
|
||||
uptime - uptime of the device
|
||||
uptimemillis - uptime of the device in milliseconds (NOT supported on all
|
||||
platforms)
|
||||
systime - system time of the device
|
||||
screen - screen resolution
|
||||
memory - memory stats
|
||||
|
@ -663,6 +663,8 @@ class DeviceManagerADB(DeviceManager):
|
||||
# disk - total, free, available bytes on disk
|
||||
# power - power status (charge, battery temp)
|
||||
# all - all of them - or call it with no parameters to get all the information
|
||||
### Note that uptimemillis is NOT supported, as there is no way to get this
|
||||
### data from the shell.
|
||||
# returns:
|
||||
# success: dict of info strings by directive name
|
||||
# failure: {}
|
||||
|
@ -917,6 +917,7 @@ class DeviceManagerSUT(DeviceManager):
|
||||
# os - name of the os
|
||||
# id - unique id of the device
|
||||
# uptime - uptime of the device
|
||||
# uptimemillis - uptime of the device in milliseconds
|
||||
# systime - system time of the device
|
||||
# screen - screen resolution
|
||||
# rotation - rotation of the device (in degrees)
|
||||
@ -933,8 +934,8 @@ class DeviceManagerSUT(DeviceManager):
|
||||
result = {}
|
||||
collapseSpaces = re.compile(' +')
|
||||
|
||||
directives = ['os','id','uptime','systime','screen','rotation','memory','process',
|
||||
'disk','power']
|
||||
directives = ['os','id','uptime','uptimemillis','systime','screen',
|
||||
'rotation','memory','process','disk','power']
|
||||
if (directive in directives):
|
||||
directives = [directive]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user