Home
last modified time | relevance | path

Searched refs:orientationHistory (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/app/
DOrientationManager.java140 private static int roundOrientation(int orientation, int orientationHistory) {
142 if (orientationHistory == OrientationEventListener.ORIENTATION_UNKNOWN) {
145 int dist = Math.abs(orientation - orientationHistory);
152 return orientationHistory;
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java359 public static int roundOrientation(int orientation, int orientationHistory) { in roundOrientation() argument
361 if (orientationHistory == OrientationEventListener.ORIENTATION_UNKNOWN) { in roundOrientation()
364 int dist = Math.abs(orientation - orientationHistory); in roundOrientation()
371 return orientationHistory; in roundOrientation()