/packages/apps/Settings/src/com/android/settings/media/ |
D | MediaOutputIndicatorWorker.java | 39 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()
|
D | MediaOutputIndicatorSlice.java | 53 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/ |
D | MediaOutputIndicatorWorker.java | 39 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/ |
D | AudioSwitchPreferenceController.java | 79 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/ |
D | AudioSwitchPreferenceController.java | 82 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/ |
D | BluetoothUpdateWorker.java | 33 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/ |
D | BluetoothUpdateWorker.java | 33 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/ |
D | BluetoothPairingSelectionFragmentTest.java | 60 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()
|
D | BluetoothDisconnectConfirmDialogFragmentTest.java | 60 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()
|
D | RemoteRenameDialogFragmentTest.java | 63 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()
|
D | BluetoothDeviceNamePreferenceControllerTest.java | 67 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()
|
D | BluetoothDevicePickerFragmentTest.java | 45 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()
|
D | BluetoothPreferenceControllerTest.java | 72 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()
|
D | PairNewDevicePreferenceControllerTest.java | 71 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()
|
D | BluetoothBondedDevicesPreferenceControllerTest.java | 77 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()
|
D | BluetoothDeviceDetailsFragmentTest.java | 63 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()
|
D | BluetoothUnbondedDevicesPreferenceControllerTest.java | 84 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/ |
D | AudioOutputSwitchPreferenceControllerTest.java | 114 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/ |
D | AvailableMediaDeviceGroupController.java | 55 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/ |
D | AvailableMediaDeviceGroupController.java | 55 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/ |
D | AvailableMediaDeviceGroupControllerTest.java | 85 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/ |
D | BluetoothSettingsFragment.java | 65 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/ |
D | AccessibilityHearingAidPreferenceControllerTest.java | 85 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/ |
D | AccessibilityHearingAidPreferenceController.java | 83 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/ |
D | AccessibilityHearingAidPreferenceController.java | 83 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()
|