/cts/tests/tests/graphics/src/android/graphics/cts/ |
Bitmap_CompressFormatTest.java | 21 import android.graphics.Bitmap.CompressFormat; 28 assertEquals(CompressFormat.JPEG, CompressFormat.valueOf("JPEG")); 29 assertEquals(CompressFormat.PNG, CompressFormat.valueOf("PNG")); 30 assertEquals(CompressFormat.WEBP, CompressFormat.valueOf("WEBP")); 34 CompressFormat[] comFormat = CompressFormat.values(); 37 assertEquals(CompressFormat.JPEG, comFormat[0]) [all...] |
/external/droiddriver/src/io/appium/droiddriver/ |
UiDevice.java | 19 import android.graphics.Bitmap.CompressFormat; 74 boolean takeScreenshot(String path, CompressFormat format, int quality);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
BitmapEncoder.java | 19 * using {@link android.graphics.Bitmap.CompressFormat#PNG} to preserve alpha and all other bitmaps are written 20 * using {@link android.graphics.Bitmap.CompressFormat#JPEG}. 23 * @see android.graphics.Bitmap#compress(android.graphics.Bitmap.CompressFormat, int, java.io.OutputStream) 28 private Bitmap.CompressFormat compressFormat; 35 public BitmapEncoder(Bitmap.CompressFormat compressFormat, int quality) { 36 this.compressFormat = compressFormat; 45 Bitmap.CompressFormat format = getFormat(bitmap) [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/transcode/ |
BitmapBytesTranscoder.java | 13 * {@link android.graphics.Bitmap#compress(android.graphics.Bitmap.CompressFormat, int, java.io.OutputStream)}. 16 private final Bitmap.CompressFormat compressFormat; 20 this(Bitmap.CompressFormat.JPEG, 100); 23 public BitmapBytesTranscoder(Bitmap.CompressFormat compressFormat, int quality) { 24 this.compressFormat = compressFormat; 31 toTranscode.get().compress(compressFormat, quality, os);
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
ImageEncoder.java | 27 import android.graphics.Bitmap.CompressFormat; 56 bitmap.compress(CompressFormat.JPEG, mQuality, mOutputStream);
|
/external/droiddriver/src/io/appium/droiddriver/base/ |
BaseUiDevice.java | 21 import android.graphics.Bitmap.CompressFormat; 80 return takeScreenshot(path, Bitmap.CompressFormat.PNG, 0); 84 public boolean takeScreenshot(String path, CompressFormat format, int quality) {
|
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/ |
MediaStoreSaver.java | 51 Bitmap.CompressFormat format = Bitmap.CompressFormat.PNG; 54 format = Bitmap.CompressFormat.JPEG;
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/ |
BitmapUtilTests.java | 106 return createRawData(Bitmap.CompressFormat.JPEG, sourceWidth, sourceHeight); 110 return createRawData(Bitmap.CompressFormat.PNG, sourceWidth, sourceHeight); 113 private byte[] createRawData(Bitmap.CompressFormat format, int sourceWidth,
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapFactoryTest.java | 36 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, out);
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
GenerateBitmapTask.java | 20 import android.graphics.Bitmap.CompressFormat; 82 success = bitmap.compress(CompressFormat.PNG, 100, stream);
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/ |
IconTest.java | 82 bm1.compress(Bitmap.CompressFormat.PNG, 100, 84 test1.compress(Bitmap.CompressFormat.PNG, 100, 91 bm2.compress(Bitmap.CompressFormat.PNG, 100, 93 test2.compress(Bitmap.CompressFormat.PNG, 100, 100 bm3.compress(Bitmap.CompressFormat.PNG, 100, 102 test3.compress(Bitmap.CompressFormat.PNG, 100, 123 res1.compress(Bitmap.CompressFormat.PNG, 100, 125 test1.compress(Bitmap.CompressFormat.PNG, 100, 139 bit1.compress(Bitmap.CompressFormat.PNG, 100, 149 test1.compress(Bitmap.CompressFormat.PNG, 100 [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
CreateBitmap.java | 59 private static Bitmap codec(Bitmap src, Bitmap.CompressFormat format, 102 mJPEG[i] = codec(mBitmaps[i], Bitmap.CompressFormat.JPEG, 80); 103 mPNG[i] = codec(mBitmaps[i], Bitmap.CompressFormat.PNG, 0);
|
PurgeableBitmapView.java | 61 bitstream = generateBitstream(src, Bitmap.CompressFormat.JPEG, 80); 109 private byte[] generateBitstream(Bitmap src, Bitmap.CompressFormat format,
|
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/ |
ImageCompare.java | 20 bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream); 109 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, stream1); 114 bitmap2.compress(Bitmap.CompressFormat.PNG, 100, stream2);
|
MediaStoreSaver.java | 52 bitmap.compress(Bitmap.CompressFormat.PNG, 0, fOut);
|
/cts/libs/deviceutil/src/android/cts/util/ |
BitmapUtils.java | 22 import android.graphics.Bitmap.CompressFormat; 88 bmp.compress(CompressFormat.PNG, 0 /*ignored for PNG*/, bos);
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
MediaStoreSaver.java | 53 bitmap.compress(Bitmap.CompressFormat.PNG, 0, fOut);
|
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/ |
MediaStoreSaver.java | 47 source.compress(Bitmap.CompressFormat.JPEG, 50, imageOut); 144 thumb.compress(Bitmap.CompressFormat.JPEG, 100, thumbOut);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GetBitmapActivity.java | 59 b.compress(Bitmap.CompressFormat.PNG, 100, out);
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/content/ |
FileProviderExample.java | 73 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
ImageRecord.java | 80 bitmap.compress(Bitmap.CompressFormat.JPEG, 100, out);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
ByodIconSamplerActivity.java | 69 bitmap.compress(Bitmap.CompressFormat.PNG, 100, file);
|
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
ImageCache.java | 22 import android.graphics.Bitmap.CompressFormat; 68 private static final CompressFormat DEFAULT_COMPRESS_FORMAT = CompressFormat.JPEG; 263 mCacheParams.compressFormat, mCacheParams.compressQuality, out); 472 public CompressFormat compressFormat = DEFAULT_COMPRESS_FORMAT;
|
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
ImageCache.java | 22 import android.graphics.Bitmap.CompressFormat; 68 private static final CompressFormat DEFAULT_COMPRESS_FORMAT = CompressFormat.JPEG; 263 mCacheParams.compressFormat, mCacheParams.compressQuality, out); 472 public CompressFormat compressFormat = DEFAULT_COMPRESS_FORMAT;
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
ImageCache.java | 22 import android.graphics.Bitmap.CompressFormat; 68 private static final CompressFormat DEFAULT_COMPRESS_FORMAT = CompressFormat.JPEG; 263 mCacheParams.compressFormat, mCacheParams.compressQuality, out); 472 public CompressFormat compressFormat = DEFAULT_COMPRESS_FORMAT;
|