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

Commit 394cdfbb authored by John Reck's avatar John Reck Committed by Automerger Merge Worker
Browse files

Merge "Clarify deprecation message" am: fb373b06

parents 034335e7 fb373b06
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@
package android.hardware.graphics.allocator;
@Backing(type="int") @VintfStability
enum AllocationError {
  BAD_DESCRIPTOR = 0,
  NO_RESOURCES = 1,
  UNSUPPORTED = 2,
  BAD_DESCRIPTOR,
  NO_RESOURCES,
  UNSUPPORTED,
}
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ package android.hardware.graphics.allocator;
@VintfStability
interface IAllocator {
  /**
   * @deprecated As of android.hardware.graphics.allocator-V2, this is deprecated & replaced with allocate2
   * @deprecated As of android.hardware.graphics.allocator-V2 in combination with AIMAPPER_VERSION_5 this is deprecated & replaced with allocate2. If android.hardware.graphics.mapper@4 is still in use, however, this is still required to be implemented.
   */
  android.hardware.graphics.allocator.AllocationResult allocate(in byte[] descriptor, in int count);
  android.hardware.graphics.allocator.AllocationResult allocate2(in android.hardware.graphics.allocator.BufferDescriptorInfo descriptor, in int count);
+4 −2
Original line number Diff line number Diff line
@@ -32,8 +32,10 @@ interface IAllocator {
     * @param count The number of buffers to allocate.
     * @return An AllocationResult containing the result of the allocation
     * @throws AllocationError on failure
     * @deprecated As of android.hardware.graphics.allocator-V2, this is deprecated & replaced with
     *         allocate2
     * @deprecated As of android.hardware.graphics.allocator-V2 in combination with
     *             AIMAPPER_VERSION_5 this is deprecated & replaced with allocate2.
     *             If android.hardware.graphics.mapper@4 is still in use, however, this is
     *             still required to be implemented.
     */
    AllocationResult allocate(in byte[] descriptor, in int count);