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

Commit b519cc52 authored by Igor Murashkin's avatar Igor Murashkin
Browse files

camera2 api: Add CameraMetadata get/set support

* Add a Rational class
* Can get/set Key<T> where T is a primitive (or Rational)
* Can get/set Key<T> where T is a primitive array
* Can get/set Key<T> where T is an enum (synthetic constructor only)

Not implemented yet:
* When T is anything else, i.e. Rect, Size, etc

Bug: 9529161
Change-Id: I64438024a1e8327a38dd2672652626f0ffbb70e3
parent 6b0693a3
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -10760,7 +10760,7 @@ package android.hardware.photography {
  }
  public static class CameraMetadata.Key {
    ctor public CameraMetadata.Key(java.lang.String);
    ctor public CameraMetadata.Key(java.lang.String, java.lang.Class<T>);
    method public final boolean equals(java.lang.Object);
    method public final java.lang.String getName();
    method public final int hashCode();
@@ -10812,6 +10812,12 @@ package android.hardware.photography {
    method public int getScore();
  }
  public final class Rational {
    ctor public Rational(int, int);
    method public int getDenominator();
    method public int getNumerator();
  }
  public final class Size {
    method public final int getHeight();
    method public final int getWidth();
Loading