Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79d4aac3 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera: Annotate the Key constructors with nullability.

Test: Builds
Bug: 126699273
Change-Id: Ifd14a79ff6ffbb19ef1a45ac0da45efa2be748b1
parent 6ce9003e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -16738,7 +16738,7 @@ package android.hardware.camera2 {
  }
  public static final class CameraCharacteristics.Key<T> {
    ctor public CameraCharacteristics.Key(String, Class<T>);
    ctor public CameraCharacteristics.Key(@NonNull String, @NonNull Class<T>);
    method @NonNull public String getName();
  }
@@ -17111,7 +17111,7 @@ package android.hardware.camera2 {
  }
  public static final class CaptureRequest.Key<T> {
    ctor public CaptureRequest.Key(String, Class<T>);
    ctor public CaptureRequest.Key(@NonNull String, @NonNull Class<T>);
    method @NonNull public String getName();
  }
@@ -17206,7 +17206,7 @@ package android.hardware.camera2 {
  }
  public static final class CaptureResult.Key<T> {
    ctor public CaptureResult.Key(String, Class<T>);
    ctor public CaptureResult.Key(@NonNull String, @NonNull Class<T>);
    method @NonNull public String getName();
  }
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ public final class CameraCharacteristics extends CameraMetadata<CameraCharacteri
         * they may be useful for testing purposes and for defining custom camera
         * characteristics.</p>
         */
        public Key(String name, Class<T> type) {
        public Key(@NonNull String name, @NonNull Class<T> type) {
            mKey = new CameraMetadataNative.Key<T>(name,  type);
        }

+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ public final class CaptureRequest extends CameraMetadata<CaptureRequest.Key<?>>
         * {@link CaptureRequest}, and not need to construct their own Key objects. However, they
         * may be useful for testing purposes and for defining custom capture request fields.</p>
         */
        public Key(String name, Class<T> type) {
        public Key(@NonNull String name, @NonNull Class<T> type) {
            mKey = new CameraMetadataNative.Key<T>(name, type);
        }

+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ public class CaptureResult extends CameraMetadata<CaptureResult.Key<?>> {
         * {@link CaptureResult}, and not need to construct their own Key objects. However, they may
         * be useful for testing purposes and for defining custom capture result fields.</p>
         */
        public Key(String name, Class<T> type) {
        public Key(@NonNull String name, @NonNull Class<T> type) {
            mKey = new CameraMetadataNative.Key<T>(name, type);
        }