org.robolectric.shadows.ShadowMediaStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-framework Show documentation
Show all versions of shadows-framework Show documentation
An alternative Android testing framework.
package org.robolectric.shadows;
import android.content.ContentResolver;
import android.graphics.Bitmap;
import android.net.Uri;
import android.provider.MediaStore;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
@SuppressWarnings({"UnusedDeclaration"})
@Implements(MediaStore.class)
public class ShadowMediaStore {
@Implements(MediaStore.Images.class)
public static class ShadowImages {
@Implements(MediaStore.Images.Media.class)
public static class ShadowMedia {
@Implementation
protected static Bitmap getBitmap(ContentResolver cr, Uri url) {
return ShadowBitmapFactory.create(url.toString());
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy