/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. 79 * Broadcast Action: A broadcast for USB device attached event. 81 * This intent is sent when a USB device is attached to the USB bus when in host mode. 84 * for the attached device 91 * Broadcast Action: A broadcast for USB device detached event. 93 * This intent is sent when a USB device is detached from the USB bus when in host mode. 96 * for the detached device 201 * containing the UsbDevice object for the device. 204 public static final String EXTRA_DEVICE = "device"; 234 * USB device nam 262 openDevice(UsbDevice device) argument 324 hasPermission(UsbDevice device) argument 369 requestPermission(UsbDevice device, PendingIntent pi) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_media_AudioSystem.cpp | 139 android_media_AudioSystem_setDeviceConnectionState(JNIEnv *env, jobject thiz, jint device, jint state, jstring device_address) argument 142 int status = check_AudioSystem_Command(AudioSystem::setDeviceConnectionState(static_cast <audio_devices_t>(device), 150 android_media_AudioSystem_getDeviceConnectionState(JNIEnv *env, jobject thiz, jint device, jstring device_address) argument 153 int state = static_cast <int>(AudioSystem::getDeviceConnectionState(static_cast <audio_devices_t>(device), 191 jint device) 196 (audio_devices_t)device)); 203 jint device) 208 (audio_devices_t)device) 187 android_media_AudioSystem_setStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream, jint index, jint device) argument 200 android_media_AudioSystem_getStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream, jint device) argument
|
/frameworks/base/services/java/com/android/server/usb/ |
H A D | UsbService.java | 40 * UsbService manages all USB related state, including both host and device support. 41 * Host related events and calls are delegated to UsbHostManager, and device related 131 /* Opens the specified USB device (host mode) */ 141 /* returns the currently attached USB accessory (device mode) */ 151 /* opens the currently attached USB accessory (device mode) */ 162 public void setDevicePackage(UsbDevice device, String packageName, int userId) { argument 164 getSettingsForUser(userId).setDevicePackage(device, packageName); 174 public boolean hasDevicePermission(UsbDevice device) { argument 176 return getSettingsForUser(userId).hasPermission(device); 186 public void requestDevicePermission(UsbDevice device, Strin argument 199 grantDevicePermission(UsbDevice device, int uid) argument [all...] |
H A D | UsbSettingsManager.java | 80 // Temporary mapping USB device name to list of UIDs with permissions for the device 95 // This class is used to describe a USB device. 104 // USB device or interface class (or -1 for unspecified) 106 // USB device subclass (or -1 for unspecified) 108 // USB device protocol (or -1 for unspecified) 119 public DeviceFilter(UsbDevice device) { argument 120 mVendorId = device.getVendorId(); 121 mProductId = device.getProductId(); 122 mClass = device 183 matches(UsbDevice device) argument 538 packageMatchesLocked(ResolveInfo info, String metaDataName, UsbDevice device, UsbAccessory accessory) argument 575 getDeviceMatchesLocked(UsbDevice device, Intent intent) argument 604 deviceAttached(UsbDevice device) argument 625 deviceDetached(UsbDevice device) argument 662 resolveActivity(Intent intent, ArrayList<ResolveInfo> matches, String defaultPackage, UsbDevice device, UsbAccessory accessory) argument 853 hasPermission(UsbDevice device) argument 873 checkPermission(UsbDevice device) argument 915 requestPermission(UsbDevice device, String packageName, PendingIntent pi) argument 954 setDevicePackage(UsbDevice device, String packageName) argument 990 grantDevicePermission(UsbDevice device, int uid) argument [all...] |
/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_location_GpsLocationProvider.cpp | 255 hw_device_t* device; local 256 err = module->methods->open(module, GPS_HARDWARE_MODULE_ID, &device); 258 gps_device_t* gps_device = (gps_device_t *)device;
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
H A D | WifiP2pDevice.java | 27 * A class representing a Wi-Fi p2p device 36 * The device name is a user friendly string to identify a Wi-Fi p2p device 41 * The device MAC address uniquely identifies a Wi-Fi p2p device 46 * Primary device type identifies the type of device. For example, an application 49 * for the full list of standard device types supported. 54 * Secondary device type is an optional attribute that can be provided by a device i 264 update(WifiP2pDevice device) argument [all...] |
H A D | WifiP2pGroup.java | 175 /** Check whether this device is the group owner of the created p2p group */ 181 public void setOwner(WifiP2pDevice device) { argument 182 mOwner = device; 196 public void addClient(WifiP2pDevice device) { argument 198 if (client.equals(device)) return; 200 mClients.add(device); 209 public boolean removeClient(WifiP2pDevice device) { argument 210 return mClients.remove(device); 218 /** @hide Returns {@code true} if the device is part of the group */ 219 public boolean contains(WifiP2pDevice device) { argument [all...] |
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
H A D | WifiP2pServiceResponse.java | 58 * Source device. 115 * @param device source device. 119 WifiP2pDevice device, byte[] data) { 123 mDevice = device; 169 * Returns the source device of service discovery response. 173 * @return the source device of service discovery response. 118 WifiP2pServiceResponse(int serviceType, int status, int transId, WifiP2pDevice device, byte[] data) argument
|
/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...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothHeadset.java | 59 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li> 80 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li> 310 * Initiate connection to a profile of the remote bluetooth device. 317 * device is already connected or Bluetooth is not turned on. 326 * @param device Remote Bluetooth Device 331 public boolean connect(BluetoothDevice device) { argument 332 if (DBG) log("connect(" + device + ")"); 334 isValidDevice(device)) { 336 return mService.connect(device); 350 * Bluetooth device i 372 disconnect(BluetoothDevice device) argument 424 getConnectionState(BluetoothDevice device) argument 454 setPriority(BluetoothDevice device, int priority) argument 486 getPriority(BluetoothDevice device) argument 522 startVoiceRecognition(BluetoothDevice device) argument 546 stopVoiceRecognition(BluetoothDevice device) argument 569 isAudioConnected(BluetoothDevice device) argument 597 getBatteryUsageHint(BluetoothDevice device) argument 628 acceptIncomingConnect(BluetoothDevice device) argument 645 rejectIncomingConnect(BluetoothDevice device) argument 664 getAudioState(BluetoothDevice device) argument 757 startScoUsingVirtualVoiceCall(BluetoothDevice device) argument 780 stopScoUsingVirtualVoiceCall(BluetoothDevice device) argument 885 isValidDevice(BluetoothDevice device) argument [all...] |
H A D | BluetoothHealth.java | 38 * <p> How to connect to a health device which is acting in the source role. 44 * <li> Pair with the remote device. This currently needs to be done manually 46 * <li> Connect to a health device using {@link #connectChannelToSource}. Some 64 * Health Profile Source Role - the health device. 69 * Health Profile Sink Role the device talking to the health device. 222 * Connect to a health device which has the {@link #SOURCE_ROLE}. 228 * @param device The remote Bluetooth device. 233 public boolean connectChannelToSource(BluetoothDevice device, argument 262 connectChannelToSink(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelType) argument 291 disconnectChannel(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelId) argument 320 getMainChannelFd(BluetoothDevice device, BluetoothHealthAppConfiguration config) argument 352 getConnectionState(BluetoothDevice device) argument 439 onHealthChannelStateChange(BluetoothHealthAppConfiguration config, BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd, int channelId) argument 541 isValidDevice(BluetoothDevice device) argument [all...] |
H A D | BluetoothSocket.java | 53 * <p>To create a {@link BluetoothSocket} for connecting to a known device, use 56 * Then call {@link #connect()} to attempt a connection to the remote device. 106 private BluetoothDevice mDevice; /* remote device */ 141 * @param auth require the remote device to be authenticated 143 * @param device remote device that this socket can connect to 150 BluetoothDevice device, int port, ParcelUuid uuid) throws IOException { 162 mDevice = device; 168 if (device == null) { 173 mAddress = device 149 BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, BluetoothDevice device, int port, ParcelUuid uuid) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_mtp_MtpDevice.cpp | 111 MtpDevice* device = MtpDevice::open(deviceNameStr, fd); local 114 if (device) 115 env->SetIntField(thiz, field_context, (int)device); 116 return (device != NULL); 122 MtpDevice* device = get_device_from_object(env, thiz); local 123 if (device) { 124 device->close(); 125 delete device; 133 MtpDevice* device = get_device_from_object(env, thiz); local 134 if (!device) { 170 MtpDevice* device = get_device_from_object(env, thiz); local 189 MtpDevice* device = get_device_from_object(env, thiz); local 224 MtpDevice* device = get_device_from_object(env, thiz); local 243 MtpDevice* device = get_device_from_object(env, thiz); local 317 MtpDevice* device = get_device_from_object(env, thiz); local 339 MtpDevice* device = get_device_from_object(env, thiz); local 357 MtpDevice* device = get_device_from_object(env, thiz); local 367 MtpDevice* device = get_device_from_object(env, thiz); local 377 MtpDevice* device = get_device_from_object(env, thiz); local 387 MtpDevice* device = get_device_from_object(env, thiz); local [all...] |
/frameworks/av/media/libmedia/ |
H A D | IAudioPolicyService.cpp | 70 audio_devices_t device, 76 data.writeInt32(static_cast <uint32_t>(device)); 84 audio_devices_t device, 89 data.writeInt32(static_cast <uint32_t>(device)); 234 audio_devices_t device) 240 data.writeInt32(static_cast <uint32_t>(device)); 247 audio_devices_t device) 252 data.writeInt32(static_cast <uint32_t>(device)); 379 audio_devices_t device = local 384 reply->writeInt32(static_cast<uint32_t> (setDeviceConnectionState(device, 69 setDeviceConnectionState( audio_devices_t device, audio_policy_dev_state_t state, const char *device_address) argument 83 getDeviceConnectionState( audio_devices_t device, const char *device_address) argument 232 setStreamVolumeIndex(audio_stream_type_t stream, int index, audio_devices_t device) argument 245 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument 392 audio_devices_t device = local 522 audio_devices_t device = static_cast <audio_devices_t>(data.readInt32()); local 533 audio_devices_t device = static_cast <audio_devices_t>(data.readInt32()); local [all...] |
H A D | AudioSystem.cpp | 539 status_t AudioSystem::setDeviceConnectionState(audio_devices_t device, argument 552 return aps->setDeviceConnectionState(device, state, address); 555 audio_policy_dev_state_t AudioSystem::getDeviceConnectionState(audio_devices_t device, argument 561 return aps->getDeviceConnectionState(device, device_address); 667 audio_devices_t device) 671 return aps->setStreamVolumeIndex(stream, index, device); 676 audio_devices_t device) 680 return aps->getStreamVolumeIndex(stream, index, device); 665 setStreamVolumeIndex(audio_stream_type_t stream, int index, audio_devices_t device) argument 674 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument
|
/frameworks/av/media/mtp/ |
H A D | MtpDevice.cpp | 54 struct usb_device *device = usb_device_new(deviceName, fd); local 55 if (!device) { 63 usb_descriptor_iter_init(device, &iter); 73 char* manufacturerName = usb_device_get_manufacturer_name(device); 74 char* productName = usb_device_get_product_name(device); 81 char* interfaceName = usb_device_get_string(device, interface->iInterface); 90 // Looks like an android style MTP device 91 char* manufacturerName = usb_device_get_manufacturer_name(device); 92 char* productName = usb_device_get_product_name(device); 93 ALOGD("Found MTP device 175 MtpDevice(struct usb_device* device, int interface, const struct usb_endpoint_descriptor *ep_in, const struct usb_endpoint_descriptor *ep_out, const struct usb_endpoint_descriptor *ep_intr) argument [all...] |
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
H A D | BluetoothTestUtils.java | 153 public PairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) { argument 156 mDevice = device; 213 public ConnectProfileReceiver(BluetoothDevice device, int profile, int expectedFlags) { argument 216 mDevice = device; 267 public ConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) { argument 268 super(device, BluetoothProfile.PAN, expectedFlags); 538 * Puts the local device into discoverable mode and checks to make sure that the local device 581 * Puts the local device into connectable only mode and checks to make sure that the local 582 * device i 744 pair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument 757 acceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument 773 pairOrAcceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin, boolean shouldPair) argument 841 unpair(BluetoothAdapter adapter, BluetoothDevice device) argument 906 connectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, String methodName) argument 987 disconnectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, String methodName) argument 1064 connectPan(BluetoothAdapter adapter, BluetoothDevice device) argument 1075 incomingPanConnection(BluetoothAdapter adapter, BluetoothDevice device) argument 1088 connectPanOrIncomingPanConnection(BluetoothAdapter adapter, BluetoothDevice device, boolean connect) argument 1169 disconnectPan(BluetoothAdapter adapter, BluetoothDevice device) argument 1180 incomingPanDisconnection(BluetoothAdapter adapter, BluetoothDevice device) argument 1193 disconnectFromRemoteOrVerifyConnectNap(BluetoothAdapter adapter, BluetoothDevice device, boolean disconnect) argument 1273 startSco(BluetoothAdapter adapter, BluetoothDevice device) argument 1284 stopSco(BluetoothAdapter adapter, BluetoothDevice device) argument 1295 startStopSco(BluetoothAdapter adapter, BluetoothDevice device, boolean isStart) argument 1397 getPairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) argument 1407 getConnectProfileReceiver(BluetoothDevice device, int profile, int expectedFlags) argument 1419 getConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) argument [all...] |
/frameworks/base/services/java/com/android/server/display/ |
H A D | WifiDisplayController.java | 116 // The device to which we want to connect, or null if we want to be disconnected. 119 // The device to which we are currently connecting, or null if we have already connected 123 // The device to which we are currently connected, which means we have an active P2P group. 212 for (WifiP2pDevice device : mAvailableWifiDisplayPeers) { 213 pw.println(" " + describeWifiP2pDevice(device)); 222 for (WifiP2pDevice device : mAvailableWifiDisplayPeers) { 223 if (device.deviceAddress.equals(address)) { 224 connect(device); 359 for (WifiP2pDevice device : peers.getDeviceList()) { 361 Slog.d(TAG, " " + describeWifiP2pDevice(device)); 398 connect(final WifiP2pDevice device) argument 810 getPortNumber(WifiP2pDevice device) argument 819 isWifiDisplay(WifiP2pDevice device) argument 830 describeWifiP2pDevice(WifiP2pDevice device) argument 838 createWifiDisplay(WifiP2pDevice device) argument [all...] |
H A D | DisplayManagerService.java | 61 * Display adapters communicate changes in display device state to the display manager 67 * the potential for deadlocks resulting from asynchronous display device discovery. 255 * Returns true if the device is headless. 257 * @return True if the device is headless. 313 DisplayDevice device = mDisplayDevices.get(i); 314 device.blankLocked(); 332 DisplayDevice device = mDisplayDevices.get(i); 333 device.unblankLocked(); 562 // prevent problems that might occur due to the device being encrypted. 571 private void handleDisplayDeviceAdded(DisplayDevice device) { argument 598 handleDisplayDeviceChanged(DisplayDevice device) argument 615 handleDisplayDeviceRemoved(DisplayDevice device) argument 633 addLogicalDisplayLocked(DisplayDevice device) argument 759 configureDisplayInTransactionLocked(DisplayDevice device) argument 793 setViewportLocked(DisplayViewport viewport, LogicalDisplay display, DisplayDevice device) argument 800 findLogicalDisplayForDeviceLocked(DisplayDevice device) argument 977 onDisplayDeviceEvent(DisplayDevice device, int event) argument [all...] |
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
H A D | EffectBundle.cpp | 2499 // Bass boost or Virtualizer can be temporarily disabled if playing over device speaker due 3110 uint32_t device = *(uint32_t *)pCmdData; local 3113 if((device == AUDIO_DEVICE_OUT_SPEAKER) || 3114 (device == AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT) || 3115 (device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER)){ 3116 ALOGV("\tEFFECT_CMD_SET_DEVICE device is invalid for LVM_BASS_BOOST %d", 3120 // If a device doesnt support bassboost the effect must be temporarily disabled 3131 ALOGV("\tEFFECT_CMD_SET_DEVICE device is valid for LVM_BASS_BOOST %d", 3134 // If a device supports bassboost and the effect has been temporarily disabled 3146 if((device [all...] |
/frameworks/base/media/java/android/media/ |
H A D | AudioSystem.java | 199 // audio device definitions: must be kept in sync with values in system/core/audio.h 283 // device states, must match AudioSystem::device_connection_state 305 public static String getDeviceName(int device) argument 307 switch(device) { 351 // device categories config for setForceUse, must match AudioSystem::forced_config 379 public static native int setDeviceConnectionState(int device, int state, String device_address); argument 380 public static native int getDeviceConnectionState(int device, String device_address); argument 385 public static native int setStreamVolumeIndex(int stream, int index, int device); argument 386 public static native int getStreamVolumeIndex(int stream, int device); argument
|
/frameworks/av/media/libeffects/preprocessing/ |
H A D | PreProcessing.cpp | 81 int (* set_device)(preproc_effect_t *fx, uint32_t device); 514 int AecSetDevice(preproc_effect_t *effect, uint32_t device) argument 516 ALOGV("AecSetDevice %08x", device); 520 if (audio_is_input_device(device)) { 524 switch(device) { 1014 // "out" doesn't mean output device, so this is the correct API to convert channel count to mask
|
/frameworks/av/services/audioflinger/ |
H A D | AudioPolicyService.cpp | 79 ALOGE_IF(rc, "couldn't open audio policy device (%s)", strerror(-rc)); 130 status_t AudioPolicyService::setDeviceConnectionState(audio_devices_t device, argument 140 if (!audio_is_output_device(device) && !audio_is_input_device(device)) { 150 return mpAudioPolicy->set_device_connection_state(mpAudioPolicy, device, 155 audio_devices_t device, 161 return mpAudioPolicy->get_device_connection_state(mpAudioPolicy, device, 379 audio_devices_t device) 395 device); 403 audio_devices_t device) 154 getDeviceConnectionState( audio_devices_t device, const char *device_address) argument 377 setStreamVolumeIndex(audio_stream_type_t stream, int index, audio_devices_t device) argument 401 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument [all...] |
/frameworks/av/services/camera/libcameraservice/ |
H A D | Camera2Device.cpp | 40 ALOGV("%s: Created device for camera %d", __FUNCTION__, id); 53 ALOGV("%s: Initializing device for camera %d", __FUNCTION__, mId); 63 camera2_device_t *device; local 66 reinterpret_cast<hw_device_t**>(&device)); 74 if (device->common.version != CAMERA_DEVICE_API_VERSION_2_0) { 76 "Camera device is not version %x, reports %x instead", 78 device->common.version); 79 device->common.close(&device->common); 87 if (info.device_version != device [all...] |