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

123

/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.cpp2499 // 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/av/media/libeffects/preprocessing/
H A DPreProcessing.cpp81 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/media/libmedia/
H A DAudioSystem.cpp539 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
H A DIAudioPolicyService.cpp70 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...]
/frameworks/av/media/mtp/
H A DMtpDevice.cpp54 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/av/services/audioflinger/
H A DAudioFlinger.cpp204 ALOGE_IF(rc, "%s couldn't open audio hw device in %s.%s (%s)", __func__,
210 ALOGE("%s wrong audio hw device version %04x", __func__, (*dev)->common.version);
294 // then try to find a module supporting the requested device.
880 // disable AEC and NS if the device is a BT SCO headset supporting those pre processings
888 audio_devices_t device = thread->inDevice(); local
889 bool suspend = audio_is_bluetooth_sco_device(device) && btNrecIsOff;
925 // indicate output device change to all input threads for pre processing
1546 audio_devices_t device,
1548 : ThreadBase(audioFlinger, id, device, AUDIO_DEVICE_NONE, type),
2256 audio_io_handle_t id, audio_devices_t device, type_
1543 PlaybackThread(const sp<AudioFlinger>& audioFlinger, AudioStreamOut* output, audio_io_handle_t id, audio_devices_t device, type_t type) argument
2255 MixerThread(const sp<AudioFlinger>& audioFlinger, AudioStreamOut* output, audio_io_handle_t id, audio_devices_t device, type_t type) argument
3695 DirectOutputThread(const sp<AudioFlinger>& audioFlinger, AudioStreamOut* output, audio_io_handle_t id, audio_devices_t device) argument
5986 RecordThread(const sp<AudioFlinger>& audioFlinger, AudioStreamIn *input, uint32_t sampleRate, audio_channel_mask_t channelMask, audio_io_handle_t id, audio_devices_t device) argument
7192 audio_devices_t device = (*pDevices) | primaryOutputDevice_l(); local
8738 setDevice(audio_devices_t device) argument
9455 setDevice_l(audio_devices_t device) argument
[all...]
H A DAudioPolicyService.cpp79 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 DCamera2Device.cpp40 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...]
/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/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 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 DBluetoothHeadset.java59 * <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 DBluetoothHealth.java38 * <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 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 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...]
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 DBluetoothSocket.java53 * <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/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...]
H A DUsbManager.java50 * 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 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...]
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_media_AudioSystem.cpp139 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/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothTestUtils.java153 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...]

Completed in 4022 milliseconds

123