Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/bluetooth/
DDeviceListPreferenceFragment.java68 LocalBluetoothManager mLocalManager; field in DeviceListPreferenceFragment
95 mLocalManager = Utils.getLocalBtManager(getActivity()); in onCreate()
96 if (mLocalManager == null) { in onCreate()
100 mLocalAdapter = mLocalManager.getBluetoothAdapter(); 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()
[all …]
DBluetoothDeviceNamePreferenceController.java53 private LocalBluetoothManager mLocalManager; field in BluetoothDeviceNamePreferenceController
59 mLocalManager = Utils.getLocalBtManager(context); in BluetoothDeviceNamePreferenceController()
60 if (mLocalManager == null) { in BluetoothDeviceNamePreferenceController()
64 mLocalAdapter = mLocalManager.getBluetoothAdapter(); in BluetoothDeviceNamePreferenceController()
DBluetoothPairingDetail.java108 mLocalManager.getCachedDeviceManager().clearNonBondedDevices(); in enableScanning()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothSettingsFragment.java58 private LocalBluetoothManager mLocalManager; field in BluetoothSettingsFragment
119 mLocalManager = LocalBluetoothManager.getInstance(getContext(), null /* listener */); in onActivityCreated()
120 if (mLocalManager == null) { in onActivityCreated()
124 mLocalAdapter = mLocalManager.getBluetoothAdapter(); in onActivityCreated()
130 getContext() , mLocalManager, mFragmentController); in onActivityCreated()
137 if (mLocalManager == null) { in onStart()
145 mLocalManager.setForegroundActivity(getActivity()); in onStart()
146 mLocalManager.getEventManager().registerCallback(this); in onStart()
167 if (mLocalManager == null) { in onStop()
173 mLocalManager.setForegroundActivity(null); in onStop()
[all …]
DBluetoothDetailFragment.java56 private LocalBluetoothManager mLocalManager; field in BluetoothDetailFragment
74 mLocalManager = LocalBluetoothManager.getInstance(getContext(), null /* listener */); in onCreate()
75 if (mLocalManager == null) { in onCreate()
79 mDeviceManager = mLocalManager.getCachedDeviceManager(); in onCreate()
83 mLocalManager.getBluetoothAdapter(), in onCreate()
84 mLocalManager.getProfileManager(), in onCreate()
DBluetoothDeviceListAdapter.java76 private final LocalBluetoothManager mLocalManager; field in BluetoothDeviceListAdapter
118 mLocalManager = localBluetoothManager; in BluetoothDeviceListAdapter()
120 mLocalAdapter = mLocalManager.getBluetoothAdapter(); in BluetoothDeviceListAdapter()
121 mDeviceManager = mLocalManager.getCachedDeviceManager(); in BluetoothDeviceListAdapter()
135 mLocalManager.getEventManager().registerCallback(this); in start()
149 mLocalManager.getEventManager().unregisterCallback(this); in stop()
369 mLocalAdapter, mLocalManager.getProfileManager(), device); in addBondDevices()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothPairingDetailTest.java65 private LocalBluetoothManager mLocalManager; field in BluetoothPairingDetailTest
86 mFragment.mLocalManager = mLocalManager; in setUp()
DBluetoothDeviceDetailsFragmentTest.java65 private LocalBluetoothManager mLocalManager; field in BluetoothDeviceDetailsFragmentTest
75 doReturn(mLocalManager).when(mFragment).getLocalBluetoothManager(any()); in setUp()
DBluetoothDetailsProfilesControllerTest.java65 private LocalBluetoothManager mLocalManager; field in BluetoothDetailsProfilesControllerTest
77 when(mLocalManager.getProfileManager()).thenReturn(mProfileManager); in setUp()
83 mController = new BluetoothDetailsProfilesController(mContext, mFragment, mLocalManager, in setUp()