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

Commit 6235be04 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

MultiResolutionImageReader: Unhide constructor with usage

As with the regular ImageReader, allow selecting the consumer
usage flags for the Reader.

Test: New tests pass
Flag: com.android.internal.camera.flags.multiresolution_imagereader_usage_public
Bug: 338621560
Change-Id: Id4a6188f2ef7c684e6b4201d76b161f20226bc6e
parent 77842fdf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -20068,6 +20068,7 @@ package android.hardware.camera2 {
  public class MultiResolutionImageReader implements java.lang.AutoCloseable {
    ctor public MultiResolutionImageReader(@NonNull java.util.Collection<android.hardware.camera2.params.MultiResolutionStreamInfo>, int, @IntRange(from=1) int);
    ctor @FlaggedApi("com.android.internal.camera.flags.multiresolution_imagereader_usage_public") public MultiResolutionImageReader(@NonNull java.util.Collection<android.hardware.camera2.params.MultiResolutionStreamInfo>, int, @IntRange(from=1) int, long);
    method public void close();
    method protected void finalize();
    method public void flush();
+1 −2
Original line number Diff line number Diff line
@@ -224,9 +224,8 @@ public class MultiResolutionImageReader implements AutoCloseable {
     * @see
     * android.hardware.camera2.params.MultiResolutionStreamConfigurationMap
     *
     * @hide
     */
    @FlaggedApi(Flags.FLAG_MULTIRESOLUTION_IMAGEREADER_USAGE_CONFIG)
    @FlaggedApi(Flags.FLAG_MULTIRESOLUTION_IMAGEREADER_USAGE_PUBLIC)
    public MultiResolutionImageReader(
            @NonNull Collection<MultiResolutionStreamInfo> streams,
            @Format             int format,