Searched refs:roundOrientation (Results 1 – 7 of 7) sorted by relevance
/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/ |
D | CameraTest.java | 34 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/ |
D | OrientationManager.java | 126 orientation = roundOrientation(orientation, 0); 140 private static int roundOrientation(int orientation, int orientationHistory) {
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | OrientationManagerImpl.java | 213 roundOrientation(mLastDeviceOrientation, orientation); 232 private static DeviceOrientation roundOrientation(DeviceOrientation oldDeviceOrientation,
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Util.java | 359 public static int roundOrientation(int orientation, int orientationHistory) { in roundOrientation() method in Util
|
D | Camera.java | 1311 mOrientation = Util.roundOrientation(orientation, mOrientation); in onOrientationChanged()
|
D | VideoCamera.java | 552 mOrientation = Util.roundOrientation(orientation, mOrientation); in onOrientationChanged()
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
D | PanoramaActivity.java | 217 mDeviceOrientation = Util.roundOrientation(orientation, mDeviceOrientation); in onOrientationChanged()
|