/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothPbap.java | 68 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li> 233 public int getConnectionState(BluetoothDevice device) { argument 234 log("getConnectionState: device=" + device); 241 return service.getConnectionState(device); 268 * Returns true if the specified Bluetooth device is connected (does not 273 public boolean isConnected(BluetoothDevice device) { argument 274 return getConnectionState(device) == BluetoothAdapter.STATE_CONNECTED; 283 // TODO: Must specify target device. Implement this in the service. 284 public boolean disconnect(BluetoothDevice device) { argument [all...] |
H A D | BluetoothPbapClient.java | 168 * @param device a remote device we want connect to 172 public boolean connect(BluetoothDevice device) { argument 174 log("connect(" + device + ") for PBAP Client."); 177 if (service != null && isEnabled() && isValidDevice(device)) { 179 return service.connect(device); 194 * @param device Remote Bluetooth Device 197 public boolean disconnect(BluetoothDevice device) { argument 199 log("disconnect(" + device + ")" + new Exception()); 202 if (service != null && isEnabled() && isValidDevice(device)) { 274 getConnectionState(BluetoothDevice device) argument 329 isValidDevice(BluetoothDevice device) argument 344 setPriority(BluetoothDevice device, int priority) argument 377 getPriority(BluetoothDevice device) argument [all...] |
H A D | BluetoothSap.java | 56 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li> 220 * Get the currently connected remote Bluetooth device (PCE). 222 * @return The remote Bluetooth device, or null if not in connected or connecting state, or if 243 * Returns true if the specified Bluetooth device is connected. 249 public boolean isConnected(BluetoothDevice device) { argument 250 if (VDBG) log("isConnected(" + device + ")"); 254 return service.isConnected(device); 271 public boolean connect(BluetoothDevice device) { argument 272 if (DBG) log("connect(" + device + ")" + "not supported for SAPS"); 279 * @param device Remot 283 disconnect(BluetoothDevice device) argument 346 getConnectionState(BluetoothDevice device) argument 371 setPriority(BluetoothDevice device, int priority) argument 397 getPriority(BluetoothDevice device) argument 444 isValidDevice(BluetoothDevice device) argument [all...] |
/frameworks/base/core/java/android/companion/ |
H A D | BluetoothDeviceFilter.java | 76 public boolean matches(BluetoothDevice device) { argument 77 return matchesAddress(mAddress, device) 78 && matchesServiceUuids(mServiceUuids, mServiceUuidMasks, device) 79 && matchesName(getNamePattern(), device); 84 public String getDeviceDisplayName(BluetoothDevice device) { argument 85 return getDeviceDisplayNameInternal(device); 193 * A device with any uuid matching the given bits is considered passing
|
/frameworks/base/core/java/android/hardware/usb/ |
H A D | DeviceFilter.java | 33 * This class is used to describe a USB device. 47 // USB device or interface class (or -1 for unspecified) 49 // USB device subclass (or -1 for unspecified) 51 // USB device protocol (or -1 for unspecified) 53 // USB device manufacturer name string (or null for unspecified) 55 // USB device product name string (or null for unspecified) 57 // USB device serial number string (or null for unspecified) 72 public DeviceFilter(UsbDevice device) { argument 73 mVendorId = device.getVendorId(); 74 mProductId = device 173 matches(UsbDevice device) argument 208 contains(DeviceFilter device) argument [all...] |
/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);
|
/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/libs/usb/tests/accessorytest/ |
H A D | hid.c | 53 struct usb_device *device; local 75 fprintf(stderr, "waiting for device fd: %d\n", fd); 76 device = usb_wait_for_device(); 77 max_packet = usb_device_get_device_descriptor(device)->bMaxPacketSize0; 87 ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, 100 ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, 115 ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, 124 ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR,
|
H A D | usb.c | 78 static void send_string(struct usb_device *device, int index, const char* string) { argument 79 usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, 91 struct usb_device *device = usb_device_open(devname); local 92 if (!device) { 97 vendorId = usb_device_get_vendor_id(device); 98 productId = usb_device_get_product_id(device); 103 fprintf(stderr, "Found android device in accessory mode\n"); 104 current_device = device; 116 usb_descriptor_iter_init(device, &iter); 137 if (usb_device_claim_interface(device, int 211 struct usb_device* device = NULL; local [all...] |
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/ |
H A D | BluetoothMidiDevice.java | 46 * Class used to implement a Bluetooth MIDI device. 162 Log.e(TAG, "No CLIENT_CHARACTERISTIC_CONFIG for device " + mBluetoothDevice); 219 public BluetoothMidiDevice(Context context, BluetoothDevice device, argument 221 mBluetoothDevice = device;
|
/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/packages/MtpDocumentsProvider/src/com/android/mtp/ |
H A D | Mapper.java | 56 * Puts device information to database. 58 * @return If device is added to the database. 61 synchronized boolean putDeviceDocument(MtpDeviceRecord device) throws FileNotFoundException { argument 69 MtpDatabase.getDeviceDocumentValues(valuesList[0], extraValuesList[0], device); 87 * @param parentDocumentId Document ID of device document. 167 // Disconnect all device rows. 309 * If the type adding document is 'device' or 'storage', the document may appear again 311 * is 'object', it seems the documents are really removed from the remote MTP device. So the
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | PbapServerProfile.java | 44 // Order of this profile in device profiles list 47 // The UUIDs indicate that remote device might access pbap server 91 public boolean connect(BluetoothDevice device) { argument 97 public boolean disconnect(BluetoothDevice device) { argument 99 return mService.disconnect(device); 102 public int getConnectionStatus(BluetoothDevice device) { argument 106 if (mService.isConnected(device)) 112 public boolean isPreferred(BluetoothDevice device) { argument 116 public int getPreferred(BluetoothDevice device) { argument 120 public void setPreferred(BluetoothDevice device, boolea argument 132 getNameResource(BluetoothDevice device) argument 136 getSummaryResourceForDevice(BluetoothDevice device) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
H A D | ConnectedDeviceSignalController.java | 28 * Controller that monitors signal strength for a device that is connected via bluetooth. 154 BluetoothDevice device = 156 updateViewVisibility(device, newState); 205 private void updateViewVisibility(BluetoothDevice device, int newState) { argument 211 if (mBluetoothHeadsetClient == null || device == null) { 216 Bundle featuresBundle = mBluetoothHeadsetClient.getCurrentAgEvents(device);
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayAdapter.java | 108 * Sends a display device event to the display adapter listener asynchronously. 111 final DisplayDevice device, final int event) { 115 mListener.onDisplayDeviceEvent(device, event); 138 public void onDisplayDeviceEvent(DisplayDevice device, int event); argument 110 sendDisplayDeviceEventLocked( final DisplayDevice device, final int event) argument
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | HdmiMhlControllerStub.java | 65 * Return {@link HdmiMhlLocalDeviceStub} matched with the given device id. 91 HdmiMhlLocalDeviceStub addLocalDevice(HdmiMhlLocalDeviceStub device) { argument 115 * Get MHL version of a device which is connected to a port of the given {@code portId}. 132 * Get the bit flags describing the roles which ECBUS device can play. Refer to the
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_UsbHostManager.cpp | 57 struct usb_device *device = usb_device_open(devAddress); local 58 if (!device) { 63 const usb_device_descriptor* deviceDesc = usb_device_get_device_descriptor(device); 68 int numBytes = usb_device_get_descriptors_length(device); 75 const jbyte* rawDescriptors = (const jbyte*)usb_device_get_raw_descriptors(device); 90 usb_device_close(device); 121 struct usb_device* device = usb_device_open(deviceAddressStr); local 124 if (!device) 127 int fd = usb_device_get_fd(device); 129 usb_device_close(device); [all...] |
/frameworks/base/services/usb/java/com/android/server/usb/ |
H A D | UsbAlsaManager.java | 56 // ALSA device when we are notified that its associated USB device has been removed. 66 // UsbMidiDevice for USB peripheral mode (gadget) device 95 // after device connection. Ideally we should handle the settings change 96 // in SettingsObserver. Here we should log that a USB device is connected 97 // and disconnected with its address (card , device) and force the 163 // Find the ALSA spec for this device address 186 new UsbAlsaDevice(mAudioService, cardRec.getCardNum(), 0 /*device*/, 203 int device = 0; 227 cardRec.getCardNum(), 0 /*device*/); 259 setPeripheralMidiState(boolean enabled, int card, int device) argument [all...] |
H A D | UsbUserSettingsManager.java | 55 // Temporary mapping USB device name to list of UIDs with permissions for the device 82 * Remove all access permission for a device. 84 * @param device The device the permissions are for 86 void removeDevicePermissions(@NonNull UsbDevice device) { argument 88 mDevicePermissionMap.remove(device.getDeviceName()); 104 * Check whether a particular device or any of its interfaces 107 * @param device The device tha 111 isCameraDevicePresent(UsbDevice device) argument 160 hasPermission(UsbDevice device, String packageName, int uid) argument 192 checkPermission(UsbDevice device, String packageName, int uid) argument 234 requestPermission(UsbDevice device, String packageName, PendingIntent pi, int uid) argument 285 grantDevicePermission(UsbDevice device, int uid) argument [all...] |
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestHost/src/com/android/hardware/usb/aoaphosttest/ |
H A D | UsbAoapHostTestActivity.java | 107 private ReaderThread(UsbDevice device, UsbDeviceConnection conn) { argument 109 mDevice = device; 158 UsbDevice device = intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); 159 if (isDevicesMatching(mUsbDevice, device)) {
|
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/ |
H A D | UsbHostManagementActivity.java | 135 private void startAoap(UsbDevice device) { argument 136 AoapSwitchRequest request = new AoapSwitchRequest(device, "Android", "AOAP Test App", "", 141 private void startAoapActivity(UsbDevice device) { argument 142 if (!AoapInterface.isDeviceInAoapMode(device)) { 143 Log.w(TAG, "Device not in AOAP mode:" + device); 155 usbManager.grantPermission(device, uid); 157 intent.putExtra(UsbManager.EXTRA_DEVICE, device); 162 private void resetDevice(UsbDevice device) { argument 164 mUsbDeviceStateController.startDeviceReset(device); 172 for (UsbDevice device 186 handleUsbDeviceAttached(UsbDevice device) argument 202 handleUsbDeviceDetached(UsbDevice device) argument 209 updateDevice(UsbDevice device) argument 224 onDeviceResetComplete(UsbDevice device) argument 230 onAoapStartComplete(UsbDevice device) argument [all...] |
/frameworks/base/tools/bit/ |
H A D | make.cpp | 124 read_modules(const string& buildOut, const string& device, map<string,Module>* result, bool quiet) argument 126 string filename(string(buildOut + "/target/product/") + device + "/module-info.json");
|
/frameworks/base/tools/preload2/src/com/android/preload/ |
H A D | Main.java | 70 private IDevice device; field in class:Main 78 // Actions that need to be updated once a device is selected. 234 return device; 237 public void setDevice(IDevice device) { argument 238 this.device = device; 240 ds.setDevice(device); 249 IDevice device; field in class:Main.DeviceWrapper 252 device = d; 257 return device 330 findAndGetClassData(IDevice device, String packageName) argument [all...] |
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
H A D | WifiP2pDeviceList.java | 30 * A class representing a Wi-Fi P2p device list. 53 for (WifiP2pDevice device : devices) { 54 if (device.deviceAddress != null) { 55 mDevices.put(device.deviceAddress, new WifiP2pDevice(device)); 60 private void validateDevice(WifiP2pDevice device) { argument 61 if (device == null) throw new IllegalArgumentException("Null device"); 62 if (TextUtils.isEmpty(device.deviceAddress)) { 81 * Add/update a device t 86 update(WifiP2pDevice device) argument 92 updateSupplicantDetails(WifiP2pDevice device) argument 138 remove(WifiP2pDevice device) argument [all...] |