Lines Matching refs:orientation
381 * the sensor's orientation \in {0, 90, 180, 270}.
456 * Calculate the default orientation of the device based on the width and
460 * @return whether the default orientation of the device is portrait
467 int orientation = currentDisplay.getRotation();
469 if (orientation == Surface.ROTATION_0 || orientation == Surface.ROTATION_180) {
479 public static int roundOrientation(int orientation, int orientationHistory) {
484 int dist = Math.abs(orientation - orientationHistory);
489 return ((orientation + 45) / 90 * 90) % 360;
525 // layout the viewfinder in the portrait orientation and thus get the
1300 * Given the device orientation and Camera2 characteristics, this returns
1303 * @param deviceOrientationDegrees the device orientation in degrees.
1304 * @return The JPEG orientation in degrees.