Home
last modified time | relevance | path

Searched refs:checkPermissionReadStorage (Results 1 – 5 of 5) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DPermissionUtilsTest.java48 import static com.android.providers.media.util.PermissionUtils.checkPermissionReadStorage;
139 assertThat(checkPermissionReadStorage(context, pid, uid, packageName, null)).isTrue(); in testSelfPermissions()
185 checkPermissionReadStorage(getContext(), TEST_APP_PID, testAppUid, packageName, in testDefaultPermissionsOnTestAppWithStoragePerms()
216 assertThat(checkPermissionReadStorage( in testDefaultPermissionsOnTestAppWithMediaPerms()
246 assertThat(checkPermissionReadStorage( in testDefaultPermissionsOnLegacyTestAppWithTargetSdk35()
287 checkPermissionReadStorage( getContext(), TEST_APP_PID, testAppUid, packageName, in testDefaultPermissionsOnTestAppWithoutPerms()
335 assertThat(checkPermissionReadStorage(getContext(), TEST_APP_PID, testAppUid, in testDefaultPermissionsOnLegacyTestApp()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DPermissionActivityTest.java41 import static com.android.providers.media.util.PermissionUtils.checkPermissionReadStorage;
528 return expected == checkPermissionReadStorage(context, pid, uid, packageName, in checkPermission()
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java32 import static com.android.providers.media.util.PermissionUtils.checkPermissionReadStorage;
560 && checkPermissionReadStorage(context, pid, uid, getPackageName(), attributionTag); in isLegacyReadInternal()
DPermissionActivity.java32 import static com.android.providers.media.util.PermissionUtils.checkPermissionReadStorage;
462 if (!checkPermissionReadStorage(context, pid, uid, packageName, attributionTag)) { in shouldShowActionDialog()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DPermissionUtils.java144 public static boolean checkPermissionReadStorage(@NonNull Context context, int pid, int uid, in checkPermissionReadStorage() method in PermissionUtils