Home
last modified time | relevance | path

Searched defs:permission (Results 1 – 25 of 69) sorted by relevance

123

/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DPermissions.java144 String permission = permissionsToGrant.valueAt(i); in grant() local
169 String permission = sortedPermissionsToGrant[i]; in grant() local
185 private static boolean grantSingle(@NonNull String packageName, @NonNull String permission, in grantSingle()
257 @NonNull String permission, @NonNull Context context) { in isPermissionAndAppOpGranted()
313 @NonNull String permission, @NonNull Context context) { in grantPermissionAndAppOp()
400 String permission = permissionsToRevoke.valueAt(i); in revoke() local
421 String permission = sortedPermissionsToRevoke[i]; in revoke() local
437 private static boolean revokeSingle(@NonNull String packageName, @NonNull String permission, in revokeSingle()
482 @NonNull String permission, @NonNull Context context) { in revokePermissionAndAppOp()
574 private static int getPermissionFlags(@NonNull String packageName, @NonNull String permission, in getPermissionFlags()
[all …]
DRequiredBroadcastReceiver.java40 @Nullable String permission, @NonNull List<RequiredMetaData> metaData) { in RequiredBroadcastReceiver()
DRequiredActivity.java40 @Nullable String permission, @NonNull List<RequiredMetaData> metaData) { in RequiredActivity()
DRequiredContentProvider.java40 @Nullable String permission, @NonNull List<RequiredMetaData> metaData) { in RequiredContentProvider()
DRequiredService.java40 @Nullable String permission, @NonNull List<RequiredMetaData> metaData) { in RequiredService()
DRoles.java247 String permission = requireAttributeValue(parser, ATTRIBUTE_NAME, TAG_PERMISSION); in parsePermissionSet() local
459 String permission = getAttributeValue(parser, ATTRIBUTE_PERMISSION); in parseRequiredComponent() local
653 String permission = requireAttributeValue(parser, ATTRIBUTE_NAME, in parsePermissions() local
928 String permission = permissions.get(permissionsIndex); in validateParseResult() local
945 String permission = requiredComponent.getPermission(); in validateParseResult() local
954 String permission = permissions.get(i); in validateParseResult() local
964 String permission = AppOpsManager.opToPermission(appOp.getName()); in validateParseResult() local
988 private static void validatePermission(@NonNull String permission, @NonNull Context context) { in validatePermission()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DContactsPermissions.java38 public static boolean hasCallerOrSelfPermission(Context context, String permission) { in hasCallerOrSelfPermission()
57 public static void enforceCallingOrSelfPermission(Context context, String permission) { in enforceCallingOrSelfPermission()
65 public static boolean hasPackagePermission(Context context, String permission, String pkg) { in hasPackagePermission()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DAppPermissionGroup.java288 Permission permission = new Permission(requestedPermission, requestedPermissionInfo, in create() local
305 Permission permission = allPermissions.valueAt(i); in create() local
330 Permission permission = allPermissions.valueAt(i); in create() local
442 Permission permission = mPermissions.valueAt(i); in isReviewRequired() local
458 Permission permission = mPermissions.valueAt(i); in isUserSensitive() local
469 Permission permission = mPermissions.valueAt(i); in unsetReviewRequired() local
483 Permission permission = mPermissions.valueAt(i); in hasGrantedByDefaultPermission() local
618 public boolean hasPermission(String permission) { in hasPermission()
649 Permission permission = mPermissions.valueAt(i); in areRuntimePermissionsGranted() local
708 private boolean allowAppOp(Permission permission, int uid) { in allowAppOp()
[all …]
DAppPermissionUsage.java79 final GroupUsage permission = mGroupUsages.get(i); in getAccessCount() local
172 final Permission permission = permissions.get(i); in isRunning() local
191 final Permission permission = permissions.get(i); in extractAggregate() local
206 final Permission permission = permissions.get(permissionNum); in lastAccessAggregate() local
/packages/apps/Contacts/src/com/android/contacts/util/
DPermissionsUtil.java55 public static boolean hasPermission(Context context, String permission) { in hasPermission()
95 String permission) { in registerPermissionReceiver()
104 public static void notifyPermissionGranted(Context context, String permission) { in notifyPermissionGranted()
/packages/apps/Dialer/java/com/android/dialer/util/
DPermissionsUtil.java138 public static boolean hasPermission(Context context, String permission) { in hasPermission()
150 public static boolean isFirstRequest(Context context, String permission) { in isFirstRequest()
163 public static void permissionRequested(Context context, String permission) { in permissionRequested()
193 Context context, BroadcastReceiver receiver, String permission) { in registerPermissionReceiver()
204 public static void notifyPermissionGranted(Context context, String permission) { in notifyPermissionGranted()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppPermissionPreferenceControllerTest.java109 final String permission = "Storage"; in onPermissionSummaryResult_hasRuntimePermission_shouldSetPermissionAsSummary() local
122 final String permission = "Storage"; in onPermissionSummaryResult_hasAdditionalPermission_shouldSetAdditionalSummary() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppPermissionsPreferenceControllerTest.java87 final String permission = "location"; in updateSummary_hasPermissionGroups_shouldSetPermissionAsSummary() local
102 final String permission = "location"; in updateSummary_notReachCallbackCount_shouldNotSetSummary() local
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/utils/
DSoftRestrictedPermissionPolicy.java52 public static boolean shouldShow(@NonNull PackageInfo pkg, @NonNull Permission permission) { in shouldShow()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DRuntimePermissionPresenterServiceLegacyImpl.java43 android.permission.RuntimePermissionPresentationInfo permission = permissions.get(i); in onGetAppPermissions() local
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DDiscoveringPackage.java23 DiscoveringPackage(String packageName, String permission) { in DiscoveringPackage()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DMockTvProviderContext.java69 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission()
79 public void grantOrRejectPermission(String permission, boolean granted) { in grantOrRejectPermission()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailPermissions.java124 private boolean packageHasPermission(String packageName, String permission) { in packageHasPermission()
129 private boolean callerHasPermission(String permission) { in callerHasPermission()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateInstallAppsBridge.java68 private boolean hasRequestedAppOpPermission(String permission, String packageName) { in hasRequestedAppOpPermission()
78 private boolean hasPermission(String permission, int uid) { in hasPermission()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateInstallAppsBridge.java68 private boolean hasRequestedAppOpPermission(String permission, String packageName) { in hasRequestedAppOpPermission()
78 private boolean hasPermission(String permission, int uid) { in hasPermission()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridge.java62 public AppStateAppOpsBridge(Context context, int appOpsOpCode, String permission) { in AppStateAppOpsBridge()
67 AppStateAppOpsBridge(Context context, int appOpsOpCode, String permission, in AppStateAppOpsBridge()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DPasswordUtils.java42 String permission) { in isCallingAppPermitted()
/packages/apps/Settings/src/com/android/settings/password/
DPasswordUtils.java42 String permission) { in isCallingAppPermitted()
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java155 public boolean hasPermission(int permission) { in hasPermission()
165 private boolean hasPermissionInternal(int permission) { in hasPermissionInternal()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowPasswordUtils.java46 String permission) { in isCallingAppPermitted()

123