Home
last modified time | relevance | path

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

1234

/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)
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 …]
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/chromium-trace/catapult/devil/devil/android/
Dbattery_utils.py199 self._device = device
238 return int(self._device.ReadFile(
268 send_data = int(self._device.ReadFile(network_data_path + 'tcp_snd'))
275 recv_data = int(self._device.ReadFile(network_data_path + 'tcp_rcv'))
304 dumpsys_output = self._device.RunShellCommand(
355 for line in self._device.RunShellCommand(
383 GetBatteryInfoHelper, self._device)
409 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'ac', '0'],
411 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'usb', '0'],
429 or not bool('UPDATES STOPPED' in self._device.RunShellCommand(
[all …]
Dflag_changer.py64 self._device = device
79 if self._device.PathExists(alternate_cmdline_path):
82 self._device.RemovePath(alternate_cmdline_path, as_root=True)
95 if self._device.PathExists(self._cmdline_path):
96 command_line = self._device.ReadFile(
186 if (self._device.build_version_sdk >= version_codes.NOUGAT and
187 self._device.GetEnforce()):
188 self._device.SetEnforce(enabled=False)
194 self._device.SetEnforce(enabled=True)
220 self._device.WriteFile(self._cmdline_path, command_line, as_root=True)
[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)
Dsettings.py128 self._device = device
145 for row in self._device.RunShellCommand(
154 query_row = self._device.RunShellCommand(
167 self._device.RunShellCommand(
173 self._device.RunShellCommand(
180 self._device.RunShellCommand(
/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/perf/
Dperf_control.py101 self._device = device
103 for file_name in self._device.ListDirectory(self._CPU_PATH, as_root=True):
110 self._have_mpdecision = self._device.FileExists('/system/bin/mpdecision')
147 self._device.EnableRoot()
152 self._device.product_model)
171 if not self._device.HasRoot():
174 self._device.product_model)
192 if not self._device.HasRoot():
226 output = self._device.RunShellCommand(
289 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
100 serial_number = str(self._device)
101 log = self._device.RunShellCommand(
128 dumpsys_log = self._device.RunShellCommand(
/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/libxcam/modules/isp/
Disp_controller.cpp31 : _device (device) in IspController()
65 if (_device->io_control (ATOMISP_IOC_G_SENSOR_MODE_DATA, &sensor_mode_data) < 0) { in get_sensor_mode_data()
74 if ( _device->io_control (ATOMISP_IOC_G_ISP_PARM, &parameters) < 0) { in get_isp_parameter()
92 if ( _device->io_control (ATOMISP_IOC_G_3A_STAT, isp_stats) < 0) { in get_3a_statistics()
103 if ( _device->io_control (ATOMISP_IOC_S_PARAMETERS, &isp_config) < 0) { in set_3a_config()
123 if ( _device->io_control (ATOMISP_IOC_S_EXPOSURE, (struct atomisp_exposure*)(&exposure)) < 0) { in set_3a_exposure()
143 if (_device->io_control (VIDIOC_S_CTRL, &control) < 0) { in set_3a_focus()
/external/mesa3d/src/intel/vulkan/
Danv_wsi.c144 VkDevice _device, in anv_CreateSwapchainKHR() argument
149 ANV_FROM_HANDLE(anv_device, device, _device); in anv_CreateSwapchainKHR()
158 return wsi_common_create_swapchain(wsi_device, _device, device->fd, in anv_CreateSwapchainKHR()
163 VkDevice _device, in anv_DestroySwapchainKHR() argument
167 ANV_FROM_HANDLE(anv_device, device, _device); in anv_DestroySwapchainKHR()
175 wsi_common_destroy_swapchain(_device, swapchain, alloc); in anv_DestroySwapchainKHR()
190 VkDevice _device, in anv_AcquireNextImageKHR() argument
197 ANV_FROM_HANDLE(anv_device, device, _device); in anv_AcquireNextImageKHR()
201 _device, in anv_AcquireNextImageKHR()
Danv_descriptor_set.c39 VkDevice _device, in anv_CreateDescriptorSetLayout() argument
44 ANV_FROM_HANDLE(anv_device, device, _device); in anv_CreateDescriptorSetLayout()
197 VkDevice _device, in anv_DestroyDescriptorSetLayout() argument
201 ANV_FROM_HANDLE(anv_device, device, _device); in anv_DestroyDescriptorSetLayout()
225 VkDevice _device, in anv_CreatePipelineLayout() argument
230 ANV_FROM_HANDLE(anv_device, device, _device); in anv_CreatePipelineLayout()
283 VkDevice _device, in anv_DestroyPipelineLayout() argument
287 ANV_FROM_HANDLE(anv_device, device, _device); in anv_DestroyPipelineLayout()
311 VkDevice _device, in anv_CreateDescriptorPool() argument
316 ANV_FROM_HANDLE(anv_device, device, _device); in anv_CreateDescriptorPool()
[all …]
Danv_device.c1128 VkDevice _device, in anv_GetDeviceProcAddr() argument
1131 ANV_FROM_HANDLE(anv_device, device, _device); in anv_GetDeviceProcAddr()
1530 VkDevice _device, in anv_DestroyDevice() argument
1533 ANV_FROM_HANDLE(anv_device, device, _device); in anv_DestroyDevice()
1602 VkDevice _device, in anv_GetDeviceQueue() argument
1607 ANV_FROM_HANDLE(anv_device, device, _device); in anv_GetDeviceQueue()
1695 VkDevice _device) in anv_DeviceWaitIdle() argument
1697 ANV_FROM_HANDLE(anv_device, device, _device); in anv_DeviceWaitIdle()
1726 VkDevice _device, in anv_AllocateMemory() argument
1731 ANV_FROM_HANDLE(anv_device, device, _device); in anv_AllocateMemory()
[all …]
Danv_queue.c262 VkDevice _device, in anv_CreateFence() argument
267 ANV_FROM_HANDLE(anv_device, device, _device); in anv_CreateFence()
329 VkDevice _device, in anv_DestroyFence() argument
333 ANV_FROM_HANDLE(anv_device, device, _device); in anv_DestroyFence()
346 VkDevice _device, in anv_ResetFences() argument
350 ANV_FROM_HANDLE(anv_device, device, _device); in anv_ResetFences()
387 VkDevice _device, in anv_GetFenceStatus() argument
390 ANV_FROM_HANDLE(anv_device, device, _device); in anv_GetFenceStatus()
665 VkDevice _device, in anv_WaitForFences() argument
671 ANV_FROM_HANDLE(anv_device, device, _device); in anv_WaitForFences()
[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.py53 self._device = device
55 self._device.adb, prefix='perf_output')
60 device_param = (['-s', str(self._device)] if str(self._device) else [])
66 self._perf_control = perf_control.PerfControl(self._device)
73 self._device.KillAll('perf', signum=signal.SIGINT)
83 if not self._device.FileExists(self._output_file.name):
88 self._device.PullFile(self._output_file.name, perf_profile)
101 self._device = device
130 self._perf_instance = _PerfProfiler(self._device,
181 kallsyms = android_profiling_helper.CreateSymFs(self._device,
Dchrome_tracing_agent.py25 self._device = device
28 self._logcat_monitor = self._device.GetLogcatMonitor()
72 self._device.BroadcastIntent(intent.Intent(
77 self._device.EnableRoot()
78 self._device.SetProp(_HEAP_PROFILE_MMAP_PROPERTY, 1)
99 self._device.BroadcastIntent(intent.Intent(
105 self._device.SetProp(_HEAP_PROFILE_MMAP_PROPERTY, 0)
118 self._device.PullFile(trace_file, host_file)
Dddms_tracing_agent.py22 self._device = device
31 for line in self._device.RunShellCommand(
45 self._device.RunShellCommand(cmd, check_return=True)
50 self._device.RunShellCommand(
66 self._device.PullFile(self._output_file, host_file)
/external/tensorflow/tensorflow/python/distribute/
Done_device_strategy.py54 self._device = device
56 worker_device_pairs = [(self._input_device, [self._device])]
64 with ops.device(self._device):
143 with ops.device(self._device), _OneDeviceReplicaContext(strategy):
157 with ops.device(self._device), distribute_lib.UpdateContext(self._device):
180 return (self._device,)
184 return (self._device,)
188 return (self._device,)
/external/mesa3d/src/amd/vulkan/
Dradv_wsi.c148 VkDevice _device, in radv_CreateSwapchainKHR() argument
153 RADV_FROM_HANDLE(radv_device, device, _device); in radv_CreateSwapchainKHR()
169 VkDevice _device, in radv_DestroySwapchainKHR() argument
173 RADV_FROM_HANDLE(radv_device, device, _device); in radv_DestroySwapchainKHR()
181 wsi_common_destroy_swapchain(_device, swapchain, alloc); in radv_DestroySwapchainKHR()
196 VkDevice _device, in radv_AcquireNextImageKHR() argument
203 RADV_FROM_HANDLE(radv_device, device, _device); in radv_AcquireNextImageKHR()
208 _device, in radv_AcquireNextImageKHR()
Dradv_descriptor_set.c35 VkDevice _device, in radv_CreateDescriptorSetLayout() argument
40 RADV_FROM_HANDLE(radv_device, device, _device); in radv_CreateDescriptorSetLayout()
172 VkDevice _device, in radv_DestroyDescriptorSetLayout() argument
176 RADV_FROM_HANDLE(radv_device, device, _device); in radv_DestroyDescriptorSetLayout()
191 VkDevice _device, in radv_CreatePipelineLayout() argument
196 RADV_FROM_HANDLE(radv_device, device, _device); in radv_CreatePipelineLayout()
248 VkDevice _device, in radv_DestroyPipelineLayout() argument
252 RADV_FROM_HANDLE(radv_device, device, _device); in radv_DestroyPipelineLayout()
390 VkDevice _device, in radv_CreateDescriptorPool() argument
395 RADV_FROM_HANDLE(radv_device, device, _device); in radv_CreateDescriptorPool()
[all …]
/external/libxcam/xcore/
Ddevice_manager.cpp95 XCAM_ASSERT (device.ptr () && !_device.ptr ()); in set_capture_device()
96 _device = device; in set_capture_device()
162 XCAM_ASSERT (_device->is_opened()); in start()
163 if (!_device.ptr() || !_device->is_opened()) { in start()
166 XCAM_FAILED_STOP (ret = _device->start(), "capture device start failed"); in start()
193 _device->get_size (width, height); in start()
194 _device->get_framerate (fps_n, fps_d); in start()
227 _poll_thread->set_capture_device (_device); in start()
264 _device->stop (); in stop()
/external/libxcam/modules/ocl/intel/
Dcl_intel_context.cpp47 …(clCreateBufferFromLibvaIntel_fn) _device->get_extension_function (OCL_EXT_NAME_CREATE_BUFFER_FROM… in create_va_buffer()
68 …(clCreateBufferFromFdINTEL_fn) _device->get_extension_function (OCL_EXT_NAME_CREATE_BUFFER_FROM_FD… in import_dma_buffer()
90 …(clCreateImageFromLibvaIntel_fn) _device->get_extension_function (OCL_EXT_NAME_CREATE_IMAGE_FROM_L… in create_va_image()
111 …(clCreateImageFromFdINTEL_fn) _device->get_extension_function (OCL_EXT_NAME_CREATE_IMAGE_FROM_FD_I… in import_dma_image()
131 … (clGetMemObjectFdIntel_fn) _device->get_extension_function (OCL_EXT_NAME_GET_MEM_OBJECT_FD_INTEL); in export_mem_fd()
/external/tensorflow/tensorflow/python/training/saving/
Dsaveable_object.py67 self._device = None
84 if self._device is None:
85 self._device = self.specs[0].tensor.device
86 return self._device

1234