Searched refs:withPermissions (Results 1 – 3 of 3) sorted by relevance
28 import android.bluetooth.test_utils.Permissions.withPermissions90 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()
40 fun withPermissions(vararg newPermissions: String): PermissionContext { in close() method58 withPermissions(*arrayOf(*permissionsSet.toTypedArray())).use { in enforceEachPermissions()
88 static <T> T callWithDeviceConfigPermissions(boolean withPermissions, Callable<T> c) { in callWithDeviceConfigPermissions() argument89 if (withPermissions) { in callWithDeviceConfigPermissions()