HomeSort by relevance Sort by last modified time
    Searched refs:CompressFormat (Results 1 - 25 of 62) sorted by null

1 2 3

  /cts/tests/tests/graphics/src/android/graphics/cts/
Bitmap_CompressFormatTest.java 22 import android.graphics.Bitmap.CompressFormat;
38 assertEquals(CompressFormat.JPEG, CompressFormat.valueOf("JPEG"));
39 assertEquals(CompressFormat.PNG, CompressFormat.valueOf("PNG"));
40 assertEquals(CompressFormat.WEBP, CompressFormat.valueOf("WEBP"));
45 CompressFormat[] comFormat = CompressFormat.values();
48 assertEquals(CompressFormat.JPEG, comFormat[0])
    [all...]
BitmapColorSpaceTest.java     [all...]
BitmapFactoryTest.java 31 import android.graphics.Bitmap.CompressFormat;
245 assertTrue(bPng.compress(CompressFormat.WEBP, 90, oStreamWebp));
282 assertTrue(bPng.compress(CompressFormat.WEBP, 90, oStreamWebp));
683 assertTrue(b2.compress(Bitmap.CompressFormat.JPEG, 50, baos));
    [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);
  /external/droiddriver/src/io/appium/droiddriver/base/
BaseUiDevice.java 21 import android.graphics.Bitmap.CompressFormat;
86 return takeScreenshot(path, Bitmap.CompressFormat.PNG, 0);
90 public boolean takeScreenshot(String path, CompressFormat format, int quality) {
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ImageUtil.java 4 import android.graphics.Bitmap.CompressFormat;
50 Bitmap realBitmap, CompressFormat format, int quality, OutputStream stream) {
85 private static String getFormatName(CompressFormat compressFormat) {
86 switch (compressFormat) {
93 throw new UnsupportedOperationException("Cannot convert format: " + compressFormat);
  /cts/hostsidetests/theme/app/src/android/theme/app/
GenerateBitmapTask.java 20 import android.graphics.Bitmap.CompressFormat;
82 success = bitmap.compress(CompressFormat.PNG, 100, stream);
  /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,
  /cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
MediaStoreSaver.java 53 bitmap.compress(Bitmap.CompressFormat.PNG, 0, fOut);
  /frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
BitmapUtils.java 46 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
  /cts/common/device-side/util/src/com/android/compatibility/common/util/
BitmapUtils.java 22 import android.graphics.Bitmap.CompressFormat;
142 bmp.compress(CompressFormat.PNG, 0 /*ignored for PNG*/, bos);
174 bitmap.compress(Bitmap.CompressFormat.PNG, 0 /* ignored for PNG */, fileStream);
  /cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
BitmapUtils.java 22 import android.graphics.Bitmap.CompressFormat;
142 bmp.compress(CompressFormat.PNG, 0 /*ignored for PNG*/, bos);
174 bitmap.compress(Bitmap.CompressFormat.PNG, 0 /* ignored for PNG */, fileStream);
  /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/content/SharingShortcuts/Application/src/main/java/com/example/android/sharingshortcuts/
MainActivity.java 139 bm.compress(Bitmap.CompressFormat.PNG, 100, stream);
  /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;
  /external/glide/library/src/main/java/com/bumptech/glide/
BitmapTypeRequest.java 79 * @see #toBytes(android.graphics.Bitmap.CompressFormat, int)
91 * @see android.graphics.Bitmap#compress(android.graphics.Bitmap.CompressFormat, int, java.io.OutputStream)
94 * @param compressFormat The {@link android.graphics.Bitmap.CompressFormat} to use to compress the {@link Bitmap}.
98 public BitmapRequestBuilder<ModelType, byte[]> toBytes(Bitmap.CompressFormat compressFormat, int quality) {
99 return transcode(new BitmapBytesTranscoder(compressFormat, quality), byte[].class);
  /cts/tests/tests/media/src/android/media/cts/
CodecUtils.java 177 bitmap.compress(Bitmap.CompressFormat.JPEG, 90, outputStream);
  /developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/recommendation/
RecommendationBuilder.java 127 mBitmap.compress(Bitmap.CompressFormat.PNG, 85, fOut);
  /external/webrtc/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/
ViESurfaceRenderer.java 148 bitmap.compress(Bitmap.CompressFormat.JPEG, 100, byteOutStream);
  /development/apps/WidgetPreview/src/com/android/widgetpreview/
WidgetPreviewActivity.java 29 import android.graphics.Bitmap.CompressFormat;
261 if (!bmp.compress(CompressFormat.PNG, 100, fout)) {

Completed in 1348 milliseconds

1 2 3