Searched refs:device (Results 101 - 125 of 129) sorted by last modified time

123456

/frameworks/base/core/java/android/bluetooth/
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 DBluetoothPan.java57 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
58 * <li> {@link #EXTRA_LOCAL_ROLE} - Which local role the remote device is
77 * The local role of the PAN profile that the remote device is bound to.
84 * The local device is acting as a Network Access Point.
90 * The local device is acting as a PAN User.
193 * Initiate connection to a profile of the remote bluetooth device.
196 * device is already connected or Bluetooth is not turned on.
205 * @param device Remote Bluetooth Device
210 public boolean connect(BluetoothDevice device) { argument
211 if (DBG) log("connect(" + device
251 disconnect(BluetoothDevice device) argument
303 getConnectionState(BluetoothDevice device) argument
361 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothPbap.java223 * Get the currently connected remote Bluetooth device (PCE).
224 * @return The remote Bluetooth device, or null if not in connected or
242 * Returns true if the specified Bluetooth device is connected (does not
246 public boolean isConnected(BluetoothDevice device) { argument
247 if (VDBG) log("isConnected(" + device + ")");
250 return mService.isConnected(device);
280 * This is a simple heuristic that tries to guess if a device with the
283 * @return True if this device might support PBAP.
H A DBluetoothProfile.java35 * Bluetooth device.
43 * Bluetooth device.
112 * Default priority when not set or when the device is unpaired
149 * @param device Remote bluetooth device.
154 public int getConnectionState(BluetoothDevice device); argument
H A DBluetoothSocket.java53 * <p>To create a {@link BluetoothSocket} for connecting to a known device, use
56 * Then call {@link #connect()} to attempt a connection to the remote device.
106 private BluetoothDevice mDevice; /* remote device */
141 * @param auth require the remote device to be authenticated
143 * @param device remote device that this socket can connect to
150 BluetoothDevice device, int port, ParcelUuid uuid) throws IOException {
162 mDevice = device;
168 if (device == null) {
173 mAddress = device
149 BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, BluetoothDevice device, int port, ParcelUuid uuid) argument
[all...]
H A DBluetoothTetheringDataTracker.java131 for (BluetoothDevice device: mBluetoothPan.getConnectedDevices()) {
132 mBluetoothPan.disconnect(device);
161 * @return true - If are we currently tethered with another 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 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 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 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 DIBluetoothHealthCallback.aidl30 in BluetoothDevice device, int prevState, int newState, in
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 DIBluetoothPan.aidl30 boolean connect(in BluetoothDevice device);
31 boolean disconnect(in BluetoothDevice device);
34 int getConnectionState(in BluetoothDevice device);
H A DIBluetoothPbap.aidl29 boolean connect(in BluetoothDevice device);
31 boolean isConnected(in BluetoothDevice device);
/frameworks/base/core/java/android/hardware/input/
H A DInputManager.java195 * Gets information about the input device with the specified id.
196 * @param id The device id.
197 * @return The input device or null if not found.
213 throw new RuntimeException("Could not get input device information.", ex);
222 * Gets information about the input device with the specified descriptor.
223 * @param descriptor The input device descriptor.
224 * @return The input device or null if not found.
258 * @return The input device ids.
274 * Registers an input device listener to receive notifications about when
297 * Unregisters an input device listene
[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);
H A DUsbDeviceConnection.java26 * This class is used for sending and receiving data and control messages to a USB device.
42 public UsbDeviceConnection(UsbDevice device) { argument
43 mDevice = device;
51 * Releases all system resources related to the device.
54 * to retrieve a new instance to reestablish communication with the device.
61 * Returns the native file descriptor for the device, or
62 * -1 if the device is not opened.
63 * This is intended for passing to native code to access the device.
72 * Returns the raw USB descriptors for the device.
105 * Performs a control transaction on endpoint zero for this device
[all...]
H A DUsbManager.java50 * Broadcast Action: A sticky broadcast for USB state change events when in device mode.
79 * Broadcast Action: A broadcast for USB device attached event.
81 * This intent is sent when a USB device is attached to the USB bus when in host mode.
84 * for the attached device
91 * Broadcast Action: A broadcast for USB device detached event.
93 * This intent is sent when a USB device is detached from the USB bus when in host mode.
96 * for the detached device
201 * containing the UsbDevice object for the device.
204 public static final String EXTRA_DEVICE = "device";
234 * USB device nam
262 openDevice(UsbDevice device) argument
324 hasPermission(UsbDevice device) argument
369 requestPermission(UsbDevice device, PendingIntent pi) argument
[all...]
/frameworks/base/core/java/android/view/
H A DKeyCharacterMap.java30 * Describes the keys provided by a keyboard device and their associated labels.
34 * The id of the device's primary built in keyboard is always 0.
37 * guarantee that a device has a built-in keyboard that can be used for
42 * use the device id specified in the {@link KeyEvent} received.
45 * device id.
322 * Loads the key character maps for the keyboard with the specified device id.
324 * @param deviceId The device id of the keyboard.
337 "Could not load key character map for device " + deviceId);
578 * map for the {@link #BUILT_IN_KEYBOARD built-in keyboard} device id may be empty.
580 * {@link #VIRTUAL_KEYBOARD virtual keyboard} device i
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java715 InputDevice device = mIm.getInputDevice(deviceId);
716 if (device != null) {
717 Log.i(TAG, state + ": " + device);
/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...]
H A Dandroid_hardware_UsbRequest.cpp47 struct usb_device* device = get_device_from_object(env, java_device); local
48 if (!device) {
49 ALOGE("device null in native_init");
62 struct usb_request* request = usb_request_new(device, &desc);
H A Dandroid_media_AudioSystem.cpp139 android_media_AudioSystem_setDeviceConnectionState(JNIEnv *env, jobject thiz, jint device, jint state, jstring device_address) argument
142 int status = check_AudioSystem_Command(AudioSystem::setDeviceConnectionState(static_cast <audio_devices_t>(device),
150 android_media_AudioSystem_getDeviceConnectionState(JNIEnv *env, jobject thiz, jint device, jstring device_address) argument
153 int state = static_cast <int>(AudioSystem::getDeviceConnectionState(static_cast <audio_devices_t>(device),
191 jint device)
196 (audio_devices_t)device));
203 jint device)
208 (audio_devices_t)device)
187 android_media_AudioSystem_setStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream, jint index, jint device) argument
200 android_media_AudioSystem_getStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream, jint device) argument
/frameworks/av/include/media/
H A DAudioSystem.h186 static status_t setDeviceConnectionState(audio_devices_t device, audio_policy_dev_state_t state, const char *device_address);
187 static audio_policy_dev_state_t getDeviceConnectionState(audio_devices_t device, const char *device_address);
216 audio_devices_t device);
219 audio_devices_t device);
H A DIAudioPolicyService.h43 virtual status_t setDeviceConnectionState(audio_devices_t device,
46 virtual audio_policy_dev_state_t getDeviceConnectionState(audio_devices_t device,
76 audio_devices_t device) = 0;
79 audio_devices_t device) = 0;

Completed in 208 milliseconds

123456