Home
last modified time | relevance | path

Searched refs:mBluetoothAdapter (Results 1 – 16 of 16) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBluetoothRestrictionTest.java39 private BluetoothAdapter mBluetoothAdapter; field in BluetoothRestrictionTest
45 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in setUp()
57 if (mBluetoothAdapter == null) { in testEnableBluetoothFailsWhenDisallowed()
68 assertFalse(mBluetoothAdapter.enable()); in testEnableBluetoothFailsWhenDisallowed()
72 if (mBluetoothAdapter == null) { in testBluetoothGetsDisabledAfterRestrictionSet()
87 if (mBluetoothAdapter == null) { in testEnableBluetoothSucceedsAfterRestrictionRemoved()
113 if (mBluetoothAdapter == null) { in testOppDisabledWhenRestrictionSet()
147 if (mBluetoothAdapter == null) in disable()
151 if (mBluetoothAdapter.getState() == BluetoothAdapter.STATE_OFF) { in disable()
152 assertFalse(mBluetoothAdapter.isEnabled()); in disable()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DDevicePickerActivity.java54 private BluetoothAdapter mBluetoothAdapter; field in DevicePickerActivity
103 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate()
104 if (mBluetoothAdapter.isEnabled()) { in onCreate()
128 if (mBluetoothAdapter.isDiscovering()) { in scan()
129 mBluetoothAdapter.cancelDiscovery(); in scan()
131 mBluetoothAdapter.startDiscovery(); in scan()
136 Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices(); in populatePairedDevices()
145 if (mBluetoothAdapter != null) { in onDestroy()
146 mBluetoothAdapter.cancelDiscovery(); in onDestroy()
171 if (mBluetoothAdapter != null) { in onItemClick()
[all …]
DBluetoothToggleActivity.java46 private BluetoothAdapter mBluetoothAdapter; field in BluetoothToggleActivity
71 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate()
76 mToggleButton.setChecked(mBluetoothAdapter.isEnabled()); in onCreate()
111 if (!mBluetoothAdapter.disable()) { in disableBluetooth()
146 mToggleButton.setChecked(mBluetoothAdapter.isEnabled()); in onReceive()
DConnectionAccessClientActivity.java41 private BluetoothAdapter mBluetoothAdapter; field in ConnectionAccessClientActivity
72 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate()
73 if (!mBluetoothAdapter.isEnabled()) { in onCreate()
114 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(mDeviceAddress); in startChartService()
DConnectionAccessServerActivity.java47 private BluetoothAdapter mBluetoothAdapter; field in ConnectionAccessServerActivity
82 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate()
83 if (mBluetoothAdapter.isEnabled()) { in onCreate()
114 if (mBluetoothAdapter.getScanMode() != in makeDiscoverable()
DHidHostActivity.java39 BluetoothAdapter mBluetoothAdapter; field in HidHostActivity
55 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate()
102 BluetoothDevice bluetoothDevice = mBluetoothAdapter.getRemoteDevice(mDeviceAddress); in connectToDevice()
DBleAdvertiserService.java101 private BluetoothAdapter mBluetoothAdapter; field in BleAdvertiserService
119 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate()
120 mAdvertiser = mBluetoothAdapter.getBluetoothLeAdvertiser(); in onCreate()
198 if (mBluetoothAdapter != null && !mBluetoothAdapter.isMultipleAdvertisementSupported()) { in handleIntent()
DHidDeviceActivity.java51 private BluetoothAdapter mBluetoothAdapter; field in HidDeviceActivity
110 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate()
111 mBluetoothAdapter.getProfileProxy(getApplicationContext(), mProfileListener, in onCreate()
179 if (mBluetoothAdapter.getScanMode() != in makeDiscoverable()
DMessageTestActivity.java59 private BluetoothAdapter mBluetoothAdapter; field in MessageTestActivity
136 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate()
141 if (mBluetoothAdapter.isEnabled()) { in onCreate()
180 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(mDeviceAddress); in startChatService()
186 if (mBluetoothAdapter.getScanMode() != in makeDiscoverable()
DBleConnectionPriorityClientService.java103 private BluetoothAdapter mBluetoothAdapter; field in BleConnectionPriorityClientService
128 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate()
129 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in onCreate()
337 Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();
406 if (!mBluetoothAdapter.isEnabled()) { in startScan()
DBleCocClientService.java142 private BluetoothAdapter mBluetoothAdapter; field in BleCocClientService
169 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate()
170 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in onCreate()
178 if (!mBluetoothAdapter.isEnabled()) { in onStartCommand()
388 Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();
DBleEncryptedClientService.java112 private BluetoothAdapter mBluetoothAdapter; field in BleEncryptedClientService
140 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate()
142 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in onCreate()
175 if (!mBluetoothAdapter.isEnabled()) { in onStartCommand()
DBleClientService.java286 private BluetoothAdapter mBluetoothAdapter; field in BleClientService
319 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate()
320 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in onCreate()
330 if (!mBluetoothAdapter.isEnabled()) { in onStartCommand()
916 Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DHearingAidProfileTest.java62 private BluetoothAdapter mBluetoothAdapter; field in HearingAidProfileTest
90 mBluetoothAdapter = manager.getAdapter(); in setUp()
105 assertTrue(mBluetoothAdapter.isEnabled()); in setUp()
110 mIsHearingAidSupported = mBluetoothAdapter.getProfileProxy(getContext(), in setUp()
122 assertTrue(mBluetoothAdapter.isEnabled()); in tearDown()
154 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in test_getConnectionState()
300 if (mBluetoothAdapter.isEnabled()) return true; in enableAdapter()
302 mBluetoothAdapter.enable(); in enableAdapter()
306 while (!mBluetoothAdapter.isEnabled()) { in enableAdapter()
319 if (!mBluetoothAdapter.isEnabled()) { in enableAdapter()
[all …]
DBluetoothLeScanTest.java70 private BluetoothAdapter mBluetoothAdapter; field in BluetoothLeScanTest
82 mBluetoothAdapter = manager.getAdapter(); in setUp()
83 if (!mBluetoothAdapter.isEnabled()) { in setUp()
86 mBluetoothAdapter.enable(); in setUp()
89 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in setUp()
108 mBluetoothAdapter.disable(); in tearDown()
410 return mBluetoothAdapter.isOffloadedScanBatchingSupported(); in isBleBatchScanSupported()
/cts/tests/tests/car/src/android/car/cts/
DCarBluetoothTest.java60 private BluetoothAdapter mBluetoothAdapter; field in CarBluetoothTest
131 mBluetoothAdapter.enable(); in waitForAdapterState()
133 mBluetoothAdapter.disable(); in waitForAdapterState()
137 while (desiredState != mBluetoothAdapter.getState()) { in waitForAdapterState()
229 mBluetoothAdapter.getProfileProxy(mContext, new ProfileServiceListener(), profile); in waitForProfileConnections()
315 mBluetoothAdapter = mBluetoothManager.getAdapter(); in setUp()
333 assertTrue(mBluetoothAdapter.isEnabled()); in setUp()
357 assertNotNull(mBluetoothAdapter); in testRequiredBluetoothProfilesExist()