/frameworks/native/services/inputflinger/ |
D | EventHub.cpp | 230 Device* device = mClosingDevices; in ~EventHub() local 231 mClosingDevices = device->next; in ~EventHub() 232 delete device; in ~EventHub() 245 Device* device = getDeviceLocked(deviceId); in getDeviceIdentifier() local 246 if (device == NULL) return InputDeviceIdentifier(); in getDeviceIdentifier() 247 return device->identifier; in getDeviceIdentifier() 252 Device* device = getDeviceLocked(deviceId); in getDeviceClasses() local 253 if (device == NULL) return 0; in getDeviceClasses() 254 return device->classes; in getDeviceClasses() 259 Device* device = getDeviceLocked(deviceId); in getDeviceControllerNumber() local [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | IBluetoothHeadsetClient.aidl | 29 boolean connect(in BluetoothDevice device); in connect() argument 30 boolean disconnect(in BluetoothDevice device); in disconnect() argument 32 boolean acceptIncomingConnect(in BluetoothDevice device); in acceptIncomingConnect() argument 33 boolean rejectIncomingConnect(in BluetoothDevice device); in rejectIncomingConnect() argument 37 int getConnectionState(in BluetoothDevice device); in getConnectionState() argument 38 boolean setPriority(in BluetoothDevice device, int priority); in setPriority() argument 39 int getPriority(in BluetoothDevice device); in getPriority() argument 41 boolean startVoiceRecognition(in BluetoothDevice device); in startVoiceRecognition() argument 42 boolean stopVoiceRecognition(in BluetoothDevice device); in stopVoiceRecognition() argument 44 List<BluetoothHeadsetClientCall> getCurrentCalls(in BluetoothDevice device); in getCurrentCalls() argument [all …]
|
D | BluetoothHeadsetClient.java | 479 public boolean connect(BluetoothDevice device) { in connect() argument 480 if (DBG) log("connect(" + device + ")"); in connect() 482 isValidDevice(device)) { in connect() 484 return mService.connect(device); in connect() 503 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 504 if (DBG) log("disconnect(" + device + ")"); in disconnect() 506 isValidDevice(device)) { in disconnect() 508 return mService.disconnect(device); in disconnect() 568 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument 569 if (VDBG) log("getConnectionState(" + device + ")"); in getConnectionState() [all …]
|
D | IBluetooth.aidl | 58 boolean createBond(in BluetoothDevice device, in int transport); in createBond() argument 59 boolean cancelBondProcess(in BluetoothDevice device); in cancelBondProcess() argument 60 boolean removeBond(in BluetoothDevice device); in removeBond() argument 61 int getBondState(in BluetoothDevice device); in getBondState() argument 62 int getConnectionState(in BluetoothDevice device); in getConnectionState() argument 64 String getRemoteName(in BluetoothDevice device); in getRemoteName() argument 65 int getRemoteType(in BluetoothDevice device); in getRemoteType() argument 66 String getRemoteAlias(in BluetoothDevice device); in getRemoteAlias() argument 67 boolean setRemoteAlias(in BluetoothDevice device, in String name); in setRemoteAlias() argument 68 int getRemoteClass(in BluetoothDevice device); in getRemoteClass() argument [all …]
|
D | BluetoothInputDevice.java | 314 public boolean connect(BluetoothDevice device) { in connect() argument 315 if (DBG) log("connect(" + device + ")"); in connect() 316 if (mService != null && isEnabled() && isValidDevice(device)) { in connect() 318 return mService.connect(device); in connect() 354 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 355 if (DBG) log("disconnect(" + device + ")"); in disconnect() 356 if (mService != null && isEnabled() && isValidDevice(device)) { in disconnect() 358 return mService.disconnect(device); in disconnect() 405 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument 406 if (VDBG) log("getState(" + device + ")"); in getConnectionState() [all …]
|
D | IBluetoothHeadset.aidl | 28 boolean connect(in BluetoothDevice device); in connect() argument 29 boolean disconnect(in BluetoothDevice device); in disconnect() argument 32 int getConnectionState(in BluetoothDevice device); in getConnectionState() argument 33 boolean setPriority(in BluetoothDevice device, int priority); in setPriority() argument 34 int getPriority(in BluetoothDevice device); in getPriority() argument 35 boolean startVoiceRecognition(in BluetoothDevice device); in startVoiceRecognition() argument 36 boolean stopVoiceRecognition(in BluetoothDevice device); in stopVoiceRecognition() argument 37 boolean isAudioConnected(in BluetoothDevice device); in isAudioConnected() argument 38 boolean sendVendorSpecificResultCode(in BluetoothDevice device, in sendVendorSpecificResultCode() argument 43 int getBatteryUsageHint(in BluetoothDevice device); in getBatteryUsageHint() argument [all …]
|
D | BluetoothHeadset.java | 341 public boolean connect(BluetoothDevice device) { in connect() argument 342 if (DBG) log("connect(" + device + ")"); in connect() 344 isValidDevice(device)) { in connect() 346 return mService.connect(device); in connect() 382 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 383 if (DBG) log("disconnect(" + device + ")"); in disconnect() 385 isValidDevice(device)) { in disconnect() 387 return mService.disconnect(device); in disconnect() 434 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument 435 if (VDBG) log("getConnectionState(" + device + ")"); in getConnectionState() [all …]
|
D | IBluetoothInputDevice.aidl | 28 boolean connect(in BluetoothDevice device); in connect() argument 29 boolean disconnect(in BluetoothDevice device); in disconnect() argument 32 int getConnectionState(in BluetoothDevice device); in getConnectionState() argument 33 boolean setPriority(in BluetoothDevice device, int priority); in setPriority() argument 34 int getPriority(in BluetoothDevice device); in getPriority() argument 38 boolean getProtocolMode(in BluetoothDevice device); in getProtocolMode() argument 42 boolean virtualUnplug(in BluetoothDevice device); in virtualUnplug() argument 46 boolean setProtocolMode(in BluetoothDevice device, int protocolMode); in setProtocolMode() argument 50 boolean getReport(in BluetoothDevice device, byte reportType, byte reportId, int bufferSize); in getReport() argument 54 boolean setReport(in BluetoothDevice device, byte reportType, String report); in setReport() argument [all …]
|
D | BluetoothA2dp.java | 226 public boolean connect(BluetoothDevice device) { in connect() argument 227 if (DBG) log("connect(" + device + ")"); in connect() 229 isValidDevice(device)) { in connect() 231 return mService.connect(device); in connect() 267 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 268 if (DBG) log("disconnect(" + device + ")"); in disconnect() 270 isValidDevice(device)) { in disconnect() 272 return mService.disconnect(device); in disconnect() 319 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument 320 if (VDBG) log("getState(" + device + ")"); in getConnectionState() [all …]
|
D | BluetoothMap.java | 194 public boolean isConnected(BluetoothDevice device) { in isConnected() argument 195 if (VDBG) log("isConnected(" + device + ")"); in isConnected() 198 return mService.isConnected(device); in isConnected() 211 public boolean connect(BluetoothDevice device) { in connect() argument 212 if (DBG) log("connect(" + device + ")" + "not supported for MAPS"); in connect() 223 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 224 if (DBG) log("disconnect(" + device + ")"); in disconnect() 226 isValidDevice(device)) { in disconnect() 228 return mService.disconnect(device); in disconnect() 301 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument [all …]
|
D | BluetoothGattServerCallback.java | 35 public void onConnectionStateChange(BluetoothDevice device, int status, in onConnectionStateChange() argument 60 public void onCharacteristicReadRequest(BluetoothDevice device, int requestId, in onCharacteristicReadRequest() argument 79 public void onCharacteristicWriteRequest(BluetoothDevice device, int requestId, in onCharacteristicWriteRequest() argument 96 public void onDescriptorReadRequest(BluetoothDevice device, int requestId, in onDescriptorReadRequest() argument 115 public void onDescriptorWriteRequest(BluetoothDevice device, int requestId, in onDescriptorWriteRequest() argument 132 public void onExecuteWrite(BluetoothDevice device, int requestId, boolean execute) { in onExecuteWrite() argument 146 public void onNotificationSent(BluetoothDevice device, int status) { in onNotificationSent() argument 158 public void onMtuChanged(BluetoothDevice device, int mtu) { in onMtuChanged() argument
|
/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() 86 public void update(WifiP2pDevice device) { in update() argument 87 updateSupplicantDetails(device); in update() 88 mDevices.get(device.deviceAddress).status = device.status; in update() 92 public void updateSupplicantDetails(WifiP2pDevice device) { in updateSupplicantDetails() argument [all …]
|
D | WifiP2pDevice.java | 271 public void update(WifiP2pDevice device) { in update() argument 272 updateSupplicantDetails(device); in update() 273 status = device.status; in update() 277 public void updateSupplicantDetails(WifiP2pDevice device) { in updateSupplicantDetails() argument 278 if (device == null) { in updateSupplicantDetails() 281 if (device.deviceAddress == null) { in updateSupplicantDetails() 284 if (!deviceAddress.equals(device.deviceAddress)) { in updateSupplicantDetails() 287 deviceName = device.deviceName; in updateSupplicantDetails() 288 primaryDeviceType = device.primaryDeviceType; in updateSupplicantDetails() 289 secondaryDeviceType = device.secondaryDeviceType; in updateSupplicantDetails() [all …]
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
D | BluetoothStressTest.java | 156 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testPair() local 159 mTestUtils.unpair(adapter, device); in testPair() 163 mTestUtils.pair(adapter, device, BluetoothTestRunner.sDevicePairPasskey, in testPair() 165 mTestUtils.unpair(adapter, device); in testPair() 182 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testAcceptPair() local 185 mTestUtils.unpair(adapter, device); in testAcceptPair() 189 mTestUtils.acceptPair(adapter, device, BluetoothTestRunner.sDevicePairPasskey, in testAcceptPair() 191 mTestUtils.unpair(adapter, device); in testAcceptPair() 209 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectA2dp() local 212 mTestUtils.unpair(adapter, device); in testConnectA2dp() [all …]
|
D | BluetoothTestUtils.java | 154 public PairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) { in PairReceiver() argument 157 mDevice = device; in PairReceiver() 214 public ConnectProfileReceiver(BluetoothDevice device, int profile, int expectedFlags) { in ConnectProfileReceiver() argument 217 mDevice = device; in ConnectProfileReceiver() 268 public ConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) { in ConnectPanReceiver() argument 269 super(device, BluetoothProfile.PAN, expectedFlags); in ConnectPanReceiver() 745 public void pair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) { in pair() argument 746 pairOrAcceptPair(adapter, device, passkey, pin, true); in pair() 758 public void acceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, in acceptPair() argument 760 pairOrAcceptPair(adapter, device, passkey, pin, false); in acceptPair() [all …]
|
/frameworks/base/core/jni/ |
D | android_hardware_UsbDeviceConnection.cpp | 52 struct usb_device* device = usb_device_new(deviceNameStr, fd); in android_hardware_UsbDeviceConnection_open() local 53 if (device) { in android_hardware_UsbDeviceConnection_open() 54 env->SetLongField(thiz, field_context, (jlong)device); in android_hardware_UsbDeviceConnection_open() 61 return (device != NULL) ? JNI_TRUE : JNI_FALSE; in android_hardware_UsbDeviceConnection_open() 68 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_close() local 69 if (device) { in android_hardware_UsbDeviceConnection_close() 70 usb_device_close(device); in android_hardware_UsbDeviceConnection_close() 78 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_get_fd() local 79 if (!device) { in android_hardware_UsbDeviceConnection_get_fd() 83 return usb_device_get_fd(device); in android_hardware_UsbDeviceConnection_get_fd() [all …]
|
D | android_server_FingerprintManager.cpp | 57 fingerprint_device_t *device; member 114 int ret = gContext.device->enroll(gContext.device, timeout); in nativeEnroll() 120 int ret = gContext.device->enroll_cancel(gContext.device); in nativeEnrollCancel() 126 int ret = gContext.device->remove(gContext.device, fingerprintId); in nativeRemove() 150 hw_device_t *device = NULL; in nativeOpenHal() local 152 if (0 != (err = gContext.module->common.methods->open(hw_module, NULL, &device))) { in nativeOpenHal() 157 if (kVersion != device->version) { in nativeOpenHal() 158 ALOGE("Wrong fp version. Expected %d, got %d", kVersion, device->version); in nativeOpenHal() 162 gContext.device = reinterpret_cast<fingerprint_device_t*>(device); in nativeOpenHal() 163 err = gContext.device->set_notify(gContext.device, hal_notify_callback); in nativeOpenHal() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BluetoothUtil.java | 84 public static String deviceToString(BluetoothDevice device) { in deviceToString() argument 85 return device == null ? null : (device.getAddress() + '[' + device.getAliasName() + ']'); in deviceToString() 88 public static String uuidsToString(BluetoothDevice device) { in uuidsToString() argument 89 if (device == null) return null; in uuidsToString() 90 final ParcelUuid[] ids = device.getUuids(); in uuidsToString() 134 public boolean connect(BluetoothDevice device) { in newProfile() 135 return a2dp.connect(device); in newProfile() 139 public boolean disconnect(BluetoothDevice device) { in newProfile() argument 140 return a2dp.disconnect(device); in newProfile() 148 public boolean connect(BluetoothDevice device) { [all …]
|
/frameworks/base/libs/usb/tests/accessorytest/ |
D | usb.c | 78 static void send_string(struct usb_device *device, int index, const char* string) { in send_string() argument 79 usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, in send_string() 91 struct usb_device *device = usb_device_open(devname); in usb_device_added() local 92 if (!device) { in usb_device_added() 97 vendorId = usb_device_get_vendor_id(device); in usb_device_added() 98 productId = usb_device_get_product_id(device); in usb_device_added() 104 current_device = device; in usb_device_added() 116 usb_descriptor_iter_init(device, &iter); in usb_device_added() 137 if (usb_device_claim_interface(device, intf->bInterfaceNumber)) { in usb_device_added() 157 ret = usb_device_control_transfer(device, USB_DIR_IN | USB_TYPE_VENDOR, in usb_device_added() [all …]
|
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
D | accessorychat.c | 77 static void send_string(struct usb_device *device, int index, const char* string) { in send_string() argument 78 int ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, in send_string() 92 struct usb_device *device = usb_device_open(devname); in usb_device_added() local 93 if (!device) { in usb_device_added() 98 vendorId = usb_device_get_vendor_id(device); in usb_device_added() 99 productId = usb_device_get_product_id(device); in usb_device_added() 110 sDevice = device; in usb_device_added() 112 usb_descriptor_iter_init(device, &iter); in usb_device_added() 133 if (usb_device_claim_interface(device, intf->bInterfaceNumber)) { in usb_device_added() 149 ret = usb_device_control_transfer(device, USB_DIR_IN | USB_TYPE_VENDOR, in usb_device_added() [all …]
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | FrameProcessorBase.cpp | 30 FrameProcessorBase::FrameProcessorBase(wp<CameraDeviceBase> device) : in FrameProcessorBase() argument 32 mDevice(device), in FrameProcessorBase() 34 sp<CameraDeviceBase> cameraDevice = device.promote(); in FrameProcessorBase() 104 sp<CameraDeviceBase> device; in threadLoop() local 106 device = mDevice.promote(); in threadLoop() 107 if (device == 0) return false; in threadLoop() 110 res = device->waitForNextFrame(kWaitDuration); in threadLoop() 112 processNewFrames(device); in threadLoop() 121 void FrameProcessorBase::processNewFrames(const sp<CameraDeviceBase> &device) { in processNewFrames() argument 126 ALOGV("%s: Camera %d: Process new frames", __FUNCTION__, device->getId()); in processNewFrames() [all …]
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
D | MtpClient.java | 118 public void deviceAdded(MtpDevice device); in deviceAdded() argument 125 public void deviceRemoved(MtpDevice device); in deviceRemoved() argument 135 static public boolean isCamera(UsbDevice device) { in isCamera() argument 136 int count = device.getInterfaceCount(); in isCamera() 138 UsbInterface intf = device.getInterface(i); in isCamera() 274 MtpDevice device = getDevice(deviceName); in getStorageList() local 275 if (device == null) { in getStorageList() 278 int[] storageIds = device.getStorageIds(); in getStorageList() 286 MtpStorageInfo info = device.getStorageInfo(storageIds[i]); in getStorageList() 306 MtpDevice device = getDevice(deviceName); in getObjectInfo() local [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | VirtualDisplayAdapter.java | 72 VirtualDisplayDevice device = new VirtualDisplayDevice(displayToken, appToken, in createVirtualDisplayLocked() local 76 mVirtualDisplayDevices.put(appToken, device); in createVirtualDisplayLocked() 82 appToken.linkToDeath(device, 0); in createVirtualDisplayLocked() 85 device.destroyLocked(); in createVirtualDisplayLocked() 91 return device; in createVirtualDisplayLocked() 96 VirtualDisplayDevice device = mVirtualDisplayDevices.get(appToken); in resizeVirtualDisplayLocked() local 97 if (device != null) { in resizeVirtualDisplayLocked() 98 device.resizeLocked(width, height, densityDpi); in resizeVirtualDisplayLocked() 104 VirtualDisplayDevice device = mVirtualDisplayDevices.get(appToken); in setVirtualDisplaySurfaceLocked() local 105 if (device != null) { in setVirtualDisplaySurfaceLocked() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | CastTile.java | 99 for (CastDevice device : devices) { in handleUpdateState() 100 if (device.state == CastDevice.STATE_CONNECTED) { in handleUpdateState() 102 state.label = getDeviceName(device); in handleUpdateState() 103 } else if (device.state == CastDevice.STATE_CONNECTING) { in handleUpdateState() 124 private String getDeviceName(CastDevice device) { in getDeviceName() argument 125 return device.name != null ? device.name in getDeviceName() 198 for (CastDevice device : devices) { in updateItems() 199 if (device.state == CastDevice.STATE_CONNECTED) { in updateItems() 202 item.line1 = getDeviceName(device); in updateItems() 204 item.tag = device; in updateItems() [all …]
|
/frameworks/base/media/jni/ |
D | android_mtp_MtpDevice.cpp | 112 MtpDevice* device = MtpDevice::open(deviceNameStr, fd); in android_mtp_MtpDevice_open() local 115 if (device) in android_mtp_MtpDevice_open() 116 env->SetLongField(thiz, field_context, (jlong)device); in android_mtp_MtpDevice_open() 117 return (jboolean)(device != NULL); in android_mtp_MtpDevice_open() 123 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_close() local 124 if (device) { in android_mtp_MtpDevice_close() 125 device->close(); in android_mtp_MtpDevice_close() 126 delete device; in android_mtp_MtpDevice_close() 134 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_get_device_info() local 135 if (!device) { in android_mtp_MtpDevice_get_device_info() [all …]
|