Home
last modified time | relevance | path

Searched refs:targetSdkIsAtLeastT (Results 1 – 3 of 3) sorted by relevance

/packages/providers/MediaProvider/src/com/android/providers/media/util/
DPermissionUtils.java226 boolean targetSdkIsAtLeastT) { in checkPermissionReadAudio() argument
228 String permission = targetSdkIsAtLeastT && SdkLevel.isAtLeastT() in checkPermissionReadAudio()
256 boolean targetSdkIsAtLeastT) { in checkPermissionReadVideo() argument
257 String permission = targetSdkIsAtLeastT && SdkLevel.isAtLeastT() in checkPermissionReadVideo()
286 boolean targetSdkIsAtLeastT) { in checkPermissionReadImages() argument
287 String permission = targetSdkIsAtLeastT && SdkLevel.isAtLeastT() in checkPermissionReadImages()
320 boolean targetSdkIsAtLeastT) { in checkPermissionReadVisualUserSelected() argument
321 if (!SdkLevel.isAtLeastU() || !targetSdkIsAtLeastT) { in checkPermissionReadVisualUserSelected()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DPermissionUtilsTest.java457 boolean targetSdkIsAtLeastT = true; in testReadMediaVisualUserSelectedOnTestApp()
465 packageName, null, targetSdkIsAtLeastT)).isTrue(); in testReadMediaVisualUserSelectedOnTestApp()
471 packageName, null, targetSdkIsAtLeastT)).isFalse(); in testReadMediaVisualUserSelectedOnTestApp()
477 packageName, null, targetSdkIsAtLeastT)).isTrue(); in testReadMediaVisualUserSelectedOnTestApp()
697 int pid, int uid, String packageName, boolean targetSdkIsAtLeastT, boolean expected) { in assertMediaReadPermissions() argument
701 getContext(), pid, uid, packageName, null, targetSdkIsAtLeastT)); in assertMediaReadPermissions()
705 getContext(), pid, uid, packageName, null, targetSdkIsAtLeastT)); in assertMediaReadPermissions()
709 getContext(), pid, uid, packageName, null, targetSdkIsAtLeastT)); in assertMediaReadPermissions()
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java369 boolean targetSdkIsAtLeastT = getTargetSdkVersion() > Build.VERSION_CODES.S_V2; in hasPermissionInternal()
388 return isRedactionNeededInternal(targetSdkIsAtLeastT); in hasPermissionInternal()
402 context, pid, uid, getPackageName(), attributionTag, targetSdkIsAtLeastT); in hasPermissionInternal()
405 context, pid, uid, getPackageName(), attributionTag, targetSdkIsAtLeastT); in hasPermissionInternal()
408 context, pid, uid, getPackageName(), attributionTag, targetSdkIsAtLeastT); in hasPermissionInternal()
432 attributionTag, targetSdkIsAtLeastT); in hasPermissionInternal()