Home
last modified time | relevance | path

Searched refs:mBtAdapter (Results 1 – 4 of 4) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
DBluetoothScanner.java181 private final BluetoothAdapter mBtAdapter; field in BluetoothScanner.Receiver
190 mBtAdapter = BluetoothAdapter.getDefaultAdapter(); in Receiver()
275 if (mBtAdapter.isDiscovering()) { in scanNow()
276 mBtAdapter.cancelDiscovery(); in scanNow()
282 mBtAdapter.startDiscovery(); in scanNow()
300 if (mBtAdapter != null) { in stopNow()
301 mBtAdapter.cancelDiscovery(); in stopNow()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAccessoriesFragment.java48 private BluetoothAdapter mBtAdapter; field in AccessoriesFragment
74 if (mBtAdapter == null) { in updateAccessories()
79 final Set<BluetoothDevice> bondedDevices = mBtAdapter.getBondedDevices(); in updateAccessories()
156 mBtAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/
DMainFragmentTest.java291 mMainFragment.mBtAdapter = mock(BluetoothAdapter.class); in testUpdateAccessoryPref_hasNoAccessory()
293 doReturn(set).when(mMainFragment.mBtAdapter).getBondedDevices(); in testUpdateAccessoryPref_hasNoAccessory()
305 mMainFragment.mBtAdapter = mock(BluetoothAdapter.class); in testUpdateAccessoryPref_hasAccessories()
310 doReturn(set).when(mMainFragment.mBtAdapter).getBondedDevices(); in testUpdateAccessoryPref_hasAccessories()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java114 BluetoothAdapter mBtAdapter; field in MainFragment
155 mBtAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate()
585 if (mBtAdapter == null || accessoryPreference == null) { in updateAccessoryPref()
589 final Set<BluetoothDevice> bondedDevices = mBtAdapter.getBondedDevices(); in updateAccessoryPref()