Searched refs:Bitmap (Results 1 - 25 of 682) sorted by relevance

1234567891011>>

/frameworks/base/graphics/java/android/graphics/
H A DBitmap.aidl19 parcelable Bitmap;
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DBitmapTexture.java19 import android.graphics.Bitmap;
23 // BitmapTexture is a texture whose content is specified by a fixed Bitmap.
25 // The texture does not own the Bitmap. The user should make sure the Bitmap
27 // does not free the Bitmap.
29 protected Bitmap mContentBitmap;
31 public BitmapTexture(Bitmap bitmap) {
35 public BitmapTexture(Bitmap bitmap, boolean hasBorder) {
42 protected void onFreeBitmap(Bitmap bitmap) {
47 protected Bitmap onGetBitma
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
H A DBitmapSerializeUtils.java19 import android.graphics.Bitmap;
43 public static void readBitmapPixels(Bitmap bitmap, ParcelFileDescriptor source) {
53 public static void writeBitmapPixels(Bitmap bitmap, ParcelFileDescriptor destination) {
57 private static native void nativeReadBitmapPixels(Bitmap bitmap, int fd);
59 private static native void nativeWriteBitmapPixels(Bitmap bitmap, int fd);
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DAssistDataReceiver.java19 import android.graphics.Bitmap;
27 public void onHandleAssistScreenshot(Bitmap screenshot) {}
/frameworks/support/core/ktx/src/main/java/androidx/core/graphics/
H A DBitmap.kt21 import android.graphics.Bitmap
32 * return Bitmap.createBitmap(…).applyCanvas {
39 inline fun Bitmap.applyCanvas(block: Canvas.() -> Unit): Bitmap {
49 inline operator fun Bitmap.get(x: Int, y: Int) = getPixel(x, y)
56 inline operator fun Bitmap.set(x: Int, y: Int, @ColorInt color: Int) = setPixel(x, y, color)
69 inline fun Bitmap.scale(width: Int, height: Int, filter: Boolean = true): Bitmap {
70 return Bitmap.createScaledBitmap(this, width, height, filter)
75 * can be optionally specified. If not, the default config is [Bitmap
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DPlaybackSeekDataProvider.java19 import android.graphics.Bitmap;
39 public void onThumbnailLoaded(Bitmap bitmap, int index) {
55 * cache bitmap, it may invoke {@link ResultCallback#onThumbnailLoaded(Bitmap, int)}
57 * {@link ResultCallback#onThumbnailLoaded(Bitmap, int)} later in UI thread. The method might
/frameworks/base/core/java/android/app/
H A DIAssistDataReceiver.aidl19 import android.graphics.Bitmap;
25 void onHandleAssistScreenshot(in Bitmap screenshot);
/frameworks/base/core/tests/coretests/src/android/graphics/
H A DGraphicsPerformanceTests.java75 /** Bitmap we allocate and draw to */
76 protected Bitmap mDestBitmap;
88 mDestBitmap = Bitmap.createBitmap(SCREEN_WIDTH, SCREEN_HEIGHT,
89 Bitmap.Config.RGB_565);
159 /** Bitmap to draw. Allocated by subclass's createBitmap() function. */
160 private Bitmap mBitmap;
175 public abstract Bitmap createBitmap();
200 public Bitmap createBitmap() {
201 return Bitmap.createBitmap(7, 7, Bitmap
[all...]
H A DThreadBitmapTest.java38 public Bitmap b;
41 b = Bitmap.createBitmap(300, 300, Bitmap.Config.RGB_565);
H A DBitmapTest.java28 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888);
29 Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565);
30 Bitmap bm3 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_4444);
56 assertTrue("getConfig", bm1.getConfig() == Bitmap
[all...]
H A DBitmapFactoryTest.java33 Bitmap bitmap1 = Bitmap.createBitmap(
34 new int[] { Color.BLUE }, 1, 1, Bitmap.Config.RGB_565);
36 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, out);
41 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fd);
43 assertEquals("Bitmap width", 1, bitmap.getWidth());
44 assertEquals("Bitmap height", 1, bitmap.getHeight());
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
H A DAlbumArtCache.java19 import android.graphics.Bitmap;
50 private final LruCache<String, Bitmap[]> mCache;
63 mCache = new LruCache<String, Bitmap[]>(maxSize) {
65 protected int sizeOf(String key, Bitmap[] value) {
72 public Bitmap getBigImage(String artUrl) {
73 Bitmap[] result = mCache.get(artUrl);
77 public Bitmap getIconImage(String artUrl) {
78 Bitmap[] result = mCache.get(artUrl);
87 Bitmap[] bitmap = mCache.get(artUrl);
95 new AsyncTask<Void, Void, Bitmap[]>() {
[all...]
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
H A DAlbumArtCache.java19 import android.graphics.Bitmap;
50 private final LruCache<String, Bitmap[]> mCache;
63 mCache = new LruCache<String, Bitmap[]>(maxSize) {
65 protected int sizeOf(String key, Bitmap[] value) {
72 public Bitmap getBigImage(String artUrl) {
73 Bitmap[] result = mCache.get(artUrl);
77 public Bitmap getIconImage(String artUrl) {
78 Bitmap[] result = mCache.get(artUrl);
87 Bitmap[] bitmap = mCache.get(artUrl);
95 new AsyncTask<Void, Void, Bitmap[]>() {
[all...]
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
H A DImageBuffersForRenderScript.java3 import android.graphics.Bitmap;
19 public Bitmap inputImage;
20 public Bitmap outputImage;
32 public ImageBuffersForRenderScript(Bitmap inImage, int margin,
37 outputImage = Bitmap.createBitmap(inputImage.getWidth(),
38 inputImage.getHeight(), Bitmap.Config.ARGB_8888);
/frameworks/support/compat/src/main/java/androidx/core/graphics/
H A DBitmapCompat.java18 import android.graphics.Bitmap;
24 * Helper for accessing features in {@link android.graphics.Bitmap}.
27 public static boolean hasMipMap(@NonNull Bitmap bitmap) {
34 public static void setHasMipMap(@NonNull Bitmap bitmap, boolean hasMipMap) {
47 public static int getAllocationByteCount(@NonNull Bitmap bitmap) {
/frameworks/support/core/ktx/src/main/java/androidx/core/graphics/drawable/
H A DBitmapDrawable.kt22 import android.graphics.Bitmap
25 /** Create a [BitmapDrawable] from this [Bitmap]. */
26 inline fun Bitmap.toDrawable(resources: Resources) = BitmapDrawable(resources, this)
/frameworks/support/palette/ktx/src/main/java/androidx/palette/graphics/
H A DPalette.kt21 import android.graphics.Bitmap
28 inline fun Bitmap.buildPalette() = Palette.Builder(this)
/frameworks/base/core/java/android/webkit/
H A DWebHistoryItem.java21 import android.graphics.Bitmap;
70 * @return A Bitmap containing the favicon for this history item or {@code null}.
75 public abstract Bitmap getFavicon();
/frameworks/rs/tests/java_api/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/
H A DHelloComputeNDK.java22 import android.graphics.Bitmap;
26 private Bitmap mBitmapIn;
27 private Bitmap mBitmapOut;
33 native void nativeMono(String cacheDir, int X, int Y, Bitmap in, Bitmap out);
41 mBitmapOut = Bitmap.createBitmap(mBitmapIn.getWidth(), mBitmapIn.getHeight(),
56 private Bitmap loadBitmap(int resource) {
58 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/graphics/
H A DImageLoader.java19 import android.graphics.Bitmap;
42 void onImageLoaded(Bitmap bitmap);
49 final Bitmap cachedValue = CACHE.get(id);
60 new AsyncTask<Void, Void, Bitmap>() {
62 protected Bitmap doInBackground(Void... params) {
71 protected void onPostExecute(Bitmap bitmap) {
87 * A simple cache implementation for {@link android.graphics.Bitmap} instances which uses
90 private static class BitmapCache extends LruCache<Long, Bitmap> {
96 protected int sizeOf(Long key, Bitmap value) {
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/graphics/
H A DImageLoader.java19 import android.graphics.Bitmap;
42 void onImageLoaded(Bitmap bitmap);
49 final Bitmap cachedValue = CACHE.get(id);
60 new AsyncTask<Void, Void, Bitmap>() {
62 protected Bitmap doInBackground(Void... params) {
71 protected void onPostExecute(Bitmap bitmap) {
87 * A simple cache implementation for {@link android.graphics.Bitmap} instances which uses
90 private static class BitmapCache extends LruCache<Long, Bitmap> {
96 protected int sizeOf(Long key, Bitmap value) {
/frameworks/base/libs/hwui/hwui/
H A DBitmap.h47 class ANDROID_API Bitmap : public SkPixelRef { class in namespace:android
49 static sk_sp<Bitmap> allocateHeapBitmap(SkBitmap* bitmap);
50 static sk_sp<Bitmap> allocateHeapBitmap(const SkImageInfo& info);
52 static sk_sp<Bitmap> allocateHardwareBitmap(SkBitmap& bitmap);
54 static sk_sp<Bitmap> allocateAshmemBitmap(SkBitmap* bitmap);
55 static sk_sp<Bitmap> allocateAshmemBitmap(size_t allocSize, const SkImageInfo& info,
58 static sk_sp<Bitmap> createFrom(sp<GraphicBuffer> graphicBuffer);
60 static sk_sp<Bitmap> createFrom(const SkImageInfo&, SkPixelRef&);
62 Bitmap(void* address, size_t allocSize, const SkImageInfo& info, size_t rowBytes);
63 Bitmap(voi
[all...]
H A DBitmap.cpp16 #include "Bitmap.h"
50 typedef sk_sp<Bitmap> (*AllocPixelRef)(size_t allocSize, const SkImageInfo& info, size_t rowBytes);
52 static sk_sp<Bitmap> allocateBitmap(SkBitmap* bitmap, AllocPixelRef alloc) {
75 sk_sp<Bitmap> Bitmap::allocateAshmemBitmap(SkBitmap* bitmap) {
76 return allocateBitmap(bitmap, &Bitmap::allocateAshmemBitmap);
79 static sk_sp<Bitmap> allocateHeapBitmap(size_t size, const SkImageInfo& info, size_t rowBytes) {
84 return sk_sp<Bitmap>(new Bitmap(addr, size, info, rowBytes));
87 sk_sp<Bitmap> Bitma
173 Bitmap::Bitmap(void* address, size_t size, const SkImageInfo& info, size_t rowBytes) function in class:android::Bitmap
181 Bitmap::Bitmap(void* address, void* context, FreeFunc freeFunc, const SkImageInfo& info, function in class:android::Bitmap
191 Bitmap::Bitmap(void* address, int fd, size_t mappedSize, const SkImageInfo& info, size_t rowBytes) function in class:android::Bitmap
200 Bitmap::Bitmap(GraphicBuffer* buffer, const SkImageInfo& info) function in class:android::Bitmap
[all...]
/frameworks/base/libs/hwui/
H A DTextureCache.h34 class Bitmap;
81 bool prefetchAndMarkInUse(void* ownerToken, Bitmap* bitmap);
88 bool prefetch(Bitmap* bitmap);
94 Texture* get(Bitmap* bitmap);
123 bool canMakeTextureFromBitmap(Bitmap* bitmap);
125 Texture* getCachedTexture(Bitmap* bitmap);
126 Texture* createTexture(Bitmap* bitmap);
/frameworks/base/libs/hwui/tests/common/
H A DBitmapAllocationTestUtils.h30 static sk_sp<Bitmap> allocateHeapBitmap(int width, int height, SkColorType colorType,
32 sk_sp<Bitmap> bitmap = TestUtils::createBitmap(width, height, colorType);
39 static sk_sp<Bitmap> allocateHardwareBitmap(int width, int height, SkColorType colorType,
44 sk_sp<Bitmap> heapBitmap(Bitmap::allocateHeapBitmap(&skBitmap));
46 return Bitmap::allocateHardwareBitmap(skBitmap);
49 typedef sk_sp<Bitmap> (*BitmapAllocator)(int, int, SkColorType,

Completed in 349 milliseconds

1234567891011>>