Home
last modified time | relevance | path

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

12345678910>>...34

/frameworks/native/services/inputflinger/reader/
DEventHub.cpp344 Device* device = mClosingDevices; in ~EventHub() local
345 mClosingDevices = device->next; in ~EventHub()
346 delete device; in ~EventHub()
357 Device* device = getDeviceLocked(deviceId); in getDeviceIdentifier() local
358 if (device == nullptr) return InputDeviceIdentifier(); in getDeviceIdentifier()
359 return device->identifier; in getDeviceIdentifier()
364 Device* device = getDeviceLocked(deviceId); in getDeviceClasses() local
365 if (device == nullptr) return 0; in getDeviceClasses()
366 return device->classes; in getDeviceClasses()
371 Device* device = getDeviceLocked(deviceId); in getDeviceControllerNumber() local
[all …]
DInputReader.cpp194 std::shared_ptr<InputDevice> device = createDeviceLocked(eventHubId, identifier); in addDeviceLocked() local
195 device->configure(when, &mConfig, 0); in addDeviceLocked()
196 device->reset(when); in addDeviceLocked()
198 if (device->isIgnored()) { in addDeviceLocked()
201 device->getId(), eventHubId, identifier.name.c_str(), identifier.descriptor.c_str()); in addDeviceLocked()
204 device->getId(), eventHubId, identifier.name.c_str(), identifier.descriptor.c_str(), in addDeviceLocked()
205 device->getSources()); in addDeviceLocked()
208 mDevices.emplace(eventHubId, device); in addDeviceLocked()
211 if (device->getClasses() & INPUT_DEVICE_CLASS_EXTERNAL_STYLUS) { in addDeviceLocked()
223 std::shared_ptr<InputDevice> device = std::move(deviceIt->second); in removeDeviceLocked() local
[all …]
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/
DCommonTransitions.java54 private static void setRotation(UiDevice device, int rotation) { in setRotation() argument
58 device.setOrientationLeft(); in setRotation()
62 device.setOrientationRight(); in setRotation()
67 device.setOrientationNatural(); in setRotation()
77 device, int beginRotation) { in openAppWarm() argument
83 .runBeforeAll(() -> setRotation(device, beginRotation)) in openAppWarm()
85 .runBefore(device::pressHome) in openAppWarm()
86 .runBefore(device::waitForIdle) in openAppWarm()
87 .runBefore(() -> setRotation(device, beginRotation)) in openAppWarm()
95 device) { in closeAppWithBackKey() argument
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothStressTest.java147 BluetoothDevice device = mAdapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testPair() local
149 mTestUtils.unpair(mAdapter, device); in testPair()
153 mTestUtils.pair(mAdapter, device, BluetoothTestRunner.sDevicePairPasskey, in testPair()
155 mTestUtils.unpair(mAdapter, device); in testPair()
170 BluetoothDevice device = mAdapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testAcceptPair() local
172 mTestUtils.unpair(mAdapter, device); in testAcceptPair()
176 mTestUtils.acceptPair(mAdapter, device, BluetoothTestRunner.sDevicePairPasskey, in testAcceptPair()
178 mTestUtils.unpair(mAdapter, device); in testAcceptPair()
194 BluetoothDevice device = mAdapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectA2dp() local
196 mTestUtils.unpair(mAdapter, device); in testConnectA2dp()
[all …]
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilterUtils.java54 static boolean matchesAddress(String deviceAddress, BluetoothDevice device) { in matchesAddress() argument
56 || (device != null && deviceAddress.equals(device.getAddress())); in matchesAddress()
57 if (DEBUG) debugLogMatchResult(result, device, deviceAddress); in matchesAddress()
62 List<ParcelUuid> serviceUuidMasks, BluetoothDevice device) { in matchesServiceUuids() argument
66 if (!matchesServiceUuid(uuid, uuidMask, device)) { in matchesServiceUuids()
74 BluetoothDevice device) { in matchesServiceUuid() argument
75 ParcelUuid[] uuids = device.getUuids(); in matchesServiceUuid()
81 if (DEBUG) debugLogMatchResult(result, device, serviceUuid); in matchesServiceUuid()
85 static boolean matchesName(@Nullable Pattern namePattern, BluetoothDevice device) { in matchesName() argument
89 } else if (device == null) { in matchesName()
[all …]
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
DUsbDeviceStateController.java38 void onDeviceResetComplete(UsbDevice device); in onDeviceResetComplete() argument
102 public void startDeviceReset(UsbDevice device) { in startDeviceReset() argument
103 mHandler.requestDeviceReset(device); in startDeviceReset()
110 private void doHandleDeviceReset(UsbDevice device) { in doHandleDeviceReset() argument
111 boolean isInAoap = AoapInterface.isDeviceInAoapMode(device); in doHandleDeviceReset()
114 completedDevice = resetUsbDeviceAndConfirmModeChange(device); in doHandleDeviceReset()
116 UsbDeviceConnection conn = openConnection(device); in doHandleDeviceReset()
118 throw new RuntimeException("cannot open conneciton for device: " + device); in doHandleDeviceReset()
122 throw new RuntimeException("resetDevice failed for devie: " + device); in doHandleDeviceReset()
124 completedDevice = device; in doHandleDeviceReset()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/p2p/
DWifiP2pDeviceTest.java76 WifiP2pDevice device = new WifiP2pDevice(); in testCopyConstructorWithDefaultValues() local
77 WifiP2pDevice copy = new WifiP2pDevice(device); in testCopyConstructorWithDefaultValues()
78 compareWifiP2pDevices(device, copy); in testCopyConstructorWithDefaultValues()
86 WifiP2pDevice device = new WifiP2pDevice(); in testCopyConstructorWithUpdatedValues() local
87 device.deviceName = "deviceName"; in testCopyConstructorWithUpdatedValues()
88 device.deviceAddress = "11:22:33:44:55:66"; in testCopyConstructorWithUpdatedValues()
89 device.primaryDeviceType = "primaryDeviceType"; in testCopyConstructorWithUpdatedValues()
90 device.secondaryDeviceType = "secondaryDeviceType"; in testCopyConstructorWithUpdatedValues()
91 device.wpsConfigMethodsSupported = 0x0008; in testCopyConstructorWithUpdatedValues()
92 device.deviceCapability = 1; in testCopyConstructorWithUpdatedValues()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothHidHost.java271 public boolean connect(BluetoothDevice device) { in connect() argument
272 if (DBG) log("connect(" + device + ")"); in connect()
274 if (service != null && isEnabled() && isValidDevice(device)) { in connect()
276 return service.connect(device); in connect()
309 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
310 if (DBG) log("disconnect(" + device + ")"); in disconnect()
312 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
314 return service.disconnect(device); in disconnect()
376 public int getConnectionState(@NonNull BluetoothDevice device) { in getConnectionState() argument
377 if (VDBG) log("getState(" + device + ")"); in getConnectionState()
[all …]
DBluetoothHeadsetClient.java450 public boolean connect(BluetoothDevice device) { in connect() argument
451 if (DBG) log("connect(" + device + ")"); in connect()
454 if (service != null && isEnabled() && isValidDevice(device)) { in connect()
456 return service.connect(device); in connect()
476 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
477 if (DBG) log("disconnect(" + device + ")"); in disconnect()
480 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
482 return service.disconnect(device); in disconnect()
545 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument
546 if (VDBG) log("getConnectionState(" + device + ")"); in getConnectionState()
[all …]
DBluetoothHearingAid.java170 public boolean connect(BluetoothDevice device) { in connect() argument
171 if (DBG) log("connect(" + device + ")"); in connect()
174 if (service != null && isEnabled() && isValidDevice(device)) { in connect()
175 return service.connect(device); in connect()
208 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
209 if (DBG) log("disconnect(" + device + ")"); in disconnect()
212 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
213 return service.disconnect(device); in disconnect()
267 @NonNull BluetoothDevice device) { in getConnectionState()
268 if (VDBG) log("getState(" + device + ")"); in getConnectionState()
[all …]
DBluetoothA2dp.java279 public boolean connect(BluetoothDevice device) { in connect() argument
280 if (DBG) log("connect(" + device + ")"); in connect()
283 if (service != null && isEnabled() && isValidDevice(device)) { in connect()
284 return service.connect(device); in connect()
319 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
320 if (DBG) log("disconnect(" + device + ")"); in disconnect()
323 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
324 return service.disconnect(device); in disconnect()
376 public @BtProfileState int getConnectionState(BluetoothDevice device) { in getConnectionState() argument
377 if (VDBG) log("getState(" + device + ")"); in getConnectionState()
[all …]
DBluetoothMapClient.java125 public boolean isConnected(BluetoothDevice device) { in isConnected() argument
126 if (VDBG) Log.d(TAG, "isConnected(" + device + ")"); in isConnected()
130 return service.isConnected(device); in isConnected()
148 public boolean connect(BluetoothDevice device) { in connect() argument
149 if (DBG) Log.d(TAG, "connect(" + device + ")" + "for MAPS MCE"); in connect()
153 return service.connect(device); in connect()
173 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
174 if (DBG) Log.d(TAG, "disconnect(" + device + ")"); in disconnect()
176 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
178 return service.disconnect(device); in disconnect()
[all …]
DBluetoothA2dpSink.java124 public boolean connect(BluetoothDevice device) { in connect() argument
125 if (DBG) log("connect(" + device + ")"); in connect()
127 if (service != null && isEnabled() && isValidDevice(device)) { in connect()
129 return service.connect(device); in connect()
163 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
164 if (DBG) log("disconnect(" + device + ")"); in disconnect()
166 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
168 return service.disconnect(device); in disconnect()
226 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument
227 if (VDBG) log("getState(" + device + ")"); in getConnectionState()
[all …]
DBluetoothHidDevice.java262 public void onConnectionStateChanged(BluetoothDevice device, int state) { in onConnectionStateChanged() argument
263 Log.d(TAG, "onConnectionStateChanged: device=" + device + " state=" + state); in onConnectionStateChanged()
276 public void onGetReport(BluetoothDevice device, byte type, byte id, int bufferSize) { in onGetReport() argument
280 + device in onGetReport()
298 public void onSetReport(BluetoothDevice device, byte type, byte id, byte[] data) { in onSetReport() argument
299 Log.d(TAG, "onSetReport: device=" + device + " type=" + type + " id=" + id); in onSetReport()
309 public void onSetProtocol(BluetoothDevice device, byte protocol) { in onSetProtocol() argument
310 Log.d(TAG, "onSetProtocol: device=" + device + " protocol=" + protocol); in onSetProtocol()
320 public void onInterruptData(BluetoothDevice device, byte reportId, byte[] data) { in onInterruptData() argument
321 Log.d(TAG, "onInterruptData: device=" + device + " reportId=" + reportId); in onInterruptData()
[all …]
DBluetoothPbapClient.java109 public boolean connect(BluetoothDevice device) { in connect() argument
111 log("connect(" + device + ") for PBAP Client."); in connect()
114 if (service != null && isEnabled() && isValidDevice(device)) { in connect()
116 return service.connect(device); in connect()
137 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
139 log("disconnect(" + device + ")" + new Exception()); in disconnect()
142 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
144 service.disconnect(device); in disconnect()
214 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument
216 log("getConnectionState(" + device + ")"); in getConnectionState()
[all …]
DBluetoothSap.java189 public boolean isConnected(BluetoothDevice device) { in isConnected() argument
190 if (VDBG) log("isConnected(" + device + ")"); in isConnected()
194 return service.isConnected(device); in isConnected()
211 public boolean connect(BluetoothDevice device) { in connect() argument
212 if (DBG) log("connect(" + device + ")" + "not supported for SAPS"); in connect()
224 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
225 if (DBG) log("disconnect(" + device + ")"); in disconnect()
227 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
229 return service.disconnect(device); in disconnect()
287 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument
[all …]
/frameworks/native/vulkan/vkjson/
Dvkjson_instance.cc72 VkJsonDevice device; in VkJsonGetDevice() local
93 device.extensions.resize(extension_count); in VkJsonGetDevice()
95 physical_device, nullptr, &extension_count, device.extensions.data()); in VkJsonGetDevice()
101 device.layers.resize(layer_count); in VkJsonGetDevice()
103 device.layers.data()); in VkJsonGetDevice()
113 if (HasExtension("VK_KHR_driver_properties", device.extensions)) { in VkJsonGetDevice()
114 device.ext_driver_properties.reported = true; in VkJsonGetDevice()
115 device.ext_driver_properties.driver_properties_khr.sType = in VkJsonGetDevice()
117 device.ext_driver_properties.driver_properties_khr.pNext = in VkJsonGetDevice()
120 &device.ext_driver_properties.driver_properties_khr; in VkJsonGetDevice()
[all …]
/frameworks/base/tests/utils/hostutils/src/com/android/internal/util/test/
DSystemPreparer.java21 import com.android.tradefed.device.DeviceNotAvailableException;
22 import com.android.tradefed.device.ITestDevice;
81 final ITestDevice device = mDeviceProvider.getDevice(); in pushResourceFile() local
83 assertTrue(device.pushFile(copyResourceToTemp(filePath), outputPath)); in pushResourceFile()
91 final ITestDevice device = mDeviceProvider.getDevice(); in pushFile() local
93 assertTrue(device.pushFile(file, outputPath)); in pushFile()
100 final ITestDevice device = mDeviceProvider.getDevice(); in deleteFile() local
102 device.deleteFile(file); in deleteFile()
109 final ITestDevice device = mDeviceProvider.getDevice(); in installResourceApk() local
111 final String result = device.installPackage(tmpFile, true /* reinstall */); in installResourceApk()
[all …]
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pDeviceList.java53 for (WifiP2pDevice device : devices) { in WifiP2pDeviceList()
54 if (device.deviceAddress != null) { in WifiP2pDeviceList()
55 mDevices.put(device.deviceAddress, new WifiP2pDevice(device)); in WifiP2pDeviceList()
60 private void validateDevice(WifiP2pDevice device) { in validateDevice() argument
61 if (device == null) throw new IllegalArgumentException("Null device"); in validateDevice()
62 if (TextUtils.isEmpty(device.deviceAddress)) { in validateDevice()
87 public void update(WifiP2pDevice device) { in update() argument
88 updateSupplicantDetails(device); in update()
89 mDevices.get(device.deviceAddress).status = device.status; in update()
93 public void updateSupplicantDetails(WifiP2pDevice device) { in updateSupplicantDetails() argument
[all …]
/frameworks/native/vulkan/libvulkan/
Ddriver_gen.cpp33 VKAPI_ATTR VkResult checkedCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR* pCre… in checkedCreateSwapchainKHR() argument
34 if (GetData(device).hook_extensions[ProcHook::KHR_swapchain]) { in checkedCreateSwapchainKHR()
35 return CreateSwapchainKHR(device, pCreateInfo, pAllocator, pSwapchain); in checkedCreateSwapchainKHR()
37 … Logger(device).Err(device, "VK_KHR_swapchain not enabled. vkCreateSwapchainKHR not executed."); in checkedCreateSwapchainKHR()
42 VKAPI_ATTR void checkedDestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain, const VkAlloc… in checkedDestroySwapchainKHR() argument
43 if (GetData(device).hook_extensions[ProcHook::KHR_swapchain]) { in checkedDestroySwapchainKHR()
44 DestroySwapchainKHR(device, swapchain, pAllocator); in checkedDestroySwapchainKHR()
46 … Logger(device).Err(device, "VK_KHR_swapchain not enabled. vkDestroySwapchainKHR not executed."); in checkedDestroySwapchainKHR()
50 VKAPI_ATTR VkResult checkedGetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR swapchain, uint32_… in checkedGetSwapchainImagesKHR() argument
51 if (GetData(device).hook_extensions[ProcHook::KHR_swapchain]) { in checkedGetSwapchainImagesKHR()
[all …]
Dapi_gen.cpp86 VKAPI_ATTR VkResult disabledCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR*, co… in disabledCreateSwapchainKHR() argument
87 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkCreateSwapchainKHR no… in disabledCreateSwapchainKHR()
91 VKAPI_ATTR void disabledDestroySwapchainKHR(VkDevice device, VkSwapchainKHR, const VkAllocationCall… in disabledDestroySwapchainKHR() argument
92 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkDestroySwapchainKHR n… in disabledDestroySwapchainKHR()
95 VKAPI_ATTR VkResult disabledGetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR, uint32_t*, VkIma… in disabledGetSwapchainImagesKHR() argument
96 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkGetSwapchainImagesKHR… in disabledGetSwapchainImagesKHR()
100 VKAPI_ATTR VkResult disabledAcquireNextImageKHR(VkDevice device, VkSwapchainKHR, uint64_t, VkSemaph… in disabledAcquireNextImageKHR() argument
101 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkAcquireNextImageKHR n… in disabledAcquireNextImageKHR()
110 VKAPI_ATTR VkResult disabledGetDeviceGroupPresentCapabilitiesKHR(VkDevice device, VkDeviceGroupPres… in disabledGetDeviceGroupPresentCapabilitiesKHR() argument
111 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkGetDeviceGroupPresent… in disabledGetDeviceGroupPresentCapabilitiesKHR()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DDeviceFilter.java72 public DeviceFilter(UsbDevice device) { in DeviceFilter() argument
73 mVendorId = device.getVendorId(); in DeviceFilter()
74 mProductId = device.getProductId(); in DeviceFilter()
75 mClass = device.getDeviceClass(); in DeviceFilter()
76 mSubclass = device.getDeviceSubclass(); in DeviceFilter()
77 mProtocol = device.getDeviceProtocol(); in DeviceFilter()
78 mManufacturerName = device.getManufacturerName(); in DeviceFilter()
79 mProductName = device.getProductName(); in DeviceFilter()
80 mSerialNumber = device.getSerialNumber(); in DeviceFilter()
184 public boolean matches(UsbDevice device) { in matches() argument
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_UsbDeviceConnection.cpp57 struct usb_device* device = usb_device_new(deviceNameStr, fd); in android_hardware_UsbDeviceConnection_open() local
58 if (device) { in android_hardware_UsbDeviceConnection_open()
59 env->SetLongField(thiz, field_context, (jlong)device); in android_hardware_UsbDeviceConnection_open()
66 return (device != NULL) ? JNI_TRUE : JNI_FALSE; in android_hardware_UsbDeviceConnection_open()
73 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_close() local
74 if (device) { in android_hardware_UsbDeviceConnection_close()
75 usb_device_close(device); in android_hardware_UsbDeviceConnection_close()
83 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_get_fd() local
84 if (!device) { in android_hardware_UsbDeviceConnection_get_fd()
88 return usb_device_get_fd(device); in android_hardware_UsbDeviceConnection_get_fd()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidProfile.java64 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local
66 if (device == null) { in onServiceConnected()
70 device = mDeviceManager.addDevice(nextDevice); in onServiceConnected()
72 device.onProfileStateChanged(HearingAidProfile.this, in onServiceConnected()
74 device.refresh(); in onServiceConnected()
154 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() argument
158 return mService.getConnectionState(device); in getConnectionStatus()
161 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() argument
165 return device == null in setActiveDevice()
167 : mBluetoothAdapter.setActiveDevice(device, ACTIVE_DEVICE_ALL); in setActiveDevice()
[all …]
DA2dpProfile.java72 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local
74 if (device == null) { in onServiceConnected()
76 device = mDeviceManager.addDevice(nextDevice); in onServiceConnected()
78 device.onProfileStateChanged(A2dpProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
79 device.refresh(); in onServiceConnected()
156 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() argument
160 return mService.getConnectionState(device); in getConnectionStatus()
163 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() argument
167 return device == null in setActiveDevice()
169 : mBluetoothAdapter.setActiveDevice(device, ACTIVE_DEVICE_AUDIO); in setActiveDevice()
[all …]

12345678910>>...34