| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/ |
| InfoPanel.java | 19 import android.graphics.Bitmap; 73 Bitmap bitmap = MasterImage.getImage().getFilteredImage(); local 74 mImageThumbnail.setImageBitmap(bitmap); 82 histogramView.setBitmap(bitmap);
|
| /packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
| TileImageViewAdapter.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.Config; 87 public Bitmap getTile(int level, int x, int y, int tileSize) { 103 // We need to clear a reused bitmap, if wantRegion is not fully 109 Bitmap bitmap = GalleryBitmapPool.getInstance().get(tileSize, tileSize); local 110 if (bitmap != null) { 111 if (needClear) bitmap.eraseColor(0); 113 bitmap = Bitmap.createBitmap(tileSize, tileSize, Config.ARGB_8888) 159 Bitmap bitmap = null; local [all...] |
| /packages/apps/Mms/src/com/android/mms/ui/ |
| VideoAttachmentView.java | 23 import android.graphics.Bitmap; 70 public void setImage(String name, Bitmap bitmap) { 92 Bitmap bitmap = createVideoThumbnail(mContext, video); local 93 if (null == bitmap) { 94 bitmap = BitmapFactory.decodeResource(getResources(), 97 mThumbnailView.setImageBitmap(bitmap); 103 public void setVideoThumbnail(String name, Bitmap thumbnail) { 107 public static Bitmap createVideoThumbnail(Context context, Uri uri) 108 Bitmap bitmap = null; local [all...] |
| /packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
| ContactPhotoUtils.java | 21 import android.graphics.Bitmap; 78 * Creates a byte[] containing the PNG-compressed bitmap, or null if 81 public static byte[] compressBitmap(Bitmap bitmap) { 82 final int size = bitmap.getWidth() * bitmap.getHeight() * 4; 85 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
|
| /packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
| RecycleBitmapPool.java | 19 import android.graphics.Bitmap; 28 // FIXME: this class saves recycle bitmap as SoftReference, which is too vulnerable to 31 // certain amount of recycled bitmaps in memory, we may also need remove bitmap from LRUCache 32 // if we are not able to get a recycled bitmap here. 37 // allow reuse bitmap with larger bytes, set to 0 to disable different byte size 47 sGetAllocationByteCount = Bitmap.class.getMethod("getAllocationByteCount"); 52 private final SparseArray<ArrayList<SoftReference<Bitmap>>> mRecycled8888 = 53 new SparseArray<ArrayList<SoftReference<Bitmap>>>(); 58 public static int getSize(Bitmap bitmap) { 115 Bitmap bitmap = getRecycledBitmap(mRecycled8888.get(key)); local 141 Bitmap bitmap = ref.get(); local [all...] |
| /packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
| ContactDrawable.java | 16 package com.android.mail.bitmap; 19 import android.graphics.Bitmap; 39 private static Bitmap DEFAULT_AVATAR;
|
| /packages/apps/UnifiedEmail/src/com/android/mail/photomanager/ |
| LetterTileProvider.java | 20 import android.graphics.Bitmap; 30 import com.android.mail.bitmap.ColorPicker; 40 * number), this method creates a bitmap with the letter in the center of a 42 * bitmap with the default contact avatar. 46 private final Bitmap mDefaultBitmap; 47 private final Bitmap[] mBitmapBackgroundCache; 48 private final Bitmap[] mDefaultBitmapCache; 75 mBitmapBackgroundCache = new Bitmap[POSSIBLE_BITMAP_SIZES]; 78 mDefaultBitmapCache = new Bitmap[POSSIBLE_BITMAP_SIZES]; 83 public Bitmap getLetterTile(final Dimensions dimensions, final String displayName 89 final Bitmap bitmap = getBitmap(dimensions, false \/* getDefault *\/); local 140 Bitmap bitmap = cache[pos]; local [all...] |
| /cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
| BitmapDrawableTest.java | 27 import android.graphics.Bitmap; 34 import android.graphics.Bitmap.Config; 69 Bitmap bitmap = Bitmap.createBitmap(200, 300, Config.ARGB_8888); local 70 bitmapDrawable = new BitmapDrawable(bitmap); 74 assertEquals(bitmap, bitmapDrawable.getBitmap()); 78 new BitmapDrawable(mContext.getResources(), bitmap); local 85 new BitmapDrawable((Bitmap) null); 296 Bitmap bitmap = Bitmap.createBitmap(200, 300, Config.RGB_565) local 313 Bitmap bitmap = Bitmap.createBitmap(200, 300, Config.RGB_565); local [all...] |
| ClipDrawableTest.java | 26 import android.graphics.Bitmap; 27 import android.graphics.Bitmap.Config; 105 Bitmap bitmap = Bitmap.createBitmap(100, 50, Config.RGB_565); local 106 BitmapDrawable bmpDrawable = new BitmapDrawable(bitmap); 107 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling 119 Bitmap bitmap = Bitmap.createBitmap(100, 50, Config.RGB_565) local [all...] |
| /development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
| GLES20TriangleRenderer.java | 29 import android.graphics.Bitmap; 140 Bitmap bitmap; local 142 bitmap = BitmapFactory.decodeStream(is); 151 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); 152 bitmap.recycle();
|
| MatrixPaletteRenderer.java | 33 import android.graphics.Bitmap; 281 Bitmap bitmap; local 283 bitmap = BitmapFactory.decodeStream(is); 292 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); 293 bitmap.recycle();
|
| /development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/ |
| GLES20TriangleRenderer.java | 29 import android.graphics.Bitmap; 138 Bitmap bitmap; local 140 bitmap = BitmapFactory.decodeStream(is); 149 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); 150 bitmap.recycle();
|
| /external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
| LoadDataWithBaseUrlTest.java | 7 import android.graphics.Bitmap; 304 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.RGB_565); local 306 bitmap.compress(Bitmap.CompressFormat.PNG, 100, fos);
|
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
| ImageFilterRS.java | 19 import android.graphics.Bitmap; 50 protected void update(Bitmap bitmap) { 51 getOutPixelsAllocation().copyTo(bitmap); 111 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { 112 if (bitmap == null || bitmap.getWidth() == 0 || bitmap.getHeight() == 0) 188 Bitmap bitmap = BitmapFactory.decodeResource( local 200 Bitmap bitmap = BitmapFactory.decodeResource( local 218 Bitmap bitmap = BitmapFactory.decodeResource( local [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/ |
| ExportDialog.java | 20 import android.graphics.Bitmap; 172 Bitmap bitmap = MasterImage.getImage().getFilteredImage(); local 173 if (bitmap == null) { 177 bitmap.compress(Bitmap.CompressFormat.JPEG, mQuality, out); 179 mCompressedBounds = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());
|
| /packages/apps/LegacyCamera/src/com/android/camera/ |
| Thumbnail.java | 22 import android.graphics.Bitmap; 51 private Bitmap mBitmap; 59 public Thumbnail(Uri uri, Bitmap bitmap, int orientation) { 61 mBitmap = rotateImage(bitmap, orientation); 62 if (mBitmap == null) throw new IllegalArgumentException("null bitmap"); 69 public Bitmap getBitmap() { 81 private static Bitmap rotateImage(Bitmap bitmap, int orientation) 129 Bitmap bitmap = null; local 252 Bitmap bitmap = BitmapFactory.decodeByteArray(jpeg, 0, jpeg.length, options); local 265 Bitmap bitmap = null; local [all...] |
| /developers/build/prebuilts/gradle/AgendaData/Application/src/main/java/com/example/android/wearable/agendadata/ |
| CalendarQueryService.java | 40 import android.graphics.Bitmap; 194 Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.nobody); local 195 return Asset.createFromBytes(toByteArray(bitmap)); 208 Bitmap bitmap = BitmapFactory.decodeStream(inputStream); local 209 if (bitmap != null) { 210 return Asset.createFromBytes(toByteArray(bitmap)); 223 private static byte[] toByteArray(Bitmap bitmap) { [all...] |
| /developers/samples/android/wearable/wear/AgendaData/Application/src/main/java/com/example/android/wearable/agendadata/ |
| CalendarQueryService.java | 40 import android.graphics.Bitmap; 194 Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.nobody); local 195 return Asset.createFromBytes(toByteArray(bitmap)); 208 Bitmap bitmap = BitmapFactory.decodeStream(inputStream); local 209 if (bitmap != null) { 210 return Asset.createFromBytes(toByteArray(bitmap)); 223 private static byte[] toByteArray(Bitmap bitmap) { [all...] |
| /development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
| SpriteTextRenderer.java | 30 import android.graphics.Bitmap; 100 Bitmap bitmap; local 102 bitmap = BitmapFactory.decodeStream(is); 111 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); 112 bitmap.recycle();
|
| /development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/ |
| CalendarQueryService.java | 40 import android.graphics.Bitmap; 194 Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.nobody); local 195 return Asset.createFromBytes(toByteArray(bitmap)); 208 Bitmap bitmap = BitmapFactory.decodeStream(inputStream); local 209 if (bitmap != null) { 210 return Asset.createFromBytes(toByteArray(bitmap)); 223 private static byte[] toByteArray(Bitmap bitmap) { [all...] |
| /frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
| TestDocumentsProvider.java | 26 import android.graphics.Bitmap; 27 import android.graphics.Bitmap.CompressFormat; 325 final Bitmap bitmap = Bitmap.createBitmap(32, 32, Bitmap.Config.ARGB_8888); local 326 final Canvas canvas = new Canvas(bitmap); 333 bitmap.compress(CompressFormat.JPEG, 50, bos);
|
| /frameworks/base/packages/WallpaperCropper/src/com/android/photos/ |
| BitmapRegionTileSource.java | 22 import android.graphics.Bitmap; 23 import android.graphics.Bitmap.Config; 49 Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options); 89 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { 95 Bitmap mBuffer; 98 private DumbBitmapRegionDecoder(Bitmap b) { 102 Bitmap b = BitmapFactory.decodeFile(pathName); 109 Bitmap b = BitmapFactory.decodeStream(is); 121 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { 128 Bitmap newBitmap = Bitmap.createBitmap 475 Bitmap bitmap = mDecoder.decodeRegion(mOverlapRegion, mOptions); local [all...] |
| /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
| GLTextureViewActivity.java | 23 import android.graphics.Bitmap; 67 Bitmap b = mTextureView.getBitmap(800, 800); 72 b.compress(Bitmap.CompressFormat.PNG, 100, out); 270 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resource); local 272 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0); 275 bitmap.recycle();
|
| /frameworks/opt/bitmap/src/com/android/bitmap/ |
| DecodeTask.java | 17 package com.android.bitmap; 19 import android.graphics.Bitmap; 28 import com.android.bitmap.RequestKey.FileDescriptorFactory; 29 import com.android.bitmap.util.BitmapUtils; 30 import com.android.bitmap.util.Exif; 31 import com.android.bitmap.util.RectUtils; 32 import com.android.bitmap.util.Trace; 43 * and allow bitmap reuse on Jellybean 4.1 and later. 143 Trace.beginSection("poll for reusable bitmap"); 187 // disable inBitmap-- bitmap reuse doesn't work with different decode regions du 318 final Bitmap bitmap; local [all...] |
| /packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/ |
| BitmapRegionTileSource.java | 22 import android.graphics.Bitmap; 23 import android.graphics.Bitmap.Config; 49 Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options); 89 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { 95 Bitmap mBuffer; 98 private DumbBitmapRegionDecoder(Bitmap b) { 102 Bitmap b = BitmapFactory.decodeFile(pathName); 109 Bitmap b = BitmapFactory.decodeStream(is); 121 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { 128 Bitmap newBitmap = Bitmap.createBitmap 475 Bitmap bitmap = mDecoder.decodeRegion(mOverlapRegion, mOptions); local [all...] |