Lines Matching refs:device
25 CPU temperature of the device.
91 def __init__(self, interval, device):
93 self._device = device
94 self._temp_paths = device.shell(
96 self._product = device.get_prop('ro.build.product')
170 def disable_dropbox(device):
172 device.root()
173 device.wait()
174 device.shell(['rm', '-rf', '/system/data/dropbox'])
175 original_dropbox_max_files = device.shell(
177 device.shell(['settings', 'put', 'global', 'dropbox_max_files', '0'])
181 def restore_dropbox(device, original_dropbox_max_files):
183 device.root()
184 device.wait()
186 device.shell(['settings', 'delete', 'global', 'dropbox_max_files'])
188 device.shell(['settings', 'put', 'global', 'dropbox_max_files',
192 def init_perf(device, output, record_list, tags):
193 device.wait()
194 build_type = device.get_prop('ro.build.type')
198 original_dropbox_max_files = disable_dropbox(device)
206 restore_dropbox(device, original_dropbox_max_files)
212 def check_dm_verity_settings(device):
213 device.wait()
215 verity_mode = device.get_prop('partition.%s.verified' % partition)
243 def filter_event_tags(tags, device):
244 """Drop unknown tags not listed in device's event-log-tags file."""
245 device.wait()
247 for l in device.shell(
357 def do_iteration(device, interval_adjuster, event_tags_re, end_tag):
359 device.wait()
361 device.reboot()
362 print 'Rebooted the device'
366 device.wait()
408 help='Adb device serial number.')
412 'the device has finished booting unless --end-tag is '
421 def install_apks(device, apk_dir):
424 device.install(apk, replace=True)
432 device = adb.get_device(args.serial)
435 device.wait()
437 device.get_prop('ro.build.flavor'),
438 device.get_prop('ro.build.version.incremental'))
439 check_dm_verity_settings(device)
442 install_apks(device, args.apk_dir)
445 event_tags = filter_event_tags(read_event_tags(args.tags), device)
450 init_perf(device, args.output, record_list, event_tags)
451 interval_adjuster = IntervalAdjuster(args.interval, device)
457 device, interval_adjuster, event_tags_re, end_tag)