Searched refs:Permissions (Results 1 – 11 of 11) sorted by relevance
29 import android.bluetooth.test_utils.Permissions;63 try (var p = Permissions.withPermissions(BLUETOOTH_CONNECT)) { in openInsecureLeL2capServerSocket()75 try (var p = Permissions.withPermissions(BLUETOOTH_CONNECT)) { in openSecureLeL2capServerSocket()
36 import android.bluetooth.test_utils.Permissions;344 Permissions.enforceEachPermissions( in builderSetTransportBlockFilter()348 try (var p = Permissions.withPermissions(BLUETOOTH_SCAN, BLUETOOTH_PRIVILEGED)) { in builderSetTransportBlockFilter()359 Permissions.enforceEachPermissions( in builderSetTransportBlockFilter()364 try (var p = Permissions.withPermissions(BLUETOOTH_SCAN, BLUETOOTH_PRIVILEGED)) { in builderSetTransportBlockFilter()
41 import android.bluetooth.test_utils.Permissions;183 Permissions.enforceEachPermissions( in getAdvertisementServiceData()186 try (var p = Permissions.withPermissions(BLUETOOTH_SCAN, BLUETOOTH_PRIVILEGED)) { in getAdvertisementServiceData()
42 import android.bluetooth.test_utils.Permissions;419 Permissions.enforceEachPermissions( in discoverableTimeout()422 try (var p = Permissions.withPermissions(BLUETOOTH_SCAN, BLUETOOTH_PRIVILEGED)) { in discoverableTimeout()516 try (var p = Permissions.withPermissions(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED)) { in registerBluetoothConnectionCallback()
42 import android.bluetooth.test_utils.Permissions;156 try (var p = Permissions.withPermissions(BLUETOOTH_SCAN)) { in discoveryEndMillis()
31 private final Permissions mPermissions;37 PermissionContextImpl(Permissions permissions) { in PermissionContextImpl()221 Permissions.sInstance.undoPermission(this); in close()
56 public final class Permissions { class81 public static final Permissions sInstance = new Permissions();89 boolean original = Permissions.sIgnorePermissions.get(); in ignoringPermissions()90 Permissions.sIgnorePermissions.set(true); in ignoringPermissions()100 Permissions.sIgnorePermissions.set(original); in ignoringPermissions()104 private Permissions() {
38 import com.android.bedstead.permissions.Permissions72 fun permissions(): Permissions = Permissions.sInstance
55 import com.android.bedstead.permissions.Permissions;597 if (Permissions.sIgnorePermissions.get()) {
82 import com.android.bedstead.permissions.Permissions;615 if (Permissions.sIgnorePermissions.get()) { in packageInfoForUser()678 if (Permissions.sIgnorePermissions.get()) { in applicationInfoForUser()
32 # Permissions