/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
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); local 42 assertNotNull("BitmapFactory returned null", bitmap); 43 assertEquals("Bitmap width", 1, bitmap.getWidth()); 44 assertEquals("Bitmap height", 1, bitmap.getHeight()) [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
AvgBrightnessFilterTest.java | 20 import android.graphics.Bitmap; 47 Bitmap bitmap = BitmapFactory.decodeStream(assetMgr.open("0002_000390.jpg")); local 48 image.setBitmap(bitmap);
|
ContrastRatioFilterTest.java | 27 import android.graphics.Bitmap; 55 Bitmap bitmap = BitmapFactory.decodeStream(assetMgr.open("0002_000390.jpg")); local 56 image.setBitmap(bitmap);
|
FaceSquareFilterTest.java | 21 import android.graphics.Bitmap; 62 Bitmap bitmap = BitmapFactory.decodeStream(assetMgr.open("XZZ019.jpg")); local 63 image.setBitmap(bitmap); 79 int[] pixels = new int[bitmap.getByteCount()]; 80 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), 81 bitmap.getHeight()); 87 int top = (faceRect.top+HEIGHT_OFFSET)*bitmap.getHeight()/FACE_X_RANGE [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/ |
RequestKey.java | 17 package com.android.bitmap;
|
ResourceRequestKey.java | 17 package com.android.bitmap;
|
UnrefedBitmapCache.java | 17 package com.android.bitmap; 22 import com.android.bitmap.ReusableBitmap.NullReusableBitmap; 23 import com.android.bitmap.util.Trace; 84 ReusableBitmap bitmap; local 86 while ((bitmap = super.poll()) == null && mBlocking) { 104 return bitmap;
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
Trace.java | 17 package com.android.bitmap.util;
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/ |
PhotoBitmapLoaderInterface.java | 4 import android.graphics.Bitmap; 19 public Bitmap bitmap; field in class:PhotoBitmapLoaderInterface.BitmapResult 25 * the underlying bitmap is null). 36 // Don't create a new drawable if there's no bitmap. PhotoViewFragment regards 39 if (bitmap == null) { 43 return new BitmapDrawable(resources, bitmap);
|
/packages/apps/Camera/src/com/android/camera/ |
Thumbnail.java | 19 import android.graphics.Bitmap; 25 public static Bitmap createVideoThumbnailBitmap(FileDescriptor fd, int targetWidth) { 29 public static Bitmap createVideoThumbnailBitmap(String filePath, int targetWidth) { 33 private static Bitmap createVideoThumbnailBitmap(String filePath, FileDescriptor fd, 35 Bitmap bitmap = null; local 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() [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
Thumbnail.java | 19 import android.graphics.Bitmap; 25 public static Bitmap createVideoThumbnailBitmap(FileDescriptor fd, int targetWidth) { 29 public static Bitmap createVideoThumbnailBitmap(String filePath, int targetWidth) { 33 private static Bitmap createVideoThumbnailBitmap(String filePath, FileDescriptor fd, 35 Bitmap bitmap = null; local 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() [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
ResourceTexture.java | 20 import android.graphics.Bitmap; 25 // ResourceTexture is a texture whose Bitmap is decoded from a resource. 40 protected Bitmap onGetBitmap() { 42 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 48 protected void onFreeBitmap(Bitmap bitmap) { 50 bitmap.recycle();
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
ColorPicker.java | 17 package com.android.mail.bitmap;
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
BitmapFilterTests.java | 18 import android.graphics.Bitmap; 33 // Creates Paint object that will have bitmap filtering 35 // First uses a Paint object with bitmap filtering, then uses canvas.setDrawFilter to remove 36 // the bitmap filtering 59 private static Bitmap createGridBitmap(int width, int height) { 60 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local 64 bitmap.setPixel(i, j, isWhite ? Color.WHITE : Color.BLACK) [all...] |
/external/zxing/qr_scanner/src/com/google/zxing/client/android/ |
PlanarYUVLuminanceSource.java | 21 import android.graphics.Bitmap; 109 public Bitmap renderCroppedGreyscaleBitmap() { 125 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local 126 bitmap.setPixels(pixels, 0, width, 0, 0, width, height); 127 return bitmap;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
MediaMetadataRetrieverTest.java | 21 import android.graphics.Bitmap; 89 Bitmap bitmap = retriever.getFrameAtTime(-1); local 90 assertTrue(bitmap != null); 93 bitmap.compress(Bitmap.CompressFormat.JPEG, 75, stream); 96 Log.e(TAG, "Fails to convert the bitmap to a JPEG file for " + MediaNames.THUMBNAIL_METADATA_TEST_FILES[i]); 147 Bitmap bitmap = retriever.getFrameAtTime(-1); local 148 assertTrue(bitmap != null) [all...] |
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/ |
FrameSequenceTest.java | 19 import android.graphics.Bitmap; 36 HashSet<Bitmap> mBitmaps = new HashSet<Bitmap>(); 38 public Bitmap acquireBitmap(int minWidth, int minHeight) { 39 Bitmap bitmap = local 40 Bitmap.createBitmap(minWidth + 1, minHeight + 4, Bitmap.Config.ARGB_8888); 41 mBitmaps.add(bitmap); 42 return bitmap; [all...] |
/packages/apps/Browser/tests/src/com/android/browser/tests/ |
BP2ProviderTests.java | 24 import android.graphics.Bitmap; 25 import android.graphics.Bitmap.Config; 50 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local 52 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
DecodeUtils.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.Config; 60 public static Bitmap decode(JobContext jc, FileDescriptor fd, Options options) { 77 public static Bitmap decode(JobContext jc, byte[] bytes, Options options) { 81 public static Bitmap decode(JobContext jc, byte[] bytes, int offset, 99 public static Bitmap decodeThumbnail( 114 public static Bitmap decodeThumbnail( 148 Bitmap result = BitmapFactory.decodeFileDescriptor(fd, null, options); 162 * Decodes the bitmap from the given byte array if the image size is larger than the given 168 public static Bitmap decodeIfBigEnough(JobContext jc, byte[] data 257 Bitmap bitmap = decode(jc, data, offset, length, options); local 284 Bitmap bitmap = DecodeUtils.decode(jc, fileDescriptor, options); local [all...] |
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/ |
BitmapPoolTest.java | 20 import android.graphics.Bitmap; 48 private Set<Bitmap> fillPoolAndGetPoolContents(final BitmapPool pool, final int width, 50 final Set<Bitmap> returnedBitmaps = new HashSet<Bitmap>(); 52 final Bitmap temp = pool.createOrReuseBitmap(width, height); 56 for (final Bitmap b : returnedBitmaps) { 65 final Bitmap bitmap = pool.createOrReuseBitmap(IMAGE_DIM, IMAGE_DIM); local 66 assertFalse(bitmap.isRecycled()); 68 pool.reclaimBitmap(bitmap); [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
LightingColorFilterTest.java | 20 import android.graphics.Bitmap; 25 import android.graphics.Bitmap.Config; 34 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local 35 Canvas canvas = new Canvas(bitmap); 42 assertColor(Color.MAGENTA, bitmap.getPixel(0, 0)); 47 assertColor(Color.BLUE, bitmap.getPixel(0, 0)); 52 assertColor(Color.CYAN, bitmap.getPixel(0, 0)); 55 bitmap.eraseColor(Color.TRANSPARENT) [all...] |
NinePatchTest.java | 23 import android.graphics.Bitmap; 38 private Bitmap mBitmap; 71 Bitmap bitmap = Bitmap.createBitmap(COLOR, 10, 10, Bitmap.Config.ARGB_4444); local 72 assertFalse(NinePatch.isNinePatchChunk(bitmap.getNinePatchChunk())); 78 Bitmap expected = BitmapFactory.decodeResource(mRes, R.drawable.scaled1, mOptNoScale); 80 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight() local 138 Bitmap bitmap = local [all...] |
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
RecyclingBitmapDrawable.java | 20 import android.graphics.Bitmap; 29 * {@link android.graphics.Bitmap#recycle() recycle()} will be called on this drawable's bitmap. 40 public RecyclingBitmapDrawable(Resources res, Bitmap bitmap) { 41 super(res, bitmap); 105 Bitmap bitmap = getBitmap(); local 106 return bitmap != null && !bitmap.isRecycled() [all...] |
/developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
AssetUtils.java | 20 import android.graphics.Bitmap; 58 public static Bitmap loadBitmapAsset(Context context, String asset) { 60 Bitmap bitmap = null; local 64 bitmap = BitmapFactory.decodeStream(is); 77 return bitmap;
|
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
RecyclingBitmapDrawable.java | 20 import android.graphics.Bitmap; 29 * {@link android.graphics.Bitmap#recycle() recycle()} will be called on this drawable's bitmap. 40 public RecyclingBitmapDrawable(Resources res, Bitmap bitmap) { 41 super(res, bitmap); 105 Bitmap bitmap = getBitmap(); local 106 return bitmap != null && !bitmap.isRecycled() [all...] |