Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/media/
DMediaOutputIndicatorWorker.java39 private LocalBluetoothManager mLocalBluetoothManager; field in MediaOutputIndicatorWorker
47 mLocalBluetoothManager = Utils.getLocalBtManager(getContext()); in onSlicePinned()
48 if (mLocalBluetoothManager == null) { in onSlicePinned()
52 mLocalBluetoothManager.getEventManager().registerCallback(this); in onSlicePinned()
57 if (mLocalBluetoothManager == null) { in onSliceUnpinned()
61 mLocalBluetoothManager.getEventManager().unregisterCallback(this); in onSliceUnpinned()
66 mLocalBluetoothManager = null; in close()
DMediaOutputIndicatorSlice.java53 private LocalBluetoothManager mLocalBluetoothManager; field in MediaOutputIndicatorSlice
58 mLocalBluetoothManager = com.android.settings.bluetooth.Utils.getLocalBtManager(context); in MediaOutputIndicatorSlice()
59 if (mLocalBluetoothManager == null) { in MediaOutputIndicatorSlice()
63 mProfileManager = mLocalBluetoothManager.getProfileManager(); in MediaOutputIndicatorSlice()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/media/
DMediaOutputIndicatorWorker.java39 private LocalBluetoothManager mLocalBluetoothManager; field in MediaOutputIndicatorWorker
47 mLocalBluetoothManager = Utils.getLocalBtManager(getContext()); in onSlicePinned()
48 if (mLocalBluetoothManager == null) { in onSlicePinned()
52 mLocalBluetoothManager.getEventManager().registerCallback(this); in onSlicePinned()
57 if (mLocalBluetoothManager == null) { in onSliceUnpinned()
61 mLocalBluetoothManager.getEventManager().unregisterCallback(this); in onSliceUnpinned()
66 mLocalBluetoothManager = null; in close()
/packages/apps/Settings/src/com/android/settings/sound/
DAudioSwitchPreferenceController.java79 private LocalBluetoothManager mLocalBluetoothManager; field in AudioSwitchPreferenceController
98 mLocalBluetoothManager = localBtManagerFutureTask.get(); in AudioSwitchPreferenceController()
103 if (mLocalBluetoothManager == null) { in AudioSwitchPreferenceController()
107 mProfileManager = mLocalBluetoothManager.getProfileManager(); in AudioSwitchPreferenceController()
130 if (mLocalBluetoothManager == null) { in onStart()
134 mLocalBluetoothManager.setForegroundActivity(mContext); in onStart()
140 if (mLocalBluetoothManager == null) { in onStop()
144 mLocalBluetoothManager.setForegroundActivity(null); in onStop()
271 mLocalBluetoothManager.getEventManager().registerCallback(this); in register()
281 mLocalBluetoothManager.getEventManager().unregisterCallback(this); in unregister()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/
DAudioSwitchPreferenceController.java82 private LocalBluetoothManager mLocalBluetoothManager; field in AudioSwitchPreferenceController
102 mLocalBluetoothManager = localBtManagerFutureTask.get(); in AudioSwitchPreferenceController()
107 if (mLocalBluetoothManager == null) { in AudioSwitchPreferenceController()
111 mProfileManager = mLocalBluetoothManager.getProfileManager(); in AudioSwitchPreferenceController()
134 if (mLocalBluetoothManager == null) { in onStart()
138 mLocalBluetoothManager.setForegroundActivity(mContext); in onStart()
144 if (mLocalBluetoothManager == null) { in onStop()
148 mLocalBluetoothManager.setForegroundActivity(null); in onStop()
300 mLocalBluetoothManager.getEventManager().registerCallback(this); in register()
311 mLocalBluetoothManager.getEventManager().unregisterCallback(this); in unregister()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothUpdateWorker.java33 private final LocalBluetoothManager mLocalBluetoothManager; field in BluetoothUpdateWorker
37 mLocalBluetoothManager = Utils.getLocalBtManager(context); in BluetoothUpdateWorker()
42 if (mLocalBluetoothManager == null) { in onSlicePinned()
46 mLocalBluetoothManager.getEventManager().registerCallback(this); in onSlicePinned()
51 if (mLocalBluetoothManager == null) { in onSliceUnpinned()
55 mLocalBluetoothManager.getEventManager().unregisterCallback(this); in onSliceUnpinned()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DBluetoothUpdateWorker.java33 private final LocalBluetoothManager mLocalBluetoothManager; field in BluetoothUpdateWorker
37 mLocalBluetoothManager = Utils.getLocalBtManager(context); in BluetoothUpdateWorker()
42 if (mLocalBluetoothManager == null) { in onSlicePinned()
46 mLocalBluetoothManager.getEventManager().registerCallback(this); in onSlicePinned()
51 if (mLocalBluetoothManager == null) { in onSliceUnpinned()
55 mLocalBluetoothManager.getEventManager().unregisterCallback(this); in onSliceUnpinned()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothPairingSelectionFragmentTest.java60 private LocalBluetoothManager mLocalBluetoothManager; field in BluetoothPairingSelectionFragmentTest
68 mLocalBluetoothManager = LocalBluetoothManager.getInstance(context, /* onInitCallback= */ in setUp()
70 mSaveRealEventManager = mLocalBluetoothManager.getEventManager(); in setUp()
71 ReflectionHelpers.setField(mLocalBluetoothManager, "mEventManager", mEventManager); in setUp()
80 ReflectionHelpers.setField(mLocalBluetoothManager, "mEventManager", mSaveRealEventManager); in tearDown()
87 assertThat(mLocalBluetoothManager.getForegroundActivity()).isEqualTo( in onStart_setsBluetoothManagerForegroundActivity()
110 assertThat(mLocalBluetoothManager.getForegroundActivity()).isNull(); in onStop_clearsBluetoothManagerForegroundActivity()
DBluetoothDisconnectConfirmDialogFragmentTest.java60 private LocalBluetoothManager mLocalBluetoothManager; field in BluetoothDisconnectConfirmDialogFragmentTest
67 mLocalBluetoothManager = LocalBluetoothManager.getInstance( in setUp()
69 mSaveRealCachedDeviceManager = mLocalBluetoothManager.getCachedDeviceManager(); in setUp()
70 ReflectionHelpers.setField(mLocalBluetoothManager, "mCachedDeviceManager", in setUp()
85 ReflectionHelpers.setField(mLocalBluetoothManager, "mCachedDeviceManager", in tearDown()
DRemoteRenameDialogFragmentTest.java63 private LocalBluetoothManager mLocalBluetoothManager; field in RemoteRenameDialogFragmentTest
70 mLocalBluetoothManager = LocalBluetoothManager.getInstance( in setUp()
72 mSaveRealCachedDeviceManager = mLocalBluetoothManager.getCachedDeviceManager(); in setUp()
73 ReflectionHelpers.setField(mLocalBluetoothManager, "mCachedDeviceManager", in setUp()
87 ReflectionHelpers.setField(mLocalBluetoothManager, "mCachedDeviceManager", in tearDown()
DBluetoothDeviceNamePreferenceControllerTest.java67 private LocalBluetoothManager mLocalBluetoothManager; field in BluetoothDeviceNamePreferenceControllerTest
77 mLocalBluetoothManager = LocalBluetoothManager.getInstance(context, /* onInitCallback= */ in setUp()
79 mSaveRealCachedDeviceManager = mLocalBluetoothManager.getCachedDeviceManager(); in setUp()
80 ReflectionHelpers.setField(mLocalBluetoothManager, "mCachedDeviceManager", in setUp()
101 ReflectionHelpers.setField(mLocalBluetoothManager, "mCachedDeviceManager", in tearDown()
DBluetoothDevicePickerFragmentTest.java45 private LocalBluetoothManager mLocalBluetoothManager; field in BluetoothDevicePickerFragmentTest
53 mLocalBluetoothManager = LocalBluetoothManager.getInstance(context, /* onInitCallback= */ in setUp()
69 assertThat(mLocalBluetoothManager.getForegroundActivity()).isEqualTo( in onStart_setsBluetoothManagerForegroundActivity()
85 assertThat(mLocalBluetoothManager.getForegroundActivity()).isNull(); in onStop_clearsBluetoothManagerForegroundActivity()
DBluetoothPreferenceControllerTest.java72 private LocalBluetoothManager mLocalBluetoothManager; field in BluetoothPreferenceControllerTest
81 mLocalBluetoothManager = LocalBluetoothManager.getInstance(context, /* onInitCallback= */ in setUp()
83 mSaveRealEventManager = mLocalBluetoothManager.getEventManager(); in setUp()
84 ReflectionHelpers.setField(mLocalBluetoothManager, "mEventManager", mEventManager); in setUp()
94 ReflectionHelpers.setField(mLocalBluetoothManager, "mEventManager", mSaveRealEventManager); in tearDown()
DPairNewDevicePreferenceControllerTest.java71 private LocalBluetoothManager mLocalBluetoothManager; field in PairNewDevicePreferenceControllerTest
82 mLocalBluetoothManager = LocalBluetoothManager.getInstance(mContext, /* onInitCallback= */ in setUp()
84 mSaveRealEventManager = mLocalBluetoothManager.getEventManager(); in setUp()
85 ReflectionHelpers.setField(mLocalBluetoothManager, "mEventManager", mEventManager); in setUp()
103 ReflectionHelpers.setField(mLocalBluetoothManager, "mEventManager", mSaveRealEventManager); in tearDown()
DBluetoothBondedDevicesPreferenceControllerTest.java77 private LocalBluetoothManager mLocalBluetoothManager; field in BluetoothBondedDevicesPreferenceControllerTest
89 mLocalBluetoothManager = LocalBluetoothManager.getInstance(context, /* onInitCallback= */ in setUp()
91 mSaveRealCachedDeviceManager = mLocalBluetoothManager.getCachedDeviceManager(); in setUp()
92 ReflectionHelpers.setField(mLocalBluetoothManager, "mCachedDeviceManager", in setUp()
121 ReflectionHelpers.setField(mLocalBluetoothManager, "mCachedDeviceManager", in tearDown()
DBluetoothDeviceDetailsFragmentTest.java63 private LocalBluetoothManager mLocalBluetoothManager; field in BluetoothDeviceDetailsFragmentTest
73 mLocalBluetoothManager = LocalBluetoothManager.getInstance(mContext, /* onInitCallback= */ in setUp()
75 mSaveRealCachedDeviceManager = mLocalBluetoothManager.getCachedDeviceManager(); in setUp()
76 ReflectionHelpers.setField(mLocalBluetoothManager, "mCachedDeviceManager", in setUp()
91 ReflectionHelpers.setField(mLocalBluetoothManager, "mCachedDeviceManager", in tearDown()
DBluetoothUnbondedDevicesPreferenceControllerTest.java84 private LocalBluetoothManager mLocalBluetoothManager; field in BluetoothUnbondedDevicesPreferenceControllerTest
101 mLocalBluetoothManager = LocalBluetoothManager.getInstance(context, /* onInitCallback= */ in setUp()
103 mSaveRealCachedDeviceManager = mLocalBluetoothManager.getCachedDeviceManager(); in setUp()
104 ReflectionHelpers.setField(mLocalBluetoothManager, "mCachedDeviceManager", in setUp()
134 ReflectionHelpers.setField(mLocalBluetoothManager, "mCachedDeviceManager", in tearDown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DAudioOutputSwitchPreferenceControllerTest.java114 private LocalBluetoothManager mLocalBluetoothManager; field in AudioOutputSwitchPreferenceControllerTest
130 mLocalBluetoothManager = Utils.getLocalBtManager(mContext); in setUp()
132 when(mLocalBluetoothManager.getEventManager()).thenReturn(mBluetoothEventManager); in setUp()
133 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mLocalBluetoothProfileManager); in setUp()
174 mLocalBluetoothManager = Utils.getLocalBtManager(mContext); in constructor_notSupportBluetooth_shouldReturnBeforeUsingLocalBluetoothManager()
181 assertThat(mLocalBluetoothManager).isNull(); in constructor_notSupportBluetooth_shouldReturnBeforeUsingLocalBluetoothManager()
221 verify(mLocalBluetoothManager.getEventManager()).registerCallback( in onStart_shouldRegisterCallbackAndRegisterReceiver()
224 verify(mLocalBluetoothManager).setForegroundActivity(mContext); in onStart_shouldRegisterCallbackAndRegisterReceiver()
232 verify(mLocalBluetoothManager.getEventManager()).unregisterCallback( in onStop_shouldUnregisterCallbackAndUnregisterReceiver()
235 verify(mLocalBluetoothManager).setForegroundActivity(null); in onStop_shouldUnregisterCallbackAndUnregisterReceiver()
/packages/apps/Settings/src/com/android/settings/connecteddevice/
DAvailableMediaDeviceGroupController.java55 LocalBluetoothManager mLocalBluetoothManager; field in AvailableMediaDeviceGroupController
60 mLocalBluetoothManager = Utils.getLocalBtManager(mContext); in AvailableMediaDeviceGroupController()
65 if (mLocalBluetoothManager == null) { in onStart()
70 mLocalBluetoothManager.getEventManager().registerCallback(this); in onStart()
75 if (mLocalBluetoothManager == null) { in onStop()
80 mLocalBluetoothManager.getEventManager().unregisterCallback(this); in onStop()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/connecteddevice/
DAvailableMediaDeviceGroupController.java55 LocalBluetoothManager mLocalBluetoothManager; field in AvailableMediaDeviceGroupController
60 mLocalBluetoothManager = Utils.getLocalBtManager(mContext); in AvailableMediaDeviceGroupController()
65 if (mLocalBluetoothManager == null) { in onStart()
70 mLocalBluetoothManager.getEventManager().registerCallback(this); in onStart()
75 if (mLocalBluetoothManager == null) { in onStop()
80 mLocalBluetoothManager.getEventManager().unregisterCallback(this); in onStop()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DAvailableMediaDeviceGroupControllerTest.java85 private LocalBluetoothManager mLocalBluetoothManager; field in AvailableMediaDeviceGroupControllerTest
102 mLocalBluetoothManager = Utils.getLocalBtManager(mContext); in setUp()
104 doReturn(mEventManager).when(mLocalBluetoothManager).getEventManager(); in setUp()
161 verify(mLocalBluetoothManager.getEventManager()).registerCallback( in testRegister()
170 verify(mLocalBluetoothManager.getEventManager()).unregisterCallback( in testUnregister()
210 mAvailableMediaDeviceGroupController.mLocalBluetoothManager = null; in onStart_localBluetoothManagerNull_shouldNotCrash()
218 mAvailableMediaDeviceGroupController.mLocalBluetoothManager = null; in onStop_localBluetoothManagerNull_shouldNotCrash()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothSettingsFragment.java65 private LocalBluetoothManager mLocalBluetoothManager; field in BluetoothSettingsFragment
93 mLocalBluetoothManager = BluetoothUtils.getLocalBtManager(context); in onAttach()
94 if (mLocalBluetoothManager == null) { in onAttach()
103 mLocalBluetoothManager.setForegroundActivity(requireActivity()); in onStart()
111 mLocalBluetoothManager.setForegroundActivity(null); in onStop()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityHearingAidPreferenceControllerTest.java85 private LocalBluetoothManager mLocalBluetoothManager; field in AccessibilityHearingAidPreferenceControllerTest
187 when(mLocalBluetoothManager.getCachedDeviceManager().isSubDevice(mBluetoothDevice)) in getConnectedHearingAidDevice_doNotReturnSubDevice()
194 ShadowBluetoothUtils.sLocalBluetoothManager = mLocalBluetoothManager; in setupBluetoothEnvironment()
195 mLocalBluetoothManager = Utils.getLocalBtManager(mContext); in setupBluetoothEnvironment()
198 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setupBluetoothEnvironment()
199 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mLocalBluetoothProfileManager); in setupBluetoothEnvironment()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DAccessibilityHearingAidPreferenceController.java83 private final LocalBluetoothManager mLocalBluetoothManager; field in AccessibilityHearingAidPreferenceController
91 mLocalBluetoothManager = getLocalBluetoothManager(); in AccessibilityHearingAidPreferenceController()
159 final List<BluetoothDevice> deviceList = mLocalBluetoothManager.getProfileManager() in getConnectedHearingAidDevice()
164 if (!mLocalBluetoothManager.getCachedDeviceManager().isSubDevice(obj)) { in getConnectedHearingAidDevice()
165 return mLocalBluetoothManager.getCachedDeviceManager().findDevice(obj); in getConnectedHearingAidDevice()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityHearingAidPreferenceController.java83 private final LocalBluetoothManager mLocalBluetoothManager; field in AccessibilityHearingAidPreferenceController
91 mLocalBluetoothManager = getLocalBluetoothManager(); in AccessibilityHearingAidPreferenceController()
159 final List<BluetoothDevice> deviceList = mLocalBluetoothManager.getProfileManager() in getConnectedHearingAidDevice()
164 if (!mLocalBluetoothManager.getCachedDeviceManager().isSubDevice(obj)) { in getConnectedHearingAidDevice()
165 return mLocalBluetoothManager.getCachedDeviceManager().findDevice(obj); in getConnectedHearingAidDevice()

12