/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.aidl | 19 parcelable Bitmap;
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | IAssistScreenshotReceiver.aidl | 19 import android.graphics.Bitmap; 23 void send(in Bitmap screenshot);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | BitmapTexture.java | 19 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 D | BitmapSerializeUtils.java | 19 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/core/tests/coretests/src/android/graphics/ |
H A D | GraphicsPerformanceTests.java | 75 /** 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 D | ThreadBitmapTest.java | 38 public Bitmap b; 41 b = Bitmap.createBitmap(300, 300, Bitmap.Config.RGB_565);
|
H A D | BitmapTest.java | 28 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 D | BitmapFactoryTest.java | 33 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/com/example/android/supportv4/media/ |
H A D | AlbumArtCache.java | 19 import android.graphics.Bitmap; 49 private final LruCache<String, Bitmap[]> mCache; 62 mCache = new LruCache<String, Bitmap[]>(maxSize) { 64 protected int sizeOf(String key, Bitmap[] value) { 71 public Bitmap getBigImage(String artUrl) { 72 Bitmap[] result = mCache.get(artUrl); 76 public Bitmap getIconImage(String artUrl) { 77 Bitmap[] result = mCache.get(artUrl); 86 Bitmap[] bitmap = mCache.get(artUrl); 94 new AsyncTask<Void, Void, Bitmap[]>() { [all...] |
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/ |
H A D | AlbumArtCache.java | 19 import android.graphics.Bitmap; 49 private final LruCache<String, Bitmap[]> mCache; 62 mCache = new LruCache<String, Bitmap[]>(maxSize) { 64 protected int sizeOf(String key, Bitmap[] value) { 71 public Bitmap getBigImage(String artUrl) { 72 Bitmap[] result = mCache.get(artUrl); 76 public Bitmap getIconImage(String artUrl) { 77 Bitmap[] result = mCache.get(artUrl); 86 Bitmap[] bitmap = mCache.get(artUrl); 94 new AsyncTask<Void, Void, Bitmap[]>() { [all...] |
/frameworks/support/compat/java/android/support/v4/graphics/ |
H A D | BitmapCompat.java | 19 import android.graphics.Bitmap; 23 * Helper for accessing features in {@link android.graphics.Bitmap} 28 public boolean hasMipMap(Bitmap bitmap) { 32 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { 35 public int getAllocationByteCount(Bitmap bitmap) { 43 public boolean hasMipMap(Bitmap bitmap){ 48 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { 56 public int getAllocationByteCount(Bitmap bitmap) { 75 public static boolean hasMipMap(Bitmap bitmap) { 79 public static void setHasMipMap(Bitmap bitma [all...] |
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
H A D | ImageBuffersForRenderScript.java | 3 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/base/core/java/android/webkit/ |
H A D | WebHistoryItem.java | 20 import android.graphics.Bitmap; 69 * @return A Bitmap containing the favicon for this history item or null. 73 public abstract Bitmap getFavicon();
|
/frameworks/rs/tests/java_api/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/ |
H A D | HelloComputeNDK.java | 22 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/com/example/android/supportv7/graphics/ |
H A D | ImageLoader.java | 19 import android.graphics.Bitmap; 41 void onImageLoaded(Bitmap bitmap); 48 final Bitmap cachedValue = CACHE.get(id); 59 new AsyncTask<Void, Void, Bitmap>() { 61 protected Bitmap doInBackground(Void... params) { 70 protected void onPostExecute(Bitmap bitmap) { 86 * A simple cache implementation for {@link android.graphics.Bitmap} instances which uses 89 private static class BitmapCache extends LruCache<Long, Bitmap> { 95 protected int sizeOf(Long key, Bitmap value) {
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/ |
H A D | ImageLoader.java | 19 import android.graphics.Bitmap; 41 void onImageLoaded(Bitmap bitmap); 48 final Bitmap cachedValue = CACHE.get(id); 59 new AsyncTask<Void, Void, Bitmap>() { 61 protected Bitmap doInBackground(Void... params) { 70 protected void onPostExecute(Bitmap bitmap) { 86 * A simple cache implementation for {@link android.graphics.Bitmap} instances which uses 89 private static class BitmapCache extends LruCache<Long, Bitmap> { 95 protected int sizeOf(Long key, Bitmap value) {
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | PlaybackSeekDataProvider.java | 19 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/support/compat/tests/java/android/support/v4/graphics/drawable/ |
H A D | IconCompatTest.java | 25 import android.graphics.Bitmap; 49 private void verifyClippedCircle(Bitmap bitmap, int fillColor, int size) { 62 Bitmap source = Bitmap.createBitmap(200, 150, Bitmap.Config.ARGB_8888); 64 Bitmap result = IconCompat.createLegacyIconFromAdaptiveIcon(source); 70 Bitmap bitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888); 81 Bitmap bitma [all...] |
/frameworks/base/libs/hwui/ |
H A D | TextureCache.h | 34 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 D | BitmapAllocationTestUtils.h | 30 static sk_sp<Bitmap> allocateHeapBitmap(int width, int height, 32 sk_sp<Bitmap> bitmap = TestUtils::createBitmap(width, height, colorType); 39 static sk_sp<Bitmap> allocateHardwareBitmap(int width, int height, 44 sk_sp<Bitmap> heapBitmap(Bitmap::allocateHeapBitmap(&skBitmap, nullptr)); 46 return Bitmap::allocateHardwareBitmap(skBitmap); 49 typedef sk_sp<Bitmap> (*BitmapAllocator) (int, int, SkColorType,
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLUtils.java | 19 import android.graphics.Bitmap; 40 public static int getInternalFormat(Bitmap bitmap) { 42 throw new NullPointerException("getInternalFormat can't be used with a null Bitmap"); 62 public static int getType(Bitmap bitmap) { 64 throw new NullPointerException("getType can't be used with a null Bitmap"); 99 Bitmap bitmap, int border) { 101 throw new NullPointerException("texImage2D can't be used with a null Bitmap"); 107 throw new IllegalArgumentException("invalid Bitmap format"); 125 Bitmap bitmap, int type, int border) { 127 throw new NullPointerException("texImage2D can't be used with a null Bitmap"); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | ThumbnailData.java | 20 import android.graphics.Bitmap; 29 public Bitmap thumbnail; 37 out.thumbnail = Bitmap.createHardwareBitmap(snapshot.getSnapshot());
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.CompressFormat; 115 public static Bitmap resizeBitmapByScale( 116 Bitmap bitmap, float scale, boolean recycle) { 121 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap)); 130 private static Bitmap.Config getConfig(Bitmap bitmap) { 131 Bitmap.Config config = bitmap.getConfig(); 133 config = Bitmap [all...] |
/frameworks/rs/tests/lldb/jni/Allocations/src/com/android/rs/jniallocations/ |
H A D | MainActivity.java | 22 import android.graphics.Bitmap; 26 private Bitmap mBitmapIn; 27 private Bitmap mBitmapOut;
|
/frameworks/rs/tests/lldb/jni/BranchingFunCalls/src/com/android/rs/jnibranchingfuncalls/ |
H A D | MainActivity.java | 22 import android.graphics.Bitmap; 26 private Bitmap mBitmapIn; 27 private Bitmap mBitmapOut;
|