Home
last modified time | relevance | path

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

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/notifications/
DNotifications.java123 ComponentReference listener, boolean granted, UserReference user) { in setNotificationListenerAccessGranted() argument
129 String command = granted ? "allow_listener" : "disallow_listener"; in setNotificationListenerAccessGranted()
139 "Error setting notification listener access " + granted, e); in setNotificationListenerAccessGranted()
150 listener.componentName(), granted, /* userGranted= */ false); in setNotificationListenerAccessGranted() local
/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.java425 boolean granted) { in setPermissionGrantState() argument
427 if (granted) { in setPermissionGrantState()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java752 boolean granted = (KeyChain.getPrivateKey(mActivity, alias) != null); in assertGranted()
753 assertWithMessage("Grant for alias: \"" + alias + "\"").that(granted).isEqualTo(expected); in assertGranted()
/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()