/cts/hostsidetests/devicepolicy/app/CustomizationApp/src/com/android/cts/customizationapp/ |
D | CustomizationTest.java | 25 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/ |
D | CustomizationRestrictionsTest.java | 27 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/ |
D | TestUtils.java | 27 import com.android.compatibility.common.util.BitmapUtils; 43 assertThat(BitmapUtils.compareBitmaps(bitmap1, bitmap2)).isTrue(); in compareIcons()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceActivityLegacyFlowTest.java | 30 import com.android.compatibility.common.util.BitmapUtils; 106 assertTrue("Screenshots do not match!", BitmapUtils.compareBitmaps(before, after)); in assertScreenshotsAreEqual()
|
D | PreferenceActivityFlowTest.java | 38 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/ |
D | BitmapDumper.java | 23 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/ |
D | DumpOnFailure.java | 22 import com.android.compatibility.common.util.BitmapUtils; 98 BitmapUtils.saveBitmap(entry.getValue(), root.toString(), fileName);
|
D | LocationOnScreenTests.java | 55 import com.android.compatibility.common.util.BitmapUtils; 174 BitmapUtils.saveBitmap(screenshot, path, file); in findTestColorsInScreenshot()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapFactoryTest.java | 48 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()
|
D | YuvImageTest.java | 36 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()
|
D | BitmapRegionDecoderTest.java | 44 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()
|
D | ImageDecoderTest.java | 56 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()
|
D | BitmapTest.java | 53 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/ |
D | AccessibilityDumper.java | 39 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/ |
D | BitmapUtils.java | 35 public class BitmapUtils { class 38 private BitmapUtils() {} in BitmapUtils() method in BitmapUtils
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityFocusAndInputFocusSyncTest.java | 55 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/ |
D | BitmapUtils.java | 28 public class BitmapUtils { class
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedImageDrawableTest.java | 50 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/ |
D | MultiViewTest.java | 33 import android.hardware.camera2.cts.rs.BitmapUtils; 962 BitmapUtils.BitmapCompareResult result = in testTextureImageWriterReaderOperation() 963 BitmapUtils.compareBitmap(bitmap0, bitmap1); in testTextureImageWriterReaderOperation()
|
D | DngCreatorTest.java | 35 import android.hardware.camera2.cts.rs.BitmapUtils; 911 double difference = BitmapUtils.calcDifferenceMetric(jpegPatch, rawPatch); in validateRawJpegImagePair()
|
D | ImageReaderTest.java | 37 import android.hardware.camera2.cts.rs.BitmapUtils; 691 double difference = BitmapUtils.calcDifferenceMetric(yuvBmap, jpegBmap); in testAllOutputYUVResolutions()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | Helper.java | 79 import com.android.compatibility.common.util.BitmapUtils; 1444 BitmapUtils.saveBitmap(bitmap, file.getParent(), file.getName()); in dumpBitmap()
|