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

Commit 4d1830d1 authored by Ytai Ben-tsvi's avatar Ytai Ben-tsvi Committed by Android (Google) Code Review
Browse files

Merge "Improve HidlMemory annotation"

parents f85d48c9 70ba0ac0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7591,7 +7591,7 @@ package android.os {
    method @Nullable public android.os.NativeHandle getHandle();
    method @NonNull public String getName();
    method public long getSize();
    method @NonNull public android.os.NativeHandle releaseHandle();
    method @Nullable public android.os.NativeHandle releaseHandle();
  }
  public class HidlSupport {
+1 −1
Original line number Diff line number Diff line
@@ -1893,7 +1893,7 @@ package android.os {
    method @Nullable public android.os.NativeHandle getHandle();
    method @NonNull public String getName();
    method public long getSize();
    method @NonNull public android.os.NativeHandle releaseHandle();
    method @Nullable public android.os.NativeHandle releaseHandle();
  }

  public abstract class HwBinder implements android.os.IHwBinder {
+2 −2
Original line number Diff line number Diff line
@@ -85,11 +85,11 @@ public class HidlMemory implements Closeable {
    }

    /**
     * Disowns the underlying handle and returns it. This object becomes invalid.
     * Disowns the underlying handle and returns it. The underlying handle becomes null.
     *
     * @return The underlying handle.
     */
    @NonNull
    @Nullable
    public NativeHandle releaseHandle() {
        NativeHandle handle = mHandle;
        mHandle = null;