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

123

/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.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 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 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...]
/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 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);
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...]
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
H A DWifiP2pUpnpServiceInfo.java58 * @param device a string representation of this device in the following format,
62 * e.g) urn:schemas-upnp-org:device:MediaServer:1
71 String device, List<String> services) {
72 if (uuid == null || device == null) {
73 throw new IllegalArgumentException("uuid or device cannnot be null");
81 info.add(createSupplicantQuery(uuid, device));
70 newInstance(String uuid, String device, List<String> services) argument
H A DWifiP2pUpnpServiceResponse.java62 * <li>"uuid:6859dede-8574-59ab-9332-123456789012::urn:schemas-upnp-org:device:
77 * @param dev source device
141 * @param device source device.
147 int transId, WifiP2pDevice device, byte[] data) {
149 return new WifiP2pUpnpServiceResponse(status, transId, device, null);
153 return new WifiP2pUpnpServiceResponse(status, transId, device, data);
146 newInstance(int status, int transId, WifiP2pDevice device, byte[] data) argument
/frameworks/native/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);
76 status_t setDevice(const char* device) { argument
78 mDevice = device;
86 int flags = 0, const char* device = NULL);
/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 ALOGE("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 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/av/services/camera/libcameraservice/camera2/
H A DFrameProcessor.cpp74 sp<Camera2Device> device; local
78 device = client->getCameraDevice();
79 if (device == 0) return false;
82 res = device->waitForNextFrame(kWaitDuration);
/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/java/com/android/server/display/
H A DDisplayAdapter.java101 * Sends a display device event to the display adapter listener asynchronously.
104 final DisplayDevice device, final int event) {
108 mListener.onDisplayDeviceEvent(device, event);
126 public void onDisplayDeviceEvent(DisplayDevice device, int event); argument
103 sendDisplayDeviceEventLocked( final DisplayDevice device, final int event) argument
H A DLogicalDisplay.java33 * primary display device from which the logical display derives its basic properties
37 * primary display device. Note that the contents of a logical display may not
38 * always be visible, even on its primary display device, such as in the case where
39 * the primary display device is currently mirroring content from a different
47 * to be associated with any individual display device. Logical displays and
67 // The display device that this logical display is based on and which
95 * Gets the primary display device associated with this logical display.
97 * @return The primary display device.
106 * @return The device info, which should be treated as immutable by the caller.
160 * The logical display might become invalid if it is attached to a display device
231 configureDisplayInTransactionLocked(DisplayDevice device, boolean isBlanked) 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/native/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 ALOGE_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/wilhelm/src/
H A Ddata.c66 SLObjectItf device = pDataLocator->mIODevice.device; local
67 if (NULL != device) {
88 pDataLocator->mIODevice.device = NULL;
93 // check that device has the correct object ID and is realized,
95 result = AcquireStrongRef((IObject *) device, expectedObjectID);
97 SL_LOGE("%s: locatorType=IODEVICE, but device field %p has wrong " \
98 "object ID or is not realized", name, device);
99 pDataLocator->mIODevice.device = NULL;
124 // no default device I
[all...]
/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...]

Completed in 986 milliseconds

123