/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | CustomizationRestrictionsTest.java | 29 import com.android.compatibility.common.util.BitmapUtils; 124 wallpaperManager.setBitmap(BitmapUtils.generateRandomBitmap(97, 73)); in testDisallowSetWallpaper_allowed() 127 assertFalse(BitmapUtils.compareBitmaps(newWallpaper, oldWallpaper)); in testDisallowSetWallpaper_allowed() 131 final Bitmap wallpaperForStream = BitmapUtils.generateRandomBitmap(83, 69); in testDisallowSetWallpaper_allowed() 132 wallpaperManager.setStream(BitmapUtils.bitmapToInputStream(wallpaperForStream)); in testDisallowSetWallpaper_allowed() 135 assertFalse(BitmapUtils.compareBitmaps(newWallpaper, oldWallpaper)); in testDisallowSetWallpaper_allowed() 142 assertFalse(BitmapUtils.compareBitmaps(newWallpaper, oldWallpaper)); in testDisallowSetWallpaper_allowed() 151 () -> BitmapUtils.getWallpaperBitmap(mContext), READ_WALLPAPER_INTERNAL); in getWallpaperBitmapWithPermission()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | WallpaperTest.java | 41 import com.android.compatibility.common.util.BitmapUtils; 65 private static final Bitmap sReferenceWallpaper = BitmapUtils.generateRandomBitmap(97, 73); 67 BitmapUtils.bitmapToInputStream(sReferenceWallpaper); 79 BitmapUtils.compareBitmaps(bitmap, sReferenceWallpaper)) in setBitmap_viaDpc_disallowed_canSet() 97 BitmapUtils.compareBitmaps(bitmap, sOriginalWallpaper)) in setBitmap_viaDpc_disallowed_cannotSet() 115 BitmapUtils.compareBitmaps(bitmap, sReferenceWallpaper)) in setBitmap_allowed_canSet() 133 BitmapUtils.compareBitmaps(bitmap, sOriginalWallpaper)) in setBitmap_disallowed_cannotSet() 148 BitmapUtils.compareBitmaps(bitmap, sReferenceWallpaper)) in setStream_allowed_canSet() 162 BitmapUtils.compareBitmaps(bitmap, sOriginalWallpaper)) in setStream_disallowed_cannotSet()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PreapprovalDetailsTest.java | 30 import com.android.compatibility.common.util.BitmapUtils; 56 assertThat(BitmapUtils.compareBitmaps(details.getIcon(), TEST_APP_ICON)).isTrue(); in testPreapprovalDetails() 92 assertThat(BitmapUtils.compareBitmaps(actual.getIcon(), expected.getIcon())).isTrue(); in checkTheSame()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/wallpaper/ |
D | Wallpaper.kt | 25 import com.android.bedstead.nene.utils.BitmapUtils 40 return BitmapUtils.getWallpaperBitmap(sContext) in getBitmap()
|
/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; 107 assertTrue("Screenshots do not match!", BitmapUtils.compareBitmaps(before, after, 0.99)); 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/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | Helper.java | 27 import com.android.compatibility.common.util.BitmapUtils; 83 BitmapUtils.saveBitmap(bitmap, file.getParent(), file.getName()); in saveBitmapToFile()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | DumpOnFailure.java | 25 import com.android.compatibility.common.util.BitmapUtils; 223 BitmapUtils.saveBitmap(mData, directoryName, fileName);
|
/cts/tests/translation/src/android/translation/cts/ |
D | Helper.java | 35 import com.android.compatibility.common.util.BitmapUtils; 206 BitmapUtils.saveBitmap(bitmap, file.getParent(), file.getName()); in saveBitmapToFile()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | BitmapUtils.java | 35 public class BitmapUtils { class 38 private BitmapUtils() {} in BitmapUtils() method in BitmapUtils
|
/cts/tests/accessibility/common/src/android/accessibility/cts/common/ |
D | AccessibilityDumper.java | 39 import com.android.compatibility.common.util.BitmapUtils; 158 BitmapUtils.saveBitmap(screenshot, mRoot.toString(), filename); in dumpScreen()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapFactoryTest.java | 54 import com.android.compatibility.common.util.BitmapUtils; 274 BitmapUtils.assertBitmapsMse(bPng, bWebp, tolerance, true, bPng.isPremultiplied()); in testWebpStreamDecode() 292 BitmapUtils.assertBitmapsMse(bPng, bWebp2, tolerance, true, bPng.isPremultiplied()); in testWebpStreamEncode() 317 BitmapUtils.assertBitmapsMse(bPng, bWebP1, tolerance, true, bPng.isPremultiplied()); in testDecodeStream5() 329 BitmapUtils.assertBitmapsMse(bPng, bWebP2, tolerance, true, bPng.isPremultiplied()); in testDecodeStream5() 719 assertTrue(BitmapUtils.compareBitmaps(b, b2)); in testParcel() 959 assertTrue(BitmapUtils.compareBitmaps(reference, argb4444)); in decodeConfigs() 972 BitmapUtils.assertBitmapsMse(reference, rgb565.copy(Config.ARGB_8888, false), 30, true, in decodeConfigs() 986 assertTrue(BitmapUtils.compareBitmaps(reference, grayToARGB(alpha8))); in decodeConfigs() 998 assertTrue(BitmapUtils.compareBitmaps(reference, defaultBitmap)); in decodeConfigs()
|
D | YuvImageTest.java | 41 import com.android.compatibility.common.util.BitmapUtils; 540 BitmapUtils.assertBitmapsMse(expected, actual, MSE_MARGIN, sameRect, false); in compressRects() 556 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() 830 BitmapUtils.assertBitmapsMse(expected, actual, mseMargin, true, false); in compareRegionByRegion()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityFocusAndInputFocusSyncTest.java | 55 import com.android.compatibility.common.util.BitmapUtils; 420 BitmapUtils.saveBitmap(bitmap1, directoryName, fileName1); in saveFailureScreenshot() 424 BitmapUtils.saveBitmap(bitmap2, directoryName, fileName2); in saveFailureScreenshot()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/ |
D | LocationOnScreenTests.java | 57 import com.android.compatibility.common.util.BitmapUtils; 180 BitmapUtils.saveBitmap(screenshot, path, file); in findTestColorsInScreenshot()
|
/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/camera/src/android/hardware/camera2/cts/rs/ |
D | BitmapUtils.java | 24 public class BitmapUtils { class
|
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/ |
D | Utils.java | 47 import com.android.compatibility.common.util.BitmapUtils; 584 if (!BitmapUtils.compareBitmaps(before, after)) { in assertScreenshotsAreEqual() 603 BitmapUtils.saveBitmap(bitmap, file.getParent(), file.getName()); in dumpBitmap()
|
/cts/tests/camera/ |
D | Android.bp | 108 "src/android/hardware/camera2/cts/rs/BitmapUtils.java",
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedImageDrawableTest.java | 52 import com.android.compatibility.common.util.BitmapUtils; 527 BitmapUtils.assertBitmapsMse(expected, actual, mseMargin, lessThanMargin, in testExif() 597 assertTrue(BitmapUtils.compareBitmaps(expected, actual)); in testPostProcess() 681 assertTrue(BitmapUtils.compareBitmaps(expected, test)); in drawAndCompare()
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/ |
D | VirtualCameraUtils.java | 64 import android.hardware.camera2.cts.rs.BitmapUtils; 267 double actual = BitmapUtils.calcDifferenceMetric(generated, golden); in assertImagesSimilar()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | MultiViewTest.java | 42 import android.hardware.camera2.cts.rs.BitmapUtils; 971 BitmapUtils.BitmapCompareResult result = in testTextureImageWriterReaderOperation() 972 BitmapUtils.compareBitmap(bitmap0, bitmap1); in testTextureImageWriterReaderOperation()
|