Home
last modified time | relevance | path

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

1234

/external/libmojo/third_party/catapult/devil/devil/android/perf/
Dperf_control.py19 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 …]
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)
/external/chromium-trace/catapult/devil/devil/android/
Dbattery_utils.py198 self._device = device
237 return int(self._device.ReadFile(
267 send_data = int(self._device.ReadFile(network_data_path + 'tcp_snd'))
274 recv_data = int(self._device.ReadFile(network_data_path + 'tcp_rcv'))
303 dumpsys_output = self._device.RunShellCommand(
354 for line in self._device.RunShellCommand(
403 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'ac', '0'],
405 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'usb', '0'],
423 or not bool('UPDATES STOPPED' in self._device.RunShellCommand(
426 self._device.RunShellCommand(['dumpsys', 'battery', 'reset'],
[all …]
Dapp_ui.py40 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)
Dflag_changer.py74 self._device = device
83 if self._device.PathExists(cmdline_path_legacy):
86 self._device.RemovePath(cmdline_path_legacy, as_root=True)
99 if self._device.PathExists(self._cmdline_path):
100 command_line = self._device.ReadFile(self._cmdline_path).strip()
201 self._device.WriteFile(self._cmdline_path, command_line)
203 self._device.RemovePath(self._cmdline_path, force=True)
Dsettings.py124 self._device = device
141 for row in self._device.RunShellCommand(
150 query_row = self._device.RunShellCommand(
163 self._device.RunShellCommand(
169 self._device.RunShellCommand(
176 self._device.RunShellCommand(
/external/libmojo/third_party/catapult/devil/devil/android/
Dbattery_utils.py154 self._device = device
193 return int(self._device.ReadFile(
223 send_data = int(self._device.ReadFile(network_data_path + 'tcp_snd'))
230 recv_data = int(self._device.ReadFile(network_data_path + 'tcp_rcv'))
259 dumpsys_output = self._device.RunShellCommand(
310 for line in self._device.RunShellCommand(
359 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'ac', '0'],
361 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'usb', '0'],
379 or not bool('UPDATES STOPPED' in self._device.RunShellCommand(
382 self._device.RunShellCommand(['dumpsys', 'battery', 'reset'],
[all …]
Dapp_ui.py40 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)
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), (
/external/chromium-trace/catapult/devil/devil/android/perf/
Dperf_control.py23 self._device = device
26 for filename in self._device.ListDirectory(self._CPU_PATH, as_root=True)
32 self._have_mpdecision = self._device.FileExists('/system/bin/mpdecision')
42 self._device.EnableRoot()
51 product_model = self._device.product_model
73 if not self._device.HasRoot():
79 if not self._device.HasRoot():
81 product_model = self._device.product_model
113 output = self._device.RunShellCommand(
176 self._device.WriteFile('/sys/class/kgsl/kgsl-3d0/max_gpuclk',
[all …]
Dthermal_throttle.py20 self._device = device
36 tempdata = self._device.ReadFile(OmapThrottlingDetector.OMAP_TEMP_FILE)
76 self._device = device
99 serial_number = str(self._device)
100 log = self._device.RunShellCommand(
127 dumpsys_log = self._device.RunShellCommand(
Dcache_control.py10 self._device = device
14 self._device.RunShellCommand(['sync'], check_return=True, as_root=True)
15 self._device.WriteFile(CacheControl._DROP_CACHES, '3', as_root=True)
/external/mesa3d/src/intel/vulkan/
Danv_device.c749 VkDevice _device, in anv_GetDeviceProcAddr() argument
752 ANV_FROM_HANDLE(anv_device, device, _device); in anv_GetDeviceProcAddr()
1007 VkDevice _device, in anv_DestroyDevice() argument
1010 ANV_FROM_HANDLE(anv_device, device, _device); in anv_DestroyDevice()
1117 VkDevice _device, in anv_GetDeviceQueue() argument
1122 ANV_FROM_HANDLE(anv_device, device, _device); in anv_GetDeviceQueue()
1225 VkDevice _device) in anv_DeviceWaitIdle() argument
1227 ANV_FROM_HANDLE(anv_device, device, _device); in anv_DeviceWaitIdle()
1253 VkDevice _device, in anv_AllocateMemory() argument
1258 ANV_FROM_HANDLE(anv_device, device, _device); in anv_AllocateMemory()
[all …]
Danv_descriptor_set.c39 VkDevice _device, in anv_CreateDescriptorSetLayout() argument
44 ANV_FROM_HANDLE(anv_device, device, _device); in anv_CreateDescriptorSetLayout()
196 VkDevice _device, in anv_DestroyDescriptorSetLayout() argument
200 ANV_FROM_HANDLE(anv_device, device, _device); in anv_DestroyDescriptorSetLayout()
224 VkDevice _device, in anv_CreatePipelineLayout() argument
229 ANV_FROM_HANDLE(anv_device, device, _device); in anv_CreatePipelineLayout()
281 VkDevice _device, in anv_DestroyPipelineLayout() argument
285 ANV_FROM_HANDLE(anv_device, device, _device); in anv_DestroyPipelineLayout()
309 VkDevice _device, in anv_CreateDescriptorPool() argument
314 ANV_FROM_HANDLE(anv_device, device, _device); in anv_CreateDescriptorPool()
[all …]
Danv_query.c33 VkDevice _device, in anv_CreateQueryPool() argument
38 ANV_FROM_HANDLE(anv_device, device, _device); in anv_CreateQueryPool()
83 VkDevice _device, in anv_DestroyQueryPool() argument
87 ANV_FROM_HANDLE(anv_device, device, _device); in anv_DestroyQueryPool()
99 VkDevice _device, in anv_GetQueryPoolResults() argument
108 ANV_FROM_HANDLE(anv_device, device, _device); in anv_GetQueryPoolResults()
/external/chromium-trace/catapult/systrace/profile_chrome/
Dchrome_startup_tracing_agent.py21 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)
Dperf_tracing_agent.py51 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
128 self._perf_instance = _PerfProfiler(self._device,
179 kallsyms = android_profiling_helper.CreateSymFs(self._device,
Dchrome_tracing_agent.py24 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)
Dddms_tracing_agent.py21 self._device = device
30 for line in self._device.RunShellCommand(
44 self._device.RunShellCommand(cmd, check_return=True)
49 self._device.RunShellCommand(
65 self._device.PullFile(self._output_file, host_file)
/external/mesa3d/src/amd/vulkan/
Dradv_device.c836 VkDevice _device, in radv_DestroyDevice() argument
839 RADV_FROM_HANDLE(radv_device, device, _device); in radv_DestroyDevice()
924 VkDevice _device, in radv_GetDeviceQueue() argument
929 RADV_FROM_HANDLE(radv_device, device, _device); in radv_GetDeviceQueue()
1043 VkDevice _device) in radv_DeviceWaitIdle() argument
1045 RADV_FROM_HANDLE(radv_device, device, _device); in radv_DeviceWaitIdle()
1086 VkDevice _device, in radv_AllocateMemory() argument
1091 RADV_FROM_HANDLE(radv_device, device, _device); in radv_AllocateMemory()
1144 VkDevice _device, in radv_FreeMemory() argument
1148 RADV_FROM_HANDLE(radv_device, device, _device); in radv_FreeMemory()
[all …]
Dradv_descriptor_set.c35 VkDevice _device, in radv_CreateDescriptorSetLayout() argument
40 RADV_FROM_HANDLE(radv_device, device, _device); in radv_CreateDescriptorSetLayout()
157 VkDevice _device, in radv_DestroyDescriptorSetLayout() argument
161 RADV_FROM_HANDLE(radv_device, device, _device); in radv_DestroyDescriptorSetLayout()
176 VkDevice _device, in radv_CreatePipelineLayout() argument
181 RADV_FROM_HANDLE(radv_device, device, _device); in radv_CreatePipelineLayout()
229 VkDevice _device, in radv_DestroyPipelineLayout() argument
233 RADV_FROM_HANDLE(radv_device, device, _device); in radv_DestroyPipelineLayout()
399 VkDevice _device, in radv_CreateDescriptorPool() argument
404 RADV_FROM_HANDLE(radv_device, device, _device); in radv_CreateDescriptorPool()
[all …]
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dshared_prefs.py200 self._device = device
211 device=str(self._device))
250 if self._device.FileExists(self.path):
252 self._device.ReadFile(self.path, as_root=True))
271 self._device.RunShellCommand(
274 self._device.WriteFile(self.path, str(self), as_root=True)
279 if self._device.build_version_sdk >= version_codes.MARSHMALLOW:
284 self._device.RunShellCommand(
288 self._device.KillAll(self.package, exact=True, as_root=True, quiet=True)
411 for line in self._device.RunShellCommand(['ls', '-Z', '/data/data/'],
/external/chromium-trace/catapult/devil/devil/android/tools/
Dvideo_recorder.py45 self._device = device
59 return bool(self._device.GetPids('screenrecord'))
78 for line in self._device.adb.IterShell(
88 if not self._device.KillAll('screenrecord', signum=device_signal.SIGINT,
106 str(self._device),
109 self._device.PullFile(self._device_file, host_file_name)
110 self._device.RemovePath(self._device_file, force=True)
/external/libmojo/third_party/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)

1234