Bug 777331 DeviceManagerSUT support for info uptimemillis. r=wlach

This commit is contained in:
Mark Cote 2012-08-02 14:21:00 -04:00
parent 41d22962cf
commit bd62c86f66
3 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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: {}

View File

@ -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]