Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/java/android/content/
DPermissionChecker.java135 @NonNull String permission, int pid, int uid, @Nullable String packageName, in checkPermissionForDataDelivery()
173 @NonNull String permission, int pid, int uid, @Nullable String packageName) { in checkPermissionForPreflight()
208 @NonNull String permission, @Nullable String message) { in checkSelfPermissionForDataDelivery()
243 @NonNull String permission) { in checkSelfPermissionForPreflight()
278 @NonNull String permission, @Nullable String packageName, in checkCallingPermissionForDataDelivery()
317 @NonNull String permission, @Nullable String packageName) { in checkCallingPermissionForPreflight()
353 @NonNull String permission, @Nullable String attributionTag, @Nullable String message) { in checkCallingOrSelfPermissionForDataDelivery()
390 @NonNull String permission) { in checkCallingOrSelfPermissionForPreflight()
397 static int checkPermissionCommon(@NonNull Context context, @NonNull String permission, in checkPermissionCommon()
427 private static int checkAppOpPermission(@NonNull Context context, @NonNull String permission, in checkAppOpPermission()
[all …]
/frameworks/native/libs/binder/
DPermissionCache.cpp38 const String16& permission, uid_t uid) const { in check() argument
51 void PermissionCache::cache(const String16& permission, in cache()
77 bool PermissionCache::checkCallingPermission(const String16& permission) { in checkCallingPermission()
82 const String16& permission, int32_t* outPid, int32_t* outUid) { in checkCallingPermission()
92 const String16& permission, pid_t pid, uid_t uid) { in checkPermission()
DIPermissionController.cpp37 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) in checkPermission()
82 virtual bool isRuntimePermission(const String16& permission) in isRuntimePermission()
117 String16 permission = data.readString16(); in onTransact() local
153 String16 permission = data.readString16(); in onTransact() local
DPermissionController.cpp56 bool PermissionController::checkPermission(const String16& permission, int32_t pid, int32_t uid) in checkPermission()
76 bool PermissionController::isRuntimePermission(const String16& permission) in isRuntimePermission()
DIServiceManager.cpp124 bool checkCallingPermission(const String16& permission) in checkCallingPermission()
132 bool checkCallingPermission(const String16& permission, int32_t* outPid, int32_t* outUid) in checkCallingPermission()
142 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) in checkPermission()
/frameworks/base/tests/testables/src/android/testing/
DTestablePermissions.java38 public void setPermission(String permission, int value) { in setPermission()
52 boolean wantsCall(String permission) { in wantsCall()
60 int check(String permission) { in check()
69 public void enforce(String permission) { in enforce()
DTestableContext.java316 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission()
324 public int checkCallingPermission(String permission) { in checkCallingPermission()
332 public int checkPermission(String permission, int pid, int uid) { in checkPermission()
340 public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { in checkPermission()
348 public int checkSelfPermission(String permission) { in checkSelfPermission()
356 public void enforceCallingOrSelfPermission(String permission, String message) { in enforceCallingOrSelfPermission()
365 public void enforceCallingPermission(String permission, String message) { in enforceCallingPermission()
374 public void enforcePermission(String permission, int pid, int uid, String message) { in enforcePermission()
/frameworks/base/test-base/src/android/test/
DAndroidTestCase.java100 String packageName, String className, String permission) { in assertActivityRequiresPermission()
123 public void assertReadingContentUriRequiresPermission(Uri uri, String permission) { in assertReadingContentUriRequiresPermission()
142 public void assertWritingContentUriRequiresPermission(Uri uri, String permission) { in assertWritingContentUriRequiresPermission()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionsState.java256 public int grantInstallPermission(BasePermission permission) { in grantInstallPermission()
268 public int revokeInstallPermission(BasePermission permission) { in revokeInstallPermission()
281 public int grantRuntimePermission(BasePermission permission, int userId) { in grantRuntimePermission()
298 public int revokeRuntimePermission(BasePermission permission, int userId) { in revokeRuntimePermission()
396 String permission = mPermissions.keyAt(i); in getPermissions() local
482 public boolean updatePermissionFlags(BasePermission permission, int userId, in updatePermissionFlags()
537 final PermissionData permission = mPermissions.valueAt(i); in hasPermissionRequiringReview() local
584 String permission = mPermissions.keyAt(i); in computeGids() local
670 private int grantPermission(BasePermission permission, int userId) { in grantPermission()
694 private int revokePermission(BasePermission permission, int userId) { in revokePermission()
[all …]
DDefaultPermissionGrantPolicy.java1225 String permission = requestedPermissions[i]; in grantRuntimePermissions() local
1238 String permission = requestedPermissions[requestedPermissionNum]; in grantRuntimePermissions() local
1524 abstract int getPermissionFlags(@NonNull String permission, @NonNull PackageInfo pkg, in getPermissionFlags()
1527 abstract void updatePermissionFlags(@NonNull String permission, @NonNull PackageInfo pkg, in updatePermissionFlags()
1530 abstract void grantPermission(@NonNull String permission, @NonNull PackageInfo pkg, in grantPermission()
1533 abstract void revokePermission(@NonNull String permission, @NonNull PackageInfo pkg, in revokePermission()
1536 abstract boolean isGranted(@NonNull String permission, @NonNull PackageInfo pkg, in isGranted()
1577 @Nullable String getBackgroundPermission(@NonNull String permission) { in getBackgroundPermission()
1672 private @NonNull PermissionState getPermissionState(@NonNull String permission, in getPermissionState()
1700 public int getPermissionFlags(@NonNull String permission, @NonNull PackageInfo pkg, in getPermissionFlags()
[all …]
/frameworks/opt/chips/src/com/android/ex/chips/
DChipsUtil.java32 void onPermissionCheck(String permission, boolean granted); in onPermissionCheck()
62 public static int checkPermission(Context context, String permission) { in checkPermission()
/frameworks/base/core/java/android/os/
DIPermissionController.aidl22 boolean checkPermission(String permission, int pid, int uid); in checkPermission()
25 boolean isRuntimePermission(String permission); in isRuntimePermission()
/frameworks/base/core/java/android/content/pm/parsing/component/
DParsedService.java36 private String permission; field in ParsedService
44 public ParsedMainComponent setPermission(String permission) { in setPermission()
DParsedPermissionUtils.java47 permission = new ParsedPermission(); in parsePermission() local
134 ParsedPermission permission = new ParsedPermission(); in parsePermissionTree() local
/frameworks/base/core/java/android/app/
DActivityManagerNative.java68 static public void broadcastStickyIntent(Intent intent, String permission, int userId) { in broadcastStickyIntent()
78 static public void broadcastStickyIntent(Intent intent, String permission, int appOp, in broadcastStickyIntent()
DUiAutomation.java1036 public void grantRuntimePermission(String packageName, String permission) { in grantRuntimePermission()
1047 public boolean grantRuntimePermission(String packageName, String permission, in grantRuntimePermission()
1059 public void grantRuntimePermissionAsUser(String packageName, String permission, in grantRuntimePermissionAsUser()
1082 public void revokeRuntimePermission(String packageName, String permission) { in revokeRuntimePermission()
1093 public boolean revokeRuntimePermission(String packageName, String permission, in revokeRuntimePermission()
1105 public void revokeRuntimePermissionAsUser(String packageName, String permission, in revokeRuntimePermissionAsUser()
DIUiAutomationConnection.aidl49 void grantRuntimePermission(String packageName, String permission, int userId); in grantRuntimePermission()
50 void revokeRuntimePermission(String packageName, String permission, int userId); in revokeRuntimePermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DMockLockSettingsContext.java89 public void enforceCallingOrSelfPermission(String permission, String message) { in enforceCallingOrSelfPermission()
94 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilitySecurityPolicy.java483 public void enforceCallingPermission(@NonNull String permission, @Nullable String function) { in enforceCallingPermission()
500 public boolean hasPermission(@NonNull String permission) { in hasPermission()
568 public void enforceCallingOrSelfPermission(@NonNull String permission) { in enforceCallingOrSelfPermission()
581 public void enforceCallerIsRecentsOrHasPermission(@NonNull String permission, String func) { in enforceCallerIsRecentsOrHasPermission()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java108 int permission = 0; in getPermissionForUid() local
180 Boolean permission = mApps.get(uid); in startMonitoring() local
232 boolean hasPermission(@NonNull final PackageInfo app, @NonNull final String permission) { in hasPermission()
377 final Boolean permission = highestPermissionForUid(mApps.get(uid), packageName); in onPackageAdded() local
425 Boolean permission = null; in onPackageRemoved() local
/frameworks/base/core/xsd/vts/
DValidatePermission.cpp48 TEST(CheckConfig, permission) { in TEST() argument
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTestsBase.java175 public int checkPermission(String permission, int pid, int uid) { in checkPermission()
180 public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { in checkPermission()
/frameworks/base/services/core/java/com/android/server/firewall/
DSenderPermissionFilter.java31 private SenderPermissionFilter(String permission) { in SenderPermissionFilter()
/frameworks/base/apex/statsd/aidl/android/os/
DIStatsCompanionService.aidl67 boolean checkPermission(String permission, int pid, int uid); in checkPermission()
/frameworks/base/core/java/android/permission/
DPermissionManager.java530 private static int checkPermissionUncached(@Nullable String permission, int pid, int uid) { in checkPermissionUncached()
563 final String permission; field in PermissionManager.PermissionQuery
567 PermissionQuery(@Nullable String permission, int pid, int uid) { in PermissionQuery()
619 public static int checkPermission(@Nullable String permission, int pid, int uid) { in checkPermission()

1234567