Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 4746) sorted by relevance

12345678910>>...190

/external/adhd/cras/src/server/
Dcras_bt_device.c135 struct cras_bt_device *device; member
168 struct cras_bt_device *device; in cras_bt_device_create() local
170 device = calloc(1, sizeof(*device)); in cras_bt_device_create()
171 if (device == NULL) in cras_bt_device_create()
174 device->conn = conn; in cras_bt_device_create()
175 device->object_path = strdup(object_path); in cras_bt_device_create()
176 if (device->object_path == NULL) { in cras_bt_device_create()
177 free(device); in cras_bt_device_create()
180 device->stable_id = in cras_bt_device_create()
181 SuperFastHash(device->object_path, strlen(device->object_path), in cras_bt_device_create()
[all …]
Dcras_bt_device.h46 void cras_bt_device_remove(struct cras_bt_device *device);
52 const char *cras_bt_device_object_path(const struct cras_bt_device *device);
55 int cras_bt_device_get_stable_id(const struct cras_bt_device *device);
58 cras_bt_device_adapter(const struct cras_bt_device *device);
59 const char *cras_bt_device_address(const struct cras_bt_device *device);
60 const char *cras_bt_device_name(const struct cras_bt_device *device);
61 int cras_bt_device_paired(const struct cras_bt_device *device);
62 int cras_bt_device_trusted(const struct cras_bt_device *device);
63 int cras_bt_device_connected(const struct cras_bt_device *device);
65 void cras_bt_device_update_properties(struct cras_bt_device *device,
[all …]
/external/tensorflow/tensorflow/core/grappler/clusters/
Dutils.cc47 DeviceProperties device; in GetLocalCPUInfo() local
48 device.set_type("CPU"); in GetLocalCPUInfo()
50 device.set_vendor(port::CPUVendorIDString()); in GetLocalCPUInfo()
52 device.set_model( in GetLocalCPUInfo()
54 device.set_frequency(port::NominalCPUFrequency() * 1e-6); in GetLocalCPUInfo()
55 device.set_num_cores(port::NumSchedulableCPUs()); in GetLocalCPUInfo()
56 device.set_l1_cache_size(Eigen::l1CacheSize()); in GetLocalCPUInfo()
57 device.set_l2_cache_size(Eigen::l2CacheSize()); in GetLocalCPUInfo()
58 device.set_l3_cache_size(Eigen::l3CacheSize()); in GetLocalCPUInfo()
62 device.set_memory_size(free_mem); in GetLocalCPUInfo()
[all …]
/external/libdrm/tests/kms/
Dlibkms-test-device.c51 static void kms_device_probe_screens(struct kms_device *device) in kms_device_probe_screens() argument
60 res = drmModeGetResources(device->fd); in kms_device_probe_screens()
64 device->screens = calloc(res->count_connectors, sizeof(screen)); in kms_device_probe_screens()
65 if (!device->screens) in kms_device_probe_screens()
73 screen = kms_screen_create(device, res->connectors[i]); in kms_device_probe_screens()
92 device->screens[i] = screen; in kms_device_probe_screens()
93 device->num_screens++; in kms_device_probe_screens()
100 static void kms_device_probe_crtcs(struct kms_device *device) in kms_device_probe_crtcs() argument
106 res = drmModeGetResources(device->fd); in kms_device_probe_crtcs()
110 device->crtcs = calloc(res->count_crtcs, sizeof(crtc)); in kms_device_probe_crtcs()
[all …]
/external/chromium-trace/catapult/devil/devil/android/tools/
Dprovision_devices.py150 def ProvisionDevice(device, steps, denylist, reboot_timeout=None): argument
153 if device.build_version_sdk >= version_codes.LOLLIPOP:
160 device.WaitUntilFullyBooted(timeout=reboot_timeout, retries=0)
163 device.Reboot(timeout=reboot_timeout)
164 step.cmd(device)
166 device.Reboot(False, retries=0)
167 device.adb.WaitForDevice()
171 str(device))
173 denylist.Extend([str(device)], reason='provision_timeout')
178 str(device))
[all …]
Dsystem_app.py53 def RemoveSystemApps(device, package_names): argument
61 system_package_paths = _FindSystemPackagePaths(device, package_names)
63 with EnableSystemAppModification(device):
64 device.RemovePath(system_package_paths, force=True, recursive=True)
68 def ReplaceSystemApp(device, argument
80 storage_dir = device_temp_file.NamedDeviceTemporaryDirectory(device.adb)
81 relocate_app = _RelocateApp(device, package_name, storage_dir.name)
82 install_app = _TemporarilyInstallApp(device, replacement_apk, install_timeout)
87 def _FindSystemPackagePaths(device, system_package_list): argument
91 paths = _GetApplicationPaths(device, system_package)
[all …]
/external/autotest/server/cros/bluetooth/
Dbluetooth_adapter_pairing_tests.py41 def pairing_test(self, device, check_connected_method=lambda device: True, argument
53 self.test_discover_device(device.address)
56 self.test_device_class_of_service(device.address,
57 device.class_of_service)
60 self.test_device_class_of_device(device.address,
61 device.class_of_device)
66 self.test_pairing(device.address, device.pin, trusted=True)
73 self.test_device_name(device.address, device.name)
76 check_connected_method(device)
83 self.test_device_is_paired(device.address)
[all …]
Dbluetooth_adapter_hidreports_tests.py28 def run_mouse_tests(self, device): argument
34 self.test_mouse_left_click(device)
35 self.test_mouse_right_click(device)
36 self.test_mouse_move_in_x(device, 80)
37 self.test_mouse_move_in_y(device, -50)
38 self.test_mouse_move_in_xy(device, -60, 100)
39 self.test_mouse_scroll_down(device, 70)
40 self.test_mouse_scroll_up(device, 40)
41 self.test_mouse_click_and_drag(device, 90, 30)
44 def run_keyboard_tests(self, device): argument
[all …]
/external/skqp/src/gpu/vk/
DGrVkInterface.cpp13 #define ACQUIRE_PROC(name, instance, device) \ argument
14 fFunctions.f##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device))
16 #define ACQUIRE_PROC_SUFFIX(name, suffix, instance, device) \ argument
18 reinterpret_cast<PFN_vk##name##suffix>(getProc("vk" #name #suffix, instance, device))
22 VkDevice device, in GrVkInterface() argument
50 ACQUIRE_PROC(GetDeviceQueue, VK_NULL_HANDLE, device); in GrVkInterface()
51 ACQUIRE_PROC(QueueSubmit, VK_NULL_HANDLE, device); in GrVkInterface()
52 ACQUIRE_PROC(QueueWaitIdle, VK_NULL_HANDLE, device); in GrVkInterface()
53 ACQUIRE_PROC(DeviceWaitIdle, VK_NULL_HANDLE, device); in GrVkInterface()
54 ACQUIRE_PROC(AllocateMemory, VK_NULL_HANDLE, device); in GrVkInterface()
[all …]
/external/skia/src/gpu/vk/
DGrVkInterface.cpp13 #define ACQUIRE_PROC(name, instance, device) \ argument
14 fFunctions.f##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device))
16 #define ACQUIRE_PROC_SUFFIX(name, suffix, instance, device) \ argument
18 reinterpret_cast<PFN_vk##name##suffix>(getProc("vk" #name #suffix, instance, device))
22 VkDevice device, in GrVkInterface() argument
50 ACQUIRE_PROC(GetDeviceQueue, VK_NULL_HANDLE, device); in GrVkInterface()
51 ACQUIRE_PROC(QueueSubmit, VK_NULL_HANDLE, device); in GrVkInterface()
52 ACQUIRE_PROC(QueueWaitIdle, VK_NULL_HANDLE, device); in GrVkInterface()
53 ACQUIRE_PROC(DeviceWaitIdle, VK_NULL_HANDLE, device); in GrVkInterface()
54 ACQUIRE_PROC(AllocateMemory, VK_NULL_HANDLE, device); in GrVkInterface()
[all …]
/external/tensorflow/tensorflow/python/training/
Ddevice_setter_test.py39 with ops.device(
41 with ops.device("/cpu:0"):
44 with ops.device("/cpu:0"):
46 self.assertDeviceEqual("/job:ps/task:0/cpu:0", v.device)
47 self.assertDeviceEqual("/job:ps/task:0/cpu:0", v.initializer.device)
48 self.assertDeviceEqual("/job:ps/task:1", w.device)
49 self.assertDeviceEqual("/job:ps/task:1", w.initializer.device)
50 self.assertDeviceEqual("/job:worker/cpu:0", a.device)
54 with ops.device(
57 self.assertDeviceEqual("/job:ps/task:0", v.device)
[all …]
/external/mesa3d/src/amd/vulkan/
Dradv_sqtt.c39 radv_thread_trace_get_data_offset(struct radv_device *device, unsigned se) in radv_thread_trace_get_data_offset() argument
45 data_offset += device->thread_trace_buffer_size * se; in radv_thread_trace_get_data_offset()
51 radv_thread_trace_get_info_va(struct radv_device *device, unsigned se) in radv_thread_trace_get_info_va() argument
53 uint64_t va = radv_buffer_get_va(device->thread_trace_bo); in radv_thread_trace_get_info_va()
58 radv_thread_trace_get_data_va(struct radv_device *device, unsigned se) in radv_thread_trace_get_data_va() argument
60 uint64_t va = radv_buffer_get_va(device->thread_trace_bo); in radv_thread_trace_get_data_va()
61 return va + radv_thread_trace_get_data_offset(device, se); in radv_thread_trace_get_data_va()
65 radv_emit_thread_trace_start(struct radv_device *device, in radv_emit_thread_trace_start() argument
69 uint32_t shifted_size = device->thread_trace_buffer_size >> SQTT_BUFFER_ALIGN_SHIFT; in radv_emit_thread_trace_start()
70 unsigned max_se = device->physical_device->rad_info.max_se; in radv_emit_thread_trace_start()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/
Dtpu_device_propagation.mlir1 // RUN: tf-opt %s -tf-tpu-device-propagation | FileCheck %s
6 // CHECK-SAME: ({{%.+}}: tensor<i64> {tf.device = "/job:localhost/replica:0/task:0/device:TPU:0"})
7 // CHECK-SAME: -> (tensor<i64> {tf.device = "/job:localhost/replica:0/task:0/device:TPU:0"})
8 func @testArgToRet(%arg0: tensor<i64> {tf.device = "/job:localhost/replica:0/task:0/device:TPU:0"})…
18 // CHECK-SAME: ({{%.+}}: tensor<i64> {tf.device = "/job:localhost/replica:0/task:0/device:TPU:0"})
19 // CHECK-SAME: -> (tensor<i64> {tf.device = "/job:localhost/replica:0/task:0/device:TPU:0"})
20 func @testIdentityOp(%arg0: tensor<i64> {tf.device = "/job:localhost/replica:0/task:0/device:TPU:0"…
23 // CHECK-SAME: device = "/job:localhost/replica:0/task:0/device:TPU:0"
31 …r<i64> {tf.device = "/job:localhost/replica:0/task:0/device:TPU:0"}, {{%.+}}: tensor<i32> {tf.devi…
32 …ensor<i64> {tf.device = "/job:localhost/replica:0/task:0/device:TPU:0"}, tensor<i32> {tf.device = …
[all …]
Dcross_host_transfer.mlir5 …// CHECK-NEXT: %[[RESULT_0:.*]] = "tf.Const"() {device = "/job:worker/replica:0/task:0/device:CPU:…
6 …%0 = "tf.Const"() {device = "/job:worker/replica:0/task:0/device:CPU:0", value = dense<3.000000e+0…
8 …%[[RESULT_0]] "key-0" "/job:worker/replica:0/task:1" {device = "/job:worker/replica:0/task:0/devic…
9 …evice.receive "key-0" "/job:worker/replica:0/task:0" {device = "/job:worker/replica:0/task:1/devic…
10 …CK-NEXT: %[[RESULT_2:.*]] = "tf.Sqrt"(%[[RESULT_1]]) {device = "/job:worker/replica:0/task:1/devic…
11 …%1 = "tf.Sqrt"(%0) {device = "/job:worker/replica:0/task:1/device:CPU:0"} : (tensor<f32>) -> tenso…
13 …CK-NEXT: %[[RESULT_3:.*]] = "tf.Sqrt"(%[[RESULT_1]]) {device = "/job:worker/replica:0/task:1/devic…
14 …%2 = "tf.Sqrt"(%0) {device = "/job:worker/replica:0/task:1/device:CPU:0"} : (tensor<f32>) -> tenso…
20 …// CHECK-NEXT: %[[RESULT_0:.*]] = "tf.Const"() {device = "/job:worker/replica:0/task:0/device:CPU:…
21 …%0 = "tf.Const"() {device = "/job:worker/replica:0/task:0/device:CPU:0", value = dense<3.000000e+0…
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_utils_test.py100 device, argument
220 self.device = device_utils.DeviceUtils(
235 msg, str(self.device)))
241 side_effect=device_errors.CommandFailedError(msg, str(self.device)))
246 str(self.device))
256 side_effect=device_errors.CommandTimeoutError(msg, str(self.device)))
261 return (self.call.device.RunShellCommand(
271 self.assertTrue(self.device == other)
272 self.assertTrue(other == self.device)
276 self.assertTrue(self.device == other)
[all …]
/external/vulkan-validation-layers/layers/generated/
Dobject_tracker.cpp36 bool ObjectLifetimes::ReportUndestroyedObjects(VkDevice device, const std::string& error_code) { in ReportUndestroyedObjects() argument
38 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeCommandBuffer, error_code); in ReportUndestroyedObjects()
39 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeSemaphore, error_code); in ReportUndestroyedObjects()
40 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeFence, error_code); in ReportUndestroyedObjects()
41 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeDeviceMemory, error_code); in ReportUndestroyedObjects()
42 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeBuffer, error_code); in ReportUndestroyedObjects()
43 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeImage, error_code); in ReportUndestroyedObjects()
44 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeEvent, error_code); in ReportUndestroyedObjects()
45 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeQueryPool, error_code); in ReportUndestroyedObjects()
46 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeBufferView, error_code); in ReportUndestroyedObjects()
[all …]
Dthread_safety.cpp28 void ThreadSafety::PreCallRecordAllocateCommandBuffers(VkDevice device, const VkCommandBufferAlloca… in PreCallRecordAllocateCommandBuffers() argument
30 StartReadObject(device); in PreCallRecordAllocateCommandBuffers()
34 void ThreadSafety::PostCallRecordAllocateCommandBuffers(VkDevice device, const VkCommandBufferAlloc… in PostCallRecordAllocateCommandBuffers() argument
36 FinishReadObject(device); in PostCallRecordAllocateCommandBuffers()
49 void ThreadSafety::PreCallRecordAllocateDescriptorSets(VkDevice device, const VkDescriptorSetAlloca… in PreCallRecordAllocateDescriptorSets() argument
51 StartReadObject(device); in PreCallRecordAllocateDescriptorSets()
56 void ThreadSafety::PostCallRecordAllocateDescriptorSets(VkDevice device, const VkDescriptorSetAlloc… in PostCallRecordAllocateDescriptorSets() argument
58 FinishReadObject(device); in PostCallRecordAllocateDescriptorSets()
63 void ThreadSafety::PreCallRecordFreeCommandBuffers(VkDevice device, VkCommandPool commandPool, uint… in PreCallRecordFreeCommandBuffers() argument
66 StartReadObject(device); in PreCallRecordFreeCommandBuffers()
[all …]
Dvk_dispatch_table_helper.h36 static VKAPI_ATTR VkResult VKAPI_CALL StubBindBufferMemory2(VkDevice device, uint32_t bindInfoCount… in StubBindBufferMemory2() argument
37 static VKAPI_ATTR VkResult VKAPI_CALL StubBindImageMemory2(VkDevice device, uint32_t bindInfoCount,… in StubBindImageMemory2() argument
38 static VKAPI_ATTR void VKAPI_CALL StubGetDeviceGroupPeerMemoryFeatures(VkDevice device, uint32_t he… in StubGetDeviceGroupPeerMemoryFeatures() argument
41 static VKAPI_ATTR void VKAPI_CALL StubGetImageMemoryRequirements2(VkDevice device, const VkImageMem… in StubGetImageMemoryRequirements2() argument
42 static VKAPI_ATTR void VKAPI_CALL StubGetBufferMemoryRequirements2(VkDevice device, const VkBufferM… in StubGetBufferMemoryRequirements2() argument
43 static VKAPI_ATTR void VKAPI_CALL StubGetImageSparseMemoryRequirements2(VkDevice device, const VkIm… in StubGetImageSparseMemoryRequirements2() argument
44 static VKAPI_ATTR void VKAPI_CALL StubTrimCommandPool(VkDevice device, VkCommandPool commandPool, V… in StubTrimCommandPool() argument
45 static VKAPI_ATTR void VKAPI_CALL StubGetDeviceQueue2(VkDevice device, const VkDeviceQueueInfo2* pQ… in StubGetDeviceQueue2() argument
46 static VKAPI_ATTR VkResult VKAPI_CALL StubCreateSamplerYcbcrConversion(VkDevice device, const VkSam… in StubCreateSamplerYcbcrConversion() argument
47 static VKAPI_ATTR void VKAPI_CALL StubDestroySamplerYcbcrConversion(VkDevice device, VkSamplerYcbcr… in StubDestroySamplerYcbcrConversion() argument
[all …]
/external/autotest/server/site_tests/bluetooth_AdapterCLHealth/
Dbluetooth_AdapterCLHealth.py38 device = self.devices['MOUSE'][0]
40 self.test_discover_device(device.address)
41 self.test_device_name(device.address, device.name)
48 device = self.devices['MOUSE'][0]
54 self.test_discover_by_device(device)
60 device = self.devices['MOUSE'][0]
61 self.pairing_test(device,
69 device = self.devices['KEYBOARD'][0]
70 self.pairing_test(device,
78 device = self.devices['MOUSE'][0]
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dlstm_layer_inference.pbtxt6 device: "/device:GPU:*"
31 device: "/device:GPU:*"
53 device: "/device:GPU:*"
76 device: "/device:GPU:*"
107 device: "/device:GPU:*"
120 device: "/device:GPU:*"
133 device: "/device:GPU:*"
144 device: "/device:GPU:*"
182 device: "/device:GPU:*"
214 device: "/device:GPU:*"
[all …]
/external/adhd/cras/src/tests/
Dbt_device_unittest.cc140 struct cras_bt_device* device; in TEST() local
142 device = cras_bt_device_create(NULL, FAKE_OBJ_PATH); in TEST()
143 EXPECT_NE((void*)NULL, device); in TEST()
145 device = cras_bt_device_get(FAKE_OBJ_PATH); in TEST()
146 EXPECT_NE((void*)NULL, device); in TEST()
148 cras_bt_device_remove(device); in TEST()
149 device = cras_bt_device_get(FAKE_OBJ_PATH); in TEST()
150 EXPECT_EQ((void*)NULL, device); in TEST()
154 struct cras_bt_device* device; in TEST_F() local
155 device = cras_bt_device_create(NULL, FAKE_OBJ_PATH); in TEST_F()
[all …]
/external/mesa3d/src/intel/vulkan/
Danv_device.c82 struct anv_device *device = (struct anv_device *)data; in compiler_debug_log() local
83 struct anv_instance *instance = device->physical->instance; in compiler_debug_log()
137 anv_physical_device_init_heaps(struct anv_physical_device *device, int fd) in anv_physical_device_init_heaps() argument
140 &device->gtt_size) == -1) { in anv_physical_device_init_heaps()
147 if (gen_get_aperture_size(fd, &device->gtt_size) == -1) { in anv_physical_device_init_heaps()
148 return vk_errorfi(device->instance, NULL, in anv_physical_device_init_heaps()
157 device->supports_48bit_addresses = (device->info.gen >= 8) && in anv_physical_device_init_heaps()
158 device->has_softpin && in anv_physical_device_init_heaps()
159 device->gtt_size > (4ULL << 30 /* GiB */); in anv_physical_device_init_heaps()
161 uint64_t heap_size = anv_compute_heap_size(fd, device->gtt_size); in anv_physical_device_init_heaps()
[all …]
/external/mesa3d/src/vulkan/util/
Dvk_object.c31 vk_object_base_init(UNUSED struct vk_device *device, in vk_object_base_init() argument
47 vk_device_init(struct vk_device *device, in vk_device_init() argument
52 vk_object_base_init(device, &device->base, VK_OBJECT_TYPE_DEVICE); in vk_device_init()
54 device->alloc = *device_alloc; in vk_device_init()
56 device->alloc = *instance_alloc; in vk_device_init()
58 p_atomic_set(&device->private_data_next_index, 0); in vk_device_init()
61 mtx_init(&device->swapchain_private_mtx, mtx_plain); in vk_device_init()
62 device->swapchain_private = NULL; in vk_device_init()
67 vk_device_finish(UNUSED struct vk_device *device) in vk_device_finish() argument
70 if (device->swapchain_private) { in vk_device_finish()
[all …]
/external/autotest/server/site_tests/bluetooth_AdapterAUHealth/
Dbluetooth_AdapterAUHealth.py26 def au_run_method(self, device, test_method, test_profile): argument
36 self.initialize_bluetooth_audio(device, test_profile)
37 self.test_device_set_discoverable(device, True)
38 self.test_discover_device(device.address)
39 self.test_pairing(device.address, device.pin, trusted=True)
40 self.test_connection_by_adapter(device.address)
42 self.test_disconnection_by_adapter(device.address)
43 self.cleanup_bluetooth_audio(device, test_profile)
53 device = self.devices['BLUETOOTH_AUDIO'][0]
54 self.au_run_method(device,
[all …]
/external/mesa3d/prebuilt-intermediates/util/
Dvk_enum_to_str.c4509 void vk_load_device_commands(VkDevice device, in vk_load_device_commands() argument
4516 …llScreenExclusiveModeEXT = (PFN_vkAcquireFullScreenExclusiveModeEXT) gpa(device, "vkAcquireFullScr… in vk_load_device_commands()
4518 … table->AcquireImageANDROID = (PFN_vkAcquireImageANDROID) gpa(device, "vkAcquireImageANDROID"); in vk_load_device_commands()
4519 … table->AcquireNextImage2KHR = (PFN_vkAcquireNextImage2KHR) gpa(device, "vkAcquireNextImage2KHR"); in vk_load_device_commands()
4520 … table->AcquireNextImageKHR = (PFN_vkAcquireNextImageKHR) gpa(device, "vkAcquireNextImageKHR"); in vk_load_device_commands()
4521 …nceConfigurationINTEL = (PFN_vkAcquirePerformanceConfigurationINTEL) gpa(device, "vkAcquirePerform… in vk_load_device_commands()
4522 …table->AcquireProfilingLockKHR = (PFN_vkAcquireProfilingLockKHR) gpa(device, "vkAcquireProfilingLo… in vk_load_device_commands()
4523 …table->AllocateCommandBuffers = (PFN_vkAllocateCommandBuffers) gpa(device, "vkAllocateCommandBuffe… in vk_load_device_commands()
4524 …table->AllocateDescriptorSets = (PFN_vkAllocateDescriptorSets) gpa(device, "vkAllocateDescriptorSe… in vk_load_device_commands()
4525 table->AllocateMemory = (PFN_vkAllocateMemory) gpa(device, "vkAllocateMemory"); in vk_load_device_commands()
[all …]

12345678910>>...190