Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DImageExporter.java25 import android.graphics.Bitmap.CompressFormat;
84 private CompressFormat mCompressFormat = CompressFormat.PNG;
100 void setFormat(CompressFormat format) { in setFormat()
204 CompressFormat format;
228 private final CompressFormat mFormat;
234 CompressFormat format, int quality, boolean publish) {
299 private static Uri createEntry(ContentResolver resolver, CompressFormat format,
315 private static void writeImage(ContentResolver resolver, Bitmap bitmap, CompressFormat format,
380 static String createFilename(ZonedDateTime time, CompressFormat format) {
384 static ContentValues createMetadata(ZonedDateTime captureTime, CompressFormat format,
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java85 bm1.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
87 test1.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
94 bm2.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
96 test2.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
103 bm3.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
105 test3.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
150 bm1.compress(Bitmap.CompressFormat.PNG, 100, in testWithAdaptiveBitmap()
152 test1.compress(Bitmap.CompressFormat.PNG, 100, in testWithAdaptiveBitmap()
173 res1.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmapResource()
175 test1.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmapResource()
[all …]
DAdaptiveIconDrawableTest.java110 bm_org.compress(Bitmap.CompressFormat.PNG, 100, in testDraw_withBounds()
112 bm_test.compress(Bitmap.CompressFormat.PNG, 100, in testDraw_withBounds()
/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/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/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DImageExporterTest.java29 import android.graphics.Bitmap.CompressFormat;
73 ImageExporter.createFilename(CAPTURE_TIME, CompressFormat.PNG)); in testImageFilename()
109 assertEquals("The default CompressFormat should be PNG", CompressFormat.PNG, result.format); in testImageExport()
153 String name = ImageExporter.createFilename(CAPTURE_TIME, CompressFormat.PNG); in testMediaStoreMetadata()
154 ContentValues values = ImageExporter.createMetadata(CAPTURE_TIME, CompressFormat.PNG, name); in testMediaStoreMetadata()
/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/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/core/tests/coretests/src/android/graphics/
DBitmapFactoryTest.java36 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, out); in testBitmapParcelFileDescriptor()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DBitmapUtils.java46 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out); in saveBitmapIntoPNG()
/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/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/tests/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()
DGetBitmapSurfaceViewActivity.java66 b.compress(Bitmap.CompressFormat.PNG, 100, out); in onCreate()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DGraphicsUtils.java62 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out); in flattenBitmap()
DBitmapInfo.java79 icon.compress(Bitmap.CompressFormat.PNG, 100, out); in toByteArray()
/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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaMetadataRetrieverTest.java93 bitmap.compress(Bitmap.CompressFormat.JPEG, 75, stream); in testThumbnailCapture()
151 bitmap.compress(Bitmap.CompressFormat.JPEG, 75, stream); in testBasicNormalMethodCallSequence()
/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.kt103 screenshot.compress(Bitmap.CompressFormat.PNG, 100, out) in <lambda>()

123