Home
last modified time | relevance | path

Searched refs:Permissions (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DLeL2capSocketTest.java29 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()
DScanFilterTest.java36 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()
DHearingAidProfileTest.java41 import android.bluetooth.test_utils.Permissions;
183 Permissions.enforceEachPermissions( in getAdvertisementServiceData()
186 try (var p = Permissions.withPermissions(BLUETOOTH_SCAN, BLUETOOTH_PRIVILEGED)) { in getAdvertisementServiceData()
DBluetoothAdapterTest.java42 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()
DSystemBluetoothTest.java42 import android.bluetooth.test_utils.Permissions;
156 try (var p = Permissions.withPermissions(BLUETOOTH_SCAN)) { in discoveryEndMillis()
/cts/common/device-side/bedstead/modules/permissions/src/main/kotlin/com/android/bedstead/permissions/
DPermissionContextImpl.java31 private final Permissions mPermissions;
37 PermissionContextImpl(Permissions permissions) { in PermissionContextImpl()
221 Permissions.sInstance.undoPermission(this); in close()
DPermissions.java56 public final class Permissions { class
81 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() {
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/
DTestApis.kt38 import com.android.bedstead.permissions.Permissions
72 fun permissions(): Permissions = Permissions.sInstance
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUsers.java55 import com.android.bedstead.permissions.Permissions;
597 if (Permissions.sIgnorePermissions.get()) {
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java82 import com.android.bedstead.permissions.Permissions;
615 if (Permissions.sIgnorePermissions.get()) { in packageInfoForUser()
678 if (Permissions.sIgnorePermissions.get()) { in applicationInfoForUser()
/cts/hostsidetests/appsecurity/
DOWNERS32 # Permissions