Searched refs:checkPermissionSelf (Results 1 – 4 of 4) sorted by relevance
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | PermissionUtilsTest.java | 51 import static com.android.providers.media.util.PermissionUtils.checkPermissionSelf; 131 assertThat(checkPermissionSelf(context, pid, uid)).isTrue(); in testSelfPermissions() 170 assertThat(checkPermissionSelf(getContext(), TEST_APP_PID, testAppUid)).isFalse(); in testDefaultPermissionsOnTestAppWithStoragePerms() 206 assertThat(checkPermissionSelf(getContext(), TEST_APP_PID, testAppUid)).isFalse(); in testDefaultPermissionsOnTestAppWithMediaPerms() 236 assertThat(checkPermissionSelf(getContext(), TEST_APP_PID, testAppUid)).isFalse(); in testDefaultPermissionsOnLegacyTestAppWithTargetSdk35() 260 assertThat(checkPermissionSelf(getContext(), TEST_APP_PID, testAppUid)).isFalse(); in testDefaultPermissionsOnTestAppWithoutPerms() 309 assertThat(checkPermissionSelf(getContext(), TEST_APP_PID, testAppUid)).isFalse(); in testDefaultPermissionsOnLegacyTestApp()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | LocalCallingIdentity.java | 35 import static com.android.providers.media.util.PermissionUtils.checkPermissionSelf; 379 return checkPermissionSelf(context, pid, uid); in hasPermissionInternal()
|
D | MediaProvider.java | 157 import static com.android.providers.media.util.PermissionUtils.checkPermissionSelf; 4012 if (!checkPermissionSelf(caller)) { in getReadGrantedMediaForPackage() 6879 if (checkPermissionSelf(caller)) { 7164 if (checkPermissionSelf(caller)) { 7242 && !checkPermissionSelf(Binder.getCallingUid()) 7254 && !checkPermissionSelf(Binder.getCallingUid())) { 7286 if (checkPermissionSelf(Binder.getCallingUid())) {
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | PermissionUtils.java | 75 public static boolean checkPermissionSelf(@NonNull Context context, int pid, int uid) { in checkPermissionSelf() method in PermissionUtils 83 public static boolean checkPermissionSelf(@UserIdInt int uid) { in checkPermissionSelf() method in PermissionUtils
|