Home
last modified time | relevance | path

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

/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/
DCamera2BasicFragment.java80 private static final SparseIntArray ORIENTATIONS = new SparseIntArray(); field in Camera2BasicFragment
85 ORIENTATIONS.append(Surface.ROTATION_0, 90); in ORIENTATIONS.append()
86 ORIENTATIONS.append(Surface.ROTATION_90, 0); in ORIENTATIONS.append()
87 ORIENTATIONS.append(Surface.ROTATION_180, 270); in ORIENTATIONS.append()
88 ORIENTATIONS.append(Surface.ROTATION_270, 180); in ORIENTATIONS.append()
862 return (ORIENTATIONS.get(rotation) + mSensorOrientation + 270) % 360; in getOrientation()
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/
DCamera2RawFragment.java127 private static final SparseIntArray ORIENTATIONS = new SparseIntArray(); field in Camera2RawFragment
130 ORIENTATIONS.append(Surface.ROTATION_0, 0); in ORIENTATIONS.append()
131 ORIENTATIONS.append(Surface.ROTATION_90, 90); in ORIENTATIONS.append()
132 ORIENTATIONS.append(Surface.ROTATION_180, 180); in ORIENTATIONS.append()
133 ORIENTATIONS.append(Surface.ROTATION_270, 270); in ORIENTATIONS.append()
1100 (360 + ORIENTATIONS.get(deviceRotation)) % 360 : in configureTransform()
1101 (360 - ORIENTATIONS.get(deviceRotation)) % 360; in configureTransform()
1735 deviceOrientation = ORIENTATIONS.get(deviceOrientation);