Home
last modified time | relevance | path

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

12

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DCustomizationRestrictionsTest.java29 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/
DWallpaperTest.java41 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/
DPreapprovalDetailsTest.java30 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/
DWallpaper.kt25 import com.android.bedstead.nene.utils.BitmapUtils
40 return BitmapUtils.getWallpaperBitmap(sContext) in getBitmap()
/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;
107 assertTrue("Screenshots do not match!", BitmapUtils.compareBitmaps(before, after, 0.99)); 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/tests/textclassifier/src/android/view/textclassifier/cts/
DHelper.java27 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/
DDumpOnFailure.java25 import com.android.compatibility.common.util.BitmapUtils;
223 BitmapUtils.saveBitmap(mData, directoryName, fileName);
/cts/tests/translation/src/android/translation/cts/
DHelper.java35 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/
DBitmapUtils.java35 public class BitmapUtils { class
38 private BitmapUtils() {} in BitmapUtils() method in BitmapUtils
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DAccessibilityDumper.java39 import com.android.compatibility.common.util.BitmapUtils;
158 BitmapUtils.saveBitmap(screenshot, mRoot.toString(), filename); in dumpScreen()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java54 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()
DYuvImageTest.java41 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()
DBitmapRegionDecoderTest.java44 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/
DAccessibilityFocusAndInputFocusSyncTest.java55 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/
DLocationOnScreenTests.java57 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/
DBitmapUtils.java35 public class BitmapUtils { class
38 private BitmapUtils() {} in BitmapUtils() method in BitmapUtils
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java24 public class BitmapUtils { class
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DUtils.java47 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/
DAndroid.bp108 "src/android/hardware/camera2/cts/rs/BitmapUtils.java",
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedImageDrawableTest.java52 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/
DVirtualCameraUtils.java64 import android.hardware.camera2.cts.rs.BitmapUtils;
267 double actual = BitmapUtils.calcDifferenceMetric(generated, golden); in assertImagesSimilar()
/cts/tests/camera/src/android/hardware/camera2/cts/
DMultiViewTest.java42 import android.hardware.camera2.cts.rs.BitmapUtils;
971 BitmapUtils.BitmapCompareResult result = in testTextureImageWriterReaderOperation()
972 BitmapUtils.compareBitmap(bitmap0, bitmap1); in testTextureImageWriterReaderOperation()

12