Home
last modified time | relevance | path

Searched refs:checkPermissionSelf (Results 1 – 4 of 4) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DPermissionUtilsTest.java51 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/
DLocalCallingIdentity.java35 import static com.android.providers.media.util.PermissionUtils.checkPermissionSelf;
379 return checkPermissionSelf(context, pid, uid); in hasPermissionInternal()
DMediaProvider.java157 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/
DPermissionUtils.java75 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