Package org.robolectric.shadows
Class ShadowMediaStore
java.lang.Object
org.robolectric.shadows.ShadowMediaStore
Shadow for
MediaStore
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Event info forMediaStore.notifyCloudMediaChangedEvent(android.content.ContentResolver, java.lang.String, java.lang.String)
notify events.static class
Shadow forMediaStore.Images
.static class
Shadow forMediaStore.Video
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addSupportedCloudMediaProviderAuthorities
(List<String> authorities) Mutator method to add the inputauthorities
to the list of supported cloud media provider authorities.static void
static void
Mutator method to clear the list of supported cloud media provider authorities.static com.google.common.collect.ImmutableList<ShadowMediaStore.CloudMediaChangedEvent>
Returns anImmutableList
of allShadowMediaStore.CloudMediaChangedEvent
objects thatMediaStore
has been notified of.protected static boolean
isCurrentCloudMediaProviderAuthority
(ContentResolver resolver, String authority) protected static boolean
isSupportedCloudMediaProviderAuthority
(ContentResolver resolver, String authority) protected static void
notifyCloudMediaChangedEvent
(ContentResolver resolver, String authority, String currentMediaCollectionId) static void
reset()
static void
setCurrentCloudMediaProviderAuthority
(String authority) Mutator method to set the value of the current cloud media provider authority.static void
setStubBitmapForThumbnails
(Bitmap bitmap)
-
Constructor Details
-
ShadowMediaStore
public ShadowMediaStore()
-
-
Method Details
-
reset
-
setStubBitmapForThumbnails
-
notifyCloudMediaChangedEvent
@Implementation(minSdk=33) protected static void notifyCloudMediaChangedEvent(ContentResolver resolver, String authority, String currentMediaCollectionId) -
getCloudMediaChangedEvents
public static com.google.common.collect.ImmutableList<ShadowMediaStore.CloudMediaChangedEvent> getCloudMediaChangedEvents()Returns anImmutableList
of allShadowMediaStore.CloudMediaChangedEvent
objects thatMediaStore
has been notified of. -
clearCloudMediaChangedEventList
public static void clearCloudMediaChangedEventList() -
isSupportedCloudMediaProviderAuthority
@Implementation(minSdk=33) protected static boolean isSupportedCloudMediaProviderAuthority(ContentResolver resolver, String authority) -
addSupportedCloudMediaProviderAuthorities
Mutator method to add the inputauthorities
to the list of supported cloud media provider authorities. -
clearSupportedCloudMediaProviderAuthorities
public static void clearSupportedCloudMediaProviderAuthorities()Mutator method to clear the list of supported cloud media provider authorities. -
isCurrentCloudMediaProviderAuthority
@Implementation(minSdk=33) protected static boolean isCurrentCloudMediaProviderAuthority(ContentResolver resolver, String authority) -
setCurrentCloudMediaProviderAuthority
Mutator method to set the value of the current cloud media provider authority.
-