diff --git a/core/java/android/hardware/camera2/CameraCaptureSession.java b/core/java/android/hardware/camera2/CameraCaptureSession.java index e9df5533a9076..1bc6099fd6513 100644 --- a/core/java/android/hardware/camera2/CameraCaptureSession.java +++ b/core/java/android/hardware/camera2/CameraCaptureSession.java @@ -661,7 +661,7 @@ public abstract class CameraCaptureSession implements AutoCloseable { * *
Repeating burst requests are a simple way for an application to * maintain a preview or other continuous stream of frames where each - * request is different in a predicatable way, without having to continually + * request is different in a predictable way, without having to continually * submit requests through {@link #captureBurst}.
* *To stop the repeating capture, call {@link #stopRepeating}. Any @@ -902,7 +902,7 @@ public abstract class CameraCaptureSession implements AutoCloseable { * {@link CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_OFFLINE_PROCESSING OFFLINE_PROCESSING} * capability in {@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES}. When this method * is supported, applications can use it to improve the latency of closing camera or recreating - * capture session without losing the in progresss capture request outputs.
+ * capture session without losing the in progress capture request outputs. * *Offline processing mode and the corresponding {@link CameraOfflineSession} differ from * a regular online camera capture session in several ways. Successful offline switches will @@ -1001,7 +1001,7 @@ public abstract class CameraCaptureSession implements AutoCloseable { * *
Note that for common usage scenarios like creating a new session or closing the camera * device, it is faster to call respective APIs directly (see below for more details) without - * calling into this method. This API is only useful when application wants to uncofigure the + * calling into this method. This API is only useful when application wants to unconfigure the * camera but keep the device open for later use.
* *Creating a new capture session with {@link CameraDevice#createCaptureSession}
diff --git a/core/java/android/hardware/camera2/CameraCharacteristics.java b/core/java/android/hardware/camera2/CameraCharacteristics.java
index b9b310fcc542a..ac0bafcee631e 100644
--- a/core/java/android/hardware/camera2/CameraCharacteristics.java
+++ b/core/java/android/hardware/camera2/CameraCharacteristics.java
@@ -651,7 +651,7 @@ public final class CameraCharacteristics extends CameraMetadataType Max size Type Max size Type Max size
*
* {@code PRIV} {@code PREVIEW} {@code PRIV} {@code MAXIMUM} Maximum-resolution GPU processing with preview.
- * {@code PRIV} {@code PREVIEW} {@code YUV } {@code MAXIMUM} Maximum-resolution in-app processing with preview.
+ * {@code YUV } {@code PREVIEW} {@code YUV } {@code MAXIMUM} Maximum-resolution two-input in-app processsing.
* {@code YUV } {@code PREVIEW} {@code YUV } {@code MAXIMUM} Maximum-resolution two-input in-app processing.
* {@code PRIV} {@code PREVIEW} {@code PRIV} {@code PREVIEW} {@code JPEG} {@code MAXIMUM} Video recording with maximum-size video snapshot
* {@code YUV } {@code 640x480} {@code PRIV} {@code PREVIEW} {@code YUV } {@code MAXIMUM} Standard video recording plus maximum-resolution in-app processing.
@@ -722,7 +722,7 @@ public abstract class CameraDevice implements AutoCloseable {
* {@code YUV } {@code 640x480} {@code YUV } {@code PREVIEW} {@code YUV } {@code MAXIMUM} Preview plus two-input maximum-resolution in-app processing.
* Type Max size Type Max size
* {@code PRIV} {@code PREVIEW} {@code PRIV} {@code MAXIMUM} Maximum-resolution GPU processing with preview.
- * {@code PRIV} {@code PREVIEW} {@code YUV } {@code MAXIMUM} Maximum-resolution in-app processing with preview.
+ * {@code YUV } {@code PREVIEW} {@code YUV } {@code MAXIMUM} Maximum-resolution two-input in-app processsing.
* {@code YUV } {@code PREVIEW} {@code YUV } {@code MAXIMUM} Maximum-resolution two-input in-app processing.
*
Individual physical camera settings will only be honored for camera session - * that was initialiazed with corresponding physical camera id output configuration + * that was initialized with corresponding physical camera id output configuration * {@link OutputConfiguration#setPhysicalCameraId} and the same output targets are * also attached in the request by {@link CaptureRequest.Builder#addTarget}.
* diff --git a/core/java/android/hardware/camera2/CameraManager.java b/core/java/android/hardware/camera2/CameraManager.java index 722dd08d1ee12..d02b94032f352 100644 --- a/core/java/android/hardware/camera2/CameraManager.java +++ b/core/java/android/hardware/camera2/CameraManager.java @@ -238,7 +238,7 @@ public final class CameraManager { /** * Similar to getCameraIdList(). However, getCamerIdListNoLazy() necessarily communicates with - * cameraserver in order to get the list of camera ids. This is to faciliate testing since some + * cameraserver in order to get the list of camera ids. This is to facilitate testing since some * camera ids may go 'offline' without callbacks from cameraserver because of changes in * SYSTEM_CAMERA permissions (though this is not a changeable permission, tests may call * adopt(drop)ShellPermissionIdentity() and effectively change their permissions). This call @@ -542,7 +542,7 @@ public final class CameraManager { } // Query the characteristics of all physical sub-cameras, and combine the multi-resolution - // stream configurations. Alternatively, for ultra-high resolution camera, direclty use + // stream configurations. Alternatively, for ultra-high resolution camera, directly use // its multi-resolution stream configurations. Note that framework derived formats such as // HEIC and DEPTH_JPEG aren't supported as multi-resolution input or output formats. SetOnce the camera is successfully opened, {@link CameraDevice.StateCallback#onOpened} will
* be invoked with the newly opened {@link CameraDevice}. The camera device can then be set up
@@ -1613,7 +1613,7 @@ public final class CameraManager {
private final Set
An external flash has been turned on.
*It informs the camera device that an external flash has been turned on, and that - * metering (and continuous focus if active) should be quickly recaculated to account + * metering (and continuous focus if active) should be quickly recalculated to account * for the external flash. Otherwise, this mode acts like ON.
*When the external flash is turned off, AE mode should be changed to one of the * other available AE modes.
diff --git a/core/java/android/hardware/camera2/CameraOfflineSession.java b/core/java/android/hardware/camera2/CameraOfflineSession.java index 312559c6c7df0..c2198867940f9 100644 --- a/core/java/android/hardware/camera2/CameraOfflineSession.java +++ b/core/java/android/hardware/camera2/CameraOfflineSession.java @@ -152,7 +152,7 @@ public abstract class CameraOfflineSession extends CameraCaptureSession { * *Closing a session is idempotent; closing more than once has no effect.
* - * @throws IllegalStateException if the offline sesion is not ready. + * @throws IllegalStateException if the offline session is not ready. */ @Override public abstract void close(); diff --git a/core/java/android/hardware/camera2/DngCreator.java b/core/java/android/hardware/camera2/DngCreator.java index cc484eaf265ca..1ae2fe1824272 100644 --- a/core/java/android/hardware/camera2/DngCreator.java +++ b/core/java/android/hardware/camera2/DngCreator.java @@ -482,7 +482,7 @@ public final class DngCreator implements AutoCloseable { } private static final int DEFAULT_PIXEL_STRIDE = 2; // bytes per sample - private static final int BYTES_PER_RGB_PIX = 3; // byts per pixel + private static final int BYTES_PER_RGB_PIX = 3; // bytes per pixel // TIFF tag values needed to map between public API and TIFF spec private static final int TAG_ORIENTATION_UNKNOWN = 9; diff --git a/core/java/android/hardware/camera2/params/MandatoryStreamCombination.java b/core/java/android/hardware/camera2/params/MandatoryStreamCombination.java index 86c453b56c5b6..0a4a1f0176c78 100644 --- a/core/java/android/hardware/camera2/params/MandatoryStreamCombination.java +++ b/core/java/android/hardware/camera2/params/MandatoryStreamCombination.java @@ -607,7 +607,7 @@ public final class MandatoryStreamCombination { new StreamCombinationTemplate(new StreamTemplate [] { new StreamTemplate(ImageFormat.YUV_420_888, SizeThreshold.MAXIMUM), new StreamTemplate(ImageFormat.YUV_420_888, SizeThreshold.MAXIMUM) }, - "Maximum-resolution two-input in-app processsing"), + "Maximum-resolution two-input in-app processing"), new StreamCombinationTemplate(new StreamTemplate [] { new StreamTemplate(ImageFormat.PRIVATE, SizeThreshold.PREVIEW), new StreamTemplate(ImageFormat.PRIVATE, SizeThreshold.PREVIEW), @@ -891,7 +891,7 @@ public final class MandatoryStreamCombination { new StreamCombinationTemplate(new StreamTemplate [] { new StreamTemplate(ImageFormat.PRIVATE, SizeThreshold.s720p), new StreamTemplate(ImageFormat.JPEG, SizeThreshold.s1440p)}, - "Standard stil image capture"), + "Standard still image capture"), new StreamCombinationTemplate(new StreamTemplate [] { new StreamTemplate(ImageFormat.YUV_420_888, SizeThreshold.s720p), new StreamTemplate(ImageFormat.JPEG, SizeThreshold.s1440p)}, diff --git a/core/java/android/hardware/camera2/params/OutputConfiguration.java b/core/java/android/hardware/camera2/params/OutputConfiguration.java index 857f62dfdd997..3f7a5ed38538f 100644 --- a/core/java/android/hardware/camera2/params/OutputConfiguration.java +++ b/core/java/android/hardware/camera2/params/OutputConfiguration.java @@ -165,7 +165,7 @@ public final class OutputConfiguration implements Parcelable { * device runs in fixed frame rate. The timestamp is roughly in the same time base as * {@link android.os.SystemClock#uptimeMillis}. *This function must not be called from OuptutConfigurations created by {@link + *
This function must not be called from OutputConfigurations created by {@link * #createInstancesForMultiResolutionOutput}.
* * @throws IllegalStateException If this OutputConfiguration is created via {@link @@ -934,7 +934,7 @@ public final class OutputConfiguration implements Parcelable { * *Surfaces added via calls to {@link #addSurface} can also be removed from the * OutputConfiguration. The only notable exception is the surface associated with - * the OutputConfigration see {@link #getSurface} which was passed as part of the constructor + * the OutputConfiguration see {@link #getSurface} which was passed as part of the constructor * or was added first in the deferred case * {@link OutputConfiguration#OutputConfiguration(Size, Class)}.
* @@ -962,7 +962,7 @@ public final class OutputConfiguration implements Parcelable { * for scenarios where the immediate consumer target isn't sufficient to indicate the stream's * usage. * - *The main difference beteween stream use case and capture intent is that the former + *
The main difference between stream use case and capture intent is that the former * enables the camera device to optimize camera hardware and software pipelines based on user * scenarios for each stream, whereas the latter is mainly a hint to camera to decide * optimal 3A strategy that's applicable to the whole session. The camera device carries out @@ -1123,7 +1123,7 @@ public final class OutputConfiguration implements Parcelable { * CameraCharacteristics#SENSOR_READOUT_TIMESTAMP} is * {@link CameraMetadata#SENSOR_READOUT_TIMESTAMP_HARDWARE}.
* - *As long as readout timestamp is supported, if the timestamp base isi + *
As long as readout timestamp is supported, if the timestamp base is * {@link #TIMESTAMP_BASE_CHOREOGRAPHER_SYNCED}, or if the timestamp base is DEFAULT for a * SurfaceView output, the image timestamps for the output are always readout time regardless * of whether this function is called.
@@ -1420,9 +1420,9 @@ public final class OutputConfiguration implements Parcelable { */ @Override public int hashCode() { - // Need ensure that the hashcode remains unchanged after adding a deferred surface. Otherwise - // the deferred output configuration will be lost in the camera streammap after the deferred - // surface is set. + // Need ensure that the hashcode remains unchanged after adding a deferred surface. + // Otherwise the deferred output configuration will be lost in the camera stream map + // after the deferred surface is set. if (mIsDeferredConfig) { return HashCodeHelpers.hashCode( mRotation, mConfiguredSize.hashCode(), mConfiguredFormat, mConfiguredDataspace, @@ -1446,7 +1446,7 @@ public final class OutputConfiguration implements Parcelable { private static final String TAG = "OutputConfiguration"; // A surfaceGroupId counter used for MultiResolutionImageReader. Its value is - // incremented everytime {@link createInstancesForMultiResolutionOutput} is called. + // incremented every time {@link createInstancesForMultiResolutionOutput} is called. private static int MULTI_RESOLUTION_GROUP_ID_COUNTER = 0; private ArrayList{@code ValidOutputFormatsForInput([in:%s(%d), out:%s(%d), ... %s(%d)], * ... [in:%s(%d), out:%s(%d), ... %s(%d)])}, where {@code [in:%s(%d), out:%s(%d), ... %s(%d)]} - * represents an input fomat and its valid output formats.
+ * represents an input format and its valid output formats. * *{@code HighSpeedVideoConfigurations([w:%d, h:%d, min_fps:%d, max_fps:%d], * ... [w:%d, h:%d, min_fps:%d, max_fps:%d])}, where