/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 115 private BluetoothDevice mCurrentDevice; field in HeadsetServiceTest 167 assertThat(mCurrentDevice).isNotNull(); in setUp() 174 mStateMachines.put(mCurrentDevice, stateMachine); in setUp() 194 mCurrentDevice = null; in tearDown() 203 mCurrentDevice = getTestDevice(0); in testGetHeadsetService() 204 assertThat(mHeadsetService.getConnectionState(mCurrentDevice)) in testGetHeadsetService() 206 assertThat(mHeadsetService.getAudioState(mCurrentDevice)) in testGetHeadsetService() 213 mCurrentDevice = getTestDevice(0); in testOkToAcceptConnection() 217 mCurrentDevice, in testOkToAcceptConnection() 222 mCurrentDevice, BluetoothDevice.BOND_NONE, CONNECTION_POLICY_FORBIDDEN, false); in testOkToAcceptConnection() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mcp/ |
D | MediaControlGattServiceTest.java | 75 private BluetoothDevice mCurrentDevice; field in MediaControlGattServiceTest 107 if (mCurrentDevice == null) { in prepareConnectedDevice() 108 mCurrentDevice = getTestDevice(0); in prepareConnectedDevice() 110 devices.add(mCurrentDevice); in prepareConnectedDevice() 112 doReturn(true).when(mGattServer).isDeviceConnected(eq(mCurrentDevice)); in prepareConnectedDevice() 119 mMediaControlGattService.setCcc(mCurrentDevice, characteristic.getUuid(), 0, value, true); in prepareConnectedDevicesCccVal() 574 mCurrentDevice, in verifyWriteObjIdsValid() 586 eq(mCurrentDevice), in verifyWriteObjIdsValid() 612 mCurrentDevice, 1, characteristic, false, true, 0, bb.array()); in testWriteCallbacksValid() 618 eq(mCurrentDevice), in testWriteCallbacksValid() [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/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientStateMachine.java | 194 @VisibleForTesting BluetoothDevice mCurrentDevice = null; field in HeadsetClientStateMachine 218 if (mCurrentDevice != null) { in dump() 219 ProfileService.println(sb, "==== StateMachine for " + mCurrentDevice + " ===="); in dump() 223 + mCurrentDevice in dump() 225 + Utils.getName(mCurrentDevice) in dump() 423 mNativeInterface.queryCurrentCalls(mCurrentDevice); in queryCallsStart() 597 mCurrentDevice, id, state, number, multiParty, outgoing, mInBandRing)); in queryCallsUpdate() 676 if (mNativeInterface.handleCallAction(mCurrentDevice, action, 0)) { in acceptCall() 717 if (mNativeInterface.handleCallAction(mCurrentDevice, action, 0)) { in rejectCall() 742 if (mNativeInterface.handleCallAction(mCurrentDevice, action, 0)) { in holdCall() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/ |
D | PbapClientStateMachineOld.java | 119 private final BluetoothDevice mCurrentDevice; field in PbapClientStateMachineOld 148 mCurrentDevice = device; in PbapClientStateMachineOld() 169 onConnectionStateChanged(mCurrentDevice, mMostRecentState, STATE_DISCONNECTED); in enter() 180 onConnectionStateChanged(mCurrentDevice, mMostRecentState, STATE_CONNECTING); in enter() 181 mCurrentDevice.sdpSearch(BluetoothUuid.PBAP_PSE); in enter() 199 .setRemoteDevice(mCurrentDevice) in enter() 212 && message.obj.equals(mCurrentDevice)) { in processMessage() 247 mCurrentDevice.sdpSearch(BluetoothUuid.PBAP_PSE); in processMessage() 276 onConnectionStateChanged(mCurrentDevice, mMostRecentState, STATE_DISCONNECTING); in enter() 333 onConnectionStateChanged(mCurrentDevice, mMostRecentState, STATE_CONNECTED); in enter() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/ |
D | BassClientServiceTest.java | 175 private final BluetoothDevice mCurrentDevice = getTestDevice(0); field in BassClientServiceTest 297 assertThat(mCurrentDevice).isNotNull(); in setUp() 351 assertThat(mBassClientService.getConnectionState(mCurrentDevice)) in testGetBassClientService() 360 mCurrentDevice, BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT)) in testGetPolicyAfterStopped() 362 assertThat(mBassClientService.getConnectionPolicy(mCurrentDevice)) in testGetPolicyAfterStopped() 377 assertThat(mBassClientService.connect(mCurrentDevice)).isTrue(); in testConnect() 380 eq(mCurrentDevice), eq(mBassClientService), eq(mAdapterService), any()); in testConnect() 381 BassClientStateMachine stateMachine = mStateMachines.get(mCurrentDevice); in testConnect() 408 assertThat(mCurrentDevice).isNotNull(); in testConnect_whenConnectionPolicyIsForbidden() 410 assertThat(mBassClientService.connect(mCurrentDevice)).isFalse(); in testConnect_whenConnectionPolicyIsForbidden() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/ |
D | AvrcpVolumeManager.java | 82 BluetoothDevice mCurrentDevice = null; field in AvrcpVolumeManager 353 if (mCurrentDevice == null) { in onAudioDevicesAdded() 363 && Objects.equals(addedDevices[i].getAddress(), mCurrentDevice.getAddress())) { in onAudioDevicesAdded() 370 d("Didn't find deferred device in list: device=" + mCurrentDevice); in onAudioDevicesAdded() 377 if (!mDeviceMap.containsKey(mCurrentDevice)) { in onAudioDevicesAdded() 378 Log.w(TAG, "volumeDeviceSwitched: Device isn't connected: " + mCurrentDevice); in onAudioDevicesAdded() 382 switchVolumeDevice(mCurrentDevice); in onAudioDevicesAdded() 396 if (device.equals(mCurrentDevice)) { in deviceConnected() 406 d("volumeDeviceSwitched: mCurrentDevice=" + mCurrentDevice + " device=" + device); in volumeDeviceSwitched() 408 if (Objects.equals(device, mCurrentDevice)) { in volumeDeviceSwitched() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientStateMachineTest.java | 760 mHeadsetClientStateMachine.mCurrentDevice = mTestDevice; in testSetAudioRouteAllowed() 784 assertThat(mHeadsetClientStateMachine.mCurrentDevice).isNull(); in testGetAudioState_withCurrentDeviceNull() 794 mHeadsetClientStateMachine.mCurrentDevice = mTestDevice; in testGetAudioState_withCurrentDeviceNotNull() 831 mHeadsetClientStateMachine.mCurrentDevice = mTestDevice; in testGetConnectionState_withNonNullDevice()
|