Searched refs:device (Results 1 - 25 of 130) sorted by relevance

123456

/frameworks/base/core/java/android/bluetooth/
H A DIBluetoothA2dp.aidl28 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 isA2dpPlaying(in BluetoothDevice device);
H A DIBluetoothInputDevice.aidl28 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 DIBluetoothHeadset.aidl28 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);
40 int getBatteryUsageHint(in BluetoothDevice device);
43 boolean acceptIncomingConnect(in BluetoothDevice device);
[all...]
H A DIBluetoothPbap.aidl29 boolean connect(in BluetoothDevice device);
31 boolean isConnected(in BluetoothDevice device);
H A DIBluetooth.aidl57 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 String getRemoteAlias(in BluetoothDevice device);
64 boolean setRemoteAlias(in BluetoothDevice device, in String name);
65 int getRemoteClass(in BluetoothDevice device);
66 ParcelUuid[] getRemoteUuids(in BluetoothDevice device);
67 boolean fetchRemoteUuids(in BluetoothDevice device);
[all...]
H A DIBluetoothPan.aidl30 boolean connect(in BluetoothDevice device);
31 boolean disconnect(in BluetoothDevice device);
34 int getConnectionState(in BluetoothDevice device);
H A DBluetoothInputDevice.java58 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
271 * Initiate connection to a profile of the remote bluetooth device.
276 * device is already connected or Bluetooth is not turned on.
285 * @param device Remote Bluetooth Device
290 public boolean connect(BluetoothDevice device) { argument
291 if (DBG) log("connect(" + device + ")");
292 if (mService != null && isEnabled() && isValidDevice(device)) {
294 return mService.connect(device);
308 * Bluetooth device is not in connected state etc. When this API returns,
313 * <p> If the disconnection is initiated by a remote device, th
330 disconnect(BluetoothDevice device) argument
381 getConnectionState(BluetoothDevice device) argument
410 setPriority(BluetoothDevice device, int priority) argument
441 getPriority(BluetoothDevice device) argument
478 isValidDevice(BluetoothDevice device) argument
496 virtualUnplug(BluetoothDevice device) argument
522 getProtocolMode(BluetoothDevice device) argument
546 setProtocolMode(BluetoothDevice device, int protocolMode) argument
573 getReport(BluetoothDevice device, byte reportType, byte reportId, int bufferSize) argument
599 setReport(BluetoothDevice device, byte reportType, String report) argument
624 sendData(BluetoothDevice device, String report) argument
[all...]
H A DIBluetoothHealth.aidl34 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 DBluetoothA2dp.java42 * <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
192 * Initiate connection to a profile of the remote bluetooth device.
199 * device is already connected or Bluetooth is not turned on.
208 * @param device Remote Bluetooth Device
213 public boolean connect(BluetoothDevice device) { argument
214 if (DBG) log("connect(" + device
254 disconnect(BluetoothDevice device) argument
306 getConnectionState(BluetoothDevice device) argument
336 setPriority(BluetoothDevice device, int priority) argument
368 getPriority(BluetoothDevice device) argument
390 isA2dpPlaying(BluetoothDevice device) argument
410 shouldSendVolumeKeys(BluetoothDevice device) argument
472 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothHeadset.java59 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
80 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
310 * Initiate connection to a profile of the remote bluetooth device.
317 * device is already connected or Bluetooth is not turned on.
326 * @param device Remote Bluetooth Device
331 public boolean connect(BluetoothDevice device) { argument
332 if (DBG) log("connect(" + device + ")");
334 isValidDevice(device)) {
336 return mService.connect(device);
350 * Bluetooth device i
372 disconnect(BluetoothDevice device) argument
424 getConnectionState(BluetoothDevice device) argument
454 setPriority(BluetoothDevice device, int priority) argument
486 getPriority(BluetoothDevice device) argument
522 startVoiceRecognition(BluetoothDevice device) argument
546 stopVoiceRecognition(BluetoothDevice device) argument
569 isAudioConnected(BluetoothDevice device) argument
597 getBatteryUsageHint(BluetoothDevice device) argument
628 acceptIncomingConnect(BluetoothDevice device) argument
645 rejectIncomingConnect(BluetoothDevice device) argument
664 getAudioState(BluetoothDevice device) argument
757 startScoUsingVirtualVoiceCall(BluetoothDevice device) argument
780 stopScoUsingVirtualVoiceCall(BluetoothDevice device) argument
885 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothHealthCallback.java54 * @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
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pDeviceList.java31 * A class representing a Wi-Fi P2p device list.
54 for (WifiP2pDevice device : devices) {
55 if (device.deviceAddress != null) {
56 mDevices.put(device.deviceAddress, device);
69 public void update(WifiP2pDevice device) { argument
70 if (device == null || device.deviceAddress == null) return;
71 WifiP2pDevice d = mDevices.get(device.deviceAddress);
73 d.deviceName = device
112 remove(WifiP2pDevice device) argument
[all...]
H A DWifiP2pDevice.java27 * A class representing a Wi-Fi p2p device
36 * The device name is a user friendly string to identify a Wi-Fi p2p device
41 * The device MAC address uniquely identifies a Wi-Fi p2p device
46 * Primary device type identifies the type of device. For example, an application
49 * for the full list of standard device types supported.
54 * Secondary device type is an optional attribute that can be provided by a device i
264 update(WifiP2pDevice device) argument
[all...]
H A DWifiP2pProvDiscEvent.java41 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 DEventHub.cpp97 // 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.
244 Device* device = mClosingDevices;
245 mClosingDevices = device->next;
246 delete device;
259 Device* device
[all...]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothStressTest.java75 * 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...]
H A DBluetoothTestUtils.java153 public PairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) { argument
156 mDevice = device;
213 public ConnectProfileReceiver(BluetoothDevice device, int profile, int expectedFlags) { argument
216 mDevice = device;
267 public ConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) { argument
268 super(device, BluetoothProfile.PAN, expectedFlags);
538 * Puts the local device into discoverable mode and checks to make sure that the local device
581 * Puts the local device into connectable only mode and checks to make sure that the local
582 * device i
744 pair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument
757 acceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument
773 pairOrAcceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin, boolean shouldPair) argument
841 unpair(BluetoothAdapter adapter, BluetoothDevice device) argument
906 connectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, String methodName) argument
987 disconnectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, String methodName) argument
1064 connectPan(BluetoothAdapter adapter, BluetoothDevice device) argument
1075 incomingPanConnection(BluetoothAdapter adapter, BluetoothDevice device) argument
1088 connectPanOrIncomingPanConnection(BluetoothAdapter adapter, BluetoothDevice device, boolean connect) argument
1169 disconnectPan(BluetoothAdapter adapter, BluetoothDevice device) argument
1180 incomingPanDisconnection(BluetoothAdapter adapter, BluetoothDevice device) argument
1193 disconnectFromRemoteOrVerifyConnectNap(BluetoothAdapter adapter, BluetoothDevice device, boolean disconnect) argument
1273 startSco(BluetoothAdapter adapter, BluetoothDevice device) argument
1284 stopSco(BluetoothAdapter adapter, BluetoothDevice device) argument
1295 startStopSco(BluetoothAdapter adapter, BluetoothDevice device, boolean isStart) argument
1397 getPairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) argument
1407 getConnectProfileReceiver(BluetoothDevice device, int profile, int expectedFlags) argument
1419 getConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbDeviceConnection.cpp52 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
175 struct usb_device* device = get_device_from_object(env, thiz); local
201 struct usb_device* device = get_device_from_object(env, thiz); local
217 struct usb_device* device = get_device_from_object(env, thiz); local
[all...]
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
H A Daccessorychat.c77 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 DMtpClient.java44 * 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 DRestoreSet.java36 * 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/packages/SystemUI/src/com/android/systemui/usb/
H A DUsbDisconnectedReceiver.java29 // 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)) {
/frameworks/base/services/java/com/android/server/display/
H A DDisplayManagerService.java62 * Display adapters communicate changes in display device state to the display manager
68 * the potential for deadlocks resulting from asynchronous display device discovery.
260 * Returns true if the device is headless.
262 * @return True if the device is headless.
353 DisplayDevice device = mDisplayDevices.get(i);
354 device.blankLocked();
372 DisplayDevice device = mDisplayDevices.get(i);
373 device.unblankLocked();
602 // prevent problems that might occur due to the device being encrypted.
611 private void handleDisplayDeviceAdded(DisplayDevice device) { argument
638 handleDisplayDeviceChanged(DisplayDevice device) argument
655 handleDisplayDeviceRemoved(DisplayDevice device) argument
673 addLogicalDisplayLocked(DisplayDevice device) argument
799 configureDisplayInTransactionLocked(DisplayDevice device) argument
833 setViewportLocked(DisplayViewport viewport, LogicalDisplay display, DisplayDevice device) argument
840 findLogicalDisplayForDeviceLocked(DisplayDevice device) argument
1017 onDisplayDeviceEvent(DisplayDevice device, int event) argument
[all...]
/frameworks/base/core/java/android/hardware/usb/
H A DIUsbManager.aidl31 /* Returns a file descriptor for communicating with the USB device.
44 /* Sets the default package for a USB device
47 void setDevicePackage(in UsbDevice device, String packageName, int userId);
54 /* Returns true if the caller has permission to access the device. */
55 boolean hasDevicePermission(in UsbDevice device);
60 /* Requests permission for the given package to access the device.
64 void requestDevicePermission(in UsbDevice device, String packageName, in PendingIntent pi);
73 /* Grants permission for the given UID to access the device */
74 void grantDevicePermission(in UsbDevice device, int uid);
/frameworks/base/media/jni/
H A Dandroid_mtp_MtpDevice.cpp111 MtpDevice* device = MtpDevice::open(deviceNameStr, fd); local
114 if (device)
115 env->SetIntField(thiz, field_context, (int)device);
116 return (device != NULL);
122 MtpDevice* device = get_device_from_object(env, thiz); local
123 if (device) {
124 device->close();
125 delete device;
133 MtpDevice* device = get_device_from_object(env, thiz); local
134 if (!device) {
170 MtpDevice* device = get_device_from_object(env, thiz); local
189 MtpDevice* device = get_device_from_object(env, thiz); local
224 MtpDevice* device = get_device_from_object(env, thiz); local
243 MtpDevice* device = get_device_from_object(env, thiz); local
317 MtpDevice* device = get_device_from_object(env, thiz); local
339 MtpDevice* device = get_device_from_object(env, thiz); local
357 MtpDevice* device = get_device_from_object(env, thiz); local
367 MtpDevice* device = get_device_from_object(env, thiz); local
377 MtpDevice* device = get_device_from_object(env, thiz); local
387 MtpDevice* device = get_device_from_object(env, thiz); local
[all...]

Completed in 1942 milliseconds

123456