Home
last modified time | relevance | path

Searched refs:withPermissions (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/framework/tests/util/src/
DBlockingBluetoothAdapter.kt28 import android.bluetooth.test_utils.Permissions.withPermissions
90 if (!withPermissions(BLUETOOTH_CONNECT).use { adapter.enableBLE() }) { in enableBLE()
104 if (!withPermissions(BLUETOOTH_CONNECT).use { adapter.disableBLE() }) { in disableBLE()
122 !withPermissions(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED).use { in enable()
141 !withPermissions(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED).use { in disable()
DPermissions.kt40 fun withPermissions(vararg newPermissions: String): PermissionContext { in close() method
58 withPermissions(*arrayOf(*permissionsSet.toTypedArray())).use { in enforceEachPermissions()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/
DDeviceSideDeviceConfigHelper.java88 static <T> T callWithDeviceConfigPermissions(boolean withPermissions, Callable<T> c) { in callWithDeviceConfigPermissions() argument
89 if (withPermissions) { in callWithDeviceConfigPermissions()