/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
H A D | BitmapWithMetadata.java | 28 public Bitmap bitmap; field in class:BitmapWithMetadata 31 public BitmapWithMetadata(Bitmap bitmap, int rotationDegrees) { argument 32 this.bitmap = bitmap;
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | BitmapTexture.java | 31 public BitmapTexture(Bitmap bitmap) { argument 32 this(bitmap, false); 35 public BitmapTexture(Bitmap bitmap, boolean hasBorder) { argument 37 Utils.assertTrue(bitmap != null && !bitmap.isRecycled()); 38 mContentBitmap = bitmap; 42 protected void onFreeBitmap(Bitmap bitmap) { argument
|
H A D | CanvasTexture.java | 24 // The subclasses should override onDraw() to draw on the bitmap. 38 Bitmap bitmap = Bitmap.createBitmap(mWidth, mHeight, mConfig); 39 mCanvas = new Canvas(bitmap); 40 onDraw(mCanvas, bitmap); 41 return bitmap; 45 protected void onFreeBitmap(Bitmap bitmap) { argument 47 bitmap.recycle();
|
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
H A D | BitmapTexture.java | 31 public BitmapTexture(Bitmap bitmap) { argument 33 Utils.assertTrue(bitmap != null && !bitmap.isRecycled()); 34 mContentBitmap = bitmap; 38 protected void onFreeBitmap(Bitmap bitmap) { argument
|
H A D | UploadedTexture.java | 63 Bitmap bitmap = sBorderLines.get(key); 64 if (bitmap == null) { 65 bitmap = vertical 68 sBorderLines.put(key, bitmap); 70 return bitmap; 105 protected abstract void onFreeBitmap(Bitmap bitmap); argument 129 Bitmap bitmap = getBitmap(); 130 int format = GLUtils.getInternalFormat(bitmap); 131 int type = GLUtils.getType(bitmap); 132 canvas.texSubImage2D(this, 0, 0, bitmap, forma [all...] |
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
H A D | UriBitmap.java | 34 private UriBitmap(Bitmap bitmap, Uri uri, File tempFile) { argument 35 mBitmap = bitmap; 52 Bitmap bitmap = generateSampleBitmap(); 54 Uri uri = bitmapToUri(bitmap, tempFile); 55 return new UriBitmap(bitmap, uri, tempFile); 59 Bitmap bitmap = Bitmap.createBitmap(15, 15, Bitmap.Config.ARGB_8888); 60 for (int x = 0; x < bitmap.getWidth(); x++) { 61 for (int y = 0; y < bitmap.getHeight(); y++) { 62 bitmap.setPixel(x, y, Color.rgb(x, y, x + y)); 65 return bitmap; 68 bitmapToUri(Bitmap bitmap, File tempFile) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | ImageFilterContrast.java | 45 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float strength); argument 48 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { argument 50 return bitmap; 52 int w = bitmap.getWidth(); 53 int h = bitmap.getHeight(); 55 nativeApplyFilter(bitmap, w, h, value); 56 return bitmap;
|
H A D | ImageFilterEdge.java | 39 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float p); argument 42 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { argument 44 return bitmap; 46 int w = bitmap.getWidth(); 47 int h = bitmap.getHeight(); 50 nativeApplyFilter(bitmap, w, h, p); 51 return bitmap;
|
H A D | ImageFilterExposure.java | 43 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float bright); argument 46 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { argument 48 return bitmap; 50 int w = bitmap.getWidth(); 51 int h = bitmap.getHeight(); 53 nativeApplyFilter(bitmap, w, h, value); 54 return bitmap;
|
H A D | ImageFilterSaturated.java | 44 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float saturation); argument 47 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { argument 49 return bitmap; 51 int w = bitmap.getWidth(); 52 int h = bitmap.getHeight(); 55 nativeApplyFilter(bitmap, w, h, value); 56 return bitmap;
|
H A D | ImageFilterShadows.java | 44 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float factor); argument 47 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { argument 49 return bitmap; 51 int w = bitmap.getWidth(); 52 int h = bitmap.getHeight(); 55 nativeApplyFilter(bitmap, w, h, p); 56 return bitmap;
|
H A D | ImageFilterVibrance.java | 43 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float bright); argument 46 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { argument 48 return bitmap; 50 int w = bitmap.getWidth(); 51 int h = bitmap.getHeight(); 53 nativeApplyFilter(bitmap, w, h, value); 55 return bitmap;
|
H A D | ImageFilterNegative.java | 26 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h); argument 34 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { argument 35 int w = bitmap.getWidth(); 36 int h = bitmap.getHeight(); 37 nativeApplyFilter(bitmap, w, h); 38 return bitmap;
|
H A D | ImageFilterKMeans.java | 52 native protected void nativeApplyFilter(Bitmap bitmap, int width, int height, argument 57 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { argument 59 return bitmap; 61 int w = bitmap.getWidth(); 62 int h = bitmap.getHeight(); 64 Bitmap large_bm_ds = bitmap; 65 Bitmap small_bm_ds = bitmap; 67 // find width/height for larger downsampled bitmap 75 large_bm_ds = Bitmap.createScaledBitmap(bitmap, lw, lh, true); 78 // find width/height for smaller downsampled bitmap [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 43 * bitmap. 51 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED. 116 Bitmap bitmap, float scale, boolean recycle) { 117 int width = Math.round(bitmap.getWidth() * scale); 118 int height = Math.round(bitmap.getHeight() * scale); 119 if (width == bitmap.getWidth() 120 && height == bitmap.getHeight()) return bitmap; 121 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap)); 125 canvas.drawBitmap(bitmap, 115 resizeBitmapByScale( Bitmap bitmap, float scale, boolean recycle) argument 130 getConfig(Bitmap bitmap) argument 138 resizeDownBySideLength( Bitmap bitmap, int maxLength, boolean recycle) argument 148 resizeAndCropCenter(Bitmap bitmap, int size, boolean recycle) argument 169 recycleSilently(Bitmap bitmap) argument 237 compressToBytes(Bitmap bitmap) argument 241 compressToBytes(Bitmap bitmap, int quality) argument [all...] |
/packages/apps/Dialer/java/com/android/dialer/util/ |
H A D | DrawableConverter.java | 35 /** Converts the provided drawable to a bitmap using the drawable's intrinsic width and height. */ 42 * Converts the provided drawable to a bitmap with the specified width and height. 53 Bitmap bitmap; 55 bitmap = ((BitmapDrawable) drawable).getBitmap(); 58 bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 61 bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); 63 bitmap = 72 "created bitmap with width: %d, height: %d", 73 bitmap.getWidth(), 74 bitmap [all...] |
/packages/apps/Gallery2/jni/filters/ |
H A D | negative.c | 19 void JNIFUNCF(ImageFilterNegative, nativeApplyFilter, jobject bitmap, jint width, jint height) argument 22 AndroidBitmap_lockPixels(env, bitmap, (void**) &destination); 32 AndroidBitmap_unlockPixels(env, bitmap);
|
H A D | redeye.c | 20 void JNIFUNCF(ImageFilterRedEye, nativeApplyFilter, jobject bitmap, jint width, jint height, jshortArray vrect) argument 23 AndroidBitmap_lockPixels(env, bitmap, (void**) &destination); 30 AndroidBitmap_unlockPixels(env, bitmap);
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
H A D | RecycleBitmapPool.java | 29 * This class saves recycle bitmap as SoftReference, which is too vulnerable to 32 * certain amount of recycled bitmaps in memory, we may also need remove bitmap from LRUCache 33 * if we are not able to get a recycled bitmap here. 41 // allow reuse bitmap with larger bytes, set to 0 to disable different byte size 61 public static int getSize(Bitmap bitmap) { argument 64 return (Integer) sGetAllocationByteCount.invoke(bitmap); 74 return bitmap.getByteCount(); 84 public void addRecycledBitmap(Bitmap bitmap) { argument 85 if (bitmap.isRecycled()) { 88 Bitmap.Config config = bitmap [all...] |
H A D | BitmapDownloader.java | 45 // 1/4 of max memory is used for bitmap mem cache 48 // hard limit for bitmap mem cache in MB 52 * bitmap cache item structure saved in LruCache 56 * cached bitmap 60 * indicate if the bitmap is scaled down from original source (never scale up) 64 public BitmapItem(Bitmap bitmap, boolean scaled) { argument 65 mBitmap = bitmap; 80 // Different bitmap cache buckets save different bitmap cache items. 87 public abstract void onBitmapRetrieved(Bitmap bitmap); argument 257 addBitmapToMemoryCache(BitmapWorkerOptions key, Bitmap bitmap, boolean isScaled) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | BitmapTileProvider.java | 37 public BitmapTileProvider(Bitmap bitmap, int maxBackupSize) { argument 38 mImageWidth = bitmap.getWidth(); 39 mImageHeight = bitmap.getHeight(); 41 list.add(bitmap); 42 while (bitmap.getWidth() > maxBackupSize 43 || bitmap.getHeight() > maxBackupSize) { 44 bitmap = BitmapUtils.resizeBitmapByScale(bitmap, 0.5f, false); 45 list.add(bitmap); 96 for (Bitmap bitmap [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
H A D | Thumbnail.java | 35 Bitmap bitmap = null; 43 bitmap = retriever.getFrameAtTime(-1); 55 if (bitmap == null) return null; 57 // Scale down the bitmap if it is bigger than we need. 58 int width = bitmap.getWidth(); 59 int height = bitmap.getHeight(); 64 bitmap = Bitmap.createScaledBitmap(bitmap, w, h, true); 66 return bitmap;
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
H A D | Bitmaps.java | 26 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 28 return bitmap;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
H A D | BitmapCache.java | 55 Bitmap bitmap; field in class:BitmapCache.BitmapTracking 61 private void track(Bitmap bitmap, int type) { argument 64 if (tracking.bitmap == bitmap) { 65 Log.e(LOGTAG, "giving a bitmap already given!!!"); 69 tracking.bitmap = bitmap; 75 private void untrack(Bitmap bitmap) { argument 78 if (tracking.bitmap == bitmap) { 129 cache(Bitmap bitmap) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | ImageCacheRequest.java | 63 Bitmap bitmap; 65 bitmap = DecodeUtils.decodeUsingPool(jc, 68 bitmap = DecodeUtils.decodeUsingPool(jc, 71 if (bitmap == null && !jc.isCancelled()) { 74 return bitmap; 79 Bitmap bitmap = onDecodeOriginal(jc, mType); 82 if (bitmap == null) { 88 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, mTargetSize, true); 90 bitmap [all...] |