Searched refs:mCurrentDevice (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 77 private BluetoothDevice mCurrentDevice; field in HeadsetServiceTest 136 Assert.assertNotNull(mCurrentDevice); in setUp() 140 mStateMachines.put(mCurrentDevice, stateMachine); in setUp() 164 mCurrentDevice = null; in tearDown() 179 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testGetHeadsetService() 181 mHeadsetService.getConnectionState(mCurrentDevice)); in testGetHeadsetService() 183 mHeadsetService.getAudioState(mCurrentDevice)); in testGetHeadsetService() 191 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testOkToAcceptConnection() 194 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_NONE, in testOkToAcceptConnection() 196 testOkToAcceptConnectionCase(mCurrentDevice, BluetoothDevice.BOND_NONE, in testOkToAcceptConnection() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientStateMachine.java | 180 private BluetoothDevice mCurrentDevice = null; field in HeadsetClientStateMachine 204 if (mCurrentDevice == null) return; in dump() 206 "==== StateMachine for " + mCurrentDevice + " ===="); in dump() 207 ProfileService.println(sb, " mCurrentDevice: " + mCurrentDevice.getAddress() + "(" in dump() 208 + Utils.getName(mCurrentDevice) + ") " + this.toString()); in dump() 365 mNativeInterface.queryCurrentCalls(getByteAddress(mCurrentDevice)); in queryCallsStart() 508 new BluetoothHeadsetClientCall(mCurrentDevice, id, state, number, multiParty, in queryCallsUpdate() 588 if (mNativeInterface.handleCallAction(getByteAddress(mCurrentDevice), action, 0)) { in acceptCall() 627 if (mNativeInterface.handleCallAction(getByteAddress(mCurrentDevice), action, 0)) { in rejectCall() 652 if (mNativeInterface.handleCallAction(getByteAddress(mCurrentDevice), action, 0)) { in holdCall() [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/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | PbapClientStateMachine.java | 99 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() 299 onConnectionStateChanged(mCurrentDevice, mMostRecentState, in enter() 316 && ((BluetoothDevice) message.obj).equals(mCurrentDevice)) { in processMessage() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | AvrcpVolumeManager.java | 58 BluetoothDevice mCurrentDevice = null; field in AvrcpVolumeManager 216 if (mCurrentDevice == null) { in onAudioDevicesAdded() 226 && Objects.equals(addedDevices[i].getAddress(), mCurrentDevice.getAddress())) { 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() [all …]
|