Home
last modified time | relevance | path

Searched refs:_device (Results 1 – 25 of 46) sorted by relevance

12

/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
Dandroid_platform_backend.py78 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/
Dbattery_utils.py141 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 …]
Dapp_ui.py39 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)
Dflag_changer.py25 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), (
Dfastboot_utils.py65 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/
Dperf_control.py17 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 …]
Dthermal_throttle.py18 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')
Dcache_control.py10 self._device = device
14 self._device.RunShellCommand('sync', as_root=True)
15 self._device.WriteFile(CacheControl._DROP_CACHES, '3', as_root=True)
Dsurface_stats_collector.py22 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/
Dchrome_startup_controller.py17 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)
Dperf_controller.py48 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,
Dchrome_controller.py22 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)
Dddms_controller.py18 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)
Dsystrace_controller.py30 self._device = device
69 device_param = (['-s', str(self._device)] if str(self._device) else [])
/external/chromium-trace/catapult/telemetry/telemetry/internal/forwarders/
Dandroid_forwarder.py21 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/
Dandroid_command_line_backend.py60 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/
Dtcpdump_profiler.py28 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/
Dvideo_recorder.py43 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/
Dmbim_device_context.py34 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
Dmbim_data_channel.py46 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,
Dmbim_channel_endpoint.py73 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/
Dbluetooth_IDCheck.py33 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/
Dshared_prefs.py196 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/
Dandroid_app_unittest.py21 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/
Dandroid_temperature_monitor.py24 self._device = device
45 contents = self._device.ReadFile(_TEMPERATURE_FILE)

12