/frameworks/base/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/services/java/com/android/server/usb/ |
H A D | UsbSettingsManager.java | 71 // Temporary mapping USB device name to list of UIDs with permissions for the device 86 // This class is used to describe a USB device. 95 // USB device or interface class (or -1 for unspecified) 97 // USB device subclass (or -1 for unspecified) 99 // USB device protocol (or -1 for unspecified) 110 public DeviceFilter(UsbDevice device) { argument 111 mVendorId = device.getVendorId(); 112 mProductId = device.getProductId(); 113 mClass = device 174 matches(UsbDevice device) argument 468 packageMatchesLocked(ResolveInfo info, String metaDataName, UsbDevice device, UsbAccessory accessory) argument 505 getDeviceMatchesLocked(UsbDevice device, Intent intent) argument 534 deviceAttached(UsbDevice device) argument 551 deviceDetached(UsbDevice device) argument 588 resolveActivity(Intent intent, ArrayList<ResolveInfo> matches, String defaultPackage, UsbDevice device, UsbAccessory accessory) argument 779 hasPermission(UsbDevice device) argument 799 checkPermission(UsbDevice device) argument 841 requestPermission(UsbDevice device, String packageName, PendingIntent pi) argument 880 setDevicePackage(UsbDevice device, String packageName) argument 916 grantDevicePermission(UsbDevice device, int uid) argument [all...] |
H A D | UsbService.java | 35 * UsbService manages all USB related state, including both host and device support. 36 * Host related events and calls are delegated to UsbHostManager, and device related 74 /* Opens the specified USB device (host mode) */ 83 /* returns the currently attached USB accessory (device mode) */ 92 /* opens the currently attached USB accessory (device mode) */ 101 public void setDevicePackage(UsbDevice device, String packageName) { argument 103 mSettingsManager.setDevicePackage(device, packageName); 111 public boolean hasDevicePermission(UsbDevice device) { argument 112 return mSettingsManager.hasPermission(device); 119 public void requestDevicePermission(UsbDevice device, Strin argument 129 grantDevicePermission(UsbDevice device, int uid) argument [all...] |
H A D | UsbHostManager.java | 83 /* returns true if the USB device should not be accessible by applications */ 114 Slog.w(TAG, "device already on mDevices list: " + deviceName); 149 // a device does not set bNumEndpoints correctly 154 UsbDevice device = new UsbDevice(deviceName, vendorID, productID, 156 mDevices.put(deviceName, device); 157 mSettingsManager.deviceAttached(device); 161 /* Called from JNI in monitorUsbHostBus to report USB device removal */ 164 UsbDevice device = mDevices.remove(deviceName); 165 if (device != null) { 166 mSettingsManager.deviceDetached(device); [all...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | IBluetoothHealthCallback.aidl | 30 in BluetoothDevice device, int prevState, int newState, in
|
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 | BluetoothSocket.java | 45 * <p>To create a {@link BluetoothSocket} for connecting to a known device, use 48 * Then call {@link #connect()} to attempt a connection to the remote device. 93 private final BluetoothDevice mDevice; /* remote device */ 122 * @param auth require the remote device to be authenticated 124 * @param device remote device that this socket can connect to 131 BluetoothDevice device, int port, ParcelUuid uuid) throws IOException { 141 mSdp = new SdpHelper(device, uuid); 147 mDevice = device; 148 if (device 130 BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, BluetoothDevice device, int port, ParcelUuid uuid) argument 371 private final BluetoothDevice device; field in class:BluetoothSocket.SdpHelper 374 SdpHelper(BluetoothDevice device, ParcelUuid uuid) argument [all...] |
H A D | HeadsetBase.java | 28 * 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
|
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/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
H A D | DeviceDisconnectedReceiver.java | 45 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); 46 String deviceName = device.getDeviceName(); 49 // close our activity if the device it is displaying is disconnected
|
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());
|
/frameworks/base/services/jni/ |
H A D | com_android_server_UsbHostManager.cpp | 58 struct usb_device *device = usb_device_open(devname); local 59 if (!device) { 68 const usb_device_descriptor* deviceDesc = usb_device_get_device_descriptor(device); 70 uint16_t vendorId = usb_device_get_vendor_id(device); 71 uint16_t productId = usb_device_get_product_id(device); 76 usb_descriptor_iter_init(device, &iter); 99 usb_device_close(device); 101 // handle generic device notification 148 struct usb_device* device = usb_device_open(deviceNameStr); local 151 if (!device) [all...] |
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/base/wifi/java/android/net/wifi/p2p/ |
H A D | WifiP2pDevice.java | 26 * A class representing a Wi-Fi p2p device 35 * The device name is a user friendly string to identify a Wi-Fi p2p device 40 * The device MAC address uniquely identifies a Wi-Fi p2p device 56 * Primary device type identifies the type of device. For example, an application 59 * for the full list of standard device types supported. 64 * Secondary device type is an optional attribute that can be provided by a device i [all...] |
H A D | WifiP2pGroup.java | 132 /** 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/java/android/hardware/usb/ |
H A D | UsbManager.java | 50 * Broadcast Action: A sticky broadcast for USB state change events when in device mode. 77 * Broadcast Action: A broadcast for USB device attached event. 79 * This intent is sent when a USB device is attached to the USB bus when in host mode. 82 * for the attached device 89 * Broadcast Action: A broadcast for USB device detached event. 91 * This intent is sent when a USB device is detached from the USB bus when in host mode. 94 * for the detached device 191 * containing the UsbDevice object for the device. 194 public static final String EXTRA_DEVICE = "device"; 224 * USB device nam 252 openDevice(UsbDevice device) argument 314 hasPermission(UsbDevice device) argument 359 requestPermission(UsbDevice device, PendingIntent pi) argument [all...] |
H A D | UsbDeviceConnection.java | 26 * 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...] |
/frameworks/base/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 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;
|
H A D | MemoryHeapPmem.cpp | 132 char const * const device = pmemHeap->getDevice(); 134 if (device) { 135 int fd = open(device, O_RDWR | (flags & NO_CACHING ? O_SYNC : 0)); 136 LOGE_IF(fd<0, "couldn't open %s (%s)", device, strerror(errno)); 150 device); 161 device);
|
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
H A D | Android.mk | 23 # Build for device
|
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/ |
H A D | Android.mk | 24 # For the device
|
/frameworks/base/core/java/android/server/ |
H A D | BluetoothService.java | 392 for (BluetoothDevice device: getConnectedInputDevices()) { 393 disconnectInputDevice(device); 396 for (BluetoothDevice device: getConnectedPanDevices()) { 397 disconnectPanDevice(device); 478 * Enable this Bluetooth device, asynchronously. 752 * Set the discoverability window for the device. A timeout of zero 753 * makes the device permanently discoverable (if the device is 755 * a device discoverable; you need to call setMode() to make the device 1066 getDeviceOutOfBandData(BluetoothDevice device) argument 1878 dumpHeadsetConnectionState(PrintWriter pw, BluetoothDevice device) argument 2052 getPanDeviceConnectionState(BluetoothDevice device) argument 2059 connectPanDevice(BluetoothDevice device) argument 2082 disconnectPanDevice(BluetoothDevice device) argument 2090 handlePanDeviceStateChange(BluetoothDevice device, String iface, int state, int role) argument 2099 handlePanDeviceStateChange(BluetoothDevice device, int state, int role) argument 2109 connectInputDevice(BluetoothDevice device) argument 2118 connectInputDeviceInternal(BluetoothDevice device) argument 2124 disconnectInputDevice(BluetoothDevice device) argument 2133 disconnectInputDeviceInternal(BluetoothDevice device) argument 2139 getInputDeviceConnectionState(BluetoothDevice device) argument 2162 getInputDevicePriority(BluetoothDevice device) argument 2169 setInputDevicePriority(BluetoothDevice device, int priority) argument 2186 allowIncomingProfileConnect(BluetoothDevice device, boolean allow) argument 2237 connectChannelToSource(BluetoothDevice device, BluetoothHealthAppConfiguration config) argument 2247 connectChannelToSink(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelType) argument 2257 disconnectChannel(BluetoothDevice device, BluetoothHealthAppConfiguration config, int id) argument 2266 getMainChannelFd(BluetoothDevice device, BluetoothHealthAppConfiguration config) argument 2299 getHealthDeviceConnectionState(BluetoothDevice device) argument 2573 sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) argument [all...] |
/frameworks/compile/linkloader/ |
H A D | Android.mk | 51 include $(LLVM_ROOT_PATH)/llvm-device-build.mk 111 include $(LLVM_ROOT_PATH)/llvm-device-build.mk 177 include $(LLVM_ROOT_PATH)/llvm-device-build.mk 210 include $(LLVM_ROOT_PATH)/llvm-device-build.mk
|
/frameworks/base/core/tests/overlaytests/ |
H A D | runtests.sh | 36 echo "Rebooting device" 37 $adb wait-for-device logcat -c 38 $adb wait-for-device logcat | grep -m 1 -e 'PowerManagerService.*bootCompleted' >/dev/null 64 echo "Syncing to device"
|
/frameworks/base/media/java/android/mtp/ |
H A D | MtpDevice.java | 25 * This class represents an MTP or PTP device connected on the USB host bus. An application can 28 * device and objects stored on it, as well as open the connection and transfer data. 43 * @param device the {@link android.hardware.usb.UsbDevice} for the MTP or PTP device 45 public MtpDevice(UsbDevice device) { argument 46 mDevice = device; 50 * Opens the MTP device. Once the device is open it takes ownership of the 55 * @param connection an open {@link android.hardware.usb.UsbDeviceConnection} for the device 56 * @return true if the device wa [all...] |