/frameworks/base/core/java/android/bluetooth/ |
H A D | IBluetoothHeadset.aidl | 28 boolean connect(in BluetoothDevice device); 29 boolean disconnect(in BluetoothDevice device); 32 int getConnectionState(in BluetoothDevice device); 33 boolean setPriority(in BluetoothDevice device, int priority); 34 int getPriority(in BluetoothDevice device); 35 boolean startVoiceRecognition(in BluetoothDevice device); 36 boolean stopVoiceRecognition(in BluetoothDevice device); 37 boolean isAudioConnected(in BluetoothDevice device); 38 boolean sendVendorSpecificResultCode(in BluetoothDevice device, 43 int getBatteryUsageHint(in BluetoothDevice device); [all...] |
H A D | IBluetoothInputDevice.aidl | 28 boolean connect(in BluetoothDevice device); 29 boolean disconnect(in BluetoothDevice device); 32 int getConnectionState(in BluetoothDevice device); 33 boolean setPriority(in BluetoothDevice device, int priority); 34 int getPriority(in BluetoothDevice device); 38 boolean getProtocolMode(in BluetoothDevice device); 42 boolean virtualUnplug(in BluetoothDevice device); 46 boolean setProtocolMode(in BluetoothDevice device, int protocolMode); 50 boolean getReport(in BluetoothDevice device, byte reportType, byte reportId, int bufferSize); 54 boolean setReport(in BluetoothDevice device, byt [all...] |
H A D | IBluetooth.aidl | 57 boolean createBond(in BluetoothDevice device); 58 boolean cancelBondProcess(in BluetoothDevice device); 59 boolean removeBond(in BluetoothDevice device); 60 int getBondState(in BluetoothDevice device); 62 String getRemoteName(in BluetoothDevice device); 63 int getRemoteType(in BluetoothDevice device); 64 String getRemoteAlias(in BluetoothDevice device); 65 boolean setRemoteAlias(in BluetoothDevice device, in String name); 66 int getRemoteClass(in BluetoothDevice device); 67 ParcelUuid[] getRemoteUuids(in BluetoothDevice device); [all...] |
H A D | IBluetoothPbap.aidl | 29 boolean connect(in BluetoothDevice device); 31 boolean isConnected(in BluetoothDevice device);
|
H A D | IBluetoothA2dp.aidl | 28 boolean connect(in BluetoothDevice device); 29 boolean disconnect(in BluetoothDevice device); 32 int getConnectionState(in BluetoothDevice device); 33 boolean setPriority(in BluetoothDevice device, int priority); 34 int getPriority(in BluetoothDevice device); 38 boolean isA2dpPlaying(in BluetoothDevice device);
|
H A D | IBluetoothMap.aidl | 29 boolean connect(in BluetoothDevice device); 30 boolean disconnect(in BluetoothDevice device); 31 boolean isConnected(in BluetoothDevice device); 34 int getConnectionState(in BluetoothDevice device); 35 boolean setPriority(in BluetoothDevice device, int priority); 36 int getPriority(in BluetoothDevice device);
|
H A D | BluetoothGattServerCallback.java | 29 * Callback indicating when a remote device has been connected or disconnected. 31 * @param device Remote device that has been connected or disconnected. 37 public void onConnectionStateChange(BluetoothDevice device, int status, argument 57 * @param device The remote device that has requested the read operation 62 public void onCharacteristicReadRequest(BluetoothDevice device, int requestId, argument 72 * @param device The remote device that has requested the write operation 77 * @param responseNeeded true, if the remote device require 81 onCharacteristicWriteRequest(BluetoothDevice device, int requestId, BluetoothGattCharacteristic characteristic, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument 98 onDescriptorReadRequest(BluetoothDevice device, int requestId, int offset, BluetoothGattDescriptor descriptor) argument 117 onDescriptorWriteRequest(BluetoothDevice device, int requestId, BluetoothGattDescriptor descriptor, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument 134 onExecuteWrite(BluetoothDevice device, int requestId, boolean execute) argument [all...] |
H A D | IBluetoothPan.aidl | 30 boolean connect(in BluetoothDevice device); 31 boolean disconnect(in BluetoothDevice device); 34 int getConnectionState(in BluetoothDevice device);
|
H A D | IBluetoothHealth.aidl | 34 boolean connectChannelToSource(in BluetoothDevice device, in BluetoothHealthAppConfiguration config); 35 boolean connectChannelToSink(in BluetoothDevice device, in BluetoothHealthAppConfiguration config, 37 boolean disconnectChannel(in BluetoothDevice device, in BluetoothHealthAppConfiguration config, int id); 38 ParcelFileDescriptor getMainChannelFd(in BluetoothDevice device, in BluetoothHealthAppConfiguration config); 41 int getHealthDeviceConnectionState(in BluetoothDevice device);
|
H A D | BluetoothInputDevice.java | 58 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li> 277 * Initiate connection to a profile of the remote bluetooth device. 282 * device is already connected or Bluetooth is not turned on. 291 * @param device Remote Bluetooth Device 296 public boolean connect(BluetoothDevice device) { argument 297 if (DBG) log("connect(" + device + ")"); 298 if (mService != null && isEnabled() && isValidDevice(device)) { 300 return mService.connect(device); 314 * Bluetooth device is not in connected state etc. When this API returns, 319 * <p> If the disconnection is initiated by a remote device, th 336 disconnect(BluetoothDevice device) argument 387 getConnectionState(BluetoothDevice device) argument 416 setPriority(BluetoothDevice device, int priority) argument 447 getPriority(BluetoothDevice device) argument 484 isValidDevice(BluetoothDevice device) argument 502 virtualUnplug(BluetoothDevice device) argument 528 getProtocolMode(BluetoothDevice device) argument 552 setProtocolMode(BluetoothDevice device, int protocolMode) argument 579 getReport(BluetoothDevice device, byte reportType, byte reportId, int bufferSize) argument 605 setReport(BluetoothDevice device, byte reportType, String report) argument 630 sendData(BluetoothDevice device, String report) argument [all...] |
H A D | BluetoothHealthCallback.java | 54 * @param device The Bluetooth Device 62 BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd, 64 Log.d(TAG, "onHealthChannelStateChange: " + config + "Device: " + device + 61 onHealthChannelStateChange(BluetoothHealthAppConfiguration config, BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd, int channelId) argument
|
H A D | BluetoothA2dp.java | 42 * <p> Android only supports one connected Bluetooth A2dp device at a time. 58 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li> 80 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li> 94 * A2DP sink device is streaming music. This state can be one of 101 * A2DP sink device is NOT streaming music. This state can be one of 199 * Initiate connection to a profile of the remote bluetooth device. 206 * device is already connected or Bluetooth is not turned on. 215 * @param device Remote Bluetooth Device 220 public boolean connect(BluetoothDevice device) { argument 221 if (DBG) log("connect(" + device 261 disconnect(BluetoothDevice device) argument 313 getConnectionState(BluetoothDevice device) argument 343 setPriority(BluetoothDevice device, int priority) argument 375 getPriority(BluetoothDevice device) argument 457 isA2dpPlaying(BluetoothDevice device) argument 477 shouldSendVolumeKeys(BluetoothDevice device) argument 539 isValidDevice(BluetoothDevice device) argument [all...] |
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
H A D | WifiP2pDeviceList.java | 31 * A class representing a Wi-Fi P2p device list. 54 for (WifiP2pDevice device : devices) { 55 if (device.deviceAddress != null) { 56 mDevices.put(device.deviceAddress, new WifiP2pDevice(device)); 61 private void validateDevice(WifiP2pDevice device) { argument 62 if (device == null) throw new IllegalArgumentException("Null device"); 63 if (TextUtils.isEmpty(device.deviceAddress)) { 82 * Add/update a device t 87 update(WifiP2pDevice device) argument 93 updateSupplicantDetails(WifiP2pDevice device) argument 139 remove(WifiP2pDevice device) argument [all...] |
H A D | WifiP2pDevice.java | 27 * A class representing a Wi-Fi p2p device 37 * The device name is a user friendly string to identify a Wi-Fi p2p device 42 * The device MAC address uniquely identifies a Wi-Fi p2p device 47 * Primary device type identifies the type of device. For example, an application 50 * for the full list of standard device types supported. 55 * Secondary device type is an optional attribute that can be provided by a device i 271 update(WifiP2pDevice device) argument 277 updateSupplicantDetails(WifiP2pDevice device) argument [all...] |
H A D | WifiP2pProvDiscEvent.java | 41 public WifiP2pDevice device; field in class:WifiP2pProvDiscEvent 47 device = new WifiP2pDevice(); 75 device = new WifiP2pDevice(); 76 device.deviceAddress = tokens[1]; 85 sbuf.append(device);
|
/frameworks/base/services/input/ |
H A D | EventHub.cpp | 97 // Compute a device descriptor that uniquely identifies the device. 107 // If we don't know the vendor and product id, then the device is probably 109 // the input device. Usually we try to avoid relying on the device name or 110 // location but for built-in input device, they are unlikely to ever change. 245 Device* device = mClosingDevices; 246 mClosingDevices = device->next; 247 delete device; 260 Device* device [all...] |
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraDeviceFactory.cpp | 41 sp<CameraDeviceBase> device; local 46 device = new Camera2Device(cameraId); 49 device = new Camera3Device(cameraId); 52 ALOGE("%s: Camera %d: Unknown HAL device version %d", 54 device = NULL; 58 ALOGV_IF(device != 0, "Created a new camera device for version %d", 61 return device;
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
H A D | BluetoothStressTest.java | 75 * Stress test for putting the device in and taking the device out of discoverable mode. 144 * Stress test for pairing and unpairing with a remote device. 146 * In this test, the local device initiates pairing with a remote device, and then unpairs with 147 * the device after the pairing has successfully completed. 156 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); 159 mTestUtils.unpair(adapter, device); 163 mTestUtils.pair(adapter, device, BluetoothTestRunner.sDevicePairPasskey, 165 mTestUtils.unpair(adapter, device); [all...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_UsbDeviceConnection.cpp | 52 struct usb_device* device = usb_device_new(deviceNameStr, fd); local 53 if (device) { 54 env->SetIntField(thiz, field_context, (int)device); 61 return (device != NULL); 68 struct usb_device* device = get_device_from_object(env, thiz); local 69 if (device) { 70 usb_device_close(device); 78 struct usb_device* device = get_device_from_object(env, thiz); local 79 if (!device) { 80 ALOGE("device i 111 struct usb_device* device = get_device_from_object(env, thiz); local 129 struct usb_device* device = get_device_from_object(env, thiz); local 147 struct usb_device* device = get_device_from_object(env, thiz); local 172 struct usb_device* device = get_device_from_object(env, thiz); local 195 struct usb_device* device = get_device_from_object(env, thiz); local 211 struct usb_device* device = get_device_from_object(env, thiz); local [all...] |
/frameworks/av/services/camera/libcameraservice/common/ |
H A D | FrameProcessorBase.cpp | 30 FrameProcessorBase::FrameProcessorBase(wp<CameraDeviceBase> device) : argument 32 mDevice(device) { 82 sp<CameraDeviceBase> device; local 84 device = mDevice.promote(); 85 if (device == 0) return false; 88 res = device->waitForNextFrame(kWaitDuration); 90 processNewFrames(device); 99 void FrameProcessorBase::processNewFrames(const sp<CameraDeviceBase> &device) { argument 104 ALOGV("%s: Camera %d: Process new frames", __FUNCTION__, device->getId()); 106 while ( (res = device 136 processSingleFrame(CameraMetadata &frame, const sp<CameraDeviceBase> &device) argument 143 processListeners(const CameraMetadata &frame, const sp<CameraDeviceBase> &device) argument [all...] |
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
H A D | accessorychat.c | 77 static void send_string(struct usb_device *device, int index, const char* string) { argument 78 int ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, 92 struct usb_device *device = usb_device_open(devname); local 93 if (!device) { 98 vendorId = usb_device_get_vendor_id(device); 99 productId = usb_device_get_product_id(device); 109 printf("Found android device in accessory mode\n"); 110 sDevice = device; 112 usb_descriptor_iter_init(device, &iter); 133 if (usb_device_claim_interface(device, int [all...] |
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
H A D | MtpClient.java | 44 * and notifies the application when the MTP device list changes. 57 // so we can inform when the device has been detached. 114 * Called when a new device has been added 116 * @param device the new device that was added 118 public void deviceAdded(MtpDevice device); argument 121 * Called when a new device has been removed 123 * @param device the device that was removed 125 public void deviceRemoved(MtpDevice device); argument 135 isCamera(UsbDevice device) argument [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | RestoreSet.java | 36 * Identifier of the device whose data this is. This will be as unique as 39 public String device; field in class:RestoreSet 55 device = _dev; 67 out.writeString(device); 84 device = in.readString();
|
/frameworks/base/services/java/com/android/server/display/ |
H A D | VirtualDisplayAdapter.java | 55 VirtualDisplayDevice device = new VirtualDisplayDevice(displayToken, appToken, 59 appToken.linkToDeath(device, 0); 61 device.destroyLocked(); 65 mVirtualDisplayDevices.put(appToken, device); 67 // Return the display device without actually sending the event indicating 69 return device; 73 VirtualDisplayDevice device = mVirtualDisplayDevices.remove(appToken); 74 if (device != null) { 75 device.destroyLocked(); 76 appToken.unlinkToDeath(device, [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
H A D | UsbDisconnectedReceiver.java | 29 // if their device/accessory is disconnected while the dialog is still open 35 public UsbDisconnectedReceiver(Activity activity, UsbDevice device) { argument 37 mDevice = device; 55 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); 56 if (device != null && device.equals(mDevice)) {
|