Home
last modified time | relevance | path

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

/cts/tests/tests/permission/src/android/permission/cts/
DStorageEscalationTest.kt104 private fun assertStoragePermissionState(granted: Boolean) { in <lambda>()
113 Assert.assertEquals(granted, userContext.packageManager.checkPermission(permName, in <lambda>()
143 assertStoragePermissionState(granted = true) in <lambda>()
147 assertStoragePermissionState(granted = false) in <lambda>()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPrivappPermissionsTest.java146 Set<String> granted = filterValues(requestedPrivPermissions, in privappPermissionsNeedToBeWhitelisted() local
150 granted); in privappPermissionsNeedToBeWhitelisted()
163 + getPrintableSet(" ", granted) in privappPermissionsNeedToBeWhitelisted()
180 Set<String> grantedNotInWhitelist = difference(granted, whitelist); in privappPermissionsNeedToBeWhitelisted()
/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/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.java247 public static void pollForPermission(String perm, boolean granted) throws Exception { in pollForPermission() argument
248 pollForCondition(() -> granted == checkPermissionAndAppOp(perm), in pollForPermission()
250 + (granted ? "granted" : "revoked")); in pollForPermission()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1064 public static void pollForPermission(String perm, boolean granted) throws Exception { in pollForPermission() argument
1065 pollForCondition(() -> granted == checkPermissionAndAppOp(perm), in pollForPermission()
1067 + (granted ? "granted" : "revoked")); in pollForPermission()
1073 public static void pollForPermission(TestApp app, String perm, boolean granted) in pollForPermission() argument
1075 pollForPermission(app.getPackageName(), perm, granted); in pollForPermission() local
1081 public static void pollForPermission(String packageName, String perm, boolean granted) in pollForPermission() argument
1084 () -> granted == checkPermission(packageName, perm), in pollForPermission()
1086 + (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/util-axt/src/com/android/compatibility/common/util/
DBaseDefaultPermissionGrantPolicyTest.java415 boolean granted) { in setPermissionGrantState() argument
417 if (granted) { in setPermissionGrantState()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/
DUsbDeviceTestActivity.java157 boolean granted = intent.getBooleanExtra( in onCreate()
160 if (granted) { in onCreate()
1605 boolean granted = intent.getBooleanExtra( in attachedTask()
1607 if (granted) { in attachedTask()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java940 boolean granted = (KeyChain.getPrivateKey(mActivity, alias) != null); in assertGranted()
941 assertWithMessage("Grant for alias: \"" + alias + "\"").that(granted).isEqualTo(expected); in assertGranted()
/cts/apps/CtsVerifier/
DNOTICE.txt40 Permission is hereby granted, free of charge, to any person obtaining a copy
84 exercising permissions granted by this License.
146 granted to You under this License for that Work shall terminate
271 Permission is granted to anyone to use this software for any
313 exercising permissions granted by this License.
375 granted to You under this License for that Work shall terminate
686 restrictions on the recipients' exercise of the rights granted herein.
1203 restrictions on the recipients' exercise of the rights granted herein.
1707 restrictions on the recipients' exercise of the rights granted herein.
2034 restrictions on the recipients' exercise of the rights granted herein.
[all …]