Home
last modified time | relevance | path

Searched refs:targetRotation (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DCodecUtils.java179 public static boolean VerifyFrameRotationFromBitmap(Bitmap bitmap, int targetRotation) { in VerifyFrameRotationFromBitmap() argument
180 if (targetRotation == 0 || targetRotation == 180) { in VerifyFrameRotationFromBitmap()
188 if (targetRotation == 0) { in VerifyFrameRotationFromBitmap()
199 } else if (targetRotation == 90 || targetRotation == 270) { in VerifyFrameRotationFromBitmap()
207 if (targetRotation == 90) { in VerifyFrameRotationFromBitmap()
DMediaMetadataRetrieverTest.java689 private void testThumbnailWithRotation(final String res, int targetRotation) { in testThumbnailWithRotation() argument
699 assertEquals("Video rotation was other than expected", Integer.toString(targetRotation), in testThumbnailWithRotation()
707 verifyVideoFrameRotation(thumbnail, targetRotation); in testThumbnailWithRotation()
949 private void verifyVideoFrameRotation(Bitmap bitmap, int targetRotation) { in verifyVideoFrameRotation() argument
951 assertTrue("Failed to get bitmap for " + targetRotation + " degrees", bitmap != null); in verifyVideoFrameRotation()
952 assertTrue("Frame incorrect for " + targetRotation + " degrees", in verifyVideoFrameRotation()
953 CodecUtils.VerifyFrameRotationFromBitmap(bitmap, targetRotation)); in verifyVideoFrameRotation()
956 CodecUtils.saveBitmapToFile(bitmap, "test_rotation_" + targetRotation + ".jpg"); in verifyVideoFrameRotation()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java1778 final int targetRotation = (origRotation + 2) % 4;
1779 session.set(targetRotation);
1780 final boolean result = (getDeviceRotation(displayId) == targetRotation);