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

1 2 3

  /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...]
BitmapTest.java 28 import android.graphics.Bitmap.CompressFormat;
61 mBitmap.compress(CompressFormat.JPEG, 0, null);
70 mBitmap.compress(CompressFormat.JPEG, 0, null);
77 mBitmap.compress(CompressFormat.JPEG, -1, new ByteArrayOutputStream());
84 mBitmap.compress(CompressFormat.JPEG, 101, new ByteArrayOutputStream());
90 assertTrue(mBitmap.compress(CompressFormat.JPEG, 50, new ByteArrayOutputStream()));
  /frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
ImageEncoder.java 29 import android.graphics.Bitmap.CompressFormat;
61 bitmap.compress(CompressFormat.JPEG, mQuality, mOutputStream);
  /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);
  /frameworks/ex/carousel/java/com/android/ex/carousel/
CarouselViewUtilities.java 31 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
  /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/holo/src/android/holo/cts/
BitmapAssets.java 22 import android.graphics.Bitmap.CompressFormat;
132 bitmap.compress(CompressFormat.PNG, 100, stream);
  /packages/apps/Browser/tests/src/com/android/browser/tests/
BP2UriObserverTests.java 58 favicon.compress(Bitmap.CompressFormat.PNG, 100, os);
94 favicon.compress(Bitmap.CompressFormat.PNG, 100, os);
  /development/samples/Support4Demos/src/com/example/android/supportv4/content/
FileProviderExample.java 73 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
GetBitmapActivity.java 59 b.compress(Bitmap.CompressFormat.PNG, 100, out);
  /packages/apps/Tag/src/com/android/apps/tag/record/
ImageRecord.java 80 bitmap.compress(Bitmap.CompressFormat.JPEG, 100, out);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
ImageLoader.java 25 import android.graphics.Bitmap.CompressFormat;
30 import android.graphics.Bitmap.CompressFormat;
579 private CompressFormat convertExtensionToCompressFormat(String extension) {
580 return extension.equals("png") ? CompressFormat.PNG : CompressFormat.JPEG;
614 CompressFormat cf = convertExtensionToCompressFormat(getFileExtension(outputFormat));
  /development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/
ImageCache.java 24 import android.graphics.Bitmap.CompressFormat;
64 private static final CompressFormat DEFAULT_COMPRESS_FORMAT = CompressFormat.JPEG;
247 mCacheParams.compressFormat, mCacheParams.compressQuality, out);
447 public CompressFormat compressFormat = DEFAULT_COMPRESS_FORMAT;
  /frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
UiAutomatorBridge.java 117 screenshot.compress(Bitmap.CompressFormat.PNG, quality, bos);
  /packages/apps/Contacts/src/com/android/contacts/util/
ContactPhotoUtils.java 85 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
  /packages/apps/Launcher2/src/com/android/launcher2/
ItemInfo.java 162 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
  /sdk/apps/NotificationStudio/src/com/android/notificationstudio/action/
ShareMockupAction.java 55 mockup.compress(Bitmap.CompressFormat.PNG, 100, bytes);
  /packages/apps/Browser/src/com/android/browser/
Bookmarks.java 139 bm.compress(Bitmap.CompressFormat.PNG, 100, os);
206 favicon.compress(Bitmap.CompressFormat.PNG, 100, os);
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
BitmapUtils.java 20 import android.graphics.Bitmap.CompressFormat;
244 bitmap.compress(CompressFormat.JPEG, quality, baos);
  /packages/apps/Gallery2/src/com/android/photos/data/
MediaCacheUtils.java 21 import android.graphics.Bitmap.CompressFormat;
139 success = bitmap.compress(CompressFormat.JPEG, QUALITY, out);
  /packages/apps/Gallery2/tests/src/com/android/gallery3d/exif/
ExifOutputStreamTest.java 80 bmp.compress(Bitmap.CompressFormat.JPEG, 90, exifOutputStream);
169 bmp.compress(Bitmap.CompressFormat.JPEG, 90, exifOutputStream);
  /packages/apps/VideoEditor/src/com/android/videoeditor/util/
FileUtils.java 30 import android.graphics.Bitmap.CompressFormat;
114 if (!bitmap.compress(CompressFormat.JPEG, 100, fos)) {
  /packages/providers/MediaProvider/src/com/android/providers/media/
MediaThumbRequest.java 190 bitmap.compress(Bitmap.CompressFormat.JPEG, 85, thumbOut);
202 bitmap.compress(Bitmap.CompressFormat.JPEG, 75, miniOutStream);

Completed in 854 milliseconds

1 2 3