/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/core/java/android/bluetooth/ |
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 | 41 * <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 D | BluetoothInputDevice.java | 54 * <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 D | BluetoothPan.java | 54 * <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 D | BluetoothPbap.java | 163 * 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 D | BluetoothProfile.java | 35 * 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 D | BluetoothHeadset.java | 58 * <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 D | BluetoothHealth.java | 35 * <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 D | BluetoothTetheringDataTracker.java | 120 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;
|
/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)) {
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
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);
|
H A D | WifiP2pDeviceList.java | 31 * A class representing a Wi-Fi P2p device list. 56 for (WifiP2pDevice device : devices) { 57 if (device.deviceAddress != null) { 58 mDevices.put(device.deviceAddress, device); 71 public void update(WifiP2pDevice device) { argument 72 if (device == null || device.deviceAddress == null) return; 73 WifiP2pDevice d = mDevices.get(device.deviceAddress); 75 d.deviceName = device 113 remove(WifiP2pDevice device) argument [all...] |
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
H A D | WifiP2pUpnpServiceInfo.java | 58 * @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 D | WifiP2pUpnpServiceResponse.java | 62 * <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 D | MemoryHeapBase.h | 48 * 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/core/jni/ |
H A D | android_hardware_UsbRequest.cpp | 47 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 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 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 D | BluetoothInputProfileHandler.java | 64 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/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 | CameraBrowser.java | 83 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 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/services/jni/ |
H A D | com_android_server_LightsService.cpp | 54 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 D | MemoryHeapBase.cpp | 66 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 D | data.c | 66 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...] |