Home
last modified time | relevance | path

Searched refs:mDeviceManager (Results 1 – 4 of 4) sorted by relevance

/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothRouteManager.java274 mDeviceManager.disconnectAudio(); in processMessage()
387 mDeviceManager.disconnectAudio(); in processMessage()
449 private BluetoothDeviceManager mDeviceManager; field in BluetoothRouteManager
460 mDeviceManager = deviceManager; in BluetoothRouteManager()
461 mDeviceManager.setBluetoothRouteManager(this); in BluetoothRouteManager()
497 return mDeviceManager.getNumConnectedDevices() > 0; in isBluetoothAvailable()
551 mDeviceManager.disconnectSco(); in disconnectSco()
555 mDeviceManager.cacheHearingAidDevice(); in cacheHearingAidDevice()
559 mDeviceManager.restoreHearingAidDevice(); in restoreHearingAidDevice()
610 return mDeviceManager.getUniqueConnectedDevices(); in getConnectedDevices()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothRouteTransitionTests.java238 @Mock private BluetoothDeviceManager mDeviceManager; field in BluetoothRouteTransitionTests
278 }).when(mDeviceManager).disconnectAudio(); in testTransitions()
327 verify(mDeviceManager, never()).connectAudio(nullable(String.class)); in testTransitions()
330 verify(mDeviceManager).connectAudio(mParams.expectedConnectionDevice.getAddress()); in testTransitions()
331 verify(mDeviceManager, never()).disconnectAudio(); in testTransitions()
334 verify(mDeviceManager, never()).connectAudio(nullable(String.class)); in testTransitions()
335 verify(mDeviceManager).disconnectAudio(); in testTransitions()
345 when(mDeviceManager.getNumConnectedDevices()).thenReturn(devices.length); in setupConnectedDevices()
346 when(mDeviceManager.getConnectedDevices()).thenReturn(Arrays.asList(devices)); in setupConnectedDevices()
361 when(mDeviceManager.getHeadsetService()).thenReturn(mHeadsetProxy); in setupStateMachine()
[all …]
DBluetoothRouteManagerTest.java63 @Mock private BluetoothDeviceManager mDeviceManager; field in BluetoothRouteManagerTest
167 new TelecomSystem.SyncRoot() { }, mDeviceManager, mTimeoutsAdapter); in setupStateMachine()
181 when(mDeviceManager.getNumConnectedDevices()).thenReturn( in setupConnectedDevices()
187 when(mDeviceManager.getConnectedDevices()).thenReturn(allDevices); in setupConnectedDevices()
218 reset(mDeviceManager, mListener, mHeadsetProxy, mTimeoutsAdapter); in resetMocks()
219 when(mDeviceManager.getHeadsetService()).thenReturn(mHeadsetProxy); in resetMocks()
220 when(mDeviceManager.getHearingAidService()).thenReturn(mBluetoothHearingAid); in resetMocks()
230 verify(mDeviceManager, times(numTimes)).connectAudio(device.getAddress()); in verifyConnectionAttempt()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDetailsHeaderController.java46 private CachedBluetoothDeviceManager mDeviceManager; field in BluetoothDetailsHeaderController
53 mDeviceManager = mLocalManager.getCachedDeviceManager(); in BluetoothDetailsHeaderController()
80 mDeviceManager.getSubDeviceSummary(mCachedDevice)); in setHeaderProperties()