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

Commit 842d44ec authored by Narayan Kamath's avatar Narayan Kamath
Browse files

Hide AssetInputStream.getAssetInt.

It returns a pointer to a private data structure, so there's
no sensible use for it. Also, the emergence of 64 bit processors
means that the return value isn't wide enough to represent
values in the native heap.

(cherry picked from commit f8f09a15)

Change-Id: I9c9b5bae6db8638e65dda60f924aa3dddd06813a
parent 868173a5
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -7543,7 +7543,6 @@ package android.content.res {
  public final class AssetManager.AssetInputStream extends java.io.InputStream {
    method public final int available() throws java.io.IOException;
    method public final void close() throws java.io.IOException;
    method public final int getAssetInt();
    method public final void mark(int);
    method public final boolean markSupported();
    method public final int read() throws java.io.IOException;
+3 −0
Original line number Diff line number Diff line
@@ -537,6 +537,9 @@ public final class AssetManager {
    }
    
    public final class AssetInputStream extends InputStream {
        /**
         * @hide
         */
        public final int getAssetInt() {
            return mAsset;
        }