Home
last modified time | relevance | path

Searched refs:mCurrentDevice (Results 1 – 5 of 5) sorted by relevance

/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
H A DHeadsetServiceTest.java164 mCurrentDevice = null; in tearDown()
243 mCurrentDevice); in testConnectDevice_connectDeviceBelowLimit()
244 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectDevice_connectDeviceBelowLimit()
281 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testMessageFromNative_deviceConnected()
369 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectDevice_connectDeviceAboveLimit()
408 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectAudio_withOneDevice()
475 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectAudio_withMultipleDevices()
551 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectAudio_connectTwoAudioChannelsShouldFail()
678 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectAudio_deviceDisconnected()
737 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testPhoneStateChange_oneDeviceSaveState()
[all …]
/aosp12/packages/apps/Camera2/src/com/android/camera/device/
H A DMultiCameraDeviceLifecycle.java88 private SingleDeviceLifecycle mCurrentDevice; field in MultiCameraDeviceLifecycle
251 if (mCurrentDevice != null) { in shutdown()
260 mCurrentDevice.close(); in shutdown()
290 if (mCurrentDevice == null) { in openDevice()
293 mCurrentDevice = deviceLifecycle; in openDevice()
307 mCurrentDevice.close(); in openDevice()
366 (mCurrentDevice == null || (mCurrentDevice.getId().equals(key)))) { in onCameraDeviceShutdown()
370 mCurrentDevice = null; in onCameraDeviceShutdown()
372 } if (mCurrentDevice != null && mCurrentDevice.getId().equals(key)) { in onCameraDeviceShutdown()
380 mCurrentDevice.open(); in onCameraDeviceShutdown()
[all …]
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
H A DHeadsetClientStateMachine.java180 private BluetoothDevice mCurrentDevice = null; field in HeadsetClientStateMachine
204 if (mCurrentDevice == null) return; in dump()
845 if (mCurrentDevice != null) { in doQuit()
917 mCurrentDevice = null; in enter()
924 if (mCurrentDevice != null) { in processMessage()
940 mCurrentDevice = device; in processMessage()
973 mCurrentDevice = device; in processConnectionEvent()
1182 if (mCurrentDevice == null) { in processMessage()
1669 if (mCurrentDevice == null) { in processMessage()
1929 if (mCurrentDevice == null || !mCurrentDevice.equals(device)) { in getAudioState()
[all …]
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
H A DPbapClientStateMachine.java99 private final BluetoothDevice mCurrentDevice; field in PbapClientStateMachine
112 mCurrentDevice = device; in PbapClientStateMachine()
132 onConnectionStateChanged(mCurrentDevice, mMostRecentState, in enter()
147 onConnectionStateChanged(mCurrentDevice, mMostRecentState, in enter()
151 mCurrentDevice.sdpSearch(BluetoothUuid.PBAP_PSE); in enter()
163 .setRemoteDevice(mCurrentDevice) in enter()
177 mCurrentDevice)) { in processMessage()
254 onConnectionStateChanged(mCurrentDevice, mMostRecentState, in enter()
369 mService.cleanupDevice(mCurrentDevice); in onQuitting()
410 if (device.equals(mCurrentDevice)) { in getConnectionState()
[all …]
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
H A DAvrcpVolumeManager.java58 BluetoothDevice mCurrentDevice = null; field in AvrcpVolumeManager
216 if (mCurrentDevice == null) { in onAudioDevicesAdded()
233 d("Didn't find deferred device in list: device=" + mCurrentDevice); in onAudioDevicesAdded()
240 if (!mDeviceMap.containsKey(mCurrentDevice)) { in onAudioDevicesAdded()
241 Log.w(TAG, "volumeDeviceSwitched: Device isn't connected: " + mCurrentDevice); in onAudioDevicesAdded()
245 switchVolumeDevice(mCurrentDevice); in onAudioDevicesAdded()
255 if (device.equals(mCurrentDevice)) { in deviceConnected()
261 d("volumeDeviceSwitched: mCurrentDevice=" + mCurrentDevice + " device=" + device); in volumeDeviceSwitched()
263 if (Objects.equals(device, mCurrentDevice)) { in volumeDeviceSwitched()
268 mCurrentDevice = device; in volumeDeviceSwitched()
[all …]