Home
last modified time | relevance | path

Searched refs:mLocalBluetoothManager (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesChecker.java44 private final LocalBluetoothManager mLocalBluetoothManager; field in HearingDevicesChecker
51 mLocalBluetoothManager = localBluetoothManager; in HearingDevicesChecker()
65 if (mLocalBluetoothManager == null) { in isAnyPairedHearingDevice()
68 if (!mLocalBluetoothManager.getBluetoothAdapter().isEnabled()) { in isAnyPairedHearingDevice()
72 return mLocalBluetoothManager.getCachedDeviceManager().getCachedDevicesCopy().stream() in isAnyPairedHearingDevice()
87 if (mLocalBluetoothManager == null) { in isAnyActiveHearingDevice()
90 if (!mLocalBluetoothManager.getBluetoothAdapter().isEnabled()) { in isAnyActiveHearingDevice()
94 return mLocalBluetoothManager.getCachedDeviceManager().getCachedDevicesCopy().stream() in isAnyActiveHearingDevice()
DHearingDevicesDialogDelegate.java102 private final LocalBluetoothManager mLocalBluetoothManager; field in HearingDevicesDialogDelegate
172 mLocalBluetoothManager = localBluetoothManager; in HearingDevicesDialogDelegate()
262 if (mLocalBluetoothManager == null) { in onCreate()
280 if (mLocalBluetoothManager == null) { in onStart()
284 mLocalBluetoothManager.getEventManager().registerCallback(this); in onStart()
295 if (mLocalBluetoothManager == null) { in onStop()
303 mLocalBluetoothManager.getEventManager().unregisterCallback(this); in onStop()
414 if (mLocalBluetoothManager == null in getHearingDevicesList()
415 || !mLocalBluetoothManager.getBluetoothAdapter().isEnabled()) { in getHearingDevicesList()
419 return mLocalBluetoothManager.getCachedDeviceManager().getCachedDevicesCopy().stream() in getHearingDevicesList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImpl.java71 private final LocalBluetoothManager mLocalBluetoothManager; field in BluetoothControllerImpl
105 mLocalBluetoothManager = localBluetoothManager; in BluetoothControllerImpl()
108 if (mLocalBluetoothManager != null) { in BluetoothControllerImpl()
109 mLocalBluetoothManager.getEventManager().registerCallback(this); in BluetoothControllerImpl()
110 mLocalBluetoothManager.getProfileManager().addServiceListener(this); in BluetoothControllerImpl()
112 mLocalBluetoothManager.getBluetoothAdapter().getBluetoothState()); in BluetoothControllerImpl()
130 pw.print(" mLocalBluetoothManager="); pw.println(mLocalBluetoothManager); in dump()
131 if (mLocalBluetoothManager == null) { in dump()
231 if (mLocalBluetoothManager != null) { in setBluetoothEnabled()
232 mLocalBluetoothManager.getBluetoothAdapter().setBluetoothEnabled(enabled); in setBluetoothEnabled()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesCheckerTest.java56 private LocalBluetoothManager mLocalBluetoothManager; field in HearingDevicesCheckerTest
69 when(mLocalBluetoothManager.getBluetoothAdapter()).thenReturn(mLocalBluetoothAdapter); in setUp()
70 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn( in setUp()
77 mDevicesChecker = new HearingDevicesChecker(mContext, mLocalBluetoothManager); in setUp()
DHearingDevicesDialogDelegateTest.java105 private LocalBluetoothManager mLocalBluetoothManager; field in HearingDevicesDialogDelegateTest
136 when(mLocalBluetoothManager.getBluetoothAdapter()).thenReturn(mLocalBluetoothAdapter); in setUp()
137 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mProfileManager); in setUp()
140 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
142 when(mLocalBluetoothManager.getEventManager()).thenReturn(mBluetoothEventManager); in setUp()
241 mLocalBluetoothManager, in setUpPairNewDeviceDialog()
264 mLocalBluetoothManager, in setUpDeviceListDialog()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DLocalMediaManager.java85 private LocalBluetoothManager mLocalBluetoothManager; field in LocalMediaManager
139 mLocalBluetoothManager = in LocalMediaManager()
143 if (mLocalBluetoothManager == null) { in LocalMediaManager()
155 mLocalBluetoothManager, in LocalMediaManager()
167 mLocalBluetoothManager = localBluetoothManager; in LocalMediaManager()
488 final A2dpProfile a2dpProfile = mLocalBluetoothManager.getProfileManager().getA2dpProfile(); in isActiveDevice()
493 final HearingAidProfile hearingAidProfile = mLocalBluetoothManager.getProfileManager() in isActiveDevice()
502 final LeAudioProfile leAudioProfile = mLocalBluetoothManager.getProfileManager() in isActiveDevice()
568 mLocalBluetoothManager.getCachedDeviceManager(); in getMutingExpectedDevice()
596 mLocalBluetoothManager.getCachedDeviceManager(); in buildDisconnectedBluetoothDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputController.java132 private final LocalBluetoothManager mLocalBluetoothManager; field in MediaOutputController
201 mLocalBluetoothManager = lbm; in MediaOutputController()
973 mLocalBluetoothManager, in launchMediaOutputBroadcastDialog()
990 mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastProfile(); in getBroadcastName()
1000 mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastProfile(); in setBroadcastName()
1010 mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastProfile(); in getBroadcastCode()
1020 mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastProfile(); in setBroadcastCode()
1041 mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastProfile(); in getLocalBroadcastMetadataQrCodeString()
1053 mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastProfile(); in getBroadcastMetadata()
1076 mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastProfile(); in isBroadcastSupported()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/
DBroadcastDialogDelegate.java73 private final LocalBluetoothManager mLocalBluetoothManager; field in BroadcastDialogDelegate
170 mLocalBluetoothManager = localBluetoothManager; in BroadcastDialogDelegate()
267 mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastProfile(); in registerBroadcastCallBack()
277 mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastProfile(); in unregisterBroadcastCallBack()
287 mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastProfile(); in startBluetoothLeBroadcast()
300 mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastProfile(); in stopBluetoothLeBroadcast()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCsipDeviceManagerTest.java61 private LocalBluetoothManager mLocalBluetoothManager; field in CsipDeviceManagerTest
120 when(mLocalBluetoothManager.getEventManager()).thenReturn(mBluetoothEventManager); in setUp()
121 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mLocalProfileManager); in setUp()
127 mCachedDeviceManager = new CachedBluetoothDeviceManager(mContext, mLocalBluetoothManager); in setUp()
128 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
DCachedBluetoothDeviceManagerTest.java72 private LocalBluetoothManager mLocalBluetoothManager; field in CachedBluetoothDeviceManagerTest
125 when(mLocalBluetoothManager.getEventManager()).thenReturn(mBluetoothEventManager); in setUp()
126 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mLocalProfileManager); in setUp()
137 mCachedDeviceManager = new CachedBluetoothDeviceManager(mContext, mLocalBluetoothManager); in setUp()
408 mHearingAidDeviceManager = spy(new HearingAidDeviceManager(mContext, mLocalBluetoothManager, in updateHearingAidDevices_directToHearingAidDeviceManager()
612 mHearingAidDeviceManager = spy(new HearingAidDeviceManager(mContext, mLocalBluetoothManager, in onActiveDeviceChanged_validHiSyncId_callExpectedFunction()
DBluetoothUtilsTest.java72 private LocalBluetoothManager mLocalBluetoothManager; field in BluetoothUtilsTest
99 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mProfileManager); in setUp()
535 assertThat(BluetoothUtils.isBroadcasting(mLocalBluetoothManager)).isEqualTo(true); in testIsBroadcasting_broadcastEnabled_returnTrue()
552 mCachedBluetoothDevice, mLocalBluetoothManager)) in testHasConnectedBroadcastSource_deviceConnectedToBroadcastSource()
DHearingAidDeviceManagerTest.java101 private LocalBluetoothManager mLocalBluetoothManager; field in HearingAidDeviceManagerTest
139 when(mLocalBluetoothManager.getEventManager()).thenReturn(mBluetoothEventManager); in setUp()
140 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mLocalProfileManager); in setUp()
153 mCachedDeviceManager = new CachedBluetoothDeviceManager(mContext, mLocalBluetoothManager); in setUp()
154 mHearingAidDeviceManager = spy(new HearingAidDeviceManager(mContext, mLocalBluetoothManager, in setUp()
DCachedBluetoothDeviceTest.java110 private LocalBluetoothManager mLocalBluetoothManager; field in CachedBluetoothDeviceTest
151 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mProfileManager); in setUp()
156 mCachedDevice.setLocalBluetoothManager(mLocalBluetoothManager); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/
DBroadcastDialogDelegateTest.java68 private final LocalBluetoothManager mLocalBluetoothManager = mock(LocalBluetoothManager.class); field in BroadcastDialogDelegateTest
92 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mLocalBluetoothProfileManager); in setUp()
101 mLocalBluetoothManager, in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputBaseDialogTest.java81 private LocalBluetoothManager mLocalBluetoothManager = mock(LocalBluetoothManager.class); field in MediaOutputBaseDialogTest
113 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mLocalBluetoothProfileManager); in setUp()
116 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn( in setUp()
133 mLocalBluetoothManager, in setUp()
DMediaOutputControllerTest.java124 private LocalBluetoothManager mLocalBluetoothManager; field in MediaOutputControllerTest
194 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn( in setUp()
204 mLocalBluetoothManager, in setUp()
298 mLocalBluetoothManager, in start_withoutPackageName_verifyMediaControllerInit()
340 mLocalBluetoothManager, in stop_withoutPackageName_verifyMediaControllerDeinit()
596 mLocalBluetoothManager, in getAppSourceName_packageNameIsNull_returnsNull()
630 mLocalBluetoothManager, in getNotificationSmallIcon_packageNameIsNull_returnsNull()
677 mLocalBluetoothManager, in addDeviceToPlayMedia_callsLocalMediaManager()
704 mLocalBluetoothManager, in removeDeviceFromPlayMedia_callsLocalMediaManager()
984 mLocalBluetoothManager, in getNotificationLargeIcon_withoutPackageName_returnsNull()
[all …]
DMediaOutputBroadcastDialogTest.java86 private final LocalBluetoothManager mLocalBluetoothManager = mock(LocalBluetoothManager.class); field in MediaOutputBroadcastDialogTest
120 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mLocalBluetoothProfileManager); in setUp()
134 mLocalBluetoothManager, in setUp()
DMediaOutputDialogTest.java91 private final LocalBluetoothManager mLocalBluetoothManager = mock(LocalBluetoothManager.class); field in MediaOutputDialogTest
126 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mLocalBluetoothProfileManager); in setUp()
147 mLocalBluetoothManager, in setUp()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DLocalMediaManagerTest.java81 private LocalBluetoothManager mLocalBluetoothManager; field in LocalMediaManagerTest
115 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mLocalProfileManager); in setUp()
128 mLocalBluetoothManager, in setUp()
142 mContext, mLocalBluetoothManager, mInfoMediaManager, TEST_PACKAGE_NAME); in setUp()
469 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(cachedManager); in onDeviceListAdded_haveMutingExpectedDevice_addMutingExpectedDevice()
DInfoMediaManagerTest.java128 private LocalBluetoothManager mLocalBluetoothManager; field in InfoMediaManagerTest
152 mLocalBluetoothManager, in setUp()
830 when(mLocalBluetoothManager.getCachedDeviceManager()) in addMediaDevice_verifyDeviceTypeCanCorrespondToMediaDevice()
852 when(mLocalBluetoothManager.getCachedDeviceManager()) in addMediaDevice_cachedBluetoothDeviceIsNull_shouldNotAdded()
880 when(mLocalBluetoothManager.getCachedDeviceManager()) in onRoutesUpdated_setsFirstSelectedRouteAsCurrentConnectedDevice()
DMediaDeviceTest.java89 private LocalBluetoothManager mLocalBluetoothManager; field in MediaDeviceTest
167 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mProfileManager); in setUp()