Searched refs:roundOrientation (Results 1 - 12 of 12) sorted by relevance

/packages/apps/Camera/tests/src/com/android/camera/unittest/
H A DCameraUnitTest.java30 assertEquals(0, Util.roundOrientation(0, 0));
31 assertEquals(0, Util.roundOrientation(359, 0));
32 assertEquals(0, Util.roundOrientation(0 + 44 + h, 0));
33 assertEquals(90, Util.roundOrientation(0 + 45 + h, 0));
34 assertEquals(0, Util.roundOrientation(360 - 44 - h, 0));
35 assertEquals(270, Util.roundOrientation(360 - 45 - h, 0));
37 assertEquals(90, Util.roundOrientation(90, 90));
38 assertEquals(90, Util.roundOrientation(90 + 44 + h, 90));
39 assertEquals(180, Util.roundOrientation(90 + 45 + h, 90));
40 assertEquals(90, Util.roundOrientation(9
[all...]
/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
/packages/apps/LegacyCamera/src/com/android/camera/
H A DUtil.java359 public static int roundOrientation(int orientation, int orientationHistory) { method in class:Util
H A DCamera.java1298 mOrientation = Util.roundOrientation(orientation, mOrientation);
H A DVideoCamera.java552 mOrientation = Util.roundOrientation(orientation, mOrientation);
/packages/apps/Camera/src/com/android/camera/
H A DUtil.java409 public static int roundOrientation(int orientation, int orientationHistory) { method in class:Util
H A DPanoramaModule.java213 mDeviceOrientation = Util.roundOrientation(orientation, mDeviceOrientation);
H A DPhotoModule.java1299 mOrientation = Util.roundOrientation(orientation, mOrientation);
H A DVideoModule.java557 int newOrientation = Util.roundOrientation(orientation, mOrientation);
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DPanoramaActivity.java217 mDeviceOrientation = Util.roundOrientation(orientation, mDeviceOrientation);

Completed in 370 milliseconds