Home
last modified time | relevance | path

Searched refs:BitmapUtils (Results 1 – 22 of 22) sorted by relevance

/cts/hostsidetests/devicepolicy/app/CustomizationApp/src/com/android/cts/customizationapp/
DCustomizationTest.java25 import com.android.compatibility.common.util.BitmapUtils;
39 final Bitmap originalWallpaper = BitmapUtils.getWallpaperBitmap(mContext); in testSetWallpaper_disallowed()
40 final Bitmap referenceWallpaper = BitmapUtils.generateRandomBitmap(97, 73); in testSetWallpaper_disallowed()
48 Bitmap newWallpaper = BitmapUtils.getWallpaperBitmap(mContext); in testSetWallpaper_disallowed()
49 assertTrue(BitmapUtils.compareBitmaps(newWallpaper, originalWallpaper)); in testSetWallpaper_disallowed()
52 wallpaperManager.setStream(BitmapUtils.bitmapToInputStream(referenceWallpaper)); in testSetWallpaper_disallowed()
54 newWallpaper = BitmapUtils.getWallpaperBitmap(mContext); in testSetWallpaper_disallowed()
55 assertTrue(BitmapUtils.compareBitmaps(newWallpaper, originalWallpaper)); in testSetWallpaper_disallowed()
60 newWallpaper = BitmapUtils.getWallpaperBitmap(mContext); in testSetWallpaper_disallowed()
61 assertTrue(BitmapUtils.compareBitmaps(newWallpaper, originalWallpaper)); in testSetWallpaper_disallowed()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DCustomizationRestrictionsTest.java27 import com.android.compatibility.common.util.BitmapUtils;
104 final Bitmap originalWallpaper = BitmapUtils.getWallpaperBitmap(mContext); in testDisallowSetWallpaper_allowed()
119 wallpaperManager.setBitmap(BitmapUtils.generateRandomBitmap(97, 73)); in testDisallowSetWallpaper_allowed()
121 Bitmap newWallpaper = BitmapUtils.getWallpaperBitmap(mContext); in testDisallowSetWallpaper_allowed()
122 assertFalse(BitmapUtils.compareBitmaps(newWallpaper, oldWallpaper)); in testDisallowSetWallpaper_allowed()
126 final Bitmap wallpaperForStream = BitmapUtils.generateRandomBitmap(83, 69); in testDisallowSetWallpaper_allowed()
127 wallpaperManager.setStream(BitmapUtils.bitmapToInputStream(wallpaperForStream)); in testDisallowSetWallpaper_allowed()
129 newWallpaper = BitmapUtils.getWallpaperBitmap(mContext); in testDisallowSetWallpaper_allowed()
130 assertFalse(BitmapUtils.compareBitmaps(newWallpaper, oldWallpaper)); in testDisallowSetWallpaper_allowed()
136 newWallpaper = BitmapUtils.getWallpaperBitmap(mContext); in testDisallowSetWallpaper_allowed()
[all …]
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/
DTestUtils.java27 import com.android.compatibility.common.util.BitmapUtils;
43 assertThat(BitmapUtils.compareBitmaps(bitmap1, bitmap2)).isTrue(); in compareIcons()
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceActivityLegacyFlowTest.java30 import com.android.compatibility.common.util.BitmapUtils;
106 assertTrue("Screenshots do not match!", BitmapUtils.compareBitmaps(before, after)); in assertScreenshotsAreEqual()
DPreferenceActivityFlowTest.java38 import com.android.compatibility.common.util.BitmapUtils;
485 if (!BitmapUtils.compareBitmaps(before, after, 0.99)) { in assertScreenshotsAreEqual()
504 BitmapUtils.saveBitmap(bitmap, file.getParent(), file.getName()); in dumpBitmap()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/util/
DBitmapDumper.java23 import com.android.compatibility.common.util.BitmapUtils;
102 BitmapUtils.saveBitmap(bitmap, CAPTURE_SUB_DIRECTORY + className, in saveFile()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDumpOnFailure.java22 import com.android.compatibility.common.util.BitmapUtils;
98 BitmapUtils.saveBitmap(entry.getValue(), root.toString(), fileName);
DLocationOnScreenTests.java55 import com.android.compatibility.common.util.BitmapUtils;
174 BitmapUtils.saveBitmap(screenshot, path, file); in findTestColorsInScreenshot()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java48 import com.android.compatibility.common.util.BitmapUtils;
257 BitmapUtils.assertBitmapsMse(bPng, bWebp, tolerance, true, bPng.isPremultiplied()); in testWebpStreamDecode()
275 BitmapUtils.assertBitmapsMse(bPng, bWebp2, tolerance, true, bPng.isPremultiplied()); in testWebpStreamEncode()
300 BitmapUtils.assertBitmapsMse(bPng, bWebP1, tolerance, true, bPng.isPremultiplied()); in testDecodeStream5()
312 BitmapUtils.assertBitmapsMse(bPng, bWebP2, tolerance, true, bPng.isPremultiplied()); in testDecodeStream5()
702 assertTrue(BitmapUtils.compareBitmaps(b, b2)); in testParcel()
942 assertTrue(BitmapUtils.compareBitmaps(reference, argb4444)); in decodeConfigs()
955 BitmapUtils.assertBitmapsMse(reference, rgb565.copy(Config.ARGB_8888, false), 30, true, in decodeConfigs()
969 assertTrue(BitmapUtils.compareBitmaps(reference, grayToARGB(alpha8))); in decodeConfigs()
981 assertTrue(BitmapUtils.compareBitmaps(reference, defaultBitmap)); in decodeConfigs()
DYuvImageTest.java36 import com.android.compatibility.common.util.BitmapUtils;
263 BitmapUtils.assertBitmapsMse(expected, actual, MSE_MARGIN, sameRect, false); in compressRects()
279 BitmapUtils.assertBitmapsMse(expected, actual, MSE_MARGIN, true, false); in compressOddRect()
DBitmapRegionDecoderTest.java44 import com.android.compatibility.common.util.BitmapUtils;
426 BitmapUtils.assertBitmapsMse(reuseCropped, defaultCropped, 0, true, in testInBitmapReuse()
803 BitmapUtils.assertBitmapsMse(expected, actual, mseMargin, true, false); in compareRegionByRegion()
DImageDecoderTest.java56 import com.android.compatibility.common.util.BitmapUtils;
445 assertTrue(BitmapUtils.compareBitmaps(bm, reference)); in testSetAllocatorDecodeBitmap()
1485 assertTrue(BitmapUtils.compareBitmaps(cropped, oneStepBm, .99)); in testScaleAndCrop()
2017 BitmapUtils.assertBitmapsMse(bm, reference, mse, true, false);
2575 assertTrue(BitmapUtils.compareBitmaps(bm1, bm2)); in testReuse()
DBitmapTest.java53 import com.android.compatibility.common.util.BitmapUtils;
191 if (!BitmapUtils.compareBitmapsMse(lastBitmap, result, MSE_MARGIN, true, false)) { in testCompressWebpLossy()
209 BitmapUtils.compareBitmaps(mBitmap, result)); in testCompressWebpLossless()
219 BitmapUtils.compareBitmaps(mBitmap, result)); in testCompressWebp100MeansLossless()
2826 boolean matched = BitmapUtils.compareBitmapsMse(expectedBitmap, actualBitmap, in testNdkCompress()
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DAccessibilityDumper.java39 import com.android.compatibility.common.util.BitmapUtils;
150 BitmapUtils.saveBitmap(screenshot, mRoot.toString(), filename); in dumpScreen()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBitmapUtils.java35 public class BitmapUtils { class
38 private BitmapUtils() {} in BitmapUtils() method in BitmapUtils
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityFocusAndInputFocusSyncTest.java55 import com.android.compatibility.common.util.BitmapUtils;
422 BitmapUtils.saveBitmap(bitmap1, directoryName, fileName1); in saveFailureScreenshot()
426 BitmapUtils.saveBitmap(bitmap2, directoryName, fileName2); in saveFailureScreenshot()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java28 public class BitmapUtils { class
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedImageDrawableTest.java50 import com.android.compatibility.common.util.BitmapUtils;
519 BitmapUtils.assertBitmapsMse(expected, actual, mseMargin, lessThanMargin, in testExif()
589 assertTrue(BitmapUtils.compareBitmaps(expected, actual)); in testPostProcess()
673 assertTrue(BitmapUtils.compareBitmaps(expected, test)); in drawAndCompare()
/cts/tests/camera/src/android/hardware/camera2/cts/
DMultiViewTest.java33 import android.hardware.camera2.cts.rs.BitmapUtils;
962 BitmapUtils.BitmapCompareResult result = in testTextureImageWriterReaderOperation()
963 BitmapUtils.compareBitmap(bitmap0, bitmap1); in testTextureImageWriterReaderOperation()
DDngCreatorTest.java35 import android.hardware.camera2.cts.rs.BitmapUtils;
911 double difference = BitmapUtils.calcDifferenceMetric(jpegPatch, rawPatch); in validateRawJpegImagePair()
DImageReaderTest.java37 import android.hardware.camera2.cts.rs.BitmapUtils;
691 double difference = BitmapUtils.calcDifferenceMetric(yuvBmap, jpegBmap); in testAllOutputYUVResolutions()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DHelper.java79 import com.android.compatibility.common.util.BitmapUtils;
1444 BitmapUtils.saveBitmap(bitmap, file.getParent(), file.getName()); in dumpBitmap()