Home
last modified time | relevance | path

Searched refs:mActiveDevice (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java98 private BluetoothDevice mActiveDevice; field in HeadsetService
190 mActiveDevice = null; in stop()
833 boolean status = stopVoiceRecognition(mActiveDevice); in startVoiceRecognition()
835 + "stopVoiceRecognition, returned " + status + " on " + mActiveDevice in startVoiceRecognition()
842 + mActiveDevice); in startVoiceRecognition()
851 + ", active device is " + mActiveDevice); in startVoiceRecognition()
855 Log.i(TAG, "device is null, use active device " + mActiveDevice + " instead"); in startVoiceRecognition()
856 device = mActiveDevice; in startVoiceRecognition()
876 if (!Objects.equals(device, mActiveDevice) && !setActiveDevice(device)) { in startVoiceRecognition()
907 if (!Objects.equals(mActiveDevice, device)) { in stopVoiceRecognition()
[all …]
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbHostController.java85 private UsbDevice mActiveDevice; field in UsbHostController
101 if (mActiveDevice != null && device != null in setActiveDeviceIfMatch()
102 && UsbUtil.isDevicesMatching(device, mActiveDevice)) { in setActiveDeviceIfMatch()
103 mActiveDevice = device; in setActiveDeviceIfMatch()
109 if (mActiveDevice != null && device != null in unsetActiveDeviceIfMatch()
110 && UsbUtil.isDevicesMatching(device, mActiveDevice)) { in unsetActiveDeviceIfMatch()
111 mActiveDevice = null; in unsetActiveDeviceIfMatch()
116 if (mActiveDevice == null) { in startDeviceProcessingIfNull()
117 mActiveDevice = device; in startDeviceProcessingIfNull()
124 mActiveDevice = null; in stopDeviceProcessing()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java71 private BluetoothDevice mActiveDevice; field in A2dpService
432 if (mFactory.getAvrcpTargetService() != null && mActiveDevice != null) { in storeActiveDeviceVolume()
433 mFactory.getAvrcpTargetService().storeVolumeForDevice(mActiveDevice); in storeActiveDeviceVolume()
438 BluetoothDevice previousActiveDevice = mActiveDevice; in removeActiveDevice()
483 if (silence && Objects.equals(mActiveDevice, device)) { in setSilenceMode()
485 } else if (!silence && mActiveDevice == null) { in setSilenceMode()
506 Log.d(TAG, "earlyNotifyHearingAidActive: Save volume for " + mActiveDevice); in earlyNotifyHearingAidActive()
521 BluetoothDevice previousActiveDevice = mActiveDevice; in setActiveDevice()
550 boolean deviceChanged = !Objects.equals(device, mActiveDevice); in setActiveDevice()
554 Log.d(TAG, "Switch A2DP devices to " + device + " from " + mActiveDevice); in setActiveDevice()
[all …]