Home
last modified time | relevance | path

Searched refs:BitmapUtils (Results 1 – 17 of 17) 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/tests/preference/src/android/preference/cts/
DPreferenceActivityLegacyFlowTest.java27 import com.android.compatibility.common.util.BitmapUtils;
97 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/framework/base/windowmanager/src/android/server/wm/
DDumpOnFailure.java22 import com.android.compatibility.common.util.BitmapUtils;
97 BitmapUtils.saveBitmap(entry.getValue(), root.toString(), fileName);
DLocationOnScreenTests.java55 import com.android.compatibility.common.util.BitmapUtils;
175 BitmapUtils.saveBitmap(screenshot, path, file); in findTestColorsInScreenshot()
/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/uirendering/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/common/device-side/util/src/com/android/compatibility/common/util/
DBitmapUtils.java33 public class BitmapUtils { class
36 private BitmapUtils() {} in BitmapUtils() method in BitmapUtils
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBitmapUtils.java33 public class BitmapUtils { class
36 private BitmapUtils() {} in BitmapUtils() method in BitmapUtils
/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;
525 BitmapUtils.compareBitmaps(expected, actual); in testPostProcess()
604 BitmapUtils.compareBitmaps(expected, test); in drawAndCompare()
/cts/tests/camera/src/android/hardware/camera2/cts/
DDngCreatorTest.java34 import android.hardware.camera2.cts.rs.BitmapUtils;
604 double difference = BitmapUtils.calcDifferenceMetric(jpegPatch, rawPatch); in validateRawJpegImagePair()
DMultiViewTest.java32 import android.hardware.camera2.cts.rs.BitmapUtils;
954 BitmapUtils.BitmapCompareResult result = in testTextureImageWriterReaderOperation()
955 BitmapUtils.compareBitmap(bitmap0, bitmap1); in testTextureImageWriterReaderOperation()
DImageReaderTest.java37 import android.hardware.camera2.cts.rs.BitmapUtils;
630 double difference = BitmapUtils.calcDifferenceMetric(yuvBmap, jpegBmap); in testAllOutputYUVResolutions()
/cts/tests/tests/graphics/src/android/graphics/cts/
DImageDecoderTest.java56 import com.android.compatibility.common.util.BitmapUtils;
413 BitmapUtils.compareBitmaps(bm, reference); in testSetAllocatorDecodeBitmap()
1931 BitmapUtils.compareBitmaps(bm, reference);
2370 BitmapUtils.compareBitmaps(bm1, bm2); in testReuse()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DHelper.java65 import com.android.compatibility.common.util.BitmapUtils;
1348 BitmapUtils.saveBitmap(bitmap, file.getParent(), file.getName()); in dumpBitmap()