/packages/apps/Camera/tests/src/com/android/camera/unittest/ |
H A D | CameraUnitTest.java | 30 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 D | CameraTest.java | 34 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 D | OrientationManager.java | 126 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 D | OrientationManagerImpl.java | 213 roundOrientation(mLastDeviceOrientation, orientation); 232 private static DeviceOrientation roundOrientation(DeviceOrientation oldDeviceOrientation, method in class:OrientationManagerImpl
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | Util.java | 359 public static int roundOrientation(int orientation, int orientationHistory) { method in class:Util
|
H A D | Camera.java | 1298 mOrientation = Util.roundOrientation(orientation, mOrientation);
|
H A D | VideoCamera.java | 552 mOrientation = Util.roundOrientation(orientation, mOrientation);
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | Util.java | 409 public static int roundOrientation(int orientation, int orientationHistory) { method in class:Util
|
H A D | PanoramaModule.java | 213 mDeviceOrientation = Util.roundOrientation(orientation, mDeviceOrientation);
|
H A D | PhotoModule.java | 1299 mOrientation = Util.roundOrientation(orientation, mOrientation);
|
H A D | VideoModule.java | 557 int newOrientation = Util.roundOrientation(orientation, mOrientation);
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
H A D | PanoramaActivity.java | 217 mDeviceOrientation = Util.roundOrientation(orientation, mDeviceOrientation);
|