Home
last modified time | relevance | path

Searched refs:bluetoothAdapter (Results 1 – 8 of 8) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBtAdapterUtils.java95 public static boolean enableAdapter(BluetoothAdapter bluetoothAdapter, Context context) { in enableAdapter() argument
101 if (bluetoothAdapter.isEnabled()) return true; in enableAdapter()
103 invokeWithShellPermissions(() -> bluetoothAdapter.enable()); in enableAdapter()
107 while (!bluetoothAdapter.isEnabled()) { in enableAdapter()
120 return bluetoothAdapter.isEnabled(); in enableAdapter()
124 public static boolean disableAdapter(BluetoothAdapter bluetoothAdapter, Context context) { in disableAdapter() argument
130 if (bluetoothAdapter.getState() == BluetoothAdapter.STATE_OFF) return true; in disableAdapter()
132 invokeWithShellPermissions(() -> bluetoothAdapter.disable()); in disableAdapter()
136 while (bluetoothAdapter.getState() != BluetoothAdapter.STATE_OFF) { in disableAdapter()
149 return bluetoothAdapter.getState() == BluetoothAdapter.STATE_OFF; in disableAdapter()
DBluetoothTestActivity.java41 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() local
42 if (bluetoothAdapter == null) { in onCreate()
64 } else if (!bluetoothAdapter.isMultipleAdvertisementSupported()) { in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0591/src/android/security/cts/CVE_2021_0591/
DPocActivity.java36 BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() local
37 assertNotNull(bluetoothAdapter); in onCreate()
39 bluetoothAdapter.getRemoteDevice("00:11:22:33:AA:BB")); in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39626/src/android/security/cts/CVE_2021_39626/
DPocActivity.java50 BluetoothAdapter bluetoothAdapter = bluetoothManager.getAdapter(); in onCreate() local
57 && !bluetoothAdapter.isEnabled()) in onCreate()
59 && bluetoothAdapter.isEnabled())) { in onCreate()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2024_34719.java63 final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in testPocCVE_2024_34719() local
71 return bluetoothService.get(bluetoothAdapter) != null; in testPocCVE_2024_34719()
82 final IBinder binder = ((IInterface) bluetoothService.get(bluetoothAdapter)).asBinder(); in testPocCVE_2024_34719()
/cts/hostsidetests/securitybulletin/test-apps/TestBluetoothDiscoverable/src/android/security/cts/TestBluetoothDiscoverable/
DPocActivity.java52 BluetoothAdapter bluetoothAdapter = bluetoothManager.getAdapter(); in onCreate() local
54 && !bluetoothAdapter.isEnabled()) in onCreate()
56 && bluetoothAdapter.isEnabled())) { in onCreate()
/cts/tests/tests/security/src/android/security/cts/CVE_2022_20429/
DPocActivity.java51 BluetoothAdapter bluetoothAdapter = bluetoothManager.getAdapter(); in onResume() local
53 && !bluetoothAdapter.isEnabled()) in onResume()
55 && bluetoothAdapter.isEnabled())) { in onResume()
/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/
DUiAutomationTestBase.kt83 private val bluetoothAdapter: BluetoothAdapter = bluetoothManager.adapter in <lambda>() constant in android.companion.cts.uiautomation.UiAutomationTestBase
380 bluetoothWasEnabled = bluetoothAdapter.isEnabled in <lambda>()
384 bluetoothAdapter.isEnabled in <lambda>()
394 !bluetoothAdapter.isEnabled in <lambda>()