Loading core/java/android/os/MemoryFile.java +4 −0 Original line number Original line Diff line number Diff line Loading @@ -19,6 +19,8 @@ package android.os; import android.compat.annotation.UnsupportedAppUsage; import android.compat.annotation.UnsupportedAppUsage; import android.system.ErrnoException; import android.system.ErrnoException; import dalvik.annotation.optimization.FastNative; import java.io.FileDescriptor; import java.io.FileDescriptor; import java.io.IOException; import java.io.IOException; import java.io.InputStream; import java.io.InputStream; Loading @@ -41,8 +43,10 @@ public class MemoryFile { private static String TAG = "MemoryFile"; private static String TAG = "MemoryFile"; // Returns 'true' if purged, 'false' otherwise // Returns 'true' if purged, 'false' otherwise @FastNative @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) private static native boolean native_pin(FileDescriptor fd, boolean pin) throws IOException; private static native boolean native_pin(FileDescriptor fd, boolean pin) throws IOException; @FastNative @UnsupportedAppUsage @UnsupportedAppUsage private static native int native_get_size(FileDescriptor fd) throws IOException; private static native int native_get_size(FileDescriptor fd) throws IOException; Loading Loading
core/java/android/os/MemoryFile.java +4 −0 Original line number Original line Diff line number Diff line Loading @@ -19,6 +19,8 @@ package android.os; import android.compat.annotation.UnsupportedAppUsage; import android.compat.annotation.UnsupportedAppUsage; import android.system.ErrnoException; import android.system.ErrnoException; import dalvik.annotation.optimization.FastNative; import java.io.FileDescriptor; import java.io.FileDescriptor; import java.io.IOException; import java.io.IOException; import java.io.InputStream; import java.io.InputStream; Loading @@ -41,8 +43,10 @@ public class MemoryFile { private static String TAG = "MemoryFile"; private static String TAG = "MemoryFile"; // Returns 'true' if purged, 'false' otherwise // Returns 'true' if purged, 'false' otherwise @FastNative @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) private static native boolean native_pin(FileDescriptor fd, boolean pin) throws IOException; private static native boolean native_pin(FileDescriptor fd, boolean pin) throws IOException; @FastNative @UnsupportedAppUsage @UnsupportedAppUsage private static native int native_get_size(FileDescriptor fd) throws IOException; private static native int native_get_size(FileDescriptor fd) throws IOException; Loading