/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 103 private BluetoothDevice mCurrentDevice; field in HeadsetServiceTest 155 Assert.assertNotNull(mCurrentDevice); in setUp() 164 mStateMachines.put(mCurrentDevice, stateMachine); in setUp() 185 mCurrentDevice = null; in tearDown() 194 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testGetHeadsetService() 197 mHeadsetService.getConnectionState(mCurrentDevice)); in testGetHeadsetService() 200 mHeadsetService.getAudioState(mCurrentDevice)); in testGetHeadsetService() 206 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testOkToAcceptConnection() 210 mCurrentDevice, in testOkToAcceptConnection() 215 mCurrentDevice, in testOkToAcceptConnection() [all …]
|
/packages/apps/Camera2/src/com/android/camera/device/ |
D | MultiCameraDeviceLifecycle.java | 88 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() 297 } else if (mCurrentDevice.getId().equals(key)) { in openDevice() 300 (SingleDeviceLifecycle<TDevice, CameraDeviceKey>) mCurrentDevice; in openDevice() 307 mCurrentDevice.close(); in openDevice() 366 (mCurrentDevice == null || (mCurrentDevice.getId().equals(key)))) { in onCameraDeviceShutdown() 370 mCurrentDevice = null; in onCameraDeviceShutdown() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mcp/ |
D | MediaControlGattServiceTest.java | 64 private BluetoothDevice mCurrentDevice; field in MediaControlGattServiceTest 116 if (mCurrentDevice == null) { in prepareConnectedDevice() 117 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in prepareConnectedDevice() 119 devices.add(mCurrentDevice); in prepareConnectedDevice() 121 doReturn(true).when(mMockGattServer).isDeviceConnected(eq(mCurrentDevice)); in prepareConnectedDevice() 128 mMcpService.setCcc(mCurrentDevice, characteristic.getUuid(), 0, value, true); in prepareConnectedDevicesCccVal() 567 mCurrentDevice, in verifyWriteObjIdsValid() 579 eq(mCurrentDevice), in verifyWriteObjIdsValid() 605 mCurrentDevice, 1, characteristic, false, true, 0, bb.array()); in testWriteCallbacksValid() 611 eq(mCurrentDevice), in testWriteCallbacksValid() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientStateMachine.java | 182 @VisibleForTesting BluetoothDevice mCurrentDevice = null; field in HeadsetClientStateMachine 206 if (mCurrentDevice != null) { in dump() 207 ProfileService.println(sb, "==== StateMachine for " + mCurrentDevice + " ===="); in dump() 211 + mCurrentDevice in dump() 213 + Utils.getName(mCurrentDevice) in dump() 409 mNativeInterface.queryCurrentCalls(mCurrentDevice); in queryCallsStart() 583 mCurrentDevice, id, state, number, multiParty, outgoing, mInBandRing)); in queryCallsUpdate() 664 if (mNativeInterface.handleCallAction(mCurrentDevice, action, 0)) { in acceptCall() 705 if (mNativeInterface.handleCallAction(mCurrentDevice, action, 0)) { in rejectCall() 730 if (mNativeInterface.handleCallAction(mCurrentDevice, action, 0)) { in holdCall() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/ |
D | PbapClientStateMachine.java | 100 private final BluetoothDevice mCurrentDevice; field in PbapClientStateMachine 121 mCurrentDevice = device; in PbapClientStateMachine() 143 mCurrentDevice, mMostRecentState, BluetoothProfile.STATE_DISCONNECTED); in enter() 155 mCurrentDevice, mMostRecentState, BluetoothProfile.STATE_CONNECTING); in enter() 156 mCurrentDevice.sdpSearch(BluetoothUuid.PBAP_PSE); in enter() 173 .setRemoteDevice(mCurrentDevice) in enter() 186 && message.obj.equals(mCurrentDevice)) { in processMessage() 225 mCurrentDevice, mMostRecentState, BluetoothProfile.STATE_DISCONNECTING); in enter() 283 mCurrentDevice, mMostRecentState, BluetoothProfile.STATE_CONNECTED); in enter() 294 && ((BluetoothDevice) message.obj).equals(mCurrentDevice)) { in processMessage() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/tbs/ |
D | TbsGenericTest.java | 57 private BluetoothDevice mCurrentDevice; field in TbsGenericTest 153 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testSetClearInbandRingtone() 156 mTbsGeneric.setInbandRingtoneSupport(mCurrentDevice); in testSetClearInbandRingtone() 157 verify(mTbsGatt).setInbandRingtoneFlag(mCurrentDevice); in testSetClearInbandRingtone() 159 mTbsGeneric.clearInbandRingtoneSupport(mCurrentDevice); in testSetClearInbandRingtone() 160 verify(mTbsGatt).clearInbandRingtoneFlag(mCurrentDevice); in testSetClearInbandRingtone() 333 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testCallAccept() 364 mCurrentDevice, TbsGatt.CALL_CONTROL_POINT_OPCODE_ACCEPT, args); in testCallAccept() 376 verify(leAudioService).setActiveDevice(mCurrentDevice); in testCallAccept() 386 eq(mCurrentDevice), in testCallAccept() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/ |
D | AvrcpVolumeManager.java | 80 BluetoothDevice mCurrentDevice = null; field in AvrcpVolumeManager 346 if (mCurrentDevice == null) { in onAudioDevicesAdded() 356 && Objects.equals(addedDevices[i].getAddress(), mCurrentDevice.getAddress())) { in onAudioDevicesAdded() 363 d("Didn't find deferred device in list: device=" + mCurrentDevice); in onAudioDevicesAdded() 370 if (!mDeviceMap.containsKey(mCurrentDevice)) { in onAudioDevicesAdded() 371 Log.w(TAG, "volumeDeviceSwitched: Device isn't connected: " + mCurrentDevice); in onAudioDevicesAdded() 375 switchVolumeDevice(mCurrentDevice); in onAudioDevicesAdded() 389 if (device.equals(mCurrentDevice)) { in deviceConnected() 399 d("volumeDeviceSwitched: mCurrentDevice=" + mCurrentDevice + " device=" + device); in volumeDeviceSwitched() 401 if (Objects.equals(device, mCurrentDevice)) { in volumeDeviceSwitched() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/ |
D | BassClientServiceTest.java | 147 private BluetoothDevice mCurrentDevice; field in BassClientServiceTest 263 assertThat(mCurrentDevice).isNotNull(); in setUp() 295 mIntentQueue.put(mCurrentDevice, new LinkedBlockingQueue<>()); in setUp() 325 mCurrentDevice = null; in tearDown() 364 mCurrentDevice = TestUtils.getTestDevice(mBluetoothAdapter, 0); in testGetBassClientService() 365 assertThat(mBassClientService.getConnectionState(mCurrentDevice)) in testGetBassClientService() 374 mCurrentDevice, BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT)) in testGetPolicyAfterStopped() 379 mBassClientService.getConnectionPolicy(mCurrentDevice)); in testGetPolicyAfterStopped() 392 mCurrentDevice = TestUtils.getTestDevice(mBluetoothAdapter, 0); in testConnect() 394 assertThat(mBassClientService.connect(mCurrentDevice)).isTrue(); in testConnect() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientStateMachineTest.java | 1095 mHeadsetClientStateMachine.mCurrentDevice = mTestDevice; 1119 Assert.assertNull(mHeadsetClientStateMachine.mCurrentDevice); 1130 mHeadsetClientStateMachine.mCurrentDevice = mTestDevice; 1168 mHeadsetClientStateMachine.mCurrentDevice = mTestDevice;
|