Home
last modified time | relevance | path

Searched refs:granted (Results 1 – 15 of 15) sorted by relevance

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/notifications/
DNotifications.kt75 LISTENER_COMPONENT, granted = true, TestApis.users().instrumented() in <lambda>()
88 LISTENER_COMPONENT, granted = false, TestApis.users().instrumented() in <lambda>()
103 listener: ComponentReference, granted: Boolean, user: UserReference in <lambda>()
106 val command = if (granted) "allow_listener" else "disallow_listener" in <lambda>()
116 "Error setting notification listener access $granted", e in <lambda>()
126 listener.componentName(), granted, /* userSet= */false in <lambda>()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DSessionParamsPermissionStateTest.kt246 params.finalPermissionState.forEach { (permission, granted) -> in <lambda>() method
247 assertPermission(packageInfo, permission, granted) in <lambda>()
251 private fun assertPermission(packageInfo: PackageInfo, name: String, granted: Boolean?) { in <lambda>()
254 if (granted == null) { in <lambda>()
269 if (granted) { in <lambda>()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPackageSetInstallerTest.kt201 private fun assertPermission(granted: Boolean, permission: String) { in assertPermission()
202 assertThat(getPermissionString(permission)).contains("granted=$granted") in assertPermission()
/cts/hostsidetests/gputools/layers/
DLICENSE_MIT1 Permission is hereby granted, free of charge, to any person obtaining a copy
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DAccessoryTestCompanion.java82 boolean granted = intent.getBooleanExtra( in runTest()
85 if (granted) { in runTest()
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTestUtils.java276 public static void pollForPermission(String perm, boolean granted) throws Exception { in pollForPermission() argument
277 pollForCondition(() -> granted == checkPermissionAndAppOp(perm), in pollForPermission()
279 + (granted ? "granted" : "revoked")); in pollForPermission()
/cts/hostsidetests/appsecurity/test-apps/tinyapp/
DAndroid.bp200 // capabilities granted; the lineage for this package prevents an app signed
366 // keys so an app with only common signers in the lineage should not be granted the
388 // key in the lineage that is still granted the permission capability is sufficient
389 // to be granted a signature permission.
529 // permissions are also granted if the app was previously signed with
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1540 public static void pollForPermission(String perm, boolean granted) throws Exception { in pollForPermission() argument
1541 pollForCondition(() -> granted == checkPermissionAndAppOp(perm), in pollForPermission()
1543 + (granted ? "granted" : "revoked")); in pollForPermission()
1549 public static void pollForPermission(TestApp app, String perm, boolean granted) in pollForPermission() argument
1551 pollForPermission(app.getPackageName(), perm, granted); in pollForPermission() local
1557 public static void pollForPermission(String packageName, String perm, boolean granted) in pollForPermission() argument
1560 () -> granted == checkPermission(packageName, perm), in pollForPermission()
1562 + (granted ? "granted" : "revoked")); in pollForPermission()
/cts/hostsidetests/sustainedperf/dhrystone/
DLICENSE.TXT18 Permission is hereby granted, free of charge, to any person obtaining a copy of
/cts/common/device-side/bedstead/modules/permissions/src/main/kotlin/com/android/bedstead/permissions/
DPermissions.java751 …oid forceRootPermissionState(Package pkg, UserReference user, String permission, boolean granted) {
754 granted ? PERMISSION_GRANTED : PERMISSION_DENIED);
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java748 boolean granted = (KeyChain.getPrivateKey(mActivity, alias) != null); in assertGranted()
749 assertWithMessage("Grant for alias: \"" + alias + "\"").that(granted).isEqualTo(expected); in assertGranted()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBaseDefaultPermissionGrantPolicyTest.java438 boolean granted) { in setPermissionGrantState() argument
440 if (granted) { in setPermissionGrantState()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/
DUsbDeviceTestActivity.java161 boolean granted = intent.getBooleanExtra( in onCreate()
163 if (granted) { in onCreate()
1621 boolean granted = intent.getBooleanExtra( in attachedTask()
1623 if (granted) { in attachedTask()
/cts/tests/tests/tv/src/android/media/tv/tuner/cts/
DTunerTest.java2569 boolean granted = mTunerResourceManager.requestFrontend(request, feHandle); in assignFeResource()
2570 assertEquals(granted, expectedResult); in assignFeResource()
/cts/tests/tests/tv/tuner/src/android/media/tv/tuner/cts/
DTunerTest.java2568 boolean granted = mTunerResourceManager.requestFrontend(request, feHandle); in assignFeResource()
2569 assertEquals(granted, expectedResult); in assignFeResource()