Home
last modified time | relevance | path

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

/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()
DConnectivityService.java2203 mContext.enforceCallingOrSelfPermission(KeepaliveTracker.PERMISSION, "ConnectivityService"); in enforceKeepalivePermission()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardService.java42 static final String PERMISSION = android.Manifest.permission.CONTROL_KEYGUARD; field in KeyguardService
70 if (getBaseContext().checkCallingOrSelfPermission(PERMISSION) != PERMISSION_GRANTED) { in checkPermission()
71 Log.w(TAG, "Caller needs permission '" + PERMISSION + "' to call " + Debug.getCaller()); in checkPermission()
73 + ", must have permission " + PERMISSION); in checkPermission()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DSigningDetailsTest.java20 import static android.content.pm.PackageParser.SigningDetails.CertCapabilities.PERMISSION;
42 INSTALLED_DATA | SHARED_USER_ID | PERMISSION | AUTH;
392 new int[]{INSTALLED_DATA | AUTH, INSTALLED_DATA | SHARED_USER_ID | PERMISSION}; in mergeLineageWith_overlappingLineageDiffCaps_returnsFullLineageWithModifiedCaps()
421 int[] subCapabilities = new int[]{INSTALLED_DATA | SHARED_USER_ID | PERMISSION, in mergeLineageWith_subLineageModifiedCaps_returnsFullLineageWithModifiedCaps()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilitySecurityPolicyTest.java79 private static final String PERMISSION = "test-permission"; field in AccessibilitySecurityPolicyTest
575 mA11ySecurityPolicy.enforceCallerIsRecentsOrHasPermission(PERMISSION, FUNCTION); in testEnforceCallerIsRecentsOrHasPermission()
577 PERMISSION, FUNCTION); in testEnforceCallerIsRecentsOrHasPermission()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustAgentWrapper.java57 private static final String PERMISSION = android.Manifest.permission.PROVIDE_TRUST_AGENT; field in TrustAgentWrapper
428 mContext.registerReceiver(mBroadcastReceiver, alarmFilter, PERMISSION, null); in TrustAgentWrapper()
/frameworks/base/services/core/java/com/android/server/connectivity/
DKeepaliveTracker.java86 public static final String PERMISSION = android.Manifest.permission.PACKET_KEEPALIVE_OFFLOAD; field in KeepaliveTracker
165 mPrivileged = (PERMISSION_GRANTED == mContext.checkPermission(PERMISSION, mPid, mUid)); in KeepaliveInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageSignaturesTest.java110 PackageParser.SigningDetails.CertCapabilities.PERMISSION,
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java178 private static final String PERMISSION = ACCESS_KEYGUARD_SECURE_STORAGE; field in LockSettingsService
813 if (mContext.checkCallingOrSelfPermission(PERMISSION) != PERMISSION_GRANTED) { in systemReady()
1036 mContext.enforceCallingOrSelfPermission(PERMISSION, "LockSettingsWrite"); in checkWritePermission()
1040 mContext.enforceCallingOrSelfPermission(PERMISSION, "LockSettingsRead"); in checkPasswordReadPermission()
1044 if (mContext.checkCallingOrSelfPermission(PERMISSION) != PERMISSION_GRANTED) { in checkPasswordHavePermission()
1047 mContext.enforceCallingOrSelfPermission(PERMISSION, "LockSettingsHave"); in checkPasswordHavePermission()
1065 if (key.equals(requestedKey) && mContext.checkCallingOrSelfPermission(PERMISSION) in checkReadPermission()
1068 + " needs permission " + PERMISSION + " to read " in checkReadPermission()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiControlService.java163 static final String PERMISSION = "android.permission.HDMI_CEC"; field in HdmiControlService
1578 getContext().enforceCallingOrSelfPermission(PERMISSION, TAG); in enforceAccessPermission()
3354 HdmiControlService.PERMISSION); in displayOsd()
3364 HdmiControlService.PERMISSION); in displayOsd()
/frameworks/base/media/java/android/media/
DMediaDrm.java142 private static final String PERMISSION = android.Manifest.permission.ACCESS_DRM_CERTIFICATES; field in MediaDrm
/frameworks/base/core/java/android/content/pm/
DApplicationInfo.java1483 proto.write(ApplicationInfoProto.PERMISSION, permission); in dumpDebug()
DPackageParser.java5934 CertCapabilities.PERMISSION,
5945 int PERMISSION = 4; field
/frameworks/av/
DNOTICE292 COPYRIGHT AND PERMISSION NOTICE
/frameworks/base/
DNOTICE303 COPYRIGHT AND PERMISSION NOTICE
/frameworks/native/
DNOTICE292 COPYRIGHT AND PERMISSION NOTICE
/frameworks/av/camera/ndk/
DNOTICE292 COPYRIGHT AND PERMISSION NOTICE
/frameworks/base/services/core/java/com/android/server/am/
DServiceRecord.java270 proto.write(ServiceRecordProto.PERMISSION, permission); in dumpDebug()
/frameworks/av/media/ndk/
DNOTICE292 COPYRIGHT AND PERMISSION NOTICE
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerService.java3499 PackageParser.SigningDetails.CertCapabilities.PERMISSION) in grantSignaturePermission()
3503 PackageParser.SigningDetails.CertCapabilities.PERMISSION); in grantSignaturePermission()