Home
last modified time | relevance | path

Searched refs:CompressFormat (Results 1 – 25 of 68) sorted by relevance

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DImageExporter.java28 import android.graphics.Bitmap.CompressFormat;
95 private CompressFormat mCompressFormat = CompressFormat.PNG;
113 void setFormat(CompressFormat format) { in setFormat()
180 CompressFormat format, UserHandle owner, String fileName) {
251 public CompressFormat format;
273 private final CompressFormat mFormat;
290 CompressFormat format, int quality, boolean publish, UserHandle owner,
297 CompressFormat format, int quality, boolean publish, UserHandle owner,
367 private static Uri createEntry(ContentResolver resolver, CompressFormat format,
418 private static void writeImage(ContentResolver resolver, Bitmap bitmap, CompressFormat format,
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java117 bm1.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
119 test1.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
126 bm2.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
128 test2.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
135 bm3.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
137 test3.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
182 bm1.compress(Bitmap.CompressFormat.PNG, 100, in testWithAdaptiveBitmap()
184 test1.compress(Bitmap.CompressFormat.PNG, 100, in testWithAdaptiveBitmap()
205 res1.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmapResource()
207 test1.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmapResource()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DImageExporterTest.java32 import android.graphics.Bitmap.CompressFormat;
94 ImageExporter.createFilename(CAPTURE_TIME, CompressFormat.PNG, in testImageFilename()
101 ImageExporter.createFilename(CAPTURE_TIME, CompressFormat.PNG, /* displayId= */ 1)); in testImageFilename_secondaryDisplay1()
107 ImageExporter.createFilename(CAPTURE_TIME, CompressFormat.PNG, /* displayId= */ 2)); in testImageFilename_secondaryDisplay2()
144 assertEquals("The default CompressFormat should be PNG", CompressFormat.PNG, result.format); in testImageExport()
206 createSystemFileDisplayName(customizedFileName, CompressFormat.PNG), in testImageExport_customizedFileName()
212 String name = ImageExporter.createFilename(CAPTURE_TIME, CompressFormat.PNG, in testMediaStoreMetadata()
214 ContentValues values = ImageExporter.createMetadata(CAPTURE_TIME, CompressFormat.PNG, name); in testMediaStoreMetadata()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java51 Bitmap.CompressFormat format = Bitmap.CompressFormat.PNG; in save()
54 format = Bitmap.CompressFormat.JPEG; in save()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java51 Bitmap.CompressFormat format = Bitmap.CompressFormat.PNG; in save()
54 format = Bitmap.CompressFormat.JPEG; in save()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DImageEncoder.java27 import android.graphics.Bitmap.CompressFormat;
56 bitmap.compress(CompressFormat.JPEG, mQuality, mOutputStream); in process()
/frameworks/base/services/core/java/com/android/server/textclassifier/
DIconsContentProvider.java60 getBitmap(drawable).compress(Bitmap.CompressFormat.PNG, 100, out);
107 getBitmap(one).compress(Bitmap.CompressFormat.PNG, 100, stream1); in sameIcon()
109 getBitmap(two).compress(Bitmap.CompressFormat.PNG, 100, stream2); in sameIcon()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DMediaStoreSaver.java47 source.compress(Bitmap.CompressFormat.JPEG, 50, imageOut); in insertImage()
144 thumb.compress(Bitmap.CompressFormat.JPEG, 100, thumbOut); in storeThumbnail()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DMediaStoreSaver.java47 source.compress(Bitmap.CompressFormat.JPEG, 50, imageOut); in insertImage()
144 thumb.compress(Bitmap.CompressFormat.JPEG, 100, thumbOut); in storeThumbnail()
/frameworks/base/core/tests/coretests/src/android/graphics/
DBitmapFactoryTest.java36 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, out); in testBitmapParcelFileDescriptor()
/frameworks/base/media/tests/MtpTests/src/android/mtp/
DMtpDatabaseTest.java177 return createRawData(Bitmap.CompressFormat.JPEG, sourceWidth, sourceHeight); in createJpegRawData()
181 return createRawData(Bitmap.CompressFormat.PNG, sourceWidth, sourceHeight); in createPngRawData()
184 private byte[] createRawData(Bitmap.CompressFormat format, int sourceWidth, int sourceHeight) in createRawData()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DBitmapUtils.java46 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out); in saveBitmapIntoPNG()
/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/contextsync/
DBitmapUtils.java62 bitmap.compress(Bitmap.CompressFormat.PNG, 100, baos); in renderBitmapToByteArray()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutBitmapSaver.java22 import android.graphics.Bitmap.CompressFormat;
159 int maxDimension, CompressFormat format, int quality) { in saveBitmapLocked()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DMediaStoreSaver.java53 bitmap.compress(Bitmap.CompressFormat.PNG, 0, fOut); in savePNG()
/frameworks/libs/systemui/weathereffects/src/com/google/android/wallpaper/weathereffects/data/repository/
DWallpaperFileUtils.kt52 Bitmap.CompressFormat.PNG, in export()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java1482 public enum CompressFormat { enum in Bitmap
1522 CompressFormat(int nativeInt) { in CompressFormat() method in Bitmap.CompressFormat
1538 public DumpData(@NonNull CompressFormat format, int max) { in DumpData()
1576 final CompressFormat fmt; in dumpAll()
1578 fmt = CompressFormat.JPEG; in dumpAll()
1580 fmt = CompressFormat.PNG; in dumpAll()
1582 fmt = CompressFormat.WEBP_LOSSLESS; in dumpAll()
1630 public boolean compress(@NonNull CompressFormat format, int quality, in compress()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DGetBitmapActivity.java59 b.compress(Bitmap.CompressFormat.PNG, 100, out); in onCreate()
DVideoViewCaptureActivity.java68 b.compress(Bitmap.CompressFormat.PNG, 100, out); in onCreate()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
DBitmapUtils.java20 import android.graphics.Bitmap.CompressFormat;
243 bitmap.compress(CompressFormat.JPEG, quality, baos); in compressToBytes()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/graphics/
DImageLoaderTest.kt53 bitmap.compress(Bitmap.CompressFormat.PNG, 100, FileOutputStream(imgFile)) in setUp()
230 bitmap.compress(Bitmap.CompressFormat.PNG, 100, bos) in validDataIcon_returnsBitmapDrawable()
249 bitmap.compress(Bitmap.CompressFormat.PNG, 100, bos) in validDataIcon_loadSize_returnsNull()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java27 import android.graphics.Bitmap.CompressFormat;
770 CompressFormat cf =
832 protected static CompressFormat convertExtensionToCompressFormat(String extension) {
833 return extension.equals("png") ? CompressFormat.PNG : CompressFormat.JPEG;
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiAutomatorBridge.java117 screenshot.compress(Bitmap.CompressFormat.PNG, quality, bos); in takeScreenshot()
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DSurfaceTracingTestBase.kt97 screenshot.compress(Bitmap.CompressFormat.PNG, 100, out) in <lambda>()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DGraphicsUtils.java67 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out); in flattenBitmap()

123