Home
last modified time | relevance | path

Searched refs:PERMISSION (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/
DAppOpsPermissionControllerTest.kt60 permission = PERMISSION, in <lambda>()
75 on { APP.hasGrantPermission(PERMISSION) } doReturn true in <lambda>()
81 permission = PERMISSION, in <lambda>()
97 on { APP.hasGrantPermission(PERMISSION) } doReturn false in isAllowedFlow_appOpsDefaultAndPermissionNotGranted_returnFalse()
103 permission = PERMISSION, in isAllowedFlow_appOpsDefaultAndPermissionNotGranted_returnFalse()
122 permission = PERMISSION, in <lambda>()
137 permission = PERMISSION, in setAllowed_notSetModeByUid()
151 permission = PERMISSION, in setAllowed_setModeByUid()
161 const val PERMISSION = "Permission" constant
/frameworks/base/core/tests/coretests/src/android/content/pm/
DSigningDetailsTest.java23 import static android.content.pm.SigningDetails.CertCapabilities.PERMISSION;
50 INSTALLED_DATA | SHARED_USER_ID | PERMISSION | AUTH;
422 new int[]{INSTALLED_DATA | AUTH, INSTALLED_DATA | SHARED_USER_ID | PERMISSION}; in mergeLineageWith_overlappingLineageDiffCaps_returnsFullLineageWithModifiedCaps()
473 int[] subCapabilities = new int[]{INSTALLED_DATA | SHARED_USER_ID | PERMISSION, in mergeLineageWith_subLineageModifiedCaps_returnsFullLineageWithModifiedCaps()
551 int[] firstCapabilities = new int[]{INSTALLED_DATA | PERMISSION | AUTH, in mergeLineageWith_modifiedCaps_returnsCapsFromProvidedLineage()
730 assertTrue(firstDetails.hasCommonSignerWithCapability(secondSignerDetails, PERMISSION)); in hasCommonSignerWithCapabilities_singleMatchingSigner_returnsTrue()
741 assertFalse(firstDetails.hasCommonSignerWithCapability(secondDetails, PERMISSION)); in hasCommonSignerWithCapabilities_singleDifferentSigners_returnsFalse()
742 assertFalse(secondDetails.hasCommonSignerWithCapability(firstDetails, PERMISSION)); in hasCommonSignerWithCapabilities_singleDifferentSigners_returnsFalse()
754 assertFalse(firstDetails.hasCommonSignerWithCapability(secondDetails, PERMISSION)); in hasCommonSignerWithCapabilities_oneWithMultipleSigners_returnsFalse()
755 assertFalse(secondDetails.hasCommonSignerWithCapability(firstDetails, PERMISSION)); in hasCommonSignerWithCapabilities_oneWithMultipleSigners_returnsFalse()
[all …]
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/app/
DAppOpPermissionAppListTest.kt74 with(packageManagers) { whenever(APP.hasRequestPermission(PERMISSION)).thenReturn(true) } in <lambda>()
83 with(packageManagers) { whenever(APP.hasRequestPermission(PERMISSION)).thenReturn(false) } in <lambda>()
116 with(packageManagers) { whenever(APP.hasRequestPermission(PERMISSION)).thenReturn(false) } in filter()
150 whenever(APP.hasGrantPermission(PERMISSION)).thenReturn(false) in isAllowed_broaderPermissionTrumps()
271 override val permission = PERMISSION
278 const val PERMISSION = "PERMISSION" constant
/frameworks/base/services/core/java/com/android/server/
DUpdateLockService.java42 static final String PERMISSION = "android.permission.UPDATE_LOCK"; field in UpdateLockService
95 mContext.enforceCallingOrSelfPermission(PERMISSION, "acquireUpdateLock"); in acquireUpdateLock()
105 mContext.enforceCallingOrSelfPermission(PERMISSION, "releaseUpdateLock"); in releaseUpdateLock()
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/template/app/
DTogglePermissionAppListPage.kt54 private const val PERMISSION = "permission" in <lambda>() constant
57 navArgument(PERMISSION) { type = NavType.StringType }, in <lambda>()
68 val permissionType = parameter.getStringArg(PERMISSION, arguments)!! in buildEntry()
81 val permissionType = arguments?.getString(PERMISSION)!! in Page()
100 arguments = bundleOf(PERMISSION to permissionType) in getRoute()
DTogglePermissionAppInfoPage.kt67 val permissionType = arguments?.getString(PERMISSION)!! in Page()
76 private const val PERMISSION = "permission" constant
81 navArgument(PERMISSION) { type = NavType.StringType }, in <lambda>()
101 arguments = bundleOf(PERMISSION to permissionType) in getRoutePrefix()
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/customization/data/content/
DCustomizationProviderContract.kt27 const val PERMISSION = "android.permission.CUSTOMIZE_SYSTEM_UI" constant
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/repository/
DInstalledTilesComponentRepositoryImplTest.kt284 private val PERMISSION = BIND_QUICK_SETTINGS_TILE in <lambda>() constant
303 permission = PERMISSION in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardService.java113 static final String PERMISSION = android.Manifest.permission.CONTROL_KEYGUARD; field in KeyguardService
418 if (getBaseContext().checkCallingOrSelfPermission(PERMISSION) != PERMISSION_GRANTED) { in checkPermission()
419 Log.w(TAG, "Caller needs permission '" + PERMISSION + "' to call " + Debug.getCaller()); in checkPermission()
421 + ", must have permission " + PERMISSION); in checkPermission()
/frameworks/base/core/java/android/content/pm/
DSigningDetails.java98 CertCapabilities.PERMISSION,
109 int PERMISSION = 4; field
DApplicationInfo.java1786 proto.write(ApplicationInfoProto.PERMISSION, permission); in dumpDebug()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java243 private static final String PERMISSION = ACCESS_KEYGUARD_SECURE_STORAGE; field in LockSettingsService
1268 mContext.enforceCallingOrSelfPermission(PERMISSION, "LockSettingsWrite"); in checkWritePermission()
1272 mContext.enforceCallingOrSelfPermission(PERMISSION, "LockSettingsRead"); in checkPasswordReadPermission()
1276 mContext.enforceCallingOrSelfPermission(PERMISSION, "LockSettingsHave"); in checkPasswordHavePermission()
1280 if (!hasPermission(PERMISSION)) { in checkDatabaseReadPermission()
1282 + PERMISSION + " to read " + requestedKey + " for user " + userId); in checkDatabaseReadPermission()
1822 if (!hasPermission(PERMISSION) && !hasPermission(SET_AND_VERIFY_LOCKSCREEN_CREDENTIALS)) { in setLockCredential()
1828 + PERMISSION); in setLockCredential()
2313 if (!hasPermission(PERMISSION) && !hasPermission(SET_AND_VERIFY_LOCKSCREEN_CREDENTIALS)) { in verifyCredential()
2316 + PERMISSION); in verifyCredential()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustAgentWrapper.java65 private static final String PERMISSION = android.Manifest.permission.PROVIDE_TRUST_AGENT; field in TrustAgentWrapper
498 mContext.registerReceiver(mBroadcastReceiver, alarmFilter, PERMISSION, null, in TrustAgentWrapper()
/frameworks/base/services/core/java/com/android/server/pm/
DReconcilePackageUtils.java194 SigningDetails.CertCapabilities.PERMISSION)) { in reconcilePackages()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageSignaturesTest.java111 SigningDetails.CertCapabilities.PERMISSION,
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DCustomizationProviderTest.kt225 Contract.PERMISSION, in <lambda>()
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DAppIdPermissionPolicy.kt1215 SigningDetails.CertCapabilities.PERMISSION in <lambda>()
1220 SigningDetails.CertCapabilities.PERMISSION in <lambda>()
/frameworks/base/media/java/android/media/
DMediaDrm.java151 private static final String PERMISSION = android.Manifest.permission.ACCESS_DRM_CERTIFICATES; field in MediaDrm
/frameworks/av/media/ndk/
DNOTICE292 COPYRIGHT AND PERMISSION NOTICE
/frameworks/base/
DNOTICE303 COPYRIGHT AND PERMISSION NOTICE
/frameworks/av/
DNOTICE292 COPYRIGHT AND PERMISSION NOTICE
/frameworks/av/camera/ndk/
DNOTICE292 COPYRIGHT AND PERMISSION NOTICE
/frameworks/native/
DNOTICE292 COPYRIGHT AND PERMISSION NOTICE
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiControlService.java198 static final String PERMISSION = "android.permission.HDMI_CEC"; field in HdmiControlService
2272 getContext().enforceCallingOrSelfPermission(PERMISSION, TAG); in enforceAccessPermission()
4426 getContext().sendBroadcastAsUser(intent, UserHandle.ALL, HdmiControlService.PERMISSION); in sendBroadcastAsUser()
/frameworks/base/services/core/java/com/android/server/am/
DServiceRecord.java800 proto.write(ServiceRecordProto.PERMISSION, permission); in dumpDebug()

12