Home
last modified time | relevance | path

Searched refs:roundOrientation (Results 1 – 7 of 7) sorted by relevance

/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/
DCameraTest.java34 assertEquals(0, Util.roundOrientation(0, 0)); in testRoundOrientation()
35 assertEquals(0, Util.roundOrientation(359, 0)); in testRoundOrientation()
36 assertEquals(0, Util.roundOrientation(0 + 44 + h, 0)); in testRoundOrientation()
37 assertEquals(90, Util.roundOrientation(0 + 45 + h, 0)); in testRoundOrientation()
38 assertEquals(0, Util.roundOrientation(360 - 44 - h, 0)); in testRoundOrientation()
39 assertEquals(270, Util.roundOrientation(360 - 45 - h, 0)); in testRoundOrientation()
41 assertEquals(90, Util.roundOrientation(90, 90)); in testRoundOrientation()
42 assertEquals(90, Util.roundOrientation(90 + 44 + h, 90)); in testRoundOrientation()
43 assertEquals(180, Util.roundOrientation(90 + 45 + h, 90)); in testRoundOrientation()
44 assertEquals(90, Util.roundOrientation(90 - 44 - h, 90)); in testRoundOrientation()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DOrientationManager.java126 orientation = roundOrientation(orientation, 0);
140 private static int roundOrientation(int orientation, int orientationHistory) {
/packages/apps/Camera2/src/com/android/camera/app/
DOrientationManagerImpl.java213 roundOrientation(mLastDeviceOrientation, orientation);
232 private static DeviceOrientation roundOrientation(DeviceOrientation oldDeviceOrientation,
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java359 public static int roundOrientation(int orientation, int orientationHistory) { in roundOrientation() method in Util
DCamera.java1311 mOrientation = Util.roundOrientation(orientation, mOrientation); in onOrientationChanged()
DVideoCamera.java552 mOrientation = Util.roundOrientation(orientation, mOrientation); in onOrientationChanged()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoramaActivity.java217 mDeviceOrientation = Util.roundOrientation(orientation, mDeviceOrientation); in onOrientationChanged()