Home
last modified time | relevance | path

Searched refs:mLocalManager (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDeviceUpdater.java60 protected LocalBluetoothManager mLocalManager; field in BluetoothDeviceUpdater
78 mLocalManager = localManager; in BluetoothDeviceUpdater()
85 if (mLocalManager == null) { in registerCallback()
89 mLocalManager.setForegroundActivity(mFragment.getContext()); in registerCallback()
90 mLocalManager.getEventManager().registerCallback(this); in registerCallback()
91 mLocalManager.getProfileManager().addServiceListener(this); in registerCallback()
99 if (mLocalManager == null) { in unregisterCallback()
103 mLocalManager.setForegroundActivity(null); in unregisterCallback()
104 mLocalManager.getEventManager().unregisterCallback(this); in unregisterCallback()
105 mLocalManager.getProfileManager().removeServiceListener(this); in unregisterCallback()
[all …]
DDeviceListPreferenceFragment.java68 LocalBluetoothManager mLocalManager; field in DeviceListPreferenceFragment
95 mLocalManager = Utils.getLocalBtManager(getActivity()); in onCreate()
96 if (mLocalManager == null) { in onCreate()
115 if (mLocalManager == null || isUiRestricted()) return; in onStart()
117 mLocalManager.setForegroundActivity(getActivity()); in onStart()
118 mLocalManager.getEventManager().registerCallback(this); in onStart()
124 if (mLocalManager == null || isUiRestricted()) { in onStop()
129 mLocalManager.setForegroundActivity(null); in onStop()
130 mLocalManager.getEventManager().unregisterCallback(this); in onStop()
140 mLocalManager.getCachedDeviceManager().getCachedDevicesCopy(); in addCachedDevices()
DBluetoothDetailsHeaderController.java45 private LocalBluetoothManager mLocalManager; field in BluetoothDetailsHeaderController
52 mLocalManager = bluetoothManager; in BluetoothDetailsHeaderController()
53 mDeviceManager = mLocalManager.getCachedDeviceManager(); in BluetoothDetailsHeaderController()
DBluetoothPairingDetail.java72 if (mLocalManager == null){ in onStart()
99 if (mLocalManager == null){ in onStop()
127 mLocalManager.getCachedDeviceManager().clearNonBondedDevices(); in enableScanning()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothDeviceUpdater.java60 protected LocalBluetoothManager mLocalManager; field in BluetoothDeviceUpdater
78 mLocalManager = localManager; in BluetoothDeviceUpdater()
85 if (mLocalManager == null) { in registerCallback()
89 mLocalManager.setForegroundActivity(mFragment.getContext()); in registerCallback()
90 mLocalManager.getEventManager().registerCallback(this); in registerCallback()
91 mLocalManager.getProfileManager().addServiceListener(this); in registerCallback()
99 if (mLocalManager == null) { in unregisterCallback()
103 mLocalManager.setForegroundActivity(null); in unregisterCallback()
104 mLocalManager.getEventManager().unregisterCallback(this); in unregisterCallback()
105 mLocalManager.getProfileManager().removeServiceListener(this); in unregisterCallback()
[all …]
DDeviceListPreferenceFragment.java68 LocalBluetoothManager mLocalManager; field in DeviceListPreferenceFragment
95 mLocalManager = Utils.getLocalBtManager(getActivity()); in onCreate()
96 if (mLocalManager == null) { in onCreate()
115 if (mLocalManager == null || isUiRestricted()) return; in onStart()
117 mLocalManager.setForegroundActivity(getActivity()); in onStart()
118 mLocalManager.getEventManager().registerCallback(this); in onStart()
124 if (mLocalManager == null || isUiRestricted()) { in onStop()
129 mLocalManager.setForegroundActivity(null); in onStop()
130 mLocalManager.getEventManager().unregisterCallback(this); in onStop()
140 mLocalManager.getCachedDeviceManager().getCachedDevicesCopy(); in addCachedDevices()
DBluetoothPairingDetail.java72 if (mLocalManager == null){ in onStart()
99 if (mLocalManager == null){ in onStop()
127 mLocalManager.getCachedDeviceManager().clearNonBondedDevices(); in enableScanning()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/connecteddevice/
DDiscoverableFooterPreferenceController.java53 LocalBluetoothManager mLocalManager; field in DiscoverableFooterPreferenceController
61 mLocalManager = Utils.getLocalBtManager(context); in DiscoverableFooterPreferenceController()
62 if (mLocalManager == null) { in DiscoverableFooterPreferenceController()
117 if (mLocalManager == null) { in onResume()
128 if (mLocalManager == null) { in onPause()
/packages/apps/Settings/src/com/android/settings/connecteddevice/
DDiscoverableFooterPreferenceController.java53 LocalBluetoothManager mLocalManager; field in DiscoverableFooterPreferenceController
61 mLocalManager = Utils.getLocalBtManager(context); in DiscoverableFooterPreferenceController()
62 if (mLocalManager == null) { in DiscoverableFooterPreferenceController()
117 if (mLocalManager == null) { in onResume()
128 if (mLocalManager == null) { in onPause()
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/
DBluetoothTile.java44 private LocalBluetoothManager mLocalManager; field in BluetoothTile
96 mLocalManager = LocalBluetoothManager.getInstance( in BluetoothTile()
98 if (mLocalManager == null) { in BluetoothTile()
103 mLocalAdapter = mLocalManager.getBluetoothAdapter(); in BluetoothTile()
124 return mLocalManager != null; in isAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDeviceUpdaterTest.java77 private LocalBluetoothManager mLocalManager; field in BluetoothDeviceUpdaterTest
97 when(mLocalManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
105 mLocalManager) { in setUp()
203 mBluetoothDeviceUpdater.mLocalManager = null; in registerCallback_localBluetoothManagerNull_shouldNotCrash()
211 mBluetoothDeviceUpdater.mLocalManager = null; in unregisterCallback_localBluetoothManagerNull_shouldNotCrash()
DBluetoothDeviceDetailsFragmentTest.java69 private LocalBluetoothManager mLocalManager; field in BluetoothDeviceDetailsFragmentTest
80 doReturn(mLocalManager).when(mFragment).getLocalBluetoothManager(any()); in setUp()
102 assertThat(mFragment.mManager).isEqualTo(mLocalManager); in verifyOnAttachResult()
DBluetoothPairingDetailTest.java64 private LocalBluetoothManager mLocalManager; field in BluetoothPairingDetailTest
93 mFragment.mLocalManager = mLocalManager; in setUp()
DBluetoothDetailsProfilesControllerTest.java66 private LocalBluetoothManager mLocalManager; field in BluetoothDetailsProfilesControllerTest
78 when(mLocalManager.getProfileManager()).thenReturn(mProfileManager); in setUp()
84 mController = new BluetoothDetailsProfilesController(mContext, mFragment, mLocalManager, in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DDiscoverableFooterPreferenceControllerTest.java182 mDiscoverableFooterPreferenceController.mLocalManager = null; in onResume_localBluetoothManagerNull_shouldNotCrash()
191 mDiscoverableFooterPreferenceController.mLocalManager = null; in onPause_localBluetoothManagerNull_shouldNotCrash()
DAvailableMediaDeviceGroupControllerTest.java79 private LocalBluetoothManager mLocalManager; field in AvailableMediaDeviceGroupControllerTest
101 ShadowBluetoothUtils.sLocalBluetoothManager = mLocalManager; in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DMediaOutputPreferenceControllerTest.java87 private LocalBluetoothManager mLocalManager; field in MediaOutputPreferenceControllerTest
123 ShadowBluetoothUtils.sLocalBluetoothManager = mLocalManager; in setUp()
DAudioOutputSwitchPreferenceControllerTest.java95 private LocalBluetoothManager mLocalManager; field in AudioOutputSwitchPreferenceControllerTest
132 ShadowBluetoothUtils.sLocalBluetoothManager = mLocalManager; in setUp()
DHandsFreeProfileOutputPreferenceControllerTest.java87 private LocalBluetoothManager mLocalManager; field in HandsFreeProfileOutputPreferenceControllerTest
123 ShadowBluetoothUtils.sLocalBluetoothManager = mLocalManager; in setUp()