Searched refs:_device (Results 1 – 25 of 46) sorted by relevance
12
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/ |
D | android_platform_backend.py | 78 self._device = device_utils.DeviceUtils(device.device_id) 80 if not self._device.HasRoot(): 82 self._device.EnableRoot() 84 logging.warning('Unable to root %s', str(self._device)) 85 self._battery = battery_utils.BatteryUtils(self._device) 88 self._perf_tests_setup = perf_control.PerfControl(self._device) 89 self._thermal_throttle = thermal_throttle.ThermalThrottle(self._device) 93 self._device.HasRoot() or self._device.NeedsSU()) 100 android_temperature_monitor.AndroidTemperatureMonitor(self._device), 101 monsoon_power_monitor.MonsoonPowerMonitor(self._device, self), [all …]
|
/external/chromium-trace/catapult/devil/devil/android/ |
D | battery_utils.py | 141 self._device = device 180 return int(self._device.ReadFile( 210 send_data = int(self._device.ReadFile(network_data_path + 'tcp_snd')) 217 recv_data = int(self._device.ReadFile(network_data_path + 'tcp_rcv')) 246 dumpsys_output = self._device.RunShellCommand( 297 for line in self._device.RunShellCommand( 346 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'ac', '0'], 348 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'usb', '0'], 366 or not bool('UPDATES STOPPED' in self._device.RunShellCommand( 369 self._device.RunShellCommand(['dumpsys', 'battery', 'reset'], [all …]
|
D | app_ui.py | 39 self._device = device 72 point = (float(self._device.pixel_density) / 160) * point 76 self._device.RunShellCommand(['input', 'tap', x, y], check_return=True) 88 return type(self)(self._device, self._xml_node[key], package=self._package) 123 return type(self)(self._device, node, package=self._package) 153 self._device = device 177 with device_temp_file.DeviceTempFile(self._device.adb) as dtemp: 178 self._device.RunShellCommand(['uiautomator', 'dump', dtemp.name], 181 self._device.ReadFile(dtemp.name, force_pull=True)) 182 return _UiNode(self._device, xml_node, package=self._package)
|
D | flag_changer.py | 25 self._device = device 36 if self._device.PathExists(self._cmdline_file): 38 stored_flags = self._device.ReadFile(self._cmdline_file).strip() 123 self._device.WriteFile( 125 file_contents = self._device.ReadFile( 130 self._device.RunShellCommand('rm ' + self._cmdline_file, 132 assert not self._device.FileExists(self._cmdline_file), (
|
D | fastboot_utils.py | 65 self._device = device 93 self._device.EnableRoot() 94 self._device.adb.Reboot(to_bootloader=True) 113 self._device.WaitUntilFullyBooted(timeout=_FASTBOOT_REBOOT_TIMEOUT)
|
/external/chromium-trace/catapult/devil/devil/android/perf/ |
D | perf_control.py | 17 self._device = device 19 self._cpu_files = self._device.RunShellCommand( 24 self._have_mpdecision = self._device.FileExists('/system/bin/mpdecision') 29 self._device.EnableRoot() 38 product_model = self._device.product_model 60 if not self._device.HasRoot(): 66 if not self._device.HasRoot(): 68 product_model = self._device.product_model 100 output = self._device.RunShellCommand( 122 self._device.WriteFile('/sys/class/kgsl/kgsl-3d0/max_gpuclk', [all …]
|
D | thermal_throttle.py | 18 self._device = device 34 tempdata = self._device.ReadFile(OmapThrottlingDetector.OMAP_TEMP_FILE) 74 self._device = device 97 serial_number = str(self._device) 98 log = self._device.RunShellCommand('dmesg -c') 124 dumpsys_log = self._device.RunShellCommand('dumpsys battery')
|
D | cache_control.py | 10 self._device = device 14 self._device.RunShellCommand('sync', as_root=True) 15 self._device.WriteFile(CacheControl._DROP_CACHES, '3', as_root=True)
|
D | surface_stats_collector.py | 22 self._device = device 107 results = self._device.RunShellCommand( 112 results = self._device.RunShellCommand('ps | grep surfaceflinger') 158 results = self._device.RunShellCommand(
|
/external/chromium-trace/catapult/systrace/profile_chrome/ |
D | chrome_startup_controller.py | 17 self._device = device 20 self._logcat_monitor = self._device.GetLogcatMonitor() 25 self._device, self._package_info.cmdline_file) 34 self._device.ForceStop(self._package_info.package) 36 self._device.EnableRoot() 37 cache_control.CacheControl(self._device).DropRamCaches() 50 self._device.StartActivity(launch_intent, blocking=True) 71 self._device.PullFile(trace_file, host_file)
|
D | perf_controller.py | 48 self._device = device 50 self._device.adb, prefix='perf_output') 55 device_param = (['-s', str(self._device)] if str(self._device) else []) 61 self._perf_control = perf_control.PerfControl(self._device) 68 self._device.KillAll('perf', signum=signal.SIGINT) 78 if not self._device.FileExists(self._output_file.name): 83 self._device.PullFile(self._output_file.name, perf_profile) 96 self._device = device 122 self._perf_instance = _PerfProfiler(self._device, 164 kallsyms = android_profiling_helper.CreateSymFs(self._device,
|
D | chrome_controller.py | 22 self._device = device 26 self._logcat_monitor = self._device.GetLogcatMonitor() 69 self._device.BroadcastIntent(intent.Intent( 74 self._device.EnableRoot() 75 self._device.SetProp(_HEAP_PROFILE_MMAP_PROPERTY, 1) 94 self._device.BroadcastIntent(intent.Intent( 100 self._device.SetProp(_HEAP_PROFILE_MMAP_PROPERTY, 0) 109 self._device.PullFile(trace_file, host_file)
|
D | ddms_controller.py | 18 self._device = device 27 for line in self._device.RunShellCommand('am --help'): 39 self._device.RunShellCommand(cmd) 42 self._device.RunShellCommand('am profile stop %s' % self._package) 53 self._device.PullFile(self._output_file, host_file)
|
D | systrace_controller.py | 30 self._device = device 69 device_param = (['-s', str(self._device)] if str(self._device) else [])
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/forwarders/ |
D | android_forwarder.py | 21 self._device = device 25 return AndroidForwarder(self._device, port_pairs) 30 for line in self._device.adb.ForwardList().splitlines(): 37 for line in self._device.ReadFile('/proc/net/tcp', as_root=True, 58 self._device = device 60 for p in port_pairs if p], self._device) 74 port_pair.remote_port, self._device)
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/ |
D | android_command_line_backend.py | 60 self._device = device 67 return self._backend_settings.GetCommandLineFile(self._device.IsUserBuild()) 101 if self._device.PathExists(self.command_line_file): 102 return self._device.ReadFile(self.command_line_file, as_root=True) 107 self._device.WriteFile(self.command_line_file, contents, as_root=True) 110 self._device.RunShellCommand(['rm', '-f', self.command_line_file],
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/ |
D | tcpdump_profiler.py | 28 self._device = device 30 self._device.RunShellCommand('mkdir -p ' + 33 ['adb', '-s', self._device.adb.GetDeviceSerial(), 39 tcpdump_pid = self._device.GetPids('tcpdump') 49 self._device.RunShellCommand('kill -term ' + tcpdump_pid) 54 self._device.PullFile(self._DEVICE_DUMP_FILE, host_dump)
|
/external/chromium-trace/catapult/devil/devil/android/tools/ |
D | video_recorder.py | 43 self._device = device 57 return bool(self._device.GetPids('screenrecord')) 76 for line in self._device.adb.IterShell( 86 if not self._device.KillAll('screenrecord', signum=device_signal.SIGINT, 104 str(self._device), 107 self._device.PullFile(self._device_file, host_file_name) 108 self._device.RunShellCommand('rm -f "%s"' % self._device_file)
|
/external/autotest/client/cros/cellular/mbim_compliance/ |
D | mbim_device_context.py | 34 self._device = self._find_device(id_vendor, id_product) 36 self._id_vendor = self._device.idVendor 37 self._id_product = self._device.idProduct 208 return self._device
|
D | mbim_data_channel.py | 46 self._device = device 64 written = self._device.write(endpoint=self._bulk_out_endpoint_address, 93 ntb = self._device.read(endpoint=self._bulk_in_endpoint_address,
|
D | mbim_channel_endpoint.py | 73 self._device = device 146 in_data = self._device.read( 184 response = self._device.ctrl_transfer( 204 actual_written = self._device.ctrl_transfer(
|
/external/autotest/client/site_tests/bluetooth_IDCheck/ |
D | bluetooth_IDCheck.py | 33 if self._device in self._BLUETOOTH_3_BOARDS: 47 self._device = utils.get_board() 48 if self._device in self._REFERENCE_ONLY:
|
/external/chromium-trace/catapult/devil/devil/android/sdk/ |
D | shared_prefs.py | 196 self._device = device 207 device=str(self._device)) 246 if self._device.FileExists(self.path): 248 self._device.ReadFile(self.path, as_root=True)) 267 self._device.RunShellCommand( 270 self._device.WriteFile(self.path, str(self), as_root=True) 271 self._device.KillAll(self.package, exact=True, as_root=True, quiet=True)
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/app/ |
D | android_app_unittest.py | 21 self._device = android_device.GetDevice(self._options) 24 platform = platform_module.GetPlatformForDevice(self._device, self._options) 31 if self._device is None:
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/power_monitor/ |
D | android_temperature_monitor.py | 24 self._device = device 45 contents = self._device.ReadFile(_TEMPERATURE_FILE)
|
12