Home
last modified time | relevance | path

Searched refs:PendingSession (Results 1 – 11 of 11) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStoreUtils.java66 public static @NonNull PendingSession openPending(@NonNull Context context, @NonNull Uri uri) { in openPending()
67 return new PendingSession(context, uri); in openPending()
150 public static class PendingSession implements AutoCloseable { class in MediaStoreUtils
157 public PendingSession(Context context, Uri uri) { in PendingSession() method in MediaStoreUtils.PendingSession
DMediaStorageTest.java56 import com.android.cts.mediastorageapp.MediaStoreUtils.PendingSession;
981 try (PendingSession session = MediaStoreUtils.openPending(context, pendingUri)) { in createDownload()
1003 try (PendingSession session = MediaStoreUtils.openPending(context, pendingUri)) { in createAudio()
1018 try (PendingSession session = MediaStoreUtils.openPending(context, pendingUri)) { in createVideo()
1033 try (PendingSession session = MediaStoreUtils.openPending(context, pendingUri)) { in createImage()
1048 try (PendingSession session = MediaStoreUtils.openPending(context, pendingUri)) { in createPlaylist()
1060 try (PendingSession session = MediaStoreUtils.openPending(context, pendingUri)) { in createSubtitle()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreUtils.java77 public static @NonNull PendingSession openPending(@NonNull Context context, @NonNull Uri uri) { in openPending()
78 return new PendingSession(context, uri); in openPending()
167 public static class PendingSession implements AutoCloseable { class in MediaStoreUtils
174 public PendingSession(Context context, Uri uri) { in PendingSession() method in MediaStoreUtils.PendingSession
DMediaStore_DownloadsTest.java41 import android.provider.cts.media.MediaStoreUtils.PendingSession;
195 try (PendingSession session = MediaStoreUtils.openPending(mContext, pendingUri)) { in testInsertDownload()
241 try (PendingSession session = MediaStoreUtils.openPending(mContext, pendingUri)) { in testUpdateDownload()
277 try (PendingSession session = MediaStoreUtils.openPending(mContext, pendingUri)) { in testDeleteDownload()
317 try (PendingSession session = MediaStoreUtils.openPending(mContext, pendingUri)) { in testNotifyChange()
DMediaStorePendingTest.java46 import android.provider.cts.media.MediaStoreUtils.PendingSession;
132 try (PendingSession session = MediaStoreUtils.openPending(mContext, pendingUri)) { in verifySuccessfulImageInsertion()
172 try (PendingSession session = MediaStoreUtils.openPending(mContext, pendingUri)) { in testSimple_Abandoned()
497 try (PendingSession session = MediaStoreUtils.openPending(mContext, pendingUri)) { in execPending()
DMediaStore_Video_MediaTest.java50 import android.provider.cts.media.MediaStoreUtils.PendingSession;
321 try (PendingSession session = MediaStoreUtils.openPending(mContext, pendingUri)) { in testLocationDeprecated()
489 try (PendingSession session = MediaStoreUtils.openPending(mContext, pendingUri)) { in execPending()
DMediaStore_Audio_MediaTest.java45 import android.provider.cts.media.MediaStoreUtils.PendingSession;
341 try (PendingSession session = MediaStoreUtils.openPending(mContext, pendingUri)) { in execPending()
DMediaStore_Images_ThumbnailsTest.java48 import android.provider.cts.media.MediaStoreUtils.PendingSession;
427 try (PendingSession session = MediaStoreUtils.openPending(mContext, pendingUri)) { in testInsertUpdateDelete()
DMediaStore_Images_MediaTest.java53 import android.provider.cts.media.MediaStoreUtils.PendingSession;
470 try (PendingSession session = MediaStoreUtils.openPending(mContext, pendingUri)) {
DMediaProviderTestUtils.java215 try (MediaStoreUtils.PendingSession session = MediaStoreUtils.openPending(context, in stageMedia()
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/
DPhotoPickerFilesUtils.java180 try (MediaStoreUtils.PendingSession session = MediaStoreUtils.openPending(context, in stageMedia()