| // Signature format: 2.0 |
| package android.compat { |
| |
| public final class Compatibility { |
| method public static void clearOverrides(); |
| method public static boolean isChangeEnabled(long); |
| method public static void reportChange(long); |
| method public static void setCallbacks(android.compat.Compatibility.Callbacks); |
| method public static void setOverrides(android.compat.Compatibility.ChangeConfig); |
| } |
| |
| public static class Compatibility.Callbacks { |
| ctor protected Compatibility.Callbacks(); |
| method protected boolean isChangeEnabled(long); |
| method protected void reportChange(long); |
| } |
| |
| public static final class Compatibility.ChangeConfig { |
| ctor public Compatibility.ChangeConfig(java.util.Set<java.lang.Long>, java.util.Set<java.lang.Long>); |
| method public long[] forceDisabledChangesArray(); |
| method public java.util.Set<java.lang.Long> forceDisabledSet(); |
| method public long[] forceEnabledChangesArray(); |
| method public java.util.Set<java.lang.Long> forceEnabledSet(); |
| method public boolean isEmpty(); |
| method public boolean isForceDisabled(long); |
| method public boolean isForceEnabled(long); |
| } |
| |
| } |
| |
| package android.system { |
| |
| public final class Os { |
| method public static int ioctlInt(java.io.FileDescriptor, int) throws android.system.ErrnoException; |
| } |
| |
| public final class OsConstants { |
| field public static final int TIOCOUTQ; |
| } |
| |
| } |
| |
| package dalvik.system { |
| |
| public final class VMDebug { |
| method public static void attachAgent(String, ClassLoader) throws java.io.IOException; |
| method public static long countInstancesOfClass(Class, boolean); |
| method public static long[] countInstancesOfClasses(Class[], boolean); |
| method public static void dumpHprofData(String) throws java.io.IOException; |
| method public static void dumpHprofData(String, java.io.FileDescriptor) throws java.io.IOException; |
| method public static void dumpHprofDataDdms(); |
| method public static void dumpReferenceTables(); |
| method public static int getAllocCount(int); |
| method public static int getLoadedClassCount(); |
| method public static int getMethodTracingMode(); |
| method public static String getRuntimeStat(String); |
| method public static java.util.Map<java.lang.String,java.lang.String> getRuntimeStats(); |
| method public static String[] getVmFeatureList(); |
| method public static boolean isDebuggerConnected(); |
| method public static boolean isDebuggingEnabled(); |
| method public static long lastDebuggerActivity(); |
| method public static void printLoadedClasses(int); |
| method public static void resetAllocCount(int); |
| method public static void setAllocTrackerStackDepth(int); |
| method public static void startAllocCounting(); |
| method public static void startMethodTracing(String, int, int, boolean, int); |
| method public static void startMethodTracing(String, java.io.FileDescriptor, int, int, boolean, int, boolean); |
| method public static void startMethodTracingDdms(int, int, boolean, int); |
| method public static void stopAllocCounting(); |
| method public static void stopMethodTracing(); |
| method public static long threadCpuTimeNanos(); |
| field public static final int KIND_ALL_COUNTS = -1; // 0xffffffff |
| field public static final int KIND_GLOBAL_ALLOCATED_BYTES = 2; // 0x2 |
| field public static final int KIND_GLOBAL_ALLOCATED_OBJECTS = 1; // 0x1 |
| field public static final int KIND_GLOBAL_CLASS_INIT_COUNT = 32; // 0x20 |
| field public static final int KIND_GLOBAL_CLASS_INIT_TIME = 64; // 0x40 |
| field public static final int KIND_GLOBAL_FREED_BYTES = 8; // 0x8 |
| field public static final int KIND_GLOBAL_FREED_OBJECTS = 4; // 0x4 |
| field public static final int KIND_GLOBAL_GC_INVOCATIONS = 16; // 0x10 |
| field public static final int KIND_THREAD_ALLOCATED_BYTES = 131072; // 0x20000 |
| field public static final int KIND_THREAD_ALLOCATED_OBJECTS = 65536; // 0x10000 |
| field public static final int KIND_THREAD_GC_INVOCATIONS = 1048576; // 0x100000 |
| field public static final int TRACE_COUNT_ALLOCS = 1; // 0x1 |
| } |
| |
| public final class VMRuntime { |
| method public long addressOf(Object); |
| method public static void bootCompleted(); |
| method public void clampGrowthLimit(); |
| method public void clearGrowthLimit(); |
| method public static String getCurrentInstructionSet(); |
| method public static String getInstructionSet(String); |
| method public static dalvik.system.VMRuntime getRuntime(); |
| method public int getTargetSdkVersion(); |
| method public boolean is64Bit(); |
| method public static boolean is64BitAbi(String); |
| method public static boolean is64BitInstructionSet(String); |
| method public boolean isCheckJniEnabled(); |
| method public boolean isNativeDebuggable(); |
| method public static boolean isValidClassLoaderContext(String); |
| method public Object newNonMovableArray(Class<?>, int); |
| method public Object newUnpaddedArray(Class<?>, int); |
| method public void notifyStartupCompleted(); |
| method public void preloadDexCaches(); |
| method public static void registerAppInfo(String, String[]); |
| method public void registerNativeAllocation(long); |
| method @Deprecated public void registerNativeAllocation(int); |
| method public void registerNativeFree(long); |
| method @Deprecated public void registerNativeFree(int); |
| method public static void registerSensitiveThread(); |
| method public void requestConcurrentGC(); |
| method public static void resetJitCounters(); |
| method public static void setDedupeHiddenApiWarnings(boolean); |
| method public void setDisabledCompatChanges(long[]); |
| method public void setHiddenApiAccessLogSamplingRate(int); |
| method public void setHiddenApiExemptions(String[]); |
| method public static void setHiddenApiUsageLogger(dalvik.system.VMRuntime.HiddenApiUsageLogger); |
| method public static void setNonSdkApiUsageConsumer(java.util.function.Consumer<java.lang.String>); |
| method public static void setProcessDataDirectory(String); |
| method public static void setProcessPackageName(String); |
| method public void setTargetSdkVersion(int); |
| method public void updateProcessState(int); |
| method public String vmInstructionSet(); |
| method public String vmLibrary(); |
| field public static final int SDK_VERSION_CUR_DEVELOPMENT = 10000; // 0x2710 |
| } |
| |
| public static interface VMRuntime.HiddenApiUsageLogger { |
| method public void hiddenApiUsed(int, String, String, int, boolean); |
| field public static final int ACCESS_METHOD_JNI = 2; // 0x2 |
| field public static final int ACCESS_METHOD_LINKING = 3; // 0x3 |
| field public static final int ACCESS_METHOD_NONE = 0; // 0x0 |
| field public static final int ACCESS_METHOD_REFLECTION = 1; // 0x1 |
| } |
| |
| } |
| |
| package libcore.content.type { |
| |
| public final class MimeMap { |
| method public libcore.content.type.MimeMap.Builder buildUpon(); |
| method public static libcore.content.type.MimeMap.Builder builder(); |
| method @NonNull public java.util.Set<java.lang.String> extensions(); |
| method @NonNull public static libcore.content.type.MimeMap getDefault(); |
| method @Nullable public String guessExtensionFromMimeType(@Nullable String); |
| method @Nullable public String guessMimeTypeFromExtension(@Nullable String); |
| method public boolean hasExtension(@Nullable String); |
| method public boolean hasMimeType(@Nullable String); |
| method @NonNull public java.util.Set<java.lang.String> mimeTypes(); |
| method public static void setDefaultSupplier(@NonNull java.util.function.Supplier<libcore.content.type.MimeMap>); |
| } |
| |
| public static final class MimeMap.Builder { |
| method public libcore.content.type.MimeMap build(); |
| method public libcore.content.type.MimeMap.Builder put(@NonNull String, @NonNull java.util.List<java.lang.String>); |
| } |
| |
| } |
| |
| package libcore.io { |
| |
| public final class IoUtils { |
| method public static void close(java.io.FileDescriptor) throws java.io.IOException; |
| method public static void closeQuietly(AutoCloseable); |
| method public static void closeQuietly(java.io.FileDescriptor); |
| method public static void closeQuietly(java.net.Socket); |
| method public static void setBlocking(java.io.FileDescriptor, boolean) throws java.io.IOException; |
| } |
| |
| public final class Streams { |
| method public static int copy(java.io.InputStream, java.io.OutputStream) throws java.io.IOException; |
| method public static byte[] readFully(java.io.InputStream) throws java.io.IOException; |
| method public static String readFully(java.io.Reader) throws java.io.IOException; |
| method public static byte[] readFullyNoClose(java.io.InputStream) throws java.io.IOException; |
| } |
| |
| } |
| |
| package libcore.net { |
| |
| public class InetAddressUtils { |
| method public static boolean isNumericAddress(String); |
| method public static java.net.InetAddress parseNumericAddress(String); |
| } |
| |
| public abstract class NetworkSecurityPolicy { |
| ctor public NetworkSecurityPolicy(); |
| method public static libcore.net.NetworkSecurityPolicy getInstance(); |
| method public abstract boolean isCertificateTransparencyVerificationRequired(String); |
| method public abstract boolean isCleartextTrafficPermitted(); |
| method public abstract boolean isCleartextTrafficPermitted(String); |
| method public static void setInstance(libcore.net.NetworkSecurityPolicy); |
| } |
| |
| } |
| |
| package libcore.net.event { |
| |
| public class NetworkEventDispatcher { |
| method public static libcore.net.event.NetworkEventDispatcher getInstance(); |
| method public void onNetworkConfigurationChanged(); |
| } |
| |
| } |
| |
| package libcore.util { |
| |
| public class FP16 { |
| method public static short ceil(short); |
| method public static int compare(short, short); |
| method public static boolean equals(short, short); |
| method public static short floor(short); |
| method public static boolean greater(short, short); |
| method public static boolean greaterEquals(short, short); |
| method public static boolean isInfinite(short); |
| method public static boolean isNaN(short); |
| method public static boolean isNormalized(short); |
| method public static boolean less(short, short); |
| method public static boolean lessEquals(short, short); |
| method public static short max(short, short); |
| method public static short min(short, short); |
| method public static short rint(short); |
| method public static float toFloat(short); |
| method public static short toHalf(float); |
| method public static String toHexString(short); |
| method public static short trunc(short); |
| field public static final short EPSILON = 5120; // 0x1400 |
| field public static final int EXPONENT_BIAS = 15; // 0xf |
| field public static final int EXPONENT_SHIFT = 10; // 0xa |
| field public static final int EXPONENT_SIGNIFICAND_MASK = 32767; // 0x7fff |
| field public static final short LOWEST_VALUE = -1025; // 0xfffffbff |
| field public static final int MAX_EXPONENT = 15; // 0xf |
| field public static final short MAX_VALUE = 31743; // 0x7bff |
| field public static final int MIN_EXPONENT = -14; // 0xfffffff2 |
| field public static final short MIN_NORMAL = 1024; // 0x400 |
| field public static final short MIN_VALUE = 1; // 0x1 |
| field public static final short NEGATIVE_INFINITY = -1024; // 0xfffffc00 |
| field public static final short NEGATIVE_ZERO = -32768; // 0xffff8000 |
| field public static final short NaN = 32256; // 0x7e00 |
| field public static final short POSITIVE_INFINITY = 31744; // 0x7c00 |
| field public static final short POSITIVE_ZERO = 0; // 0x0 |
| field public static final int SHIFTED_EXPONENT_MASK = 31; // 0x1f |
| field public static final int SIGNIFICAND_MASK = 1023; // 0x3ff |
| field public static final int SIGN_MASK = 32768; // 0x8000 |
| field public static final int SIGN_SHIFT = 15; // 0xf |
| field public static final int SIZE = 16; // 0x10 |
| } |
| |
| public class HexEncoding { |
| method public static byte[] decode(String) throws java.lang.IllegalArgumentException; |
| method public static byte[] decode(String, boolean) throws java.lang.IllegalArgumentException; |
| method public static byte[] decode(char[]) throws java.lang.IllegalArgumentException; |
| method public static byte[] decode(char[], boolean) throws java.lang.IllegalArgumentException; |
| method public static char[] encode(byte[]); |
| method public static char[] encode(byte[], boolean); |
| method public static char[] encode(byte[], int, int); |
| method public static String encodeToString(byte, boolean); |
| method public static String encodeToString(byte[]); |
| method public static String encodeToString(byte[], boolean); |
| } |
| |
| } |
| |
| package sun.misc { |
| |
| public final class Unsafe { |
| method public int arrayBaseOffset(Class); |
| method public int arrayIndexScale(Class); |
| method public void copyMemory(long, long, long); |
| method public boolean getBoolean(Object, long); |
| method public byte getByte(Object, long); |
| method public byte getByte(long); |
| method public double getDouble(long); |
| method public float getFloat(long); |
| method public int getInt(Object, long); |
| method public int getInt(long); |
| method public long getLong(Object, long); |
| method public long getLong(long); |
| method public Object getObject(Object, long); |
| method public static sun.misc.Unsafe getUnsafe(); |
| method public long objectFieldOffset(java.lang.reflect.Field); |
| method public void putBoolean(Object, long, boolean); |
| method public void putByte(Object, long, byte); |
| method public void putByte(long, byte); |
| method public void putDouble(long, double); |
| method public void putFloat(long, float); |
| method public void putInt(Object, long, int); |
| method public void putInt(long, int); |
| method public void putLong(Object, long, long); |
| method public void putLong(long, long); |
| method public void putObject(Object, long, Object); |
| } |
| |
| } |
| |
| package sun.security.pkcs { |
| |
| public class PKCS7 { |
| ctor public PKCS7(java.io.InputStream) throws java.io.IOException, sun.security.pkcs.ParsingException; |
| ctor public PKCS7(byte[]) throws sun.security.pkcs.ParsingException; |
| method public java.security.cert.X509Certificate[] getCertificates(); |
| method public sun.security.pkcs.SignerInfo[] getSignerInfos(); |
| method public sun.security.pkcs.SignerInfo verify(sun.security.pkcs.SignerInfo, java.io.InputStream) throws java.io.IOException, java.security.NoSuchAlgorithmException, java.security.SignatureException; |
| method public sun.security.pkcs.SignerInfo[] verify(byte[]) throws java.security.NoSuchAlgorithmException, java.security.SignatureException; |
| } |
| |
| public class ParsingException extends java.io.IOException { |
| } |
| |
| public class SignerInfo { |
| ctor public SignerInfo(); |
| method public java.util.ArrayList<java.security.cert.X509Certificate> getCertificateChain(sun.security.pkcs.PKCS7) throws java.io.IOException; |
| } |
| |
| } |
| |
| package sun.security.util { |
| |
| public final class ObjectIdentifier implements java.io.Serializable { |
| ctor public ObjectIdentifier(String) throws java.io.IOException; |
| } |
| |
| } |
| |
| package sun.security.x509 { |
| |
| public class AlgorithmId implements java.io.Serializable { |
| method public String getName(); |
| } |
| |
| } |
| |