Searched defs:device (Results 1 - 25 of 50) sorted by relevance

12

/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/core/java/android/bluetooth/
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
H A DBluetoothA2dp.java41 * <p> Android only supports one connected Bluetooth A2dp device at a time.
56 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
78 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
92 * A2DP sink device is streaming music. This state can be one of
99 * A2DP sink device is NOT streaming music. This state can be one of
137 * Initiate connection to a profile of the remote bluetooth device.
144 * device is already connected or Bluetooth is not turned on.
153 * @param device Remote Bluetooth Device
158 public boolean connect(BluetoothDevice device) { argument
159 if (DBG) log("connect(" + device
199 disconnect(BluetoothDevice device) argument
251 getConnectionState(BluetoothDevice device) argument
281 setPriority(BluetoothDevice device, int priority) argument
313 getPriority(BluetoothDevice device) argument
335 isA2dpPlaying(BluetoothDevice device) argument
366 suspendSink(BluetoothDevice device) argument
396 resumeSink(BluetoothDevice device) argument
416 shouldSendVolumeKeys(BluetoothDevice device) argument
437 allowIncomingConnect(BluetoothDevice device, boolean value) argument
477 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothInputDevice.java54 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
126 * Initiate connection to a profile of the remote bluetooth device.
131 * device is already connected or Bluetooth is not turned on.
140 * @param device Remote Bluetooth Device
145 public boolean connect(BluetoothDevice device) { argument
146 if (DBG) log("connect(" + device + ")");
148 isValidDevice(device)) {
150 return mService.connectInputDevice(device);
164 * Bluetooth device is not in connected state etc. When this API returns,
169 * <p> If the disconnection is initiated by a remote device, th
186 disconnect(BluetoothDevice device) argument
238 getConnectionState(BluetoothDevice device) argument
268 setPriority(BluetoothDevice device, int priority) argument
300 getPriority(BluetoothDevice device) argument
320 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothPan.java54 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
55 * <li> {@link #EXTRA_LOCAL_ROLE} - Which local role the remote device is
74 * The local role of the PAN profile that the remote device is bound to.
80 * The local device is acting as a Network Access Point.
85 * The local device is acting as a PAN User.
147 * Initiate connection to a profile of the remote bluetooth device.
150 * device is already connected or Bluetooth is not turned on.
159 * @param device Remote Bluetooth Device
164 public boolean connect(BluetoothDevice device) { argument
165 if (DBG) log("connect(" + device
205 disconnect(BluetoothDevice device) argument
257 getConnectionState(BluetoothDevice device) argument
296 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothPbap.java163 * Get the currently connected remote Bluetooth device (PCE).
164 * @return The remote Bluetooth device, or null if not in connected or
182 * Returns true if the specified Bluetooth device is connected (does not
186 public boolean isConnected(BluetoothDevice device) { argument
187 if (DBG) log("isConnected(" + device + ")");
190 return mService.isConnected(device);
220 * This is a simple heuristic that tries to guess if a device with the
223 * @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 DBluetoothHeadset.java58 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
79 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
252 * Initiate connection to a profile of the remote bluetooth device.
259 * device is already connected or Bluetooth is not turned on.
268 * @param device Remote Bluetooth Device
273 public boolean connect(BluetoothDevice device) { argument
274 if (DBG) log("connect(" + device + ")");
276 isValidDevice(device)) {
278 return mService.connect(device);
292 * Bluetooth device i
314 disconnect(BluetoothDevice device) argument
366 getConnectionState(BluetoothDevice device) argument
396 setPriority(BluetoothDevice device, int priority) argument
428 getPriority(BluetoothDevice device) argument
464 startVoiceRecognition(BluetoothDevice device) argument
488 stopVoiceRecognition(BluetoothDevice device) argument
511 isAudioConnected(BluetoothDevice device) argument
539 getBatteryUsageHint(BluetoothDevice device) argument
589 acceptIncomingConnect(BluetoothDevice device) argument
608 createIncomingConnect(BluetoothDevice device) argument
625 rejectIncomingConnect(BluetoothDevice device) argument
644 connectHeadsetInternal(BluetoothDevice device) argument
663 disconnectHeadsetInternal(BluetoothDevice device) argument
682 setAudioState(BluetoothDevice device, int state) argument
701 getAudioState(BluetoothDevice device) argument
725 startScoUsingVirtualVoiceCall(BluetoothDevice device) argument
748 stopScoUsingVirtualVoiceCall(BluetoothDevice device) argument
791 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothHealth.java35 * <p> How to connect to a health device which is acting in the source role.
41 * <li> Pair with the remote device. This currently needs to be done manually
43 * <li> Connect to a health device using {@link #connectChannelToSource}. Some
60 * Health Profile Source Role - the health device.
65 * Health Profile Sink Role the device talking to the health device.
187 * Connect to a health device which has the {@link #SOURCE_ROLE}.
193 * @param device The remote Bluetooth device.
198 public boolean connectChannelToSource(BluetoothDevice device, argument
227 connectChannelToSink(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelType) argument
256 disconnectChannel(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelId) argument
285 getMainChannelFd(BluetoothDevice device, BluetoothHealthAppConfiguration config) argument
317 getConnectionState(BluetoothDevice device) argument
404 onHealthChannelStateChange(BluetoothHealthAppConfiguration config, BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd, int channelId) argument
467 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothTetheringDataTracker.java120 for (BluetoothDevice device: mBluetoothPan.getConnectedDevices()) {
121 mBluetoothPan.disconnect(device);
145 * @return true - If are we currently tethered with another device.
263 public synchronized void startReverseTether(String iface, BluetoothDevice device) { argument
265 mDevice = device;
H A DHeadsetBase.java28 * The base RFCOMM (service) connection for a headset or handsfree device.
78 BluetoothDevice device, int rfcommChannel) {
82 mRemoteDevice = device;
83 mAddress = device.getAddress();
94 BluetoothDevice device,
99 mRemoteDevice = device;
100 mAddress = device.getAddress();
251 * disconnect was initiated by the remote device.
77 HeadsetBase(PowerManager pm, BluetoothAdapter adapter, BluetoothDevice device, int rfcommChannel) argument
93 HeadsetBase(PowerManager pm, BluetoothAdapter adapter, BluetoothDevice device, int socketFd, int rfcommChannel, Handler handler) argument
/frameworks/base/include/binder/
H A DMemoryHeapBase.h48 * maps memory from the given device
50 MemoryHeapBase(const char* device, size_t size = 0, uint32_t flags = 0);
73 status_t setDevice(const char* device) { argument
75 mDevice = device;
83 int flags = 0, const char* device = NULL);
/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/wifi/java/android/net/wifi/p2p/
H A DWifiP2pDeviceList.java29 * A class representing a Wi-Fi P2p device list
51 for (WifiP2pDevice device : devices) {
52 mDevices.add(device);
64 public void update(WifiP2pDevice device) { argument
65 if (device == null) return;
68 if (d.equals(device)) {
69 d.deviceName = device.deviceName;
70 d.primaryDeviceType = device.primaryDeviceType;
71 d.secondaryDeviceType = device.secondaryDeviceType;
72 d.wpsConfigMethodsSupported = device
83 remove(WifiP2pDevice device) argument
[all...]
H A DWifiP2pGroup.java132 /** Check whether this device is the group owner of the created p2p group */
138 public void setOwner(WifiP2pDevice device) { argument
139 mOwner = device;
153 public void addClient(WifiP2pDevice device) { argument
155 if (client.equals(device)) return;
157 mClients.add(device);
166 public boolean removeClient(WifiP2pDevice device) { argument
167 return mClients.remove(device);
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbRequest.cpp47 struct usb_device* device = get_device_from_object(env, java_device); local
48 if (!device) {
49 LOGE("device null in native_init");
62 struct usb_request* request = usb_request_new(device, &desc);
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 LOGE("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/core/java/android/server/
H A DBluetoothInputProfileHandler.java64 boolean connectInputDevice(BluetoothDevice device, argument
66 String objectPath = mBluetoothService.getObjectPathFromAddress(device.getAddress());
68 getInputDeviceConnectionState(device) != BluetoothInputDevice.STATE_DISCONNECTED ||
69 getInputDevicePriority(device) == BluetoothInputDevice.PRIORITY_OFF) {
82 boolean connectInputDeviceInternal(BluetoothDevice device) { argument
83 String objectPath = mBluetoothService.getObjectPathFromAddress(device.getAddress());
84 handleInputDeviceStateChange(device, BluetoothInputDevice.STATE_CONNECTING);
86 handleInputDeviceStateChange(device, BluetoothInputDevice.STATE_DISCONNECTED);
92 boolean disconnectInputDevice(BluetoothDevice device, argument
94 String objectPath = mBluetoothService.getObjectPathFromAddress(device
109 disconnectInputDeviceInternal(BluetoothDevice device) argument
119 getInputDeviceConnectionState(BluetoothDevice device) argument
137 getInputDevicePriority(BluetoothDevice device) argument
143 setInputDevicePriority(BluetoothDevice device, int priority) argument
167 handleInputDeviceStateChange(BluetoothDevice device, int state) argument
207 setInitialInputDevicePriority(BluetoothDevice device, int state) argument
[all...]
/frameworks/base/libs/binder/
H A DMemoryHeapBase.cpp66 MemoryHeapBase::MemoryHeapBase(const char* device, size_t size, uint32_t flags) argument
74 int fd = open(device, open_flags);
75 LOGE_IF(fd<0, "error opening %s: %s", device, strerror(errno));
80 mDevice = device;
94 status_t MemoryHeapBase::init(int fd, void *base, int size, int flags, const char* device) argument
103 mDevice = device;
/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 DCameraBrowser.java83 MtpDevice device = mDeviceList.get(position);
84 MtpDeviceInfo info = device.getDeviceInfo();
119 intent.putExtra("device", mDeviceList.get(position).getDeviceName());
127 public void deviceAdded(MtpDevice device) { argument
128 Log.d(TAG, "deviceAdded: " + device.getDeviceName());
133 public void deviceRemoved(MtpDevice device) { argument
134 Log.d(TAG, "deviceRemoved: " + device.getDeviceName());
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/services/jni/
H A Dcom_android_server_LightsService.cpp54 hw_device_t* device; local
55 err = module->methods->open(module, name, &device);
57 return (light_device_t*)device;
/frameworks/base/core/java/android/hardware/usb/
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.java45 * Broadcast Action: A sticky broadcast for USB state change events when in device mode.
72 * Broadcast Action: A broadcast for USB device attached event.
74 * This intent is sent when a USB device is attached to the USB bus when in host mode.
77 * for the attached device
84 * Broadcast Action: A broadcast for USB device detached event.
86 * This intent is sent when a USB device is detached from the USB bus when in host mode.
89 * for the detached device
186 * containing the UsbDevice object for the device.
189 public static final String EXTRA_DEVICE = "device";
219 * USB device nam
247 openDevice(UsbDevice device) argument
309 hasPermission(UsbDevice device) argument
354 requestPermission(UsbDevice device, PendingIntent pi) argument
[all...]

Completed in 462 milliseconds

12