Home
last modified time | relevance | path

Searched refs:BTAdapterUtils (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBasicAdapterTest.java139 assertTrue(BTAdapterUtils.disableAdapter(adapter, mContext)); in test_enableDisable()
140 assertTrue(BTAdapterUtils.enableAdapter(adapter, mContext)); in test_enableDisable()
150 assertTrue(BTAdapterUtils.enableAdapter(adapter, mContext)); in test_getAddress()
161 assertTrue(BTAdapterUtils.enableAdapter(adapter, mContext)); in test_setName_getName()
192 assertTrue(BTAdapterUtils.enableAdapter(adapter, mContext)); in test_getBondedDevices()
208 assertTrue(BTAdapterUtils.disableAdapter(adapter, mContext)); in test_getRemoteDevice()
244 assertTrue(BTAdapterUtils.enableAdapter(adapter, mContext)); in test_listenUsingRfcommWithServiceRecord()
DBluetoothLeAudioTest.java63 assertTrue(BTAdapterUtils.enableAdapter(mAdapter, mContext)); in setUp()
92 assertTrue(BTAdapterUtils.disableAdapter(mAdapter, mContext)); in tearDown()
103 assertTrue(BTAdapterUtils.disableAdapter(mAdapter, mContext)); in testGetConnectedDevices()
116 assertTrue(BTAdapterUtils.disableAdapter(mAdapter, mContext)); in testGetDevicesMatchingConnectionStates()
136 assertTrue(BTAdapterUtils.disableAdapter(mAdapter, mContext)); in testGetConnectionState()
DBluetoothDeviceTest.java46 assertTrue(BTAdapterUtils.enableAdapter(mAdapter, mContext)); in setUp()
54 assertTrue(BTAdapterUtils.disableAdapter(mAdapter, mContext)); in tearDown()
DLeL2capSocketTest.java42 assertTrue(BTAdapterUtils.enableAdapter(mAdapter, mContext)); in setUp()
51 assertTrue(BTAdapterUtils.disableAdapter(mAdapter, mContext)); in tearDown()
DHearingAidProfileTest.java83 if (!BTAdapterUtils.enableAdapter(mBluetoothAdapter, mContext)) { in setUp()
102 if (!BTAdapterUtils.disableAdapter(mBluetoothAdapter, mContext)) { in tearDown()
227 assertTrue(BTAdapterUtils.disableAdapter(mBluetoothAdapter, mContext)); in test_getConnectionStateChangedIntent()
230 assertTrue(BTAdapterUtils.enableAdapter(mBluetoothAdapter, mContext)); in test_getConnectionStateChangedIntent()
DBluetoothLeScanTest.java83 assertTrue(BTAdapterUtils.enableAdapter(mBluetoothAdapter, mContext)); in setUp()
104 assertTrue(BTAdapterUtils.disableAdapter(mBluetoothAdapter, mContext)); in tearDown()
/cts/tests/tests/permission3/src/android/permission3/cts/
DPermissionTest30WithBluetooth.kt25 import android.bluetooth.cts.BTAdapterUtils
76 assertTrue(BTAdapterUtils.enableAdapter(bluetoothAdapter, context)) in enableBluetooth()
87 assertTrue(BTAdapterUtils.disableAdapter(bluetoothAdapter, context)) in disableBluetooth()
/cts/tests/tests/permission/src/android/permission/cts/
DNearbyDevicesRenouncePermissionTest.java36 import android.bluetooth.cts.BTAdapterUtils;
91 assertTrue(BTAdapterUtils.enableAdapter(mBluetoothAdapter, mContext)); in enableBluetooth()
100 assertTrue(BTAdapterUtils.disableAdapter(mBluetoothAdapter, mContext)); in disableBluetooth()
DNearbyDevicesPermissionTest.java36 import android.bluetooth.cts.BTAdapterUtils;
94 assertTrue(BTAdapterUtils.enableAdapter(mBluetoothAdapter, mContext)); in enableBluetooth()
103 assertTrue(BTAdapterUtils.disableAdapter(mBluetoothAdapter, mContext)); in disableBluetooth()
/cts/tests/tests/bluetooth/bluetoothTestUtilLib/src/android/bluetooth/cts/
DBTAdapterUtils.java41 public class BTAdapterUtils { class