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

Commit a190be3f authored by John Reck's avatar John Reck
Browse files

Clarify deprecation message

Note that it's still used if mapper@4 is still used

Test: n/a doc only change
Change-Id: I21d3070684592f2931842acb43466ae4236856e6
parent a7414723
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -34,7 +34,7 @@
package android.hardware.graphics.allocator;
package android.hardware.graphics.allocator;
@Backing(type="int") @VintfStability
@Backing(type="int") @VintfStability
enum AllocationError {
enum AllocationError {
  BAD_DESCRIPTOR = 0,
  BAD_DESCRIPTOR,
  NO_RESOURCES = 1,
  NO_RESOURCES,
  UNSUPPORTED = 2,
  UNSUPPORTED,
}
}
+1 −1
Original line number Original line Diff line number Diff line
@@ -35,7 +35,7 @@ package android.hardware.graphics.allocator;
@VintfStability
@VintfStability
interface IAllocator {
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 allocate(in byte[] descriptor, in int count);
  android.hardware.graphics.allocator.AllocationResult allocate2(in android.hardware.graphics.allocator.BufferDescriptorInfo 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 Original line Diff line number Diff line
@@ -32,8 +32,10 @@ interface IAllocator {
     * @param count The number of buffers to allocate.
     * @param count The number of buffers to allocate.
     * @return An AllocationResult containing the result of the allocation
     * @return An AllocationResult containing the result of the allocation
     * @throws AllocationError on failure
     * @throws AllocationError on failure
     * @deprecated As of android.hardware.graphics.allocator-V2, this is deprecated & replaced with
     * @deprecated As of android.hardware.graphics.allocator-V2 in combination with
     *         allocate2
     *             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);
    AllocationResult allocate(in byte[] descriptor, in int count);