/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | BluetoothDeviceManagerTest.java | 99 BluetoothDeviceManager mDeviceManager; field in BluetoothDeviceManagerTest 153 mDeviceManager = BluetoothDeviceManager.create(mMockContext); in setUp() 154 Assert.assertTrue(mDeviceManager != null); in setUp() 162 if (mDeviceManager != null) { in tearDown() 163 mDeviceManager.stop(); in tearDown() 164 mDeviceManager = null; in tearDown() 229 mDeviceManager.start(); in setPreconditionsAndStart() 232 mDeviceManager.addDevice(device); in setPreconditionsAndStart() 267 List<BluetoothDevice> devices = mDeviceManager.getDeviceListSnapshot(); in assertDeviceList() 432 mDeviceManager.addDevice(device); in testAddDeviceAlreadyInList_priorityListUnchanged() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | SavedBluetoothDeviceUpdaterTest.java | 84 private CachedBluetoothDeviceManager mDeviceManager; field in SavedBluetoothDeviceUpdaterTest 120 when(mBluetoothManager.getCachedDeviceManager()).thenReturn(mDeviceManager); in setUp() 121 when(mDeviceManager.getCachedDevicesCopy()).thenReturn(mCachedDevices); in setUp() 216 when(mBluetoothManager.getCachedDeviceManager()).thenReturn(mDeviceManager); in forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference() 217 when(mDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference() 234 when(mBluetoothManager.getCachedDeviceManager()).thenReturn(mDeviceManager); in forceUpdate_findCachedBluetoothDeviceNotMatched_removePreference() 235 when(mDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in forceUpdate_findCachedBluetoothDeviceNotMatched_removePreference() 251 when(mBluetoothManager.getCachedDeviceManager()).thenReturn(mDeviceManager); in forceUpdate_notFindCachedBluetoothDevice_doNothing() 252 when(mDeviceManager.findDevice(mBluetoothDevice)).thenReturn(null); in forceUpdate_notFindCachedBluetoothDevice_doNothing() 266 when(mBluetoothManager.getCachedDeviceManager()).thenReturn(mDeviceManager); in forceUpdate_bluetoothAdapterNotEnable_removeAllDevicesFromPreference() [all …]
|
D | BluetoothPairingDetailTest.java | 78 private CachedBluetoothDeviceManager mDeviceManager; field in BluetoothPairingDetailTest 98 doReturn(Collections.emptyList()).when(mDeviceManager).getCachedDevicesCopy(); in setUp() 102 mFragment.mCachedDeviceManager = mDeviceManager; in setUp()
|
/packages/services/Car/service/src/com/android/car/bluetooth/ |
D | CarBluetoothService.java | 77 private BluetoothDeviceManager mDeviceManager; field in CarBluetoothService 307 mDeviceManager = BluetoothDeviceManager.create(mContext); in createBluetoothDeviceManagerLocked() 308 mDeviceManager.start(); in createBluetoothDeviceManagerLocked() 319 if (mDeviceManager == null) return; in destroyBluetoothDeviceManagerLocked() 320 mDeviceManager.stop(); in destroyBluetoothDeviceManagerLocked() 321 mDeviceManager = null; in destroyBluetoothDeviceManagerLocked() 516 if (mDeviceManager != null) { in connectDevices() 517 mDeviceManager.beginAutoConnecting(); in connectDevices() 530 if (mDeviceManager != null) { in getProfileDevicePriorityList() 531 return mDeviceManager.getDeviceListSnapshot(); in getProfileDevicePriorityList() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/ |
D | BluetoothRouteManager.java | 287 BluetoothAdapter bluetoothAdapter = mDeviceManager.getBluetoothAdapter(); in processMessage() 353 mDeviceManager.disconnectAudio(); in processMessage() 516 mDeviceManager.disconnectAudio(); in processMessage() 598 private BluetoothDeviceManager mDeviceManager; field in BluetoothRouteManager 614 mDeviceManager = deviceManager; in BluetoothRouteManager() 615 mDeviceManager.setBluetoothRouteManager(this); in BluetoothRouteManager() 654 return mDeviceManager.getNumConnectedDevices() > 0; in isBluetoothAvailable() 708 mDeviceManager.disconnectAudio(); in disconnectAudio() 712 mDeviceManager.cacheHearingAidDevice(); in cacheHearingAidDevice() 716 mDeviceManager.restoreHearingAidDevice(); in restoreHearingAidDevice() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothRouteManagerTest.java | 78 @Mock private BluetoothDeviceManager mDeviceManager; field in BluetoothRouteManagerTest 105 when(mDeviceManager.connectAudio(anyString(), anyBoolean())).thenReturn(true); in testConnectLeftHearingAidWhenLeftIsActive() 106 when(mDeviceManager.isHearingAidSetAsCommunicationDevice()).thenReturn(true); in testConnectLeftHearingAidWhenLeftIsActive() 131 when(mDeviceManager.connectAudio(anyString(), anyBoolean())).thenReturn(true); in testConnectRightHearingAidWhenLeftIsActive() 132 when(mDeviceManager.isHearingAidSetAsCommunicationDevice()).thenReturn(true); in testConnectRightHearingAidWhenLeftIsActive() 284 verify(mDeviceManager, never()).disconnectAudio(); in verifyConnectBtWithoutAddress() 288 verify(mDeviceManager, times(1)).disconnectAudio(); in verifyConnectBtWithoutAddress() 301 new TelecomSystem.SyncRoot() { }, mDeviceManager, in setupStateMachine() 319 when(mDeviceManager.getNumConnectedDevices()).thenReturn( in setupConnectedDevices() 325 when(mDeviceManager.getConnectedDevices()).thenReturn(allDevices); in setupConnectedDevices() [all …]
|
D | BluetoothRouteTransitionTests.java | 261 @Mock private BluetoothDeviceManager mDeviceManager; field in BluetoothRouteTransitionTests 274 when(mDeviceManager.getBluetoothAdapter()).thenReturn(mBluetoothAdapter); in setUp() 312 }).when(mDeviceManager).disconnectAudio(); in testTransitions() 368 verify(mDeviceManager, never()).connectAudio(nullable(String.class), in testTransitions() 372 verify(mDeviceManager).connectAudio(mParams.expectedConnectionDevice.getAddress(), in testTransitions() 374 verify(mDeviceManager, never()).disconnectAudio(); in testTransitions() 377 verify(mDeviceManager).disconnectAudio(); in testTransitions() 378 verify(mDeviceManager).connectAudio(mParams.expectedConnectionDevice.getAddress(), in testTransitions() 382 verify(mDeviceManager, never()).connectAudio(nullable(String.class), in testTransitions() 384 verify(mDeviceManager).disconnectAudio(); in testTransitions() [all …]
|
/packages/services/Telecomm/testapps/companionapp/src/com/android/server/telecom/companionapp/ |
D | CompanionTestApp.java | 43 private CompanionDeviceManager mDeviceManager; field in CompanionTestApp 84 mDeviceManager = getSystemService(CompanionDeviceManager.class); in setupDeviceAssociation() 101 mDeviceManager.associate(mPairingRequest, in assosicate() 123 for (String macAddress : mDeviceManager.getAssociations()) { in disassosicate() 124 mDeviceManager.disassociate(macAddress); in disassosicate()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingDevicePreferenceController.java | 78 @Nullable private final CachedBluetoothDeviceManager mDeviceManager; field in AudioSharingDevicePreferenceController 165 if (mDeviceManager != null && mDialogHandler != null) { 166 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(sink); 179 mDeviceManager = mBtManager == null ? null : mBtManager.getCachedDeviceManager(); in AudioSharingDevicePreferenceController() 471 (device == null || mDeviceManager == null) in handleDeviceClickFromIntent() 473 : mDeviceManager.findDevice(device); in handleDeviceClickFromIntent()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingDevicePreferenceControllerTest.java | 118 @Mock private CachedBluetoothDeviceManager mDeviceManager; field in AudioSharingDevicePreferenceControllerTest 155 when(mLocalBtManager.getCachedDeviceManager()).thenReturn(mDeviceManager); in setUp() 164 when(mDeviceManager.findDevice(mDevice)).thenReturn(mCachedDevice); in setUp() 417 verify(mDeviceManager, never()).findDevice(any(BluetoothDevice.class)); in handleDeviceClickFromIntent_noDevice_doNothing() 434 verify(mDeviceManager, never()).findDevice(any(BluetoothDevice.class)); in handleDeviceClickFromIntent_profileNotReady_doNothing() 452 verify(mDeviceManager, never()).findDevice(any(BluetoothDevice.class)); in handleDeviceClickFromIntent_intentHandled_handle()
|
D | AudioSharingSwitchBarControllerTest.java | 123 @Mock private CachedBluetoothDeviceManager mDeviceManager; field in AudioSharingSwitchBarControllerTest 157 when(localBluetoothManager.getCachedDeviceManager()).thenReturn(mDeviceManager); in setUp() 158 when(mDeviceManager.findDevice(mDevice1)).thenReturn(mCachedDevice1); in setUp() 163 when(mDeviceManager.findDevice(mDevice2)).thenReturn(mCachedDevice2); in setUp()
|
/packages/modules/NeuralNetworks/runtime/ |
D | TypeManager.h | 139 const DeviceManager* mDeviceManager = DeviceManager::get();
|
D | TypeManager.cpp | 172 for (const std::shared_ptr<Device>& device : mDeviceManager->getDrivers()) { in findAvailableExtensions()
|