Home
last modified time | relevance | path

Searched refs:enableBLE (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/managers/
DDiscoveryProviderManagerTest.java175 verify(mBluetoothAdapter, times(1)).enableBLE(); in test_enableBleWhenBleOff()
364 when(mBluetoothAdapter.enableBLE()).thenReturn(true); in isBluetoothEnabledTest_bluetoothEnabled()
374 when(mBluetoothAdapter.enableBLE()).thenReturn(true); in isBluetoothEnabledTest_bleEnabled()
384 when(mBluetoothAdapter.enableBLE()).thenReturn(true); in enabledTest_enabled()
394 when(mBluetoothAdapter.enableBLE()).thenReturn(false); in enabledTest_enableFailed()
DDiscoveryProviderManagerLegacyTest.java182 verify(mBluetoothAdapter, times(1)).enableBLE(); in test_enableBleWhenBleOff()
403 when(mBluetoothAdapter.enableBLE()).thenReturn(true); in isBluetoothEnabledTest_bluetoothEnabled()
413 when(mBluetoothAdapter.enableBLE()).thenReturn(true); in isBluetoothEnabledTest_bleEnabled()
423 when(mBluetoothAdapter.enableBLE()).thenReturn(true); in enabledTest_enabled()
433 when(mBluetoothAdapter.enableBLE()).thenReturn(false); in enabledTest_enableFailed()
/packages/modules/Bluetooth/framework/tests/util/src/
DBlockingBluetoothAdapter.kt71 fun enableBLE(toggleScanSetting: Boolean): Boolean { in enableBLE() method
90 if (!withPermissions(BLUETOOTH_CONNECT).use { adapter.enableBLE() }) { in enableBLE()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/managers/
DDiscoveryProviderManager.java344 if (!adapter.enableBLE()) { in setBleScanEnabled()
DDiscoveryProviderManagerLegacy.java534 if (!adapter.enableBLE()) { in setBleScanEnabled()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothAdapter.java1378 public boolean enableBLE() { in enableBLE() method in BluetoothAdapter
/packages/modules/Bluetooth/framework/api/
Dsystem-current.txt65 …thod @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean enableBLE();