/external/chromium-trace/catapult/devil/devil/android/perf/ |
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)
|
perf_control.py | 19 self._device = device 22 for filename in self._device.ListDirectory(self._CPU_PATH, as_root=True) 27 self._have_mpdecision = self._device.FileExists('/system/bin/mpdecision') 32 self._device.EnableRoot() 41 product_model = self._device.product_model 63 if not self._device.HasRoot(): 69 if not self._device.HasRoot(): 71 product_model = self._device.product_model 103 output = self._device.RunShellCommand( 125 self._device.WriteFile('/sys/class/kgsl/kgsl-3d0/max_gpuclk' [all...] |
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( 125 dumpsys_log = self._device.RunShellCommand('dumpsys battery')
|
perf_control_devicetest.py | 23 self._device = device_utils.DeviceUtils(self.serial) 26 perf = perf_control.PerfControl(self._device)
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/forwarders/ |
android_forwarder.py | 21 self._device = device 25 return AndroidForwarder(self._device, port_pair) 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 [(port_pair.remote_port, port_pair.local_port)], self._device) 71 self._port_pair.remote_port, self._device)
|
/external/v8/build/android/pylib/local/ |
local_test_server_spawner.py | 14 self._device = device 29 self._device.WriteFile( 30 '%s/net-test-server-ports' % self._device.GetExternalStoragePath(), 33 [(self.port, self.port)], self._device, self._tool) 44 forwarder.Forwarder.UnmapDevicePort(self.port, self._device)
|
/external/autotest/client/site_tests/bluetooth_IDCheck/ |
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/v8/build/android/pylib/ |
content_settings.py | 16 self._device = device 35 for row in self._device.RunShellCommand( 53 return self._device.RunShellCommand( 59 self._device.RunShellCommand( 66 self._device.RunShellCommand( 75 self._device.RunShellCommand(
|
valgrind_tools.py | 40 self._device = device 72 self._device.EnableRoot() 78 SetChromeTimeoutScale(self._device, self.GetTimeoutScale()) 81 SetChromeTimeoutScale(self._device, None) 96 self._device = device 117 self._device.RunShellCommand('chmod 777 /data/local/tmp') 118 self._device.RunShellCommand('setenforce 0') 120 self._device.RunShellCommand( 122 SetChromeTimeoutScale(self._device, self.GetTimeoutScale()) 127 self._device.RunShellCommand('setprop %s ""' % (prop,) [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/ |
android_platform_backend.py | 85 self._device = device_utils.DeviceUtils(device.device_id) 87 if not self._device.HasRoot(): 89 self._device.EnableRoot() 91 logging.warning('Unable to root %s', str(self._device)) 92 self._battery = battery_utils.BatteryUtils(self._device) 95 self._perf_tests_setup = perf_control.PerfControl(self._device) 96 self._thermal_throttle = thermal_throttle.ThermalThrottle(self._device) 99 self._device.HasRoot() or self._device.NeedsSU()) 103 android_temperature_monitor.AndroidTemperatureMonitor(self._device), [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/ |
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) 108 self._device.WriteFile(self.command_line_file, contents, as_root=True) 111 self._device.RunShellCommand(['rm', '-f', self.command_line_file],
|
/external/chromium-trace/catapult/systrace/profile_chrome/ |
chrome_startup_tracing_agent.py | 21 self._device = device 24 self._logcat_monitor = self._device.GetLogcatMonitor() 29 self._device, self._package_info.cmdline_file) 38 self._device.ForceStop(self._package_info.package) 40 self._device.EnableRoot() 41 cache_control.CacheControl(self._device).DropRamCaches() 54 self._device.StartActivity(launch_intent, blocking=True) 83 self._device.PullFile(trace_file, host_file)
|
ddms_tracing_agent.py | 21 self._device = device 30 for line in self._device.RunShellCommand('am --help'): 43 self._device.RunShellCommand(cmd) 48 self._device.RunShellCommand('am profile stop %s' % self._package) 63 self._device.PullFile(self._output_file, host_file)
|
perf_tracing_agent.py | 51 self._device = device 53 self._device.adb, prefix='perf_output') 58 device_param = (['-s', str(self._device)] if str(self._device) else []) 64 self._perf_control = perf_control.PerfControl(self._device) 71 self._device.KillAll('perf', signum=signal.SIGINT) 81 if not self._device.FileExists(self._output_file.name): 86 self._device.PullFile(self._output_file.name, perf_profile) 99 self._device = device 127 self._perf_instance = _PerfProfiler(self._device, [all...] |
chrome_tracing_agent.py | 24 self._device = device 27 self._logcat_monitor = self._device.GetLogcatMonitor() 71 self._device.BroadcastIntent(intent.Intent( 76 self._device.EnableRoot() 77 self._device.SetProp(_HEAP_PROFILE_MMAP_PROPERTY, 1) 98 self._device.BroadcastIntent(intent.Intent( 104 self._device.SetProp(_HEAP_PROFILE_MMAP_PROPERTY, 0) 117 self._device.PullFile(trace_file, host_file)
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/power_monitor/ |
android_temperature_monitor.py | 24 self._device = device 45 contents = self._device.ReadFile(_TEMPERATURE_FILE)
|
/external/autotest/client/cros/cellular/mbim_compliance/ |
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,
|
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
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/app/ |
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/devil/devil/android/ |
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), (
|
app_ui.py | 40 self._device = device 73 point = (float(self._device.pixel_density) / 160) * point 77 self._device.RunShellCommand(['input', 'tap', x, y], check_return=True) 110 return type(self)(self._device, self._xml_node[key], package=self._package) 145 return type(self)(self._device, node, package=self._package) 175 self._device = device 199 with device_temp_file.DeviceTempFile(self._device.adb) as dtemp: 200 self._device.RunShellCommand(['uiautomator', 'dump', dtemp.name], 203 self._device.ReadFile(dtemp.name, force_pull=True)) 204 return _UiNode(self._device, xml_node, package=self._package [all...] |
settings.py | 122 self._device = device 141 for row in self._device.RunShellCommand( 159 return self._device.RunShellCommand( 165 self._device.RunShellCommand( 172 self._device.RunShellCommand( 181 self._device.RunShellCommand(
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/ |
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/autotest/client/site_tests/hardware_DiskSize/ |
hardware_DiskSize.py | 32 path = os.path.join("/sys/class/block/", self._device, 76 self._device = os.path.basename(root_dev)
|
/external/chromium-trace/catapult/devil/devil/android/tools/ |
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)
|