Home
last modified time | relevance | path

Searched refs:rotation (Results 1 – 13 of 13) sorted by relevance

/developers/samples/android/system/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/util/
DCameraExt.kt22 fun Camera.CameraInfo.calculatePreviewOrientation(rotation: Int): Int { in calculatePreviewOrientation()
23 val degrees = when (rotation) { in calculatePreviewOrientation()
/developers/samples/android/system/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/extensions/
DCameraExts.kt28 fun Camera.CameraInfo.calculatePreviewOrientation(rotation: Int): Int { in calculatePreviewOrientation()
30 val degrees = when (rotation) { in calculatePreviewOrientation()
/developers/samples/android/media/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/
DCamera2VideoFragment.kt450 val rotation = (activity as FragmentActivity).windowManager.defaultDisplay.rotation in configureTransform() constant
457 if (Surface.ROTATION_90 == rotation || Surface.ROTATION_270 == rotation) { in configureTransform()
465 postRotate((90 * (rotation - 2)).toFloat(), centerX, centerY) in configureTransform()
479 val rotation = cameraActivity.windowManager.defaultDisplay.rotation in setUpMediaRecorder() constant
482 mediaRecorder?.setOrientationHint(DEFAULT_ORIENTATIONS.get(rotation)) in setUpMediaRecorder()
484 mediaRecorder?.setOrientationHint(INVERSE_ORIENTATIONS.get(rotation)) in setUpMediaRecorder()
/developers/samples/android/media/Camera2Basic/kotlinApp/Application/src/main/java/com/example/android/camera2basic/
DCamera2BasicFragment.kt343 val displayRotation = activity.windowManager.defaultDisplay.rotation in setUpCameraOutputs()
555 val rotation = activity.windowManager.defaultDisplay.rotation in configureTransform() constant
562 if (Surface.ROTATION_90 == rotation || Surface.ROTATION_270 == rotation) { in configureTransform()
570 postRotate((90 * (rotation - 2)).toFloat(), centerX, centerY) in configureTransform()
572 } else if (Surface.ROTATION_180 == rotation) { in configureTransform()
622 val rotation = activity.windowManager.defaultDisplay.rotation in captureStillPicture() constant
634 (ORIENTATIONS.get(rotation) + sensorOrientation + 270) % 360) in captureStillPicture()
/developers/samples/android/system/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/camera/
DCameraPreview.java74 public static int calculatePreviewOrientation(Camera.CameraInfo info, int rotation) { in calculatePreviewOrientation() argument
77 switch (rotation) { in calculatePreviewOrientation()
/developers/samples/android/system/RuntimePermissionsBasic/Application/src/main/java/com/example/android/basicpermissions/camera/
DCameraPreview.java74 public static int calculatePreviewOrientation(Camera.CameraInfo info, int rotation) { in calculatePreviewOrientation() argument
77 switch (rotation) { in calculatePreviewOrientation()
/developers/build/templates/CardStream/_MODULE_/src/template/java/_PACKAGE_/cardstream/
DDefaultCardStreamAnimator.java.ftl40 PropertyValuesHolder.ofFloat("rotation", 0.f, 270.f));
57 PropertyValuesHolder.ofFloat("rotation", -45.f, 0.f));
69 PropertyValuesHolder.ofFloat("rotation", 60.f, 0.f));
DCard.java.ftl334 * rotation.
/developers/samples/android/media/Camera2Basic/Application/src/main/java/com/example/android/camera2basic/
DCamera2BasicFragment.java745 int rotation = activity.getWindowManager().getDefaultDisplay().getRotation(); in configureTransform() local
751 if (Surface.ROTATION_90 == rotation || Surface.ROTATION_270 == rotation) { in configureTransform()
758 matrix.postRotate(90 * (rotation - 2), centerX, centerY); in configureTransform()
759 } else if (Surface.ROTATION_180 == rotation) { in configureTransform()
828 int rotation = activity.getWindowManager().getDefaultDisplay().getRotation(); in captureStillPicture() local
829 captureBuilder.set(CaptureRequest.JPEG_ORIENTATION, getOrientation(rotation)); in captureStillPicture()
858 private int getOrientation(int rotation) { in getOrientation() argument
863 return (ORIENTATIONS.get(rotation) + mSensorOrientation + 270) % 360; in getOrientation()
/developers/samples/android/media/Camera2Video/Application/src/main/java/com/example/android/camera2video/
DCamera2VideoFragment.java559 int rotation = activity.getWindowManager().getDefaultDisplay().getRotation(); in configureTransform() local
565 if (Surface.ROTATION_90 == rotation || Surface.ROTATION_270 == rotation) { in configureTransform()
572 matrix.postRotate(90 * (rotation - 2), centerX, centerY); in configureTransform()
594 int rotation = activity.getWindowManager().getDefaultDisplay().getRotation(); in setUpMediaRecorder() local
597 mMediaRecorder.setOrientationHint(DEFAULT_ORIENTATIONS.get(rotation)); in setUpMediaRecorder()
600 mMediaRecorder.setOrientationHint(INVERSE_ORIENTATIONS.get(rotation)); in setUpMediaRecorder()
/developers/samples/android/system/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/camera/
DCameraPreviewActivity.kt61 val displayRotation = windowManager.defaultDisplay.rotation in onCreate()
/developers/samples/android/system/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/camera/
DCameraPreviewFragment.kt69 val displayRotation = activity.windowManager.defaultDisplay.rotation in onCreateView()
/developers/samples/android/media/Camera2Raw/Application/src/main/java/com/example/android/camera2raw/
DCamera2RawFragment.java1100 int rotation = (mCharacteristics.get(CameraCharacteristics.LENS_FACING) == in configureTransform() local
1136 matrix.postRotate(rotation, centerX, centerY); in configureTransform()
1224 int rotation = activity.getWindowManager().getDefaultDisplay().getRotation(); in captureStillPictureLocked() local
1226 sensorToDeviceRotation(mCharacteristics, rotation)); in captureStillPictureLocked()