/developers/samples/android/system/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/util/ |
D | CameraExt.kt | 22 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/ |
D | CameraExts.kt | 28 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/ |
D | Camera2VideoFragment.kt | 450 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/ |
D | Camera2BasicFragment.kt | 343 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/ |
D | CameraPreview.java | 74 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/ |
D | CameraPreview.java | 74 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/ |
D | DefaultCardStreamAnimator.java.ftl | 40 PropertyValuesHolder.ofFloat("rotation", 0.f, 270.f)); 57 PropertyValuesHolder.ofFloat("rotation", -45.f, 0.f)); 69 PropertyValuesHolder.ofFloat("rotation", 60.f, 0.f));
|
D | Card.java.ftl | 334 * rotation.
|
/developers/samples/android/media/Camera2Basic/Application/src/main/java/com/example/android/camera2basic/ |
D | Camera2BasicFragment.java | 745 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/ |
D | Camera2VideoFragment.java | 559 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/ |
D | CameraPreviewActivity.kt | 61 val displayRotation = windowManager.defaultDisplay.rotation in onCreate()
|
/developers/samples/android/system/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/camera/ |
D | CameraPreviewFragment.kt | 69 val displayRotation = activity.windowManager.defaultDisplay.rotation in onCreateView()
|
/developers/samples/android/media/Camera2Raw/Application/src/main/java/com/example/android/camera2raw/ |
D | Camera2RawFragment.java | 1100 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()
|