Searched refs:roundOrientation (Results 1 - 7 of 7) sorted by last modified time

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

Completed in 165 milliseconds