Home
last modified time | relevance | path

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

12345

/external/chromium-trace/catapult/devil/devil/android/tools/
Dsystem_app_devicetest.py35 self._device = device_utils.DeviceUtils(self.serial)
36 self._original_paths = self._device.GetApplicationPaths(self.PACKAGE)
42 self._device.PullFile(o, h, timeout=60)
46 final_paths = self._device.GetApplicationPaths(self.PACKAGE)
49 self._device.Uninstall(self.PACKAGE)
53 with system_app.EnableSystemAppModification(self._device):
56 with device_temp_file.DeviceTempFile(self._device.adb) as tmp:
57 self._device.adb.Push(cached_apk, tmp.name)
58 self._device.RunShellCommand(
75 self.PACKAGE, str(self._device)))
[all …]
/external/mesa3d/src/freedreno/vulkan/
Dtu_wsi_display.c250 tu_DisplayPowerControlEXT(VkDevice _device, in tu_DisplayPowerControlEXT() argument
254 TU_FROM_HANDLE(tu_device, device, _device); in tu_DisplayPowerControlEXT()
256 return wsi_display_power_control(_device, in tu_DisplayPowerControlEXT()
263 tu_RegisterDeviceEventEXT(VkDevice _device, in tu_RegisterDeviceEventEXT() argument
268 TU_FROM_HANDLE(tu_device, device, _device); in tu_RegisterDeviceEventEXT()
271 ret = tu_CreateFence(_device, &(VkFenceCreateInfo) {}, allocator, _fence); in tu_RegisterDeviceEventEXT()
279 ret = wsi_register_device_event(_device, in tu_RegisterDeviceEventEXT()
292 tu_DestroyFence(_device, *_fence, allocator); in tu_RegisterDeviceEventEXT()
298 tu_RegisterDisplayEventEXT(VkDevice _device, in tu_RegisterDisplayEventEXT() argument
304 TU_FROM_HANDLE(tu_device, device, _device); in tu_RegisterDisplayEventEXT()
[all …]
Dtu_device.c1155 tu_DestroyDevice(VkDevice _device, const VkAllocationCallbacks *pAllocator) in tu_DestroyDevice() argument
1157 TU_FROM_HANDLE(tu_device, device, _device); in tu_DestroyDevice()
1268 tu_GetDeviceQueue2(VkDevice _device, in tu_GetDeviceQueue2() argument
1272 TU_FROM_HANDLE(tu_device, device, _device); in tu_GetDeviceQueue2()
1319 tu_DeviceWaitIdle(VkDevice _device) in tu_DeviceWaitIdle() argument
1321 TU_FROM_HANDLE(tu_device, device, _device); in tu_DeviceWaitIdle()
1402 tu_GetDeviceProcAddr(VkDevice _device, const char *pName) in tu_GetDeviceProcAddr() argument
1404 TU_FROM_HANDLE(tu_device, device, _device); in tu_GetDeviceProcAddr()
1412 tu_AllocateMemory(VkDevice _device, in tu_AllocateMemory() argument
1417 TU_FROM_HANDLE(tu_device, device, _device); in tu_AllocateMemory()
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Dflag_changer.py64 self._device = device
77 if not self._device.HasRoot():
81 if self._device.PathExists(alternate_cmdline_path):
84 self._device.RemovePath(alternate_cmdline_path, as_root=True)
97 if self._device.PathExists(self._cmdline_path):
98 command_line = self._device.ReadFile(
190 if not self._device.HasRoot():
192 if (self._device.build_version_sdk >= version_codes.NOUGAT and
193 self._device.GetEnforce()):
194 self._device.SetEnforce(enabled=False)
[all …]
Dbattery_utils.py199 self._device = device
238 return int(self._device.ReadFile(
266 dumpsys_output = self._device.RunShellCommand(
317 for line in self._device.RunShellCommand(
345 GetBatteryInfoHelper, self._device)
371 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'ac', '0'],
373 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'usb', '0'],
391 or not bool('UPDATES STOPPED' in self._device.RunShellCommand(
394 self._device.RunShellCommand(['dumpsys', 'battery', 'reset'],
421 if self._device.build_version_sdk < version_codes.LOLLIPOP:
[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)
Dcpu_temperature.py78 self._device = device
79 self._perf_control = perf_control.PerfControl(self._device)
86 self._device.build_product)
101 self._device.FileExists(f)
124 temp_return = self._device.ReadFile(temp_path)
151 return self._device
/external/mesa3d/src/amd/vulkan/
Dradv_wsi_display.c257 radv_DisplayPowerControlEXT(VkDevice _device, in radv_DisplayPowerControlEXT() argument
261 RADV_FROM_HANDLE(radv_device, device, _device); in radv_DisplayPowerControlEXT()
263 return wsi_display_power_control(_device, in radv_DisplayPowerControlEXT()
270 radv_RegisterDeviceEventEXT(VkDevice _device, in radv_RegisterDeviceEventEXT() argument
275 RADV_FROM_HANDLE(radv_device, device, _device); in radv_RegisterDeviceEventEXT()
279 ret = radv_CreateFence(_device, &(VkFenceCreateInfo) { in radv_RegisterDeviceEventEXT()
296 ret = wsi_register_device_event(_device, in radv_RegisterDeviceEventEXT()
306 radv_DestroyFence(_device, *_fence, allocator); in radv_RegisterDeviceEventEXT()
312 radv_RegisterDisplayEventEXT(VkDevice _device, in radv_RegisterDisplayEventEXT() argument
318 RADV_FROM_HANDLE(radv_device, device, _device); in radv_RegisterDisplayEventEXT()
[all …]
Dradv_wsi.c39 radv_wsi_set_memory_ownership(VkDevice _device, in radv_wsi_set_memory_ownership() argument
43 RADV_FROM_HANDLE(radv_device, device, _device); in radv_wsi_set_memory_ownership()
180 VkDevice _device, in radv_CreateSwapchainKHR() argument
185 RADV_FROM_HANDLE(radv_device, device, _device); in radv_CreateSwapchainKHR()
200 VkDevice _device, in radv_DestroySwapchainKHR() argument
204 RADV_FROM_HANDLE(radv_device, device, _device); in radv_DestroySwapchainKHR()
212 wsi_common_destroy_swapchain(_device, swapchain, alloc); in radv_DestroySwapchainKHR()
247 VkDevice _device, in radv_AcquireNextImage2KHR() argument
251 RADV_FROM_HANDLE(radv_device, device, _device); in radv_AcquireNextImage2KHR()
257 _device, in radv_AcquireNextImage2KHR()
/external/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_image.c30 lvp_image_create(VkDevice _device, in lvp_image_create() argument
35 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_image_create()
105 lvp_DestroyImage(VkDevice _device, VkImage _image, in lvp_DestroyImage() argument
108 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_DestroyImage()
119 lvp_CreateImageView(VkDevice _device, in lvp_CreateImageView() argument
124 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_CreateImageView()
148 lvp_DestroyImageView(VkDevice _device, VkImageView _iview, in lvp_DestroyImageView() argument
151 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_DestroyImageView()
163 VkDevice _device, in lvp_GetImageSubresourceLayout() argument
168 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_GetImageSubresourceLayout()
[all …]
Dlvp_device.c731 VkDevice _device, in lvp_GetDeviceProcAddr() argument
734 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_GetDeviceProcAddr()
906 VkDevice _device, in lvp_DestroyDevice() argument
909 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_DestroyDevice()
980 VkDevice _device, in lvp_GetDeviceQueue2() argument
984 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_GetDeviceQueue2()
1006 VkDevice _device, in lvp_GetDeviceQueue() argument
1017 lvp_GetDeviceQueue2(_device, &info, pQueue); in lvp_GetDeviceQueue()
1084 VkDevice _device) in lvp_DeviceWaitIdle() argument
1086 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_DeviceWaitIdle()
[all …]
Dlvp_pipeline_cache.c27 VkDevice _device, in lvp_CreatePipelineCache() argument
32 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_CreatePipelineCache()
58 VkDevice _device, in lvp_DestroyPipelineCache() argument
62 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_DestroyPipelineCache()
73 VkDevice _device, in lvp_GetPipelineCacheData() argument
97 VkDevice _device, in lvp_MergePipelineCaches() argument
Dlvp_descriptor_set.c29 VkDevice _device, in lvp_CreateDescriptorSetLayout() argument
34 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_CreateDescriptorSetLayout()
160 VkDevice _device, in lvp_DestroyDescriptorSetLayout() argument
164 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_DestroyDescriptorSetLayout()
174 VkDevice _device, in lvp_CreatePipelineLayout() argument
179 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_CreatePipelineLayout()
212 VkDevice _device, in lvp_DestroyPipelineLayout() argument
216 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_DestroyPipelineLayout()
271 VkDevice _device, in lvp_AllocateDescriptorSets() argument
275 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_AllocateDescriptorSets()
[all …]
Dlvp_query.c28 VkDevice _device, in lvp_CreateQueryPool() argument
33 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_CreateQueryPool()
70 VkDevice _device, in lvp_DestroyQueryPool() argument
74 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_DestroyQueryPool()
88 VkDevice _device, in lvp_GetQueryPoolResults() argument
97 LVP_FROM_HANDLE(lvp_device, device, _device); in lvp_GetQueryPoolResults()
101 lvp_DeviceWaitIdle(_device); in lvp_GetQueryPoolResults()
/external/mesa3d/src/intel/vulkan/
Danv_wsi_display.c237 anv_DisplayPowerControlEXT(VkDevice _device, in anv_DisplayPowerControlEXT() argument
241 ANV_FROM_HANDLE(anv_device, device, _device); in anv_DisplayPowerControlEXT()
244 _device, &device->physical->wsi_device, in anv_DisplayPowerControlEXT()
249 anv_RegisterDeviceEventEXT(VkDevice _device, in anv_RegisterDeviceEventEXT() argument
254 ANV_FROM_HANDLE(anv_device, device, _device); in anv_RegisterDeviceEventEXT()
265 ret = wsi_register_device_event(_device, in anv_RegisterDeviceEventEXT()
279 anv_RegisterDisplayEventEXT(VkDevice _device, in anv_RegisterDisplayEventEXT() argument
285 ANV_FROM_HANDLE(anv_device, device, _device); in anv_RegisterDisplayEventEXT()
297 _device, &device->physical->wsi_device, in anv_RegisterDisplayEventEXT()
308 anv_GetSwapchainCounterEXT(VkDevice _device, in anv_GetSwapchainCounterEXT() argument
[all …]
Danv_wsi.c37 anv_wsi_signal_semaphore_for_memory(VkDevice _device, in anv_wsi_signal_semaphore_for_memory() argument
41 ANV_FROM_HANDLE(anv_device, device, _device); in anv_wsi_signal_semaphore_for_memory()
58 anv_wsi_signal_fence_for_memory(VkDevice _device, in anv_wsi_signal_fence_for_memory() argument
62 ANV_FROM_HANDLE(anv_device, device, _device); in anv_wsi_signal_fence_for_memory()
211 VkDevice _device, in anv_CreateSwapchainKHR() argument
216 ANV_FROM_HANDLE(anv_device, device, _device); in anv_CreateSwapchainKHR()
225 return wsi_common_create_swapchain(wsi_device, _device, in anv_CreateSwapchainKHR()
230 VkDevice _device, in anv_DestroySwapchainKHR() argument
234 ANV_FROM_HANDLE(anv_device, device, _device); in anv_DestroySwapchainKHR()
242 wsi_common_destroy_swapchain(_device, swapchain, alloc); in anv_DestroySwapchainKHR()
[all …]
Danv_perf.c124 VkDevice _device, in anv_InitializePerformanceApiINTEL() argument
127 ANV_FROM_HANDLE(anv_device, device, _device); in anv_InitializePerformanceApiINTEL()
137 VkDevice _device, in anv_GetPerformanceParameterINTEL() argument
141 ANV_FROM_HANDLE(anv_device, device, _device); in anv_GetPerformanceParameterINTEL()
178 VkDevice _device, in anv_AcquirePerformanceConfigurationINTEL() argument
182 ANV_FROM_HANDLE(anv_device, device, _device); in anv_AcquirePerformanceConfigurationINTEL()
220 VkDevice _device, in anv_ReleasePerformanceConfigurationINTEL() argument
223 ANV_FROM_HANDLE(anv_device, device, _device); in anv_ReleasePerformanceConfigurationINTEL()
261 VkDevice _device) in anv_UninitializePerformanceApiINTEL() argument
263 ANV_FROM_HANDLE(anv_device, device, _device); in anv_UninitializePerformanceApiINTEL()
[all …]
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/
Datrace_process_dump.py30 self._device = None
36 self._device = device_utils.DeviceUtils(config.device_serial_number)
44 self._device.RunShellCommand(cmd, check_return=True, as_root=True)
49 self._device.RunShellCommand(
53 self._device.RunShellCommand(['test', '-f', HELPER_DUMP_JSON],
55 self._dump = self._device.ReadFile(HELPER_DUMP_JSON, force_pull=True)
56 self._device.RunShellCommand(['rm', HELPER_DUMP_JSON],
75 with self._device.adb.PersistentShell(self._device.serial) as shell:
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dshared_prefs.py205 self._device = device
216 if self._device.build_version_sdk < version_codes.NOUGAT:
228 device=str(self._device))
267 if self._device.FileExists(self.path):
269 self._device.ReadFile(self.path, as_root=True))
293 self._device.RunShellCommand(
296 self._device.WriteFile(self.path, str(self), as_root=True)
301 if self._device.build_version_sdk >= version_codes.MARSHMALLOW:
302 security_context = self._device.GetSecurityContextForPackage(self.package,
308 self._device.ChangeSecurityContext(security_context, paths)
[all …]
/external/chromium-trace/catapult/devil/devil/android/perf/
Dperf_control.py133 self._device = device
135 for file_name in self._device.ListDirectory(self._CPU_PATH, as_root=True):
142 self._have_mpdecision = self._device.FileExists('/system/bin/mpdecision')
179 self._device.EnableRoot()
183 mode_definitions = _GetPerfModeDefinitions(self._device.product_model)
202 if not self._device.HasRoot():
204 mode_definitions = _GetPerfModeDefinitions(self._device.product_model)
222 if not self._device.HasRoot():
256 output = self._device.RunShellCommand(
319 self._device.WriteFile('/sys/class/kgsl/kgsl-3d0/max_gpuclk',
[all …]
/external/libiio/src/bindings/python/
Diio.py399 self._device = device
403 _d_read_attr(self._device, self._name_ascii, buf, len(buf))
407 _d_write_attr(self._device, self._name_ascii, value.encode('ascii'))
417 _d_read_debug_attr(self._device, self._name_ascii, buf, len(buf))
421 _d_write_debug_attr(self._device, self._name_ascii, value.encode('ascii'))
515 self._buffer = _create_buffer(device._device, samples_count, cyclic)
586 def __init__(self, _device): argument
587 self._device = _device
588 self._attrs = { name : DeviceAttr(_device, name) for name in \
589 [_d_get_attr(_device, x).decode('ascii') for x in range(0, _d_attr_count(_device))] }
[all …]
/external/chromium-trace/catapult/systrace/profile_chrome/
Dchrome_startup_tracing_agent.py25 self._device = device
29 self._logcat_monitor = self._device.GetLogcatMonitor()
35 self._device, self._package_info.cmdline_file)
47 self._device.ForceStop(self._package_info.package)
49 self._device.ForceStop(self._webapk_package)
56 self._device.EnableRoot()
57 cache_control.CacheControl(self._device).DropRamCaches()
76 self._device.StartActivity(launch_intent, blocking=True)
104 self._device.PullFile(trace_file, host_file)
Dperf_tracing_agent.py52 self._device = device
54 self._device.adb, prefix='perf_output')
59 device_param = (['-s', str(self._device)] if str(self._device) else [])
65 self._perf_control = perf_control.PerfControl(self._device)
72 self._device.KillAll('perf', signum=signal.SIGINT)
82 if not self._device.FileExists(self._output_file.name):
87 self._device.PullFile(self._output_file.name, perf_profile)
100 self._device = device
129 self._perf_instance = _PerfProfiler(self._device,
180 kallsyms = android_profiling_helper.CreateSymFs(self._device,
/external/tensorflow/tensorflow/python/distribute/
Done_device_strategy.py250 self._device = device_util.resolve(device)
251 suffix_loc = self._device.rfind("/")
252 self._input_device = self._device[:suffix_loc] + "/device:CPU:0"
253 worker_device_pairs = [(self._input_device, [self._device])]
259 with ops.device(self._device):
353 with ops.device(self._device), _OneDeviceReplicaContext(strategy):
367 with ops.device(self._device), distribute_lib.UpdateContext(self._device):
394 return (self._device,)
398 return (self._device,)
402 return (self._device,)
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_wsi.c175 VkDevice _device, in v3dv_CreateSwapchainKHR() argument
180 V3DV_FROM_HANDLE(v3dv_device, device, _device); in v3dv_CreateSwapchainKHR()
189 return wsi_common_create_swapchain(wsi_device, _device, in v3dv_CreateSwapchainKHR()
194 VkDevice _device, in v3dv_DestroySwapchainKHR() argument
198 V3DV_FROM_HANDLE(v3dv_device, device, _device); in v3dv_DestroySwapchainKHR()
206 wsi_common_destroy_swapchain(_device, swapchain, alloc); in v3dv_DestroySwapchainKHR()
241 VkDevice _device, in v3dv_AcquireNextImage2KHR() argument
245 V3DV_FROM_HANDLE(v3dv_device, device, _device); in v3dv_AcquireNextImage2KHR()
252 result = wsi_common_acquire_next_image2(&pdevice->wsi_device, _device, in v3dv_AcquireNextImage2KHR()

12345