Searched refs:collectionUri (Results 1 – 3 of 3) sorted by relevance
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/ |
D | PhotoPickerFilesUtils.java | 156 private static Pair<Uri, String> getPermissionAndStageMedia(int resId, Uri collectionUri, in getPermissionAndStageMedia() argument 167 return stageMedia(resId, collectionUri, mimeType, userContext, isFavorite); in getPermissionAndStageMedia() 173 private static Pair<Uri, String> stageMedia(int resId, Uri collectionUri, String mimeType, in stageMedia() argument 177 collectionUri, displayName, mimeType); in stageMedia()
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStorageTest.java | 266 private void doReadUriPermissionOnUriWithoutId_sameQueryResult(Uri collectionUri, in doReadUriPermissionOnUriWithoutId_sameQueryResult() argument 275 try (Cursor c = mContentResolver.query(collectionUri, new String[]{MediaColumns._ID}, in doReadUriPermissionOnUriWithoutId_sameQueryResult() 280 mContext.grantUriPermission(mContext.getPackageName(), collectionUri, flagGrantRead); in doReadUriPermissionOnUriWithoutId_sameQueryResult() local 281 try (Cursor c = mContentResolver.query(collectionUri, new String[]{MediaColumns._ID}, in doReadUriPermissionOnUriWithoutId_sameQueryResult() 283 assertWithMessage("After grant read UriPermission to " + collectionUri.toString() in doReadUriPermissionOnUriWithoutId_sameQueryResult() 314 mContext.revokeUriPermission(mContext.getPackageName(), collectionUri, flagGrantRead); in doReadUriPermissionOnUriWithoutId_sameQueryResult() local 342 private void doOwningOneFileNotGrantPrefixUriPermission(Uri collectionUri, Callable<Uri> create) in doOwningOneFileNotGrantPrefixUriPermission() argument 345 clearOwnFiles(collectionUri); in doOwningOneFileNotGrantPrefixUriPermission() 351 try (Cursor c = mContentResolver.query(collectionUri, new String[]{MediaColumns._ID}, null, in doOwningOneFileNotGrantPrefixUriPermission() 361 mContext.grantUriPermission(mContext.getPackageName(), collectionUri, in doOwningOneFileNotGrantPrefixUriPermission() local [all …]
|
/cts/tests/mediaprovider/src/android/provider/cts/media/ |
D | MediaProviderTestUtils.java | 205 public static Uri stageMedia(int resId, Uri collectionUri) throws IOException { in stageMedia() argument 206 return stageMedia(resId, collectionUri, "image/png"); in stageMedia() 209 public static Uri stageMedia(int resId, Uri collectionUri, String mimeType) throws IOException { in stageMedia() argument 213 collectionUri, displayName, mimeType); in stageMedia()
|