/frameworks/native/services/inputflinger/reader/ |
D | EventHub.cpp | 320 Device* device = mClosingDevices; in ~EventHub() local 321 mClosingDevices = device->next; in ~EventHub() 322 delete device; in ~EventHub() 335 Device* device = getDeviceLocked(deviceId); in getDeviceIdentifier() local 336 if (device == nullptr) return InputDeviceIdentifier(); in getDeviceIdentifier() 337 return device->identifier; in getDeviceIdentifier() 342 Device* device = getDeviceLocked(deviceId); in getDeviceClasses() local 343 if (device == nullptr) return 0; in getDeviceClasses() 344 return device->classes; in getDeviceClasses() 349 Device* device = getDeviceLocked(deviceId); in getDeviceControllerNumber() local [all …]
|
D | InputReader.cpp | 192 InputDevice* device = createDeviceLocked(deviceId, controllerNumber, identifier, classes); in addDeviceLocked() local 193 device->configure(when, &mConfig, 0); in addDeviceLocked() 194 device->reset(when); in addDeviceLocked() 196 if (device->isIgnored()) { in addDeviceLocked() 201 device->getSources()); in addDeviceLocked() 204 mDevices.add(deviceId, device); in addDeviceLocked() 207 if (device->getClasses() & INPUT_DEVICE_CLASS_EXTERNAL_STYLUS) { in addDeviceLocked() 213 InputDevice* device = nullptr; in removeDeviceLocked() local 220 device = mDevices.valueAt(deviceIndex); in removeDeviceLocked() 224 if (device->isIgnored()) { in removeDeviceLocked() [all …]
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/ |
D | CommonTransitions.java | 53 private static void setRotation(UiDevice device, int rotation) { in setRotation() argument 57 device.setOrientationLeft(); in setRotation() 61 device.setOrientationRight(); in setRotation() 66 device.setOrientationNatural(); in setRotation() 76 device, int beginRotation) { in openAppWarm() argument 82 .runBeforeAll(() -> setRotation(device, beginRotation)) in openAppWarm() 84 .runBefore(device::pressHome) in openAppWarm() 85 .runBefore(device::waitForIdle) in openAppWarm() 86 .runBefore(() -> setRotation(device, beginRotation)) in openAppWarm() 94 device) { in closeAppWithBackKey() argument [all …]
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
D | BluetoothStressTest.java | 147 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/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpManager.java | 94 final MtpDevice device = new MtpDevice(rawDevice); in openDevice() local 100 if (!device.open(connection)) { in openDevice() 107 device.getStorageIds(), in openDevice() 110 mDevices.put(deviceId, device); in openDevice() 121 for (UsbDevice device : mManager.getDeviceList().values()) { in getDevices() 122 if (!isMtpDevice(device)) { in getDevices() 125 devices.add(createDeviceRecord(device)); in getDevices() 131 final MtpDevice device = getDevice(deviceId); in getObjectInfo() local 132 synchronized (device) { in getObjectInfo() 134 device.getObjectInfo(objectHandle), in getObjectInfo() [all …]
|
/frameworks/base/core/java/android/companion/ |
D | BluetoothDeviceFilterUtils.java | 54 static boolean matches(ScanFilter filter, BluetoothDevice device) { in matches() argument 55 boolean result = matchesAddress(filter.getDeviceAddress(), device) in matches() 56 && matchesServiceUuid(filter.getServiceUuid(), filter.getServiceUuidMask(), device); in matches() 57 if (DEBUG) debugLogMatchResult(result, device, filter); in matches() 61 static boolean matchesAddress(String deviceAddress, BluetoothDevice device) { in matchesAddress() argument 63 || (device != null && deviceAddress.equals(device.getAddress())); in matchesAddress() 64 if (DEBUG) debugLogMatchResult(result, device, deviceAddress); in matchesAddress() 69 List<ParcelUuid> serviceUuidMasks, BluetoothDevice device) { in matchesServiceUuids() argument 73 if (!matchesServiceUuid(uuid, uuidMask, device)) { in matchesServiceUuids() 81 BluetoothDevice device) { in matchesServiceUuid() argument [all …]
|
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/ |
D | UsbDeviceStateController.java | 38 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/core/java/android/bluetooth/ |
D | BluetoothHidHost.java | 271 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 …]
|
D | BluetoothHeadsetClient.java | 449 public boolean connect(BluetoothDevice device) { in connect() argument 450 if (DBG) log("connect(" + device + ")"); in connect() 453 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 455 return service.connect(device); in connect() 475 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 476 if (DBG) log("disconnect(" + device + ")"); in disconnect() 479 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 481 return service.disconnect(device); in disconnect() 544 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument 545 if (VDBG) log("getConnectionState(" + device + ")"); in getConnectionState() [all …]
|
D | BluetoothHearingAid.java | 170 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 …]
|
D | BluetoothA2dp.java | 279 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 …]
|
D | BluetoothMapClient.java | 161 public boolean isConnected(BluetoothDevice device) { in isConnected() argument 162 if (VDBG) Log.d(TAG, "isConnected(" + device + ")"); in isConnected() 166 return service.isConnected(device); in isConnected() 184 public boolean connect(BluetoothDevice device) { in connect() argument 185 if (DBG) Log.d(TAG, "connect(" + device + ")" + "for MAPS MCE"); in connect() 189 return service.connect(device); in connect() 209 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 210 if (DBG) Log.d(TAG, "disconnect(" + device + ")"); in disconnect() 212 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 214 return service.disconnect(device); in disconnect() [all …]
|
D | BluetoothHidDevice.java | 262 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 …]
|
D | BluetoothA2dpSink.java | 124 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 …]
|
D | BluetoothPbapClient.java | 108 public boolean connect(BluetoothDevice device) { in connect() argument 110 log("connect(" + device + ") for PBAP Client."); in connect() 113 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 115 return service.connect(device); in connect() 136 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 138 log("disconnect(" + device + ")" + new Exception()); in disconnect() 141 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 143 service.disconnect(device); in disconnect() 213 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument 215 log("getConnectionState(" + device + ")"); in getConnectionState() [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/p2p/ |
D | WifiP2pDeviceTest.java | 76 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/native/vulkan/libvulkan/ |
D | driver_gen.cpp | 34 VKAPI_ATTR VkResult checkedBindImageMemory2(VkDevice device, uint32_t bindInfoCount, const VkBindIm… in checkedBindImageMemory2() argument 35 if (GetData(device).hook_extensions[ProcHook::EXTENSION_CORE_1_1]) { in checkedBindImageMemory2() 36 return BindImageMemory2(device, bindInfoCount, pBindInfos); in checkedBindImageMemory2() 38 Logger(device).Err(device, "VK_VERSION_1_0 not enabled. vkBindImageMemory2 not executed."); in checkedBindImageMemory2() 43 VKAPI_ATTR void checkedGetDeviceQueue2(VkDevice device, const VkDeviceQueueInfo2* pQueueInfo, VkQue… in checkedGetDeviceQueue2() argument 44 if (GetData(device).hook_extensions[ProcHook::EXTENSION_CORE_1_1]) { in checkedGetDeviceQueue2() 45 GetDeviceQueue2(device, pQueueInfo, pQueue); in checkedGetDeviceQueue2() 47 Logger(device).Err(device, "VK_VERSION_1_0 not enabled. vkGetDeviceQueue2 not executed."); in checkedGetDeviceQueue2() 51 VKAPI_ATTR VkResult checkedCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR* pCre… in checkedCreateSwapchainKHR() argument 52 if (GetData(device).hook_extensions[ProcHook::KHR_swapchain]) { in checkedCreateSwapchainKHR() [all …]
|
D | api_gen.cpp | 82 VKAPI_ATTR VkResult disabledCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR*, co… in disabledCreateSwapchainKHR() argument 83 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkCreateSwapchainKHR no… in disabledCreateSwapchainKHR() 87 VKAPI_ATTR void disabledDestroySwapchainKHR(VkDevice device, VkSwapchainKHR, const VkAllocationCall… in disabledDestroySwapchainKHR() argument 88 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkDestroySwapchainKHR n… in disabledDestroySwapchainKHR() 91 VKAPI_ATTR VkResult disabledGetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR, uint32_t*, VkIma… in disabledGetSwapchainImagesKHR() argument 92 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkGetSwapchainImagesKHR… in disabledGetSwapchainImagesKHR() 96 VKAPI_ATTR VkResult disabledAcquireNextImageKHR(VkDevice device, VkSwapchainKHR, uint64_t, VkSemaph… in disabledAcquireNextImageKHR() argument 97 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkAcquireNextImageKHR n… in disabledAcquireNextImageKHR() 106 VKAPI_ATTR VkResult disabledGetDeviceGroupPresentCapabilitiesKHR(VkDevice device, VkDeviceGroupPres… in disabledGetDeviceGroupPresentCapabilitiesKHR() argument 107 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkGetDeviceGroupPresent… in disabledGetDeviceGroupPresentCapabilitiesKHR() [all …]
|
/frameworks/base/core/java/android/hardware/usb/ |
D | DeviceFilter.java | 72 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() 173 public boolean matches(UsbDevice device) { in matches() argument [all …]
|
/frameworks/native/vulkan/vkjson/ |
D | vkjson_instance.cc | 72 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/wifi/java/android/net/wifi/p2p/ |
D | WifiP2pDeviceList.java | 53 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/base/core/jni/ |
D | android_hardware_UsbDeviceConnection.cpp | 57 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/native/services/inputflinger/reader/mapper/accumulator/ |
D | TouchButtonAccumulator.cpp | 28 void TouchButtonAccumulator::configure(InputDevice* device) { in configure() argument 29 mHaveBtnTouch = device->hasKey(BTN_TOUCH); in configure() 30 mHaveStylus = device->hasKey(BTN_TOOL_PEN) || device->hasKey(BTN_TOOL_RUBBER) || in configure() 31 device->hasKey(BTN_TOOL_BRUSH) || device->hasKey(BTN_TOOL_PENCIL) || in configure() 32 device->hasKey(BTN_TOOL_AIRBRUSH); in configure() 35 void TouchButtonAccumulator::reset(InputDevice* device) { in reset() argument 36 mBtnTouch = device->isKeyPressed(BTN_TOUCH); in reset() 37 mBtnStylus = device->isKeyPressed(BTN_STYLUS); in reset() 39 mBtnStylus2 = device->isKeyPressed(BTN_STYLUS2) || device->isKeyPressed(BTN_0); in reset() 40 mBtnToolFinger = device->isKeyPressed(BTN_TOOL_FINGER); in reset() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | A2dpProfile.java | 72 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 …]
|
D | HearingAidProfile.java | 64 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 …]
|