Merge "wifi: Add systemAPi:setSubscriberId in NetworkAgentConfig"
diff --git a/Android.bp b/Android.bp
index 1493f15..2316823 100644
--- a/Android.bp
+++ b/Android.bp
@@ -295,6 +295,7 @@
srcs: [
// Java/AIDL sources under frameworks/base
":framework-blobstore-sources",
+ ":framework-connectivity-sources", // framework-connectivity is not yet a module
":framework-core-sources",
":framework-drm-sources",
":framework-graphics-sources",
@@ -481,6 +482,7 @@
"android.hardware.vibrator-V1.1-java",
"android.hardware.vibrator-V1.2-java",
"android.hardware.vibrator-V1.3-java",
+ "android.security.apc-java",
"android.system.keystore2-java",
"android.system.suspend.control.internal-java",
"devicepolicyprotosnano",
@@ -1264,7 +1266,10 @@
"core/java/com/android/internal/util/StateMachine.java",
"core/java/com/android/internal/util/WakeupMessage.java",
],
- visibility: ["//frameworks/opt/net/wifi/service"],
+ visibility: [
+ "//frameworks/opt/net/wifi/service",
+ "//packages/modules/Wifi/service",
+ ],
}
// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
diff --git a/StubLibraries.bp b/StubLibraries.bp
index 4b28352..ed8781e 100644
--- a/StubLibraries.bp
+++ b/StubLibraries.bp
@@ -47,7 +47,6 @@
"core/java/**/*.logtags",
":opt-telephony-srcs",
":opt-net-voip-srcs",
- ":art.module.public.api{.public.stubs.source}",
"**/package.html",
],
sdk_version: "none",
@@ -240,6 +239,7 @@
name: "android_stubs_current",
srcs: [ ":api-stubs-docs-non-updatable" ],
static_libs: [
+ "art.module.public.api.stubs",
"conscrypt.module.public.api.stubs",
"framework-media.stubs",
"framework-mediaprovider.stubs",
@@ -258,6 +258,7 @@
name: "android_system_stubs_current",
srcs: [ ":system-api-stubs-docs-non-updatable" ],
static_libs: [
+ "art.module.public.api.stubs",
"conscrypt.module.public.api.stubs",
"framework-media.stubs.system",
"framework-mediaprovider.stubs.system",
@@ -292,6 +293,7 @@
static_libs: [
// Modules do not have test APIs, but we want to include their SystemApis, like we include
// the SystemApi of framework-non-updatable-sources.
+ "art.module.public.api.stubs",
"conscrypt.module.public.api.stubs",
"framework-media.stubs.system",
"framework-mediaprovider.stubs.system",
@@ -328,6 +330,7 @@
"android_stubs_dists_default",
],
libs: ["sdk_system_29_android"],
+ static_libs: ["art.module.public.api.stubs"],
dist: {
dir: "apistubs/android/module-lib",
},
diff --git a/api/Android.bp b/api/Android.bp
index f11cd49..9a157b8 100644
--- a/api/Android.bp
+++ b/api/Android.bp
@@ -28,6 +28,7 @@
genrule {
name: "frameworks-base-api-current.txt",
srcs: [
+ ":art.module.public.api{.public.api.txt}",
":conscrypt.module.public.api{.public.api.txt}",
":framework-media{.public.api.txt}",
":framework-mediaprovider{.public.api.txt}",
@@ -64,6 +65,7 @@
name: "frameworks-base-api-current.srcjar",
srcs: [
":api-stubs-docs-non-updatable",
+ ":art.module.public.api{.public.stubs.source}",
":conscrypt.module.public.api{.public.stubs.source}",
":framework-media{.public.stubs.source}",
":framework-mediaprovider{.public.stubs.source}",
@@ -83,6 +85,7 @@
genrule {
name: "frameworks-base-api-removed.txt",
srcs: [
+ ":art.module.public.api{.public.removed-api.txt}",
":conscrypt.module.public.api{.public.removed-api.txt}",
":framework-media{.public.removed-api.txt}",
":framework-mediaprovider{.public.removed-api.txt}",
diff --git a/core/api/current.txt b/core/api/current.txt
index 65d3e4a..252c33c 100644
--- a/core/api/current.txt
+++ b/core/api/current.txt
@@ -8909,6 +8909,8 @@
method public int getConnectionState(android.bluetooth.BluetoothDevice);
method public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(int[]);
method public boolean isAudioConnected(android.bluetooth.BluetoothDevice);
+ method @RequiresPermission(android.Manifest.permission.BLUETOOTH) public boolean isNoiseReductionSupported(@NonNull android.bluetooth.BluetoothDevice);
+ method @RequiresPermission(android.Manifest.permission.BLUETOOTH) public boolean isVoiceRecognitionSupported(@NonNull android.bluetooth.BluetoothDevice);
method public boolean sendVendorSpecificResultCode(android.bluetooth.BluetoothDevice, String, String);
method public boolean startVoiceRecognition(android.bluetooth.BluetoothDevice);
method public boolean stopVoiceRecognition(android.bluetooth.BluetoothDevice);
@@ -23898,7 +23900,9 @@
field public static final String COLUMN_APP_LINK_INTENT_URI = "app_link_intent_uri";
field public static final String COLUMN_APP_LINK_POSTER_ART_URI = "app_link_poster_art_uri";
field public static final String COLUMN_APP_LINK_TEXT = "app_link_text";
+ field public static final String COLUMN_BROADCAST_GENRE = "broadcast_genre";
field public static final String COLUMN_BROWSABLE = "browsable";
+ field public static final String COLUMN_CHANNEL_LIST_ID = "channel_list_id";
field public static final String COLUMN_DESCRIPTION = "description";
field public static final String COLUMN_DISPLAY_NAME = "display_name";
field public static final String COLUMN_DISPLAY_NUMBER = "display_number";
@@ -23913,6 +23917,8 @@
field public static final String COLUMN_LOCKED = "locked";
field public static final String COLUMN_NETWORK_AFFILIATION = "network_affiliation";
field public static final String COLUMN_ORIGINAL_NETWORK_ID = "original_network_id";
+ field public static final String COLUMN_REMOTE_CONTROL_KEY_PRESET_NUMBER = "remote_control_key_preset_number";
+ field public static final String COLUMN_SCRAMBLED = "scrambled";
field public static final String COLUMN_SEARCHABLE = "searchable";
field public static final String COLUMN_SERVICE_ID = "service_id";
field public static final String COLUMN_SERVICE_TYPE = "service_type";
@@ -23921,6 +23927,7 @@
field public static final String COLUMN_TYPE = "type";
field public static final String COLUMN_VERSION_NUMBER = "version_number";
field public static final String COLUMN_VIDEO_FORMAT = "video_format";
+ field public static final String COLUMN_VIDEO_RESOLUTION = "video_resolution";
field public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/channel";
field public static final String CONTENT_TYPE = "vnd.android.cursor.dir/channel";
field public static final android.net.Uri CONTENT_URI;
@@ -38118,708 +38125,6 @@
}
-package android.system {
-
- public final class ErrnoException extends java.lang.Exception {
- ctor public ErrnoException(String, int);
- ctor public ErrnoException(String, int, Throwable);
- method @NonNull public java.io.IOException rethrowAsIOException() throws java.io.IOException;
- method @NonNull public java.net.SocketException rethrowAsSocketException() throws java.net.SocketException;
- field public final int errno;
- }
-
- public class Int64Ref {
- ctor public Int64Ref(long);
- field public long value;
- }
-
- public final class Os {
- method public static java.io.FileDescriptor accept(java.io.FileDescriptor, java.net.InetSocketAddress) throws android.system.ErrnoException, java.net.SocketException;
- method public static boolean access(String, int) throws android.system.ErrnoException;
- method public static void bind(java.io.FileDescriptor, java.net.InetAddress, int) throws android.system.ErrnoException, java.net.SocketException;
- method public static void bind(@NonNull java.io.FileDescriptor, @NonNull java.net.SocketAddress) throws android.system.ErrnoException, java.net.SocketException;
- method public static void chmod(String, int) throws android.system.ErrnoException;
- method public static void chown(String, int, int) throws android.system.ErrnoException;
- method public static void close(java.io.FileDescriptor) throws android.system.ErrnoException;
- method public static void connect(java.io.FileDescriptor, java.net.InetAddress, int) throws android.system.ErrnoException, java.net.SocketException;
- method public static void connect(@NonNull java.io.FileDescriptor, @NonNull java.net.SocketAddress) throws android.system.ErrnoException, java.net.SocketException;
- method public static java.io.FileDescriptor dup(java.io.FileDescriptor) throws android.system.ErrnoException;
- method public static java.io.FileDescriptor dup2(java.io.FileDescriptor, int) throws android.system.ErrnoException;
- method public static String[] environ();
- method public static void execv(String, String[]) throws android.system.ErrnoException;
- method public static void execve(String, String[], String[]) throws android.system.ErrnoException;
- method public static void fchmod(java.io.FileDescriptor, int) throws android.system.ErrnoException;
- method public static void fchown(java.io.FileDescriptor, int, int) throws android.system.ErrnoException;
- method public static int fcntlInt(@NonNull java.io.FileDescriptor, int, int) throws android.system.ErrnoException;
- method public static void fdatasync(java.io.FileDescriptor) throws android.system.ErrnoException;
- method public static android.system.StructStat fstat(java.io.FileDescriptor) throws android.system.ErrnoException;
- method public static android.system.StructStatVfs fstatvfs(java.io.FileDescriptor) throws android.system.ErrnoException;
- method public static void fsync(java.io.FileDescriptor) throws android.system.ErrnoException;
- method public static void ftruncate(java.io.FileDescriptor, long) throws android.system.ErrnoException;
- method public static String gai_strerror(int);
- method public static int getegid();
- method public static String getenv(String);
- method public static int geteuid();
- method public static int getgid();
- method public static java.net.SocketAddress getpeername(java.io.FileDescriptor) throws android.system.ErrnoException;
- method public static int getpid();
- method public static int getppid();
- method public static java.net.SocketAddress getsockname(java.io.FileDescriptor) throws android.system.ErrnoException;
- method @NonNull public static android.system.StructTimeval getsockoptTimeval(@NonNull java.io.FileDescriptor, int, int) throws android.system.ErrnoException;
- method public static int gettid();
- method public static int getuid();
- method public static byte[] getxattr(String, String) throws android.system.ErrnoException;
- method public static String if_indextoname(int);
- method public static int if_nametoindex(String);
- method public static java.net.InetAddress inet_pton(int, String);
- method public static boolean isatty(java.io.FileDescriptor);
- method public static void kill(int, int) throws android.system.ErrnoException;
- method public static void lchown(String, int, int) throws android.system.ErrnoException;
- method public static void link(String, String) throws android.system.ErrnoException;
- method public static void listen(java.io.FileDescriptor, int) throws android.system.ErrnoException;
- method public static String[] listxattr(String) throws android.system.ErrnoException;
- method public static long lseek(java.io.FileDescriptor, long, int) throws android.system.ErrnoException;
- method public static android.system.StructStat lstat(String) throws android.system.ErrnoException;
- method @NonNull public static java.io.FileDescriptor memfd_create(@NonNull String, int) throws android.system.ErrnoException;
- method public static void mincore(long, long, byte[]) throws android.system.ErrnoException;
- method public static void mkdir(String, int) throws android.system.ErrnoException;
- method public static void mkfifo(String, int) throws android.system.ErrnoException;
- method public static void mlock(long, long) throws android.system.ErrnoException;
- method public static long mmap(long, long, int, int, java.io.FileDescriptor, long) throws android.system.ErrnoException;
- method public static void msync(long, long, int) throws android.system.ErrnoException;
- method public static void munlock(long, long) throws android.system.ErrnoException;
- method public static void munmap(long, long) throws android.system.ErrnoException;
- method public static java.io.FileDescriptor open(String, int, int) throws android.system.ErrnoException;
- method public static java.io.FileDescriptor[] pipe() throws android.system.ErrnoException;
- method public static int poll(android.system.StructPollfd[], int) throws android.system.ErrnoException;
- method public static void posix_fallocate(java.io.FileDescriptor, long, long) throws android.system.ErrnoException;
- method public static int prctl(int, long, long, long, long) throws android.system.ErrnoException;
- method public static int pread(java.io.FileDescriptor, java.nio.ByteBuffer, long) throws android.system.ErrnoException, java.io.InterruptedIOException;
- method public static int pread(java.io.FileDescriptor, byte[], int, int, long) throws android.system.ErrnoException, java.io.InterruptedIOException;
- method public static int pwrite(java.io.FileDescriptor, java.nio.ByteBuffer, long) throws android.system.ErrnoException, java.io.InterruptedIOException;
- method public static int pwrite(java.io.FileDescriptor, byte[], int, int, long) throws android.system.ErrnoException, java.io.InterruptedIOException;
- method public static int read(java.io.FileDescriptor, java.nio.ByteBuffer) throws android.system.ErrnoException, java.io.InterruptedIOException;
- method public static int read(java.io.FileDescriptor, byte[], int, int) throws android.system.ErrnoException, java.io.InterruptedIOException;
- method public static String readlink(String) throws android.system.ErrnoException;
- method public static int readv(java.io.FileDescriptor, Object[], int[], int[]) throws android.system.ErrnoException, java.io.InterruptedIOException;
- method public static int recvfrom(java.io.FileDescriptor, java.nio.ByteBuffer, int, java.net.InetSocketAddress) throws android.system.ErrnoException, java.net.SocketException;
- method public static int recvfrom(java.io.FileDescriptor, byte[], int, int, int, java.net.InetSocketAddress) throws android.system.ErrnoException, java.net.SocketException;
- method public static void remove(String) throws android.system.ErrnoException;
- method public static void removexattr(String, String) throws android.system.ErrnoException;
- method public static void rename(String, String) throws android.system.ErrnoException;
- method public static long sendfile(java.io.FileDescriptor, java.io.FileDescriptor, android.system.Int64Ref, long) throws android.system.ErrnoException;
- method public static int sendto(java.io.FileDescriptor, java.nio.ByteBuffer, int, java.net.InetAddress, int) throws android.system.ErrnoException, java.net.SocketException;
- method public static int sendto(java.io.FileDescriptor, byte[], int, int, int, java.net.InetAddress, int) throws android.system.ErrnoException, java.net.SocketException;
- method public static int sendto(@NonNull java.io.FileDescriptor, @NonNull byte[], int, int, int, @Nullable java.net.SocketAddress) throws android.system.ErrnoException, java.net.SocketException;
- method @Deprecated public static void setegid(int) throws android.system.ErrnoException;
- method public static void setenv(String, String, boolean) throws android.system.ErrnoException;
- method @Deprecated public static void seteuid(int) throws android.system.ErrnoException;
- method @Deprecated public static void setgid(int) throws android.system.ErrnoException;
- method public static int setsid() throws android.system.ErrnoException;
- method public static void setsockoptInt(java.io.FileDescriptor, int, int, int) throws android.system.ErrnoException;
- method public static void setsockoptTimeval(@NonNull java.io.FileDescriptor, int, int, @NonNull android.system.StructTimeval) throws android.system.ErrnoException;
- method @Deprecated public static void setuid(int) throws android.system.ErrnoException;
- method public static void setxattr(String, String, byte[], int) throws android.system.ErrnoException;
- method public static void shutdown(java.io.FileDescriptor, int) throws android.system.ErrnoException;
- method public static java.io.FileDescriptor socket(int, int, int) throws android.system.ErrnoException;
- method public static void socketpair(int, int, int, java.io.FileDescriptor, java.io.FileDescriptor) throws android.system.ErrnoException;
- method public static android.system.StructStat stat(String) throws android.system.ErrnoException;
- method public static android.system.StructStatVfs statvfs(String) throws android.system.ErrnoException;
- method public static String strerror(int);
- method public static String strsignal(int);
- method public static void symlink(String, String) throws android.system.ErrnoException;
- method public static long sysconf(int);
- method public static void tcdrain(java.io.FileDescriptor) throws android.system.ErrnoException;
- method public static void tcsendbreak(java.io.FileDescriptor, int) throws android.system.ErrnoException;
- method public static int umask(int);
- method public static android.system.StructUtsname uname();
- method public static void unsetenv(String) throws android.system.ErrnoException;
- method public static int write(java.io.FileDescriptor, java.nio.ByteBuffer) throws android.system.ErrnoException, java.io.InterruptedIOException;
- method public static int write(java.io.FileDescriptor, byte[], int, int) throws android.system.ErrnoException, java.io.InterruptedIOException;
- method public static int writev(java.io.FileDescriptor, Object[], int[], int[]) throws android.system.ErrnoException, java.io.InterruptedIOException;
- }
-
- public final class OsConstants {
- method public static boolean S_ISBLK(int);
- method public static boolean S_ISCHR(int);
- method public static boolean S_ISDIR(int);
- method public static boolean S_ISFIFO(int);
- method public static boolean S_ISLNK(int);
- method public static boolean S_ISREG(int);
- method public static boolean S_ISSOCK(int);
- method public static boolean WCOREDUMP(int);
- method public static int WEXITSTATUS(int);
- method public static boolean WIFEXITED(int);
- method public static boolean WIFSIGNALED(int);
- method public static boolean WIFSTOPPED(int);
- method public static int WSTOPSIG(int);
- method public static int WTERMSIG(int);
- method public static String errnoName(int);
- method public static String gaiName(int);
- field public static final int AF_INET;
- field public static final int AF_INET6;
- field public static final int AF_NETLINK;
- field public static final int AF_PACKET;
- field public static final int AF_UNIX;
- field public static final int AF_UNSPEC;
- field public static final int AI_ADDRCONFIG;
- field public static final int AI_ALL;
- field public static final int AI_CANONNAME;
- field public static final int AI_NUMERICHOST;
- field public static final int AI_NUMERICSERV;
- field public static final int AI_PASSIVE;
- field public static final int AI_V4MAPPED;
- field public static final int ARPHRD_ETHER;
- field public static final int CAP_AUDIT_CONTROL;
- field public static final int CAP_AUDIT_WRITE;
- field public static final int CAP_BLOCK_SUSPEND;
- field public static final int CAP_CHOWN;
- field public static final int CAP_DAC_OVERRIDE;
- field public static final int CAP_DAC_READ_SEARCH;
- field public static final int CAP_FOWNER;
- field public static final int CAP_FSETID;
- field public static final int CAP_IPC_LOCK;
- field public static final int CAP_IPC_OWNER;
- field public static final int CAP_KILL;
- field public static final int CAP_LAST_CAP;
- field public static final int CAP_LEASE;
- field public static final int CAP_LINUX_IMMUTABLE;
- field public static final int CAP_MAC_ADMIN;
- field public static final int CAP_MAC_OVERRIDE;
- field public static final int CAP_MKNOD;
- field public static final int CAP_NET_ADMIN;
- field public static final int CAP_NET_BIND_SERVICE;
- field public static final int CAP_NET_BROADCAST;
- field public static final int CAP_NET_RAW;
- field public static final int CAP_SETFCAP;
- field public static final int CAP_SETGID;
- field public static final int CAP_SETPCAP;
- field public static final int CAP_SETUID;
- field public static final int CAP_SYSLOG;
- field public static final int CAP_SYS_ADMIN;
- field public static final int CAP_SYS_BOOT;
- field public static final int CAP_SYS_CHROOT;
- field public static final int CAP_SYS_MODULE;
- field public static final int CAP_SYS_NICE;
- field public static final int CAP_SYS_PACCT;
- field public static final int CAP_SYS_PTRACE;
- field public static final int CAP_SYS_RAWIO;
- field public static final int CAP_SYS_RESOURCE;
- field public static final int CAP_SYS_TIME;
- field public static final int CAP_SYS_TTY_CONFIG;
- field public static final int CAP_WAKE_ALARM;
- field public static final int E2BIG;
- field public static final int EACCES;
- field public static final int EADDRINUSE;
- field public static final int EADDRNOTAVAIL;
- field public static final int EAFNOSUPPORT;
- field public static final int EAGAIN;
- field public static final int EAI_AGAIN;
- field public static final int EAI_BADFLAGS;
- field public static final int EAI_FAIL;
- field public static final int EAI_FAMILY;
- field public static final int EAI_MEMORY;
- field public static final int EAI_NODATA;
- field public static final int EAI_NONAME;
- field public static final int EAI_OVERFLOW;
- field public static final int EAI_SERVICE;
- field public static final int EAI_SOCKTYPE;
- field public static final int EAI_SYSTEM;
- field public static final int EALREADY;
- field public static final int EBADF;
- field public static final int EBADMSG;
- field public static final int EBUSY;
- field public static final int ECANCELED;
- field public static final int ECHILD;
- field public static final int ECONNABORTED;
- field public static final int ECONNREFUSED;
- field public static final int ECONNRESET;
- field public static final int EDEADLK;
- field public static final int EDESTADDRREQ;
- field public static final int EDOM;
- field public static final int EDQUOT;
- field public static final int EEXIST;
- field public static final int EFAULT;
- field public static final int EFBIG;
- field public static final int EHOSTUNREACH;
- field public static final int EIDRM;
- field public static final int EILSEQ;
- field public static final int EINPROGRESS;
- field public static final int EINTR;
- field public static final int EINVAL;
- field public static final int EIO;
- field public static final int EISCONN;
- field public static final int EISDIR;
- field public static final int ELOOP;
- field public static final int EMFILE;
- field public static final int EMLINK;
- field public static final int EMSGSIZE;
- field public static final int EMULTIHOP;
- field public static final int ENAMETOOLONG;
- field public static final int ENETDOWN;
- field public static final int ENETRESET;
- field public static final int ENETUNREACH;
- field public static final int ENFILE;
- field public static final int ENOBUFS;
- field public static final int ENODATA;
- field public static final int ENODEV;
- field public static final int ENOENT;
- field public static final int ENOEXEC;
- field public static final int ENOLCK;
- field public static final int ENOLINK;
- field public static final int ENOMEM;
- field public static final int ENOMSG;
- field public static final int ENOPROTOOPT;
- field public static final int ENOSPC;
- field public static final int ENOSR;
- field public static final int ENOSTR;
- field public static final int ENOSYS;
- field public static final int ENOTCONN;
- field public static final int ENOTDIR;
- field public static final int ENOTEMPTY;
- field public static final int ENOTSOCK;
- field public static final int ENOTSUP;
- field public static final int ENOTTY;
- field public static final int ENXIO;
- field public static final int EOPNOTSUPP;
- field public static final int EOVERFLOW;
- field public static final int EPERM;
- field public static final int EPIPE;
- field public static final int EPROTO;
- field public static final int EPROTONOSUPPORT;
- field public static final int EPROTOTYPE;
- field public static final int ERANGE;
- field public static final int EROFS;
- field public static final int ESPIPE;
- field public static final int ESRCH;
- field public static final int ESTALE;
- field public static final int ETH_P_ALL;
- field public static final int ETH_P_ARP;
- field public static final int ETH_P_IP;
- field public static final int ETH_P_IPV6;
- field public static final int ETIME;
- field public static final int ETIMEDOUT;
- field public static final int ETXTBSY;
- field public static final int EXDEV;
- field public static final int EXIT_FAILURE;
- field public static final int EXIT_SUCCESS;
- field public static final int FD_CLOEXEC;
- field public static final int FIONREAD;
- field public static final int F_DUPFD;
- field public static final int F_DUPFD_CLOEXEC;
- field public static final int F_GETFD;
- field public static final int F_GETFL;
- field public static final int F_GETLK;
- field public static final int F_GETLK64;
- field public static final int F_GETOWN;
- field public static final int F_OK;
- field public static final int F_RDLCK;
- field public static final int F_SETFD;
- field public static final int F_SETFL;
- field public static final int F_SETLK;
- field public static final int F_SETLK64;
- field public static final int F_SETLKW;
- field public static final int F_SETLKW64;
- field public static final int F_SETOWN;
- field public static final int F_UNLCK;
- field public static final int F_WRLCK;
- field public static final int ICMP6_ECHO_REPLY;
- field public static final int ICMP6_ECHO_REQUEST;
- field public static final int ICMP_ECHO;
- field public static final int ICMP_ECHOREPLY;
- field public static final int IFA_F_DADFAILED;
- field public static final int IFA_F_DEPRECATED;
- field public static final int IFA_F_HOMEADDRESS;
- field public static final int IFA_F_NODAD;
- field public static final int IFA_F_OPTIMISTIC;
- field public static final int IFA_F_PERMANENT;
- field public static final int IFA_F_SECONDARY;
- field public static final int IFA_F_TEMPORARY;
- field public static final int IFA_F_TENTATIVE;
- field public static final int IFF_ALLMULTI;
- field public static final int IFF_AUTOMEDIA;
- field public static final int IFF_BROADCAST;
- field public static final int IFF_DEBUG;
- field public static final int IFF_DYNAMIC;
- field public static final int IFF_LOOPBACK;
- field public static final int IFF_MASTER;
- field public static final int IFF_MULTICAST;
- field public static final int IFF_NOARP;
- field public static final int IFF_NOTRAILERS;
- field public static final int IFF_POINTOPOINT;
- field public static final int IFF_PORTSEL;
- field public static final int IFF_PROMISC;
- field public static final int IFF_RUNNING;
- field public static final int IFF_SLAVE;
- field public static final int IFF_UP;
- field public static final int IPPROTO_ICMP;
- field public static final int IPPROTO_ICMPV6;
- field public static final int IPPROTO_IP;
- field public static final int IPPROTO_IPV6;
- field public static final int IPPROTO_RAW;
- field public static final int IPPROTO_TCP;
- field public static final int IPPROTO_UDP;
- field public static final int IPV6_CHECKSUM;
- field public static final int IPV6_MULTICAST_HOPS;
- field public static final int IPV6_MULTICAST_IF;
- field public static final int IPV6_MULTICAST_LOOP;
- field public static final int IPV6_RECVDSTOPTS;
- field public static final int IPV6_RECVHOPLIMIT;
- field public static final int IPV6_RECVHOPOPTS;
- field public static final int IPV6_RECVPKTINFO;
- field public static final int IPV6_RECVRTHDR;
- field public static final int IPV6_RECVTCLASS;
- field public static final int IPV6_TCLASS;
- field public static final int IPV6_UNICAST_HOPS;
- field public static final int IPV6_V6ONLY;
- field public static final int IP_MULTICAST_IF;
- field public static final int IP_MULTICAST_LOOP;
- field public static final int IP_MULTICAST_TTL;
- field public static final int IP_TOS;
- field public static final int IP_TTL;
- field public static final int MAP_ANONYMOUS;
- field public static final int MAP_FIXED;
- field public static final int MAP_PRIVATE;
- field public static final int MAP_SHARED;
- field public static final int MCAST_BLOCK_SOURCE;
- field public static final int MCAST_JOIN_GROUP;
- field public static final int MCAST_JOIN_SOURCE_GROUP;
- field public static final int MCAST_LEAVE_GROUP;
- field public static final int MCAST_LEAVE_SOURCE_GROUP;
- field public static final int MCAST_UNBLOCK_SOURCE;
- field public static final int MCL_CURRENT;
- field public static final int MCL_FUTURE;
- field public static final int MFD_CLOEXEC;
- field public static final int MSG_CTRUNC;
- field public static final int MSG_DONTROUTE;
- field public static final int MSG_EOR;
- field public static final int MSG_OOB;
- field public static final int MSG_PEEK;
- field public static final int MSG_TRUNC;
- field public static final int MSG_WAITALL;
- field public static final int MS_ASYNC;
- field public static final int MS_INVALIDATE;
- field public static final int MS_SYNC;
- field public static final int NETLINK_INET_DIAG;
- field public static final int NETLINK_NETFILTER;
- field public static final int NETLINK_ROUTE;
- field public static final int NI_DGRAM;
- field public static final int NI_NAMEREQD;
- field public static final int NI_NOFQDN;
- field public static final int NI_NUMERICHOST;
- field public static final int NI_NUMERICSERV;
- field public static final int O_ACCMODE;
- field public static final int O_APPEND;
- field public static final int O_CLOEXEC;
- field public static final int O_CREAT;
- field public static final int O_DSYNC;
- field public static final int O_EXCL;
- field public static final int O_NOCTTY;
- field public static final int O_NOFOLLOW;
- field public static final int O_NONBLOCK;
- field public static final int O_RDONLY;
- field public static final int O_RDWR;
- field public static final int O_SYNC;
- field public static final int O_TRUNC;
- field public static final int O_WRONLY;
- field public static final int POLLERR;
- field public static final int POLLHUP;
- field public static final int POLLIN;
- field public static final int POLLNVAL;
- field public static final int POLLOUT;
- field public static final int POLLPRI;
- field public static final int POLLRDBAND;
- field public static final int POLLRDNORM;
- field public static final int POLLWRBAND;
- field public static final int POLLWRNORM;
- field public static final int PROT_EXEC;
- field public static final int PROT_NONE;
- field public static final int PROT_READ;
- field public static final int PROT_WRITE;
- field public static final int PR_GET_DUMPABLE;
- field public static final int PR_SET_DUMPABLE;
- field public static final int PR_SET_NO_NEW_PRIVS;
- field public static final int RTMGRP_NEIGH;
- field public static final int RT_SCOPE_HOST;
- field public static final int RT_SCOPE_LINK;
- field public static final int RT_SCOPE_NOWHERE;
- field public static final int RT_SCOPE_SITE;
- field public static final int RT_SCOPE_UNIVERSE;
- field public static final int R_OK;
- field public static final int SEEK_CUR;
- field public static final int SEEK_END;
- field public static final int SEEK_SET;
- field public static final int SHUT_RD;
- field public static final int SHUT_RDWR;
- field public static final int SHUT_WR;
- field public static final int SIGABRT;
- field public static final int SIGALRM;
- field public static final int SIGBUS;
- field public static final int SIGCHLD;
- field public static final int SIGCONT;
- field public static final int SIGFPE;
- field public static final int SIGHUP;
- field public static final int SIGILL;
- field public static final int SIGINT;
- field public static final int SIGIO;
- field public static final int SIGKILL;
- field public static final int SIGPIPE;
- field public static final int SIGPROF;
- field public static final int SIGPWR;
- field public static final int SIGQUIT;
- field public static final int SIGRTMAX;
- field public static final int SIGRTMIN;
- field public static final int SIGSEGV;
- field public static final int SIGSTKFLT;
- field public static final int SIGSTOP;
- field public static final int SIGSYS;
- field public static final int SIGTERM;
- field public static final int SIGTRAP;
- field public static final int SIGTSTP;
- field public static final int SIGTTIN;
- field public static final int SIGTTOU;
- field public static final int SIGURG;
- field public static final int SIGUSR1;
- field public static final int SIGUSR2;
- field public static final int SIGVTALRM;
- field public static final int SIGWINCH;
- field public static final int SIGXCPU;
- field public static final int SIGXFSZ;
- field public static final int SIOCGIFADDR;
- field public static final int SIOCGIFBRDADDR;
- field public static final int SIOCGIFDSTADDR;
- field public static final int SIOCGIFNETMASK;
- field public static final int SOCK_CLOEXEC;
- field public static final int SOCK_DGRAM;
- field public static final int SOCK_NONBLOCK;
- field public static final int SOCK_RAW;
- field public static final int SOCK_SEQPACKET;
- field public static final int SOCK_STREAM;
- field public static final int SOL_SOCKET;
- field public static final int SO_BINDTODEVICE;
- field public static final int SO_BROADCAST;
- field public static final int SO_DEBUG;
- field public static final int SO_DONTROUTE;
- field public static final int SO_ERROR;
- field public static final int SO_KEEPALIVE;
- field public static final int SO_LINGER;
- field public static final int SO_OOBINLINE;
- field public static final int SO_PASSCRED;
- field public static final int SO_PEERCRED;
- field public static final int SO_RCVBUF;
- field public static final int SO_RCVLOWAT;
- field public static final int SO_RCVTIMEO;
- field public static final int SO_REUSEADDR;
- field public static final int SO_SNDBUF;
- field public static final int SO_SNDLOWAT;
- field public static final int SO_SNDTIMEO;
- field public static final int SO_TYPE;
- field public static final int STDERR_FILENO;
- field public static final int STDIN_FILENO;
- field public static final int STDOUT_FILENO;
- field public static final int ST_MANDLOCK;
- field public static final int ST_NOATIME;
- field public static final int ST_NODEV;
- field public static final int ST_NODIRATIME;
- field public static final int ST_NOEXEC;
- field public static final int ST_NOSUID;
- field public static final int ST_RDONLY;
- field public static final int ST_RELATIME;
- field public static final int ST_SYNCHRONOUS;
- field public static final int S_IFBLK;
- field public static final int S_IFCHR;
- field public static final int S_IFDIR;
- field public static final int S_IFIFO;
- field public static final int S_IFLNK;
- field public static final int S_IFMT;
- field public static final int S_IFREG;
- field public static final int S_IFSOCK;
- field public static final int S_IRGRP;
- field public static final int S_IROTH;
- field public static final int S_IRUSR;
- field public static final int S_IRWXG;
- field public static final int S_IRWXO;
- field public static final int S_IRWXU;
- field public static final int S_ISGID;
- field public static final int S_ISUID;
- field public static final int S_ISVTX;
- field public static final int S_IWGRP;
- field public static final int S_IWOTH;
- field public static final int S_IWUSR;
- field public static final int S_IXGRP;
- field public static final int S_IXOTH;
- field public static final int S_IXUSR;
- field public static final int TCP_NODELAY;
- field public static final int TCP_USER_TIMEOUT;
- field public static final int WCONTINUED;
- field public static final int WEXITED;
- field public static final int WNOHANG;
- field public static final int WNOWAIT;
- field public static final int WSTOPPED;
- field public static final int WUNTRACED;
- field public static final int W_OK;
- field public static final int X_OK;
- field public static final int _SC_2_CHAR_TERM;
- field public static final int _SC_2_C_BIND;
- field public static final int _SC_2_C_DEV;
- field public static final int _SC_2_C_VERSION;
- field public static final int _SC_2_FORT_DEV;
- field public static final int _SC_2_FORT_RUN;
- field public static final int _SC_2_LOCALEDEF;
- field public static final int _SC_2_SW_DEV;
- field public static final int _SC_2_UPE;
- field public static final int _SC_2_VERSION;
- field public static final int _SC_AIO_LISTIO_MAX;
- field public static final int _SC_AIO_MAX;
- field public static final int _SC_AIO_PRIO_DELTA_MAX;
- field public static final int _SC_ARG_MAX;
- field public static final int _SC_ASYNCHRONOUS_IO;
- field public static final int _SC_ATEXIT_MAX;
- field public static final int _SC_AVPHYS_PAGES;
- field public static final int _SC_BC_BASE_MAX;
- field public static final int _SC_BC_DIM_MAX;
- field public static final int _SC_BC_SCALE_MAX;
- field public static final int _SC_BC_STRING_MAX;
- field public static final int _SC_CHILD_MAX;
- field public static final int _SC_CLK_TCK;
- field public static final int _SC_COLL_WEIGHTS_MAX;
- field public static final int _SC_DELAYTIMER_MAX;
- field public static final int _SC_EXPR_NEST_MAX;
- field public static final int _SC_FSYNC;
- field public static final int _SC_GETGR_R_SIZE_MAX;
- field public static final int _SC_GETPW_R_SIZE_MAX;
- field public static final int _SC_IOV_MAX;
- field public static final int _SC_JOB_CONTROL;
- field public static final int _SC_LINE_MAX;
- field public static final int _SC_LOGIN_NAME_MAX;
- field public static final int _SC_MAPPED_FILES;
- field public static final int _SC_MEMLOCK;
- field public static final int _SC_MEMLOCK_RANGE;
- field public static final int _SC_MEMORY_PROTECTION;
- field public static final int _SC_MESSAGE_PASSING;
- field public static final int _SC_MQ_OPEN_MAX;
- field public static final int _SC_MQ_PRIO_MAX;
- field public static final int _SC_NGROUPS_MAX;
- field public static final int _SC_NPROCESSORS_CONF;
- field public static final int _SC_NPROCESSORS_ONLN;
- field public static final int _SC_OPEN_MAX;
- field public static final int _SC_PAGESIZE;
- field public static final int _SC_PAGE_SIZE;
- field public static final int _SC_PASS_MAX;
- field public static final int _SC_PHYS_PAGES;
- field public static final int _SC_PRIORITIZED_IO;
- field public static final int _SC_PRIORITY_SCHEDULING;
- field public static final int _SC_REALTIME_SIGNALS;
- field public static final int _SC_RE_DUP_MAX;
- field public static final int _SC_RTSIG_MAX;
- field public static final int _SC_SAVED_IDS;
- field public static final int _SC_SEMAPHORES;
- field public static final int _SC_SEM_NSEMS_MAX;
- field public static final int _SC_SEM_VALUE_MAX;
- field public static final int _SC_SHARED_MEMORY_OBJECTS;
- field public static final int _SC_SIGQUEUE_MAX;
- field public static final int _SC_STREAM_MAX;
- field public static final int _SC_SYNCHRONIZED_IO;
- field public static final int _SC_THREADS;
- field public static final int _SC_THREAD_ATTR_STACKADDR;
- field public static final int _SC_THREAD_ATTR_STACKSIZE;
- field public static final int _SC_THREAD_DESTRUCTOR_ITERATIONS;
- field public static final int _SC_THREAD_KEYS_MAX;
- field public static final int _SC_THREAD_PRIORITY_SCHEDULING;
- field public static final int _SC_THREAD_PRIO_INHERIT;
- field public static final int _SC_THREAD_PRIO_PROTECT;
- field public static final int _SC_THREAD_SAFE_FUNCTIONS;
- field public static final int _SC_THREAD_STACK_MIN;
- field public static final int _SC_THREAD_THREADS_MAX;
- field public static final int _SC_TIMERS;
- field public static final int _SC_TIMER_MAX;
- field public static final int _SC_TTY_NAME_MAX;
- field public static final int _SC_TZNAME_MAX;
- field public static final int _SC_VERSION;
- field public static final int _SC_XBS5_ILP32_OFF32;
- field public static final int _SC_XBS5_ILP32_OFFBIG;
- field public static final int _SC_XBS5_LP64_OFF64;
- field public static final int _SC_XBS5_LPBIG_OFFBIG;
- field public static final int _SC_XOPEN_CRYPT;
- field public static final int _SC_XOPEN_ENH_I18N;
- field public static final int _SC_XOPEN_LEGACY;
- field public static final int _SC_XOPEN_REALTIME;
- field public static final int _SC_XOPEN_REALTIME_THREADS;
- field public static final int _SC_XOPEN_SHM;
- field public static final int _SC_XOPEN_UNIX;
- field public static final int _SC_XOPEN_VERSION;
- field public static final int _SC_XOPEN_XCU_VERSION;
- }
-
- public final class StructPollfd {
- ctor public StructPollfd();
- field public short events;
- field public java.io.FileDescriptor fd;
- field public short revents;
- field public Object userData;
- }
-
- public final class StructStat {
- ctor public StructStat(long, long, int, long, int, int, long, long, long, long, long, long, long);
- ctor public StructStat(long, long, int, long, int, int, long, long, android.system.StructTimespec, android.system.StructTimespec, android.system.StructTimespec, long, long);
- field public final android.system.StructTimespec st_atim;
- field public final long st_atime;
- field public final long st_blksize;
- field public final long st_blocks;
- field public final android.system.StructTimespec st_ctim;
- field public final long st_ctime;
- field public final long st_dev;
- field public final int st_gid;
- field public final long st_ino;
- field public final int st_mode;
- field public final android.system.StructTimespec st_mtim;
- field public final long st_mtime;
- field public final long st_nlink;
- field public final long st_rdev;
- field public final long st_size;
- field public final int st_uid;
- }
-
- public final class StructStatVfs {
- ctor public StructStatVfs(long, long, long, long, long, long, long, long, long, long, long);
- field public final long f_bavail;
- field public final long f_bfree;
- field public final long f_blocks;
- field public final long f_bsize;
- field public final long f_favail;
- field public final long f_ffree;
- field public final long f_files;
- field public final long f_flag;
- field public final long f_frsize;
- field public final long f_fsid;
- field public final long f_namemax;
- }
-
- public final class StructTimespec implements java.lang.Comparable<android.system.StructTimespec> {
- ctor public StructTimespec(long, long);
- method public int compareTo(android.system.StructTimespec);
- field public final long tv_nsec;
- field public final long tv_sec;
- }
-
- public final class StructTimeval {
- method @NonNull public static android.system.StructTimeval fromMillis(long);
- method public long toMillis();
- field public final long tv_sec;
- field public final long tv_usec;
- }
-
- public final class StructUtsname {
- ctor public StructUtsname(String, String, String, String, String);
- field public final String machine;
- field public final String nodename;
- field public final String release;
- field public final String sysname;
- field public final String version;
- }
-
-}
-
package android.telecom {
public final class Call {
@@ -39475,6 +38780,7 @@
method public android.telecom.PhoneAccount.Builder toBuilder();
method public void writeToParcel(android.os.Parcel, int);
field public static final int CAPABILITY_ADHOC_CONFERENCE_CALLING = 16384; // 0x4000
+ field public static final int CAPABILITY_CALL_COMPOSER = 32768; // 0x8000
field public static final int CAPABILITY_CALL_PROVIDER = 2; // 0x2
field public static final int CAPABILITY_CALL_SUBJECT = 64; // 0x40
field public static final int CAPABILITY_CONNECTION_MANAGER = 1; // 0x1
@@ -39732,14 +39038,19 @@
field public static final String EXTRA_DEFAULT_CALL_SCREENING_APP_COMPONENT_NAME = "android.telecom.extra.DEFAULT_CALL_SCREENING_APP_COMPONENT_NAME";
field public static final String EXTRA_DISCONNECT_CAUSE = "android.telecom.extra.DISCONNECT_CAUSE";
field public static final String EXTRA_HANDLE = "android.telecom.extra.HANDLE";
+ field public static final String EXTRA_HAS_PICTURE = "android.telecom.extra.HAS_PICTURE";
field public static final String EXTRA_INCOMING_CALL_ADDRESS = "android.telecom.extra.INCOMING_CALL_ADDRESS";
field public static final String EXTRA_INCOMING_CALL_EXTRAS = "android.telecom.extra.INCOMING_CALL_EXTRAS";
+ field public static final String EXTRA_INCOMING_PICTURE = "android.telecom.extra.INCOMING_PICTURE";
field public static final String EXTRA_INCOMING_VIDEO_STATE = "android.telecom.extra.INCOMING_VIDEO_STATE";
field public static final String EXTRA_IS_DEFAULT_CALL_SCREENING_APP = "android.telecom.extra.IS_DEFAULT_CALL_SCREENING_APP";
+ field public static final String EXTRA_LOCATION = "android.telecom.extra.LOCATION";
field public static final String EXTRA_NOTIFICATION_COUNT = "android.telecom.extra.NOTIFICATION_COUNT";
field public static final String EXTRA_NOTIFICATION_PHONE_NUMBER = "android.telecom.extra.NOTIFICATION_PHONE_NUMBER";
field public static final String EXTRA_OUTGOING_CALL_EXTRAS = "android.telecom.extra.OUTGOING_CALL_EXTRAS";
+ field public static final String EXTRA_OUTGOING_PICTURE = "android.telecom.extra.OUTGOING_PICTURE";
field public static final String EXTRA_PHONE_ACCOUNT_HANDLE = "android.telecom.extra.PHONE_ACCOUNT_HANDLE";
+ field public static final String EXTRA_PRIORITY = "android.telecom.extra.PRIORITY";
field public static final String EXTRA_START_CALL_WITH_RTT = "android.telecom.extra.START_CALL_WITH_RTT";
field public static final String EXTRA_START_CALL_WITH_SPEAKERPHONE = "android.telecom.extra.START_CALL_WITH_SPEAKERPHONE";
field public static final String EXTRA_START_CALL_WITH_VIDEO_STATE = "android.telecom.extra.START_CALL_WITH_VIDEO_STATE";
@@ -39755,6 +39066,8 @@
field public static final int PRESENTATION_PAYPHONE = 4; // 0x4
field public static final int PRESENTATION_RESTRICTED = 2; // 0x2
field public static final int PRESENTATION_UNKNOWN = 3; // 0x3
+ field public static final int PRIORITY_NORMAL = 0; // 0x0
+ field public static final int PRIORITY_URGENT = 1; // 0x1
}
public class VideoProfile implements android.os.Parcelable {
@@ -40058,6 +39371,7 @@
field public static final String KEY_CALL_BARRING_SUPPORTS_DEACTIVATE_ALL_BOOL = "call_barring_supports_deactivate_all_bool";
field public static final String KEY_CALL_BARRING_SUPPORTS_PASSWORD_CHANGE_BOOL = "call_barring_supports_password_change_bool";
field public static final String KEY_CALL_BARRING_VISIBILITY_BOOL = "call_barring_visibility_bool";
+ field public static final String KEY_CALL_COMPOSER_PICTURE_SERVER_URL_STRING = "call_composer_picture_server_url_string";
field public static final String KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY = "call_forwarding_blocks_while_roaming_string_array";
field public static final String KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING = "call_redirection_service_component_name_string";
field public static final String KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL = "carrier_allow_deflect_ims_call_bool";
@@ -40247,6 +39561,7 @@
field public static final String KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL = "simplified_network_settings_bool";
field public static final String KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL = "sim_network_unlock_allow_dismiss_bool";
field public static final String KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL = "sms_requires_destination_number_conversion_bool";
+ field public static final String KEY_SUPPORTS_CALL_COMPOSER_BOOL = "supports_call_composer_bool";
field public static final String KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL = "support_3gpp_call_forwarding_while_roaming_bool";
field public static final String KEY_SUPPORT_ADD_CONFERENCE_PARTICIPANTS_BOOL = "support_add_conference_participants_bool";
field public static final String KEY_SUPPORT_ADHOC_CONFERENCE_CALLS_BOOL = "support_adhoc_conference_calls_bool";
@@ -41702,6 +41017,7 @@
method @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public boolean doesSwitchMultiSimConfigTriggerReboot();
method public int getActiveModemCount();
method @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) public java.util.List<android.telephony.CellInfo> getAllCellInfo();
+ method @RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE") public int getCallComposerStatus();
method public int getCallState();
method public int getCardIdForDefaultEuicc();
method @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) @WorkerThread public android.os.PersistableBundle getCarrierConfig();
@@ -41796,6 +41112,7 @@
method @Deprecated public String sendEnvelopeWithStatus(String);
method @RequiresPermission(android.Manifest.permission.CALL_PHONE) public void sendUssdRequest(String, android.telephony.TelephonyManager.UssdResponseCallback, android.os.Handler);
method public void sendVisualVoicemailSms(String, int, String, android.app.PendingIntent);
+ method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setCallComposerStatus(int);
method @Deprecated @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setDataEnabled(boolean);
method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setDataEnabledForReason(int, boolean);
method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public int setForbiddenPlmns(@NonNull java.util.List<java.lang.String>);
@@ -41830,6 +41147,8 @@
field public static final int APPTYPE_USIM = 2; // 0x2
field public static final int AUTHTYPE_EAP_AKA = 129; // 0x81
field public static final int AUTHTYPE_EAP_SIM = 128; // 0x80
+ field public static final int CALL_COMPOSER_STATUS_OFF = 0; // 0x0
+ field public static final int CALL_COMPOSER_STATUS_ON = 1; // 0x1
field public static final int CALL_STATE_IDLE = 0; // 0x0
field public static final int CALL_STATE_OFFHOOK = 2; // 0x2
field public static final int CALL_STATE_RINGING = 1; // 0x1
@@ -42582,6 +41901,7 @@
public static class MmTelFeature.MmTelCapabilities {
method public final boolean isCapable(int);
+ field public static final int CAPABILITY_TYPE_CALL_COMPOSER = 16; // 0x10
field public static final int CAPABILITY_TYPE_SMS = 8; // 0x8
field public static final int CAPABILITY_TYPE_UT = 4; // 0x4
field public static final int CAPABILITY_TYPE_VIDEO = 2; // 0x2
@@ -45333,7 +44653,7 @@
field public static final java.util.regex.Pattern DOMAIN_NAME;
field public static final java.util.regex.Pattern EMAIL_ADDRESS;
field @Deprecated public static final String GOOD_IRI_CHAR = "a-zA-Z0-9\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef";
- field public static final java.util.regex.Pattern IP_ADDRESS;
+ field @Deprecated public static final java.util.regex.Pattern IP_ADDRESS;
field public static final java.util.regex.Pattern PHONE;
field @Deprecated public static final java.util.regex.Pattern TOP_LEVEL_DOMAIN;
field @Deprecated public static final String TOP_LEVEL_DOMAIN_STR = "((aero|arpa|asia|a[cdefgilmnoqrstuwxz])|(biz|b[abdefghijmnorstvwyz])|(cat|com|coop|c[acdfghiklmnoruvxyz])|d[ejkmoz]|(edu|e[cegrstu])|f[ijkmor]|(gov|g[abdefghilmnpqrstuwy])|h[kmnrtu]|(info|int|i[delmnoqrst])|(jobs|j[emop])|k[eghimnprwyz]|l[abcikrstuvy]|(mil|mobi|museum|m[acdeghklmnopqrstuvwxyz])|(name|net|n[acefgilopruz])|(org|om)|(pro|p[aefghklmnrstwy])|qa|r[eosuw]|s[abcdeghijklmnortuvyz]|(tel|travel|t[cdfghjklmnoprtvwz])|u[agksyz]|v[aceginu]|w[fs]|(\u03b4\u03bf\u03ba\u03b9\u03bc\u03ae|\u0438\u0441\u043f\u044b\u0442\u0430\u043d\u0438\u0435|\u0440\u0444|\u0441\u0440\u0431|\u05d8\u05e2\u05e1\u05d8|\u0622\u0632\u0645\u0627\u06cc\u0634\u06cc|\u0625\u062e\u062a\u0628\u0627\u0631|\u0627\u0644\u0627\u0631\u062f\u0646|\u0627\u0644\u062c\u0632\u0627\u0626\u0631|\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629|\u0627\u0644\u0645\u063a\u0631\u0628|\u0627\u0645\u0627\u0631\u0627\u062a|\u0628\u06be\u0627\u0631\u062a|\u062a\u0648\u0646\u0633|\u0633\u0648\u0631\u064a\u0629|\u0641\u0644\u0633\u0637\u064a\u0646|\u0642\u0637\u0631|\u0645\u0635\u0631|\u092a\u0930\u0940\u0915\u094d\u0937\u093e|\u092d\u093e\u0930\u0924|\u09ad\u09be\u09b0\u09a4|\u0a2d\u0a3e\u0a30\u0a24|\u0aad\u0abe\u0ab0\u0aa4|\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe|\u0b87\u0bb2\u0b99\u0bcd\u0b95\u0bc8|\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd|\u0baa\u0bb0\u0bbf\u0b9f\u0bcd\u0b9a\u0bc8|\u0c2d\u0c3e\u0c30\u0c24\u0c4d|\u0dbd\u0d82\u0d9a\u0dcf|\u0e44\u0e17\u0e22|\u30c6\u30b9\u30c8|\u4e2d\u56fd|\u4e2d\u570b|\u53f0\u6e7e|\u53f0\u7063|\u65b0\u52a0\u5761|\u6d4b\u8bd5|\u6e2c\u8a66|\u9999\u6e2f|\ud14c\uc2a4\ud2b8|\ud55c\uad6d|xn\\-\\-0zwm56d|xn\\-\\-11b5bs3a9aj6g|xn\\-\\-3e0b707e|xn\\-\\-45brj9c|xn\\-\\-80akhbyknj4f|xn\\-\\-90a3ac|xn\\-\\-9t4b11yi5a|xn\\-\\-clchc0ea0b2g2a9gcd|xn\\-\\-deba0ad|xn\\-\\-fiqs8s|xn\\-\\-fiqz9s|xn\\-\\-fpcrj9c3d|xn\\-\\-fzc2c9e2c|xn\\-\\-g6w251d|xn\\-\\-gecrj9c|xn\\-\\-h2brj9c|xn\\-\\-hgbk6aj7f53bba|xn\\-\\-hlcj6aya9esc7a|xn\\-\\-j6w193g|xn\\-\\-jxalpdlp|xn\\-\\-kgbechtv|xn\\-\\-kprw13d|xn\\-\\-kpry57d|xn\\-\\-lgbbat1ad8j|xn\\-\\-mgbaam7a8h|xn\\-\\-mgbayh7gpa|xn\\-\\-mgbbh1a71e|xn\\-\\-mgbc0a9azcg|xn\\-\\-mgberp4a5d4ar|xn\\-\\-o3cw4h|xn\\-\\-ogbpf8fl|xn\\-\\-p1ai|xn\\-\\-pgbs0dh|xn\\-\\-s9brj9c|xn\\-\\-wgbh1c|xn\\-\\-wgbl6a|xn\\-\\-xkc2al3hye2a|xn\\-\\-xkc2dl3a5ee0h|xn\\-\\-yfro4i67o|xn\\-\\-ygbi2ammx|xn\\-\\-zckzah|xxx)|y[et]|z[amw])";
@@ -55201,16952 +54521,6 @@
}
-package dalvik.annotation {
-
- @Deprecated @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.ANNOTATION_TYPE}) public @interface TestTarget {
- method @Deprecated public abstract String conceptName() default "";
- method @Deprecated public abstract Class<?>[] methodArgs() default {};
- method @Deprecated public abstract String methodName() default "";
- }
-
- @Deprecated @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE}) public @interface TestTargetClass {
- method @Deprecated public abstract Class<?> value();
- }
-
-}
-
-package dalvik.bytecode {
-
- public final class OpcodeInfo {
- field public static final int MAXIMUM_PACKED_VALUE;
- field public static final int MAXIMUM_VALUE;
- }
-
- public interface Opcodes {
- field public static final int OP_ADD_DOUBLE = 171; // 0xab
- field public static final int OP_ADD_DOUBLE_2ADDR = 203; // 0xcb
- field public static final int OP_ADD_FLOAT = 166; // 0xa6
- field public static final int OP_ADD_FLOAT_2ADDR = 198; // 0xc6
- field public static final int OP_ADD_INT = 144; // 0x90
- field public static final int OP_ADD_INT_2ADDR = 176; // 0xb0
- field public static final int OP_ADD_INT_LIT16 = 208; // 0xd0
- field public static final int OP_ADD_INT_LIT8 = 216; // 0xd8
- field public static final int OP_ADD_LONG = 155; // 0x9b
- field public static final int OP_ADD_LONG_2ADDR = 187; // 0xbb
- field public static final int OP_AGET = 68; // 0x44
- field public static final int OP_AGET_BOOLEAN = 71; // 0x47
- field public static final int OP_AGET_BYTE = 72; // 0x48
- field public static final int OP_AGET_CHAR = 73; // 0x49
- field public static final int OP_AGET_OBJECT = 70; // 0x46
- field public static final int OP_AGET_SHORT = 74; // 0x4a
- field public static final int OP_AGET_WIDE = 69; // 0x45
- field public static final int OP_AND_INT = 149; // 0x95
- field public static final int OP_AND_INT_2ADDR = 181; // 0xb5
- field public static final int OP_AND_INT_LIT16 = 213; // 0xd5
- field public static final int OP_AND_INT_LIT8 = 221; // 0xdd
- field public static final int OP_AND_LONG = 160; // 0xa0
- field public static final int OP_AND_LONG_2ADDR = 192; // 0xc0
- field public static final int OP_APUT = 75; // 0x4b
- field public static final int OP_APUT_BOOLEAN = 78; // 0x4e
- field public static final int OP_APUT_BYTE = 79; // 0x4f
- field public static final int OP_APUT_CHAR = 80; // 0x50
- field public static final int OP_APUT_OBJECT = 77; // 0x4d
- field public static final int OP_APUT_SHORT = 81; // 0x51
- field public static final int OP_APUT_WIDE = 76; // 0x4c
- field public static final int OP_ARRAY_LENGTH = 33; // 0x21
- field @Deprecated public static final int OP_BREAKPOINT = 236; // 0xec
- field public static final int OP_CHECK_CAST = 31; // 0x1f
- field public static final int OP_CHECK_CAST_JUMBO = 511; // 0x1ff
- field public static final int OP_CMPG_DOUBLE = 48; // 0x30
- field public static final int OP_CMPG_FLOAT = 46; // 0x2e
- field public static final int OP_CMPL_DOUBLE = 47; // 0x2f
- field public static final int OP_CMPL_FLOAT = 45; // 0x2d
- field public static final int OP_CMP_LONG = 49; // 0x31
- field public static final int OP_CONST = 20; // 0x14
- field public static final int OP_CONST_16 = 19; // 0x13
- field public static final int OP_CONST_4 = 18; // 0x12
- field public static final int OP_CONST_CLASS = 28; // 0x1c
- field public static final int OP_CONST_CLASS_JUMBO = 255; // 0xff
- field public static final int OP_CONST_HIGH16 = 21; // 0x15
- field public static final int OP_CONST_METHOD_HANDLE = 254; // 0xfe
- field public static final int OP_CONST_METHOD_TYPE = 255; // 0xff
- field public static final int OP_CONST_STRING = 26; // 0x1a
- field public static final int OP_CONST_STRING_JUMBO = 27; // 0x1b
- field public static final int OP_CONST_WIDE = 24; // 0x18
- field public static final int OP_CONST_WIDE_16 = 22; // 0x16
- field public static final int OP_CONST_WIDE_32 = 23; // 0x17
- field public static final int OP_CONST_WIDE_HIGH16 = 25; // 0x19
- field public static final int OP_DIV_DOUBLE = 174; // 0xae
- field public static final int OP_DIV_DOUBLE_2ADDR = 206; // 0xce
- field public static final int OP_DIV_FLOAT = 169; // 0xa9
- field public static final int OP_DIV_FLOAT_2ADDR = 201; // 0xc9
- field public static final int OP_DIV_INT = 147; // 0x93
- field public static final int OP_DIV_INT_2ADDR = 179; // 0xb3
- field public static final int OP_DIV_INT_LIT16 = 211; // 0xd3
- field public static final int OP_DIV_INT_LIT8 = 219; // 0xdb
- field public static final int OP_DIV_LONG = 158; // 0x9e
- field public static final int OP_DIV_LONG_2ADDR = 190; // 0xbe
- field public static final int OP_DOUBLE_TO_FLOAT = 140; // 0x8c
- field public static final int OP_DOUBLE_TO_INT = 138; // 0x8a
- field public static final int OP_DOUBLE_TO_LONG = 139; // 0x8b
- field @Deprecated public static final int OP_EXECUTE_INLINE = 238; // 0xee
- field @Deprecated public static final int OP_EXECUTE_INLINE_RANGE = 239; // 0xef
- field public static final int OP_FILLED_NEW_ARRAY = 36; // 0x24
- field public static final int OP_FILLED_NEW_ARRAY_JUMBO = 1535; // 0x5ff
- field public static final int OP_FILLED_NEW_ARRAY_RANGE = 37; // 0x25
- field public static final int OP_FILL_ARRAY_DATA = 38; // 0x26
- field public static final int OP_FLOAT_TO_DOUBLE = 137; // 0x89
- field public static final int OP_FLOAT_TO_INT = 135; // 0x87
- field public static final int OP_FLOAT_TO_LONG = 136; // 0x88
- field public static final int OP_GOTO = 40; // 0x28
- field public static final int OP_GOTO_16 = 41; // 0x29
- field public static final int OP_GOTO_32 = 42; // 0x2a
- field public static final int OP_IF_EQ = 50; // 0x32
- field public static final int OP_IF_EQZ = 56; // 0x38
- field public static final int OP_IF_GE = 53; // 0x35
- field public static final int OP_IF_GEZ = 59; // 0x3b
- field public static final int OP_IF_GT = 54; // 0x36
- field public static final int OP_IF_GTZ = 60; // 0x3c
- field public static final int OP_IF_LE = 55; // 0x37
- field public static final int OP_IF_LEZ = 61; // 0x3d
- field public static final int OP_IF_LT = 52; // 0x34
- field public static final int OP_IF_LTZ = 58; // 0x3a
- field public static final int OP_IF_NE = 51; // 0x33
- field public static final int OP_IF_NEZ = 57; // 0x39
- field public static final int OP_IGET = 82; // 0x52
- field public static final int OP_IGET_BOOLEAN = 85; // 0x55
- field public static final int OP_IGET_BOOLEAN_JUMBO = 2559; // 0x9ff
- field public static final int OP_IGET_BYTE = 86; // 0x56
- field public static final int OP_IGET_BYTE_JUMBO = 2815; // 0xaff
- field public static final int OP_IGET_CHAR = 87; // 0x57
- field public static final int OP_IGET_CHAR_JUMBO = 3071; // 0xbff
- field public static final int OP_IGET_JUMBO = 1791; // 0x6ff
- field public static final int OP_IGET_OBJECT = 84; // 0x54
- field public static final int OP_IGET_OBJECT_JUMBO = 2303; // 0x8ff
- field @Deprecated public static final int OP_IGET_OBJECT_QUICK = 244; // 0xf4
- field @Deprecated public static final int OP_IGET_QUICK = 242; // 0xf2
- field public static final int OP_IGET_SHORT = 88; // 0x58
- field public static final int OP_IGET_SHORT_JUMBO = 3327; // 0xcff
- field public static final int OP_IGET_WIDE = 83; // 0x53
- field public static final int OP_IGET_WIDE_JUMBO = 2047; // 0x7ff
- field @Deprecated public static final int OP_IGET_WIDE_QUICK = 243; // 0xf3
- field @Deprecated public static final int OP_IGET_WIDE_VOLATILE = 232; // 0xe8
- field public static final int OP_INSTANCE_OF = 32; // 0x20
- field public static final int OP_INSTANCE_OF_JUMBO = 767; // 0x2ff
- field public static final int OP_INT_TO_BYTE = 141; // 0x8d
- field public static final int OP_INT_TO_CHAR = 142; // 0x8e
- field public static final int OP_INT_TO_DOUBLE = 131; // 0x83
- field public static final int OP_INT_TO_FLOAT = 130; // 0x82
- field public static final int OP_INT_TO_LONG = 129; // 0x81
- field public static final int OP_INT_TO_SHORT = 143; // 0x8f
- field public static final int OP_INVOKE_CUSTOM = 252; // 0xfc
- field public static final int OP_INVOKE_CUSTOM_RANGE = 253; // 0xfd
- field public static final int OP_INVOKE_DIRECT = 112; // 0x70
- field @Deprecated public static final int OP_INVOKE_DIRECT_EMPTY = 240; // 0xf0
- field public static final int OP_INVOKE_DIRECT_JUMBO = 9471; // 0x24ff
- field public static final int OP_INVOKE_DIRECT_RANGE = 118; // 0x76
- field public static final int OP_INVOKE_INTERFACE = 114; // 0x72
- field public static final int OP_INVOKE_INTERFACE_JUMBO = 9983; // 0x26ff
- field public static final int OP_INVOKE_INTERFACE_RANGE = 120; // 0x78
- field public static final int OP_INVOKE_POLYMORPHIC = 250; // 0xfa
- field public static final int OP_INVOKE_POLYMORPHIC_RANGE = 251; // 0xfb
- field public static final int OP_INVOKE_STATIC = 113; // 0x71
- field public static final int OP_INVOKE_STATIC_JUMBO = 9727; // 0x25ff
- field public static final int OP_INVOKE_STATIC_RANGE = 119; // 0x77
- field public static final int OP_INVOKE_SUPER = 111; // 0x6f
- field public static final int OP_INVOKE_SUPER_JUMBO = 9215; // 0x23ff
- field @Deprecated public static final int OP_INVOKE_SUPER_QUICK = 250; // 0xfa
- field @Deprecated public static final int OP_INVOKE_SUPER_QUICK_RANGE = 251; // 0xfb
- field public static final int OP_INVOKE_SUPER_RANGE = 117; // 0x75
- field public static final int OP_INVOKE_VIRTUAL = 110; // 0x6e
- field public static final int OP_INVOKE_VIRTUAL_JUMBO = 8959; // 0x22ff
- field @Deprecated public static final int OP_INVOKE_VIRTUAL_QUICK = 248; // 0xf8
- field @Deprecated public static final int OP_INVOKE_VIRTUAL_QUICK_RANGE = 249; // 0xf9
- field public static final int OP_INVOKE_VIRTUAL_RANGE = 116; // 0x74
- field public static final int OP_IPUT = 89; // 0x59
- field public static final int OP_IPUT_BOOLEAN = 92; // 0x5c
- field public static final int OP_IPUT_BOOLEAN_JUMBO = 4351; // 0x10ff
- field public static final int OP_IPUT_BYTE = 93; // 0x5d
- field public static final int OP_IPUT_BYTE_JUMBO = 4607; // 0x11ff
- field public static final int OP_IPUT_CHAR = 94; // 0x5e
- field public static final int OP_IPUT_CHAR_JUMBO = 4863; // 0x12ff
- field public static final int OP_IPUT_JUMBO = 3583; // 0xdff
- field public static final int OP_IPUT_OBJECT = 91; // 0x5b
- field public static final int OP_IPUT_OBJECT_JUMBO = 4095; // 0xfff
- field @Deprecated public static final int OP_IPUT_OBJECT_QUICK = 247; // 0xf7
- field @Deprecated public static final int OP_IPUT_QUICK = 245; // 0xf5
- field public static final int OP_IPUT_SHORT = 95; // 0x5f
- field public static final int OP_IPUT_SHORT_JUMBO = 5119; // 0x13ff
- field public static final int OP_IPUT_WIDE = 90; // 0x5a
- field public static final int OP_IPUT_WIDE_JUMBO = 3839; // 0xeff
- field @Deprecated public static final int OP_IPUT_WIDE_QUICK = 246; // 0xf6
- field @Deprecated public static final int OP_IPUT_WIDE_VOLATILE = 233; // 0xe9
- field public static final int OP_LONG_TO_DOUBLE = 134; // 0x86
- field public static final int OP_LONG_TO_FLOAT = 133; // 0x85
- field public static final int OP_LONG_TO_INT = 132; // 0x84
- field public static final int OP_MONITOR_ENTER = 29; // 0x1d
- field public static final int OP_MONITOR_EXIT = 30; // 0x1e
- field public static final int OP_MOVE = 1; // 0x1
- field public static final int OP_MOVE_16 = 3; // 0x3
- field public static final int OP_MOVE_EXCEPTION = 13; // 0xd
- field public static final int OP_MOVE_FROM16 = 2; // 0x2
- field public static final int OP_MOVE_OBJECT = 7; // 0x7
- field public static final int OP_MOVE_OBJECT_16 = 9; // 0x9
- field public static final int OP_MOVE_OBJECT_FROM16 = 8; // 0x8
- field public static final int OP_MOVE_RESULT = 10; // 0xa
- field public static final int OP_MOVE_RESULT_OBJECT = 12; // 0xc
- field public static final int OP_MOVE_RESULT_WIDE = 11; // 0xb
- field public static final int OP_MOVE_WIDE = 4; // 0x4
- field public static final int OP_MOVE_WIDE_16 = 6; // 0x6
- field public static final int OP_MOVE_WIDE_FROM16 = 5; // 0x5
- field public static final int OP_MUL_DOUBLE = 173; // 0xad
- field public static final int OP_MUL_DOUBLE_2ADDR = 205; // 0xcd
- field public static final int OP_MUL_FLOAT = 168; // 0xa8
- field public static final int OP_MUL_FLOAT_2ADDR = 200; // 0xc8
- field public static final int OP_MUL_INT = 146; // 0x92
- field public static final int OP_MUL_INT_2ADDR = 178; // 0xb2
- field public static final int OP_MUL_INT_LIT16 = 210; // 0xd2
- field public static final int OP_MUL_INT_LIT8 = 218; // 0xda
- field public static final int OP_MUL_LONG = 157; // 0x9d
- field public static final int OP_MUL_LONG_2ADDR = 189; // 0xbd
- field public static final int OP_NEG_DOUBLE = 128; // 0x80
- field public static final int OP_NEG_FLOAT = 127; // 0x7f
- field public static final int OP_NEG_INT = 123; // 0x7b
- field public static final int OP_NEG_LONG = 125; // 0x7d
- field public static final int OP_NEW_ARRAY = 35; // 0x23
- field public static final int OP_NEW_ARRAY_JUMBO = 1279; // 0x4ff
- field public static final int OP_NEW_INSTANCE = 34; // 0x22
- field public static final int OP_NEW_INSTANCE_JUMBO = 1023; // 0x3ff
- field public static final int OP_NOP = 0; // 0x0
- field public static final int OP_NOT_INT = 124; // 0x7c
- field public static final int OP_NOT_LONG = 126; // 0x7e
- field public static final int OP_OR_INT = 150; // 0x96
- field public static final int OP_OR_INT_2ADDR = 182; // 0xb6
- field public static final int OP_OR_INT_LIT16 = 214; // 0xd6
- field public static final int OP_OR_INT_LIT8 = 222; // 0xde
- field public static final int OP_OR_LONG = 161; // 0xa1
- field public static final int OP_OR_LONG_2ADDR = 193; // 0xc1
- field public static final int OP_PACKED_SWITCH = 43; // 0x2b
- field public static final int OP_REM_DOUBLE = 175; // 0xaf
- field public static final int OP_REM_DOUBLE_2ADDR = 207; // 0xcf
- field public static final int OP_REM_FLOAT = 170; // 0xaa
- field public static final int OP_REM_FLOAT_2ADDR = 202; // 0xca
- field public static final int OP_REM_INT = 148; // 0x94
- field public static final int OP_REM_INT_2ADDR = 180; // 0xb4
- field public static final int OP_REM_INT_LIT16 = 212; // 0xd4
- field public static final int OP_REM_INT_LIT8 = 220; // 0xdc
- field public static final int OP_REM_LONG = 159; // 0x9f
- field public static final int OP_REM_LONG_2ADDR = 191; // 0xbf
- field public static final int OP_RETURN = 15; // 0xf
- field public static final int OP_RETURN_OBJECT = 17; // 0x11
- field public static final int OP_RETURN_VOID = 14; // 0xe
- field public static final int OP_RETURN_WIDE = 16; // 0x10
- field public static final int OP_RSUB_INT = 209; // 0xd1
- field public static final int OP_RSUB_INT_LIT8 = 217; // 0xd9
- field public static final int OP_SGET = 96; // 0x60
- field public static final int OP_SGET_BOOLEAN = 99; // 0x63
- field public static final int OP_SGET_BOOLEAN_JUMBO = 6143; // 0x17ff
- field public static final int OP_SGET_BYTE = 100; // 0x64
- field public static final int OP_SGET_BYTE_JUMBO = 6399; // 0x18ff
- field public static final int OP_SGET_CHAR = 101; // 0x65
- field public static final int OP_SGET_CHAR_JUMBO = 6655; // 0x19ff
- field public static final int OP_SGET_JUMBO = 5375; // 0x14ff
- field public static final int OP_SGET_OBJECT = 98; // 0x62
- field public static final int OP_SGET_OBJECT_JUMBO = 5887; // 0x16ff
- field public static final int OP_SGET_SHORT = 102; // 0x66
- field public static final int OP_SGET_SHORT_JUMBO = 6911; // 0x1aff
- field public static final int OP_SGET_WIDE = 97; // 0x61
- field public static final int OP_SGET_WIDE_JUMBO = 5631; // 0x15ff
- field @Deprecated public static final int OP_SGET_WIDE_VOLATILE = 234; // 0xea
- field public static final int OP_SHL_INT = 152; // 0x98
- field public static final int OP_SHL_INT_2ADDR = 184; // 0xb8
- field public static final int OP_SHL_INT_LIT8 = 224; // 0xe0
- field public static final int OP_SHL_LONG = 163; // 0xa3
- field public static final int OP_SHL_LONG_2ADDR = 195; // 0xc3
- field public static final int OP_SHR_INT = 153; // 0x99
- field public static final int OP_SHR_INT_2ADDR = 185; // 0xb9
- field public static final int OP_SHR_INT_LIT8 = 225; // 0xe1
- field public static final int OP_SHR_LONG = 164; // 0xa4
- field public static final int OP_SHR_LONG_2ADDR = 196; // 0xc4
- field public static final int OP_SPARSE_SWITCH = 44; // 0x2c
- field public static final int OP_SPUT = 103; // 0x67
- field public static final int OP_SPUT_BOOLEAN = 106; // 0x6a
- field public static final int OP_SPUT_BOOLEAN_JUMBO = 7935; // 0x1eff
- field public static final int OP_SPUT_BYTE = 107; // 0x6b
- field public static final int OP_SPUT_BYTE_JUMBO = 8191; // 0x1fff
- field public static final int OP_SPUT_CHAR = 108; // 0x6c
- field public static final int OP_SPUT_CHAR_JUMBO = 8447; // 0x20ff
- field public static final int OP_SPUT_JUMBO = 7167; // 0x1bff
- field public static final int OP_SPUT_OBJECT = 105; // 0x69
- field public static final int OP_SPUT_OBJECT_JUMBO = 7679; // 0x1dff
- field public static final int OP_SPUT_SHORT = 109; // 0x6d
- field public static final int OP_SPUT_SHORT_JUMBO = 8703; // 0x21ff
- field public static final int OP_SPUT_WIDE = 104; // 0x68
- field public static final int OP_SPUT_WIDE_JUMBO = 7423; // 0x1cff
- field @Deprecated public static final int OP_SPUT_WIDE_VOLATILE = 235; // 0xeb
- field public static final int OP_SUB_DOUBLE = 172; // 0xac
- field public static final int OP_SUB_DOUBLE_2ADDR = 204; // 0xcc
- field public static final int OP_SUB_FLOAT = 167; // 0xa7
- field public static final int OP_SUB_FLOAT_2ADDR = 199; // 0xc7
- field public static final int OP_SUB_INT = 145; // 0x91
- field public static final int OP_SUB_INT_2ADDR = 177; // 0xb1
- field public static final int OP_SUB_LONG = 156; // 0x9c
- field public static final int OP_SUB_LONG_2ADDR = 188; // 0xbc
- field public static final int OP_THROW = 39; // 0x27
- field @Deprecated public static final int OP_THROW_VERIFICATION_ERROR = 237; // 0xed
- field public static final int OP_USHR_INT = 154; // 0x9a
- field public static final int OP_USHR_INT_2ADDR = 186; // 0xba
- field public static final int OP_USHR_INT_LIT8 = 226; // 0xe2
- field public static final int OP_USHR_LONG = 165; // 0xa5
- field public static final int OP_USHR_LONG_2ADDR = 197; // 0xc5
- field public static final int OP_XOR_INT = 151; // 0x97
- field public static final int OP_XOR_INT_2ADDR = 183; // 0xb7
- field public static final int OP_XOR_INT_LIT16 = 215; // 0xd7
- field public static final int OP_XOR_INT_LIT8 = 223; // 0xdf
- field public static final int OP_XOR_LONG = 162; // 0xa2
- field public static final int OP_XOR_LONG_2ADDR = 194; // 0xc2
- }
-
-}
-
-package dalvik.system {
-
- public class BaseDexClassLoader extends java.lang.ClassLoader {
- ctor public BaseDexClassLoader(String, java.io.File, String, ClassLoader);
- method public String findLibrary(String);
- method protected java.util.Enumeration<java.net.URL> findResources(String);
- }
-
- public final class DelegateLastClassLoader extends dalvik.system.PathClassLoader {
- ctor public DelegateLastClassLoader(String, ClassLoader);
- ctor public DelegateLastClassLoader(String, String, ClassLoader);
- ctor public DelegateLastClassLoader(@NonNull String, @Nullable String, @Nullable ClassLoader, boolean);
- }
-
- public class DexClassLoader extends dalvik.system.BaseDexClassLoader {
- ctor public DexClassLoader(String, String, String, ClassLoader);
- }
-
- @Deprecated public final class DexFile {
- ctor @Deprecated public DexFile(java.io.File) throws java.io.IOException;
- ctor @Deprecated public DexFile(String) throws java.io.IOException;
- method @Deprecated public void close() throws java.io.IOException;
- method @Deprecated public java.util.Enumeration<java.lang.String> entries();
- method @Deprecated public String getName();
- method @Deprecated public static boolean isDexOptNeeded(String) throws java.io.FileNotFoundException, java.io.IOException;
- method @Deprecated public Class loadClass(String, ClassLoader);
- method @Deprecated public static dalvik.system.DexFile loadDex(String, String, int) throws java.io.IOException;
- }
-
- public final class InMemoryDexClassLoader extends dalvik.system.BaseDexClassLoader {
- ctor public InMemoryDexClassLoader(@NonNull java.nio.ByteBuffer[], @Nullable String, @Nullable ClassLoader);
- ctor public InMemoryDexClassLoader(@NonNull java.nio.ByteBuffer[], @Nullable ClassLoader);
- ctor public InMemoryDexClassLoader(@NonNull java.nio.ByteBuffer, @Nullable ClassLoader);
- }
-
- public class PathClassLoader extends dalvik.system.BaseDexClassLoader {
- ctor public PathClassLoader(String, ClassLoader);
- ctor public PathClassLoader(String, String, ClassLoader);
- }
-
-}
-
-package java.awt.font {
-
- public final class NumericShaper implements java.io.Serializable {
- method public static java.awt.font.NumericShaper getContextualShaper(int);
- method public static java.awt.font.NumericShaper getContextualShaper(java.util.Set<java.awt.font.NumericShaper.Range>);
- method public static java.awt.font.NumericShaper getContextualShaper(int, int);
- method public static java.awt.font.NumericShaper getContextualShaper(java.util.Set<java.awt.font.NumericShaper.Range>, java.awt.font.NumericShaper.Range);
- method public java.util.Set<java.awt.font.NumericShaper.Range> getRangeSet();
- method public int getRanges();
- method public static java.awt.font.NumericShaper getShaper(int);
- method public static java.awt.font.NumericShaper getShaper(java.awt.font.NumericShaper.Range);
- method public boolean isContextual();
- method public void shape(char[], int, int);
- method public void shape(char[], int, int, int);
- method public void shape(char[], int, int, java.awt.font.NumericShaper.Range);
- field public static final int ALL_RANGES = 524287; // 0x7ffff
- field public static final int ARABIC = 2; // 0x2
- field public static final int BENGALI = 16; // 0x10
- field public static final int DEVANAGARI = 8; // 0x8
- field public static final int EASTERN_ARABIC = 4; // 0x4
- field public static final int ETHIOPIC = 65536; // 0x10000
- field public static final int EUROPEAN = 1; // 0x1
- field public static final int GUJARATI = 64; // 0x40
- field public static final int GURMUKHI = 32; // 0x20
- field public static final int KANNADA = 1024; // 0x400
- field public static final int KHMER = 131072; // 0x20000
- field public static final int LAO = 8192; // 0x2000
- field public static final int MALAYALAM = 2048; // 0x800
- field public static final int MONGOLIAN = 262144; // 0x40000
- field public static final int MYANMAR = 32768; // 0x8000
- field public static final int ORIYA = 128; // 0x80
- field public static final int TAMIL = 256; // 0x100
- field public static final int TELUGU = 512; // 0x200
- field public static final int THAI = 4096; // 0x1000
- field public static final int TIBETAN = 16384; // 0x4000
- }
-
- public enum NumericShaper.Range {
- enum_constant public static final java.awt.font.NumericShaper.Range ARABIC;
- enum_constant public static final java.awt.font.NumericShaper.Range BALINESE;
- enum_constant public static final java.awt.font.NumericShaper.Range BENGALI;
- enum_constant public static final java.awt.font.NumericShaper.Range CHAM;
- enum_constant public static final java.awt.font.NumericShaper.Range DEVANAGARI;
- enum_constant public static final java.awt.font.NumericShaper.Range EASTERN_ARABIC;
- enum_constant public static final java.awt.font.NumericShaper.Range ETHIOPIC;
- enum_constant public static final java.awt.font.NumericShaper.Range EUROPEAN;
- enum_constant public static final java.awt.font.NumericShaper.Range GUJARATI;
- enum_constant public static final java.awt.font.NumericShaper.Range GURMUKHI;
- enum_constant public static final java.awt.font.NumericShaper.Range JAVANESE;
- enum_constant public static final java.awt.font.NumericShaper.Range KANNADA;
- enum_constant public static final java.awt.font.NumericShaper.Range KAYAH_LI;
- enum_constant public static final java.awt.font.NumericShaper.Range KHMER;
- enum_constant public static final java.awt.font.NumericShaper.Range LAO;
- enum_constant public static final java.awt.font.NumericShaper.Range LEPCHA;
- enum_constant public static final java.awt.font.NumericShaper.Range LIMBU;
- enum_constant public static final java.awt.font.NumericShaper.Range MALAYALAM;
- enum_constant public static final java.awt.font.NumericShaper.Range MEETEI_MAYEK;
- enum_constant public static final java.awt.font.NumericShaper.Range MONGOLIAN;
- enum_constant public static final java.awt.font.NumericShaper.Range MYANMAR;
- enum_constant public static final java.awt.font.NumericShaper.Range MYANMAR_SHAN;
- enum_constant public static final java.awt.font.NumericShaper.Range NEW_TAI_LUE;
- enum_constant public static final java.awt.font.NumericShaper.Range NKO;
- enum_constant public static final java.awt.font.NumericShaper.Range OL_CHIKI;
- enum_constant public static final java.awt.font.NumericShaper.Range ORIYA;
- enum_constant public static final java.awt.font.NumericShaper.Range SAURASHTRA;
- enum_constant public static final java.awt.font.NumericShaper.Range SUNDANESE;
- enum_constant public static final java.awt.font.NumericShaper.Range TAI_THAM_HORA;
- enum_constant public static final java.awt.font.NumericShaper.Range TAI_THAM_THAM;
- enum_constant public static final java.awt.font.NumericShaper.Range TAMIL;
- enum_constant public static final java.awt.font.NumericShaper.Range TELUGU;
- enum_constant public static final java.awt.font.NumericShaper.Range THAI;
- enum_constant public static final java.awt.font.NumericShaper.Range TIBETAN;
- enum_constant public static final java.awt.font.NumericShaper.Range VAI;
- }
-
- public final class TextAttribute extends java.text.AttributedCharacterIterator.Attribute {
- ctor protected TextAttribute(String);
- field public static final java.awt.font.TextAttribute BACKGROUND;
- field public static final java.awt.font.TextAttribute BIDI_EMBEDDING;
- field public static final java.awt.font.TextAttribute CHAR_REPLACEMENT;
- field public static final java.awt.font.TextAttribute FAMILY;
- field public static final java.awt.font.TextAttribute FONT;
- field public static final java.awt.font.TextAttribute FOREGROUND;
- field public static final java.awt.font.TextAttribute INPUT_METHOD_HIGHLIGHT;
- field public static final java.awt.font.TextAttribute INPUT_METHOD_UNDERLINE;
- field public static final java.awt.font.TextAttribute JUSTIFICATION;
- field public static final Float JUSTIFICATION_FULL;
- field public static final Float JUSTIFICATION_NONE;
- field public static final java.awt.font.TextAttribute KERNING;
- field public static final Integer KERNING_ON;
- field public static final java.awt.font.TextAttribute LIGATURES;
- field public static final Integer LIGATURES_ON;
- field public static final java.awt.font.TextAttribute NUMERIC_SHAPING;
- field public static final java.awt.font.TextAttribute POSTURE;
- field public static final Float POSTURE_OBLIQUE;
- field public static final Float POSTURE_REGULAR;
- field public static final java.awt.font.TextAttribute RUN_DIRECTION;
- field public static final Boolean RUN_DIRECTION_LTR;
- field public static final Boolean RUN_DIRECTION_RTL;
- field public static final java.awt.font.TextAttribute SIZE;
- field public static final java.awt.font.TextAttribute STRIKETHROUGH;
- field public static final Boolean STRIKETHROUGH_ON;
- field public static final java.awt.font.TextAttribute SUPERSCRIPT;
- field public static final Integer SUPERSCRIPT_SUB;
- field public static final Integer SUPERSCRIPT_SUPER;
- field public static final java.awt.font.TextAttribute SWAP_COLORS;
- field public static final Boolean SWAP_COLORS_ON;
- field public static final java.awt.font.TextAttribute TRACKING;
- field public static final Float TRACKING_LOOSE;
- field public static final Float TRACKING_TIGHT;
- field public static final java.awt.font.TextAttribute TRANSFORM;
- field public static final java.awt.font.TextAttribute UNDERLINE;
- field public static final Integer UNDERLINE_LOW_DASHED;
- field public static final Integer UNDERLINE_LOW_DOTTED;
- field public static final Integer UNDERLINE_LOW_GRAY;
- field public static final Integer UNDERLINE_LOW_ONE_PIXEL;
- field public static final Integer UNDERLINE_LOW_TWO_PIXEL;
- field public static final Integer UNDERLINE_ON;
- field public static final java.awt.font.TextAttribute WEIGHT;
- field public static final Float WEIGHT_BOLD;
- field public static final Float WEIGHT_DEMIBOLD;
- field public static final Float WEIGHT_DEMILIGHT;
- field public static final Float WEIGHT_EXTRABOLD;
- field public static final Float WEIGHT_EXTRA_LIGHT;
- field public static final Float WEIGHT_HEAVY;
- field public static final Float WEIGHT_LIGHT;
- field public static final Float WEIGHT_MEDIUM;
- field public static final Float WEIGHT_REGULAR;
- field public static final Float WEIGHT_SEMIBOLD;
- field public static final Float WEIGHT_ULTRABOLD;
- field public static final java.awt.font.TextAttribute WIDTH;
- field public static final Float WIDTH_CONDENSED;
- field public static final Float WIDTH_EXTENDED;
- field public static final Float WIDTH_REGULAR;
- field public static final Float WIDTH_SEMI_CONDENSED;
- field public static final Float WIDTH_SEMI_EXTENDED;
- }
-
-}
-
-package java.beans {
-
- public class IndexedPropertyChangeEvent extends java.beans.PropertyChangeEvent {
- ctor public IndexedPropertyChangeEvent(Object, String, Object, Object, int);
- method public int getIndex();
- }
-
- public class PropertyChangeEvent extends java.util.EventObject {
- ctor public PropertyChangeEvent(Object, String, Object, Object);
- method public Object getNewValue();
- method public Object getOldValue();
- method public Object getPropagationId();
- method public String getPropertyName();
- method public void setPropagationId(Object);
- }
-
- public interface PropertyChangeListener extends java.util.EventListener {
- method public void propertyChange(java.beans.PropertyChangeEvent);
- }
-
- public class PropertyChangeListenerProxy extends java.util.EventListenerProxy<java.beans.PropertyChangeListener> implements java.beans.PropertyChangeListener {
- ctor public PropertyChangeListenerProxy(String, java.beans.PropertyChangeListener);
- method public String getPropertyName();
- method public void propertyChange(java.beans.PropertyChangeEvent);
- }
-
- public class PropertyChangeSupport implements java.io.Serializable {
- ctor public PropertyChangeSupport(Object);
- method public void addPropertyChangeListener(java.beans.PropertyChangeListener);
- method public void addPropertyChangeListener(String, java.beans.PropertyChangeListener);
- method public void fireIndexedPropertyChange(String, int, Object, Object);
- method public void fireIndexedPropertyChange(String, int, int, int);
- method public void fireIndexedPropertyChange(String, int, boolean, boolean);
- method public void firePropertyChange(String, Object, Object);
- method public void firePropertyChange(String, int, int);
- method public void firePropertyChange(String, boolean, boolean);
- method public void firePropertyChange(java.beans.PropertyChangeEvent);
- method public java.beans.PropertyChangeListener[] getPropertyChangeListeners();
- method public java.beans.PropertyChangeListener[] getPropertyChangeListeners(String);
- method public boolean hasListeners(String);
- method public void removePropertyChangeListener(java.beans.PropertyChangeListener);
- method public void removePropertyChangeListener(String, java.beans.PropertyChangeListener);
- }
-
-}
-
-package java.io {
-
- public class BufferedInputStream extends java.io.FilterInputStream {
- ctor public BufferedInputStream(java.io.InputStream);
- ctor public BufferedInputStream(java.io.InputStream, int);
- field protected volatile byte[] buf;
- field protected int count;
- field protected int marklimit;
- field protected int markpos;
- field protected int pos;
- }
-
- public class BufferedOutputStream extends java.io.FilterOutputStream {
- ctor public BufferedOutputStream(java.io.OutputStream);
- ctor public BufferedOutputStream(java.io.OutputStream, int);
- field protected byte[] buf;
- field protected int count;
- }
-
- public class BufferedReader extends java.io.Reader {
- ctor public BufferedReader(java.io.Reader, int);
- ctor public BufferedReader(java.io.Reader);
- method public void close() throws java.io.IOException;
- method public java.util.stream.Stream<java.lang.String> lines();
- method public int read(char[], int, int) throws java.io.IOException;
- method public String readLine() throws java.io.IOException;
- }
-
- public class BufferedWriter extends java.io.Writer {
- ctor public BufferedWriter(java.io.Writer);
- ctor public BufferedWriter(java.io.Writer, int);
- method public void close() throws java.io.IOException;
- method public void flush() throws java.io.IOException;
- method public void newLine() throws java.io.IOException;
- method public void write(char[], int, int) throws java.io.IOException;
- }
-
- public class ByteArrayInputStream extends java.io.InputStream {
- ctor public ByteArrayInputStream(byte[]);
- ctor public ByteArrayInputStream(byte[], int, int);
- method public int available();
- method public int read();
- method public int read(byte[], int, int);
- method public void reset();
- method public long skip(long);
- field protected byte[] buf;
- field protected int count;
- field protected int mark;
- field protected int pos;
- }
-
- public class ByteArrayOutputStream extends java.io.OutputStream {
- ctor public ByteArrayOutputStream();
- ctor public ByteArrayOutputStream(int);
- method public void reset();
- method public int size();
- method @NonNull public byte[] toByteArray();
- method @NonNull public String toString(@NonNull String) throws java.io.UnsupportedEncodingException;
- method @Deprecated @NonNull public String toString(int);
- method public void write(int);
- method public void write(@NonNull byte[], int, int);
- method public void writeTo(@NonNull java.io.OutputStream) throws java.io.IOException;
- field @NonNull protected byte[] buf;
- field protected int count;
- }
-
- public class CharArrayReader extends java.io.Reader {
- ctor public CharArrayReader(char[]);
- ctor public CharArrayReader(char[], int, int);
- method public void close();
- method public int read(char[], int, int) throws java.io.IOException;
- field protected char[] buf;
- field protected int count;
- field protected int markedPos;
- field protected int pos;
- }
-
- public class CharArrayWriter extends java.io.Writer {
- ctor public CharArrayWriter();
- ctor public CharArrayWriter(int);
- method public java.io.CharArrayWriter append(CharSequence);
- method public java.io.CharArrayWriter append(CharSequence, int, int);
- method public java.io.CharArrayWriter append(char);
- method public void close();
- method public void flush();
- method public void reset();
- method public int size();
- method public char[] toCharArray();
- method public void write(int);
- method public void write(char[], int, int);
- method public void write(String, int, int);
- method public void writeTo(java.io.Writer) throws java.io.IOException;
- field protected char[] buf;
- field protected int count;
- }
-
- public class CharConversionException extends java.io.IOException {
- ctor public CharConversionException();
- ctor public CharConversionException(String);
- }
-
- public interface Closeable extends java.lang.AutoCloseable {
- method public void close() throws java.io.IOException;
- }
-
- public final class Console implements java.io.Flushable {
- method public void flush();
- method public java.io.Console format(String, java.lang.Object...);
- method public java.io.Console printf(String, java.lang.Object...);
- method public String readLine(String, java.lang.Object...);
- method public String readLine();
- method public char[] readPassword(String, java.lang.Object...);
- method public char[] readPassword();
- method public java.io.Reader reader();
- method public java.io.PrintWriter writer();
- }
-
- public interface DataInput {
- method public boolean readBoolean() throws java.io.IOException;
- method public byte readByte() throws java.io.IOException;
- method public char readChar() throws java.io.IOException;
- method public double readDouble() throws java.io.IOException;
- method public float readFloat() throws java.io.IOException;
- method public void readFully(byte[]) throws java.io.IOException;
- method public void readFully(byte[], int, int) throws java.io.IOException;
- method public int readInt() throws java.io.IOException;
- method public String readLine() throws java.io.IOException;
- method public long readLong() throws java.io.IOException;
- method public short readShort() throws java.io.IOException;
- method public String readUTF() throws java.io.IOException;
- method public int readUnsignedByte() throws java.io.IOException;
- method public int readUnsignedShort() throws java.io.IOException;
- method public int skipBytes(int) throws java.io.IOException;
- }
-
- public class DataInputStream extends java.io.FilterInputStream implements java.io.DataInput {
- ctor public DataInputStream(java.io.InputStream);
- method public final int read(byte[]) throws java.io.IOException;
- method public final int read(byte[], int, int) throws java.io.IOException;
- method public final boolean readBoolean() throws java.io.IOException;
- method public final byte readByte() throws java.io.IOException;
- method public final char readChar() throws java.io.IOException;
- method public final double readDouble() throws java.io.IOException;
- method public final float readFloat() throws java.io.IOException;
- method public final void readFully(byte[]) throws java.io.IOException;
- method public final void readFully(byte[], int, int) throws java.io.IOException;
- method public final int readInt() throws java.io.IOException;
- method @Deprecated public final String readLine() throws java.io.IOException;
- method public final long readLong() throws java.io.IOException;
- method public final short readShort() throws java.io.IOException;
- method public final String readUTF() throws java.io.IOException;
- method public static final String readUTF(java.io.DataInput) throws java.io.IOException;
- method public final int readUnsignedByte() throws java.io.IOException;
- method public final int readUnsignedShort() throws java.io.IOException;
- method public final int skipBytes(int) throws java.io.IOException;
- }
-
- public interface DataOutput {
- method public void write(int) throws java.io.IOException;
- method public void write(byte[]) throws java.io.IOException;
- method public void write(byte[], int, int) throws java.io.IOException;
- method public void writeBoolean(boolean) throws java.io.IOException;
- method public void writeByte(int) throws java.io.IOException;
- method public void writeBytes(String) throws java.io.IOException;
- method public void writeChar(int) throws java.io.IOException;
- method public void writeChars(String) throws java.io.IOException;
- method public void writeDouble(double) throws java.io.IOException;
- method public void writeFloat(float) throws java.io.IOException;
- method public void writeInt(int) throws java.io.IOException;
- method public void writeLong(long) throws java.io.IOException;
- method public void writeShort(int) throws java.io.IOException;
- method public void writeUTF(String) throws java.io.IOException;
- }
-
- public class DataOutputStream extends java.io.FilterOutputStream implements java.io.DataOutput {
- ctor public DataOutputStream(java.io.OutputStream);
- method public final int size();
- method public final void writeBoolean(boolean) throws java.io.IOException;
- method public final void writeByte(int) throws java.io.IOException;
- method public final void writeBytes(String) throws java.io.IOException;
- method public final void writeChar(int) throws java.io.IOException;
- method public final void writeChars(String) throws java.io.IOException;
- method public final void writeDouble(double) throws java.io.IOException;
- method public final void writeFloat(float) throws java.io.IOException;
- method public final void writeInt(int) throws java.io.IOException;
- method public final void writeLong(long) throws java.io.IOException;
- method public final void writeShort(int) throws java.io.IOException;
- method public final void writeUTF(String) throws java.io.IOException;
- field protected int written;
- }
-
- public class EOFException extends java.io.IOException {
- ctor public EOFException();
- ctor public EOFException(String);
- }
-
- public interface Externalizable extends java.io.Serializable {
- method public void readExternal(java.io.ObjectInput) throws java.lang.ClassNotFoundException, java.io.IOException;
- method public void writeExternal(java.io.ObjectOutput) throws java.io.IOException;
- }
-
- public class File implements java.lang.Comparable<java.io.File> java.io.Serializable {
- ctor public File(@NonNull String);
- ctor public File(@Nullable String, @NonNull String);
- ctor public File(@Nullable java.io.File, @NonNull String);
- ctor public File(@NonNull java.net.URI);
- method public boolean canExecute();
- method public boolean canRead();
- method public boolean canWrite();
- method public int compareTo(@NonNull java.io.File);
- method public boolean createNewFile() throws java.io.IOException;
- method @NonNull public static java.io.File createTempFile(@NonNull String, @Nullable String, @Nullable java.io.File) throws java.io.IOException;
- method @NonNull public static java.io.File createTempFile(@NonNull String, @Nullable String) throws java.io.IOException;
- method public boolean delete();
- method public void deleteOnExit();
- method public boolean exists();
- method @NonNull public java.io.File getAbsoluteFile();
- method @NonNull public String getAbsolutePath();
- method @NonNull public java.io.File getCanonicalFile() throws java.io.IOException;
- method @NonNull public String getCanonicalPath() throws java.io.IOException;
- method public long getFreeSpace();
- method @NonNull public String getName();
- method @Nullable public String getParent();
- method @Nullable public java.io.File getParentFile();
- method @NonNull public String getPath();
- method public long getTotalSpace();
- method public long getUsableSpace();
- method public boolean isAbsolute();
- method public boolean isDirectory();
- method public boolean isFile();
- method public boolean isHidden();
- method public long lastModified();
- method public long length();
- method @Nullable public String[] list();
- method @Nullable public String[] list(@Nullable java.io.FilenameFilter);
- method @Nullable public java.io.File[] listFiles();
- method @Nullable public java.io.File[] listFiles(@Nullable java.io.FilenameFilter);
- method @Nullable public java.io.File[] listFiles(@Nullable java.io.FileFilter);
- method @NonNull public static java.io.File[] listRoots();
- method public boolean mkdir();
- method public boolean mkdirs();
- method public boolean renameTo(@NonNull java.io.File);
- method public boolean setExecutable(boolean, boolean);
- method public boolean setExecutable(boolean);
- method public boolean setLastModified(long);
- method public boolean setReadOnly();
- method public boolean setReadable(boolean, boolean);
- method public boolean setReadable(boolean);
- method public boolean setWritable(boolean, boolean);
- method public boolean setWritable(boolean);
- method @NonNull public java.nio.file.Path toPath();
- method @NonNull public java.net.URI toURI();
- method @Deprecated @NonNull public java.net.URL toURL() throws java.net.MalformedURLException;
- field @NonNull public static final String pathSeparator;
- field public static final char pathSeparatorChar;
- field @NonNull public static final String separator;
- field public static final char separatorChar;
- }
-
- public final class FileDescriptor {
- ctor public FileDescriptor();
- method public void sync() throws java.io.SyncFailedException;
- method public boolean valid();
- field public static final java.io.FileDescriptor err;
- field public static final java.io.FileDescriptor in;
- field public static final java.io.FileDescriptor out;
- }
-
- @java.lang.FunctionalInterface public interface FileFilter {
- method public boolean accept(java.io.File);
- }
-
- public class FileInputStream extends java.io.InputStream {
- ctor public FileInputStream(String) throws java.io.FileNotFoundException;
- ctor public FileInputStream(java.io.File) throws java.io.FileNotFoundException;
- ctor public FileInputStream(java.io.FileDescriptor);
- method protected void finalize() throws java.io.IOException;
- method public java.nio.channels.FileChannel getChannel();
- method public final java.io.FileDescriptor getFD() throws java.io.IOException;
- method public int read() throws java.io.IOException;
- }
-
- public class FileNotFoundException extends java.io.IOException {
- ctor public FileNotFoundException();
- ctor public FileNotFoundException(String);
- }
-
- public class FileOutputStream extends java.io.OutputStream {
- ctor public FileOutputStream(String) throws java.io.FileNotFoundException;
- ctor public FileOutputStream(String, boolean) throws java.io.FileNotFoundException;
- ctor public FileOutputStream(java.io.File) throws java.io.FileNotFoundException;
- ctor public FileOutputStream(java.io.File, boolean) throws java.io.FileNotFoundException;
- ctor public FileOutputStream(java.io.FileDescriptor);
- method protected void finalize() throws java.io.IOException;
- method public java.nio.channels.FileChannel getChannel();
- method public final java.io.FileDescriptor getFD() throws java.io.IOException;
- method public void write(int) throws java.io.IOException;
- }
-
- public final class FilePermission extends java.security.Permission implements java.io.Serializable {
- ctor public FilePermission(String, String);
- method public String getActions();
- method public boolean implies(java.security.Permission);
- }
-
- public class FileReader extends java.io.InputStreamReader {
- ctor public FileReader(String) throws java.io.FileNotFoundException;
- ctor public FileReader(java.io.File) throws java.io.FileNotFoundException;
- ctor public FileReader(java.io.FileDescriptor);
- }
-
- public class FileWriter extends java.io.OutputStreamWriter {
- ctor public FileWriter(String) throws java.io.IOException;
- ctor public FileWriter(String, boolean) throws java.io.IOException;
- ctor public FileWriter(java.io.File) throws java.io.IOException;
- ctor public FileWriter(java.io.File, boolean) throws java.io.IOException;
- ctor public FileWriter(java.io.FileDescriptor);
- }
-
- @java.lang.FunctionalInterface public interface FilenameFilter {
- method public boolean accept(java.io.File, String);
- }
-
- public class FilterInputStream extends java.io.InputStream {
- ctor protected FilterInputStream(java.io.InputStream);
- method public int read() throws java.io.IOException;
- field protected volatile java.io.InputStream in;
- }
-
- public class FilterOutputStream extends java.io.OutputStream {
- ctor public FilterOutputStream(java.io.OutputStream);
- method public void write(int) throws java.io.IOException;
- field protected java.io.OutputStream out;
- }
-
- public abstract class FilterReader extends java.io.Reader {
- ctor protected FilterReader(java.io.Reader);
- method public void close() throws java.io.IOException;
- method public int read(char[], int, int) throws java.io.IOException;
- field protected java.io.Reader in;
- }
-
- public abstract class FilterWriter extends java.io.Writer {
- ctor protected FilterWriter(java.io.Writer);
- method public void close() throws java.io.IOException;
- method public void flush() throws java.io.IOException;
- method public void write(char[], int, int) throws java.io.IOException;
- field protected java.io.Writer out;
- }
-
- public interface Flushable {
- method public void flush() throws java.io.IOException;
- }
-
- public class IOError extends java.lang.Error {
- ctor public IOError(Throwable);
- }
-
- public class IOException extends java.lang.Exception {
- ctor public IOException();
- ctor public IOException(String);
- ctor public IOException(String, Throwable);
- ctor public IOException(Throwable);
- }
-
- public abstract class InputStream implements java.io.Closeable {
- ctor public InputStream();
- method public int available() throws java.io.IOException;
- method public void close() throws java.io.IOException;
- method public void mark(int);
- method public boolean markSupported();
- method public abstract int read() throws java.io.IOException;
- method public int read(byte[]) throws java.io.IOException;
- method public int read(byte[], int, int) throws java.io.IOException;
- method public void reset() throws java.io.IOException;
- method public long skip(long) throws java.io.IOException;
- }
-
- public class InputStreamReader extends java.io.Reader {
- ctor public InputStreamReader(java.io.InputStream);
- ctor public InputStreamReader(java.io.InputStream, String) throws java.io.UnsupportedEncodingException;
- ctor public InputStreamReader(java.io.InputStream, java.nio.charset.Charset);
- ctor public InputStreamReader(java.io.InputStream, java.nio.charset.CharsetDecoder);
- method public void close() throws java.io.IOException;
- method public String getEncoding();
- method public int read(char[], int, int) throws java.io.IOException;
- }
-
- public class InterruptedIOException extends java.io.IOException {
- ctor public InterruptedIOException();
- ctor public InterruptedIOException(String);
- field public int bytesTransferred;
- }
-
- public class InvalidClassException extends java.io.ObjectStreamException {
- ctor public InvalidClassException(String);
- ctor public InvalidClassException(String, String);
- field public String classname;
- }
-
- public class InvalidObjectException extends java.io.ObjectStreamException {
- ctor public InvalidObjectException(String);
- }
-
- @Deprecated public class LineNumberInputStream extends java.io.FilterInputStream {
- ctor @Deprecated public LineNumberInputStream(java.io.InputStream);
- method @Deprecated public int getLineNumber();
- method @Deprecated public void setLineNumber(int);
- }
-
- public class LineNumberReader extends java.io.BufferedReader {
- ctor public LineNumberReader(java.io.Reader);
- ctor public LineNumberReader(java.io.Reader, int);
- method public int getLineNumber();
- method public void setLineNumber(int);
- }
-
- public class NotActiveException extends java.io.ObjectStreamException {
- ctor public NotActiveException(String);
- ctor public NotActiveException();
- }
-
- public class NotSerializableException extends java.io.ObjectStreamException {
- ctor public NotSerializableException(String);
- ctor public NotSerializableException();
- }
-
- public interface ObjectInput extends java.io.DataInput java.lang.AutoCloseable {
- method public int available() throws java.io.IOException;
- method public void close() throws java.io.IOException;
- method public int read() throws java.io.IOException;
- method public int read(byte[]) throws java.io.IOException;
- method public int read(byte[], int, int) throws java.io.IOException;
- method public Object readObject() throws java.lang.ClassNotFoundException, java.io.IOException;
- method public long skip(long) throws java.io.IOException;
- }
-
- public class ObjectInputStream extends java.io.InputStream implements java.io.ObjectInput java.io.ObjectStreamConstants {
- ctor public ObjectInputStream(java.io.InputStream) throws java.io.IOException;
- ctor protected ObjectInputStream() throws java.io.IOException, java.lang.SecurityException;
- method public void defaultReadObject() throws java.lang.ClassNotFoundException, java.io.IOException;
- method protected boolean enableResolveObject(boolean) throws java.lang.SecurityException;
- method public int read() throws java.io.IOException;
- method public boolean readBoolean() throws java.io.IOException;
- method public byte readByte() throws java.io.IOException;
- method public char readChar() throws java.io.IOException;
- method protected java.io.ObjectStreamClass readClassDescriptor() throws java.lang.ClassNotFoundException, java.io.IOException;
- method public double readDouble() throws java.io.IOException;
- method public java.io.ObjectInputStream.GetField readFields() throws java.lang.ClassNotFoundException, java.io.IOException;
- method public float readFloat() throws java.io.IOException;
- method public void readFully(byte[]) throws java.io.IOException;
- method public void readFully(byte[], int, int) throws java.io.IOException;
- method public int readInt() throws java.io.IOException;
- method @Deprecated public String readLine() throws java.io.IOException;
- method public long readLong() throws java.io.IOException;
- method public final Object readObject() throws java.lang.ClassNotFoundException, java.io.IOException;
- method protected Object readObjectOverride() throws java.lang.ClassNotFoundException, java.io.IOException;
- method public short readShort() throws java.io.IOException;
- method protected void readStreamHeader() throws java.io.IOException, java.io.StreamCorruptedException;
- method public String readUTF() throws java.io.IOException;
- method public Object readUnshared() throws java.lang.ClassNotFoundException, java.io.IOException;
- method public int readUnsignedByte() throws java.io.IOException;
- method public int readUnsignedShort() throws java.io.IOException;
- method public void registerValidation(java.io.ObjectInputValidation, int) throws java.io.InvalidObjectException, java.io.NotActiveException;
- method protected Class<?> resolveClass(java.io.ObjectStreamClass) throws java.lang.ClassNotFoundException, java.io.IOException;
- method protected Object resolveObject(Object) throws java.io.IOException;
- method protected Class<?> resolveProxyClass(String[]) throws java.lang.ClassNotFoundException, java.io.IOException;
- method public int skipBytes(int) throws java.io.IOException;
- }
-
- public abstract static class ObjectInputStream.GetField {
- ctor public ObjectInputStream.GetField();
- method public abstract boolean defaulted(String) throws java.io.IOException;
- method public abstract boolean get(String, boolean) throws java.io.IOException;
- method public abstract byte get(String, byte) throws java.io.IOException;
- method public abstract char get(String, char) throws java.io.IOException;
- method public abstract short get(String, short) throws java.io.IOException;
- method public abstract int get(String, int) throws java.io.IOException;
- method public abstract long get(String, long) throws java.io.IOException;
- method public abstract float get(String, float) throws java.io.IOException;
- method public abstract double get(String, double) throws java.io.IOException;
- method public abstract Object get(String, Object) throws java.io.IOException;
- method public abstract java.io.ObjectStreamClass getObjectStreamClass();
- }
-
- public interface ObjectInputValidation {
- method public void validateObject() throws java.io.InvalidObjectException;
- }
-
- public interface ObjectOutput extends java.io.DataOutput java.lang.AutoCloseable {
- method public void close() throws java.io.IOException;
- method public void flush() throws java.io.IOException;
- method public void writeObject(Object) throws java.io.IOException;
- }
-
- public class ObjectOutputStream extends java.io.OutputStream implements java.io.ObjectOutput java.io.ObjectStreamConstants {
- ctor public ObjectOutputStream(java.io.OutputStream) throws java.io.IOException;
- ctor protected ObjectOutputStream() throws java.io.IOException, java.lang.SecurityException;
- method protected void annotateClass(Class<?>) throws java.io.IOException;
- method protected void annotateProxyClass(Class<?>) throws java.io.IOException;
- method public void defaultWriteObject() throws java.io.IOException;
- method protected void drain() throws java.io.IOException;
- method protected boolean enableReplaceObject(boolean) throws java.lang.SecurityException;
- method public java.io.ObjectOutputStream.PutField putFields() throws java.io.IOException;
- method protected Object replaceObject(Object) throws java.io.IOException;
- method public void reset() throws java.io.IOException;
- method public void useProtocolVersion(int) throws java.io.IOException;
- method public void write(int) throws java.io.IOException;
- method public void writeBoolean(boolean) throws java.io.IOException;
- method public void writeByte(int) throws java.io.IOException;
- method public void writeBytes(String) throws java.io.IOException;
- method public void writeChar(int) throws java.io.IOException;
- method public void writeChars(String) throws java.io.IOException;
- method protected void writeClassDescriptor(java.io.ObjectStreamClass) throws java.io.IOException;
- method public void writeDouble(double) throws java.io.IOException;
- method public void writeFields() throws java.io.IOException;
- method public void writeFloat(float) throws java.io.IOException;
- method public void writeInt(int) throws java.io.IOException;
- method public void writeLong(long) throws java.io.IOException;
- method public final void writeObject(Object) throws java.io.IOException;
- method protected void writeObjectOverride(Object) throws java.io.IOException;
- method public void writeShort(int) throws java.io.IOException;
- method protected void writeStreamHeader() throws java.io.IOException;
- method public void writeUTF(String) throws java.io.IOException;
- method public void writeUnshared(Object) throws java.io.IOException;
- }
-
- public abstract static class ObjectOutputStream.PutField {
- ctor public ObjectOutputStream.PutField();
- method public abstract void put(String, boolean);
- method public abstract void put(String, byte);
- method public abstract void put(String, char);
- method public abstract void put(String, short);
- method public abstract void put(String, int);
- method public abstract void put(String, long);
- method public abstract void put(String, float);
- method public abstract void put(String, double);
- method public abstract void put(String, Object);
- method @Deprecated public abstract void write(java.io.ObjectOutput) throws java.io.IOException;
- }
-
- public class ObjectStreamClass implements java.io.Serializable {
- method public Class<?> forClass();
- method public java.io.ObjectStreamField getField(String);
- method public java.io.ObjectStreamField[] getFields();
- method public String getName();
- method public long getSerialVersionUID();
- method public static java.io.ObjectStreamClass lookup(Class<?>);
- method public static java.io.ObjectStreamClass lookupAny(Class<?>);
- field public static final java.io.ObjectStreamField[] NO_FIELDS;
- }
-
- public interface ObjectStreamConstants {
- field public static final int PROTOCOL_VERSION_1 = 1; // 0x1
- field public static final int PROTOCOL_VERSION_2 = 2; // 0x2
- field public static final byte SC_BLOCK_DATA = 8; // 0x8
- field public static final byte SC_ENUM = 16; // 0x10
- field public static final byte SC_EXTERNALIZABLE = 4; // 0x4
- field public static final byte SC_SERIALIZABLE = 2; // 0x2
- field public static final byte SC_WRITE_METHOD = 1; // 0x1
- field public static final short STREAM_MAGIC = -21267; // 0xffffaced
- field public static final short STREAM_VERSION = 5; // 0x5
- field public static final java.io.SerializablePermission SUBCLASS_IMPLEMENTATION_PERMISSION;
- field public static final java.io.SerializablePermission SUBSTITUTION_PERMISSION;
- field public static final byte TC_ARRAY = 117; // 0x75
- field public static final byte TC_BASE = 112; // 0x70
- field public static final byte TC_BLOCKDATA = 119; // 0x77
- field public static final byte TC_BLOCKDATALONG = 122; // 0x7a
- field public static final byte TC_CLASS = 118; // 0x76
- field public static final byte TC_CLASSDESC = 114; // 0x72
- field public static final byte TC_ENDBLOCKDATA = 120; // 0x78
- field public static final byte TC_ENUM = 126; // 0x7e
- field public static final byte TC_EXCEPTION = 123; // 0x7b
- field public static final byte TC_LONGSTRING = 124; // 0x7c
- field public static final byte TC_MAX = 126; // 0x7e
- field public static final byte TC_NULL = 112; // 0x70
- field public static final byte TC_OBJECT = 115; // 0x73
- field public static final byte TC_PROXYCLASSDESC = 125; // 0x7d
- field public static final byte TC_REFERENCE = 113; // 0x71
- field public static final byte TC_RESET = 121; // 0x79
- field public static final byte TC_STRING = 116; // 0x74
- field public static final int baseWireHandle = 8257536; // 0x7e0000
- }
-
- public abstract class ObjectStreamException extends java.io.IOException {
- ctor protected ObjectStreamException(String);
- ctor protected ObjectStreamException();
- }
-
- public class ObjectStreamField implements java.lang.Comparable<java.lang.Object> {
- ctor public ObjectStreamField(String, Class<?>);
- ctor public ObjectStreamField(String, Class<?>, boolean);
- method public int compareTo(Object);
- method public String getName();
- method public int getOffset();
- method public Class<?> getType();
- method public char getTypeCode();
- method public String getTypeString();
- method public boolean isPrimitive();
- method public boolean isUnshared();
- method protected void setOffset(int);
- }
-
- public class OptionalDataException extends java.io.ObjectStreamException {
- field public boolean eof;
- field public int length;
- }
-
- public abstract class OutputStream implements java.io.Closeable java.io.Flushable {
- ctor public OutputStream();
- method public void close() throws java.io.IOException;
- method public void flush() throws java.io.IOException;
- method public abstract void write(int) throws java.io.IOException;
- method public void write(byte[]) throws java.io.IOException;
- method public void write(byte[], int, int) throws java.io.IOException;
- }
-
- public class OutputStreamWriter extends java.io.Writer {
- ctor public OutputStreamWriter(java.io.OutputStream, String) throws java.io.UnsupportedEncodingException;
- ctor public OutputStreamWriter(java.io.OutputStream);
- ctor public OutputStreamWriter(java.io.OutputStream, java.nio.charset.Charset);
- ctor public OutputStreamWriter(java.io.OutputStream, java.nio.charset.CharsetEncoder);
- method public void close() throws java.io.IOException;
- method public void flush() throws java.io.IOException;
- method public String getEncoding();
- method public void write(char[], int, int) throws java.io.IOException;
- }
-
- public class PipedInputStream extends java.io.InputStream {
- ctor public PipedInputStream(java.io.PipedOutputStream) throws java.io.IOException;
- ctor public PipedInputStream(java.io.PipedOutputStream, int) throws java.io.IOException;
- ctor public PipedInputStream();
- ctor public PipedInputStream(int);
- method public void connect(java.io.PipedOutputStream) throws java.io.IOException;
- method public int read() throws java.io.IOException;
- method protected void receive(int) throws java.io.IOException;
- field protected static final int PIPE_SIZE = 1024; // 0x400
- field protected byte[] buffer;
- field protected int in;
- field protected int out;
- }
-
- public class PipedOutputStream extends java.io.OutputStream {
- ctor public PipedOutputStream(java.io.PipedInputStream) throws java.io.IOException;
- ctor public PipedOutputStream();
- method public void connect(java.io.PipedInputStream) throws java.io.IOException;
- method public void write(int) throws java.io.IOException;
- }
-
- public class PipedReader extends java.io.Reader {
- ctor public PipedReader(java.io.PipedWriter) throws java.io.IOException;
- ctor public PipedReader(java.io.PipedWriter, int) throws java.io.IOException;
- ctor public PipedReader();
- ctor public PipedReader(int);
- method public void close() throws java.io.IOException;
- method public void connect(java.io.PipedWriter) throws java.io.IOException;
- method public int read(char[], int, int) throws java.io.IOException;
- }
-
- public class PipedWriter extends java.io.Writer {
- ctor public PipedWriter(java.io.PipedReader) throws java.io.IOException;
- ctor public PipedWriter();
- method public void close() throws java.io.IOException;
- method public void connect(java.io.PipedReader) throws java.io.IOException;
- method public void flush() throws java.io.IOException;
- method public void write(char[], int, int) throws java.io.IOException;
- }
-
- public class PrintStream extends java.io.FilterOutputStream implements java.lang.Appendable java.io.Closeable {
- ctor public PrintStream(java.io.OutputStream);
- ctor public PrintStream(java.io.OutputStream, boolean);
- ctor public PrintStream(java.io.OutputStream, boolean, String) throws java.io.UnsupportedEncodingException;
- ctor public PrintStream(String) throws java.io.FileNotFoundException;
- ctor public PrintStream(String, String) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException;
- ctor public PrintStream(java.io.File) throws java.io.FileNotFoundException;
- ctor public PrintStream(java.io.File, String) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException;
- method public java.io.PrintStream append(CharSequence);
- method public java.io.PrintStream append(CharSequence, int, int);
- method public java.io.PrintStream append(char);
- method public boolean checkError();
- method protected void clearError();
- method public void close();
- method public void flush();
- method public java.io.PrintStream format(String, java.lang.Object...);
- method public java.io.PrintStream format(java.util.Locale, String, java.lang.Object...);
- method public void print(boolean);
- method public void print(char);
- method public void print(int);
- method public void print(long);
- method public void print(float);
- method public void print(double);
- method public void print(char[]);
- method public void print(String);
- method public void print(Object);
- method public java.io.PrintStream printf(String, java.lang.Object...);
- method public java.io.PrintStream printf(java.util.Locale, String, java.lang.Object...);
- method public void println();
- method public void println(boolean);
- method public void println(char);
- method public void println(int);
- method public void println(long);
- method public void println(float);
- method public void println(double);
- method public void println(char[]);
- method public void println(String);
- method public void println(Object);
- method protected void setError();
- method public void write(int);
- method public void write(byte[], int, int);
- }
-
- public class PrintWriter extends java.io.Writer {
- ctor public PrintWriter(@NonNull java.io.Writer);
- ctor public PrintWriter(@NonNull java.io.Writer, boolean);
- ctor public PrintWriter(@NonNull java.io.OutputStream);
- ctor public PrintWriter(@NonNull java.io.OutputStream, boolean);
- ctor public PrintWriter(@NonNull String) throws java.io.FileNotFoundException;
- ctor public PrintWriter(@NonNull String, @NonNull String) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException;
- ctor public PrintWriter(@NonNull java.io.File) throws java.io.FileNotFoundException;
- ctor public PrintWriter(@NonNull java.io.File, @NonNull String) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException;
- method @NonNull public java.io.PrintWriter append(@Nullable CharSequence);
- method @NonNull public java.io.PrintWriter append(@Nullable CharSequence, int, int);
- method @NonNull public java.io.PrintWriter append(char);
- method public boolean checkError();
- method protected void clearError();
- method public void close();
- method public void flush();
- method @NonNull public java.io.PrintWriter format(@NonNull String, @NonNull java.lang.Object...);
- method @NonNull public java.io.PrintWriter format(@Nullable java.util.Locale, @NonNull String, @NonNull java.lang.Object...);
- method public void print(boolean);
- method public void print(char);
- method public void print(int);
- method public void print(long);
- method public void print(float);
- method public void print(double);
- method public void print(char[]);
- method public void print(@Nullable String);
- method public void print(@Nullable Object);
- method @NonNull public java.io.PrintWriter printf(@NonNull String, @NonNull java.lang.Object...);
- method @NonNull public java.io.PrintWriter printf(@Nullable java.util.Locale, @NonNull String, @NonNull java.lang.Object...);
- method public void println();
- method public void println(boolean);
- method public void println(char);
- method public void println(int);
- method public void println(long);
- method public void println(float);
- method public void println(double);
- method public void println(char[]);
- method public void println(@Nullable String);
- method public void println(@Nullable Object);
- method protected void setError();
- method public void write(int);
- method public void write(char[], int, int);
- method public void write(char[]);
- method public void write(@NonNull String, int, int);
- method public void write(@NonNull String);
- field protected java.io.Writer out;
- }
-
- public class PushbackInputStream extends java.io.FilterInputStream {
- ctor public PushbackInputStream(java.io.InputStream, int);
- ctor public PushbackInputStream(java.io.InputStream);
- method public void unread(int) throws java.io.IOException;
- method public void unread(byte[], int, int) throws java.io.IOException;
- method public void unread(byte[]) throws java.io.IOException;
- field protected byte[] buf;
- field protected int pos;
- }
-
- public class PushbackReader extends java.io.FilterReader {
- ctor public PushbackReader(java.io.Reader, int);
- ctor public PushbackReader(java.io.Reader);
- method public void unread(int) throws java.io.IOException;
- method public void unread(char[], int, int) throws java.io.IOException;
- method public void unread(char[]) throws java.io.IOException;
- }
-
- public class RandomAccessFile implements java.io.Closeable java.io.DataInput java.io.DataOutput {
- ctor public RandomAccessFile(String, String) throws java.io.FileNotFoundException;
- ctor public RandomAccessFile(java.io.File, String) throws java.io.FileNotFoundException;
- method public void close() throws java.io.IOException;
- method public final java.nio.channels.FileChannel getChannel();
- method public final java.io.FileDescriptor getFD() throws java.io.IOException;
- method public long getFilePointer() throws java.io.IOException;
- method public long length() throws java.io.IOException;
- method public int read() throws java.io.IOException;
- method public int read(byte[], int, int) throws java.io.IOException;
- method public int read(byte[]) throws java.io.IOException;
- method public final boolean readBoolean() throws java.io.IOException;
- method public final byte readByte() throws java.io.IOException;
- method public final char readChar() throws java.io.IOException;
- method public final double readDouble() throws java.io.IOException;
- method public final float readFloat() throws java.io.IOException;
- method public final void readFully(byte[]) throws java.io.IOException;
- method public final void readFully(byte[], int, int) throws java.io.IOException;
- method public final int readInt() throws java.io.IOException;
- method public final String readLine() throws java.io.IOException;
- method public final long readLong() throws java.io.IOException;
- method public final short readShort() throws java.io.IOException;
- method public final String readUTF() throws java.io.IOException;
- method public final int readUnsignedByte() throws java.io.IOException;
- method public final int readUnsignedShort() throws java.io.IOException;
- method public void seek(long) throws java.io.IOException;
- method public void setLength(long) throws java.io.IOException;
- method public int skipBytes(int) throws java.io.IOException;
- method public void write(int) throws java.io.IOException;
- method public void write(byte[]) throws java.io.IOException;
- method public void write(byte[], int, int) throws java.io.IOException;
- method public final void writeBoolean(boolean) throws java.io.IOException;
- method public final void writeByte(int) throws java.io.IOException;
- method public final void writeBytes(String) throws java.io.IOException;
- method public final void writeChar(int) throws java.io.IOException;
- method public final void writeChars(String) throws java.io.IOException;
- method public final void writeDouble(double) throws java.io.IOException;
- method public final void writeFloat(float) throws java.io.IOException;
- method public final void writeInt(int) throws java.io.IOException;
- method public final void writeLong(long) throws java.io.IOException;
- method public final void writeShort(int) throws java.io.IOException;
- method public final void writeUTF(String) throws java.io.IOException;
- }
-
- public abstract class Reader implements java.io.Closeable java.lang.Readable {
- ctor protected Reader();
- ctor protected Reader(Object);
- method public void mark(int) throws java.io.IOException;
- method public boolean markSupported();
- method public int read(java.nio.CharBuffer) throws java.io.IOException;
- method public int read() throws java.io.IOException;
- method public int read(char[]) throws java.io.IOException;
- method public abstract int read(char[], int, int) throws java.io.IOException;
- method public boolean ready() throws java.io.IOException;
- method public void reset() throws java.io.IOException;
- method public long skip(long) throws java.io.IOException;
- field protected Object lock;
- }
-
- public class SequenceInputStream extends java.io.InputStream {
- ctor public SequenceInputStream(java.util.Enumeration<? extends java.io.InputStream>);
- ctor public SequenceInputStream(java.io.InputStream, java.io.InputStream);
- method public int read() throws java.io.IOException;
- }
-
- public interface Serializable {
- }
-
- public final class SerializablePermission extends java.security.BasicPermission {
- ctor public SerializablePermission(String);
- ctor public SerializablePermission(String, String);
- }
-
- public class StreamCorruptedException extends java.io.ObjectStreamException {
- ctor public StreamCorruptedException(String);
- ctor public StreamCorruptedException();
- }
-
- public class StreamTokenizer {
- ctor @Deprecated public StreamTokenizer(java.io.InputStream);
- ctor public StreamTokenizer(java.io.Reader);
- method public void commentChar(int);
- method public void eolIsSignificant(boolean);
- method public int lineno();
- method public void lowerCaseMode(boolean);
- method public int nextToken() throws java.io.IOException;
- method public void ordinaryChar(int);
- method public void ordinaryChars(int, int);
- method public void parseNumbers();
- method public void pushBack();
- method public void quoteChar(int);
- method public void resetSyntax();
- method public void slashSlashComments(boolean);
- method public void slashStarComments(boolean);
- method public void whitespaceChars(int, int);
- method public void wordChars(int, int);
- field public static final int TT_EOF = -1; // 0xffffffff
- field public static final int TT_EOL = 10; // 0xa
- field public static final int TT_NUMBER = -2; // 0xfffffffe
- field public static final int TT_WORD = -3; // 0xfffffffd
- field public double nval;
- field public String sval;
- field public int ttype;
- }
-
- @Deprecated public class StringBufferInputStream extends java.io.InputStream {
- ctor @Deprecated public StringBufferInputStream(String);
- method @Deprecated public int available();
- method @Deprecated public int read();
- method @Deprecated public int read(byte[], int, int);
- method @Deprecated public void reset();
- method @Deprecated public long skip(long);
- field @Deprecated protected String buffer;
- field @Deprecated protected int count;
- field @Deprecated protected int pos;
- }
-
- public class StringReader extends java.io.Reader {
- ctor public StringReader(String);
- method public void close();
- method public int read(char[], int, int) throws java.io.IOException;
- }
-
- public class StringWriter extends java.io.Writer {
- ctor public StringWriter();
- ctor public StringWriter(int);
- method public java.io.StringWriter append(CharSequence);
- method public java.io.StringWriter append(CharSequence, int, int);
- method public java.io.StringWriter append(char);
- method public void close() throws java.io.IOException;
- method public void flush();
- method public StringBuffer getBuffer();
- method public void write(int);
- method public void write(char[], int, int);
- method public void write(String);
- method public void write(String, int, int);
- }
-
- public class SyncFailedException extends java.io.IOException {
- ctor public SyncFailedException(String);
- }
-
- public class UTFDataFormatException extends java.io.IOException {
- ctor public UTFDataFormatException();
- ctor public UTFDataFormatException(String);
- }
-
- public class UncheckedIOException extends java.lang.RuntimeException {
- ctor public UncheckedIOException(String, java.io.IOException);
- ctor public UncheckedIOException(java.io.IOException);
- method public java.io.IOException getCause();
- }
-
- public class UnsupportedEncodingException extends java.io.IOException {
- ctor public UnsupportedEncodingException();
- ctor public UnsupportedEncodingException(String);
- }
-
- public class WriteAbortedException extends java.io.ObjectStreamException {
- ctor public WriteAbortedException(String, Exception);
- field public Exception detail;
- }
-
- public abstract class Writer implements java.lang.Appendable java.io.Closeable java.io.Flushable {
- ctor protected Writer();
- ctor protected Writer(Object);
- method public java.io.Writer append(CharSequence) throws java.io.IOException;
- method public java.io.Writer append(CharSequence, int, int) throws java.io.IOException;
- method public java.io.Writer append(char) throws java.io.IOException;
- method public void write(int) throws java.io.IOException;
- method public void write(char[]) throws java.io.IOException;
- method public abstract void write(char[], int, int) throws java.io.IOException;
- method public void write(String) throws java.io.IOException;
- method public void write(String, int, int) throws java.io.IOException;
- field protected Object lock;
- }
-
-}
-
-package java.lang {
-
- public class AbstractMethodError extends java.lang.IncompatibleClassChangeError {
- ctor public AbstractMethodError();
- ctor public AbstractMethodError(String);
- }
-
- public interface Appendable {
- method @NonNull public Appendable append(@Nullable CharSequence) throws java.io.IOException;
- method @NonNull public Appendable append(@Nullable CharSequence, int, int) throws java.io.IOException;
- method @NonNull public Appendable append(char) throws java.io.IOException;
- }
-
- public class ArithmeticException extends java.lang.RuntimeException {
- ctor public ArithmeticException();
- ctor public ArithmeticException(String);
- }
-
- public class ArrayIndexOutOfBoundsException extends java.lang.IndexOutOfBoundsException {
- ctor public ArrayIndexOutOfBoundsException();
- ctor public ArrayIndexOutOfBoundsException(int);
- ctor public ArrayIndexOutOfBoundsException(String);
- }
-
- public class ArrayStoreException extends java.lang.RuntimeException {
- ctor public ArrayStoreException();
- ctor public ArrayStoreException(String);
- }
-
- public class AssertionError extends java.lang.Error {
- ctor public AssertionError();
- ctor public AssertionError(Object);
- ctor public AssertionError(boolean);
- ctor public AssertionError(char);
- ctor public AssertionError(int);
- ctor public AssertionError(long);
- ctor public AssertionError(float);
- ctor public AssertionError(double);
- ctor public AssertionError(String, Throwable);
- }
-
- public interface AutoCloseable {
- method public void close() throws java.lang.Exception;
- }
-
- public final class Boolean implements java.lang.Comparable<java.lang.Boolean> java.io.Serializable {
- ctor public Boolean(boolean);
- ctor public Boolean(@Nullable String);
- method public boolean booleanValue();
- method public static int compare(boolean, boolean);
- method public int compareTo(@NonNull Boolean);
- method public static boolean getBoolean(@NonNull String);
- method public static int hashCode(boolean);
- method public static boolean logicalAnd(boolean, boolean);
- method public static boolean logicalOr(boolean, boolean);
- method public static boolean logicalXor(boolean, boolean);
- method public static boolean parseBoolean(@Nullable String);
- method @NonNull public static String toString(boolean);
- method @NonNull public static Boolean valueOf(boolean);
- method @NonNull public static Boolean valueOf(@Nullable String);
- field public static final Boolean FALSE;
- field public static final Boolean TRUE;
- field public static final Class<java.lang.Boolean> TYPE;
- }
-
- public class BootstrapMethodError extends java.lang.LinkageError {
- ctor public BootstrapMethodError();
- ctor public BootstrapMethodError(String);
- ctor public BootstrapMethodError(String, Throwable);
- ctor public BootstrapMethodError(Throwable);
- }
-
- public final class Byte extends java.lang.Number implements java.lang.Comparable<java.lang.Byte> {
- ctor public Byte(byte);
- ctor public Byte(@NonNull String) throws java.lang.NumberFormatException;
- method public static int compare(byte, byte);
- method public int compareTo(@NonNull Byte);
- method @NonNull public static Byte decode(@NonNull String) throws java.lang.NumberFormatException;
- method public double doubleValue();
- method public float floatValue();
- method public static int hashCode(byte);
- method public int intValue();
- method public long longValue();
- method public static byte parseByte(@NonNull String, int) throws java.lang.NumberFormatException;
- method public static byte parseByte(@NonNull String) throws java.lang.NumberFormatException;
- method @NonNull public static String toString(byte);
- method public static int toUnsignedInt(byte);
- method public static long toUnsignedLong(byte);
- method @NonNull public static Byte valueOf(byte);
- method @NonNull public static Byte valueOf(@NonNull String, int) throws java.lang.NumberFormatException;
- method @NonNull public static Byte valueOf(@NonNull String) throws java.lang.NumberFormatException;
- field public static final int BYTES = 1; // 0x1
- field public static final byte MAX_VALUE = 127; // 0x7f
- field public static final byte MIN_VALUE = -128; // 0xffffff80
- field public static final int SIZE = 8; // 0x8
- field public static final Class<java.lang.Byte> TYPE;
- }
-
- public interface CharSequence {
- method public char charAt(int);
- method @NonNull public default java.util.stream.IntStream chars();
- method @NonNull public default java.util.stream.IntStream codePoints();
- method public int length();
- method @NonNull public CharSequence subSequence(int, int);
- method @NonNull public String toString();
- }
-
- public final class Character implements java.lang.Comparable<java.lang.Character> java.io.Serializable {
- ctor public Character(char);
- method public static int charCount(int);
- method public char charValue();
- method public static int codePointAt(@NonNull CharSequence, int);
- method public static int codePointAt(char[], int);
- method public static int codePointAt(char[], int, int);
- method public static int codePointBefore(@NonNull CharSequence, int);
- method public static int codePointBefore(char[], int);
- method public static int codePointBefore(char[], int, int);
- method public static int codePointCount(@NonNull CharSequence, int, int);
- method public static int codePointCount(char[], int, int);
- method public static int compare(char, char);
- method public int compareTo(@NonNull Character);
- method public static int digit(char, int);
- method public static int digit(int, int);
- method public static char forDigit(int, int);
- method public static byte getDirectionality(char);
- method public static byte getDirectionality(int);
- method @Nullable public static String getName(int);
- method public static int getNumericValue(char);
- method public static int getNumericValue(int);
- method public static int getType(char);
- method public static int getType(int);
- method public static int hashCode(char);
- method public static char highSurrogate(int);
- method public static boolean isAlphabetic(int);
- method public static boolean isBmpCodePoint(int);
- method public static boolean isDefined(char);
- method public static boolean isDefined(int);
- method public static boolean isDigit(char);
- method public static boolean isDigit(int);
- method public static boolean isHighSurrogate(char);
- method public static boolean isISOControl(char);
- method public static boolean isISOControl(int);
- method public static boolean isIdentifierIgnorable(char);
- method public static boolean isIdentifierIgnorable(int);
- method public static boolean isIdeographic(int);
- method public static boolean isJavaIdentifierPart(char);
- method public static boolean isJavaIdentifierPart(int);
- method public static boolean isJavaIdentifierStart(char);
- method public static boolean isJavaIdentifierStart(int);
- method @Deprecated public static boolean isJavaLetter(char);
- method @Deprecated public static boolean isJavaLetterOrDigit(char);
- method public static boolean isLetter(char);
- method public static boolean isLetter(int);
- method public static boolean isLetterOrDigit(char);
- method public static boolean isLetterOrDigit(int);
- method public static boolean isLowSurrogate(char);
- method public static boolean isLowerCase(char);
- method public static boolean isLowerCase(int);
- method public static boolean isMirrored(char);
- method public static boolean isMirrored(int);
- method @Deprecated public static boolean isSpace(char);
- method public static boolean isSpaceChar(char);
- method public static boolean isSpaceChar(int);
- method public static boolean isSupplementaryCodePoint(int);
- method public static boolean isSurrogate(char);
- method public static boolean isSurrogatePair(char, char);
- method public static boolean isTitleCase(char);
- method public static boolean isTitleCase(int);
- method public static boolean isUnicodeIdentifierPart(char);
- method public static boolean isUnicodeIdentifierPart(int);
- method public static boolean isUnicodeIdentifierStart(char);
- method public static boolean isUnicodeIdentifierStart(int);
- method public static boolean isUpperCase(char);
- method public static boolean isUpperCase(int);
- method public static boolean isValidCodePoint(int);
- method public static boolean isWhitespace(char);
- method public static boolean isWhitespace(int);
- method public static char lowSurrogate(int);
- method public static int offsetByCodePoints(@NonNull CharSequence, int, int);
- method public static int offsetByCodePoints(char[], int, int, int, int);
- method public static char reverseBytes(char);
- method public static int toChars(int, char[], int);
- method public static char[] toChars(int);
- method public static int toCodePoint(char, char);
- method public static char toLowerCase(char);
- method public static int toLowerCase(int);
- method @NonNull public static String toString(char);
- method public static char toTitleCase(char);
- method public static int toTitleCase(int);
- method public static char toUpperCase(char);
- method public static int toUpperCase(int);
- method @NonNull public static Character valueOf(char);
- field public static final int BYTES = 2; // 0x2
- field public static final byte COMBINING_SPACING_MARK = 8; // 0x8
- field public static final byte CONNECTOR_PUNCTUATION = 23; // 0x17
- field public static final byte CONTROL = 15; // 0xf
- field public static final byte CURRENCY_SYMBOL = 26; // 0x1a
- field public static final byte DASH_PUNCTUATION = 20; // 0x14
- field public static final byte DECIMAL_DIGIT_NUMBER = 9; // 0x9
- field public static final byte DIRECTIONALITY_ARABIC_NUMBER = 6; // 0x6
- field public static final byte DIRECTIONALITY_BOUNDARY_NEUTRAL = 9; // 0x9
- field public static final byte DIRECTIONALITY_COMMON_NUMBER_SEPARATOR = 7; // 0x7
- field public static final byte DIRECTIONALITY_EUROPEAN_NUMBER = 3; // 0x3
- field public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR = 4; // 0x4
- field public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR = 5; // 0x5
- field public static final byte DIRECTIONALITY_LEFT_TO_RIGHT = 0; // 0x0
- field public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING = 14; // 0xe
- field public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE = 15; // 0xf
- field public static final byte DIRECTIONALITY_NONSPACING_MARK = 8; // 0x8
- field public static final byte DIRECTIONALITY_OTHER_NEUTRALS = 13; // 0xd
- field public static final byte DIRECTIONALITY_PARAGRAPH_SEPARATOR = 10; // 0xa
- field public static final byte DIRECTIONALITY_POP_DIRECTIONAL_FORMAT = 18; // 0x12
- field public static final byte DIRECTIONALITY_RIGHT_TO_LEFT = 1; // 0x1
- field public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC = 2; // 0x2
- field public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING = 16; // 0x10
- field public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE = 17; // 0x11
- field public static final byte DIRECTIONALITY_SEGMENT_SEPARATOR = 11; // 0xb
- field public static final byte DIRECTIONALITY_UNDEFINED = -1; // 0xffffffff
- field public static final byte DIRECTIONALITY_WHITESPACE = 12; // 0xc
- field public static final byte ENCLOSING_MARK = 7; // 0x7
- field public static final byte END_PUNCTUATION = 22; // 0x16
- field public static final byte FINAL_QUOTE_PUNCTUATION = 30; // 0x1e
- field public static final byte FORMAT = 16; // 0x10
- field public static final byte INITIAL_QUOTE_PUNCTUATION = 29; // 0x1d
- field public static final byte LETTER_NUMBER = 10; // 0xa
- field public static final byte LINE_SEPARATOR = 13; // 0xd
- field public static final byte LOWERCASE_LETTER = 2; // 0x2
- field public static final byte MATH_SYMBOL = 25; // 0x19
- field public static final int MAX_CODE_POINT = 1114111; // 0x10ffff
- field public static final char MAX_HIGH_SURROGATE = 56319; // 0xdbff '\udbff'
- field public static final char MAX_LOW_SURROGATE = 57343; // 0xdfff '\udfff'
- field public static final int MAX_RADIX = 36; // 0x24
- field public static final char MAX_SURROGATE = 57343; // 0xdfff '\udfff'
- field public static final char MAX_VALUE = 65535; // 0xffff '\uffff'
- field public static final int MIN_CODE_POINT = 0; // 0x0
- field public static final char MIN_HIGH_SURROGATE = 55296; // 0xd800 '\ud800'
- field public static final char MIN_LOW_SURROGATE = 56320; // 0xdc00 '\udc00'
- field public static final int MIN_RADIX = 2; // 0x2
- field public static final int MIN_SUPPLEMENTARY_CODE_POINT = 65536; // 0x10000
- field public static final char MIN_SURROGATE = 55296; // 0xd800 '\ud800'
- field public static final char MIN_VALUE = 0; // 0x0000 '\u0000'
- field public static final byte MODIFIER_LETTER = 4; // 0x4
- field public static final byte MODIFIER_SYMBOL = 27; // 0x1b
- field public static final byte NON_SPACING_MARK = 6; // 0x6
- field public static final byte OTHER_LETTER = 5; // 0x5
- field public static final byte OTHER_NUMBER = 11; // 0xb
- field public static final byte OTHER_PUNCTUATION = 24; // 0x18
- field public static final byte OTHER_SYMBOL = 28; // 0x1c
- field public static final byte PARAGRAPH_SEPARATOR = 14; // 0xe
- field public static final byte PRIVATE_USE = 18; // 0x12
- field public static final int SIZE = 16; // 0x10
- field public static final byte SPACE_SEPARATOR = 12; // 0xc
- field public static final byte START_PUNCTUATION = 21; // 0x15
- field public static final byte SURROGATE = 19; // 0x13
- field public static final byte TITLECASE_LETTER = 3; // 0x3
- field public static final Class<java.lang.Character> TYPE;
- field public static final byte UNASSIGNED = 0; // 0x0
- field public static final byte UPPERCASE_LETTER = 1; // 0x1
- }
-
- public static class Character.Subset {
- ctor protected Character.Subset(@NonNull String);
- method public final boolean equals(@Nullable Object);
- method public final int hashCode();
- method @NonNull public final String toString();
- }
-
- public static final class Character.UnicodeBlock extends java.lang.Character.Subset {
- method @NonNull public static java.lang.Character.UnicodeBlock forName(@NonNull String);
- method @Nullable public static java.lang.Character.UnicodeBlock of(char);
- method @Nullable public static java.lang.Character.UnicodeBlock of(int);
- field public static final java.lang.Character.UnicodeBlock AEGEAN_NUMBERS;
- field public static final java.lang.Character.UnicodeBlock ALCHEMICAL_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock ALPHABETIC_PRESENTATION_FORMS;
- field public static final java.lang.Character.UnicodeBlock ANCIENT_GREEK_MUSICAL_NOTATION;
- field public static final java.lang.Character.UnicodeBlock ANCIENT_GREEK_NUMBERS;
- field public static final java.lang.Character.UnicodeBlock ANCIENT_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock ARABIC;
- field public static final java.lang.Character.UnicodeBlock ARABIC_EXTENDED_A;
- field public static final java.lang.Character.UnicodeBlock ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock ARABIC_PRESENTATION_FORMS_A;
- field public static final java.lang.Character.UnicodeBlock ARABIC_PRESENTATION_FORMS_B;
- field public static final java.lang.Character.UnicodeBlock ARABIC_SUPPLEMENT;
- field public static final java.lang.Character.UnicodeBlock ARMENIAN;
- field public static final java.lang.Character.UnicodeBlock ARROWS;
- field public static final java.lang.Character.UnicodeBlock AVESTAN;
- field public static final java.lang.Character.UnicodeBlock BALINESE;
- field public static final java.lang.Character.UnicodeBlock BAMUM;
- field public static final java.lang.Character.UnicodeBlock BAMUM_SUPPLEMENT;
- field public static final java.lang.Character.UnicodeBlock BASIC_LATIN;
- field public static final java.lang.Character.UnicodeBlock BATAK;
- field public static final java.lang.Character.UnicodeBlock BENGALI;
- field public static final java.lang.Character.UnicodeBlock BLOCK_ELEMENTS;
- field public static final java.lang.Character.UnicodeBlock BOPOMOFO;
- field public static final java.lang.Character.UnicodeBlock BOPOMOFO_EXTENDED;
- field public static final java.lang.Character.UnicodeBlock BOX_DRAWING;
- field public static final java.lang.Character.UnicodeBlock BRAHMI;
- field public static final java.lang.Character.UnicodeBlock BRAILLE_PATTERNS;
- field public static final java.lang.Character.UnicodeBlock BUGINESE;
- field public static final java.lang.Character.UnicodeBlock BUHID;
- field public static final java.lang.Character.UnicodeBlock BYZANTINE_MUSICAL_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock CARIAN;
- field public static final java.lang.Character.UnicodeBlock CHAKMA;
- field public static final java.lang.Character.UnicodeBlock CHAM;
- field public static final java.lang.Character.UnicodeBlock CHEROKEE;
- field public static final java.lang.Character.UnicodeBlock CJK_COMPATIBILITY;
- field public static final java.lang.Character.UnicodeBlock CJK_COMPATIBILITY_FORMS;
- field public static final java.lang.Character.UnicodeBlock CJK_COMPATIBILITY_IDEOGRAPHS;
- field public static final java.lang.Character.UnicodeBlock CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT;
- field public static final java.lang.Character.UnicodeBlock CJK_RADICALS_SUPPLEMENT;
- field public static final java.lang.Character.UnicodeBlock CJK_STROKES;
- field public static final java.lang.Character.UnicodeBlock CJK_SYMBOLS_AND_PUNCTUATION;
- field public static final java.lang.Character.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS;
- field public static final java.lang.Character.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A;
- field public static final java.lang.Character.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B;
- field public static final java.lang.Character.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C;
- field public static final java.lang.Character.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D;
- field public static final java.lang.Character.UnicodeBlock COMBINING_DIACRITICAL_MARKS;
- field public static final java.lang.Character.UnicodeBlock COMBINING_DIACRITICAL_MARKS_SUPPLEMENT;
- field public static final java.lang.Character.UnicodeBlock COMBINING_HALF_MARKS;
- field public static final java.lang.Character.UnicodeBlock COMBINING_MARKS_FOR_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock COMMON_INDIC_NUMBER_FORMS;
- field public static final java.lang.Character.UnicodeBlock CONTROL_PICTURES;
- field public static final java.lang.Character.UnicodeBlock COPTIC;
- field public static final java.lang.Character.UnicodeBlock COUNTING_ROD_NUMERALS;
- field public static final java.lang.Character.UnicodeBlock CUNEIFORM;
- field public static final java.lang.Character.UnicodeBlock CUNEIFORM_NUMBERS_AND_PUNCTUATION;
- field public static final java.lang.Character.UnicodeBlock CURRENCY_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock CYPRIOT_SYLLABARY;
- field public static final java.lang.Character.UnicodeBlock CYRILLIC;
- field public static final java.lang.Character.UnicodeBlock CYRILLIC_EXTENDED_A;
- field public static final java.lang.Character.UnicodeBlock CYRILLIC_EXTENDED_B;
- field public static final java.lang.Character.UnicodeBlock CYRILLIC_SUPPLEMENTARY;
- field public static final java.lang.Character.UnicodeBlock DESERET;
- field public static final java.lang.Character.UnicodeBlock DEVANAGARI;
- field public static final java.lang.Character.UnicodeBlock DEVANAGARI_EXTENDED;
- field public static final java.lang.Character.UnicodeBlock DINGBATS;
- field public static final java.lang.Character.UnicodeBlock DOMINO_TILES;
- field public static final java.lang.Character.UnicodeBlock EGYPTIAN_HIEROGLYPHS;
- field public static final java.lang.Character.UnicodeBlock EMOTICONS;
- field public static final java.lang.Character.UnicodeBlock ENCLOSED_ALPHANUMERICS;
- field public static final java.lang.Character.UnicodeBlock ENCLOSED_ALPHANUMERIC_SUPPLEMENT;
- field public static final java.lang.Character.UnicodeBlock ENCLOSED_CJK_LETTERS_AND_MONTHS;
- field public static final java.lang.Character.UnicodeBlock ENCLOSED_IDEOGRAPHIC_SUPPLEMENT;
- field public static final java.lang.Character.UnicodeBlock ETHIOPIC;
- field public static final java.lang.Character.UnicodeBlock ETHIOPIC_EXTENDED;
- field public static final java.lang.Character.UnicodeBlock ETHIOPIC_EXTENDED_A;
- field public static final java.lang.Character.UnicodeBlock ETHIOPIC_SUPPLEMENT;
- field public static final java.lang.Character.UnicodeBlock GENERAL_PUNCTUATION;
- field public static final java.lang.Character.UnicodeBlock GEOMETRIC_SHAPES;
- field public static final java.lang.Character.UnicodeBlock GEORGIAN;
- field public static final java.lang.Character.UnicodeBlock GEORGIAN_SUPPLEMENT;
- field public static final java.lang.Character.UnicodeBlock GLAGOLITIC;
- field public static final java.lang.Character.UnicodeBlock GOTHIC;
- field public static final java.lang.Character.UnicodeBlock GREEK;
- field public static final java.lang.Character.UnicodeBlock GREEK_EXTENDED;
- field public static final java.lang.Character.UnicodeBlock GUJARATI;
- field public static final java.lang.Character.UnicodeBlock GURMUKHI;
- field public static final java.lang.Character.UnicodeBlock HALFWIDTH_AND_FULLWIDTH_FORMS;
- field public static final java.lang.Character.UnicodeBlock HANGUL_COMPATIBILITY_JAMO;
- field public static final java.lang.Character.UnicodeBlock HANGUL_JAMO;
- field public static final java.lang.Character.UnicodeBlock HANGUL_JAMO_EXTENDED_A;
- field public static final java.lang.Character.UnicodeBlock HANGUL_JAMO_EXTENDED_B;
- field public static final java.lang.Character.UnicodeBlock HANGUL_SYLLABLES;
- field public static final java.lang.Character.UnicodeBlock HANUNOO;
- field public static final java.lang.Character.UnicodeBlock HEBREW;
- field public static final java.lang.Character.UnicodeBlock HIGH_PRIVATE_USE_SURROGATES;
- field public static final java.lang.Character.UnicodeBlock HIGH_SURROGATES;
- field public static final java.lang.Character.UnicodeBlock HIRAGANA;
- field public static final java.lang.Character.UnicodeBlock IDEOGRAPHIC_DESCRIPTION_CHARACTERS;
- field public static final java.lang.Character.UnicodeBlock IMPERIAL_ARAMAIC;
- field public static final java.lang.Character.UnicodeBlock INSCRIPTIONAL_PAHLAVI;
- field public static final java.lang.Character.UnicodeBlock INSCRIPTIONAL_PARTHIAN;
- field public static final java.lang.Character.UnicodeBlock IPA_EXTENSIONS;
- field public static final java.lang.Character.UnicodeBlock JAVANESE;
- field public static final java.lang.Character.UnicodeBlock KAITHI;
- field public static final java.lang.Character.UnicodeBlock KANA_SUPPLEMENT;
- field public static final java.lang.Character.UnicodeBlock KANBUN;
- field public static final java.lang.Character.UnicodeBlock KANGXI_RADICALS;
- field public static final java.lang.Character.UnicodeBlock KANNADA;
- field public static final java.lang.Character.UnicodeBlock KATAKANA;
- field public static final java.lang.Character.UnicodeBlock KATAKANA_PHONETIC_EXTENSIONS;
- field public static final java.lang.Character.UnicodeBlock KAYAH_LI;
- field public static final java.lang.Character.UnicodeBlock KHAROSHTHI;
- field public static final java.lang.Character.UnicodeBlock KHMER;
- field public static final java.lang.Character.UnicodeBlock KHMER_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock LAO;
- field public static final java.lang.Character.UnicodeBlock LATIN_1_SUPPLEMENT;
- field public static final java.lang.Character.UnicodeBlock LATIN_EXTENDED_A;
- field public static final java.lang.Character.UnicodeBlock LATIN_EXTENDED_ADDITIONAL;
- field public static final java.lang.Character.UnicodeBlock LATIN_EXTENDED_B;
- field public static final java.lang.Character.UnicodeBlock LATIN_EXTENDED_C;
- field public static final java.lang.Character.UnicodeBlock LATIN_EXTENDED_D;
- field public static final java.lang.Character.UnicodeBlock LEPCHA;
- field public static final java.lang.Character.UnicodeBlock LETTERLIKE_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock LIMBU;
- field public static final java.lang.Character.UnicodeBlock LINEAR_B_IDEOGRAMS;
- field public static final java.lang.Character.UnicodeBlock LINEAR_B_SYLLABARY;
- field public static final java.lang.Character.UnicodeBlock LISU;
- field public static final java.lang.Character.UnicodeBlock LOW_SURROGATES;
- field public static final java.lang.Character.UnicodeBlock LYCIAN;
- field public static final java.lang.Character.UnicodeBlock LYDIAN;
- field public static final java.lang.Character.UnicodeBlock MAHJONG_TILES;
- field public static final java.lang.Character.UnicodeBlock MALAYALAM;
- field public static final java.lang.Character.UnicodeBlock MANDAIC;
- field public static final java.lang.Character.UnicodeBlock MATHEMATICAL_ALPHANUMERIC_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock MATHEMATICAL_OPERATORS;
- field public static final java.lang.Character.UnicodeBlock MEETEI_MAYEK;
- field public static final java.lang.Character.UnicodeBlock MEETEI_MAYEK_EXTENSIONS;
- field public static final java.lang.Character.UnicodeBlock MEROITIC_CURSIVE;
- field public static final java.lang.Character.UnicodeBlock MEROITIC_HIEROGLYPHS;
- field public static final java.lang.Character.UnicodeBlock MIAO;
- field public static final java.lang.Character.UnicodeBlock MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A;
- field public static final java.lang.Character.UnicodeBlock MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B;
- field public static final java.lang.Character.UnicodeBlock MISCELLANEOUS_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock MISCELLANEOUS_SYMBOLS_AND_ARROWS;
- field public static final java.lang.Character.UnicodeBlock MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS;
- field public static final java.lang.Character.UnicodeBlock MISCELLANEOUS_TECHNICAL;
- field public static final java.lang.Character.UnicodeBlock MODIFIER_TONE_LETTERS;
- field public static final java.lang.Character.UnicodeBlock MONGOLIAN;
- field public static final java.lang.Character.UnicodeBlock MUSICAL_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock MYANMAR;
- field public static final java.lang.Character.UnicodeBlock MYANMAR_EXTENDED_A;
- field public static final java.lang.Character.UnicodeBlock NEW_TAI_LUE;
- field public static final java.lang.Character.UnicodeBlock NKO;
- field public static final java.lang.Character.UnicodeBlock NUMBER_FORMS;
- field public static final java.lang.Character.UnicodeBlock OGHAM;
- field public static final java.lang.Character.UnicodeBlock OLD_ITALIC;
- field public static final java.lang.Character.UnicodeBlock OLD_PERSIAN;
- field public static final java.lang.Character.UnicodeBlock OLD_SOUTH_ARABIAN;
- field public static final java.lang.Character.UnicodeBlock OLD_TURKIC;
- field public static final java.lang.Character.UnicodeBlock OL_CHIKI;
- field public static final java.lang.Character.UnicodeBlock OPTICAL_CHARACTER_RECOGNITION;
- field public static final java.lang.Character.UnicodeBlock ORIYA;
- field public static final java.lang.Character.UnicodeBlock OSMANYA;
- field public static final java.lang.Character.UnicodeBlock PHAGS_PA;
- field public static final java.lang.Character.UnicodeBlock PHAISTOS_DISC;
- field public static final java.lang.Character.UnicodeBlock PHOENICIAN;
- field public static final java.lang.Character.UnicodeBlock PHONETIC_EXTENSIONS;
- field public static final java.lang.Character.UnicodeBlock PHONETIC_EXTENSIONS_SUPPLEMENT;
- field public static final java.lang.Character.UnicodeBlock PLAYING_CARDS;
- field public static final java.lang.Character.UnicodeBlock PRIVATE_USE_AREA;
- field public static final java.lang.Character.UnicodeBlock REJANG;
- field public static final java.lang.Character.UnicodeBlock RUMI_NUMERAL_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock RUNIC;
- field public static final java.lang.Character.UnicodeBlock SAMARITAN;
- field public static final java.lang.Character.UnicodeBlock SAURASHTRA;
- field public static final java.lang.Character.UnicodeBlock SHARADA;
- field public static final java.lang.Character.UnicodeBlock SHAVIAN;
- field public static final java.lang.Character.UnicodeBlock SINHALA;
- field public static final java.lang.Character.UnicodeBlock SMALL_FORM_VARIANTS;
- field public static final java.lang.Character.UnicodeBlock SORA_SOMPENG;
- field public static final java.lang.Character.UnicodeBlock SPACING_MODIFIER_LETTERS;
- field public static final java.lang.Character.UnicodeBlock SPECIALS;
- field public static final java.lang.Character.UnicodeBlock SUNDANESE;
- field public static final java.lang.Character.UnicodeBlock SUNDANESE_SUPPLEMENT;
- field public static final java.lang.Character.UnicodeBlock SUPERSCRIPTS_AND_SUBSCRIPTS;
- field public static final java.lang.Character.UnicodeBlock SUPPLEMENTAL_ARROWS_A;
- field public static final java.lang.Character.UnicodeBlock SUPPLEMENTAL_ARROWS_B;
- field public static final java.lang.Character.UnicodeBlock SUPPLEMENTAL_MATHEMATICAL_OPERATORS;
- field public static final java.lang.Character.UnicodeBlock SUPPLEMENTAL_PUNCTUATION;
- field public static final java.lang.Character.UnicodeBlock SUPPLEMENTARY_PRIVATE_USE_AREA_A;
- field public static final java.lang.Character.UnicodeBlock SUPPLEMENTARY_PRIVATE_USE_AREA_B;
- field @Deprecated public static final java.lang.Character.UnicodeBlock SURROGATES_AREA;
- field public static final java.lang.Character.UnicodeBlock SYLOTI_NAGRI;
- field public static final java.lang.Character.UnicodeBlock SYRIAC;
- field public static final java.lang.Character.UnicodeBlock TAGALOG;
- field public static final java.lang.Character.UnicodeBlock TAGBANWA;
- field public static final java.lang.Character.UnicodeBlock TAGS;
- field public static final java.lang.Character.UnicodeBlock TAI_LE;
- field public static final java.lang.Character.UnicodeBlock TAI_THAM;
- field public static final java.lang.Character.UnicodeBlock TAI_VIET;
- field public static final java.lang.Character.UnicodeBlock TAI_XUAN_JING_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock TAKRI;
- field public static final java.lang.Character.UnicodeBlock TAMIL;
- field public static final java.lang.Character.UnicodeBlock TELUGU;
- field public static final java.lang.Character.UnicodeBlock THAANA;
- field public static final java.lang.Character.UnicodeBlock THAI;
- field public static final java.lang.Character.UnicodeBlock TIBETAN;
- field public static final java.lang.Character.UnicodeBlock TIFINAGH;
- field public static final java.lang.Character.UnicodeBlock TRANSPORT_AND_MAP_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock UGARITIC;
- field public static final java.lang.Character.UnicodeBlock UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS;
- field public static final java.lang.Character.UnicodeBlock UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED;
- field public static final java.lang.Character.UnicodeBlock VAI;
- field public static final java.lang.Character.UnicodeBlock VARIATION_SELECTORS;
- field public static final java.lang.Character.UnicodeBlock VARIATION_SELECTORS_SUPPLEMENT;
- field public static final java.lang.Character.UnicodeBlock VEDIC_EXTENSIONS;
- field public static final java.lang.Character.UnicodeBlock VERTICAL_FORMS;
- field public static final java.lang.Character.UnicodeBlock YIJING_HEXAGRAM_SYMBOLS;
- field public static final java.lang.Character.UnicodeBlock YI_RADICALS;
- field public static final java.lang.Character.UnicodeBlock YI_SYLLABLES;
- }
-
- public enum Character.UnicodeScript {
- method @NonNull public static java.lang.Character.UnicodeScript forName(@NonNull String);
- method @NonNull public static java.lang.Character.UnicodeScript of(int);
- enum_constant public static final java.lang.Character.UnicodeScript ARABIC;
- enum_constant public static final java.lang.Character.UnicodeScript ARMENIAN;
- enum_constant public static final java.lang.Character.UnicodeScript AVESTAN;
- enum_constant public static final java.lang.Character.UnicodeScript BALINESE;
- enum_constant public static final java.lang.Character.UnicodeScript BAMUM;
- enum_constant public static final java.lang.Character.UnicodeScript BATAK;
- enum_constant public static final java.lang.Character.UnicodeScript BENGALI;
- enum_constant public static final java.lang.Character.UnicodeScript BOPOMOFO;
- enum_constant public static final java.lang.Character.UnicodeScript BRAHMI;
- enum_constant public static final java.lang.Character.UnicodeScript BRAILLE;
- enum_constant public static final java.lang.Character.UnicodeScript BUGINESE;
- enum_constant public static final java.lang.Character.UnicodeScript BUHID;
- enum_constant public static final java.lang.Character.UnicodeScript CANADIAN_ABORIGINAL;
- enum_constant public static final java.lang.Character.UnicodeScript CARIAN;
- enum_constant public static final java.lang.Character.UnicodeScript CHAKMA;
- enum_constant public static final java.lang.Character.UnicodeScript CHAM;
- enum_constant public static final java.lang.Character.UnicodeScript CHEROKEE;
- enum_constant public static final java.lang.Character.UnicodeScript COMMON;
- enum_constant public static final java.lang.Character.UnicodeScript COPTIC;
- enum_constant public static final java.lang.Character.UnicodeScript CUNEIFORM;
- enum_constant public static final java.lang.Character.UnicodeScript CYPRIOT;
- enum_constant public static final java.lang.Character.UnicodeScript CYRILLIC;
- enum_constant public static final java.lang.Character.UnicodeScript DESERET;
- enum_constant public static final java.lang.Character.UnicodeScript DEVANAGARI;
- enum_constant public static final java.lang.Character.UnicodeScript EGYPTIAN_HIEROGLYPHS;
- enum_constant public static final java.lang.Character.UnicodeScript ETHIOPIC;
- enum_constant public static final java.lang.Character.UnicodeScript GEORGIAN;
- enum_constant public static final java.lang.Character.UnicodeScript GLAGOLITIC;
- enum_constant public static final java.lang.Character.UnicodeScript GOTHIC;
- enum_constant public static final java.lang.Character.UnicodeScript GREEK;
- enum_constant public static final java.lang.Character.UnicodeScript GUJARATI;
- enum_constant public static final java.lang.Character.UnicodeScript GURMUKHI;
- enum_constant public static final java.lang.Character.UnicodeScript HAN;
- enum_constant public static final java.lang.Character.UnicodeScript HANGUL;
- enum_constant public static final java.lang.Character.UnicodeScript HANUNOO;
- enum_constant public static final java.lang.Character.UnicodeScript HEBREW;
- enum_constant public static final java.lang.Character.UnicodeScript HIRAGANA;
- enum_constant public static final java.lang.Character.UnicodeScript IMPERIAL_ARAMAIC;
- enum_constant public static final java.lang.Character.UnicodeScript INHERITED;
- enum_constant public static final java.lang.Character.UnicodeScript INSCRIPTIONAL_PAHLAVI;
- enum_constant public static final java.lang.Character.UnicodeScript INSCRIPTIONAL_PARTHIAN;
- enum_constant public static final java.lang.Character.UnicodeScript JAVANESE;
- enum_constant public static final java.lang.Character.UnicodeScript KAITHI;
- enum_constant public static final java.lang.Character.UnicodeScript KANNADA;
- enum_constant public static final java.lang.Character.UnicodeScript KATAKANA;
- enum_constant public static final java.lang.Character.UnicodeScript KAYAH_LI;
- enum_constant public static final java.lang.Character.UnicodeScript KHAROSHTHI;
- enum_constant public static final java.lang.Character.UnicodeScript KHMER;
- enum_constant public static final java.lang.Character.UnicodeScript LAO;
- enum_constant public static final java.lang.Character.UnicodeScript LATIN;
- enum_constant public static final java.lang.Character.UnicodeScript LEPCHA;
- enum_constant public static final java.lang.Character.UnicodeScript LIMBU;
- enum_constant public static final java.lang.Character.UnicodeScript LINEAR_B;
- enum_constant public static final java.lang.Character.UnicodeScript LISU;
- enum_constant public static final java.lang.Character.UnicodeScript LYCIAN;
- enum_constant public static final java.lang.Character.UnicodeScript LYDIAN;
- enum_constant public static final java.lang.Character.UnicodeScript MALAYALAM;
- enum_constant public static final java.lang.Character.UnicodeScript MANDAIC;
- enum_constant public static final java.lang.Character.UnicodeScript MEETEI_MAYEK;
- enum_constant public static final java.lang.Character.UnicodeScript MEROITIC_CURSIVE;
- enum_constant public static final java.lang.Character.UnicodeScript MEROITIC_HIEROGLYPHS;
- enum_constant public static final java.lang.Character.UnicodeScript MIAO;
- enum_constant public static final java.lang.Character.UnicodeScript MONGOLIAN;
- enum_constant public static final java.lang.Character.UnicodeScript MYANMAR;
- enum_constant public static final java.lang.Character.UnicodeScript NEW_TAI_LUE;
- enum_constant public static final java.lang.Character.UnicodeScript NKO;
- enum_constant public static final java.lang.Character.UnicodeScript OGHAM;
- enum_constant public static final java.lang.Character.UnicodeScript OLD_ITALIC;
- enum_constant public static final java.lang.Character.UnicodeScript OLD_PERSIAN;
- enum_constant public static final java.lang.Character.UnicodeScript OLD_SOUTH_ARABIAN;
- enum_constant public static final java.lang.Character.UnicodeScript OLD_TURKIC;
- enum_constant public static final java.lang.Character.UnicodeScript OL_CHIKI;
- enum_constant public static final java.lang.Character.UnicodeScript ORIYA;
- enum_constant public static final java.lang.Character.UnicodeScript OSMANYA;
- enum_constant public static final java.lang.Character.UnicodeScript PHAGS_PA;
- enum_constant public static final java.lang.Character.UnicodeScript PHOENICIAN;
- enum_constant public static final java.lang.Character.UnicodeScript REJANG;
- enum_constant public static final java.lang.Character.UnicodeScript RUNIC;
- enum_constant public static final java.lang.Character.UnicodeScript SAMARITAN;
- enum_constant public static final java.lang.Character.UnicodeScript SAURASHTRA;
- enum_constant public static final java.lang.Character.UnicodeScript SHARADA;
- enum_constant public static final java.lang.Character.UnicodeScript SHAVIAN;
- enum_constant public static final java.lang.Character.UnicodeScript SINHALA;
- enum_constant public static final java.lang.Character.UnicodeScript SORA_SOMPENG;
- enum_constant public static final java.lang.Character.UnicodeScript SUNDANESE;
- enum_constant public static final java.lang.Character.UnicodeScript SYLOTI_NAGRI;
- enum_constant public static final java.lang.Character.UnicodeScript SYRIAC;
- enum_constant public static final java.lang.Character.UnicodeScript TAGALOG;
- enum_constant public static final java.lang.Character.UnicodeScript TAGBANWA;
- enum_constant public static final java.lang.Character.UnicodeScript TAI_LE;
- enum_constant public static final java.lang.Character.UnicodeScript TAI_THAM;
- enum_constant public static final java.lang.Character.UnicodeScript TAI_VIET;
- enum_constant public static final java.lang.Character.UnicodeScript TAKRI;
- enum_constant public static final java.lang.Character.UnicodeScript TAMIL;
- enum_constant public static final java.lang.Character.UnicodeScript TELUGU;
- enum_constant public static final java.lang.Character.UnicodeScript THAANA;
- enum_constant public static final java.lang.Character.UnicodeScript THAI;
- enum_constant public static final java.lang.Character.UnicodeScript TIBETAN;
- enum_constant public static final java.lang.Character.UnicodeScript TIFINAGH;
- enum_constant public static final java.lang.Character.UnicodeScript UGARITIC;
- enum_constant public static final java.lang.Character.UnicodeScript UNKNOWN;
- enum_constant public static final java.lang.Character.UnicodeScript VAI;
- enum_constant public static final java.lang.Character.UnicodeScript YI;
- }
-
- public final class Class<T> implements java.lang.reflect.AnnotatedElement java.lang.reflect.GenericDeclaration java.io.Serializable java.lang.reflect.Type {
- method @NonNull public <U> Class<? extends U> asSubclass(@NonNull Class<U>);
- method @Nullable public T cast(@Nullable Object);
- method public boolean desiredAssertionStatus();
- method @NonNull public static Class<?> forName(@NonNull String) throws java.lang.ClassNotFoundException;
- method @NonNull public static Class<?> forName(@NonNull String, boolean, @Nullable ClassLoader) throws java.lang.ClassNotFoundException;
- method @Nullable public <A extends java.lang.annotation.Annotation> A getAnnotation(@NonNull Class<A>);
- method @NonNull public java.lang.annotation.Annotation[] getAnnotations();
- method @NonNull public <A extends java.lang.annotation.Annotation> A[] getAnnotationsByType(@NonNull Class<A>);
- method @Nullable public String getCanonicalName();
- method @Nullable public ClassLoader getClassLoader();
- method @NonNull public Class<?>[] getClasses();
- method @Nullable public Class<?> getComponentType();
- method @NonNull public java.lang.reflect.Constructor<T> getConstructor(@Nullable Class<?>...) throws java.lang.NoSuchMethodException, java.lang.SecurityException;
- method @NonNull public java.lang.reflect.Constructor<?>[] getConstructors() throws java.lang.SecurityException;
- method @Nullable public <A extends java.lang.annotation.Annotation> A getDeclaredAnnotation(@NonNull Class<A>);
- method @NonNull public java.lang.annotation.Annotation[] getDeclaredAnnotations();
- method @NonNull public Class<?>[] getDeclaredClasses();
- method @NonNull public java.lang.reflect.Constructor<T> getDeclaredConstructor(@Nullable Class<?>...) throws java.lang.NoSuchMethodException, java.lang.SecurityException;
- method @NonNull public java.lang.reflect.Constructor<?>[] getDeclaredConstructors() throws java.lang.SecurityException;
- method @NonNull public java.lang.reflect.Field getDeclaredField(@NonNull String) throws java.lang.NoSuchFieldException;
- method @NonNull public java.lang.reflect.Field[] getDeclaredFields();
- method @NonNull public java.lang.reflect.Method getDeclaredMethod(@NonNull String, @Nullable Class<?>...) throws java.lang.NoSuchMethodException, java.lang.SecurityException;
- method @NonNull public java.lang.reflect.Method[] getDeclaredMethods() throws java.lang.SecurityException;
- method @Nullable public Class<?> getDeclaringClass();
- method @Nullable public Class<?> getEnclosingClass();
- method @Nullable public java.lang.reflect.Constructor<?> getEnclosingConstructor();
- method @Nullable public java.lang.reflect.Method getEnclosingMethod();
- method @Nullable public T[] getEnumConstants();
- method @NonNull public java.lang.reflect.Field getField(@NonNull String) throws java.lang.NoSuchFieldException;
- method @NonNull public java.lang.reflect.Field[] getFields() throws java.lang.SecurityException;
- method @NonNull public java.lang.reflect.Type[] getGenericInterfaces();
- method @Nullable public java.lang.reflect.Type getGenericSuperclass();
- method @NonNull public Class<?>[] getInterfaces();
- method @NonNull public java.lang.reflect.Method getMethod(@NonNull String, @Nullable Class<?>...) throws java.lang.NoSuchMethodException, java.lang.SecurityException;
- method @NonNull public java.lang.reflect.Method[] getMethods() throws java.lang.SecurityException;
- method public int getModifiers();
- method @NonNull public String getName();
- method @Nullable public Package getPackage();
- method @NonNull public String getPackageName();
- method @Nullable public java.security.ProtectionDomain getProtectionDomain();
- method @Nullable public java.net.URL getResource(@NonNull String);
- method @Nullable public java.io.InputStream getResourceAsStream(@NonNull String);
- method @Nullable public Object[] getSigners();
- method @NonNull public String getSimpleName();
- method @Nullable public Class<? super T> getSuperclass();
- method @NonNull public java.lang.reflect.TypeVariable<java.lang.Class<T>>[] getTypeParameters();
- method public boolean isAnnotation();
- method public boolean isAnonymousClass();
- method public boolean isArray();
- method public boolean isAssignableFrom(@NonNull Class<?>);
- method public boolean isEnum();
- method public boolean isInstance(@Nullable Object);
- method public boolean isInterface();
- method public boolean isLocalClass();
- method public boolean isMemberClass();
- method public boolean isPrimitive();
- method public boolean isSynthetic();
- method @NonNull public T newInstance() throws java.lang.IllegalAccessException, java.lang.InstantiationException;
- method @NonNull public String toGenericString();
- }
-
- public class ClassCastException extends java.lang.RuntimeException {
- ctor public ClassCastException();
- ctor public ClassCastException(String);
- }
-
- public class ClassCircularityError extends java.lang.LinkageError {
- ctor public ClassCircularityError();
- ctor public ClassCircularityError(String);
- }
-
- public class ClassFormatError extends java.lang.LinkageError {
- ctor public ClassFormatError();
- ctor public ClassFormatError(String);
- }
-
- public abstract class ClassLoader {
- ctor protected ClassLoader(ClassLoader);
- ctor protected ClassLoader();
- method public void clearAssertionStatus();
- method @Deprecated protected final Class<?> defineClass(byte[], int, int) throws java.lang.ClassFormatError;
- method protected final Class<?> defineClass(String, byte[], int, int) throws java.lang.ClassFormatError;
- method protected final Class<?> defineClass(String, byte[], int, int, java.security.ProtectionDomain) throws java.lang.ClassFormatError;
- method protected final Class<?> defineClass(String, java.nio.ByteBuffer, java.security.ProtectionDomain) throws java.lang.ClassFormatError;
- method protected Package definePackage(String, String, String, String, String, String, String, java.net.URL) throws java.lang.IllegalArgumentException;
- method protected Class<?> findClass(String) throws java.lang.ClassNotFoundException;
- method protected String findLibrary(String);
- method protected final Class<?> findLoadedClass(String);
- method protected java.net.URL findResource(String);
- method protected java.util.Enumeration<java.net.URL> findResources(String) throws java.io.IOException;
- method protected final Class<?> findSystemClass(String) throws java.lang.ClassNotFoundException;
- method protected Package getPackage(String);
- method protected Package[] getPackages();
- method public final ClassLoader getParent();
- method public java.net.URL getResource(String);
- method public java.io.InputStream getResourceAsStream(String);
- method public java.util.Enumeration<java.net.URL> getResources(String) throws java.io.IOException;
- method public static ClassLoader getSystemClassLoader();
- method public static java.net.URL getSystemResource(String);
- method public static java.io.InputStream getSystemResourceAsStream(String);
- method public static java.util.Enumeration<java.net.URL> getSystemResources(String) throws java.io.IOException;
- method public Class<?> loadClass(String) throws java.lang.ClassNotFoundException;
- method protected Class<?> loadClass(String, boolean) throws java.lang.ClassNotFoundException;
- method protected static boolean registerAsParallelCapable();
- method protected final void resolveClass(Class<?>);
- method public void setClassAssertionStatus(String, boolean);
- method public void setDefaultAssertionStatus(boolean);
- method public void setPackageAssertionStatus(String, boolean);
- method protected final void setSigners(Class<?>, Object[]);
- }
-
- public class ClassNotFoundException extends java.lang.ReflectiveOperationException {
- ctor public ClassNotFoundException();
- ctor public ClassNotFoundException(String);
- ctor public ClassNotFoundException(String, Throwable);
- method public Throwable getException();
- }
-
- public class CloneNotSupportedException extends java.lang.Exception {
- ctor public CloneNotSupportedException();
- ctor public CloneNotSupportedException(String);
- }
-
- public interface Cloneable {
- }
-
- public interface Comparable<T> {
- method public int compareTo(T);
- }
-
- public final class Compiler {
- method public static Object command(Object);
- method public static boolean compileClass(Class<?>);
- method public static boolean compileClasses(String);
- method public static void disable();
- method public static void enable();
- }
-
- @java.lang.annotation.Documented @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.CONSTRUCTOR, java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.LOCAL_VARIABLE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PACKAGE, java.lang.annotation.ElementType.PARAMETER, java.lang.annotation.ElementType.TYPE}) public @interface Deprecated {
- }
-
- public final class Double extends java.lang.Number implements java.lang.Comparable<java.lang.Double> {
- ctor public Double(double);
- ctor public Double(@NonNull String) throws java.lang.NumberFormatException;
- method public static int compare(double, double);
- method public int compareTo(@NonNull Double);
- method public static long doubleToLongBits(double);
- method public static long doubleToRawLongBits(double);
- method public double doubleValue();
- method public float floatValue();
- method public static int hashCode(double);
- method public int intValue();
- method public static boolean isFinite(double);
- method public static boolean isInfinite(double);
- method public boolean isInfinite();
- method public static boolean isNaN(double);
- method public boolean isNaN();
- method public static double longBitsToDouble(long);
- method public long longValue();
- method public static double max(double, double);
- method public static double min(double, double);
- method public static double parseDouble(@NonNull String) throws java.lang.NumberFormatException;
- method public static double sum(double, double);
- method @NonNull public static String toHexString(double);
- method @NonNull public static String toString(double);
- method @NonNull public static Double valueOf(@NonNull String) throws java.lang.NumberFormatException;
- method @NonNull public static Double valueOf(double);
- field public static final int BYTES = 8; // 0x8
- field public static final int MAX_EXPONENT = 1023; // 0x3ff
- field public static final double MAX_VALUE = 1.7976931348623157E308;
- field public static final int MIN_EXPONENT = -1022; // 0xfffffc02
- field public static final double MIN_NORMAL = 2.2250738585072014E-308;
- field public static final double MIN_VALUE = 4.9E-324;
- field public static final double NEGATIVE_INFINITY = (-1.0/0.0);
- field public static final double NaN = (0.0/0.0);
- field public static final double POSITIVE_INFINITY = (1.0/0.0);
- field public static final int SIZE = 64; // 0x40
- field public static final Class<java.lang.Double> TYPE;
- }
-
- public abstract class Enum<E extends java.lang.Enum<E>> implements java.lang.Comparable<E> java.io.Serializable {
- ctor protected Enum(@NonNull String, int);
- method @NonNull protected final Object clone() throws java.lang.CloneNotSupportedException;
- method public final int compareTo(E);
- method public final boolean equals(@Nullable Object);
- method protected final void finalize();
- method @NonNull public final Class<E> getDeclaringClass();
- method public final int hashCode();
- method @NonNull public final String name();
- method public final int ordinal();
- method @NonNull public static <T extends java.lang.Enum<T>> T valueOf(@NonNull Class<T>, @NonNull String);
- }
-
- public class EnumConstantNotPresentException extends java.lang.RuntimeException {
- ctor public EnumConstantNotPresentException(Class<? extends java.lang.Enum>, String);
- method public String constantName();
- method public Class<? extends java.lang.Enum> enumType();
- }
-
- public class Error extends java.lang.Throwable {
- ctor public Error();
- ctor public Error(String);
- ctor public Error(String, Throwable);
- ctor public Error(Throwable);
- ctor protected Error(String, Throwable, boolean, boolean);
- }
-
- public class Exception extends java.lang.Throwable {
- ctor public Exception();
- ctor public Exception(String);
- ctor public Exception(String, Throwable);
- ctor public Exception(Throwable);
- ctor protected Exception(String, Throwable, boolean, boolean);
- }
-
- public class ExceptionInInitializerError extends java.lang.LinkageError {
- ctor public ExceptionInInitializerError();
- ctor public ExceptionInInitializerError(Throwable);
- ctor public ExceptionInInitializerError(String);
- method public Throwable getException();
- }
-
- public final class Float extends java.lang.Number implements java.lang.Comparable<java.lang.Float> {
- ctor public Float(float);
- ctor public Float(double);
- ctor public Float(@NonNull String) throws java.lang.NumberFormatException;
- method public static int compare(float, float);
- method public int compareTo(@NonNull Float);
- method public double doubleValue();
- method public static int floatToIntBits(float);
- method public static int floatToRawIntBits(float);
- method public float floatValue();
- method public static int hashCode(float);
- method public static float intBitsToFloat(int);
- method public int intValue();
- method public static boolean isFinite(float);
- method public static boolean isInfinite(float);
- method public boolean isInfinite();
- method public static boolean isNaN(float);
- method public boolean isNaN();
- method public long longValue();
- method public static float max(float, float);
- method public static float min(float, float);
- method public static float parseFloat(@NonNull String) throws java.lang.NumberFormatException;
- method public static float sum(float, float);
- method @NonNull public static String toHexString(float);
- method @NonNull public static String toString(float);
- method @NonNull public static Float valueOf(@NonNull String) throws java.lang.NumberFormatException;
- method @NonNull public static Float valueOf(float);
- field public static final int BYTES = 4; // 0x4
- field public static final int MAX_EXPONENT = 127; // 0x7f
- field public static final float MAX_VALUE = 3.4028235E38f;
- field public static final int MIN_EXPONENT = -126; // 0xffffff82
- field public static final float MIN_NORMAL = 1.17549435E-38f;
- field public static final float MIN_VALUE = 1.4E-45f;
- field public static final float NEGATIVE_INFINITY = (-1.0f/0.0f);
- field public static final float NaN = (0.0f/0.0f);
- field public static final float POSITIVE_INFINITY = (1.0f/0.0f);
- field public static final int SIZE = 32; // 0x20
- field public static final Class<java.lang.Float> TYPE;
- }
-
- @java.lang.annotation.Documented @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target(java.lang.annotation.ElementType.TYPE) public @interface FunctionalInterface {
- }
-
- public class IllegalAccessError extends java.lang.IncompatibleClassChangeError {
- ctor public IllegalAccessError();
- ctor public IllegalAccessError(String);
- }
-
- public class IllegalAccessException extends java.lang.ReflectiveOperationException {
- ctor public IllegalAccessException();
- ctor public IllegalAccessException(String);
- }
-
- public class IllegalArgumentException extends java.lang.RuntimeException {
- ctor public IllegalArgumentException();
- ctor public IllegalArgumentException(String);
- ctor public IllegalArgumentException(String, Throwable);
- ctor public IllegalArgumentException(Throwable);
- }
-
- public class IllegalMonitorStateException extends java.lang.RuntimeException {
- ctor public IllegalMonitorStateException();
- ctor public IllegalMonitorStateException(String);
- }
-
- public class IllegalStateException extends java.lang.RuntimeException {
- ctor public IllegalStateException();
- ctor public IllegalStateException(String);
- ctor public IllegalStateException(String, Throwable);
- ctor public IllegalStateException(Throwable);
- }
-
- public class IllegalThreadStateException extends java.lang.IllegalArgumentException {
- ctor public IllegalThreadStateException();
- ctor public IllegalThreadStateException(String);
- }
-
- public class IncompatibleClassChangeError extends java.lang.LinkageError {
- ctor public IncompatibleClassChangeError();
- ctor public IncompatibleClassChangeError(String);
- }
-
- public class IndexOutOfBoundsException extends java.lang.RuntimeException {
- ctor public IndexOutOfBoundsException();
- ctor public IndexOutOfBoundsException(String);
- }
-
- public class InheritableThreadLocal<T> extends java.lang.ThreadLocal<T> {
- ctor public InheritableThreadLocal();
- method protected T childValue(T);
- }
-
- public class InstantiationError extends java.lang.IncompatibleClassChangeError {
- ctor public InstantiationError();
- ctor public InstantiationError(String);
- }
-
- public class InstantiationException extends java.lang.ReflectiveOperationException {
- ctor public InstantiationException();
- ctor public InstantiationException(String);
- }
-
- public final class Integer extends java.lang.Number implements java.lang.Comparable<java.lang.Integer> {
- ctor public Integer(int);
- ctor public Integer(@NonNull String) throws java.lang.NumberFormatException;
- method public static int bitCount(int);
- method public static int compare(int, int);
- method public int compareTo(@NonNull Integer);
- method public static int compareUnsigned(int, int);
- method @NonNull public static Integer decode(@NonNull String) throws java.lang.NumberFormatException;
- method public static int divideUnsigned(int, int);
- method public double doubleValue();
- method public float floatValue();
- method @Nullable public static Integer getInteger(@NonNull String);
- method @Nullable public static Integer getInteger(@NonNull String, int);
- method @Nullable public static Integer getInteger(@NonNull String, @Nullable Integer);
- method public static int hashCode(int);
- method public static int highestOneBit(int);
- method public int intValue();
- method public long longValue();
- method public static int lowestOneBit(int);
- method public static int max(int, int);
- method public static int min(int, int);
- method public static int numberOfLeadingZeros(int);
- method public static int numberOfTrailingZeros(int);
- method public static int parseInt(@NonNull String, int) throws java.lang.NumberFormatException;
- method public static int parseInt(@NonNull String) throws java.lang.NumberFormatException;
- method public static int parseUnsignedInt(@NonNull String, int) throws java.lang.NumberFormatException;
- method public static int parseUnsignedInt(@NonNull String) throws java.lang.NumberFormatException;
- method public static int remainderUnsigned(int, int);
- method public static int reverse(int);
- method public static int reverseBytes(int);
- method public static int rotateLeft(int, int);
- method public static int rotateRight(int, int);
- method public static int signum(int);
- method public static int sum(int, int);
- method @NonNull public static String toBinaryString(int);
- method @NonNull public static String toHexString(int);
- method @NonNull public static String toOctalString(int);
- method @NonNull public static String toString(int, int);
- method @NonNull public static String toString(int);
- method public static long toUnsignedLong(int);
- method @NonNull public static String toUnsignedString(int, int);
- method @NonNull public static String toUnsignedString(int);
- method @NonNull public static Integer valueOf(@NonNull String, int) throws java.lang.NumberFormatException;
- method @NonNull public static Integer valueOf(@NonNull String) throws java.lang.NumberFormatException;
- method @NonNull public static Integer valueOf(int);
- field public static final int BYTES = 4; // 0x4
- field public static final int MAX_VALUE = 2147483647; // 0x7fffffff
- field public static final int MIN_VALUE = -2147483648; // 0x80000000
- field public static final int SIZE = 32; // 0x20
- field public static final Class<java.lang.Integer> TYPE;
- }
-
- public class InternalError extends java.lang.VirtualMachineError {
- ctor public InternalError();
- ctor public InternalError(String);
- ctor public InternalError(String, Throwable);
- ctor public InternalError(Throwable);
- }
-
- public class InterruptedException extends java.lang.Exception {
- ctor public InterruptedException();
- ctor public InterruptedException(String);
- }
-
- public interface Iterable<T> {
- method public default void forEach(@NonNull java.util.function.Consumer<? super T>);
- method @NonNull public java.util.Iterator<T> iterator();
- method @NonNull public default java.util.Spliterator<T> spliterator();
- }
-
- public class LinkageError extends java.lang.Error {
- ctor public LinkageError();
- ctor public LinkageError(String);
- ctor public LinkageError(String, Throwable);
- }
-
- public final class Long extends java.lang.Number implements java.lang.Comparable<java.lang.Long> {
- ctor public Long(long);
- ctor public Long(@NonNull String) throws java.lang.NumberFormatException;
- method public static int bitCount(long);
- method public static int compare(long, long);
- method public int compareTo(@NonNull Long);
- method public static int compareUnsigned(long, long);
- method @NonNull public static Long decode(@NonNull String) throws java.lang.NumberFormatException;
- method public static long divideUnsigned(long, long);
- method public double doubleValue();
- method public float floatValue();
- method @Nullable public static Long getLong(@NonNull String);
- method @Nullable public static Long getLong(@NonNull String, long);
- method @Nullable public static Long getLong(@NonNull String, @Nullable Long);
- method public static int hashCode(long);
- method public static long highestOneBit(long);
- method public int intValue();
- method public long longValue();
- method public static long lowestOneBit(long);
- method public static long max(long, long);
- method public static long min(long, long);
- method public static int numberOfLeadingZeros(long);
- method public static int numberOfTrailingZeros(long);
- method public static long parseLong(@NonNull String, int) throws java.lang.NumberFormatException;
- method public static long parseLong(@NonNull String) throws java.lang.NumberFormatException;
- method public static long parseUnsignedLong(@NonNull String, int) throws java.lang.NumberFormatException;
- method public static long parseUnsignedLong(@NonNull String) throws java.lang.NumberFormatException;
- method public static long remainderUnsigned(long, long);
- method public static long reverse(long);
- method public static long reverseBytes(long);
- method public static long rotateLeft(long, int);
- method public static long rotateRight(long, int);
- method public static int signum(long);
- method public static long sum(long, long);
- method @NonNull public static String toBinaryString(long);
- method @NonNull public static String toHexString(long);
- method @NonNull public static String toOctalString(long);
- method @NonNull public static String toString(long, int);
- method @NonNull public static String toString(long);
- method @NonNull public static String toUnsignedString(long, int);
- method @NonNull public static String toUnsignedString(long);
- method @NonNull public static Long valueOf(@NonNull String, int) throws java.lang.NumberFormatException;
- method @NonNull public static Long valueOf(@NonNull String) throws java.lang.NumberFormatException;
- method @NonNull public static Long valueOf(long);
- field public static final int BYTES = 8; // 0x8
- field public static final long MAX_VALUE = 9223372036854775807L; // 0x7fffffffffffffffL
- field public static final long MIN_VALUE = -9223372036854775808L; // 0x8000000000000000L
- field public static final int SIZE = 64; // 0x40
- field public static final Class<java.lang.Long> TYPE;
- }
-
- public final class Math {
- method public static double IEEEremainder(double, double);
- method public static int abs(int);
- method public static long abs(long);
- method public static float abs(float);
- method public static double abs(double);
- method public static double acos(double);
- method public static int addExact(int, int);
- method public static long addExact(long, long);
- method public static double asin(double);
- method public static double atan(double);
- method public static double atan2(double, double);
- method public static double cbrt(double);
- method public static double ceil(double);
- method public static double copySign(double, double);
- method public static float copySign(float, float);
- method public static double cos(double);
- method public static double cosh(double);
- method public static int decrementExact(int);
- method public static long decrementExact(long);
- method public static double exp(double);
- method public static double expm1(double);
- method public static double floor(double);
- method public static int floorDiv(int, int);
- method public static long floorDiv(long, long);
- method public static int floorMod(int, int);
- method public static long floorMod(long, long);
- method public static int getExponent(float);
- method public static int getExponent(double);
- method public static double hypot(double, double);
- method public static int incrementExact(int);
- method public static long incrementExact(long);
- method public static double log(double);
- method public static double log10(double);
- method public static double log1p(double);
- method public static int max(int, int);
- method public static long max(long, long);
- method public static float max(float, float);
- method public static double max(double, double);
- method public static int min(int, int);
- method public static long min(long, long);
- method public static float min(float, float);
- method public static double min(double, double);
- method public static int multiplyExact(int, int);
- method public static long multiplyExact(long, long);
- method public static int negateExact(int);
- method public static long negateExact(long);
- method public static double nextAfter(double, double);
- method public static float nextAfter(float, double);
- method public static double nextDown(double);
- method public static float nextDown(float);
- method public static double nextUp(double);
- method public static float nextUp(float);
- method public static double pow(double, double);
- method public static double random();
- method public static double rint(double);
- method public static int round(float);
- method public static long round(double);
- method public static double scalb(double, int);
- method public static float scalb(float, int);
- method public static double signum(double);
- method public static float signum(float);
- method public static double sin(double);
- method public static double sinh(double);
- method public static double sqrt(double);
- method public static int subtractExact(int, int);
- method public static long subtractExact(long, long);
- method public static double tan(double);
- method public static double tanh(double);
- method public static double toDegrees(double);
- method public static int toIntExact(long);
- method public static double toRadians(double);
- method public static double ulp(double);
- method public static float ulp(float);
- field public static final double E = 2.718281828459045;
- field public static final double PI = 3.141592653589793;
- }
-
- public class NegativeArraySizeException extends java.lang.RuntimeException {
- ctor public NegativeArraySizeException();
- ctor public NegativeArraySizeException(String);
- }
-
- public class NoClassDefFoundError extends java.lang.LinkageError {
- ctor public NoClassDefFoundError();
- ctor public NoClassDefFoundError(String);
- }
-
- public class NoSuchFieldError extends java.lang.IncompatibleClassChangeError {
- ctor public NoSuchFieldError();
- ctor public NoSuchFieldError(String);
- }
-
- public class NoSuchFieldException extends java.lang.ReflectiveOperationException {
- ctor public NoSuchFieldException();
- ctor public NoSuchFieldException(String);
- }
-
- public class NoSuchMethodError extends java.lang.IncompatibleClassChangeError {
- ctor public NoSuchMethodError();
- ctor public NoSuchMethodError(String);
- }
-
- public class NoSuchMethodException extends java.lang.ReflectiveOperationException {
- ctor public NoSuchMethodException();
- ctor public NoSuchMethodException(String);
- }
-
- public class NullPointerException extends java.lang.RuntimeException {
- ctor public NullPointerException();
- ctor public NullPointerException(String);
- }
-
- public abstract class Number implements java.io.Serializable {
- ctor public Number();
- method public byte byteValue();
- method public abstract double doubleValue();
- method public abstract float floatValue();
- method public abstract int intValue();
- method public abstract long longValue();
- method public short shortValue();
- }
-
- public class NumberFormatException extends java.lang.IllegalArgumentException {
- ctor public NumberFormatException();
- ctor public NumberFormatException(String);
- }
-
- public class Object {
- ctor public Object();
- method @NonNull protected Object clone() throws java.lang.CloneNotSupportedException;
- method public boolean equals(@Nullable Object);
- method protected void finalize() throws java.lang.Throwable;
- method @NonNull public final Class<?> getClass();
- method public int hashCode();
- method public final void notify();
- method public final void notifyAll();
- method @NonNull public String toString();
- method public final void wait(long) throws java.lang.InterruptedException;
- method public final void wait(long, int) throws java.lang.InterruptedException;
- method public final void wait() throws java.lang.InterruptedException;
- }
-
- public class OutOfMemoryError extends java.lang.VirtualMachineError {
- ctor public OutOfMemoryError();
- ctor public OutOfMemoryError(String);
- }
-
- @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @java.lang.annotation.Target(java.lang.annotation.ElementType.METHOD) public @interface Override {
- }
-
- public class Package implements java.lang.reflect.AnnotatedElement {
- method public <A extends java.lang.annotation.Annotation> A getAnnotation(Class<A>);
- method public java.lang.annotation.Annotation[] getAnnotations();
- method public <A extends java.lang.annotation.Annotation> A[] getAnnotationsByType(Class<A>);
- method public <A extends java.lang.annotation.Annotation> A getDeclaredAnnotation(Class<A>);
- method public java.lang.annotation.Annotation[] getDeclaredAnnotations();
- method public <A extends java.lang.annotation.Annotation> A[] getDeclaredAnnotationsByType(Class<A>);
- method public String getImplementationTitle();
- method public String getImplementationVendor();
- method public String getImplementationVersion();
- method public String getName();
- method public static Package getPackage(String);
- method public static Package[] getPackages();
- method public String getSpecificationTitle();
- method public String getSpecificationVendor();
- method public String getSpecificationVersion();
- method public boolean isCompatibleWith(String) throws java.lang.NumberFormatException;
- method public boolean isSealed();
- method public boolean isSealed(java.net.URL);
- }
-
- public abstract class Process {
- ctor public Process();
- method public abstract void destroy();
- method public Process destroyForcibly();
- method public abstract int exitValue();
- method public abstract java.io.InputStream getErrorStream();
- method public abstract java.io.InputStream getInputStream();
- method public abstract java.io.OutputStream getOutputStream();
- method public boolean isAlive();
- method public abstract int waitFor() throws java.lang.InterruptedException;
- method public boolean waitFor(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- }
-
- public final class ProcessBuilder {
- ctor public ProcessBuilder(java.util.List<java.lang.String>);
- ctor public ProcessBuilder(java.lang.String...);
- method public ProcessBuilder command(java.util.List<java.lang.String>);
- method public ProcessBuilder command(java.lang.String...);
- method public java.util.List<java.lang.String> command();
- method public java.io.File directory();
- method public ProcessBuilder directory(java.io.File);
- method public java.util.Map<java.lang.String,java.lang.String> environment();
- method public ProcessBuilder inheritIO();
- method public ProcessBuilder redirectError(java.lang.ProcessBuilder.Redirect);
- method public ProcessBuilder redirectError(java.io.File);
- method public java.lang.ProcessBuilder.Redirect redirectError();
- method public boolean redirectErrorStream();
- method public ProcessBuilder redirectErrorStream(boolean);
- method public ProcessBuilder redirectInput(java.lang.ProcessBuilder.Redirect);
- method public ProcessBuilder redirectInput(java.io.File);
- method public java.lang.ProcessBuilder.Redirect redirectInput();
- method public ProcessBuilder redirectOutput(java.lang.ProcessBuilder.Redirect);
- method public ProcessBuilder redirectOutput(java.io.File);
- method public java.lang.ProcessBuilder.Redirect redirectOutput();
- method public Process start() throws java.io.IOException;
- }
-
- public abstract static class ProcessBuilder.Redirect {
- method public static java.lang.ProcessBuilder.Redirect appendTo(java.io.File);
- method public java.io.File file();
- method public static java.lang.ProcessBuilder.Redirect from(java.io.File);
- method public static java.lang.ProcessBuilder.Redirect to(java.io.File);
- method public abstract java.lang.ProcessBuilder.Redirect.Type type();
- field public static final java.lang.ProcessBuilder.Redirect INHERIT;
- field public static final java.lang.ProcessBuilder.Redirect PIPE;
- }
-
- public enum ProcessBuilder.Redirect.Type {
- enum_constant public static final java.lang.ProcessBuilder.Redirect.Type APPEND;
- enum_constant public static final java.lang.ProcessBuilder.Redirect.Type INHERIT;
- enum_constant public static final java.lang.ProcessBuilder.Redirect.Type PIPE;
- enum_constant public static final java.lang.ProcessBuilder.Redirect.Type READ;
- enum_constant public static final java.lang.ProcessBuilder.Redirect.Type WRITE;
- }
-
- public interface Readable {
- method public int read(java.nio.CharBuffer) throws java.io.IOException;
- }
-
- public class ReflectiveOperationException extends java.lang.Exception {
- ctor public ReflectiveOperationException();
- ctor public ReflectiveOperationException(String);
- ctor public ReflectiveOperationException(String, Throwable);
- ctor public ReflectiveOperationException(Throwable);
- }
-
- @java.lang.FunctionalInterface public interface Runnable {
- method public void run();
- }
-
- public class Runtime {
- method public void addShutdownHook(Thread);
- method public int availableProcessors();
- method public Process exec(String) throws java.io.IOException;
- method public Process exec(String, String[]) throws java.io.IOException;
- method public Process exec(String, String[], java.io.File) throws java.io.IOException;
- method public Process exec(String[]) throws java.io.IOException;
- method public Process exec(String[], String[]) throws java.io.IOException;
- method public Process exec(String[], String[], java.io.File) throws java.io.IOException;
- method public void exit(int);
- method public long freeMemory();
- method public void gc();
- method @Deprecated public java.io.InputStream getLocalizedInputStream(java.io.InputStream);
- method @Deprecated public java.io.OutputStream getLocalizedOutputStream(java.io.OutputStream);
- method public static Runtime getRuntime();
- method public void halt(int);
- method public void load(String);
- method public void loadLibrary(String);
- method public long maxMemory();
- method public boolean removeShutdownHook(Thread);
- method public void runFinalization();
- method @Deprecated public static void runFinalizersOnExit(boolean);
- method public long totalMemory();
- method public void traceInstructions(boolean);
- method public void traceMethodCalls(boolean);
- }
-
- public class RuntimeException extends java.lang.Exception {
- ctor public RuntimeException();
- ctor public RuntimeException(String);
- ctor public RuntimeException(String, Throwable);
- ctor public RuntimeException(Throwable);
- ctor protected RuntimeException(String, Throwable, boolean, boolean);
- }
-
- public final class RuntimePermission extends java.security.BasicPermission {
- ctor public RuntimePermission(String);
- ctor public RuntimePermission(String, String);
- }
-
- @java.lang.annotation.Documented @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.CONSTRUCTOR, java.lang.annotation.ElementType.METHOD}) public @interface SafeVarargs {
- }
-
- public class SecurityException extends java.lang.RuntimeException {
- ctor public SecurityException();
- ctor public SecurityException(String);
- ctor public SecurityException(String, Throwable);
- ctor public SecurityException(Throwable);
- }
-
- public class SecurityManager {
- ctor public SecurityManager();
- method public void checkAccept(String, int);
- method public void checkAccess(Thread);
- method public void checkAccess(ThreadGroup);
- method public void checkAwtEventQueueAccess();
- method public void checkConnect(String, int);
- method public void checkConnect(String, int, Object);
- method public void checkCreateClassLoader();
- method public void checkDelete(String);
- method public void checkExec(String);
- method public void checkExit(int);
- method public void checkLink(String);
- method public void checkListen(int);
- method public void checkMemberAccess(Class<?>, int);
- method public void checkMulticast(java.net.InetAddress);
- method @Deprecated public void checkMulticast(java.net.InetAddress, byte);
- method public void checkPackageAccess(String);
- method public void checkPackageDefinition(String);
- method public void checkPermission(java.security.Permission);
- method public void checkPermission(java.security.Permission, Object);
- method public void checkPrintJobAccess();
- method public void checkPropertiesAccess();
- method public void checkPropertyAccess(String);
- method public void checkRead(java.io.FileDescriptor);
- method public void checkRead(String);
- method public void checkRead(String, Object);
- method public void checkSecurityAccess(String);
- method public void checkSetFactory();
- method public void checkSystemClipboardAccess();
- method public boolean checkTopLevelWindow(Object);
- method public void checkWrite(java.io.FileDescriptor);
- method public void checkWrite(String);
- method @Deprecated protected int classDepth(String);
- method @Deprecated protected int classLoaderDepth();
- method @Deprecated protected ClassLoader currentClassLoader();
- method @Deprecated protected Class<?> currentLoadedClass();
- method protected Class[] getClassContext();
- method @Deprecated public boolean getInCheck();
- method public Object getSecurityContext();
- method public ThreadGroup getThreadGroup();
- method @Deprecated protected boolean inClass(String);
- method @Deprecated protected boolean inClassLoader();
- field @Deprecated protected boolean inCheck;
- }
-
- public final class Short extends java.lang.Number implements java.lang.Comparable<java.lang.Short> {
- ctor public Short(short);
- ctor public Short(String) throws java.lang.NumberFormatException;
- method public static int compare(short, short);
- method public int compareTo(Short);
- method public static Short decode(String) throws java.lang.NumberFormatException;
- method public double doubleValue();
- method public float floatValue();
- method public static int hashCode(short);
- method public int intValue();
- method public long longValue();
- method public static short parseShort(String, int) throws java.lang.NumberFormatException;
- method public static short parseShort(String) throws java.lang.NumberFormatException;
- method public static short reverseBytes(short);
- method public static String toString(short);
- method public static int toUnsignedInt(short);
- method public static long toUnsignedLong(short);
- method public static Short valueOf(String, int) throws java.lang.NumberFormatException;
- method public static Short valueOf(String) throws java.lang.NumberFormatException;
- method public static Short valueOf(short);
- field public static final int BYTES = 2; // 0x2
- field public static final short MAX_VALUE = 32767; // 0x7fff
- field public static final short MIN_VALUE = -32768; // 0xffff8000
- field public static final int SIZE = 16; // 0x10
- field public static final Class<java.lang.Short> TYPE;
- }
-
- public class StackOverflowError extends java.lang.VirtualMachineError {
- ctor public StackOverflowError();
- ctor public StackOverflowError(String);
- }
-
- public final class StackTraceElement implements java.io.Serializable {
- ctor public StackTraceElement(String, String, String, int);
- method public String getClassName();
- method public String getFileName();
- method public int getLineNumber();
- method public String getMethodName();
- method public boolean isNativeMethod();
- }
-
- public final class StrictMath {
- method public static double IEEEremainder(double, double);
- method public static int abs(int);
- method public static long abs(long);
- method public static float abs(float);
- method public static double abs(double);
- method public static double acos(double);
- method public static int addExact(int, int);
- method public static long addExact(long, long);
- method public static double asin(double);
- method public static double atan(double);
- method public static double atan2(double, double);
- method public static double cbrt(double);
- method public static double ceil(double);
- method public static double copySign(double, double);
- method public static float copySign(float, float);
- method public static double cos(double);
- method public static double cosh(double);
- method public static double exp(double);
- method public static double expm1(double);
- method public static double floor(double);
- method public static int floorDiv(int, int);
- method public static long floorDiv(long, long);
- method public static int floorMod(int, int);
- method public static long floorMod(long, long);
- method public static int getExponent(float);
- method public static int getExponent(double);
- method public static double hypot(double, double);
- method public static double log(double);
- method public static double log10(double);
- method public static double log1p(double);
- method public static int max(int, int);
- method public static long max(long, long);
- method public static float max(float, float);
- method public static double max(double, double);
- method public static int min(int, int);
- method public static long min(long, long);
- method public static float min(float, float);
- method public static double min(double, double);
- method public static int multiplyExact(int, int);
- method public static long multiplyExact(long, long);
- method public static double nextAfter(double, double);
- method public static float nextAfter(float, double);
- method public static double nextDown(double);
- method public static float nextDown(float);
- method public static double nextUp(double);
- method public static float nextUp(float);
- method public static double pow(double, double);
- method public static double random();
- method public static double rint(double);
- method public static int round(float);
- method public static long round(double);
- method public static double scalb(double, int);
- method public static float scalb(float, int);
- method public static double signum(double);
- method public static float signum(float);
- method public static double sin(double);
- method public static double sinh(double);
- method public static double sqrt(double);
- method public static int subtractExact(int, int);
- method public static long subtractExact(long, long);
- method public static double tan(double);
- method public static double tanh(double);
- method public static double toDegrees(double);
- method public static int toIntExact(long);
- method public static double toRadians(double);
- method public static double ulp(double);
- method public static float ulp(float);
- field public static final double E = 2.718281828459045;
- field public static final double PI = 3.141592653589793;
- }
-
- public final class String implements java.lang.CharSequence java.lang.Comparable<java.lang.String> java.io.Serializable {
- ctor public String();
- ctor public String(@NonNull String);
- ctor public String(char[]);
- ctor public String(char[], int, int);
- ctor public String(int[], int, int);
- ctor @Deprecated public String(byte[], int, int, int);
- ctor @Deprecated public String(byte[], int);
- ctor public String(byte[], int, int, @NonNull String) throws java.io.UnsupportedEncodingException;
- ctor public String(byte[], int, int, @NonNull java.nio.charset.Charset);
- ctor public String(byte[], @NonNull String) throws java.io.UnsupportedEncodingException;
- ctor public String(byte[], @NonNull java.nio.charset.Charset);
- ctor public String(byte[], int, int);
- ctor public String(byte[]);
- ctor public String(@NonNull StringBuffer);
- ctor public String(@NonNull StringBuilder);
- method public char charAt(int);
- method public int codePointAt(int);
- method public int codePointBefore(int);
- method public int codePointCount(int, int);
- method public int compareTo(@NonNull String);
- method public int compareToIgnoreCase(@NonNull String);
- method @NonNull public String concat(@NonNull String);
- method public boolean contains(@NonNull CharSequence);
- method public boolean contentEquals(@NonNull StringBuffer);
- method public boolean contentEquals(@NonNull CharSequence);
- method @NonNull public static String copyValueOf(char[], int, int);
- method @NonNull public static String copyValueOf(char[]);
- method public boolean endsWith(@NonNull String);
- method public boolean equalsIgnoreCase(@Nullable String);
- method @NonNull public static String format(@NonNull String, @NonNull java.lang.Object...);
- method @NonNull public static String format(@NonNull java.util.Locale, @NonNull String, @NonNull java.lang.Object...);
- method @Deprecated public void getBytes(int, int, byte[], int);
- method public byte[] getBytes(@NonNull String) throws java.io.UnsupportedEncodingException;
- method public byte[] getBytes(@NonNull java.nio.charset.Charset);
- method public byte[] getBytes();
- method public void getChars(int, int, char[], int);
- method public int indexOf(int);
- method public int indexOf(int, int);
- method public int indexOf(@NonNull String);
- method public int indexOf(@NonNull String, int);
- method @NonNull public String intern();
- method public boolean isEmpty();
- method @NonNull public static String join(@NonNull CharSequence, @Nullable java.lang.CharSequence...);
- method @NonNull public static String join(@NonNull CharSequence, @NonNull Iterable<? extends java.lang.CharSequence>);
- method public int lastIndexOf(int);
- method public int lastIndexOf(int, int);
- method public int lastIndexOf(@NonNull String);
- method public int lastIndexOf(@NonNull String, int);
- method public int length();
- method public boolean matches(@NonNull String);
- method public int offsetByCodePoints(int, int);
- method public boolean regionMatches(int, @NonNull String, int, int);
- method public boolean regionMatches(boolean, int, @NonNull String, int, int);
- method @NonNull public String replace(char, char);
- method @NonNull public String replace(@NonNull CharSequence, @NonNull CharSequence);
- method @NonNull public String replaceAll(@NonNull String, @NonNull String);
- method @NonNull public String replaceFirst(@NonNull String, @NonNull String);
- method @NonNull public String[] split(@NonNull String, int);
- method @NonNull public String[] split(@NonNull String);
- method public boolean startsWith(@NonNull String, int);
- method public boolean startsWith(@NonNull String);
- method @NonNull public CharSequence subSequence(int, int);
- method @NonNull public String substring(int);
- method @NonNull public String substring(int, int);
- method public char[] toCharArray();
- method @NonNull public String toLowerCase(@NonNull java.util.Locale);
- method @NonNull public String toLowerCase();
- method @NonNull public String toUpperCase(@NonNull java.util.Locale);
- method @NonNull public String toUpperCase();
- method @NonNull public String trim();
- method @NonNull public static String valueOf(@Nullable Object);
- method @NonNull public static String valueOf(char[]);
- method @NonNull public static String valueOf(char[], int, int);
- method @NonNull public static String valueOf(boolean);
- method @NonNull public static String valueOf(char);
- method @NonNull public static String valueOf(int);
- method @NonNull public static String valueOf(long);
- method @NonNull public static String valueOf(float);
- method @NonNull public static String valueOf(double);
- field public static final java.util.Comparator<java.lang.String> CASE_INSENSITIVE_ORDER;
- }
-
- public final class StringBuffer implements java.lang.Appendable java.lang.CharSequence java.io.Serializable {
- ctor public StringBuffer();
- ctor public StringBuffer(int);
- ctor public StringBuffer(@NonNull String);
- ctor public StringBuffer(@NonNull CharSequence);
- method @NonNull public StringBuffer append(@Nullable Object);
- method @NonNull public StringBuffer append(@Nullable String);
- method @NonNull public StringBuffer append(@Nullable StringBuffer);
- method @NonNull public StringBuffer append(@Nullable CharSequence);
- method @NonNull public StringBuffer append(@Nullable CharSequence, int, int);
- method @NonNull public StringBuffer append(char[]);
- method @NonNull public StringBuffer append(char[], int, int);
- method @NonNull public StringBuffer append(boolean);
- method @NonNull public StringBuffer append(char);
- method @NonNull public StringBuffer append(int);
- method @NonNull public StringBuffer append(long);
- method @NonNull public StringBuffer append(float);
- method @NonNull public StringBuffer append(double);
- method @NonNull public StringBuffer appendCodePoint(int);
- method public int capacity();
- method public char charAt(int);
- method public int codePointAt(int);
- method public int codePointBefore(int);
- method public int codePointCount(int, int);
- method @NonNull public StringBuffer delete(int, int);
- method @NonNull public StringBuffer deleteCharAt(int);
- method public void ensureCapacity(int);
- method public void getChars(int, int, char[], int);
- method public int indexOf(@NonNull String);
- method public int indexOf(@NonNull String, int);
- method @NonNull public StringBuffer insert(int, char[], int, int);
- method @NonNull public StringBuffer insert(int, @Nullable Object);
- method @NonNull public StringBuffer insert(int, @Nullable String);
- method @NonNull public StringBuffer insert(int, char[]);
- method @NonNull public StringBuffer insert(int, @Nullable CharSequence);
- method @NonNull public StringBuffer insert(int, @Nullable CharSequence, int, int);
- method @NonNull public StringBuffer insert(int, boolean);
- method @NonNull public StringBuffer insert(int, char);
- method @NonNull public StringBuffer insert(int, int);
- method @NonNull public StringBuffer insert(int, long);
- method @NonNull public StringBuffer insert(int, float);
- method @NonNull public StringBuffer insert(int, double);
- method public int lastIndexOf(@NonNull String);
- method public int lastIndexOf(@NonNull String, int);
- method public int length();
- method public int offsetByCodePoints(int, int);
- method @NonNull public StringBuffer replace(int, int, @NonNull String);
- method @NonNull public StringBuffer reverse();
- method public void setCharAt(int, char);
- method public void setLength(int);
- method @NonNull public CharSequence subSequence(int, int);
- method @NonNull public String substring(int);
- method @NonNull public String substring(int, int);
- method public void trimToSize();
- }
-
- public final class StringBuilder implements java.lang.Appendable java.lang.CharSequence java.io.Serializable {
- ctor public StringBuilder();
- ctor public StringBuilder(int);
- ctor public StringBuilder(@NonNull String);
- ctor public StringBuilder(@NonNull CharSequence);
- method @NonNull public StringBuilder append(@Nullable Object);
- method @NonNull public StringBuilder append(@Nullable String);
- method @NonNull public StringBuilder append(@Nullable StringBuffer);
- method @NonNull public StringBuilder append(@Nullable CharSequence);
- method @NonNull public StringBuilder append(@Nullable CharSequence, int, int);
- method @NonNull public StringBuilder append(char[]);
- method @NonNull public StringBuilder append(char[], int, int);
- method @NonNull public StringBuilder append(boolean);
- method @NonNull public StringBuilder append(char);
- method @NonNull public StringBuilder append(int);
- method @NonNull public StringBuilder append(long);
- method @NonNull public StringBuilder append(float);
- method @NonNull public StringBuilder append(double);
- method @NonNull public StringBuilder appendCodePoint(int);
- method public int capacity();
- method public char charAt(int);
- method public int codePointAt(int);
- method public int codePointBefore(int);
- method public int codePointCount(int, int);
- method @NonNull public StringBuilder delete(int, int);
- method @NonNull public StringBuilder deleteCharAt(int);
- method public void ensureCapacity(int);
- method public void getChars(int, int, char[], int);
- method public int indexOf(@NonNull String);
- method public int indexOf(@NonNull String, int);
- method @NonNull public StringBuilder insert(int, char[], int, int);
- method @NonNull public StringBuilder insert(int, @Nullable Object);
- method @NonNull public StringBuilder insert(int, @Nullable String);
- method @NonNull public StringBuilder insert(int, char[]);
- method @NonNull public StringBuilder insert(int, @Nullable CharSequence);
- method @NonNull public StringBuilder insert(int, @Nullable CharSequence, int, int);
- method @NonNull public StringBuilder insert(int, boolean);
- method @NonNull public StringBuilder insert(int, char);
- method @NonNull public StringBuilder insert(int, int);
- method @NonNull public StringBuilder insert(int, long);
- method @NonNull public StringBuilder insert(int, float);
- method @NonNull public StringBuilder insert(int, double);
- method public int lastIndexOf(@NonNull String);
- method public int lastIndexOf(@NonNull String, int);
- method public int length();
- method public int offsetByCodePoints(int, int);
- method @NonNull public StringBuilder replace(int, int, @NonNull String);
- method @NonNull public StringBuilder reverse();
- method public void setCharAt(int, char);
- method public void setLength(int);
- method @NonNull public CharSequence subSequence(int, int);
- method @NonNull public String substring(int);
- method @NonNull public String substring(int, int);
- method public void trimToSize();
- }
-
- public class StringIndexOutOfBoundsException extends java.lang.IndexOutOfBoundsException {
- ctor public StringIndexOutOfBoundsException();
- ctor public StringIndexOutOfBoundsException(String);
- ctor public StringIndexOutOfBoundsException(int);
- }
-
- @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER, java.lang.annotation.ElementType.CONSTRUCTOR, java.lang.annotation.ElementType.LOCAL_VARIABLE}) public @interface SuppressWarnings {
- method public abstract String[] value();
- }
-
- public final class System {
- method public static void arraycopy(@NonNull Object, int, @NonNull Object, int, int);
- method @Nullable public static String clearProperty(@NonNull String);
- method @Nullable public static java.io.Console console();
- method public static long currentTimeMillis();
- method public static void exit(int);
- method public static void gc();
- method @NonNull public static java.util.Properties getProperties();
- method @Nullable public static String getProperty(@NonNull String);
- method @Nullable public static String getProperty(@NonNull String, @Nullable String);
- method @Nullable public static SecurityManager getSecurityManager();
- method @Nullable public static String getenv(@NonNull String);
- method @NonNull public static java.util.Map<java.lang.String,java.lang.String> getenv();
- method public static int identityHashCode(@Nullable Object);
- method @Nullable public static java.nio.channels.Channel inheritedChannel() throws java.io.IOException;
- method @NonNull public static String lineSeparator();
- method public static void load(@NonNull String);
- method public static void loadLibrary(@NonNull String);
- method @NonNull public static String mapLibraryName(@NonNull String);
- method public static long nanoTime();
- method public static void runFinalization();
- method @Deprecated public static void runFinalizersOnExit(boolean);
- method public static void setErr(@Nullable java.io.PrintStream);
- method public static void setIn(@Nullable java.io.InputStream);
- method public static void setOut(@Nullable java.io.PrintStream);
- method public static void setProperties(@Nullable java.util.Properties);
- method @Nullable public static String setProperty(@NonNull String, @Nullable String);
- method public static void setSecurityManager(@Nullable SecurityManager);
- field public static final java.io.PrintStream err;
- field public static final java.io.InputStream in;
- field public static final java.io.PrintStream out;
- }
-
- public class Thread implements java.lang.Runnable {
- ctor public Thread();
- ctor public Thread(@Nullable Runnable);
- ctor public Thread(@Nullable ThreadGroup, @Nullable Runnable);
- ctor public Thread(@NonNull String);
- ctor public Thread(@Nullable ThreadGroup, @NonNull String);
- ctor public Thread(@Nullable Runnable, @NonNull String);
- ctor public Thread(@Nullable ThreadGroup, @Nullable Runnable, @NonNull String);
- ctor public Thread(@Nullable ThreadGroup, @Nullable Runnable, @NonNull String, long);
- method public static int activeCount();
- method public final void checkAccess();
- method @Deprecated public int countStackFrames();
- method @NonNull public static Thread currentThread();
- method @Deprecated public void destroy();
- method public static void dumpStack();
- method public static int enumerate(Thread[]);
- method @NonNull public static java.util.Map<java.lang.Thread,java.lang.StackTraceElement[]> getAllStackTraces();
- method @Nullable public ClassLoader getContextClassLoader();
- method @Nullable public static java.lang.Thread.UncaughtExceptionHandler getDefaultUncaughtExceptionHandler();
- method public long getId();
- method @NonNull public final String getName();
- method public final int getPriority();
- method @NonNull public StackTraceElement[] getStackTrace();
- method @NonNull public java.lang.Thread.State getState();
- method @Nullable public final ThreadGroup getThreadGroup();
- method @Nullable public java.lang.Thread.UncaughtExceptionHandler getUncaughtExceptionHandler();
- method public static boolean holdsLock(@NonNull Object);
- method public void interrupt();
- method public static boolean interrupted();
- method public final boolean isAlive();
- method public final boolean isDaemon();
- method public boolean isInterrupted();
- method public final void join(long) throws java.lang.InterruptedException;
- method public final void join(long, int) throws java.lang.InterruptedException;
- method public final void join() throws java.lang.InterruptedException;
- method @Deprecated public final void resume();
- method public void run();
- method public void setContextClassLoader(@Nullable ClassLoader);
- method public final void setDaemon(boolean);
- method public static void setDefaultUncaughtExceptionHandler(@Nullable java.lang.Thread.UncaughtExceptionHandler);
- method public final void setName(@NonNull String);
- method public final void setPriority(int);
- method public void setUncaughtExceptionHandler(@Nullable java.lang.Thread.UncaughtExceptionHandler);
- method public static void sleep(long) throws java.lang.InterruptedException;
- method public static void sleep(long, int) throws java.lang.InterruptedException;
- method public void start();
- method @Deprecated public final void stop();
- method @Deprecated public final void stop(@Nullable Throwable);
- method @Deprecated public final void suspend();
- method public static void yield();
- field public static final int MAX_PRIORITY = 10; // 0xa
- field public static final int MIN_PRIORITY = 1; // 0x1
- field public static final int NORM_PRIORITY = 5; // 0x5
- }
-
- public enum Thread.State {
- enum_constant public static final java.lang.Thread.State BLOCKED;
- enum_constant public static final java.lang.Thread.State NEW;
- enum_constant public static final java.lang.Thread.State RUNNABLE;
- enum_constant public static final java.lang.Thread.State TERMINATED;
- enum_constant public static final java.lang.Thread.State TIMED_WAITING;
- enum_constant public static final java.lang.Thread.State WAITING;
- }
-
- @java.lang.FunctionalInterface public static interface Thread.UncaughtExceptionHandler {
- method public void uncaughtException(@NonNull Thread, @NonNull Throwable);
- }
-
- public class ThreadDeath extends java.lang.Error {
- ctor public ThreadDeath();
- }
-
- public class ThreadGroup implements java.lang.Thread.UncaughtExceptionHandler {
- ctor public ThreadGroup(String);
- ctor public ThreadGroup(ThreadGroup, String);
- method public int activeCount();
- method public int activeGroupCount();
- method @Deprecated public boolean allowThreadSuspension(boolean);
- method public final void checkAccess();
- method public final void destroy();
- method public int enumerate(Thread[]);
- method public int enumerate(Thread[], boolean);
- method public int enumerate(ThreadGroup[]);
- method public int enumerate(ThreadGroup[], boolean);
- method public final int getMaxPriority();
- method public final String getName();
- method public final ThreadGroup getParent();
- method public final void interrupt();
- method public final boolean isDaemon();
- method public boolean isDestroyed();
- method public void list();
- method public final boolean parentOf(ThreadGroup);
- method @Deprecated public final void resume();
- method public final void setDaemon(boolean);
- method public final void setMaxPriority(int);
- method @Deprecated public final void stop();
- method @Deprecated public final void suspend();
- method public void uncaughtException(Thread, Throwable);
- }
-
- public class ThreadLocal<T> {
- ctor public ThreadLocal();
- method @Nullable public T get();
- method @Nullable protected T initialValue();
- method public void remove();
- method public void set(T);
- method @NonNull public static <S> ThreadLocal<S> withInitial(@NonNull java.util.function.Supplier<? extends S>);
- }
-
- public class Throwable implements java.io.Serializable {
- ctor public Throwable();
- ctor public Throwable(@Nullable String);
- ctor public Throwable(@Nullable String, @Nullable Throwable);
- ctor public Throwable(@Nullable Throwable);
- ctor protected Throwable(@Nullable String, @Nullable Throwable, boolean, boolean);
- method public final void addSuppressed(@NonNull Throwable);
- method @NonNull public Throwable fillInStackTrace();
- method @Nullable public Throwable getCause();
- method @Nullable public String getLocalizedMessage();
- method @Nullable public String getMessage();
- method @NonNull public StackTraceElement[] getStackTrace();
- method @NonNull public final Throwable[] getSuppressed();
- method @NonNull public Throwable initCause(@Nullable Throwable);
- method public void printStackTrace();
- method public void printStackTrace(@NonNull java.io.PrintStream);
- method public void printStackTrace(@NonNull java.io.PrintWriter);
- method public void setStackTrace(@NonNull StackTraceElement[]);
- }
-
- public class TypeNotPresentException extends java.lang.RuntimeException {
- ctor public TypeNotPresentException(String, Throwable);
- method public String typeName();
- }
-
- public class UnknownError extends java.lang.VirtualMachineError {
- ctor public UnknownError();
- ctor public UnknownError(String);
- }
-
- public class UnsatisfiedLinkError extends java.lang.LinkageError {
- ctor public UnsatisfiedLinkError();
- ctor public UnsatisfiedLinkError(String);
- }
-
- public class UnsupportedClassVersionError extends java.lang.ClassFormatError {
- ctor public UnsupportedClassVersionError();
- ctor public UnsupportedClassVersionError(String);
- }
-
- public class UnsupportedOperationException extends java.lang.RuntimeException {
- ctor public UnsupportedOperationException();
- ctor public UnsupportedOperationException(String);
- ctor public UnsupportedOperationException(String, Throwable);
- ctor public UnsupportedOperationException(Throwable);
- }
-
- public class VerifyError extends java.lang.LinkageError {
- ctor public VerifyError();
- ctor public VerifyError(String);
- }
-
- public abstract class VirtualMachineError extends java.lang.Error {
- ctor public VirtualMachineError();
- ctor public VirtualMachineError(String);
- ctor public VirtualMachineError(String, Throwable);
- ctor public VirtualMachineError(Throwable);
- }
-
- public final class Void {
- field public static final Class<java.lang.Void> TYPE;
- }
-
-}
-
-package java.lang.annotation {
-
- public interface Annotation {
- method public Class<? extends java.lang.annotation.Annotation> annotationType();
- method public boolean equals(Object);
- method public int hashCode();
- method public String toString();
- }
-
- public class AnnotationFormatError extends java.lang.Error {
- ctor public AnnotationFormatError(String);
- ctor public AnnotationFormatError(String, Throwable);
- ctor public AnnotationFormatError(Throwable);
- }
-
- public class AnnotationTypeMismatchException extends java.lang.RuntimeException {
- ctor public AnnotationTypeMismatchException(java.lang.reflect.Method, String);
- method public java.lang.reflect.Method element();
- method public String foundType();
- }
-
- @java.lang.annotation.Documented @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target(java.lang.annotation.ElementType.ANNOTATION_TYPE) public @interface Documented {
- }
-
- public enum ElementType {
- enum_constant public static final java.lang.annotation.ElementType ANNOTATION_TYPE;
- enum_constant public static final java.lang.annotation.ElementType CONSTRUCTOR;
- enum_constant public static final java.lang.annotation.ElementType FIELD;
- enum_constant public static final java.lang.annotation.ElementType LOCAL_VARIABLE;
- enum_constant public static final java.lang.annotation.ElementType METHOD;
- enum_constant public static final java.lang.annotation.ElementType PACKAGE;
- enum_constant public static final java.lang.annotation.ElementType PARAMETER;
- enum_constant public static final java.lang.annotation.ElementType TYPE;
- enum_constant public static final java.lang.annotation.ElementType TYPE_PARAMETER;
- enum_constant public static final java.lang.annotation.ElementType TYPE_USE;
- }
-
- public class IncompleteAnnotationException extends java.lang.RuntimeException {
- ctor public IncompleteAnnotationException(Class<? extends java.lang.annotation.Annotation>, String);
- method public Class<? extends java.lang.annotation.Annotation> annotationType();
- method public String elementName();
- }
-
- @java.lang.annotation.Documented @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target(java.lang.annotation.ElementType.ANNOTATION_TYPE) public @interface Inherited {
- }
-
- @java.lang.annotation.Documented @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @java.lang.annotation.Target(java.lang.annotation.ElementType.FIELD) public @interface Native {
- }
-
- @java.lang.annotation.Documented @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target(java.lang.annotation.ElementType.ANNOTATION_TYPE) public @interface Repeatable {
- method public abstract Class<? extends java.lang.annotation.Annotation> value();
- }
-
- @java.lang.annotation.Documented @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target(java.lang.annotation.ElementType.ANNOTATION_TYPE) public @interface Retention {
- method public abstract java.lang.annotation.RetentionPolicy value();
- }
-
- public enum RetentionPolicy {
- enum_constant public static final java.lang.annotation.RetentionPolicy CLASS;
- enum_constant public static final java.lang.annotation.RetentionPolicy RUNTIME;
- enum_constant public static final java.lang.annotation.RetentionPolicy SOURCE;
- }
-
- @java.lang.annotation.Documented @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target(java.lang.annotation.ElementType.ANNOTATION_TYPE) public @interface Target {
- method public abstract java.lang.annotation.ElementType[] value();
- }
-
-}
-
-package java.lang.invoke {
-
- public abstract class CallSite {
- method public abstract java.lang.invoke.MethodHandle dynamicInvoker();
- method public abstract java.lang.invoke.MethodHandle getTarget();
- method public abstract void setTarget(java.lang.invoke.MethodHandle);
- method public java.lang.invoke.MethodType type();
- }
-
- public class ConstantCallSite extends java.lang.invoke.CallSite {
- ctor public ConstantCallSite(java.lang.invoke.MethodHandle);
- ctor protected ConstantCallSite(java.lang.invoke.MethodType, java.lang.invoke.MethodHandle) throws java.lang.Throwable;
- method public final java.lang.invoke.MethodHandle dynamicInvoker();
- method public final java.lang.invoke.MethodHandle getTarget();
- method public final void setTarget(java.lang.invoke.MethodHandle);
- }
-
- public class LambdaConversionException extends java.lang.Exception {
- ctor public LambdaConversionException();
- ctor public LambdaConversionException(String);
- ctor public LambdaConversionException(String, Throwable);
- ctor public LambdaConversionException(Throwable);
- ctor public LambdaConversionException(String, Throwable, boolean, boolean);
- }
-
- public abstract class MethodHandle {
- method public java.lang.invoke.MethodHandle asCollector(Class<?>, int);
- method public java.lang.invoke.MethodHandle asFixedArity();
- method public java.lang.invoke.MethodHandle asSpreader(Class<?>, int);
- method public java.lang.invoke.MethodHandle asType(java.lang.invoke.MethodType);
- method public java.lang.invoke.MethodHandle asVarargsCollector(Class<?>);
- method public java.lang.invoke.MethodHandle bindTo(Object);
- method public final Object invoke(java.lang.Object...) throws java.lang.Throwable;
- method public final Object invokeExact(java.lang.Object...) throws java.lang.Throwable;
- method public Object invokeWithArguments(java.lang.Object...) throws java.lang.Throwable;
- method public Object invokeWithArguments(java.util.List<?>) throws java.lang.Throwable;
- method public boolean isVarargsCollector();
- method public java.lang.invoke.MethodType type();
- }
-
- public interface MethodHandleInfo {
- method public Class<?> getDeclaringClass();
- method public java.lang.invoke.MethodType getMethodType();
- method public int getModifiers();
- method public String getName();
- method public int getReferenceKind();
- method public default boolean isVarArgs();
- method @Deprecated public static boolean refKindIsField(int);
- method @Deprecated public static boolean refKindIsValid(int);
- method @Deprecated public static String refKindName(int);
- method public static String referenceKindToString(int);
- method public <T extends java.lang.reflect.Member> T reflectAs(Class<T>, java.lang.invoke.MethodHandles.Lookup);
- method public static String toString(int, Class<?>, String, java.lang.invoke.MethodType);
- field public static final int REF_getField = 1; // 0x1
- field public static final int REF_getStatic = 2; // 0x2
- field public static final int REF_invokeInterface = 9; // 0x9
- field public static final int REF_invokeSpecial = 7; // 0x7
- field public static final int REF_invokeStatic = 6; // 0x6
- field public static final int REF_invokeVirtual = 5; // 0x5
- field public static final int REF_newInvokeSpecial = 8; // 0x8
- field public static final int REF_putField = 3; // 0x3
- field public static final int REF_putStatic = 4; // 0x4
- }
-
- public class MethodHandles {
- method public static java.lang.invoke.MethodHandle arrayElementGetter(Class<?>) throws java.lang.IllegalArgumentException;
- method public static java.lang.invoke.MethodHandle arrayElementSetter(Class<?>) throws java.lang.IllegalArgumentException;
- method public static java.lang.invoke.MethodHandle catchException(java.lang.invoke.MethodHandle, Class<? extends java.lang.Throwable>, java.lang.invoke.MethodHandle);
- method public static java.lang.invoke.MethodHandle collectArguments(java.lang.invoke.MethodHandle, int, java.lang.invoke.MethodHandle);
- method public static java.lang.invoke.MethodHandle constant(Class<?>, Object);
- method public static java.lang.invoke.MethodHandle dropArguments(java.lang.invoke.MethodHandle, int, java.util.List<java.lang.Class<?>>);
- method public static java.lang.invoke.MethodHandle dropArguments(java.lang.invoke.MethodHandle, int, Class<?>...);
- method public static java.lang.invoke.MethodHandle exactInvoker(java.lang.invoke.MethodType);
- method public static java.lang.invoke.MethodHandle explicitCastArguments(java.lang.invoke.MethodHandle, java.lang.invoke.MethodType);
- method public static java.lang.invoke.MethodHandle filterArguments(java.lang.invoke.MethodHandle, int, java.lang.invoke.MethodHandle...);
- method public static java.lang.invoke.MethodHandle filterReturnValue(java.lang.invoke.MethodHandle, java.lang.invoke.MethodHandle);
- method public static java.lang.invoke.MethodHandle foldArguments(java.lang.invoke.MethodHandle, java.lang.invoke.MethodHandle);
- method public static java.lang.invoke.MethodHandle guardWithTest(java.lang.invoke.MethodHandle, java.lang.invoke.MethodHandle, java.lang.invoke.MethodHandle);
- method public static java.lang.invoke.MethodHandle identity(Class<?>);
- method public static java.lang.invoke.MethodHandle insertArguments(java.lang.invoke.MethodHandle, int, java.lang.Object...);
- method public static java.lang.invoke.MethodHandle invoker(java.lang.invoke.MethodType);
- method public static java.lang.invoke.MethodHandles.Lookup lookup();
- method public static java.lang.invoke.MethodHandle permuteArguments(java.lang.invoke.MethodHandle, java.lang.invoke.MethodType, int...);
- method public static java.lang.invoke.MethodHandles.Lookup publicLookup();
- method public static <T extends java.lang.reflect.Member> T reflectAs(Class<T>, java.lang.invoke.MethodHandle);
- method public static java.lang.invoke.MethodHandle spreadInvoker(java.lang.invoke.MethodType, int);
- method public static java.lang.invoke.MethodHandle throwException(Class<?>, Class<? extends java.lang.Throwable>);
- }
-
- public static final class MethodHandles.Lookup {
- method public java.lang.invoke.MethodHandle bind(Object, String, java.lang.invoke.MethodType) throws java.lang.IllegalAccessException, java.lang.NoSuchMethodException;
- method public java.lang.invoke.MethodHandle findConstructor(Class<?>, java.lang.invoke.MethodType) throws java.lang.IllegalAccessException, java.lang.NoSuchMethodException;
- method public java.lang.invoke.MethodHandle findGetter(Class<?>, String, Class<?>) throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException;
- method public java.lang.invoke.MethodHandle findSetter(Class<?>, String, Class<?>) throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException;
- method public java.lang.invoke.MethodHandle findSpecial(Class<?>, String, java.lang.invoke.MethodType, Class<?>) throws java.lang.IllegalAccessException, java.lang.NoSuchMethodException;
- method public java.lang.invoke.MethodHandle findStatic(Class<?>, String, java.lang.invoke.MethodType) throws java.lang.IllegalAccessException, java.lang.NoSuchMethodException;
- method public java.lang.invoke.MethodHandle findStaticGetter(Class<?>, String, Class<?>) throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException;
- method public java.lang.invoke.MethodHandle findStaticSetter(Class<?>, String, Class<?>) throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException;
- method public java.lang.invoke.MethodHandle findVirtual(Class<?>, String, java.lang.invoke.MethodType) throws java.lang.IllegalAccessException, java.lang.NoSuchMethodException;
- method public java.lang.invoke.MethodHandles.Lookup in(Class<?>);
- method public Class<?> lookupClass();
- method public int lookupModes();
- method public java.lang.invoke.MethodHandleInfo revealDirect(java.lang.invoke.MethodHandle);
- method public java.lang.invoke.MethodHandle unreflect(java.lang.reflect.Method) throws java.lang.IllegalAccessException;
- method public java.lang.invoke.MethodHandle unreflectConstructor(java.lang.reflect.Constructor<?>) throws java.lang.IllegalAccessException;
- method public java.lang.invoke.MethodHandle unreflectGetter(java.lang.reflect.Field) throws java.lang.IllegalAccessException;
- method public java.lang.invoke.MethodHandle unreflectSetter(java.lang.reflect.Field) throws java.lang.IllegalAccessException;
- method public java.lang.invoke.MethodHandle unreflectSpecial(java.lang.reflect.Method, Class<?>) throws java.lang.IllegalAccessException;
- field public static final int PACKAGE = 8; // 0x8
- field public static final int PRIVATE = 2; // 0x2
- field public static final int PROTECTED = 4; // 0x4
- field public static final int PUBLIC = 1; // 0x1
- }
-
- public final class MethodType implements java.io.Serializable {
- method public java.lang.invoke.MethodType appendParameterTypes(Class<?>...);
- method public java.lang.invoke.MethodType appendParameterTypes(java.util.List<java.lang.Class<?>>);
- method public java.lang.invoke.MethodType changeParameterType(int, Class<?>);
- method public java.lang.invoke.MethodType changeReturnType(Class<?>);
- method public java.lang.invoke.MethodType dropParameterTypes(int, int);
- method public java.lang.invoke.MethodType erase();
- method public static java.lang.invoke.MethodType fromMethodDescriptorString(String, ClassLoader) throws java.lang.IllegalArgumentException, java.lang.TypeNotPresentException;
- method public java.lang.invoke.MethodType generic();
- method public static java.lang.invoke.MethodType genericMethodType(int, boolean);
- method public static java.lang.invoke.MethodType genericMethodType(int);
- method public boolean hasPrimitives();
- method public boolean hasWrappers();
- method public java.lang.invoke.MethodType insertParameterTypes(int, Class<?>...);
- method public java.lang.invoke.MethodType insertParameterTypes(int, java.util.List<java.lang.Class<?>>);
- method public static java.lang.invoke.MethodType methodType(Class<?>, Class<?>[]);
- method public static java.lang.invoke.MethodType methodType(Class<?>, java.util.List<java.lang.Class<?>>);
- method public static java.lang.invoke.MethodType methodType(Class<?>, Class<?>, Class<?>...);
- method public static java.lang.invoke.MethodType methodType(Class<?>);
- method public static java.lang.invoke.MethodType methodType(Class<?>, Class<?>);
- method public static java.lang.invoke.MethodType methodType(Class<?>, java.lang.invoke.MethodType);
- method public Class<?>[] parameterArray();
- method public int parameterCount();
- method public java.util.List<java.lang.Class<?>> parameterList();
- method public Class<?> parameterType(int);
- method public Class<?> returnType();
- method public String toMethodDescriptorString();
- method public java.lang.invoke.MethodType unwrap();
- method public java.lang.invoke.MethodType wrap();
- }
-
- public class MutableCallSite extends java.lang.invoke.CallSite {
- ctor public MutableCallSite(java.lang.invoke.MethodType);
- ctor public MutableCallSite(java.lang.invoke.MethodHandle);
- method public final java.lang.invoke.MethodHandle dynamicInvoker();
- method public final java.lang.invoke.MethodHandle getTarget();
- method public void setTarget(java.lang.invoke.MethodHandle);
- }
-
- public class VolatileCallSite extends java.lang.invoke.CallSite {
- ctor public VolatileCallSite(java.lang.invoke.MethodType);
- ctor public VolatileCallSite(java.lang.invoke.MethodHandle);
- method public final java.lang.invoke.MethodHandle dynamicInvoker();
- method public final java.lang.invoke.MethodHandle getTarget();
- method public void setTarget(java.lang.invoke.MethodHandle);
- }
-
- public class WrongMethodTypeException extends java.lang.RuntimeException {
- ctor public WrongMethodTypeException();
- ctor public WrongMethodTypeException(String);
- }
-
-}
-
-package java.lang.ref {
-
- public class PhantomReference<T> extends java.lang.ref.Reference<T> {
- ctor public PhantomReference(T, java.lang.ref.ReferenceQueue<? super T>);
- }
-
- public abstract class Reference<T> {
- method public void clear();
- method public boolean enqueue();
- method public T get();
- method public boolean isEnqueued();
- method public static void reachabilityFence(Object);
- }
-
- public class ReferenceQueue<T> {
- ctor public ReferenceQueue();
- method public java.lang.ref.Reference<? extends T> poll();
- method public java.lang.ref.Reference<? extends T> remove(long) throws java.lang.IllegalArgumentException, java.lang.InterruptedException;
- method public java.lang.ref.Reference<? extends T> remove() throws java.lang.InterruptedException;
- }
-
- public class SoftReference<T> extends java.lang.ref.Reference<T> {
- ctor public SoftReference(T);
- ctor public SoftReference(T, java.lang.ref.ReferenceQueue<? super T>);
- }
-
- public class WeakReference<T> extends java.lang.ref.Reference<T> {
- ctor public WeakReference(T);
- ctor public WeakReference(T, java.lang.ref.ReferenceQueue<? super T>);
- }
-
-}
-
-package java.lang.reflect {
-
- public class AccessibleObject implements java.lang.reflect.AnnotatedElement {
- ctor protected AccessibleObject();
- method @Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@NonNull Class<T>);
- method @NonNull public java.lang.annotation.Annotation[] getAnnotations();
- method @NonNull public java.lang.annotation.Annotation[] getDeclaredAnnotations();
- method public boolean isAccessible();
- method public static void setAccessible(java.lang.reflect.AccessibleObject[], boolean) throws java.lang.SecurityException;
- method public void setAccessible(boolean) throws java.lang.SecurityException;
- }
-
- public interface AnnotatedElement {
- method @Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@NonNull Class<T>);
- method @NonNull public java.lang.annotation.Annotation[] getAnnotations();
- method public default <T extends java.lang.annotation.Annotation> T[] getAnnotationsByType(@NonNull Class<T>);
- method @Nullable public default <T extends java.lang.annotation.Annotation> T getDeclaredAnnotation(@NonNull Class<T>);
- method @NonNull public java.lang.annotation.Annotation[] getDeclaredAnnotations();
- method public default <T extends java.lang.annotation.Annotation> T[] getDeclaredAnnotationsByType(@NonNull Class<T>);
- method public default boolean isAnnotationPresent(@NonNull Class<? extends java.lang.annotation.Annotation>);
- }
-
- public final class Array {
- method @Nullable public static Object get(@NonNull Object, int) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static boolean getBoolean(@NonNull Object, int) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static byte getByte(@NonNull Object, int) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static char getChar(@NonNull Object, int) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static double getDouble(@NonNull Object, int) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static float getFloat(@NonNull Object, int) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static int getInt(@NonNull Object, int) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static int getLength(@NonNull Object);
- method public static long getLong(@NonNull Object, int) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static short getShort(@NonNull Object, int) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method @NonNull public static Object newInstance(@NonNull Class<?>, int) throws java.lang.NegativeArraySizeException;
- method @NonNull public static Object newInstance(@NonNull Class<?>, int...) throws java.lang.IllegalArgumentException, java.lang.NegativeArraySizeException;
- method public static void set(@NonNull Object, int, @Nullable Object) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static void setBoolean(@NonNull Object, int, boolean);
- method public static void setByte(@NonNull Object, int, byte) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static void setChar(@NonNull Object, int, char) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static void setDouble(@NonNull Object, int, double) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static void setFloat(@NonNull Object, int, float) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static void setInt(@NonNull Object, int, int) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static void setLong(@NonNull Object, int, long) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- method public static void setShort(@NonNull Object, int, short) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException;
- }
-
- public final class Constructor<T> extends java.lang.reflect.Executable {
- method @NonNull public Class<T> getDeclaringClass();
- method public Class<?>[] getExceptionTypes();
- method public int getModifiers();
- method @NonNull public String getName();
- method public java.lang.annotation.Annotation[][] getParameterAnnotations();
- method @NonNull public Class<?>[] getParameterTypes();
- method public java.lang.reflect.TypeVariable<java.lang.reflect.Constructor<T>>[] getTypeParameters();
- method @NonNull public T newInstance(java.lang.Object...) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException;
- method @NonNull public String toGenericString();
- }
-
- public abstract class Executable extends java.lang.reflect.AccessibleObject implements java.lang.reflect.GenericDeclaration java.lang.reflect.Member {
- method @NonNull public abstract Class<?>[] getExceptionTypes();
- method @NonNull public java.lang.reflect.Type[] getGenericExceptionTypes();
- method @NonNull public java.lang.reflect.Type[] getGenericParameterTypes();
- method @NonNull public abstract java.lang.annotation.Annotation[][] getParameterAnnotations();
- method public int getParameterCount();
- method @NonNull public abstract Class<?>[] getParameterTypes();
- method @NonNull public java.lang.reflect.Parameter[] getParameters();
- method public final boolean isAnnotationPresent(@NonNull Class<? extends java.lang.annotation.Annotation>);
- method public boolean isSynthetic();
- method public boolean isVarArgs();
- method @NonNull public abstract String toGenericString();
- }
-
- public final class Field extends java.lang.reflect.AccessibleObject implements java.lang.reflect.Member {
- method @Nullable public Object get(@Nullable Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method public boolean getBoolean(@Nullable Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method public byte getByte(@Nullable Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method public char getChar(@Nullable Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method @NonNull public Class<?> getDeclaringClass();
- method public double getDouble(@Nullable Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method public float getFloat(@Nullable Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method @NonNull public java.lang.reflect.Type getGenericType();
- method public int getInt(@Nullable Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method public long getLong(@Nullable Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method public int getModifiers();
- method @NonNull public String getName();
- method public short getShort(@Nullable Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method @NonNull public Class<?> getType();
- method public boolean isEnumConstant();
- method public boolean isSynthetic();
- method public void set(@Nullable Object, @Nullable Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method public void setBoolean(@Nullable Object, boolean) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method public void setByte(@Nullable Object, byte) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method public void setChar(@Nullable Object, char) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method public void setDouble(@Nullable Object, double) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method public void setFloat(@Nullable Object, float) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method public void setInt(@Nullable Object, int) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method public void setLong(@Nullable Object, long) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method public void setShort(@Nullable Object, short) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException;
- method @NonNull public String toGenericString();
- }
-
- public interface GenericArrayType extends java.lang.reflect.Type {
- method @NonNull public java.lang.reflect.Type getGenericComponentType();
- }
-
- public interface GenericDeclaration extends java.lang.reflect.AnnotatedElement {
- method @NonNull public java.lang.reflect.TypeVariable<?>[] getTypeParameters();
- }
-
- public class GenericSignatureFormatError extends java.lang.ClassFormatError {
- ctor public GenericSignatureFormatError();
- ctor public GenericSignatureFormatError(String);
- }
-
- public interface InvocationHandler {
- method public Object invoke(Object, java.lang.reflect.Method, Object[]) throws java.lang.Throwable;
- }
-
- public class InvocationTargetException extends java.lang.ReflectiveOperationException {
- ctor protected InvocationTargetException();
- ctor public InvocationTargetException(Throwable);
- ctor public InvocationTargetException(Throwable, String);
- method public Throwable getTargetException();
- }
-
- public class MalformedParameterizedTypeException extends java.lang.RuntimeException {
- ctor public MalformedParameterizedTypeException();
- }
-
- public class MalformedParametersException extends java.lang.RuntimeException {
- ctor public MalformedParametersException();
- ctor public MalformedParametersException(String);
- }
-
- public interface Member {
- method @NonNull public Class<?> getDeclaringClass();
- method public int getModifiers();
- method @NonNull public String getName();
- method public boolean isSynthetic();
- field public static final int DECLARED = 1; // 0x1
- field public static final int PUBLIC = 0; // 0x0
- }
-
- public final class Method extends java.lang.reflect.Executable {
- method @NonNull public Class<?> getDeclaringClass();
- method @Nullable public Object getDefaultValue();
- method @NonNull public Class<?>[] getExceptionTypes();
- method @NonNull public java.lang.reflect.Type getGenericReturnType();
- method public int getModifiers();
- method @NonNull public String getName();
- method @NonNull public java.lang.annotation.Annotation[][] getParameterAnnotations();
- method @NonNull public Class<?>[] getParameterTypes();
- method @NonNull public Class<?> getReturnType();
- method @NonNull public java.lang.reflect.TypeVariable<java.lang.reflect.Method>[] getTypeParameters();
- method @Nullable public Object invoke(@Nullable Object, @Nullable java.lang.Object...) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException;
- method public boolean isBridge();
- method public boolean isDefault();
- method @NonNull public String toGenericString();
- }
-
- public class Modifier {
- ctor public Modifier();
- method public static int classModifiers();
- method public static int constructorModifiers();
- method public static int fieldModifiers();
- method public static int interfaceModifiers();
- method public static boolean isAbstract(int);
- method public static boolean isFinal(int);
- method public static boolean isInterface(int);
- method public static boolean isNative(int);
- method public static boolean isPrivate(int);
- method public static boolean isProtected(int);
- method public static boolean isPublic(int);
- method public static boolean isStatic(int);
- method public static boolean isStrict(int);
- method public static boolean isSynchronized(int);
- method public static boolean isTransient(int);
- method public static boolean isVolatile(int);
- method public static int methodModifiers();
- method public static int parameterModifiers();
- method public static String toString(int);
- field public static final int ABSTRACT = 1024; // 0x400
- field public static final int FINAL = 16; // 0x10
- field public static final int INTERFACE = 512; // 0x200
- field public static final int NATIVE = 256; // 0x100
- field public static final int PRIVATE = 2; // 0x2
- field public static final int PROTECTED = 4; // 0x4
- field public static final int PUBLIC = 1; // 0x1
- field public static final int STATIC = 8; // 0x8
- field public static final int STRICT = 2048; // 0x800
- field public static final int SYNCHRONIZED = 32; // 0x20
- field public static final int TRANSIENT = 128; // 0x80
- field public static final int VOLATILE = 64; // 0x40
- }
-
- public final class Parameter implements java.lang.reflect.AnnotatedElement {
- method @Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@NonNull Class<T>);
- method @NonNull public java.lang.annotation.Annotation[] getAnnotations();
- method @NonNull public java.lang.annotation.Annotation[] getDeclaredAnnotations();
- method @NonNull public java.lang.reflect.Executable getDeclaringExecutable();
- method public int getModifiers();
- method @NonNull public String getName();
- method @NonNull public java.lang.reflect.Type getParameterizedType();
- method @NonNull public Class<?> getType();
- method public boolean isImplicit();
- method public boolean isNamePresent();
- method public boolean isSynthetic();
- method public boolean isVarArgs();
- }
-
- public interface ParameterizedType extends java.lang.reflect.Type {
- method @NonNull public java.lang.reflect.Type[] getActualTypeArguments();
- method @Nullable public java.lang.reflect.Type getOwnerType();
- method @NonNull public java.lang.reflect.Type getRawType();
- }
-
- public class Proxy implements java.io.Serializable {
- ctor protected Proxy(@NonNull java.lang.reflect.InvocationHandler);
- method @NonNull public static java.lang.reflect.InvocationHandler getInvocationHandler(@NonNull Object) throws java.lang.IllegalArgumentException;
- method @NonNull public static Class<?> getProxyClass(@Nullable ClassLoader, @NonNull Class<?>...) throws java.lang.IllegalArgumentException;
- method public static boolean isProxyClass(@NonNull Class<?>);
- method @NonNull public static Object newProxyInstance(@Nullable ClassLoader, @NonNull Class<?>[], @NonNull java.lang.reflect.InvocationHandler) throws java.lang.IllegalArgumentException;
- field protected java.lang.reflect.InvocationHandler h;
- }
-
- public final class ReflectPermission extends java.security.BasicPermission {
- ctor public ReflectPermission(String);
- ctor public ReflectPermission(String, String);
- }
-
- public interface Type {
- method @NonNull public default String getTypeName();
- }
-
- public interface TypeVariable<D extends java.lang.reflect.GenericDeclaration> extends java.lang.reflect.Type {
- method @NonNull public java.lang.reflect.Type[] getBounds();
- method @NonNull public D getGenericDeclaration();
- method @NonNull public String getName();
- }
-
- public class UndeclaredThrowableException extends java.lang.RuntimeException {
- ctor public UndeclaredThrowableException(Throwable);
- ctor public UndeclaredThrowableException(Throwable, String);
- method public Throwable getUndeclaredThrowable();
- }
-
- public interface WildcardType extends java.lang.reflect.Type {
- method @NonNull public java.lang.reflect.Type[] getLowerBounds();
- method @NonNull public java.lang.reflect.Type[] getUpperBounds();
- }
-
-}
-
-package java.math {
-
- public class BigDecimal extends java.lang.Number implements java.lang.Comparable<java.math.BigDecimal> {
- ctor public BigDecimal(char[], int, int);
- ctor public BigDecimal(char[], int, int, java.math.MathContext);
- ctor public BigDecimal(char[]);
- ctor public BigDecimal(char[], java.math.MathContext);
- ctor public BigDecimal(String);
- ctor public BigDecimal(String, java.math.MathContext);
- ctor public BigDecimal(double);
- ctor public BigDecimal(double, java.math.MathContext);
- ctor public BigDecimal(java.math.BigInteger);
- ctor public BigDecimal(java.math.BigInteger, java.math.MathContext);
- ctor public BigDecimal(java.math.BigInteger, int);
- ctor public BigDecimal(java.math.BigInteger, int, java.math.MathContext);
- ctor public BigDecimal(int);
- ctor public BigDecimal(int, java.math.MathContext);
- ctor public BigDecimal(long);
- ctor public BigDecimal(long, java.math.MathContext);
- method public java.math.BigDecimal abs();
- method public java.math.BigDecimal abs(java.math.MathContext);
- method public java.math.BigDecimal add(java.math.BigDecimal);
- method public java.math.BigDecimal add(java.math.BigDecimal, java.math.MathContext);
- method public byte byteValueExact();
- method public int compareTo(java.math.BigDecimal);
- method public java.math.BigDecimal divide(java.math.BigDecimal, int, int);
- method public java.math.BigDecimal divide(java.math.BigDecimal, int, java.math.RoundingMode);
- method public java.math.BigDecimal divide(java.math.BigDecimal, int);
- method public java.math.BigDecimal divide(java.math.BigDecimal, java.math.RoundingMode);
- method public java.math.BigDecimal divide(java.math.BigDecimal);
- method public java.math.BigDecimal divide(java.math.BigDecimal, java.math.MathContext);
- method public java.math.BigDecimal[] divideAndRemainder(java.math.BigDecimal);
- method public java.math.BigDecimal[] divideAndRemainder(java.math.BigDecimal, java.math.MathContext);
- method public java.math.BigDecimal divideToIntegralValue(java.math.BigDecimal);
- method public java.math.BigDecimal divideToIntegralValue(java.math.BigDecimal, java.math.MathContext);
- method public double doubleValue();
- method public float floatValue();
- method public int intValue();
- method public int intValueExact();
- method public long longValue();
- method public long longValueExact();
- method public java.math.BigDecimal max(java.math.BigDecimal);
- method public java.math.BigDecimal min(java.math.BigDecimal);
- method public java.math.BigDecimal movePointLeft(int);
- method public java.math.BigDecimal movePointRight(int);
- method public java.math.BigDecimal multiply(java.math.BigDecimal);
- method public java.math.BigDecimal multiply(java.math.BigDecimal, java.math.MathContext);
- method public java.math.BigDecimal negate();
- method public java.math.BigDecimal negate(java.math.MathContext);
- method public java.math.BigDecimal plus();
- method public java.math.BigDecimal plus(java.math.MathContext);
- method public java.math.BigDecimal pow(int);
- method public java.math.BigDecimal pow(int, java.math.MathContext);
- method public int precision();
- method public java.math.BigDecimal remainder(java.math.BigDecimal);
- method public java.math.BigDecimal remainder(java.math.BigDecimal, java.math.MathContext);
- method public java.math.BigDecimal round(java.math.MathContext);
- method public int scale();
- method public java.math.BigDecimal scaleByPowerOfTen(int);
- method public java.math.BigDecimal setScale(int, java.math.RoundingMode);
- method public java.math.BigDecimal setScale(int, int);
- method public java.math.BigDecimal setScale(int);
- method public short shortValueExact();
- method public int signum();
- method public java.math.BigDecimal stripTrailingZeros();
- method public java.math.BigDecimal subtract(java.math.BigDecimal);
- method public java.math.BigDecimal subtract(java.math.BigDecimal, java.math.MathContext);
- method public java.math.BigInteger toBigInteger();
- method public java.math.BigInteger toBigIntegerExact();
- method public String toEngineeringString();
- method public String toPlainString();
- method public java.math.BigDecimal ulp();
- method public java.math.BigInteger unscaledValue();
- method public static java.math.BigDecimal valueOf(long, int);
- method public static java.math.BigDecimal valueOf(long);
- method public static java.math.BigDecimal valueOf(double);
- field public static final java.math.BigDecimal ONE;
- field public static final int ROUND_CEILING = 2; // 0x2
- field public static final int ROUND_DOWN = 1; // 0x1
- field public static final int ROUND_FLOOR = 3; // 0x3
- field public static final int ROUND_HALF_DOWN = 5; // 0x5
- field public static final int ROUND_HALF_EVEN = 6; // 0x6
- field public static final int ROUND_HALF_UP = 4; // 0x4
- field public static final int ROUND_UNNECESSARY = 7; // 0x7
- field public static final int ROUND_UP = 0; // 0x0
- field public static final java.math.BigDecimal TEN;
- field public static final java.math.BigDecimal ZERO;
- }
-
- public class BigInteger extends java.lang.Number implements java.lang.Comparable<java.math.BigInteger> {
- ctor public BigInteger(byte[]);
- ctor public BigInteger(int, byte[]);
- ctor public BigInteger(@NonNull String, int);
- ctor public BigInteger(@NonNull String);
- ctor public BigInteger(int, @NonNull java.util.Random);
- ctor public BigInteger(int, int, @NonNull java.util.Random);
- method @NonNull public java.math.BigInteger abs();
- method @NonNull public java.math.BigInteger add(@NonNull java.math.BigInteger);
- method @NonNull public java.math.BigInteger and(@NonNull java.math.BigInteger);
- method @NonNull public java.math.BigInteger andNot(@NonNull java.math.BigInteger);
- method public int bitCount();
- method public int bitLength();
- method public byte byteValueExact();
- method @NonNull public java.math.BigInteger clearBit(int);
- method public int compareTo(@NonNull java.math.BigInteger);
- method @NonNull public java.math.BigInteger divide(@NonNull java.math.BigInteger);
- method @NonNull public java.math.BigInteger[] divideAndRemainder(@NonNull java.math.BigInteger);
- method public double doubleValue();
- method @NonNull public java.math.BigInteger flipBit(int);
- method public float floatValue();
- method @NonNull public java.math.BigInteger gcd(@NonNull java.math.BigInteger);
- method public int getLowestSetBit();
- method public int intValue();
- method public int intValueExact();
- method public boolean isProbablePrime(int);
- method public long longValue();
- method public long longValueExact();
- method @NonNull public java.math.BigInteger max(@NonNull java.math.BigInteger);
- method @NonNull public java.math.BigInteger min(@NonNull java.math.BigInteger);
- method @NonNull public java.math.BigInteger mod(@NonNull java.math.BigInteger);
- method @NonNull public java.math.BigInteger modInverse(@NonNull java.math.BigInteger);
- method @NonNull public java.math.BigInteger modPow(@NonNull java.math.BigInteger, @NonNull java.math.BigInteger);
- method @NonNull public java.math.BigInteger multiply(@NonNull java.math.BigInteger);
- method @NonNull public java.math.BigInteger negate();
- method @NonNull public java.math.BigInteger nextProbablePrime();
- method @NonNull public java.math.BigInteger not();
- method @NonNull public java.math.BigInteger or(@NonNull java.math.BigInteger);
- method @NonNull public java.math.BigInteger pow(int);
- method @NonNull public static java.math.BigInteger probablePrime(int, @NonNull java.util.Random);
- method @NonNull public java.math.BigInteger remainder(@NonNull java.math.BigInteger);
- method @NonNull public java.math.BigInteger setBit(int);
- method @NonNull public java.math.BigInteger shiftLeft(int);
- method @NonNull public java.math.BigInteger shiftRight(int);
- method public short shortValueExact();
- method public int signum();
- method @NonNull public java.math.BigInteger subtract(@NonNull java.math.BigInteger);
- method public boolean testBit(int);
- method public byte[] toByteArray();
- method @NonNull public String toString(int);
- method @NonNull public static java.math.BigInteger valueOf(long);
- method @NonNull public java.math.BigInteger xor(@NonNull java.math.BigInteger);
- field @NonNull public static final java.math.BigInteger ONE;
- field @NonNull public static final java.math.BigInteger TEN;
- field @NonNull public static final java.math.BigInteger ZERO;
- }
-
- public final class MathContext implements java.io.Serializable {
- ctor public MathContext(int);
- ctor public MathContext(int, java.math.RoundingMode);
- ctor public MathContext(String);
- method public int getPrecision();
- method public java.math.RoundingMode getRoundingMode();
- field public static final java.math.MathContext DECIMAL128;
- field public static final java.math.MathContext DECIMAL32;
- field public static final java.math.MathContext DECIMAL64;
- field public static final java.math.MathContext UNLIMITED;
- }
-
- public enum RoundingMode {
- method public static java.math.RoundingMode valueOf(int);
- enum_constant public static final java.math.RoundingMode CEILING;
- enum_constant public static final java.math.RoundingMode DOWN;
- enum_constant public static final java.math.RoundingMode FLOOR;
- enum_constant public static final java.math.RoundingMode HALF_DOWN;
- enum_constant public static final java.math.RoundingMode HALF_EVEN;
- enum_constant public static final java.math.RoundingMode HALF_UP;
- enum_constant public static final java.math.RoundingMode UNNECESSARY;
- enum_constant public static final java.math.RoundingMode UP;
- }
-
-}
-
-package java.net {
-
- public abstract class Authenticator {
- ctor public Authenticator();
- method protected java.net.PasswordAuthentication getPasswordAuthentication();
- method protected final String getRequestingHost();
- method protected final int getRequestingPort();
- method protected final String getRequestingPrompt();
- method protected final String getRequestingProtocol();
- method protected final String getRequestingScheme();
- method protected final java.net.InetAddress getRequestingSite();
- method protected java.net.URL getRequestingURL();
- method protected java.net.Authenticator.RequestorType getRequestorType();
- method public static java.net.PasswordAuthentication requestPasswordAuthentication(java.net.InetAddress, int, String, String, String);
- method public static java.net.PasswordAuthentication requestPasswordAuthentication(String, java.net.InetAddress, int, String, String, String);
- method public static java.net.PasswordAuthentication requestPasswordAuthentication(String, java.net.InetAddress, int, String, String, String, java.net.URL, java.net.Authenticator.RequestorType);
- method public static void setDefault(java.net.Authenticator);
- }
-
- public enum Authenticator.RequestorType {
- enum_constant public static final java.net.Authenticator.RequestorType PROXY;
- enum_constant public static final java.net.Authenticator.RequestorType SERVER;
- }
-
- public class BindException extends java.net.SocketException {
- ctor public BindException(String);
- ctor public BindException();
- }
-
- public abstract class CacheRequest {
- ctor public CacheRequest();
- method public abstract void abort();
- method public abstract java.io.OutputStream getBody() throws java.io.IOException;
- }
-
- public abstract class CacheResponse {
- ctor public CacheResponse();
- method public abstract java.io.InputStream getBody() throws java.io.IOException;
- method public abstract java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders() throws java.io.IOException;
- }
-
- public class ConnectException extends java.net.SocketException {
- ctor public ConnectException(String);
- ctor public ConnectException();
- }
-
- public abstract class ContentHandler {
- ctor public ContentHandler();
- method public abstract Object getContent(java.net.URLConnection) throws java.io.IOException;
- method public Object getContent(java.net.URLConnection, Class[]) throws java.io.IOException;
- }
-
- public interface ContentHandlerFactory {
- method public java.net.ContentHandler createContentHandler(String);
- }
-
- public abstract class CookieHandler {
- ctor public CookieHandler();
- method public abstract java.util.Map<java.lang.String,java.util.List<java.lang.String>> get(java.net.URI, java.util.Map<java.lang.String,java.util.List<java.lang.String>>) throws java.io.IOException;
- method public static java.net.CookieHandler getDefault();
- method public abstract void put(java.net.URI, java.util.Map<java.lang.String,java.util.List<java.lang.String>>) throws java.io.IOException;
- method public static void setDefault(java.net.CookieHandler);
- }
-
- public class CookieManager extends java.net.CookieHandler {
- ctor public CookieManager();
- ctor public CookieManager(java.net.CookieStore, java.net.CookiePolicy);
- method public java.util.Map<java.lang.String,java.util.List<java.lang.String>> get(java.net.URI, java.util.Map<java.lang.String,java.util.List<java.lang.String>>) throws java.io.IOException;
- method public java.net.CookieStore getCookieStore();
- method public void put(java.net.URI, java.util.Map<java.lang.String,java.util.List<java.lang.String>>) throws java.io.IOException;
- method public void setCookiePolicy(java.net.CookiePolicy);
- }
-
- public interface CookiePolicy {
- method public boolean shouldAccept(java.net.URI, java.net.HttpCookie);
- field public static final java.net.CookiePolicy ACCEPT_ALL;
- field public static final java.net.CookiePolicy ACCEPT_NONE;
- field public static final java.net.CookiePolicy ACCEPT_ORIGINAL_SERVER;
- }
-
- public interface CookieStore {
- method public void add(java.net.URI, java.net.HttpCookie);
- method public java.util.List<java.net.HttpCookie> get(java.net.URI);
- method public java.util.List<java.net.HttpCookie> getCookies();
- method public java.util.List<java.net.URI> getURIs();
- method public boolean remove(java.net.URI, java.net.HttpCookie);
- method public boolean removeAll();
- }
-
- public final class DatagramPacket {
- ctor public DatagramPacket(byte[], int, int);
- ctor public DatagramPacket(byte[], int);
- ctor public DatagramPacket(byte[], int, int, java.net.InetAddress, int);
- ctor public DatagramPacket(byte[], int, int, java.net.SocketAddress);
- ctor public DatagramPacket(byte[], int, java.net.InetAddress, int);
- ctor public DatagramPacket(byte[], int, java.net.SocketAddress);
- method public java.net.InetAddress getAddress();
- method public byte[] getData();
- method public int getLength();
- method public int getOffset();
- method public int getPort();
- method public java.net.SocketAddress getSocketAddress();
- method public void setAddress(java.net.InetAddress);
- method public void setData(byte[], int, int);
- method public void setData(byte[]);
- method public void setLength(int);
- method public void setPort(int);
- method public void setSocketAddress(java.net.SocketAddress);
- }
-
- public class DatagramSocket implements java.io.Closeable {
- ctor public DatagramSocket() throws java.net.SocketException;
- ctor protected DatagramSocket(java.net.DatagramSocketImpl);
- ctor public DatagramSocket(java.net.SocketAddress) throws java.net.SocketException;
- ctor public DatagramSocket(int) throws java.net.SocketException;
- ctor public DatagramSocket(int, java.net.InetAddress) throws java.net.SocketException;
- method public void bind(java.net.SocketAddress) throws java.net.SocketException;
- method public void close();
- method public void connect(java.net.InetAddress, int);
- method public void connect(java.net.SocketAddress) throws java.net.SocketException;
- method public void disconnect();
- method public boolean getBroadcast() throws java.net.SocketException;
- method public java.nio.channels.DatagramChannel getChannel();
- method public java.net.InetAddress getInetAddress();
- method public java.net.InetAddress getLocalAddress();
- method public int getLocalPort();
- method public java.net.SocketAddress getLocalSocketAddress();
- method public int getPort();
- method public int getReceiveBufferSize() throws java.net.SocketException;
- method public java.net.SocketAddress getRemoteSocketAddress();
- method public boolean getReuseAddress() throws java.net.SocketException;
- method public int getSendBufferSize() throws java.net.SocketException;
- method public int getSoTimeout() throws java.net.SocketException;
- method public int getTrafficClass() throws java.net.SocketException;
- method public boolean isBound();
- method public boolean isClosed();
- method public boolean isConnected();
- method public void receive(java.net.DatagramPacket) throws java.io.IOException;
- method public void send(java.net.DatagramPacket) throws java.io.IOException;
- method public void setBroadcast(boolean) throws java.net.SocketException;
- method public static void setDatagramSocketImplFactory(java.net.DatagramSocketImplFactory) throws java.io.IOException;
- method public void setReceiveBufferSize(int) throws java.net.SocketException;
- method public void setReuseAddress(boolean) throws java.net.SocketException;
- method public void setSendBufferSize(int) throws java.net.SocketException;
- method public void setSoTimeout(int) throws java.net.SocketException;
- method public void setTrafficClass(int) throws java.net.SocketException;
- }
-
- public abstract class DatagramSocketImpl implements java.net.SocketOptions {
- ctor public DatagramSocketImpl();
- method protected abstract void bind(int, java.net.InetAddress) throws java.net.SocketException;
- method protected abstract void close();
- method protected void connect(java.net.InetAddress, int) throws java.net.SocketException;
- method protected abstract void create() throws java.net.SocketException;
- method protected void disconnect();
- method protected java.io.FileDescriptor getFileDescriptor();
- method protected int getLocalPort();
- method @Deprecated protected abstract byte getTTL() throws java.io.IOException;
- method protected abstract int getTimeToLive() throws java.io.IOException;
- method protected abstract void join(java.net.InetAddress) throws java.io.IOException;
- method protected abstract void joinGroup(java.net.SocketAddress, java.net.NetworkInterface) throws java.io.IOException;
- method protected abstract void leave(java.net.InetAddress) throws java.io.IOException;
- method protected abstract void leaveGroup(java.net.SocketAddress, java.net.NetworkInterface) throws java.io.IOException;
- method protected abstract int peek(java.net.InetAddress) throws java.io.IOException;
- method protected abstract int peekData(java.net.DatagramPacket) throws java.io.IOException;
- method protected abstract void receive(java.net.DatagramPacket) throws java.io.IOException;
- method protected abstract void send(java.net.DatagramPacket) throws java.io.IOException;
- method @Deprecated protected abstract void setTTL(byte) throws java.io.IOException;
- method protected abstract void setTimeToLive(int) throws java.io.IOException;
- field protected java.io.FileDescriptor fd;
- field protected int localPort;
- }
-
- public interface DatagramSocketImplFactory {
- method public java.net.DatagramSocketImpl createDatagramSocketImpl();
- }
-
- public interface FileNameMap {
- method public String getContentTypeFor(String);
- }
-
- public final class HttpCookie implements java.lang.Cloneable {
- ctor public HttpCookie(String, String);
- method public Object clone();
- method public static boolean domainMatches(String, String);
- method public String getComment();
- method public String getCommentURL();
- method public boolean getDiscard();
- method public String getDomain();
- method public long getMaxAge();
- method public String getName();
- method public String getPath();
- method public String getPortlist();
- method public boolean getSecure();
- method public String getValue();
- method public int getVersion();
- method public boolean hasExpired();
- method public boolean isHttpOnly();
- method public static java.util.List<java.net.HttpCookie> parse(String);
- method public void setComment(String);
- method public void setCommentURL(String);
- method public void setDiscard(boolean);
- method public void setDomain(String);
- method public void setHttpOnly(boolean);
- method public void setMaxAge(long);
- method public void setPath(String);
- method public void setPortlist(String);
- method public void setSecure(boolean);
- method public void setValue(String);
- method public void setVersion(int);
- }
-
- public class HttpRetryException extends java.io.IOException {
- ctor public HttpRetryException(String, int);
- ctor public HttpRetryException(String, int, String);
- method public String getLocation();
- method public String getReason();
- method public int responseCode();
- }
-
- public abstract class HttpURLConnection extends java.net.URLConnection {
- ctor protected HttpURLConnection(java.net.URL);
- method public abstract void disconnect();
- method public java.io.InputStream getErrorStream();
- method public static boolean getFollowRedirects();
- method public boolean getInstanceFollowRedirects();
- method public String getRequestMethod();
- method public int getResponseCode() throws java.io.IOException;
- method public String getResponseMessage() throws java.io.IOException;
- method public void setChunkedStreamingMode(int);
- method public void setFixedLengthStreamingMode(int);
- method public void setFixedLengthStreamingMode(long);
- method public static void setFollowRedirects(boolean);
- method public void setInstanceFollowRedirects(boolean);
- method public void setRequestMethod(String) throws java.net.ProtocolException;
- method public abstract boolean usingProxy();
- field public static final int HTTP_ACCEPTED = 202; // 0xca
- field public static final int HTTP_BAD_GATEWAY = 502; // 0x1f6
- field public static final int HTTP_BAD_METHOD = 405; // 0x195
- field public static final int HTTP_BAD_REQUEST = 400; // 0x190
- field public static final int HTTP_CLIENT_TIMEOUT = 408; // 0x198
- field public static final int HTTP_CONFLICT = 409; // 0x199
- field public static final int HTTP_CREATED = 201; // 0xc9
- field public static final int HTTP_ENTITY_TOO_LARGE = 413; // 0x19d
- field public static final int HTTP_FORBIDDEN = 403; // 0x193
- field public static final int HTTP_GATEWAY_TIMEOUT = 504; // 0x1f8
- field public static final int HTTP_GONE = 410; // 0x19a
- field public static final int HTTP_INTERNAL_ERROR = 500; // 0x1f4
- field public static final int HTTP_LENGTH_REQUIRED = 411; // 0x19b
- field public static final int HTTP_MOVED_PERM = 301; // 0x12d
- field public static final int HTTP_MOVED_TEMP = 302; // 0x12e
- field public static final int HTTP_MULT_CHOICE = 300; // 0x12c
- field public static final int HTTP_NOT_ACCEPTABLE = 406; // 0x196
- field public static final int HTTP_NOT_AUTHORITATIVE = 203; // 0xcb
- field public static final int HTTP_NOT_FOUND = 404; // 0x194
- field public static final int HTTP_NOT_IMPLEMENTED = 501; // 0x1f5
- field public static final int HTTP_NOT_MODIFIED = 304; // 0x130
- field public static final int HTTP_NO_CONTENT = 204; // 0xcc
- field public static final int HTTP_OK = 200; // 0xc8
- field public static final int HTTP_PARTIAL = 206; // 0xce
- field public static final int HTTP_PAYMENT_REQUIRED = 402; // 0x192
- field public static final int HTTP_PRECON_FAILED = 412; // 0x19c
- field public static final int HTTP_PROXY_AUTH = 407; // 0x197
- field public static final int HTTP_REQ_TOO_LONG = 414; // 0x19e
- field public static final int HTTP_RESET = 205; // 0xcd
- field public static final int HTTP_SEE_OTHER = 303; // 0x12f
- field @Deprecated public static final int HTTP_SERVER_ERROR = 500; // 0x1f4
- field public static final int HTTP_UNAUTHORIZED = 401; // 0x191
- field public static final int HTTP_UNAVAILABLE = 503; // 0x1f7
- field public static final int HTTP_UNSUPPORTED_TYPE = 415; // 0x19f
- field public static final int HTTP_USE_PROXY = 305; // 0x131
- field public static final int HTTP_VERSION = 505; // 0x1f9
- field protected int chunkLength;
- field protected int fixedContentLength;
- field protected long fixedContentLengthLong;
- field protected boolean instanceFollowRedirects;
- field protected String method;
- field protected int responseCode;
- field protected String responseMessage;
- }
-
- public final class IDN {
- method public static String toASCII(String, int);
- method public static String toASCII(String);
- method public static String toUnicode(String, int);
- method public static String toUnicode(String);
- field public static final int ALLOW_UNASSIGNED = 1; // 0x1
- field public static final int USE_STD3_ASCII_RULES = 2; // 0x2
- }
-
- public final class Inet4Address extends java.net.InetAddress {
- }
-
- public final class Inet6Address extends java.net.InetAddress {
- method public static java.net.Inet6Address getByAddress(String, byte[], java.net.NetworkInterface) throws java.net.UnknownHostException;
- method public static java.net.Inet6Address getByAddress(String, byte[], int) throws java.net.UnknownHostException;
- method public int getScopeId();
- method public java.net.NetworkInterface getScopedInterface();
- method public boolean isIPv4CompatibleAddress();
- }
-
- public class InetAddress implements java.io.Serializable {
- method public byte[] getAddress();
- method public static java.net.InetAddress[] getAllByName(String) throws java.net.UnknownHostException;
- method public static java.net.InetAddress getByAddress(String, byte[]) throws java.net.UnknownHostException;
- method public static java.net.InetAddress getByAddress(byte[]) throws java.net.UnknownHostException;
- method public static java.net.InetAddress getByName(String) throws java.net.UnknownHostException;
- method public String getCanonicalHostName();
- method public String getHostAddress();
- method public String getHostName();
- method public static java.net.InetAddress getLocalHost() throws java.net.UnknownHostException;
- method public static java.net.InetAddress getLoopbackAddress();
- method public boolean isAnyLocalAddress();
- method public boolean isLinkLocalAddress();
- method public boolean isLoopbackAddress();
- method public boolean isMCGlobal();
- method public boolean isMCLinkLocal();
- method public boolean isMCNodeLocal();
- method public boolean isMCOrgLocal();
- method public boolean isMCSiteLocal();
- method public boolean isMulticastAddress();
- method public boolean isReachable(int) throws java.io.IOException;
- method public boolean isReachable(java.net.NetworkInterface, int, int) throws java.io.IOException;
- method public boolean isSiteLocalAddress();
- }
-
- public class InetSocketAddress extends java.net.SocketAddress {
- ctor public InetSocketAddress(int);
- ctor public InetSocketAddress(java.net.InetAddress, int);
- ctor public InetSocketAddress(String, int);
- method public static java.net.InetSocketAddress createUnresolved(String, int);
- method public final boolean equals(Object);
- method public final java.net.InetAddress getAddress();
- method public final String getHostName();
- method public final String getHostString();
- method public final int getPort();
- method public final int hashCode();
- method public final boolean isUnresolved();
- }
-
- public class InterfaceAddress {
- method public java.net.InetAddress getAddress();
- method public java.net.InetAddress getBroadcast();
- method public short getNetworkPrefixLength();
- }
-
- public abstract class JarURLConnection extends java.net.URLConnection {
- ctor protected JarURLConnection(java.net.URL) throws java.net.MalformedURLException;
- method public java.util.jar.Attributes getAttributes() throws java.io.IOException;
- method public java.security.cert.Certificate[] getCertificates() throws java.io.IOException;
- method public String getEntryName();
- method public java.util.jar.JarEntry getJarEntry() throws java.io.IOException;
- method public abstract java.util.jar.JarFile getJarFile() throws java.io.IOException;
- method public java.net.URL getJarFileURL();
- method public java.util.jar.Attributes getMainAttributes() throws java.io.IOException;
- method public java.util.jar.Manifest getManifest() throws java.io.IOException;
- field protected java.net.URLConnection jarFileURLConnection;
- }
-
- public class MalformedURLException extends java.io.IOException {
- ctor public MalformedURLException();
- ctor public MalformedURLException(String);
- }
-
- public class MulticastSocket extends java.net.DatagramSocket {
- ctor public MulticastSocket() throws java.io.IOException;
- ctor public MulticastSocket(int) throws java.io.IOException;
- ctor public MulticastSocket(java.net.SocketAddress) throws java.io.IOException;
- method public java.net.InetAddress getInterface() throws java.net.SocketException;
- method public boolean getLoopbackMode() throws java.net.SocketException;
- method public java.net.NetworkInterface getNetworkInterface() throws java.net.SocketException;
- method @Deprecated public byte getTTL() throws java.io.IOException;
- method public int getTimeToLive() throws java.io.IOException;
- method public void joinGroup(java.net.InetAddress) throws java.io.IOException;
- method public void joinGroup(java.net.SocketAddress, java.net.NetworkInterface) throws java.io.IOException;
- method public void leaveGroup(java.net.InetAddress) throws java.io.IOException;
- method public void leaveGroup(java.net.SocketAddress, java.net.NetworkInterface) throws java.io.IOException;
- method @Deprecated public void send(java.net.DatagramPacket, byte) throws java.io.IOException;
- method public void setInterface(java.net.InetAddress) throws java.net.SocketException;
- method public void setLoopbackMode(boolean) throws java.net.SocketException;
- method public void setNetworkInterface(java.net.NetworkInterface) throws java.net.SocketException;
- method @Deprecated public void setTTL(byte) throws java.io.IOException;
- method public void setTimeToLive(int) throws java.io.IOException;
- }
-
- public final class NetPermission extends java.security.BasicPermission {
- ctor public NetPermission(String);
- ctor public NetPermission(String, String);
- }
-
- public final class NetworkInterface {
- method public static java.net.NetworkInterface getByIndex(int) throws java.net.SocketException;
- method public static java.net.NetworkInterface getByInetAddress(java.net.InetAddress) throws java.net.SocketException;
- method public static java.net.NetworkInterface getByName(String) throws java.net.SocketException;
- method public String getDisplayName();
- method public byte[] getHardwareAddress() throws java.net.SocketException;
- method public int getIndex();
- method public java.util.Enumeration<java.net.InetAddress> getInetAddresses();
- method public java.util.List<java.net.InterfaceAddress> getInterfaceAddresses();
- method public int getMTU() throws java.net.SocketException;
- method public String getName();
- method public static java.util.Enumeration<java.net.NetworkInterface> getNetworkInterfaces() throws java.net.SocketException;
- method public java.net.NetworkInterface getParent();
- method public java.util.Enumeration<java.net.NetworkInterface> getSubInterfaces();
- method public boolean isLoopback() throws java.net.SocketException;
- method public boolean isPointToPoint() throws java.net.SocketException;
- method public boolean isUp() throws java.net.SocketException;
- method public boolean isVirtual();
- method public boolean supportsMulticast() throws java.net.SocketException;
- }
-
- public class NoRouteToHostException extends java.net.SocketException {
- ctor public NoRouteToHostException(String);
- ctor public NoRouteToHostException();
- }
-
- public final class PasswordAuthentication {
- ctor public PasswordAuthentication(String, char[]);
- method public char[] getPassword();
- method public String getUserName();
- }
-
- public class PortUnreachableException extends java.net.SocketException {
- ctor public PortUnreachableException(String);
- ctor public PortUnreachableException();
- }
-
- public class ProtocolException extends java.io.IOException {
- ctor public ProtocolException(String);
- ctor public ProtocolException();
- }
-
- public interface ProtocolFamily {
- method public String name();
- }
-
- public class Proxy {
- ctor public Proxy(java.net.Proxy.Type, java.net.SocketAddress);
- method public java.net.SocketAddress address();
- method public final boolean equals(Object);
- method public final int hashCode();
- method public java.net.Proxy.Type type();
- field public static final java.net.Proxy NO_PROXY;
- }
-
- public enum Proxy.Type {
- enum_constant public static final java.net.Proxy.Type DIRECT;
- enum_constant public static final java.net.Proxy.Type HTTP;
- enum_constant public static final java.net.Proxy.Type SOCKS;
- }
-
- public abstract class ProxySelector {
- ctor public ProxySelector();
- method public abstract void connectFailed(java.net.URI, java.net.SocketAddress, java.io.IOException);
- method public static java.net.ProxySelector getDefault();
- method public abstract java.util.List<java.net.Proxy> select(java.net.URI);
- method public static void setDefault(java.net.ProxySelector);
- }
-
- public abstract class ResponseCache {
- ctor public ResponseCache();
- method public abstract java.net.CacheResponse get(java.net.URI, String, java.util.Map<java.lang.String,java.util.List<java.lang.String>>) throws java.io.IOException;
- method public static java.net.ResponseCache getDefault();
- method public abstract java.net.CacheRequest put(java.net.URI, java.net.URLConnection) throws java.io.IOException;
- method public static void setDefault(java.net.ResponseCache);
- }
-
- public abstract class SecureCacheResponse extends java.net.CacheResponse {
- ctor public SecureCacheResponse();
- method public abstract String getCipherSuite();
- method public abstract java.util.List<java.security.cert.Certificate> getLocalCertificateChain();
- method public abstract java.security.Principal getLocalPrincipal();
- method public abstract java.security.Principal getPeerPrincipal() throws javax.net.ssl.SSLPeerUnverifiedException;
- method public abstract java.util.List<java.security.cert.Certificate> getServerCertificateChain() throws javax.net.ssl.SSLPeerUnverifiedException;
- }
-
- public class ServerSocket implements java.io.Closeable {
- ctor public ServerSocket() throws java.io.IOException;
- ctor public ServerSocket(int) throws java.io.IOException;
- ctor public ServerSocket(int, int) throws java.io.IOException;
- ctor public ServerSocket(int, int, java.net.InetAddress) throws java.io.IOException;
- method public java.net.Socket accept() throws java.io.IOException;
- method public void bind(java.net.SocketAddress) throws java.io.IOException;
- method public void bind(java.net.SocketAddress, int) throws java.io.IOException;
- method public void close() throws java.io.IOException;
- method public java.nio.channels.ServerSocketChannel getChannel();
- method public java.net.InetAddress getInetAddress();
- method public int getLocalPort();
- method public java.net.SocketAddress getLocalSocketAddress();
- method public int getReceiveBufferSize() throws java.net.SocketException;
- method public boolean getReuseAddress() throws java.net.SocketException;
- method public int getSoTimeout() throws java.io.IOException;
- method protected final void implAccept(java.net.Socket) throws java.io.IOException;
- method public boolean isBound();
- method public boolean isClosed();
- method public void setPerformancePreferences(int, int, int);
- method public void setReceiveBufferSize(int) throws java.net.SocketException;
- method public void setReuseAddress(boolean) throws java.net.SocketException;
- method public void setSoTimeout(int) throws java.net.SocketException;
- method public static void setSocketFactory(java.net.SocketImplFactory) throws java.io.IOException;
- }
-
- public class Socket implements java.io.Closeable {
- ctor public Socket();
- ctor public Socket(java.net.Proxy);
- ctor protected Socket(java.net.SocketImpl) throws java.net.SocketException;
- ctor public Socket(String, int) throws java.io.IOException, java.net.UnknownHostException;
- ctor public Socket(java.net.InetAddress, int) throws java.io.IOException;
- ctor public Socket(String, int, java.net.InetAddress, int) throws java.io.IOException;
- ctor public Socket(java.net.InetAddress, int, java.net.InetAddress, int) throws java.io.IOException;
- ctor @Deprecated public Socket(String, int, boolean) throws java.io.IOException;
- ctor @Deprecated public Socket(java.net.InetAddress, int, boolean) throws java.io.IOException;
- method public void bind(java.net.SocketAddress) throws java.io.IOException;
- method public void close() throws java.io.IOException;
- method public void connect(java.net.SocketAddress) throws java.io.IOException;
- method public void connect(java.net.SocketAddress, int) throws java.io.IOException;
- method public java.nio.channels.SocketChannel getChannel();
- method public java.net.InetAddress getInetAddress();
- method public java.io.InputStream getInputStream() throws java.io.IOException;
- method public boolean getKeepAlive() throws java.net.SocketException;
- method public java.net.InetAddress getLocalAddress();
- method public int getLocalPort();
- method public java.net.SocketAddress getLocalSocketAddress();
- method public boolean getOOBInline() throws java.net.SocketException;
- method public java.io.OutputStream getOutputStream() throws java.io.IOException;
- method public int getPort();
- method public int getReceiveBufferSize() throws java.net.SocketException;
- method public java.net.SocketAddress getRemoteSocketAddress();
- method public boolean getReuseAddress() throws java.net.SocketException;
- method public int getSendBufferSize() throws java.net.SocketException;
- method public int getSoLinger() throws java.net.SocketException;
- method public int getSoTimeout() throws java.net.SocketException;
- method public boolean getTcpNoDelay() throws java.net.SocketException;
- method public int getTrafficClass() throws java.net.SocketException;
- method public boolean isBound();
- method public boolean isClosed();
- method public boolean isConnected();
- method public boolean isInputShutdown();
- method public boolean isOutputShutdown();
- method public void sendUrgentData(int) throws java.io.IOException;
- method public void setKeepAlive(boolean) throws java.net.SocketException;
- method public void setOOBInline(boolean) throws java.net.SocketException;
- method public void setPerformancePreferences(int, int, int);
- method public void setReceiveBufferSize(int) throws java.net.SocketException;
- method public void setReuseAddress(boolean) throws java.net.SocketException;
- method public void setSendBufferSize(int) throws java.net.SocketException;
- method public void setSoLinger(boolean, int) throws java.net.SocketException;
- method public void setSoTimeout(int) throws java.net.SocketException;
- method public static void setSocketImplFactory(java.net.SocketImplFactory) throws java.io.IOException;
- method public void setTcpNoDelay(boolean) throws java.net.SocketException;
- method public void setTrafficClass(int) throws java.net.SocketException;
- method public void shutdownInput() throws java.io.IOException;
- method public void shutdownOutput() throws java.io.IOException;
- }
-
- public abstract class SocketAddress implements java.io.Serializable {
- ctor public SocketAddress();
- }
-
- public class SocketException extends java.io.IOException {
- ctor public SocketException(String);
- ctor public SocketException();
- }
-
- public abstract class SocketImpl implements java.net.SocketOptions {
- ctor public SocketImpl();
- method protected abstract void accept(java.net.SocketImpl) throws java.io.IOException;
- method protected abstract int available() throws java.io.IOException;
- method protected abstract void bind(java.net.InetAddress, int) throws java.io.IOException;
- method protected abstract void close() throws java.io.IOException;
- method protected abstract void connect(String, int) throws java.io.IOException;
- method protected abstract void connect(java.net.InetAddress, int) throws java.io.IOException;
- method protected abstract void connect(java.net.SocketAddress, int) throws java.io.IOException;
- method protected abstract void create(boolean) throws java.io.IOException;
- method protected java.io.FileDescriptor getFileDescriptor();
- method protected java.net.InetAddress getInetAddress();
- method protected abstract java.io.InputStream getInputStream() throws java.io.IOException;
- method protected int getLocalPort();
- method protected abstract java.io.OutputStream getOutputStream() throws java.io.IOException;
- method protected int getPort();
- method protected abstract void listen(int) throws java.io.IOException;
- method protected abstract void sendUrgentData(int) throws java.io.IOException;
- method protected void setPerformancePreferences(int, int, int);
- method protected void shutdownInput() throws java.io.IOException;
- method protected void shutdownOutput() throws java.io.IOException;
- method protected boolean supportsUrgentData();
- field protected java.net.InetAddress address;
- field protected java.io.FileDescriptor fd;
- field protected int localport;
- field protected int port;
- }
-
- public interface SocketImplFactory {
- method public java.net.SocketImpl createSocketImpl();
- }
-
- public interface SocketOption<T> {
- method public String name();
- method public Class<T> type();
- }
-
- public interface SocketOptions {
- method public Object getOption(int) throws java.net.SocketException;
- method public void setOption(int, Object) throws java.net.SocketException;
- field public static final int IP_MULTICAST_IF = 16; // 0x10
- field public static final int IP_MULTICAST_IF2 = 31; // 0x1f
- field public static final int IP_MULTICAST_LOOP = 18; // 0x12
- field public static final int IP_TOS = 3; // 0x3
- field public static final int SO_BINDADDR = 15; // 0xf
- field public static final int SO_BROADCAST = 32; // 0x20
- field public static final int SO_KEEPALIVE = 8; // 0x8
- field public static final int SO_LINGER = 128; // 0x80
- field public static final int SO_OOBINLINE = 4099; // 0x1003
- field public static final int SO_RCVBUF = 4098; // 0x1002
- field public static final int SO_REUSEADDR = 4; // 0x4
- field public static final int SO_SNDBUF = 4097; // 0x1001
- field public static final int SO_TIMEOUT = 4102; // 0x1006
- field public static final int TCP_NODELAY = 1; // 0x1
- }
-
- public final class SocketPermission extends java.security.Permission implements java.io.Serializable {
- ctor public SocketPermission(String, String);
- method public String getActions();
- method public boolean implies(java.security.Permission);
- }
-
- public class SocketTimeoutException extends java.io.InterruptedIOException {
- ctor public SocketTimeoutException(String);
- ctor public SocketTimeoutException();
- }
-
- public enum StandardProtocolFamily implements java.net.ProtocolFamily {
- enum_constant public static final java.net.StandardProtocolFamily INET;
- enum_constant public static final java.net.StandardProtocolFamily INET6;
- }
-
- public final class StandardSocketOptions {
- field public static final java.net.SocketOption<java.net.NetworkInterface> IP_MULTICAST_IF;
- field public static final java.net.SocketOption<java.lang.Boolean> IP_MULTICAST_LOOP;
- field public static final java.net.SocketOption<java.lang.Integer> IP_MULTICAST_TTL;
- field public static final java.net.SocketOption<java.lang.Integer> IP_TOS;
- field public static final java.net.SocketOption<java.lang.Boolean> SO_BROADCAST;
- field public static final java.net.SocketOption<java.lang.Boolean> SO_KEEPALIVE;
- field public static final java.net.SocketOption<java.lang.Integer> SO_LINGER;
- field public static final java.net.SocketOption<java.lang.Integer> SO_RCVBUF;
- field public static final java.net.SocketOption<java.lang.Boolean> SO_REUSEADDR;
- field public static final java.net.SocketOption<java.lang.Integer> SO_SNDBUF;
- field public static final java.net.SocketOption<java.lang.Boolean> TCP_NODELAY;
- }
-
- public final class URI implements java.lang.Comparable<java.net.URI> java.io.Serializable {
- ctor public URI(String) throws java.net.URISyntaxException;
- ctor public URI(String, String, String, int, String, String, String) throws java.net.URISyntaxException;
- ctor public URI(String, String, String, String, String) throws java.net.URISyntaxException;
- ctor public URI(String, String, String, String) throws java.net.URISyntaxException;
- ctor public URI(String, String, String) throws java.net.URISyntaxException;
- method public int compareTo(java.net.URI);
- method public static java.net.URI create(String);
- method public String getAuthority();
- method public String getFragment();
- method public String getHost();
- method public String getPath();
- method public int getPort();
- method public String getQuery();
- method public String getRawAuthority();
- method public String getRawFragment();
- method public String getRawPath();
- method public String getRawQuery();
- method public String getRawSchemeSpecificPart();
- method public String getRawUserInfo();
- method public String getScheme();
- method public String getSchemeSpecificPart();
- method public String getUserInfo();
- method public boolean isAbsolute();
- method public boolean isOpaque();
- method public java.net.URI normalize();
- method public java.net.URI parseServerAuthority() throws java.net.URISyntaxException;
- method public java.net.URI relativize(java.net.URI);
- method public java.net.URI resolve(java.net.URI);
- method public java.net.URI resolve(String);
- method public String toASCIIString();
- method public java.net.URL toURL() throws java.net.MalformedURLException;
- }
-
- public class URISyntaxException extends java.lang.Exception {
- ctor public URISyntaxException(String, String, int);
- ctor public URISyntaxException(String, String);
- method public int getIndex();
- method public String getInput();
- method public String getReason();
- }
-
- public final class URL implements java.io.Serializable {
- ctor public URL(String, String, int, String) throws java.net.MalformedURLException;
- ctor public URL(String, String, String) throws java.net.MalformedURLException;
- ctor public URL(String, String, int, String, java.net.URLStreamHandler) throws java.net.MalformedURLException;
- ctor public URL(String) throws java.net.MalformedURLException;
- ctor public URL(java.net.URL, String) throws java.net.MalformedURLException;
- ctor public URL(java.net.URL, String, java.net.URLStreamHandler) throws java.net.MalformedURLException;
- method public String getAuthority();
- method public Object getContent() throws java.io.IOException;
- method public Object getContent(Class[]) throws java.io.IOException;
- method public int getDefaultPort();
- method public String getFile();
- method public String getHost();
- method public String getPath();
- method public int getPort();
- method public String getProtocol();
- method public String getQuery();
- method public String getRef();
- method public String getUserInfo();
- method public java.net.URLConnection openConnection() throws java.io.IOException;
- method public java.net.URLConnection openConnection(java.net.Proxy) throws java.io.IOException;
- method public java.io.InputStream openStream() throws java.io.IOException;
- method public boolean sameFile(java.net.URL);
- method public static void setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory);
- method public String toExternalForm();
- method public java.net.URI toURI() throws java.net.URISyntaxException;
- }
-
- public class URLClassLoader extends java.security.SecureClassLoader implements java.io.Closeable {
- ctor public URLClassLoader(java.net.URL[], ClassLoader);
- ctor public URLClassLoader(java.net.URL[]);
- ctor public URLClassLoader(java.net.URL[], ClassLoader, java.net.URLStreamHandlerFactory);
- method protected void addURL(java.net.URL);
- method public void close() throws java.io.IOException;
- method protected Package definePackage(String, java.util.jar.Manifest, java.net.URL) throws java.lang.IllegalArgumentException;
- method public java.net.URL findResource(String);
- method public java.util.Enumeration<java.net.URL> findResources(String) throws java.io.IOException;
- method public java.net.URL[] getURLs();
- method public static java.net.URLClassLoader newInstance(java.net.URL[], ClassLoader);
- method public static java.net.URLClassLoader newInstance(java.net.URL[]);
- }
-
- public abstract class URLConnection {
- ctor protected URLConnection(java.net.URL);
- method public void addRequestProperty(String, String);
- method public abstract void connect() throws java.io.IOException;
- method public boolean getAllowUserInteraction();
- method public int getConnectTimeout();
- method public Object getContent() throws java.io.IOException;
- method public Object getContent(Class[]) throws java.io.IOException;
- method public String getContentEncoding();
- method public int getContentLength();
- method public long getContentLengthLong();
- method public String getContentType();
- method public long getDate();
- method public static boolean getDefaultAllowUserInteraction();
- method @Deprecated public static String getDefaultRequestProperty(String);
- method public boolean getDefaultUseCaches();
- method public boolean getDoInput();
- method public boolean getDoOutput();
- method public long getExpiration();
- method public static java.net.FileNameMap getFileNameMap();
- method public String getHeaderField(String);
- method public String getHeaderField(int);
- method public long getHeaderFieldDate(String, long);
- method public int getHeaderFieldInt(String, int);
- method public String getHeaderFieldKey(int);
- method public long getHeaderFieldLong(String, long);
- method public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaderFields();
- method public long getIfModifiedSince();
- method public java.io.InputStream getInputStream() throws java.io.IOException;
- method public long getLastModified();
- method public java.io.OutputStream getOutputStream() throws java.io.IOException;
- method public java.security.Permission getPermission() throws java.io.IOException;
- method public int getReadTimeout();
- method public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getRequestProperties();
- method public String getRequestProperty(String);
- method public java.net.URL getURL();
- method public boolean getUseCaches();
- method public static String guessContentTypeFromName(String);
- method public static String guessContentTypeFromStream(java.io.InputStream) throws java.io.IOException;
- method public void setAllowUserInteraction(boolean);
- method public void setConnectTimeout(int);
- method public static void setContentHandlerFactory(java.net.ContentHandlerFactory);
- method public static void setDefaultAllowUserInteraction(boolean);
- method @Deprecated public static void setDefaultRequestProperty(String, String);
- method public void setDefaultUseCaches(boolean);
- method public void setDoInput(boolean);
- method public void setDoOutput(boolean);
- method public static void setFileNameMap(java.net.FileNameMap);
- method public void setIfModifiedSince(long);
- method public void setReadTimeout(int);
- method public void setRequestProperty(String, String);
- method public void setUseCaches(boolean);
- field protected boolean allowUserInteraction;
- field protected boolean connected;
- field protected boolean doInput;
- field protected boolean doOutput;
- field protected long ifModifiedSince;
- field protected java.net.URL url;
- field protected boolean useCaches;
- }
-
- public class URLDecoder {
- ctor public URLDecoder();
- method @Deprecated public static String decode(String);
- method public static String decode(String, String) throws java.io.UnsupportedEncodingException;
- }
-
- public class URLEncoder {
- method @Deprecated public static String encode(String);
- method public static String encode(String, String) throws java.io.UnsupportedEncodingException;
- }
-
- public abstract class URLStreamHandler {
- ctor public URLStreamHandler();
- method protected boolean equals(java.net.URL, java.net.URL);
- method protected int getDefaultPort();
- method protected java.net.InetAddress getHostAddress(java.net.URL);
- method protected int hashCode(java.net.URL);
- method protected boolean hostsEqual(java.net.URL, java.net.URL);
- method protected abstract java.net.URLConnection openConnection(java.net.URL) throws java.io.IOException;
- method protected java.net.URLConnection openConnection(java.net.URL, java.net.Proxy) throws java.io.IOException;
- method protected void parseURL(java.net.URL, String, int, int);
- method protected boolean sameFile(java.net.URL, java.net.URL);
- method protected void setURL(java.net.URL, String, String, int, String, String, String, String, String);
- method @Deprecated protected void setURL(java.net.URL, String, String, int, String, String);
- method protected String toExternalForm(java.net.URL);
- }
-
- public interface URLStreamHandlerFactory {
- method public java.net.URLStreamHandler createURLStreamHandler(String);
- }
-
- public class UnknownHostException extends java.io.IOException {
- ctor public UnknownHostException(String);
- ctor public UnknownHostException();
- }
-
- public class UnknownServiceException extends java.io.IOException {
- ctor public UnknownServiceException();
- ctor public UnknownServiceException(String);
- }
-
-}
-
-package java.nio {
-
- public abstract class Buffer {
- method public abstract Object array();
- method public abstract int arrayOffset();
- method public final int capacity();
- method public java.nio.Buffer clear();
- method public java.nio.Buffer flip();
- method public abstract boolean hasArray();
- method public final boolean hasRemaining();
- method public abstract boolean isDirect();
- method public abstract boolean isReadOnly();
- method public final int limit();
- method public java.nio.Buffer limit(int);
- method public java.nio.Buffer mark();
- method public final int position();
- method public java.nio.Buffer position(int);
- method public final int remaining();
- method public java.nio.Buffer reset();
- method public java.nio.Buffer rewind();
- }
-
- public class BufferOverflowException extends java.lang.RuntimeException {
- ctor public BufferOverflowException();
- }
-
- public class BufferUnderflowException extends java.lang.RuntimeException {
- ctor public BufferUnderflowException();
- }
-
- public abstract class ByteBuffer extends java.nio.Buffer implements java.lang.Comparable<java.nio.ByteBuffer> {
- method @NonNull public static java.nio.ByteBuffer allocate(int);
- method @NonNull public static java.nio.ByteBuffer allocateDirect(int);
- method @NonNull public final byte[] array();
- method public final int arrayOffset();
- method @NonNull public abstract java.nio.CharBuffer asCharBuffer();
- method @NonNull public abstract java.nio.DoubleBuffer asDoubleBuffer();
- method @NonNull public abstract java.nio.FloatBuffer asFloatBuffer();
- method @NonNull public abstract java.nio.IntBuffer asIntBuffer();
- method @NonNull public abstract java.nio.LongBuffer asLongBuffer();
- method @NonNull public abstract java.nio.ByteBuffer asReadOnlyBuffer();
- method @NonNull public abstract java.nio.ShortBuffer asShortBuffer();
- method @NonNull public abstract java.nio.ByteBuffer compact();
- method public int compareTo(@NonNull java.nio.ByteBuffer);
- method @NonNull public abstract java.nio.ByteBuffer duplicate();
- method public abstract byte get();
- method public abstract byte get(int);
- method @NonNull public java.nio.ByteBuffer get(@NonNull byte[], int, int);
- method @NonNull public java.nio.ByteBuffer get(@NonNull byte[]);
- method public abstract char getChar();
- method public abstract char getChar(int);
- method public abstract double getDouble();
- method public abstract double getDouble(int);
- method public abstract float getFloat();
- method public abstract float getFloat(int);
- method public abstract int getInt();
- method public abstract int getInt(int);
- method public abstract long getLong();
- method public abstract long getLong(int);
- method public abstract short getShort();
- method public abstract short getShort(int);
- method public final boolean hasArray();
- method @NonNull public final java.nio.ByteOrder order();
- method @NonNull public final java.nio.ByteBuffer order(@NonNull java.nio.ByteOrder);
- method @NonNull public abstract java.nio.ByteBuffer put(byte);
- method @NonNull public abstract java.nio.ByteBuffer put(int, byte);
- method @NonNull public java.nio.ByteBuffer put(@NonNull java.nio.ByteBuffer);
- method @NonNull public java.nio.ByteBuffer put(@NonNull byte[], int, int);
- method @NonNull public final java.nio.ByteBuffer put(@NonNull byte[]);
- method @NonNull public abstract java.nio.ByteBuffer putChar(char);
- method @NonNull public abstract java.nio.ByteBuffer putChar(int, char);
- method @NonNull public abstract java.nio.ByteBuffer putDouble(double);
- method @NonNull public abstract java.nio.ByteBuffer putDouble(int, double);
- method @NonNull public abstract java.nio.ByteBuffer putFloat(float);
- method @NonNull public abstract java.nio.ByteBuffer putFloat(int, float);
- method @NonNull public abstract java.nio.ByteBuffer putInt(int);
- method @NonNull public abstract java.nio.ByteBuffer putInt(int, int);
- method @NonNull public abstract java.nio.ByteBuffer putLong(long);
- method @NonNull public abstract java.nio.ByteBuffer putLong(int, long);
- method @NonNull public abstract java.nio.ByteBuffer putShort(short);
- method @NonNull public abstract java.nio.ByteBuffer putShort(int, short);
- method @NonNull public abstract java.nio.ByteBuffer slice();
- method @NonNull public static java.nio.ByteBuffer wrap(@NonNull byte[], int, int);
- method @NonNull public static java.nio.ByteBuffer wrap(@NonNull byte[]);
- }
-
- public final class ByteOrder {
- method public static java.nio.ByteOrder nativeOrder();
- field public static final java.nio.ByteOrder BIG_ENDIAN;
- field public static final java.nio.ByteOrder LITTLE_ENDIAN;
- }
-
- public abstract class CharBuffer extends java.nio.Buffer implements java.lang.Appendable java.lang.CharSequence java.lang.Comparable<java.nio.CharBuffer> java.lang.Readable {
- method public static java.nio.CharBuffer allocate(int);
- method public java.nio.CharBuffer append(CharSequence);
- method public java.nio.CharBuffer append(CharSequence, int, int);
- method public java.nio.CharBuffer append(char);
- method public final char[] array();
- method public final int arrayOffset();
- method public abstract java.nio.CharBuffer asReadOnlyBuffer();
- method public final char charAt(int);
- method public abstract java.nio.CharBuffer compact();
- method public int compareTo(java.nio.CharBuffer);
- method public abstract java.nio.CharBuffer duplicate();
- method public abstract char get();
- method public abstract char get(int);
- method public java.nio.CharBuffer get(char[], int, int);
- method public java.nio.CharBuffer get(char[]);
- method public final boolean hasArray();
- method public final int length();
- method public abstract java.nio.ByteOrder order();
- method public abstract java.nio.CharBuffer put(char);
- method public abstract java.nio.CharBuffer put(int, char);
- method public java.nio.CharBuffer put(java.nio.CharBuffer);
- method public java.nio.CharBuffer put(char[], int, int);
- method public final java.nio.CharBuffer put(char[]);
- method public java.nio.CharBuffer put(String, int, int);
- method public final java.nio.CharBuffer put(String);
- method public int read(java.nio.CharBuffer) throws java.io.IOException;
- method public abstract java.nio.CharBuffer slice();
- method public abstract java.nio.CharBuffer subSequence(int, int);
- method public static java.nio.CharBuffer wrap(char[], int, int);
- method public static java.nio.CharBuffer wrap(char[]);
- method public static java.nio.CharBuffer wrap(CharSequence, int, int);
- method public static java.nio.CharBuffer wrap(CharSequence);
- }
-
- public abstract class DoubleBuffer extends java.nio.Buffer implements java.lang.Comparable<java.nio.DoubleBuffer> {
- method public static java.nio.DoubleBuffer allocate(int);
- method public final double[] array();
- method public final int arrayOffset();
- method public abstract java.nio.DoubleBuffer asReadOnlyBuffer();
- method public abstract java.nio.DoubleBuffer compact();
- method public int compareTo(java.nio.DoubleBuffer);
- method public abstract java.nio.DoubleBuffer duplicate();
- method public abstract double get();
- method public abstract double get(int);
- method public java.nio.DoubleBuffer get(double[], int, int);
- method public java.nio.DoubleBuffer get(double[]);
- method public final boolean hasArray();
- method public abstract java.nio.ByteOrder order();
- method public abstract java.nio.DoubleBuffer put(double);
- method public abstract java.nio.DoubleBuffer put(int, double);
- method public java.nio.DoubleBuffer put(java.nio.DoubleBuffer);
- method public java.nio.DoubleBuffer put(double[], int, int);
- method public final java.nio.DoubleBuffer put(double[]);
- method public abstract java.nio.DoubleBuffer slice();
- method public static java.nio.DoubleBuffer wrap(double[], int, int);
- method public static java.nio.DoubleBuffer wrap(double[]);
- }
-
- public abstract class FloatBuffer extends java.nio.Buffer implements java.lang.Comparable<java.nio.FloatBuffer> {
- method public static java.nio.FloatBuffer allocate(int);
- method public final float[] array();
- method public final int arrayOffset();
- method public abstract java.nio.FloatBuffer asReadOnlyBuffer();
- method public abstract java.nio.FloatBuffer compact();
- method public int compareTo(java.nio.FloatBuffer);
- method public abstract java.nio.FloatBuffer duplicate();
- method public abstract float get();
- method public abstract float get(int);
- method public java.nio.FloatBuffer get(float[], int, int);
- method public java.nio.FloatBuffer get(float[]);
- method public final boolean hasArray();
- method public abstract java.nio.ByteOrder order();
- method public abstract java.nio.FloatBuffer put(float);
- method public abstract java.nio.FloatBuffer put(int, float);
- method public java.nio.FloatBuffer put(java.nio.FloatBuffer);
- method public java.nio.FloatBuffer put(float[], int, int);
- method public final java.nio.FloatBuffer put(float[]);
- method public abstract java.nio.FloatBuffer slice();
- method public static java.nio.FloatBuffer wrap(float[], int, int);
- method public static java.nio.FloatBuffer wrap(float[]);
- }
-
- public abstract class IntBuffer extends java.nio.Buffer implements java.lang.Comparable<java.nio.IntBuffer> {
- method public static java.nio.IntBuffer allocate(int);
- method public final int[] array();
- method public final int arrayOffset();
- method public abstract java.nio.IntBuffer asReadOnlyBuffer();
- method public abstract java.nio.IntBuffer compact();
- method public int compareTo(java.nio.IntBuffer);
- method public abstract java.nio.IntBuffer duplicate();
- method public abstract int get();
- method public abstract int get(int);
- method public java.nio.IntBuffer get(int[], int, int);
- method public java.nio.IntBuffer get(int[]);
- method public final boolean hasArray();
- method public abstract java.nio.ByteOrder order();
- method public abstract java.nio.IntBuffer put(int);
- method public abstract java.nio.IntBuffer put(int, int);
- method public java.nio.IntBuffer put(java.nio.IntBuffer);
- method public java.nio.IntBuffer put(int[], int, int);
- method public final java.nio.IntBuffer put(int[]);
- method public abstract java.nio.IntBuffer slice();
- method public static java.nio.IntBuffer wrap(int[], int, int);
- method public static java.nio.IntBuffer wrap(int[]);
- }
-
- public class InvalidMarkException extends java.lang.IllegalStateException {
- ctor public InvalidMarkException();
- }
-
- public abstract class LongBuffer extends java.nio.Buffer implements java.lang.Comparable<java.nio.LongBuffer> {
- method public static java.nio.LongBuffer allocate(int);
- method public final long[] array();
- method public final int arrayOffset();
- method public abstract java.nio.LongBuffer asReadOnlyBuffer();
- method public abstract java.nio.LongBuffer compact();
- method public int compareTo(java.nio.LongBuffer);
- method public abstract java.nio.LongBuffer duplicate();
- method public abstract long get();
- method public abstract long get(int);
- method public java.nio.LongBuffer get(long[], int, int);
- method public java.nio.LongBuffer get(long[]);
- method public final boolean hasArray();
- method public abstract java.nio.ByteOrder order();
- method public abstract java.nio.LongBuffer put(long);
- method public abstract java.nio.LongBuffer put(int, long);
- method public java.nio.LongBuffer put(java.nio.LongBuffer);
- method public java.nio.LongBuffer put(long[], int, int);
- method public final java.nio.LongBuffer put(long[]);
- method public abstract java.nio.LongBuffer slice();
- method public static java.nio.LongBuffer wrap(long[], int, int);
- method public static java.nio.LongBuffer wrap(long[]);
- }
-
- public abstract class MappedByteBuffer extends java.nio.ByteBuffer {
- method public final java.nio.MappedByteBuffer force();
- method public final boolean isLoaded();
- method public final java.nio.MappedByteBuffer load();
- }
-
- public class ReadOnlyBufferException extends java.lang.UnsupportedOperationException {
- ctor public ReadOnlyBufferException();
- }
-
- public abstract class ShortBuffer extends java.nio.Buffer implements java.lang.Comparable<java.nio.ShortBuffer> {
- method public static java.nio.ShortBuffer allocate(int);
- method public final short[] array();
- method public final int arrayOffset();
- method public abstract java.nio.ShortBuffer asReadOnlyBuffer();
- method public abstract java.nio.ShortBuffer compact();
- method public int compareTo(java.nio.ShortBuffer);
- method public abstract java.nio.ShortBuffer duplicate();
- method public abstract short get();
- method public abstract short get(int);
- method public java.nio.ShortBuffer get(short[], int, int);
- method public java.nio.ShortBuffer get(short[]);
- method public final boolean hasArray();
- method public abstract java.nio.ByteOrder order();
- method public abstract java.nio.ShortBuffer put(short);
- method public abstract java.nio.ShortBuffer put(int, short);
- method public java.nio.ShortBuffer put(java.nio.ShortBuffer);
- method public java.nio.ShortBuffer put(short[], int, int);
- method public final java.nio.ShortBuffer put(short[]);
- method public abstract java.nio.ShortBuffer slice();
- method public static java.nio.ShortBuffer wrap(short[], int, int);
- method public static java.nio.ShortBuffer wrap(short[]);
- }
-
-}
-
-package java.nio.channels {
-
- public class AcceptPendingException extends java.lang.IllegalStateException {
- ctor public AcceptPendingException();
- }
-
- public class AlreadyBoundException extends java.lang.IllegalStateException {
- ctor public AlreadyBoundException();
- }
-
- public class AlreadyConnectedException extends java.lang.IllegalStateException {
- ctor public AlreadyConnectedException();
- }
-
- public interface AsynchronousByteChannel extends java.nio.channels.AsynchronousChannel {
- method public <A> void read(java.nio.ByteBuffer, A, java.nio.channels.CompletionHandler<java.lang.Integer,? super A>);
- method public java.util.concurrent.Future<java.lang.Integer> read(java.nio.ByteBuffer);
- method public <A> void write(java.nio.ByteBuffer, A, java.nio.channels.CompletionHandler<java.lang.Integer,? super A>);
- method public java.util.concurrent.Future<java.lang.Integer> write(java.nio.ByteBuffer);
- }
-
- public interface AsynchronousChannel extends java.nio.channels.Channel {
- }
-
- public abstract class AsynchronousChannelGroup {
- ctor protected AsynchronousChannelGroup(java.nio.channels.spi.AsynchronousChannelProvider);
- method public abstract boolean awaitTermination(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public abstract boolean isShutdown();
- method public abstract boolean isTerminated();
- method public final java.nio.channels.spi.AsynchronousChannelProvider provider();
- method public abstract void shutdown();
- method public abstract void shutdownNow() throws java.io.IOException;
- method public static java.nio.channels.AsynchronousChannelGroup withCachedThreadPool(java.util.concurrent.ExecutorService, int) throws java.io.IOException;
- method public static java.nio.channels.AsynchronousChannelGroup withFixedThreadPool(int, java.util.concurrent.ThreadFactory) throws java.io.IOException;
- method public static java.nio.channels.AsynchronousChannelGroup withThreadPool(java.util.concurrent.ExecutorService) throws java.io.IOException;
- }
-
- public class AsynchronousCloseException extends java.nio.channels.ClosedChannelException {
- ctor public AsynchronousCloseException();
- }
-
- public abstract class AsynchronousFileChannel implements java.nio.channels.AsynchronousChannel {
- ctor protected AsynchronousFileChannel();
- method public abstract void force(boolean) throws java.io.IOException;
- method public abstract <A> void lock(long, long, boolean, A, java.nio.channels.CompletionHandler<java.nio.channels.FileLock,? super A>);
- method public final <A> void lock(A, java.nio.channels.CompletionHandler<java.nio.channels.FileLock,? super A>);
- method public abstract java.util.concurrent.Future<java.nio.channels.FileLock> lock(long, long, boolean);
- method public final java.util.concurrent.Future<java.nio.channels.FileLock> lock();
- method public static java.nio.channels.AsynchronousFileChannel open(java.nio.file.Path, java.util.Set<? extends java.nio.file.OpenOption>, java.util.concurrent.ExecutorService, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public static java.nio.channels.AsynchronousFileChannel open(java.nio.file.Path, java.nio.file.OpenOption...) throws java.io.IOException;
- method public abstract <A> void read(java.nio.ByteBuffer, long, A, java.nio.channels.CompletionHandler<java.lang.Integer,? super A>);
- method public abstract java.util.concurrent.Future<java.lang.Integer> read(java.nio.ByteBuffer, long);
- method public abstract long size() throws java.io.IOException;
- method public abstract java.nio.channels.AsynchronousFileChannel truncate(long) throws java.io.IOException;
- method public abstract java.nio.channels.FileLock tryLock(long, long, boolean) throws java.io.IOException;
- method public final java.nio.channels.FileLock tryLock() throws java.io.IOException;
- method public abstract <A> void write(java.nio.ByteBuffer, long, A, java.nio.channels.CompletionHandler<java.lang.Integer,? super A>);
- method public abstract java.util.concurrent.Future<java.lang.Integer> write(java.nio.ByteBuffer, long);
- }
-
- public abstract class AsynchronousServerSocketChannel implements java.nio.channels.AsynchronousChannel java.nio.channels.NetworkChannel {
- ctor protected AsynchronousServerSocketChannel(java.nio.channels.spi.AsynchronousChannelProvider);
- method public abstract <A> void accept(A, java.nio.channels.CompletionHandler<java.nio.channels.AsynchronousSocketChannel,? super A>);
- method public abstract java.util.concurrent.Future<java.nio.channels.AsynchronousSocketChannel> accept();
- method public final java.nio.channels.AsynchronousServerSocketChannel bind(java.net.SocketAddress) throws java.io.IOException;
- method public abstract java.nio.channels.AsynchronousServerSocketChannel bind(java.net.SocketAddress, int) throws java.io.IOException;
- method public static java.nio.channels.AsynchronousServerSocketChannel open(java.nio.channels.AsynchronousChannelGroup) throws java.io.IOException;
- method public static java.nio.channels.AsynchronousServerSocketChannel open() throws java.io.IOException;
- method public final java.nio.channels.spi.AsynchronousChannelProvider provider();
- method public abstract <T> java.nio.channels.AsynchronousServerSocketChannel setOption(java.net.SocketOption<T>, T) throws java.io.IOException;
- }
-
- public abstract class AsynchronousSocketChannel implements java.nio.channels.AsynchronousByteChannel java.nio.channels.NetworkChannel {
- ctor protected AsynchronousSocketChannel(java.nio.channels.spi.AsynchronousChannelProvider);
- method public abstract java.nio.channels.AsynchronousSocketChannel bind(java.net.SocketAddress) throws java.io.IOException;
- method public abstract <A> void connect(java.net.SocketAddress, A, java.nio.channels.CompletionHandler<java.lang.Void,? super A>);
- method public abstract java.util.concurrent.Future<java.lang.Void> connect(java.net.SocketAddress);
- method public abstract java.net.SocketAddress getRemoteAddress() throws java.io.IOException;
- method public static java.nio.channels.AsynchronousSocketChannel open(java.nio.channels.AsynchronousChannelGroup) throws java.io.IOException;
- method public static java.nio.channels.AsynchronousSocketChannel open() throws java.io.IOException;
- method public final java.nio.channels.spi.AsynchronousChannelProvider provider();
- method public abstract <A> void read(java.nio.ByteBuffer, long, java.util.concurrent.TimeUnit, A, java.nio.channels.CompletionHandler<java.lang.Integer,? super A>);
- method public final <A> void read(java.nio.ByteBuffer, A, java.nio.channels.CompletionHandler<java.lang.Integer,? super A>);
- method public abstract <A> void read(java.nio.ByteBuffer[], int, int, long, java.util.concurrent.TimeUnit, A, java.nio.channels.CompletionHandler<java.lang.Long,? super A>);
- method public abstract <T> java.nio.channels.AsynchronousSocketChannel setOption(java.net.SocketOption<T>, T) throws java.io.IOException;
- method public abstract java.nio.channels.AsynchronousSocketChannel shutdownInput() throws java.io.IOException;
- method public abstract java.nio.channels.AsynchronousSocketChannel shutdownOutput() throws java.io.IOException;
- method public abstract <A> void write(java.nio.ByteBuffer, long, java.util.concurrent.TimeUnit, A, java.nio.channels.CompletionHandler<java.lang.Integer,? super A>);
- method public final <A> void write(java.nio.ByteBuffer, A, java.nio.channels.CompletionHandler<java.lang.Integer,? super A>);
- method public abstract <A> void write(java.nio.ByteBuffer[], int, int, long, java.util.concurrent.TimeUnit, A, java.nio.channels.CompletionHandler<java.lang.Long,? super A>);
- }
-
- public interface ByteChannel extends java.nio.channels.ReadableByteChannel java.nio.channels.WritableByteChannel {
- }
-
- public class CancelledKeyException extends java.lang.IllegalStateException {
- ctor public CancelledKeyException();
- }
-
- public interface Channel extends java.io.Closeable {
- method public boolean isOpen();
- }
-
- public final class Channels {
- method public static java.nio.channels.ReadableByteChannel newChannel(java.io.InputStream);
- method public static java.nio.channels.WritableByteChannel newChannel(java.io.OutputStream);
- method public static java.io.InputStream newInputStream(java.nio.channels.ReadableByteChannel);
- method public static java.io.InputStream newInputStream(java.nio.channels.AsynchronousByteChannel);
- method public static java.io.OutputStream newOutputStream(java.nio.channels.WritableByteChannel);
- method public static java.io.OutputStream newOutputStream(java.nio.channels.AsynchronousByteChannel);
- method public static java.io.Reader newReader(java.nio.channels.ReadableByteChannel, java.nio.charset.CharsetDecoder, int);
- method public static java.io.Reader newReader(java.nio.channels.ReadableByteChannel, String);
- method public static java.io.Writer newWriter(java.nio.channels.WritableByteChannel, java.nio.charset.CharsetEncoder, int);
- method public static java.io.Writer newWriter(java.nio.channels.WritableByteChannel, String);
- }
-
- public class ClosedByInterruptException extends java.nio.channels.AsynchronousCloseException {
- ctor public ClosedByInterruptException();
- }
-
- public class ClosedChannelException extends java.io.IOException {
- ctor public ClosedChannelException();
- }
-
- public class ClosedSelectorException extends java.lang.IllegalStateException {
- ctor public ClosedSelectorException();
- }
-
- public interface CompletionHandler<V, A> {
- method public void completed(V, A);
- method public void failed(Throwable, A);
- }
-
- public class ConnectionPendingException extends java.lang.IllegalStateException {
- ctor public ConnectionPendingException();
- }
-
- public abstract class DatagramChannel extends java.nio.channels.spi.AbstractSelectableChannel implements java.nio.channels.ByteChannel java.nio.channels.GatheringByteChannel java.nio.channels.MulticastChannel java.nio.channels.ScatteringByteChannel {
- ctor protected DatagramChannel(java.nio.channels.spi.SelectorProvider);
- method public abstract java.nio.channels.DatagramChannel bind(java.net.SocketAddress) throws java.io.IOException;
- method public abstract java.nio.channels.DatagramChannel connect(java.net.SocketAddress) throws java.io.IOException;
- method public abstract java.nio.channels.DatagramChannel disconnect() throws java.io.IOException;
- method public abstract java.net.SocketAddress getRemoteAddress() throws java.io.IOException;
- method public abstract boolean isConnected();
- method public static java.nio.channels.DatagramChannel open() throws java.io.IOException;
- method public static java.nio.channels.DatagramChannel open(java.net.ProtocolFamily) throws java.io.IOException;
- method public final long read(java.nio.ByteBuffer[]) throws java.io.IOException;
- method public abstract java.net.SocketAddress receive(java.nio.ByteBuffer) throws java.io.IOException;
- method public abstract int send(java.nio.ByteBuffer, java.net.SocketAddress) throws java.io.IOException;
- method public abstract <T> java.nio.channels.DatagramChannel setOption(java.net.SocketOption<T>, T) throws java.io.IOException;
- method public abstract java.net.DatagramSocket socket();
- method public final int validOps();
- method public final long write(java.nio.ByteBuffer[]) throws java.io.IOException;
- }
-
- public abstract class FileChannel extends java.nio.channels.spi.AbstractInterruptibleChannel implements java.nio.channels.GatheringByteChannel java.nio.channels.ScatteringByteChannel java.nio.channels.SeekableByteChannel {
- ctor protected FileChannel();
- method public abstract void force(boolean) throws java.io.IOException;
- method public abstract java.nio.channels.FileLock lock(long, long, boolean) throws java.io.IOException;
- method public final java.nio.channels.FileLock lock() throws java.io.IOException;
- method public abstract java.nio.MappedByteBuffer map(java.nio.channels.FileChannel.MapMode, long, long) throws java.io.IOException;
- method public static java.nio.channels.FileChannel open(java.nio.file.Path, java.util.Set<? extends java.nio.file.OpenOption>, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public static java.nio.channels.FileChannel open(java.nio.file.Path, java.nio.file.OpenOption...) throws java.io.IOException;
- method public abstract java.nio.channels.FileChannel position(long) throws java.io.IOException;
- method public final long read(java.nio.ByteBuffer[]) throws java.io.IOException;
- method public abstract int read(java.nio.ByteBuffer, long) throws java.io.IOException;
- method public abstract long transferFrom(java.nio.channels.ReadableByteChannel, long, long) throws java.io.IOException;
- method public abstract long transferTo(long, long, java.nio.channels.WritableByteChannel) throws java.io.IOException;
- method public abstract java.nio.channels.FileChannel truncate(long) throws java.io.IOException;
- method public abstract java.nio.channels.FileLock tryLock(long, long, boolean) throws java.io.IOException;
- method public final java.nio.channels.FileLock tryLock() throws java.io.IOException;
- method public final long write(java.nio.ByteBuffer[]) throws java.io.IOException;
- method public abstract int write(java.nio.ByteBuffer, long) throws java.io.IOException;
- }
-
- public static class FileChannel.MapMode {
- field public static final java.nio.channels.FileChannel.MapMode PRIVATE;
- field public static final java.nio.channels.FileChannel.MapMode READ_ONLY;
- field public static final java.nio.channels.FileChannel.MapMode READ_WRITE;
- }
-
- public abstract class FileLock implements java.lang.AutoCloseable {
- ctor protected FileLock(java.nio.channels.FileChannel, long, long, boolean);
- ctor protected FileLock(java.nio.channels.AsynchronousFileChannel, long, long, boolean);
- method public java.nio.channels.Channel acquiredBy();
- method public final java.nio.channels.FileChannel channel();
- method public final void close() throws java.io.IOException;
- method public final boolean isShared();
- method public abstract boolean isValid();
- method public final boolean overlaps(long, long);
- method public final long position();
- method public abstract void release() throws java.io.IOException;
- method public final long size();
- method public final String toString();
- }
-
- public class FileLockInterruptionException extends java.io.IOException {
- ctor public FileLockInterruptionException();
- }
-
- public interface GatheringByteChannel extends java.nio.channels.WritableByteChannel {
- method public long write(java.nio.ByteBuffer[], int, int) throws java.io.IOException;
- method public long write(java.nio.ByteBuffer[]) throws java.io.IOException;
- }
-
- public class IllegalBlockingModeException extends java.lang.IllegalStateException {
- ctor public IllegalBlockingModeException();
- }
-
- public class IllegalChannelGroupException extends java.lang.IllegalArgumentException {
- ctor public IllegalChannelGroupException();
- }
-
- public class IllegalSelectorException extends java.lang.IllegalArgumentException {
- ctor public IllegalSelectorException();
- }
-
- public class InterruptedByTimeoutException extends java.io.IOException {
- ctor public InterruptedByTimeoutException();
- }
-
- public interface InterruptibleChannel extends java.nio.channels.Channel {
- }
-
- public abstract class MembershipKey {
- ctor protected MembershipKey();
- method public abstract java.nio.channels.MembershipKey block(java.net.InetAddress) throws java.io.IOException;
- method public abstract java.nio.channels.MulticastChannel channel();
- method public abstract void drop();
- method public abstract java.net.InetAddress group();
- method public abstract boolean isValid();
- method public abstract java.net.NetworkInterface networkInterface();
- method public abstract java.net.InetAddress sourceAddress();
- method public abstract java.nio.channels.MembershipKey unblock(java.net.InetAddress);
- }
-
- public interface MulticastChannel extends java.nio.channels.NetworkChannel {
- method public java.nio.channels.MembershipKey join(java.net.InetAddress, java.net.NetworkInterface) throws java.io.IOException;
- method public java.nio.channels.MembershipKey join(java.net.InetAddress, java.net.NetworkInterface, java.net.InetAddress) throws java.io.IOException;
- }
-
- public interface NetworkChannel extends java.nio.channels.Channel {
- method public java.nio.channels.NetworkChannel bind(java.net.SocketAddress) throws java.io.IOException;
- method public java.net.SocketAddress getLocalAddress() throws java.io.IOException;
- method public <T> T getOption(java.net.SocketOption<T>) throws java.io.IOException;
- method public <T> java.nio.channels.NetworkChannel setOption(java.net.SocketOption<T>, T) throws java.io.IOException;
- method public java.util.Set<java.net.SocketOption<?>> supportedOptions();
- }
-
- public class NoConnectionPendingException extends java.lang.IllegalStateException {
- ctor public NoConnectionPendingException();
- }
-
- public class NonReadableChannelException extends java.lang.IllegalStateException {
- ctor public NonReadableChannelException();
- }
-
- public class NonWritableChannelException extends java.lang.IllegalStateException {
- ctor public NonWritableChannelException();
- }
-
- public class NotYetBoundException extends java.lang.IllegalStateException {
- ctor public NotYetBoundException();
- }
-
- public class NotYetConnectedException extends java.lang.IllegalStateException {
- ctor public NotYetConnectedException();
- }
-
- public class OverlappingFileLockException extends java.lang.IllegalStateException {
- ctor public OverlappingFileLockException();
- }
-
- public abstract class Pipe {
- ctor protected Pipe();
- method public static java.nio.channels.Pipe open() throws java.io.IOException;
- method public abstract java.nio.channels.Pipe.SinkChannel sink();
- method public abstract java.nio.channels.Pipe.SourceChannel source();
- }
-
- public abstract static class Pipe.SinkChannel extends java.nio.channels.spi.AbstractSelectableChannel implements java.nio.channels.GatheringByteChannel java.nio.channels.WritableByteChannel {
- ctor protected Pipe.SinkChannel(java.nio.channels.spi.SelectorProvider);
- method public final int validOps();
- }
-
- public abstract static class Pipe.SourceChannel extends java.nio.channels.spi.AbstractSelectableChannel implements java.nio.channels.ReadableByteChannel java.nio.channels.ScatteringByteChannel {
- ctor protected Pipe.SourceChannel(java.nio.channels.spi.SelectorProvider);
- method public final int validOps();
- }
-
- public class ReadPendingException extends java.lang.IllegalStateException {
- ctor public ReadPendingException();
- }
-
- public interface ReadableByteChannel extends java.nio.channels.Channel {
- method public int read(java.nio.ByteBuffer) throws java.io.IOException;
- }
-
- public interface ScatteringByteChannel extends java.nio.channels.ReadableByteChannel {
- method public long read(java.nio.ByteBuffer[], int, int) throws java.io.IOException;
- method public long read(java.nio.ByteBuffer[]) throws java.io.IOException;
- }
-
- public interface SeekableByteChannel extends java.nio.channels.ByteChannel {
- method public long position() throws java.io.IOException;
- method public java.nio.channels.SeekableByteChannel position(long) throws java.io.IOException;
- method public long size() throws java.io.IOException;
- method public java.nio.channels.SeekableByteChannel truncate(long) throws java.io.IOException;
- }
-
- public abstract class SelectableChannel extends java.nio.channels.spi.AbstractInterruptibleChannel implements java.nio.channels.Channel {
- ctor protected SelectableChannel();
- method public abstract Object blockingLock();
- method public abstract java.nio.channels.SelectableChannel configureBlocking(boolean) throws java.io.IOException;
- method public abstract boolean isBlocking();
- method public abstract boolean isRegistered();
- method public abstract java.nio.channels.SelectionKey keyFor(java.nio.channels.Selector);
- method public abstract java.nio.channels.spi.SelectorProvider provider();
- method public abstract java.nio.channels.SelectionKey register(java.nio.channels.Selector, int, Object) throws java.nio.channels.ClosedChannelException;
- method public final java.nio.channels.SelectionKey register(java.nio.channels.Selector, int) throws java.nio.channels.ClosedChannelException;
- method public abstract int validOps();
- }
-
- public abstract class SelectionKey {
- ctor protected SelectionKey();
- method public final Object attach(Object);
- method public final Object attachment();
- method public abstract void cancel();
- method public abstract java.nio.channels.SelectableChannel channel();
- method public abstract int interestOps();
- method public abstract java.nio.channels.SelectionKey interestOps(int);
- method public final boolean isAcceptable();
- method public final boolean isConnectable();
- method public final boolean isReadable();
- method public abstract boolean isValid();
- method public final boolean isWritable();
- method public abstract int readyOps();
- method public abstract java.nio.channels.Selector selector();
- field public static final int OP_ACCEPT = 16; // 0x10
- field public static final int OP_CONNECT = 8; // 0x8
- field public static final int OP_READ = 1; // 0x1
- field public static final int OP_WRITE = 4; // 0x4
- }
-
- public abstract class Selector implements java.io.Closeable {
- ctor protected Selector();
- method public abstract boolean isOpen();
- method public abstract java.util.Set<java.nio.channels.SelectionKey> keys();
- method public static java.nio.channels.Selector open() throws java.io.IOException;
- method public abstract java.nio.channels.spi.SelectorProvider provider();
- method public abstract int select(long) throws java.io.IOException;
- method public abstract int select() throws java.io.IOException;
- method public abstract int selectNow() throws java.io.IOException;
- method public abstract java.util.Set<java.nio.channels.SelectionKey> selectedKeys();
- method public abstract java.nio.channels.Selector wakeup();
- }
-
- public abstract class ServerSocketChannel extends java.nio.channels.spi.AbstractSelectableChannel implements java.nio.channels.NetworkChannel {
- ctor protected ServerSocketChannel(java.nio.channels.spi.SelectorProvider);
- method public abstract java.nio.channels.SocketChannel accept() throws java.io.IOException;
- method public final java.nio.channels.ServerSocketChannel bind(java.net.SocketAddress) throws java.io.IOException;
- method public abstract java.nio.channels.ServerSocketChannel bind(java.net.SocketAddress, int) throws java.io.IOException;
- method public static java.nio.channels.ServerSocketChannel open() throws java.io.IOException;
- method public abstract <T> java.nio.channels.ServerSocketChannel setOption(java.net.SocketOption<T>, T) throws java.io.IOException;
- method public abstract java.net.ServerSocket socket();
- method public final int validOps();
- }
-
- public class ShutdownChannelGroupException extends java.lang.IllegalStateException {
- ctor public ShutdownChannelGroupException();
- }
-
- public abstract class SocketChannel extends java.nio.channels.spi.AbstractSelectableChannel implements java.nio.channels.ByteChannel java.nio.channels.GatheringByteChannel java.nio.channels.NetworkChannel java.nio.channels.ScatteringByteChannel {
- ctor protected SocketChannel(java.nio.channels.spi.SelectorProvider);
- method public abstract java.nio.channels.SocketChannel bind(java.net.SocketAddress) throws java.io.IOException;
- method public abstract boolean connect(java.net.SocketAddress) throws java.io.IOException;
- method public abstract boolean finishConnect() throws java.io.IOException;
- method public abstract java.net.SocketAddress getRemoteAddress() throws java.io.IOException;
- method public abstract boolean isConnected();
- method public abstract boolean isConnectionPending();
- method public static java.nio.channels.SocketChannel open() throws java.io.IOException;
- method public static java.nio.channels.SocketChannel open(java.net.SocketAddress) throws java.io.IOException;
- method public final long read(java.nio.ByteBuffer[]) throws java.io.IOException;
- method public abstract <T> java.nio.channels.SocketChannel setOption(java.net.SocketOption<T>, T) throws java.io.IOException;
- method public abstract java.nio.channels.SocketChannel shutdownInput() throws java.io.IOException;
- method public abstract java.nio.channels.SocketChannel shutdownOutput() throws java.io.IOException;
- method public abstract java.net.Socket socket();
- method public final int validOps();
- method public final long write(java.nio.ByteBuffer[]) throws java.io.IOException;
- }
-
- public class UnresolvedAddressException extends java.lang.IllegalArgumentException {
- ctor public UnresolvedAddressException();
- }
-
- public class UnsupportedAddressTypeException extends java.lang.IllegalArgumentException {
- ctor public UnsupportedAddressTypeException();
- }
-
- public interface WritableByteChannel extends java.nio.channels.Channel {
- method public int write(java.nio.ByteBuffer) throws java.io.IOException;
- }
-
- public class WritePendingException extends java.lang.IllegalStateException {
- ctor public WritePendingException();
- }
-
-}
-
-package java.nio.channels.spi {
-
- public abstract class AbstractInterruptibleChannel implements java.nio.channels.Channel java.nio.channels.InterruptibleChannel {
- ctor protected AbstractInterruptibleChannel();
- method protected final void begin();
- method public final void close() throws java.io.IOException;
- method protected final void end(boolean) throws java.nio.channels.AsynchronousCloseException;
- method protected abstract void implCloseChannel() throws java.io.IOException;
- method public final boolean isOpen();
- }
-
- public abstract class AbstractSelectableChannel extends java.nio.channels.SelectableChannel {
- ctor protected AbstractSelectableChannel(java.nio.channels.spi.SelectorProvider);
- method public final Object blockingLock();
- method public final java.nio.channels.SelectableChannel configureBlocking(boolean) throws java.io.IOException;
- method protected final void implCloseChannel() throws java.io.IOException;
- method protected abstract void implCloseSelectableChannel() throws java.io.IOException;
- method protected abstract void implConfigureBlocking(boolean) throws java.io.IOException;
- method public final boolean isBlocking();
- method public final boolean isRegistered();
- method public final java.nio.channels.SelectionKey keyFor(java.nio.channels.Selector);
- method public final java.nio.channels.spi.SelectorProvider provider();
- method public final java.nio.channels.SelectionKey register(java.nio.channels.Selector, int, Object) throws java.nio.channels.ClosedChannelException;
- }
-
- public abstract class AbstractSelectionKey extends java.nio.channels.SelectionKey {
- ctor protected AbstractSelectionKey();
- method public final void cancel();
- method public final boolean isValid();
- }
-
- public abstract class AbstractSelector extends java.nio.channels.Selector {
- ctor protected AbstractSelector(java.nio.channels.spi.SelectorProvider);
- method protected final void begin();
- method protected final java.util.Set<java.nio.channels.SelectionKey> cancelledKeys();
- method public final void close() throws java.io.IOException;
- method protected final void deregister(java.nio.channels.spi.AbstractSelectionKey);
- method protected final void end();
- method protected abstract void implCloseSelector() throws java.io.IOException;
- method public final boolean isOpen();
- method public final java.nio.channels.spi.SelectorProvider provider();
- method protected abstract java.nio.channels.SelectionKey register(java.nio.channels.spi.AbstractSelectableChannel, int, Object);
- }
-
- public abstract class AsynchronousChannelProvider {
- ctor protected AsynchronousChannelProvider();
- method public abstract java.nio.channels.AsynchronousChannelGroup openAsynchronousChannelGroup(int, java.util.concurrent.ThreadFactory) throws java.io.IOException;
- method public abstract java.nio.channels.AsynchronousChannelGroup openAsynchronousChannelGroup(java.util.concurrent.ExecutorService, int) throws java.io.IOException;
- method public abstract java.nio.channels.AsynchronousServerSocketChannel openAsynchronousServerSocketChannel(java.nio.channels.AsynchronousChannelGroup) throws java.io.IOException;
- method public abstract java.nio.channels.AsynchronousSocketChannel openAsynchronousSocketChannel(java.nio.channels.AsynchronousChannelGroup) throws java.io.IOException;
- method public static java.nio.channels.spi.AsynchronousChannelProvider provider();
- }
-
- public abstract class SelectorProvider {
- ctor protected SelectorProvider();
- method public java.nio.channels.Channel inheritedChannel() throws java.io.IOException;
- method public abstract java.nio.channels.DatagramChannel openDatagramChannel() throws java.io.IOException;
- method public abstract java.nio.channels.DatagramChannel openDatagramChannel(java.net.ProtocolFamily) throws java.io.IOException;
- method public abstract java.nio.channels.Pipe openPipe() throws java.io.IOException;
- method public abstract java.nio.channels.spi.AbstractSelector openSelector() throws java.io.IOException;
- method public abstract java.nio.channels.ServerSocketChannel openServerSocketChannel() throws java.io.IOException;
- method public abstract java.nio.channels.SocketChannel openSocketChannel() throws java.io.IOException;
- method public static java.nio.channels.spi.SelectorProvider provider();
- }
-
-}
-
-package java.nio.charset {
-
- public class CharacterCodingException extends java.io.IOException {
- ctor public CharacterCodingException();
- }
-
- public abstract class Charset implements java.lang.Comparable<java.nio.charset.Charset> {
- ctor protected Charset(String, String[]);
- method public final java.util.Set<java.lang.String> aliases();
- method public static java.util.SortedMap<java.lang.String,java.nio.charset.Charset> availableCharsets();
- method public boolean canEncode();
- method public final int compareTo(java.nio.charset.Charset);
- method public abstract boolean contains(java.nio.charset.Charset);
- method public final java.nio.CharBuffer decode(java.nio.ByteBuffer);
- method public static java.nio.charset.Charset defaultCharset();
- method public String displayName();
- method public String displayName(java.util.Locale);
- method public final java.nio.ByteBuffer encode(java.nio.CharBuffer);
- method public final java.nio.ByteBuffer encode(String);
- method public final boolean equals(Object);
- method public static java.nio.charset.Charset forName(String);
- method public final int hashCode();
- method public final boolean isRegistered();
- method public static boolean isSupported(String);
- method public final String name();
- method public abstract java.nio.charset.CharsetDecoder newDecoder();
- method public abstract java.nio.charset.CharsetEncoder newEncoder();
- method public final String toString();
- }
-
- public abstract class CharsetDecoder {
- ctor protected CharsetDecoder(java.nio.charset.Charset, float, float);
- method public final float averageCharsPerByte();
- method public final java.nio.charset.Charset charset();
- method public final java.nio.charset.CoderResult decode(java.nio.ByteBuffer, java.nio.CharBuffer, boolean);
- method public final java.nio.CharBuffer decode(java.nio.ByteBuffer) throws java.nio.charset.CharacterCodingException;
- method protected abstract java.nio.charset.CoderResult decodeLoop(java.nio.ByteBuffer, java.nio.CharBuffer);
- method public java.nio.charset.Charset detectedCharset();
- method public final java.nio.charset.CoderResult flush(java.nio.CharBuffer);
- method protected java.nio.charset.CoderResult implFlush(java.nio.CharBuffer);
- method protected void implOnMalformedInput(java.nio.charset.CodingErrorAction);
- method protected void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction);
- method protected void implReplaceWith(String);
- method protected void implReset();
- method public boolean isAutoDetecting();
- method public boolean isCharsetDetected();
- method public java.nio.charset.CodingErrorAction malformedInputAction();
- method public final float maxCharsPerByte();
- method public final java.nio.charset.CharsetDecoder onMalformedInput(java.nio.charset.CodingErrorAction);
- method public final java.nio.charset.CharsetDecoder onUnmappableCharacter(java.nio.charset.CodingErrorAction);
- method public final java.nio.charset.CharsetDecoder replaceWith(String);
- method public final String replacement();
- method public final java.nio.charset.CharsetDecoder reset();
- method public java.nio.charset.CodingErrorAction unmappableCharacterAction();
- }
-
- public abstract class CharsetEncoder {
- ctor protected CharsetEncoder(java.nio.charset.Charset, float, float, byte[]);
- ctor protected CharsetEncoder(java.nio.charset.Charset, float, float);
- method public final float averageBytesPerChar();
- method public boolean canEncode(char);
- method public boolean canEncode(CharSequence);
- method public final java.nio.charset.Charset charset();
- method public final java.nio.charset.CoderResult encode(java.nio.CharBuffer, java.nio.ByteBuffer, boolean);
- method public final java.nio.ByteBuffer encode(java.nio.CharBuffer) throws java.nio.charset.CharacterCodingException;
- method protected abstract java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer, java.nio.ByteBuffer);
- method public final java.nio.charset.CoderResult flush(java.nio.ByteBuffer);
- method protected java.nio.charset.CoderResult implFlush(java.nio.ByteBuffer);
- method protected void implOnMalformedInput(java.nio.charset.CodingErrorAction);
- method protected void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction);
- method protected void implReplaceWith(byte[]);
- method protected void implReset();
- method public boolean isLegalReplacement(byte[]);
- method public java.nio.charset.CodingErrorAction malformedInputAction();
- method public final float maxBytesPerChar();
- method public final java.nio.charset.CharsetEncoder onMalformedInput(java.nio.charset.CodingErrorAction);
- method public final java.nio.charset.CharsetEncoder onUnmappableCharacter(java.nio.charset.CodingErrorAction);
- method public final java.nio.charset.CharsetEncoder replaceWith(byte[]);
- method public final byte[] replacement();
- method public final java.nio.charset.CharsetEncoder reset();
- method public java.nio.charset.CodingErrorAction unmappableCharacterAction();
- }
-
- public class CoderMalfunctionError extends java.lang.Error {
- ctor public CoderMalfunctionError(Exception);
- }
-
- public class CoderResult {
- method public boolean isError();
- method public boolean isMalformed();
- method public boolean isOverflow();
- method public boolean isUnderflow();
- method public boolean isUnmappable();
- method public int length();
- method public static java.nio.charset.CoderResult malformedForLength(int);
- method public void throwException() throws java.nio.charset.CharacterCodingException;
- method public static java.nio.charset.CoderResult unmappableForLength(int);
- field public static final java.nio.charset.CoderResult OVERFLOW;
- field public static final java.nio.charset.CoderResult UNDERFLOW;
- }
-
- public class CodingErrorAction {
- field public static final java.nio.charset.CodingErrorAction IGNORE;
- field public static final java.nio.charset.CodingErrorAction REPLACE;
- field public static final java.nio.charset.CodingErrorAction REPORT;
- }
-
- public class IllegalCharsetNameException extends java.lang.IllegalArgumentException {
- ctor public IllegalCharsetNameException(String);
- method public String getCharsetName();
- }
-
- public class MalformedInputException extends java.nio.charset.CharacterCodingException {
- ctor public MalformedInputException(int);
- method public int getInputLength();
- }
-
- public final class StandardCharsets {
- field public static final java.nio.charset.Charset ISO_8859_1;
- field public static final java.nio.charset.Charset US_ASCII;
- field public static final java.nio.charset.Charset UTF_16;
- field public static final java.nio.charset.Charset UTF_16BE;
- field public static final java.nio.charset.Charset UTF_16LE;
- field public static final java.nio.charset.Charset UTF_8;
- }
-
- public class UnmappableCharacterException extends java.nio.charset.CharacterCodingException {
- ctor public UnmappableCharacterException(int);
- method public int getInputLength();
- }
-
- public class UnsupportedCharsetException extends java.lang.IllegalArgumentException {
- ctor public UnsupportedCharsetException(String);
- method public String getCharsetName();
- }
-
-}
-
-package java.nio.charset.spi {
-
- public abstract class CharsetProvider {
- ctor protected CharsetProvider();
- method public abstract java.nio.charset.Charset charsetForName(String);
- method public abstract java.util.Iterator<java.nio.charset.Charset> charsets();
- }
-
-}
-
-package java.nio.file {
-
- public class AccessDeniedException extends java.nio.file.FileSystemException {
- ctor public AccessDeniedException(String);
- ctor public AccessDeniedException(String, String, String);
- }
-
- public enum AccessMode {
- enum_constant public static final java.nio.file.AccessMode EXECUTE;
- enum_constant public static final java.nio.file.AccessMode READ;
- enum_constant public static final java.nio.file.AccessMode WRITE;
- }
-
- public class AtomicMoveNotSupportedException extends java.nio.file.FileSystemException {
- ctor public AtomicMoveNotSupportedException(String, String, String);
- }
-
- public class ClosedDirectoryStreamException extends java.lang.IllegalStateException {
- ctor public ClosedDirectoryStreamException();
- }
-
- public class ClosedFileSystemException extends java.lang.IllegalStateException {
- ctor public ClosedFileSystemException();
- }
-
- public class ClosedWatchServiceException extends java.lang.IllegalStateException {
- ctor public ClosedWatchServiceException();
- }
-
- public interface CopyOption {
- }
-
- public final class DirectoryIteratorException extends java.util.ConcurrentModificationException {
- ctor public DirectoryIteratorException(java.io.IOException);
- method public java.io.IOException getCause();
- }
-
- public class DirectoryNotEmptyException extends java.nio.file.FileSystemException {
- ctor public DirectoryNotEmptyException(String);
- }
-
- public interface DirectoryStream<T> extends java.io.Closeable java.lang.Iterable<T> {
- }
-
- @java.lang.FunctionalInterface public static interface DirectoryStream.Filter<T> {
- method public boolean accept(T) throws java.io.IOException;
- }
-
- public class FileAlreadyExistsException extends java.nio.file.FileSystemException {
- ctor public FileAlreadyExistsException(String);
- ctor public FileAlreadyExistsException(String, String, String);
- }
-
- public abstract class FileStore {
- ctor protected FileStore();
- method public abstract Object getAttribute(String) throws java.io.IOException;
- method public abstract <V extends java.nio.file.attribute.FileStoreAttributeView> V getFileStoreAttributeView(Class<V>);
- method public abstract long getTotalSpace() throws java.io.IOException;
- method public abstract long getUnallocatedSpace() throws java.io.IOException;
- method public abstract long getUsableSpace() throws java.io.IOException;
- method public abstract boolean isReadOnly();
- method public abstract String name();
- method public abstract boolean supportsFileAttributeView(Class<? extends java.nio.file.attribute.FileAttributeView>);
- method public abstract boolean supportsFileAttributeView(String);
- method public abstract String type();
- }
-
- public abstract class FileSystem implements java.io.Closeable {
- ctor protected FileSystem();
- method public abstract Iterable<java.nio.file.FileStore> getFileStores();
- method public abstract java.nio.file.Path getPath(String, java.lang.String...);
- method public abstract java.nio.file.PathMatcher getPathMatcher(String);
- method public abstract Iterable<java.nio.file.Path> getRootDirectories();
- method public abstract String getSeparator();
- method public abstract java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService();
- method public abstract boolean isOpen();
- method public abstract boolean isReadOnly();
- method public abstract java.nio.file.WatchService newWatchService() throws java.io.IOException;
- method public abstract java.nio.file.spi.FileSystemProvider provider();
- method public abstract java.util.Set<java.lang.String> supportedFileAttributeViews();
- }
-
- public class FileSystemAlreadyExistsException extends java.lang.RuntimeException {
- ctor public FileSystemAlreadyExistsException();
- ctor public FileSystemAlreadyExistsException(String);
- }
-
- public class FileSystemException extends java.io.IOException {
- ctor public FileSystemException(String);
- ctor public FileSystemException(String, String, String);
- method public String getFile();
- method public String getOtherFile();
- method public String getReason();
- }
-
- public class FileSystemLoopException extends java.nio.file.FileSystemException {
- ctor public FileSystemLoopException(String);
- }
-
- public class FileSystemNotFoundException extends java.lang.RuntimeException {
- ctor public FileSystemNotFoundException();
- ctor public FileSystemNotFoundException(String);
- }
-
- public final class FileSystems {
- method public static java.nio.file.FileSystem getDefault();
- method public static java.nio.file.FileSystem getFileSystem(java.net.URI);
- method public static java.nio.file.FileSystem newFileSystem(java.net.URI, java.util.Map<java.lang.String,?>) throws java.io.IOException;
- method public static java.nio.file.FileSystem newFileSystem(java.net.URI, java.util.Map<java.lang.String,?>, ClassLoader) throws java.io.IOException;
- method public static java.nio.file.FileSystem newFileSystem(java.nio.file.Path, ClassLoader) throws java.io.IOException;
- }
-
- public enum FileVisitOption {
- enum_constant public static final java.nio.file.FileVisitOption FOLLOW_LINKS;
- }
-
- public enum FileVisitResult {
- enum_constant public static final java.nio.file.FileVisitResult CONTINUE;
- enum_constant public static final java.nio.file.FileVisitResult SKIP_SIBLINGS;
- enum_constant public static final java.nio.file.FileVisitResult SKIP_SUBTREE;
- enum_constant public static final java.nio.file.FileVisitResult TERMINATE;
- }
-
- public interface FileVisitor<T> {
- method public java.nio.file.FileVisitResult postVisitDirectory(T, java.io.IOException) throws java.io.IOException;
- method public java.nio.file.FileVisitResult preVisitDirectory(T, java.nio.file.attribute.BasicFileAttributes) throws java.io.IOException;
- method public java.nio.file.FileVisitResult visitFile(T, java.nio.file.attribute.BasicFileAttributes) throws java.io.IOException;
- method public java.nio.file.FileVisitResult visitFileFailed(T, java.io.IOException) throws java.io.IOException;
- }
-
- public final class Files {
- method public static java.nio.file.Path copy(java.nio.file.Path, java.nio.file.Path, java.nio.file.CopyOption...) throws java.io.IOException;
- method public static long copy(java.io.InputStream, java.nio.file.Path, java.nio.file.CopyOption...) throws java.io.IOException;
- method public static long copy(java.nio.file.Path, java.io.OutputStream) throws java.io.IOException;
- method public static java.nio.file.Path createDirectories(java.nio.file.Path, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public static java.nio.file.Path createDirectory(java.nio.file.Path, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public static java.nio.file.Path createFile(java.nio.file.Path, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public static java.nio.file.Path createLink(java.nio.file.Path, java.nio.file.Path) throws java.io.IOException;
- method public static java.nio.file.Path createSymbolicLink(java.nio.file.Path, java.nio.file.Path, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public static java.nio.file.Path createTempDirectory(java.nio.file.Path, String, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public static java.nio.file.Path createTempDirectory(String, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public static java.nio.file.Path createTempFile(java.nio.file.Path, String, String, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public static java.nio.file.Path createTempFile(String, String, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public static void delete(java.nio.file.Path) throws java.io.IOException;
- method public static boolean deleteIfExists(java.nio.file.Path) throws java.io.IOException;
- method public static boolean exists(java.nio.file.Path, java.nio.file.LinkOption...);
- method public static java.util.stream.Stream<java.nio.file.Path> find(java.nio.file.Path, int, java.util.function.BiPredicate<java.nio.file.Path,java.nio.file.attribute.BasicFileAttributes>, java.nio.file.FileVisitOption...) throws java.io.IOException;
- method public static Object getAttribute(java.nio.file.Path, String, java.nio.file.LinkOption...) throws java.io.IOException;
- method public static <V extends java.nio.file.attribute.FileAttributeView> V getFileAttributeView(java.nio.file.Path, Class<V>, java.nio.file.LinkOption...);
- method public static java.nio.file.FileStore getFileStore(java.nio.file.Path) throws java.io.IOException;
- method public static java.nio.file.attribute.FileTime getLastModifiedTime(java.nio.file.Path, java.nio.file.LinkOption...) throws java.io.IOException;
- method public static java.nio.file.attribute.UserPrincipal getOwner(java.nio.file.Path, java.nio.file.LinkOption...) throws java.io.IOException;
- method public static java.util.Set<java.nio.file.attribute.PosixFilePermission> getPosixFilePermissions(java.nio.file.Path, java.nio.file.LinkOption...) throws java.io.IOException;
- method public static boolean isDirectory(java.nio.file.Path, java.nio.file.LinkOption...);
- method public static boolean isExecutable(java.nio.file.Path);
- method public static boolean isHidden(java.nio.file.Path) throws java.io.IOException;
- method public static boolean isReadable(java.nio.file.Path);
- method public static boolean isRegularFile(java.nio.file.Path, java.nio.file.LinkOption...);
- method public static boolean isSameFile(java.nio.file.Path, java.nio.file.Path) throws java.io.IOException;
- method public static boolean isSymbolicLink(java.nio.file.Path);
- method public static boolean isWritable(java.nio.file.Path);
- method public static java.util.stream.Stream<java.lang.String> lines(java.nio.file.Path, java.nio.charset.Charset) throws java.io.IOException;
- method public static java.util.stream.Stream<java.lang.String> lines(java.nio.file.Path) throws java.io.IOException;
- method public static java.util.stream.Stream<java.nio.file.Path> list(java.nio.file.Path) throws java.io.IOException;
- method public static java.nio.file.Path move(java.nio.file.Path, java.nio.file.Path, java.nio.file.CopyOption...) throws java.io.IOException;
- method public static java.io.BufferedReader newBufferedReader(java.nio.file.Path, java.nio.charset.Charset) throws java.io.IOException;
- method public static java.io.BufferedReader newBufferedReader(java.nio.file.Path) throws java.io.IOException;
- method public static java.io.BufferedWriter newBufferedWriter(java.nio.file.Path, java.nio.charset.Charset, java.nio.file.OpenOption...) throws java.io.IOException;
- method public static java.io.BufferedWriter newBufferedWriter(java.nio.file.Path, java.nio.file.OpenOption...) throws java.io.IOException;
- method public static java.nio.channels.SeekableByteChannel newByteChannel(java.nio.file.Path, java.util.Set<? extends java.nio.file.OpenOption>, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public static java.nio.channels.SeekableByteChannel newByteChannel(java.nio.file.Path, java.nio.file.OpenOption...) throws java.io.IOException;
- method public static java.nio.file.DirectoryStream<java.nio.file.Path> newDirectoryStream(java.nio.file.Path) throws java.io.IOException;
- method public static java.nio.file.DirectoryStream<java.nio.file.Path> newDirectoryStream(java.nio.file.Path, String) throws java.io.IOException;
- method public static java.nio.file.DirectoryStream<java.nio.file.Path> newDirectoryStream(java.nio.file.Path, java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path>) throws java.io.IOException;
- method public static java.io.InputStream newInputStream(java.nio.file.Path, java.nio.file.OpenOption...) throws java.io.IOException;
- method public static java.io.OutputStream newOutputStream(java.nio.file.Path, java.nio.file.OpenOption...) throws java.io.IOException;
- method public static boolean notExists(java.nio.file.Path, java.nio.file.LinkOption...);
- method public static String probeContentType(java.nio.file.Path) throws java.io.IOException;
- method public static byte[] readAllBytes(java.nio.file.Path) throws java.io.IOException;
- method public static java.util.List<java.lang.String> readAllLines(java.nio.file.Path, java.nio.charset.Charset) throws java.io.IOException;
- method public static java.util.List<java.lang.String> readAllLines(java.nio.file.Path) throws java.io.IOException;
- method public static <A extends java.nio.file.attribute.BasicFileAttributes> A readAttributes(java.nio.file.Path, Class<A>, java.nio.file.LinkOption...) throws java.io.IOException;
- method public static java.util.Map<java.lang.String,java.lang.Object> readAttributes(java.nio.file.Path, String, java.nio.file.LinkOption...) throws java.io.IOException;
- method public static java.nio.file.Path readSymbolicLink(java.nio.file.Path) throws java.io.IOException;
- method public static java.nio.file.Path setAttribute(java.nio.file.Path, String, Object, java.nio.file.LinkOption...) throws java.io.IOException;
- method public static java.nio.file.Path setLastModifiedTime(java.nio.file.Path, java.nio.file.attribute.FileTime) throws java.io.IOException;
- method public static java.nio.file.Path setOwner(java.nio.file.Path, java.nio.file.attribute.UserPrincipal) throws java.io.IOException;
- method public static java.nio.file.Path setPosixFilePermissions(java.nio.file.Path, java.util.Set<java.nio.file.attribute.PosixFilePermission>) throws java.io.IOException;
- method public static long size(java.nio.file.Path) throws java.io.IOException;
- method public static java.util.stream.Stream<java.nio.file.Path> walk(java.nio.file.Path, int, java.nio.file.FileVisitOption...) throws java.io.IOException;
- method public static java.util.stream.Stream<java.nio.file.Path> walk(java.nio.file.Path, java.nio.file.FileVisitOption...) throws java.io.IOException;
- method public static java.nio.file.Path walkFileTree(java.nio.file.Path, java.util.Set<java.nio.file.FileVisitOption>, int, java.nio.file.FileVisitor<? super java.nio.file.Path>) throws java.io.IOException;
- method public static java.nio.file.Path walkFileTree(java.nio.file.Path, java.nio.file.FileVisitor<? super java.nio.file.Path>) throws java.io.IOException;
- method public static java.nio.file.Path write(java.nio.file.Path, byte[], java.nio.file.OpenOption...) throws java.io.IOException;
- method public static java.nio.file.Path write(java.nio.file.Path, Iterable<? extends java.lang.CharSequence>, java.nio.charset.Charset, java.nio.file.OpenOption...) throws java.io.IOException;
- method public static java.nio.file.Path write(java.nio.file.Path, Iterable<? extends java.lang.CharSequence>, java.nio.file.OpenOption...) throws java.io.IOException;
- }
-
- public class InvalidPathException extends java.lang.IllegalArgumentException {
- ctor public InvalidPathException(String, String, int);
- ctor public InvalidPathException(String, String);
- method public int getIndex();
- method public String getInput();
- method public String getReason();
- }
-
- public enum LinkOption implements java.nio.file.CopyOption java.nio.file.OpenOption {
- enum_constant public static final java.nio.file.LinkOption NOFOLLOW_LINKS;
- }
-
- public final class LinkPermission extends java.security.BasicPermission {
- ctor public LinkPermission(String);
- ctor public LinkPermission(String, String);
- }
-
- public class NoSuchFileException extends java.nio.file.FileSystemException {
- ctor public NoSuchFileException(String);
- ctor public NoSuchFileException(String, String, String);
- }
-
- public class NotDirectoryException extends java.nio.file.FileSystemException {
- ctor public NotDirectoryException(String);
- }
-
- public class NotLinkException extends java.nio.file.FileSystemException {
- ctor public NotLinkException(String);
- ctor public NotLinkException(String, String, String);
- }
-
- public interface OpenOption {
- }
-
- public interface Path extends java.lang.Comparable<java.nio.file.Path> java.lang.Iterable<java.nio.file.Path> java.nio.file.Watchable {
- method public int compareTo(java.nio.file.Path);
- method public boolean endsWith(java.nio.file.Path);
- method public boolean endsWith(String);
- method public boolean equals(Object);
- method public java.nio.file.Path getFileName();
- method public java.nio.file.FileSystem getFileSystem();
- method public java.nio.file.Path getName(int);
- method public int getNameCount();
- method public java.nio.file.Path getParent();
- method public java.nio.file.Path getRoot();
- method public int hashCode();
- method public boolean isAbsolute();
- method public java.util.Iterator<java.nio.file.Path> iterator();
- method public java.nio.file.Path normalize();
- method public java.nio.file.Path relativize(java.nio.file.Path);
- method public java.nio.file.Path resolve(java.nio.file.Path);
- method public java.nio.file.Path resolve(String);
- method public java.nio.file.Path resolveSibling(java.nio.file.Path);
- method public java.nio.file.Path resolveSibling(String);
- method public boolean startsWith(java.nio.file.Path);
- method public boolean startsWith(String);
- method public java.nio.file.Path subpath(int, int);
- method public java.nio.file.Path toAbsolutePath();
- method public java.io.File toFile();
- method public java.nio.file.Path toRealPath(java.nio.file.LinkOption...) throws java.io.IOException;
- method public String toString();
- method public java.net.URI toUri();
- }
-
- @java.lang.FunctionalInterface public interface PathMatcher {
- method public boolean matches(java.nio.file.Path);
- }
-
- public final class Paths {
- method public static java.nio.file.Path get(String, java.lang.String...);
- method public static java.nio.file.Path get(java.net.URI);
- }
-
- public class ProviderMismatchException extends java.lang.IllegalArgumentException {
- ctor public ProviderMismatchException();
- ctor public ProviderMismatchException(String);
- }
-
- public class ProviderNotFoundException extends java.lang.RuntimeException {
- ctor public ProviderNotFoundException();
- ctor public ProviderNotFoundException(String);
- }
-
- public class ReadOnlyFileSystemException extends java.lang.UnsupportedOperationException {
- ctor public ReadOnlyFileSystemException();
- }
-
- public interface SecureDirectoryStream<T> extends java.nio.file.DirectoryStream<T> {
- method public void deleteDirectory(T) throws java.io.IOException;
- method public void deleteFile(T) throws java.io.IOException;
- method public <V extends java.nio.file.attribute.FileAttributeView> V getFileAttributeView(Class<V>);
- method public <V extends java.nio.file.attribute.FileAttributeView> V getFileAttributeView(T, Class<V>, java.nio.file.LinkOption...);
- method public void move(T, java.nio.file.SecureDirectoryStream<T>, T) throws java.io.IOException;
- method public java.nio.channels.SeekableByteChannel newByteChannel(T, java.util.Set<? extends java.nio.file.OpenOption>, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public java.nio.file.SecureDirectoryStream<T> newDirectoryStream(T, java.nio.file.LinkOption...) throws java.io.IOException;
- }
-
- public class SimpleFileVisitor<T> implements java.nio.file.FileVisitor<T> {
- ctor protected SimpleFileVisitor();
- method public java.nio.file.FileVisitResult postVisitDirectory(T, java.io.IOException) throws java.io.IOException;
- method public java.nio.file.FileVisitResult preVisitDirectory(T, java.nio.file.attribute.BasicFileAttributes) throws java.io.IOException;
- method public java.nio.file.FileVisitResult visitFile(T, java.nio.file.attribute.BasicFileAttributes) throws java.io.IOException;
- method public java.nio.file.FileVisitResult visitFileFailed(T, java.io.IOException) throws java.io.IOException;
- }
-
- public enum StandardCopyOption implements java.nio.file.CopyOption {
- enum_constant public static final java.nio.file.StandardCopyOption ATOMIC_MOVE;
- enum_constant public static final java.nio.file.StandardCopyOption COPY_ATTRIBUTES;
- enum_constant public static final java.nio.file.StandardCopyOption REPLACE_EXISTING;
- }
-
- public enum StandardOpenOption implements java.nio.file.OpenOption {
- enum_constant public static final java.nio.file.StandardOpenOption APPEND;
- enum_constant public static final java.nio.file.StandardOpenOption CREATE;
- enum_constant public static final java.nio.file.StandardOpenOption CREATE_NEW;
- enum_constant public static final java.nio.file.StandardOpenOption DELETE_ON_CLOSE;
- enum_constant public static final java.nio.file.StandardOpenOption DSYNC;
- enum_constant public static final java.nio.file.StandardOpenOption READ;
- enum_constant public static final java.nio.file.StandardOpenOption SPARSE;
- enum_constant public static final java.nio.file.StandardOpenOption SYNC;
- enum_constant public static final java.nio.file.StandardOpenOption TRUNCATE_EXISTING;
- enum_constant public static final java.nio.file.StandardOpenOption WRITE;
- }
-
- public final class StandardWatchEventKinds {
- field public static final java.nio.file.WatchEvent.Kind<java.nio.file.Path> ENTRY_CREATE;
- field public static final java.nio.file.WatchEvent.Kind<java.nio.file.Path> ENTRY_DELETE;
- field public static final java.nio.file.WatchEvent.Kind<java.nio.file.Path> ENTRY_MODIFY;
- field public static final java.nio.file.WatchEvent.Kind<java.lang.Object> OVERFLOW;
- }
-
- public interface WatchEvent<T> {
- method public T context();
- method public int count();
- method public java.nio.file.WatchEvent.Kind<T> kind();
- }
-
- public static interface WatchEvent.Kind<T> {
- method public String name();
- method public Class<T> type();
- }
-
- public static interface WatchEvent.Modifier {
- method public String name();
- }
-
- public interface WatchKey {
- method public void cancel();
- method public boolean isValid();
- method public java.util.List<java.nio.file.WatchEvent<?>> pollEvents();
- method public boolean reset();
- method public java.nio.file.Watchable watchable();
- }
-
- public interface WatchService extends java.io.Closeable {
- method public java.nio.file.WatchKey poll();
- method public java.nio.file.WatchKey poll(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public java.nio.file.WatchKey take() throws java.lang.InterruptedException;
- }
-
- public interface Watchable {
- method public java.nio.file.WatchKey register(java.nio.file.WatchService, java.nio.file.WatchEvent.Kind<?>[], java.nio.file.WatchEvent.Modifier...) throws java.io.IOException;
- method public java.nio.file.WatchKey register(java.nio.file.WatchService, java.nio.file.WatchEvent.Kind<?>...) throws java.io.IOException;
- }
-
-}
-
-package java.nio.file.attribute {
-
- public final class AclEntry {
- method public java.util.Set<java.nio.file.attribute.AclEntryFlag> flags();
- method public static java.nio.file.attribute.AclEntry.Builder newBuilder();
- method public static java.nio.file.attribute.AclEntry.Builder newBuilder(java.nio.file.attribute.AclEntry);
- method public java.util.Set<java.nio.file.attribute.AclEntryPermission> permissions();
- method public java.nio.file.attribute.UserPrincipal principal();
- method public java.nio.file.attribute.AclEntryType type();
- }
-
- public static final class AclEntry.Builder {
- method public java.nio.file.attribute.AclEntry build();
- method public java.nio.file.attribute.AclEntry.Builder setFlags(java.util.Set<java.nio.file.attribute.AclEntryFlag>);
- method public java.nio.file.attribute.AclEntry.Builder setFlags(java.nio.file.attribute.AclEntryFlag...);
- method public java.nio.file.attribute.AclEntry.Builder setPermissions(java.util.Set<java.nio.file.attribute.AclEntryPermission>);
- method public java.nio.file.attribute.AclEntry.Builder setPermissions(java.nio.file.attribute.AclEntryPermission...);
- method public java.nio.file.attribute.AclEntry.Builder setPrincipal(java.nio.file.attribute.UserPrincipal);
- method public java.nio.file.attribute.AclEntry.Builder setType(java.nio.file.attribute.AclEntryType);
- }
-
- public enum AclEntryFlag {
- enum_constant public static final java.nio.file.attribute.AclEntryFlag DIRECTORY_INHERIT;
- enum_constant public static final java.nio.file.attribute.AclEntryFlag FILE_INHERIT;
- enum_constant public static final java.nio.file.attribute.AclEntryFlag INHERIT_ONLY;
- enum_constant public static final java.nio.file.attribute.AclEntryFlag NO_PROPAGATE_INHERIT;
- }
-
- public enum AclEntryPermission {
- enum_constant public static final java.nio.file.attribute.AclEntryPermission APPEND_DATA;
- enum_constant public static final java.nio.file.attribute.AclEntryPermission DELETE;
- enum_constant public static final java.nio.file.attribute.AclEntryPermission DELETE_CHILD;
- enum_constant public static final java.nio.file.attribute.AclEntryPermission EXECUTE;
- enum_constant public static final java.nio.file.attribute.AclEntryPermission READ_ACL;
- enum_constant public static final java.nio.file.attribute.AclEntryPermission READ_ATTRIBUTES;
- enum_constant public static final java.nio.file.attribute.AclEntryPermission READ_DATA;
- enum_constant public static final java.nio.file.attribute.AclEntryPermission READ_NAMED_ATTRS;
- enum_constant public static final java.nio.file.attribute.AclEntryPermission SYNCHRONIZE;
- enum_constant public static final java.nio.file.attribute.AclEntryPermission WRITE_ACL;
- enum_constant public static final java.nio.file.attribute.AclEntryPermission WRITE_ATTRIBUTES;
- enum_constant public static final java.nio.file.attribute.AclEntryPermission WRITE_DATA;
- enum_constant public static final java.nio.file.attribute.AclEntryPermission WRITE_NAMED_ATTRS;
- enum_constant public static final java.nio.file.attribute.AclEntryPermission WRITE_OWNER;
- field public static final java.nio.file.attribute.AclEntryPermission ADD_FILE;
- field public static final java.nio.file.attribute.AclEntryPermission ADD_SUBDIRECTORY;
- field public static final java.nio.file.attribute.AclEntryPermission LIST_DIRECTORY;
- }
-
- public enum AclEntryType {
- enum_constant public static final java.nio.file.attribute.AclEntryType ALARM;
- enum_constant public static final java.nio.file.attribute.AclEntryType ALLOW;
- enum_constant public static final java.nio.file.attribute.AclEntryType AUDIT;
- enum_constant public static final java.nio.file.attribute.AclEntryType DENY;
- }
-
- public interface AclFileAttributeView extends java.nio.file.attribute.FileOwnerAttributeView {
- method public java.util.List<java.nio.file.attribute.AclEntry> getAcl() throws java.io.IOException;
- method public void setAcl(java.util.List<java.nio.file.attribute.AclEntry>) throws java.io.IOException;
- }
-
- public interface AttributeView {
- method public String name();
- }
-
- public interface BasicFileAttributeView extends java.nio.file.attribute.FileAttributeView {
- method public java.nio.file.attribute.BasicFileAttributes readAttributes() throws java.io.IOException;
- method public void setTimes(java.nio.file.attribute.FileTime, java.nio.file.attribute.FileTime, java.nio.file.attribute.FileTime) throws java.io.IOException;
- }
-
- public interface BasicFileAttributes {
- method public java.nio.file.attribute.FileTime creationTime();
- method public Object fileKey();
- method public boolean isDirectory();
- method public boolean isOther();
- method public boolean isRegularFile();
- method public boolean isSymbolicLink();
- method public java.nio.file.attribute.FileTime lastAccessTime();
- method public java.nio.file.attribute.FileTime lastModifiedTime();
- method public long size();
- }
-
- public interface DosFileAttributeView extends java.nio.file.attribute.BasicFileAttributeView {
- method public java.nio.file.attribute.DosFileAttributes readAttributes() throws java.io.IOException;
- method public void setArchive(boolean) throws java.io.IOException;
- method public void setHidden(boolean) throws java.io.IOException;
- method public void setReadOnly(boolean) throws java.io.IOException;
- method public void setSystem(boolean) throws java.io.IOException;
- }
-
- public interface DosFileAttributes extends java.nio.file.attribute.BasicFileAttributes {
- method public boolean isArchive();
- method public boolean isHidden();
- method public boolean isReadOnly();
- method public boolean isSystem();
- }
-
- public interface FileAttribute<T> {
- method public String name();
- method public T value();
- }
-
- public interface FileAttributeView extends java.nio.file.attribute.AttributeView {
- }
-
- public interface FileOwnerAttributeView extends java.nio.file.attribute.FileAttributeView {
- method public java.nio.file.attribute.UserPrincipal getOwner() throws java.io.IOException;
- method public void setOwner(java.nio.file.attribute.UserPrincipal) throws java.io.IOException;
- }
-
- public interface FileStoreAttributeView extends java.nio.file.attribute.AttributeView {
- }
-
- public final class FileTime implements java.lang.Comparable<java.nio.file.attribute.FileTime> {
- method public int compareTo(java.nio.file.attribute.FileTime);
- method public static java.nio.file.attribute.FileTime from(long, java.util.concurrent.TimeUnit);
- method public static java.nio.file.attribute.FileTime from(java.time.Instant);
- method public static java.nio.file.attribute.FileTime fromMillis(long);
- method public long to(java.util.concurrent.TimeUnit);
- method public java.time.Instant toInstant();
- method public long toMillis();
- }
-
- public interface GroupPrincipal extends java.nio.file.attribute.UserPrincipal {
- }
-
- public interface PosixFileAttributeView extends java.nio.file.attribute.BasicFileAttributeView java.nio.file.attribute.FileOwnerAttributeView {
- method public java.nio.file.attribute.PosixFileAttributes readAttributes() throws java.io.IOException;
- method public void setGroup(java.nio.file.attribute.GroupPrincipal) throws java.io.IOException;
- method public void setPermissions(java.util.Set<java.nio.file.attribute.PosixFilePermission>) throws java.io.IOException;
- }
-
- public interface PosixFileAttributes extends java.nio.file.attribute.BasicFileAttributes {
- method public java.nio.file.attribute.GroupPrincipal group();
- method public java.nio.file.attribute.UserPrincipal owner();
- method public java.util.Set<java.nio.file.attribute.PosixFilePermission> permissions();
- }
-
- public enum PosixFilePermission {
- enum_constant public static final java.nio.file.attribute.PosixFilePermission GROUP_EXECUTE;
- enum_constant public static final java.nio.file.attribute.PosixFilePermission GROUP_READ;
- enum_constant public static final java.nio.file.attribute.PosixFilePermission GROUP_WRITE;
- enum_constant public static final java.nio.file.attribute.PosixFilePermission OTHERS_EXECUTE;
- enum_constant public static final java.nio.file.attribute.PosixFilePermission OTHERS_READ;
- enum_constant public static final java.nio.file.attribute.PosixFilePermission OTHERS_WRITE;
- enum_constant public static final java.nio.file.attribute.PosixFilePermission OWNER_EXECUTE;
- enum_constant public static final java.nio.file.attribute.PosixFilePermission OWNER_READ;
- enum_constant public static final java.nio.file.attribute.PosixFilePermission OWNER_WRITE;
- }
-
- public final class PosixFilePermissions {
- method public static java.nio.file.attribute.FileAttribute<java.util.Set<java.nio.file.attribute.PosixFilePermission>> asFileAttribute(java.util.Set<java.nio.file.attribute.PosixFilePermission>);
- method public static java.util.Set<java.nio.file.attribute.PosixFilePermission> fromString(String);
- method public static String toString(java.util.Set<java.nio.file.attribute.PosixFilePermission>);
- }
-
- public interface UserDefinedFileAttributeView extends java.nio.file.attribute.FileAttributeView {
- method public void delete(String) throws java.io.IOException;
- method public java.util.List<java.lang.String> list() throws java.io.IOException;
- method public int read(String, java.nio.ByteBuffer) throws java.io.IOException;
- method public int size(String) throws java.io.IOException;
- method public int write(String, java.nio.ByteBuffer) throws java.io.IOException;
- }
-
- public interface UserPrincipal extends java.security.Principal {
- }
-
- public abstract class UserPrincipalLookupService {
- ctor protected UserPrincipalLookupService();
- method public abstract java.nio.file.attribute.GroupPrincipal lookupPrincipalByGroupName(String) throws java.io.IOException;
- method public abstract java.nio.file.attribute.UserPrincipal lookupPrincipalByName(String) throws java.io.IOException;
- }
-
- public class UserPrincipalNotFoundException extends java.io.IOException {
- ctor public UserPrincipalNotFoundException(String);
- method public String getName();
- }
-
-}
-
-package java.nio.file.spi {
-
- public abstract class FileSystemProvider {
- ctor protected FileSystemProvider();
- method public abstract void checkAccess(java.nio.file.Path, java.nio.file.AccessMode...) throws java.io.IOException;
- method public abstract void copy(java.nio.file.Path, java.nio.file.Path, java.nio.file.CopyOption...) throws java.io.IOException;
- method public abstract void createDirectory(java.nio.file.Path, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public void createLink(java.nio.file.Path, java.nio.file.Path) throws java.io.IOException;
- method public void createSymbolicLink(java.nio.file.Path, java.nio.file.Path, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public abstract void delete(java.nio.file.Path) throws java.io.IOException;
- method public boolean deleteIfExists(java.nio.file.Path) throws java.io.IOException;
- method public abstract <V extends java.nio.file.attribute.FileAttributeView> V getFileAttributeView(java.nio.file.Path, Class<V>, java.nio.file.LinkOption...);
- method public abstract java.nio.file.FileStore getFileStore(java.nio.file.Path) throws java.io.IOException;
- method public abstract java.nio.file.FileSystem getFileSystem(java.net.URI);
- method public abstract java.nio.file.Path getPath(java.net.URI);
- method public abstract String getScheme();
- method public static java.util.List<java.nio.file.spi.FileSystemProvider> installedProviders();
- method public abstract boolean isHidden(java.nio.file.Path) throws java.io.IOException;
- method public abstract boolean isSameFile(java.nio.file.Path, java.nio.file.Path) throws java.io.IOException;
- method public abstract void move(java.nio.file.Path, java.nio.file.Path, java.nio.file.CopyOption...) throws java.io.IOException;
- method public java.nio.channels.AsynchronousFileChannel newAsynchronousFileChannel(java.nio.file.Path, java.util.Set<? extends java.nio.file.OpenOption>, java.util.concurrent.ExecutorService, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public abstract java.nio.channels.SeekableByteChannel newByteChannel(java.nio.file.Path, java.util.Set<? extends java.nio.file.OpenOption>, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public abstract java.nio.file.DirectoryStream<java.nio.file.Path> newDirectoryStream(java.nio.file.Path, java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path>) throws java.io.IOException;
- method public java.nio.channels.FileChannel newFileChannel(java.nio.file.Path, java.util.Set<? extends java.nio.file.OpenOption>, java.nio.file.attribute.FileAttribute<?>...) throws java.io.IOException;
- method public abstract java.nio.file.FileSystem newFileSystem(java.net.URI, java.util.Map<java.lang.String,?>) throws java.io.IOException;
- method public java.nio.file.FileSystem newFileSystem(java.nio.file.Path, java.util.Map<java.lang.String,?>) throws java.io.IOException;
- method public java.io.InputStream newInputStream(java.nio.file.Path, java.nio.file.OpenOption...) throws java.io.IOException;
- method public java.io.OutputStream newOutputStream(java.nio.file.Path, java.nio.file.OpenOption...) throws java.io.IOException;
- method public abstract <A extends java.nio.file.attribute.BasicFileAttributes> A readAttributes(java.nio.file.Path, Class<A>, java.nio.file.LinkOption...) throws java.io.IOException;
- method public abstract java.util.Map<java.lang.String,java.lang.Object> readAttributes(java.nio.file.Path, String, java.nio.file.LinkOption...) throws java.io.IOException;
- method public java.nio.file.Path readSymbolicLink(java.nio.file.Path) throws java.io.IOException;
- method public abstract void setAttribute(java.nio.file.Path, String, Object, java.nio.file.LinkOption...) throws java.io.IOException;
- }
-
- public abstract class FileTypeDetector {
- ctor protected FileTypeDetector();
- method public abstract String probeContentType(java.nio.file.Path) throws java.io.IOException;
- }
-
-}
-
-package java.security {
-
- public final class AccessControlContext {
- ctor public AccessControlContext(java.security.ProtectionDomain[]);
- ctor public AccessControlContext(java.security.AccessControlContext, java.security.DomainCombiner);
- method public void checkPermission(java.security.Permission) throws java.security.AccessControlException;
- method public java.security.DomainCombiner getDomainCombiner();
- }
-
- public class AccessControlException extends java.lang.SecurityException {
- ctor public AccessControlException(String);
- ctor public AccessControlException(String, java.security.Permission);
- method public java.security.Permission getPermission();
- }
-
- public final class AccessController {
- method public static void checkPermission(java.security.Permission) throws java.security.AccessControlException;
- method public static <T> T doPrivileged(java.security.PrivilegedAction<T>);
- method public static <T> T doPrivileged(java.security.PrivilegedAction<T>, java.security.AccessControlContext);
- method public static <T> T doPrivileged(java.security.PrivilegedExceptionAction<T>) throws java.security.PrivilegedActionException;
- method public static <T> T doPrivileged(java.security.PrivilegedExceptionAction<T>, java.security.AccessControlContext) throws java.security.PrivilegedActionException;
- method public static <T> T doPrivilegedWithCombiner(java.security.PrivilegedAction<T>);
- method public static <T> T doPrivilegedWithCombiner(java.security.PrivilegedExceptionAction<T>) throws java.security.PrivilegedActionException;
- method public static java.security.AccessControlContext getContext();
- }
-
- public interface AlgorithmConstraints {
- method public boolean permits(java.util.Set<java.security.CryptoPrimitive>, String, java.security.AlgorithmParameters);
- method public boolean permits(java.util.Set<java.security.CryptoPrimitive>, java.security.Key);
- method public boolean permits(java.util.Set<java.security.CryptoPrimitive>, String, java.security.Key, java.security.AlgorithmParameters);
- }
-
- public class AlgorithmParameterGenerator {
- ctor protected AlgorithmParameterGenerator(java.security.AlgorithmParameterGeneratorSpi, java.security.Provider, String);
- method public final java.security.AlgorithmParameters generateParameters();
- method public final String getAlgorithm();
- method public static java.security.AlgorithmParameterGenerator getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static java.security.AlgorithmParameterGenerator getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static java.security.AlgorithmParameterGenerator getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public final java.security.Provider getProvider();
- method public final void init(int);
- method public final void init(int, java.security.SecureRandom);
- method public final void init(java.security.spec.AlgorithmParameterSpec) throws java.security.InvalidAlgorithmParameterException;
- method public final void init(java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom) throws java.security.InvalidAlgorithmParameterException;
- }
-
- public abstract class AlgorithmParameterGeneratorSpi {
- ctor public AlgorithmParameterGeneratorSpi();
- method protected abstract java.security.AlgorithmParameters engineGenerateParameters();
- method protected abstract void engineInit(int, java.security.SecureRandom);
- method protected abstract void engineInit(java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom) throws java.security.InvalidAlgorithmParameterException;
- }
-
- public class AlgorithmParameters {
- ctor protected AlgorithmParameters(java.security.AlgorithmParametersSpi, java.security.Provider, String);
- method public final String getAlgorithm();
- method public final byte[] getEncoded() throws java.io.IOException;
- method public final byte[] getEncoded(String) throws java.io.IOException;
- method public static java.security.AlgorithmParameters getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static java.security.AlgorithmParameters getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static java.security.AlgorithmParameters getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public final <T extends java.security.spec.AlgorithmParameterSpec> T getParameterSpec(Class<T>) throws java.security.spec.InvalidParameterSpecException;
- method public final java.security.Provider getProvider();
- method public final void init(java.security.spec.AlgorithmParameterSpec) throws java.security.spec.InvalidParameterSpecException;
- method public final void init(byte[]) throws java.io.IOException;
- method public final void init(byte[], String) throws java.io.IOException;
- method public final String toString();
- }
-
- public abstract class AlgorithmParametersSpi {
- ctor public AlgorithmParametersSpi();
- method protected abstract byte[] engineGetEncoded() throws java.io.IOException;
- method protected abstract byte[] engineGetEncoded(String) throws java.io.IOException;
- method protected abstract <T extends java.security.spec.AlgorithmParameterSpec> T engineGetParameterSpec(Class<T>) throws java.security.spec.InvalidParameterSpecException;
- method protected abstract void engineInit(java.security.spec.AlgorithmParameterSpec) throws java.security.spec.InvalidParameterSpecException;
- method protected abstract void engineInit(byte[]) throws java.io.IOException;
- method protected abstract void engineInit(byte[], String) throws java.io.IOException;
- method protected abstract String engineToString();
- }
-
- public final class AllPermission extends java.security.Permission {
- ctor public AllPermission();
- ctor public AllPermission(String, String);
- method public String getActions();
- method public boolean implies(java.security.Permission);
- }
-
- public abstract class AuthProvider extends java.security.Provider {
- ctor protected AuthProvider(String, double, String);
- method public abstract void login(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler) throws javax.security.auth.login.LoginException;
- method public abstract void logout() throws javax.security.auth.login.LoginException;
- method public abstract void setCallbackHandler(javax.security.auth.callback.CallbackHandler);
- }
-
- public abstract class BasicPermission extends java.security.Permission implements java.io.Serializable {
- ctor public BasicPermission(String);
- ctor public BasicPermission(String, String);
- method public String getActions();
- method public boolean implies(java.security.Permission);
- }
-
- @Deprecated public interface Certificate {
- method @Deprecated public void decode(java.io.InputStream) throws java.io.IOException, java.security.KeyException;
- method @Deprecated public void encode(java.io.OutputStream) throws java.io.IOException, java.security.KeyException;
- method @Deprecated public String getFormat();
- method @Deprecated public java.security.Principal getGuarantor();
- method @Deprecated public java.security.Principal getPrincipal();
- method @Deprecated public java.security.PublicKey getPublicKey();
- method @Deprecated public String toString(boolean);
- }
-
- public final class CodeSigner implements java.io.Serializable {
- ctor public CodeSigner(java.security.cert.CertPath, java.security.Timestamp);
- method public java.security.cert.CertPath getSignerCertPath();
- method public java.security.Timestamp getTimestamp();
- }
-
- public class CodeSource implements java.io.Serializable {
- ctor public CodeSource(java.net.URL, java.security.cert.Certificate[]);
- ctor public CodeSource(java.net.URL, java.security.CodeSigner[]);
- method public final java.security.cert.Certificate[] getCertificates();
- method public final java.security.CodeSigner[] getCodeSigners();
- method public final java.net.URL getLocation();
- method public boolean implies(java.security.CodeSource);
- }
-
- public enum CryptoPrimitive {
- enum_constant public static final java.security.CryptoPrimitive BLOCK_CIPHER;
- enum_constant public static final java.security.CryptoPrimitive KEY_AGREEMENT;
- enum_constant public static final java.security.CryptoPrimitive KEY_ENCAPSULATION;
- enum_constant public static final java.security.CryptoPrimitive KEY_WRAP;
- enum_constant public static final java.security.CryptoPrimitive MAC;
- enum_constant public static final java.security.CryptoPrimitive MESSAGE_DIGEST;
- enum_constant public static final java.security.CryptoPrimitive PUBLIC_KEY_ENCRYPTION;
- enum_constant public static final java.security.CryptoPrimitive SECURE_RANDOM;
- enum_constant public static final java.security.CryptoPrimitive SIGNATURE;
- enum_constant public static final java.security.CryptoPrimitive STREAM_CIPHER;
- }
-
- public class DigestException extends java.security.GeneralSecurityException {
- ctor public DigestException();
- ctor public DigestException(String);
- ctor public DigestException(String, Throwable);
- ctor public DigestException(Throwable);
- }
-
- public class DigestInputStream extends java.io.FilterInputStream {
- ctor public DigestInputStream(java.io.InputStream, java.security.MessageDigest);
- method public java.security.MessageDigest getMessageDigest();
- method public void on(boolean);
- method public void setMessageDigest(java.security.MessageDigest);
- field protected java.security.MessageDigest digest;
- }
-
- public class DigestOutputStream extends java.io.FilterOutputStream {
- ctor public DigestOutputStream(java.io.OutputStream, java.security.MessageDigest);
- method public java.security.MessageDigest getMessageDigest();
- method public void on(boolean);
- method public void setMessageDigest(java.security.MessageDigest);
- field protected java.security.MessageDigest digest;
- }
-
- public interface DomainCombiner {
- method public java.security.ProtectionDomain[] combine(java.security.ProtectionDomain[], java.security.ProtectionDomain[]);
- }
-
- public final class DomainLoadStoreParameter implements java.security.KeyStore.LoadStoreParameter {
- ctor public DomainLoadStoreParameter(java.net.URI, java.util.Map<java.lang.String,java.security.KeyStore.ProtectionParameter>);
- method public java.net.URI getConfiguration();
- method public java.security.KeyStore.ProtectionParameter getProtectionParameter();
- method public java.util.Map<java.lang.String,java.security.KeyStore.ProtectionParameter> getProtectionParams();
- }
-
- public class GeneralSecurityException extends java.lang.Exception {
- ctor public GeneralSecurityException();
- ctor public GeneralSecurityException(String);
- ctor public GeneralSecurityException(String, Throwable);
- ctor public GeneralSecurityException(Throwable);
- }
-
- public interface Guard {
- method public void checkGuard(Object) throws java.lang.SecurityException;
- }
-
- public class GuardedObject implements java.io.Serializable {
- ctor public GuardedObject(Object, java.security.Guard);
- method public Object getObject() throws java.lang.SecurityException;
- }
-
- @Deprecated public abstract class Identity implements java.security.Principal java.io.Serializable {
- ctor @Deprecated protected Identity();
- ctor @Deprecated public Identity(String, java.security.IdentityScope) throws java.security.KeyManagementException;
- ctor @Deprecated public Identity(String);
- method @Deprecated public void addCertificate(java.security.Certificate) throws java.security.KeyManagementException;
- method @Deprecated public java.security.Certificate[] certificates();
- method @Deprecated public final boolean equals(Object);
- method @Deprecated public String getInfo();
- method @Deprecated public final String getName();
- method @Deprecated public java.security.PublicKey getPublicKey();
- method @Deprecated public final java.security.IdentityScope getScope();
- method @Deprecated protected boolean identityEquals(java.security.Identity);
- method @Deprecated public void removeCertificate(java.security.Certificate) throws java.security.KeyManagementException;
- method @Deprecated public void setInfo(String);
- method @Deprecated public void setPublicKey(java.security.PublicKey) throws java.security.KeyManagementException;
- method @Deprecated public String toString(boolean);
- }
-
- @Deprecated public abstract class IdentityScope extends java.security.Identity {
- ctor @Deprecated protected IdentityScope();
- ctor @Deprecated public IdentityScope(String);
- ctor @Deprecated public IdentityScope(String, java.security.IdentityScope) throws java.security.KeyManagementException;
- method @Deprecated public abstract void addIdentity(java.security.Identity) throws java.security.KeyManagementException;
- method @Deprecated public abstract java.security.Identity getIdentity(String);
- method @Deprecated public java.security.Identity getIdentity(java.security.Principal);
- method @Deprecated public abstract java.security.Identity getIdentity(java.security.PublicKey);
- method @Deprecated public static java.security.IdentityScope getSystemScope();
- method @Deprecated public abstract java.util.Enumeration<java.security.Identity> identities();
- method @Deprecated public abstract void removeIdentity(java.security.Identity) throws java.security.KeyManagementException;
- method @Deprecated protected static void setSystemScope(java.security.IdentityScope);
- method @Deprecated public abstract int size();
- }
-
- public class InvalidAlgorithmParameterException extends java.security.GeneralSecurityException {
- ctor public InvalidAlgorithmParameterException();
- ctor public InvalidAlgorithmParameterException(String);
- ctor public InvalidAlgorithmParameterException(String, Throwable);
- ctor public InvalidAlgorithmParameterException(Throwable);
- }
-
- public class InvalidKeyException extends java.security.KeyException {
- ctor public InvalidKeyException();
- ctor public InvalidKeyException(String);
- ctor public InvalidKeyException(String, Throwable);
- ctor public InvalidKeyException(Throwable);
- }
-
- public class InvalidParameterException extends java.lang.IllegalArgumentException {
- ctor public InvalidParameterException();
- ctor public InvalidParameterException(String);
- }
-
- public interface Key extends java.io.Serializable {
- method public String getAlgorithm();
- method public byte[] getEncoded();
- method public String getFormat();
- field public static final long serialVersionUID = 6603384152749567654L; // 0x5ba3eee69414eea6L
- }
-
- public class KeyException extends java.security.GeneralSecurityException {
- ctor public KeyException();
- ctor public KeyException(String);
- ctor public KeyException(String, Throwable);
- ctor public KeyException(Throwable);
- }
-
- public class KeyFactory {
- ctor protected KeyFactory(java.security.KeyFactorySpi, java.security.Provider, String);
- method public final java.security.PrivateKey generatePrivate(java.security.spec.KeySpec) throws java.security.spec.InvalidKeySpecException;
- method public final java.security.PublicKey generatePublic(java.security.spec.KeySpec) throws java.security.spec.InvalidKeySpecException;
- method public final String getAlgorithm();
- method public static java.security.KeyFactory getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static java.security.KeyFactory getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static java.security.KeyFactory getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public final <T extends java.security.spec.KeySpec> T getKeySpec(java.security.Key, Class<T>) throws java.security.spec.InvalidKeySpecException;
- method public final java.security.Provider getProvider();
- method public final java.security.Key translateKey(java.security.Key) throws java.security.InvalidKeyException;
- }
-
- public abstract class KeyFactorySpi {
- ctor public KeyFactorySpi();
- method protected abstract java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec) throws java.security.spec.InvalidKeySpecException;
- method protected abstract java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec) throws java.security.spec.InvalidKeySpecException;
- method protected abstract <T extends java.security.spec.KeySpec> T engineGetKeySpec(java.security.Key, Class<T>) throws java.security.spec.InvalidKeySpecException;
- method protected abstract java.security.Key engineTranslateKey(java.security.Key) throws java.security.InvalidKeyException;
- }
-
- public class KeyManagementException extends java.security.KeyException {
- ctor public KeyManagementException();
- ctor public KeyManagementException(String);
- ctor public KeyManagementException(String, Throwable);
- ctor public KeyManagementException(Throwable);
- }
-
- public final class KeyPair implements java.io.Serializable {
- ctor public KeyPair(java.security.PublicKey, java.security.PrivateKey);
- method public java.security.PrivateKey getPrivate();
- method public java.security.PublicKey getPublic();
- }
-
- public abstract class KeyPairGenerator extends java.security.KeyPairGeneratorSpi {
- ctor protected KeyPairGenerator(String);
- method public final java.security.KeyPair genKeyPair();
- method public java.security.KeyPair generateKeyPair();
- method public String getAlgorithm();
- method public static java.security.KeyPairGenerator getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static java.security.KeyPairGenerator getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static java.security.KeyPairGenerator getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public final java.security.Provider getProvider();
- method public void initialize(int);
- method public void initialize(int, java.security.SecureRandom);
- method public void initialize(java.security.spec.AlgorithmParameterSpec) throws java.security.InvalidAlgorithmParameterException;
- }
-
- public abstract class KeyPairGeneratorSpi {
- ctor public KeyPairGeneratorSpi();
- method public abstract java.security.KeyPair generateKeyPair();
- method public abstract void initialize(int, java.security.SecureRandom);
- method public void initialize(java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom) throws java.security.InvalidAlgorithmParameterException;
- }
-
- public class KeyRep implements java.io.Serializable {
- ctor public KeyRep(java.security.KeyRep.Type, String, String, byte[]);
- method protected Object readResolve() throws java.io.ObjectStreamException;
- }
-
- public enum KeyRep.Type {
- enum_constant public static final java.security.KeyRep.Type PRIVATE;
- enum_constant public static final java.security.KeyRep.Type PUBLIC;
- enum_constant public static final java.security.KeyRep.Type SECRET;
- }
-
- public class KeyStore {
- ctor protected KeyStore(java.security.KeyStoreSpi, java.security.Provider, String);
- method public final java.util.Enumeration<java.lang.String> aliases() throws java.security.KeyStoreException;
- method public final boolean containsAlias(String) throws java.security.KeyStoreException;
- method public final void deleteEntry(String) throws java.security.KeyStoreException;
- method public final boolean entryInstanceOf(String, Class<? extends java.security.KeyStore.Entry>) throws java.security.KeyStoreException;
- method public final java.security.cert.Certificate getCertificate(String) throws java.security.KeyStoreException;
- method public final String getCertificateAlias(java.security.cert.Certificate) throws java.security.KeyStoreException;
- method public final java.security.cert.Certificate[] getCertificateChain(String) throws java.security.KeyStoreException;
- method public final java.util.Date getCreationDate(String) throws java.security.KeyStoreException;
- method public static final String getDefaultType();
- method public final java.security.KeyStore.Entry getEntry(String, java.security.KeyStore.ProtectionParameter) throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.UnrecoverableEntryException;
- method public static java.security.KeyStore getInstance(String) throws java.security.KeyStoreException;
- method public static java.security.KeyStore getInstance(String, String) throws java.security.KeyStoreException, java.security.NoSuchProviderException;
- method public static java.security.KeyStore getInstance(String, java.security.Provider) throws java.security.KeyStoreException;
- method public final java.security.Key getKey(String, char[]) throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException;
- method public final java.security.Provider getProvider();
- method public final String getType();
- method public final boolean isCertificateEntry(String) throws java.security.KeyStoreException;
- method public final boolean isKeyEntry(String) throws java.security.KeyStoreException;
- method public final void load(java.io.InputStream, char[]) throws java.security.cert.CertificateException, java.io.IOException, java.security.NoSuchAlgorithmException;
- method public final void load(java.security.KeyStore.LoadStoreParameter) throws java.security.cert.CertificateException, java.io.IOException, java.security.NoSuchAlgorithmException;
- method public final void setCertificateEntry(String, java.security.cert.Certificate) throws java.security.KeyStoreException;
- method public final void setEntry(String, java.security.KeyStore.Entry, java.security.KeyStore.ProtectionParameter) throws java.security.KeyStoreException;
- method public final void setKeyEntry(String, java.security.Key, char[], java.security.cert.Certificate[]) throws java.security.KeyStoreException;
- method public final void setKeyEntry(String, byte[], java.security.cert.Certificate[]) throws java.security.KeyStoreException;
- method public final int size() throws java.security.KeyStoreException;
- method public final void store(java.io.OutputStream, char[]) throws java.security.cert.CertificateException, java.io.IOException, java.security.KeyStoreException, java.security.NoSuchAlgorithmException;
- method public final void store(java.security.KeyStore.LoadStoreParameter) throws java.security.cert.CertificateException, java.io.IOException, java.security.KeyStoreException, java.security.NoSuchAlgorithmException;
- }
-
- public abstract static class KeyStore.Builder {
- ctor protected KeyStore.Builder();
- method public abstract java.security.KeyStore getKeyStore() throws java.security.KeyStoreException;
- method public abstract java.security.KeyStore.ProtectionParameter getProtectionParameter(String) throws java.security.KeyStoreException;
- method public static java.security.KeyStore.Builder newInstance(java.security.KeyStore, java.security.KeyStore.ProtectionParameter);
- method public static java.security.KeyStore.Builder newInstance(String, java.security.Provider, java.io.File, java.security.KeyStore.ProtectionParameter);
- method public static java.security.KeyStore.Builder newInstance(String, java.security.Provider, java.security.KeyStore.ProtectionParameter);
- }
-
- public static class KeyStore.CallbackHandlerProtection implements java.security.KeyStore.ProtectionParameter {
- ctor public KeyStore.CallbackHandlerProtection(javax.security.auth.callback.CallbackHandler);
- method public javax.security.auth.callback.CallbackHandler getCallbackHandler();
- }
-
- public static interface KeyStore.Entry {
- method public default java.util.Set<java.security.KeyStore.Entry.Attribute> getAttributes();
- }
-
- public static interface KeyStore.Entry.Attribute {
- method public String getName();
- method public String getValue();
- }
-
- public static interface KeyStore.LoadStoreParameter {
- method public java.security.KeyStore.ProtectionParameter getProtectionParameter();
- }
-
- public static class KeyStore.PasswordProtection implements javax.security.auth.Destroyable java.security.KeyStore.ProtectionParameter {
- ctor public KeyStore.PasswordProtection(char[]);
- ctor public KeyStore.PasswordProtection(char[], String, java.security.spec.AlgorithmParameterSpec);
- method public char[] getPassword();
- method public String getProtectionAlgorithm();
- method public java.security.spec.AlgorithmParameterSpec getProtectionParameters();
- }
-
- public static final class KeyStore.PrivateKeyEntry implements java.security.KeyStore.Entry {
- ctor public KeyStore.PrivateKeyEntry(java.security.PrivateKey, java.security.cert.Certificate[]);
- ctor public KeyStore.PrivateKeyEntry(java.security.PrivateKey, java.security.cert.Certificate[], java.util.Set<java.security.KeyStore.Entry.Attribute>);
- method public java.security.cert.Certificate getCertificate();
- method public java.security.cert.Certificate[] getCertificateChain();
- method public java.security.PrivateKey getPrivateKey();
- }
-
- public static interface KeyStore.ProtectionParameter {
- }
-
- public static final class KeyStore.SecretKeyEntry implements java.security.KeyStore.Entry {
- ctor public KeyStore.SecretKeyEntry(javax.crypto.SecretKey);
- ctor public KeyStore.SecretKeyEntry(javax.crypto.SecretKey, java.util.Set<java.security.KeyStore.Entry.Attribute>);
- method public javax.crypto.SecretKey getSecretKey();
- }
-
- public static final class KeyStore.TrustedCertificateEntry implements java.security.KeyStore.Entry {
- ctor public KeyStore.TrustedCertificateEntry(java.security.cert.Certificate);
- ctor public KeyStore.TrustedCertificateEntry(java.security.cert.Certificate, java.util.Set<java.security.KeyStore.Entry.Attribute>);
- method public java.security.cert.Certificate getTrustedCertificate();
- }
-
- public class KeyStoreException extends java.security.GeneralSecurityException {
- ctor public KeyStoreException();
- ctor public KeyStoreException(String);
- ctor public KeyStoreException(String, Throwable);
- ctor public KeyStoreException(Throwable);
- }
-
- public abstract class KeyStoreSpi {
- ctor public KeyStoreSpi();
- method public abstract java.util.Enumeration<java.lang.String> engineAliases();
- method public abstract boolean engineContainsAlias(String);
- method public abstract void engineDeleteEntry(String) throws java.security.KeyStoreException;
- method public boolean engineEntryInstanceOf(String, Class<? extends java.security.KeyStore.Entry>);
- method public abstract java.security.cert.Certificate engineGetCertificate(String);
- method public abstract String engineGetCertificateAlias(java.security.cert.Certificate);
- method public abstract java.security.cert.Certificate[] engineGetCertificateChain(String);
- method public abstract java.util.Date engineGetCreationDate(String);
- method public java.security.KeyStore.Entry engineGetEntry(String, java.security.KeyStore.ProtectionParameter) throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.UnrecoverableEntryException;
- method public abstract java.security.Key engineGetKey(String, char[]) throws java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException;
- method public abstract boolean engineIsCertificateEntry(String);
- method public abstract boolean engineIsKeyEntry(String);
- method public abstract void engineLoad(java.io.InputStream, char[]) throws java.security.cert.CertificateException, java.io.IOException, java.security.NoSuchAlgorithmException;
- method public void engineLoad(java.security.KeyStore.LoadStoreParameter) throws java.security.cert.CertificateException, java.io.IOException, java.security.NoSuchAlgorithmException;
- method public abstract void engineSetCertificateEntry(String, java.security.cert.Certificate) throws java.security.KeyStoreException;
- method public void engineSetEntry(String, java.security.KeyStore.Entry, java.security.KeyStore.ProtectionParameter) throws java.security.KeyStoreException;
- method public abstract void engineSetKeyEntry(String, java.security.Key, char[], java.security.cert.Certificate[]) throws java.security.KeyStoreException;
- method public abstract void engineSetKeyEntry(String, byte[], java.security.cert.Certificate[]) throws java.security.KeyStoreException;
- method public abstract int engineSize();
- method public abstract void engineStore(java.io.OutputStream, char[]) throws java.security.cert.CertificateException, java.io.IOException, java.security.NoSuchAlgorithmException;
- method public void engineStore(java.security.KeyStore.LoadStoreParameter) throws java.security.cert.CertificateException, java.io.IOException, java.security.NoSuchAlgorithmException;
- }
-
- public abstract class MessageDigest extends java.security.MessageDigestSpi {
- ctor protected MessageDigest(@NonNull String);
- method @NonNull public byte[] digest();
- method public int digest(@NonNull byte[], int, int) throws java.security.DigestException;
- method @NonNull public byte[] digest(@NonNull byte[]);
- method @NonNull public final String getAlgorithm();
- method public final int getDigestLength();
- method @NonNull public static java.security.MessageDigest getInstance(@NonNull String) throws java.security.NoSuchAlgorithmException;
- method @NonNull public static java.security.MessageDigest getInstance(@NonNull String, @NonNull String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method @NonNull public static java.security.MessageDigest getInstance(@NonNull String, @NonNull java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method @NonNull public final java.security.Provider getProvider();
- method public static boolean isEqual(@Nullable byte[], @Nullable byte[]);
- method public void reset();
- method public void update(byte);
- method public void update(@NonNull byte[], int, int);
- method public void update(@NonNull byte[]);
- method public final void update(@NonNull java.nio.ByteBuffer);
- }
-
- public abstract class MessageDigestSpi {
- ctor public MessageDigestSpi();
- method public Object clone() throws java.lang.CloneNotSupportedException;
- method protected abstract byte[] engineDigest();
- method protected int engineDigest(byte[], int, int) throws java.security.DigestException;
- method protected int engineGetDigestLength();
- method protected abstract void engineReset();
- method protected abstract void engineUpdate(byte);
- method protected abstract void engineUpdate(byte[], int, int);
- method protected void engineUpdate(java.nio.ByteBuffer);
- }
-
- public class NoSuchAlgorithmException extends java.security.GeneralSecurityException {
- ctor public NoSuchAlgorithmException();
- ctor public NoSuchAlgorithmException(String);
- ctor public NoSuchAlgorithmException(String, Throwable);
- ctor public NoSuchAlgorithmException(Throwable);
- }
-
- public class NoSuchProviderException extends java.security.GeneralSecurityException {
- ctor public NoSuchProviderException();
- ctor public NoSuchProviderException(String);
- }
-
- public final class PKCS12Attribute implements java.security.KeyStore.Entry.Attribute {
- ctor public PKCS12Attribute(String, String);
- ctor public PKCS12Attribute(byte[]);
- method public byte[] getEncoded();
- method public String getName();
- method public String getValue();
- }
-
- public abstract class Permission implements java.security.Guard java.io.Serializable {
- ctor public Permission(String);
- method public void checkGuard(Object) throws java.lang.SecurityException;
- method public abstract String getActions();
- method public final String getName();
- method public abstract boolean implies(java.security.Permission);
- method public java.security.PermissionCollection newPermissionCollection();
- }
-
- public abstract class PermissionCollection implements java.io.Serializable {
- ctor public PermissionCollection();
- method public abstract void add(java.security.Permission);
- method public abstract java.util.Enumeration<java.security.Permission> elements();
- method public abstract boolean implies(java.security.Permission);
- method public boolean isReadOnly();
- method public void setReadOnly();
- }
-
- public final class Permissions extends java.security.PermissionCollection implements java.io.Serializable {
- ctor public Permissions();
- method public void add(java.security.Permission);
- method public java.util.Enumeration<java.security.Permission> elements();
- method public boolean implies(java.security.Permission);
- }
-
- public abstract class Policy {
- ctor public Policy();
- method public static java.security.Policy getInstance(String, java.security.Policy.Parameters) throws java.security.NoSuchAlgorithmException;
- method public static java.security.Policy getInstance(String, java.security.Policy.Parameters, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static java.security.Policy getInstance(String, java.security.Policy.Parameters, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public java.security.Policy.Parameters getParameters();
- method public java.security.PermissionCollection getPermissions(java.security.CodeSource);
- method public java.security.PermissionCollection getPermissions(java.security.ProtectionDomain);
- method public static java.security.Policy getPolicy();
- method public java.security.Provider getProvider();
- method public String getType();
- method public boolean implies(java.security.ProtectionDomain, java.security.Permission);
- method public void refresh();
- method public static void setPolicy(java.security.Policy);
- field public static final java.security.PermissionCollection UNSUPPORTED_EMPTY_COLLECTION;
- }
-
- public static interface Policy.Parameters {
- }
-
- public abstract class PolicySpi {
- ctor public PolicySpi();
- method protected java.security.PermissionCollection engineGetPermissions(java.security.CodeSource);
- method protected java.security.PermissionCollection engineGetPermissions(java.security.ProtectionDomain);
- method protected abstract boolean engineImplies(java.security.ProtectionDomain, java.security.Permission);
- method protected void engineRefresh();
- }
-
- public interface Principal {
- method public boolean equals(Object);
- method public String getName();
- method public int hashCode();
- method public default boolean implies(javax.security.auth.Subject);
- method public String toString();
- }
-
- public interface PrivateKey extends java.security.Key javax.security.auth.Destroyable {
- field public static final long serialVersionUID = 6034044314589513430L; // 0x53bd3b559a12c6d6L
- }
-
- public interface PrivilegedAction<T> {
- method public T run();
- }
-
- public class PrivilegedActionException extends java.lang.Exception {
- ctor public PrivilegedActionException(Exception);
- method public Exception getException();
- }
-
- public interface PrivilegedExceptionAction<T> {
- method public T run() throws java.lang.Exception;
- }
-
- public class ProtectionDomain {
- ctor public ProtectionDomain(java.security.CodeSource, java.security.PermissionCollection);
- ctor public ProtectionDomain(java.security.CodeSource, java.security.PermissionCollection, ClassLoader, java.security.Principal[]);
- method public final ClassLoader getClassLoader();
- method public final java.security.CodeSource getCodeSource();
- method public final java.security.PermissionCollection getPermissions();
- method public final java.security.Principal[] getPrincipals();
- method public boolean implies(java.security.Permission);
- }
-
- public abstract class Provider extends java.util.Properties {
- ctor protected Provider(String, double, String);
- method public Object compute(Object, java.util.function.BiFunction<? super java.lang.Object,? super java.lang.Object,?>);
- method public Object computeIfAbsent(Object, java.util.function.Function<? super java.lang.Object,?>);
- method public Object computeIfPresent(Object, java.util.function.BiFunction<? super java.lang.Object,? super java.lang.Object,?>);
- method public java.util.Enumeration<java.lang.Object> elements();
- method public java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> entrySet();
- method public void forEach(java.util.function.BiConsumer<? super java.lang.Object,? super java.lang.Object>);
- method public Object get(Object);
- method public String getInfo();
- method public String getName();
- method public Object getOrDefault(Object, Object);
- method public java.security.Provider.Service getService(String, String);
- method public java.util.Set<java.security.Provider.Service> getServices();
- method public double getVersion();
- method public java.util.Set<java.lang.Object> keySet();
- method public java.util.Enumeration<java.lang.Object> keys();
- method public Object merge(Object, Object, java.util.function.BiFunction<? super java.lang.Object,? super java.lang.Object,?>);
- method public Object put(Object, Object);
- method public void putAll(java.util.Map<?,?>);
- method public Object putIfAbsent(Object, Object);
- method protected void putService(java.security.Provider.Service);
- method public Object remove(Object);
- method protected void removeService(java.security.Provider.Service);
- method public boolean replace(Object, Object, Object);
- method public Object replace(Object, Object);
- method public void replaceAll(java.util.function.BiFunction<? super java.lang.Object,? super java.lang.Object,?>);
- method public java.util.Collection<java.lang.Object> values();
- }
-
- public static class Provider.Service {
- ctor public Provider.Service(java.security.Provider, String, String, String, java.util.List<java.lang.String>, java.util.Map<java.lang.String,java.lang.String>);
- method public final String getAlgorithm();
- method public final String getAttribute(String);
- method public final String getClassName();
- method public final java.security.Provider getProvider();
- method public final String getType();
- method public Object newInstance(Object) throws java.security.NoSuchAlgorithmException;
- method public boolean supportsParameter(Object);
- }
-
- public class ProviderException extends java.lang.RuntimeException {
- ctor public ProviderException();
- ctor public ProviderException(String);
- ctor public ProviderException(String, Throwable);
- ctor public ProviderException(Throwable);
- }
-
- public interface PublicKey extends java.security.Key {
- field public static final long serialVersionUID = 7187392471159151072L; // 0x63bebf5f40c219e0L
- }
-
- public class SecureClassLoader extends java.lang.ClassLoader {
- ctor protected SecureClassLoader(ClassLoader);
- ctor protected SecureClassLoader();
- method protected final Class<?> defineClass(String, byte[], int, int, java.security.CodeSource);
- method protected final Class<?> defineClass(String, java.nio.ByteBuffer, java.security.CodeSource);
- method protected java.security.PermissionCollection getPermissions(java.security.CodeSource);
- }
-
- public class SecureRandom extends java.util.Random {
- ctor public SecureRandom();
- ctor public SecureRandom(byte[]);
- ctor protected SecureRandom(java.security.SecureRandomSpi, java.security.Provider);
- method public byte[] generateSeed(int);
- method public String getAlgorithm();
- method public static java.security.SecureRandom getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static java.security.SecureRandom getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static java.security.SecureRandom getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public static java.security.SecureRandom getInstanceStrong() throws java.security.NoSuchAlgorithmException;
- method public final java.security.Provider getProvider();
- method public static byte[] getSeed(int);
- method protected final int next(int);
- method public void setSeed(byte[]);
- }
-
- public abstract class SecureRandomSpi implements java.io.Serializable {
- ctor public SecureRandomSpi();
- method protected abstract byte[] engineGenerateSeed(int);
- method protected abstract void engineNextBytes(byte[]);
- method protected abstract void engineSetSeed(byte[]);
- }
-
- public final class Security {
- method public static int addProvider(java.security.Provider);
- method @Deprecated public static String getAlgorithmProperty(String, String);
- method public static java.util.Set<java.lang.String> getAlgorithms(String);
- method public static String getProperty(String);
- method public static java.security.Provider getProvider(String);
- method public static java.security.Provider[] getProviders();
- method public static java.security.Provider[] getProviders(String);
- method public static java.security.Provider[] getProviders(java.util.Map<java.lang.String,java.lang.String>);
- method public static int insertProviderAt(java.security.Provider, int);
- method public static void removeProvider(String);
- method public static void setProperty(String, String);
- }
-
- public final class SecurityPermission extends java.security.BasicPermission {
- ctor public SecurityPermission(String);
- ctor public SecurityPermission(String, String);
- }
-
- public abstract class Signature extends java.security.SignatureSpi {
- ctor protected Signature(String);
- method public final String getAlgorithm();
- method public static java.security.Signature getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static java.security.Signature getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static java.security.Signature getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method @Deprecated public final Object getParameter(String) throws java.security.InvalidParameterException;
- method public final java.security.AlgorithmParameters getParameters();
- method public final java.security.Provider getProvider();
- method public final void initSign(java.security.PrivateKey) throws java.security.InvalidKeyException;
- method public final void initSign(java.security.PrivateKey, java.security.SecureRandom) throws java.security.InvalidKeyException;
- method public final void initVerify(java.security.PublicKey) throws java.security.InvalidKeyException;
- method public final void initVerify(java.security.cert.Certificate) throws java.security.InvalidKeyException;
- method @Deprecated public final void setParameter(String, Object) throws java.security.InvalidParameterException;
- method public final void setParameter(java.security.spec.AlgorithmParameterSpec) throws java.security.InvalidAlgorithmParameterException;
- method public final byte[] sign() throws java.security.SignatureException;
- method public final int sign(byte[], int, int) throws java.security.SignatureException;
- method public final void update(byte) throws java.security.SignatureException;
- method public final void update(byte[]) throws java.security.SignatureException;
- method public final void update(byte[], int, int) throws java.security.SignatureException;
- method public final void update(java.nio.ByteBuffer) throws java.security.SignatureException;
- method public final boolean verify(byte[]) throws java.security.SignatureException;
- method public final boolean verify(byte[], int, int) throws java.security.SignatureException;
- field protected static final int SIGN = 2; // 0x2
- field protected static final int UNINITIALIZED = 0; // 0x0
- field protected static final int VERIFY = 3; // 0x3
- field protected int state;
- }
-
- public class SignatureException extends java.security.GeneralSecurityException {
- ctor public SignatureException();
- ctor public SignatureException(String);
- ctor public SignatureException(String, Throwable);
- ctor public SignatureException(Throwable);
- }
-
- public abstract class SignatureSpi {
- ctor public SignatureSpi();
- method public Object clone() throws java.lang.CloneNotSupportedException;
- method @Deprecated protected abstract Object engineGetParameter(String) throws java.security.InvalidParameterException;
- method protected java.security.AlgorithmParameters engineGetParameters();
- method protected abstract void engineInitSign(java.security.PrivateKey) throws java.security.InvalidKeyException;
- method protected void engineInitSign(java.security.PrivateKey, java.security.SecureRandom) throws java.security.InvalidKeyException;
- method protected abstract void engineInitVerify(java.security.PublicKey) throws java.security.InvalidKeyException;
- method @Deprecated protected abstract void engineSetParameter(String, Object) throws java.security.InvalidParameterException;
- method protected void engineSetParameter(java.security.spec.AlgorithmParameterSpec) throws java.security.InvalidAlgorithmParameterException;
- method protected abstract byte[] engineSign() throws java.security.SignatureException;
- method protected int engineSign(byte[], int, int) throws java.security.SignatureException;
- method protected abstract void engineUpdate(byte) throws java.security.SignatureException;
- method protected abstract void engineUpdate(byte[], int, int) throws java.security.SignatureException;
- method protected void engineUpdate(java.nio.ByteBuffer);
- method protected abstract boolean engineVerify(byte[]) throws java.security.SignatureException;
- method protected boolean engineVerify(byte[], int, int) throws java.security.SignatureException;
- field protected java.security.SecureRandom appRandom;
- }
-
- public final class SignedObject implements java.io.Serializable {
- ctor public SignedObject(java.io.Serializable, java.security.PrivateKey, java.security.Signature) throws java.io.IOException, java.security.InvalidKeyException, java.security.SignatureException;
- method public String getAlgorithm();
- method public Object getObject() throws java.lang.ClassNotFoundException, java.io.IOException;
- method public byte[] getSignature();
- method public boolean verify(java.security.PublicKey, java.security.Signature) throws java.security.InvalidKeyException, java.security.SignatureException;
- }
-
- @Deprecated public abstract class Signer extends java.security.Identity {
- ctor @Deprecated protected Signer();
- ctor @Deprecated public Signer(String);
- ctor @Deprecated public Signer(String, java.security.IdentityScope) throws java.security.KeyManagementException;
- method @Deprecated public java.security.PrivateKey getPrivateKey();
- method @Deprecated public final void setKeyPair(java.security.KeyPair) throws java.security.InvalidParameterException, java.security.KeyException;
- }
-
- public final class Timestamp implements java.io.Serializable {
- ctor public Timestamp(java.util.Date, java.security.cert.CertPath);
- method public java.security.cert.CertPath getSignerCertPath();
- method public java.util.Date getTimestamp();
- }
-
- public class UnrecoverableEntryException extends java.security.GeneralSecurityException {
- ctor public UnrecoverableEntryException();
- ctor public UnrecoverableEntryException(String);
- }
-
- public class UnrecoverableKeyException extends java.security.UnrecoverableEntryException {
- ctor public UnrecoverableKeyException();
- ctor public UnrecoverableKeyException(String);
- }
-
- public final class UnresolvedPermission extends java.security.Permission implements java.io.Serializable {
- ctor public UnresolvedPermission(String, String, String, java.security.cert.Certificate[]);
- method public String getActions();
- method public String getUnresolvedActions();
- method public java.security.cert.Certificate[] getUnresolvedCerts();
- method public String getUnresolvedName();
- method public String getUnresolvedType();
- method public boolean implies(java.security.Permission);
- }
-
-}
-
-package java.security.acl {
-
- public interface Acl extends java.security.acl.Owner {
- method public boolean addEntry(java.security.Principal, java.security.acl.AclEntry) throws java.security.acl.NotOwnerException;
- method public boolean checkPermission(java.security.Principal, java.security.acl.Permission);
- method public java.util.Enumeration<java.security.acl.AclEntry> entries();
- method public String getName();
- method public java.util.Enumeration<java.security.acl.Permission> getPermissions(java.security.Principal);
- method public boolean removeEntry(java.security.Principal, java.security.acl.AclEntry) throws java.security.acl.NotOwnerException;
- method public void setName(java.security.Principal, String) throws java.security.acl.NotOwnerException;
- method public String toString();
- }
-
- public interface AclEntry extends java.lang.Cloneable {
- method public boolean addPermission(java.security.acl.Permission);
- method public boolean checkPermission(java.security.acl.Permission);
- method public Object clone();
- method public java.security.Principal getPrincipal();
- method public boolean isNegative();
- method public java.util.Enumeration<java.security.acl.Permission> permissions();
- method public boolean removePermission(java.security.acl.Permission);
- method public void setNegativePermissions();
- method public boolean setPrincipal(java.security.Principal);
- method public String toString();
- }
-
- public class AclNotFoundException extends java.lang.Exception {
- ctor public AclNotFoundException();
- }
-
- public interface Group extends java.security.Principal {
- method public boolean addMember(java.security.Principal);
- method public boolean isMember(java.security.Principal);
- method public java.util.Enumeration<? extends java.security.Principal> members();
- method public boolean removeMember(java.security.Principal);
- }
-
- public class LastOwnerException extends java.lang.Exception {
- ctor public LastOwnerException();
- }
-
- public class NotOwnerException extends java.lang.Exception {
- ctor public NotOwnerException();
- }
-
- public interface Owner {
- method public boolean addOwner(java.security.Principal, java.security.Principal) throws java.security.acl.NotOwnerException;
- method public boolean deleteOwner(java.security.Principal, java.security.Principal) throws java.security.acl.LastOwnerException, java.security.acl.NotOwnerException;
- method public boolean isOwner(java.security.Principal);
- }
-
- public interface Permission {
- }
-
-}
-
-package java.security.cert {
-
- public abstract class CRL {
- ctor protected CRL(String);
- method public final String getType();
- method public abstract boolean isRevoked(java.security.cert.Certificate);
- method public abstract String toString();
- }
-
- public class CRLException extends java.security.GeneralSecurityException {
- ctor public CRLException();
- ctor public CRLException(String);
- ctor public CRLException(String, Throwable);
- ctor public CRLException(Throwable);
- }
-
- public enum CRLReason {
- enum_constant public static final java.security.cert.CRLReason AA_COMPROMISE;
- enum_constant public static final java.security.cert.CRLReason AFFILIATION_CHANGED;
- enum_constant public static final java.security.cert.CRLReason CA_COMPROMISE;
- enum_constant public static final java.security.cert.CRLReason CERTIFICATE_HOLD;
- enum_constant public static final java.security.cert.CRLReason CESSATION_OF_OPERATION;
- enum_constant public static final java.security.cert.CRLReason KEY_COMPROMISE;
- enum_constant public static final java.security.cert.CRLReason PRIVILEGE_WITHDRAWN;
- enum_constant public static final java.security.cert.CRLReason REMOVE_FROM_CRL;
- enum_constant public static final java.security.cert.CRLReason SUPERSEDED;
- enum_constant public static final java.security.cert.CRLReason UNSPECIFIED;
- enum_constant public static final java.security.cert.CRLReason UNUSED;
- }
-
- public interface CRLSelector extends java.lang.Cloneable {
- method public Object clone();
- method public boolean match(java.security.cert.CRL);
- }
-
- public abstract class CertPath implements java.io.Serializable {
- ctor protected CertPath(String);
- method public abstract java.util.List<? extends java.security.cert.Certificate> getCertificates();
- method public abstract byte[] getEncoded() throws java.security.cert.CertificateEncodingException;
- method public abstract byte[] getEncoded(String) throws java.security.cert.CertificateEncodingException;
- method public abstract java.util.Iterator<java.lang.String> getEncodings();
- method public String getType();
- method protected Object writeReplace() throws java.io.ObjectStreamException;
- }
-
- protected static class CertPath.CertPathRep implements java.io.Serializable {
- ctor protected CertPath.CertPathRep(String, byte[]);
- method protected Object readResolve() throws java.io.ObjectStreamException;
- }
-
- public class CertPathBuilder {
- ctor protected CertPathBuilder(java.security.cert.CertPathBuilderSpi, java.security.Provider, String);
- method public final java.security.cert.CertPathBuilderResult build(java.security.cert.CertPathParameters) throws java.security.cert.CertPathBuilderException, java.security.InvalidAlgorithmParameterException;
- method public final String getAlgorithm();
- method public static final String getDefaultType();
- method public static java.security.cert.CertPathBuilder getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static java.security.cert.CertPathBuilder getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static java.security.cert.CertPathBuilder getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public final java.security.Provider getProvider();
- method public final java.security.cert.CertPathChecker getRevocationChecker();
- }
-
- public class CertPathBuilderException extends java.security.GeneralSecurityException {
- ctor public CertPathBuilderException();
- ctor public CertPathBuilderException(String);
- ctor public CertPathBuilderException(Throwable);
- ctor public CertPathBuilderException(String, Throwable);
- }
-
- public interface CertPathBuilderResult extends java.lang.Cloneable {
- method public Object clone();
- method public java.security.cert.CertPath getCertPath();
- }
-
- public abstract class CertPathBuilderSpi {
- ctor public CertPathBuilderSpi();
- method public abstract java.security.cert.CertPathBuilderResult engineBuild(java.security.cert.CertPathParameters) throws java.security.cert.CertPathBuilderException, java.security.InvalidAlgorithmParameterException;
- method public java.security.cert.CertPathChecker engineGetRevocationChecker();
- }
-
- public interface CertPathChecker {
- method public void check(java.security.cert.Certificate) throws java.security.cert.CertPathValidatorException;
- method public void init(boolean) throws java.security.cert.CertPathValidatorException;
- method public boolean isForwardCheckingSupported();
- }
-
- public interface CertPathParameters extends java.lang.Cloneable {
- method public Object clone();
- }
-
- public class CertPathValidator {
- ctor protected CertPathValidator(java.security.cert.CertPathValidatorSpi, java.security.Provider, String);
- method public final String getAlgorithm();
- method public static final String getDefaultType();
- method public static java.security.cert.CertPathValidator getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static java.security.cert.CertPathValidator getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static java.security.cert.CertPathValidator getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public final java.security.Provider getProvider();
- method public final java.security.cert.CertPathChecker getRevocationChecker();
- method public final java.security.cert.CertPathValidatorResult validate(java.security.cert.CertPath, java.security.cert.CertPathParameters) throws java.security.cert.CertPathValidatorException, java.security.InvalidAlgorithmParameterException;
- }
-
- public class CertPathValidatorException extends java.security.GeneralSecurityException {
- ctor public CertPathValidatorException();
- ctor public CertPathValidatorException(String);
- ctor public CertPathValidatorException(Throwable);
- ctor public CertPathValidatorException(String, Throwable);
- ctor public CertPathValidatorException(String, Throwable, java.security.cert.CertPath, int);
- ctor public CertPathValidatorException(String, Throwable, java.security.cert.CertPath, int, java.security.cert.CertPathValidatorException.Reason);
- method public java.security.cert.CertPath getCertPath();
- method public int getIndex();
- method public java.security.cert.CertPathValidatorException.Reason getReason();
- }
-
- public enum CertPathValidatorException.BasicReason implements java.security.cert.CertPathValidatorException.Reason {
- enum_constant public static final java.security.cert.CertPathValidatorException.BasicReason ALGORITHM_CONSTRAINED;
- enum_constant public static final java.security.cert.CertPathValidatorException.BasicReason EXPIRED;
- enum_constant public static final java.security.cert.CertPathValidatorException.BasicReason INVALID_SIGNATURE;
- enum_constant public static final java.security.cert.CertPathValidatorException.BasicReason NOT_YET_VALID;
- enum_constant public static final java.security.cert.CertPathValidatorException.BasicReason REVOKED;
- enum_constant public static final java.security.cert.CertPathValidatorException.BasicReason UNDETERMINED_REVOCATION_STATUS;
- enum_constant public static final java.security.cert.CertPathValidatorException.BasicReason UNSPECIFIED;
- }
-
- public static interface CertPathValidatorException.Reason extends java.io.Serializable {
- }
-
- public interface CertPathValidatorResult extends java.lang.Cloneable {
- method public Object clone();
- }
-
- public abstract class CertPathValidatorSpi {
- ctor public CertPathValidatorSpi();
- method public java.security.cert.CertPathChecker engineGetRevocationChecker();
- method public abstract java.security.cert.CertPathValidatorResult engineValidate(java.security.cert.CertPath, java.security.cert.CertPathParameters) throws java.security.cert.CertPathValidatorException, java.security.InvalidAlgorithmParameterException;
- }
-
- public interface CertSelector extends java.lang.Cloneable {
- method public Object clone();
- method public boolean match(java.security.cert.Certificate);
- }
-
- public class CertStore {
- ctor protected CertStore(java.security.cert.CertStoreSpi, java.security.Provider, String, java.security.cert.CertStoreParameters);
- method public final java.util.Collection<? extends java.security.cert.CRL> getCRLs(java.security.cert.CRLSelector) throws java.security.cert.CertStoreException;
- method public final java.security.cert.CertStoreParameters getCertStoreParameters();
- method public final java.util.Collection<? extends java.security.cert.Certificate> getCertificates(java.security.cert.CertSelector) throws java.security.cert.CertStoreException;
- method public static final String getDefaultType();
- method public static java.security.cert.CertStore getInstance(String, java.security.cert.CertStoreParameters) throws java.security.InvalidAlgorithmParameterException, java.security.NoSuchAlgorithmException;
- method public static java.security.cert.CertStore getInstance(String, java.security.cert.CertStoreParameters, String) throws java.security.InvalidAlgorithmParameterException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static java.security.cert.CertStore getInstance(String, java.security.cert.CertStoreParameters, java.security.Provider) throws java.security.InvalidAlgorithmParameterException, java.security.NoSuchAlgorithmException;
- method public final java.security.Provider getProvider();
- method public final String getType();
- }
-
- public class CertStoreException extends java.security.GeneralSecurityException {
- ctor public CertStoreException();
- ctor public CertStoreException(String);
- ctor public CertStoreException(Throwable);
- ctor public CertStoreException(String, Throwable);
- }
-
- public interface CertStoreParameters extends java.lang.Cloneable {
- method public Object clone();
- }
-
- public abstract class CertStoreSpi {
- ctor public CertStoreSpi(java.security.cert.CertStoreParameters) throws java.security.InvalidAlgorithmParameterException;
- method public abstract java.util.Collection<? extends java.security.cert.CRL> engineGetCRLs(java.security.cert.CRLSelector) throws java.security.cert.CertStoreException;
- method public abstract java.util.Collection<? extends java.security.cert.Certificate> engineGetCertificates(java.security.cert.CertSelector) throws java.security.cert.CertStoreException;
- }
-
- public abstract class Certificate implements java.io.Serializable {
- ctor protected Certificate(String);
- method public abstract byte[] getEncoded() throws java.security.cert.CertificateEncodingException;
- method public abstract java.security.PublicKey getPublicKey();
- method public final String getType();
- method public abstract String toString();
- method public abstract void verify(java.security.PublicKey) throws java.security.cert.CertificateException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, java.security.SignatureException;
- method public abstract void verify(java.security.PublicKey, String) throws java.security.cert.CertificateException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, java.security.SignatureException;
- method public void verify(java.security.PublicKey, java.security.Provider) throws java.security.cert.CertificateException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, java.security.SignatureException;
- method protected Object writeReplace() throws java.io.ObjectStreamException;
- }
-
- protected static class Certificate.CertificateRep implements java.io.Serializable {
- ctor protected Certificate.CertificateRep(String, byte[]);
- method protected Object readResolve() throws java.io.ObjectStreamException;
- }
-
- public class CertificateEncodingException extends java.security.cert.CertificateException {
- ctor public CertificateEncodingException();
- ctor public CertificateEncodingException(String);
- ctor public CertificateEncodingException(String, Throwable);
- ctor public CertificateEncodingException(Throwable);
- }
-
- public class CertificateException extends java.security.GeneralSecurityException {
- ctor public CertificateException();
- ctor public CertificateException(String);
- ctor public CertificateException(String, Throwable);
- ctor public CertificateException(Throwable);
- }
-
- public class CertificateExpiredException extends java.security.cert.CertificateException {
- ctor public CertificateExpiredException();
- ctor public CertificateExpiredException(String);
- }
-
- public class CertificateFactory {
- ctor protected CertificateFactory(java.security.cert.CertificateFactorySpi, java.security.Provider, String);
- method public final java.security.cert.CRL generateCRL(java.io.InputStream) throws java.security.cert.CRLException;
- method public final java.util.Collection<? extends java.security.cert.CRL> generateCRLs(java.io.InputStream) throws java.security.cert.CRLException;
- method public final java.security.cert.CertPath generateCertPath(java.io.InputStream) throws java.security.cert.CertificateException;
- method public final java.security.cert.CertPath generateCertPath(java.io.InputStream, String) throws java.security.cert.CertificateException;
- method public final java.security.cert.CertPath generateCertPath(java.util.List<? extends java.security.cert.Certificate>) throws java.security.cert.CertificateException;
- method public final java.security.cert.Certificate generateCertificate(java.io.InputStream) throws java.security.cert.CertificateException;
- method public final java.util.Collection<? extends java.security.cert.Certificate> generateCertificates(java.io.InputStream) throws java.security.cert.CertificateException;
- method public final java.util.Iterator<java.lang.String> getCertPathEncodings();
- method public static final java.security.cert.CertificateFactory getInstance(String) throws java.security.cert.CertificateException;
- method public static final java.security.cert.CertificateFactory getInstance(String, String) throws java.security.cert.CertificateException, java.security.NoSuchProviderException;
- method public static final java.security.cert.CertificateFactory getInstance(String, java.security.Provider) throws java.security.cert.CertificateException;
- method public final java.security.Provider getProvider();
- method public final String getType();
- }
-
- public abstract class CertificateFactorySpi {
- ctor public CertificateFactorySpi();
- method public abstract java.security.cert.CRL engineGenerateCRL(java.io.InputStream) throws java.security.cert.CRLException;
- method public abstract java.util.Collection<? extends java.security.cert.CRL> engineGenerateCRLs(java.io.InputStream) throws java.security.cert.CRLException;
- method public java.security.cert.CertPath engineGenerateCertPath(java.io.InputStream) throws java.security.cert.CertificateException;
- method public java.security.cert.CertPath engineGenerateCertPath(java.io.InputStream, String) throws java.security.cert.CertificateException;
- method public java.security.cert.CertPath engineGenerateCertPath(java.util.List<? extends java.security.cert.Certificate>) throws java.security.cert.CertificateException;
- method public abstract java.security.cert.Certificate engineGenerateCertificate(java.io.InputStream) throws java.security.cert.CertificateException;
- method public abstract java.util.Collection<? extends java.security.cert.Certificate> engineGenerateCertificates(java.io.InputStream) throws java.security.cert.CertificateException;
- method public java.util.Iterator<java.lang.String> engineGetCertPathEncodings();
- }
-
- public class CertificateNotYetValidException extends java.security.cert.CertificateException {
- ctor public CertificateNotYetValidException();
- ctor public CertificateNotYetValidException(String);
- }
-
- public class CertificateParsingException extends java.security.cert.CertificateException {
- ctor public CertificateParsingException();
- ctor public CertificateParsingException(String);
- ctor public CertificateParsingException(String, Throwable);
- ctor public CertificateParsingException(Throwable);
- }
-
- public class CertificateRevokedException extends java.security.cert.CertificateException {
- ctor public CertificateRevokedException(java.util.Date, java.security.cert.CRLReason, javax.security.auth.x500.X500Principal, java.util.Map<java.lang.String,java.security.cert.Extension>);
- method public javax.security.auth.x500.X500Principal getAuthorityName();
- method public java.util.Map<java.lang.String,java.security.cert.Extension> getExtensions();
- method public java.util.Date getInvalidityDate();
- method public java.util.Date getRevocationDate();
- method public java.security.cert.CRLReason getRevocationReason();
- }
-
- public class CollectionCertStoreParameters implements java.security.cert.CertStoreParameters {
- ctor public CollectionCertStoreParameters(java.util.Collection<?>);
- ctor public CollectionCertStoreParameters();
- method public Object clone();
- method public java.util.Collection<?> getCollection();
- }
-
- public interface Extension {
- method public void encode(java.io.OutputStream) throws java.io.IOException;
- method public String getId();
- method public byte[] getValue();
- method public boolean isCritical();
- }
-
- public class LDAPCertStoreParameters implements java.security.cert.CertStoreParameters {
- ctor public LDAPCertStoreParameters(String, int);
- ctor public LDAPCertStoreParameters(String);
- ctor public LDAPCertStoreParameters();
- method public Object clone();
- method public int getPort();
- method public String getServerName();
- }
-
- public class PKIXBuilderParameters extends java.security.cert.PKIXParameters {
- ctor public PKIXBuilderParameters(java.util.Set<java.security.cert.TrustAnchor>, java.security.cert.CertSelector) throws java.security.InvalidAlgorithmParameterException;
- ctor public PKIXBuilderParameters(java.security.KeyStore, java.security.cert.CertSelector) throws java.security.InvalidAlgorithmParameterException, java.security.KeyStoreException;
- method public int getMaxPathLength();
- method public void setMaxPathLength(int);
- }
-
- public class PKIXCertPathBuilderResult extends java.security.cert.PKIXCertPathValidatorResult implements java.security.cert.CertPathBuilderResult {
- ctor public PKIXCertPathBuilderResult(java.security.cert.CertPath, java.security.cert.TrustAnchor, java.security.cert.PolicyNode, java.security.PublicKey);
- method public java.security.cert.CertPath getCertPath();
- }
-
- public abstract class PKIXCertPathChecker implements java.security.cert.CertPathChecker java.lang.Cloneable {
- ctor protected PKIXCertPathChecker();
- method public abstract void check(java.security.cert.Certificate, java.util.Collection<java.lang.String>) throws java.security.cert.CertPathValidatorException;
- method public void check(java.security.cert.Certificate) throws java.security.cert.CertPathValidatorException;
- method public Object clone();
- method public abstract java.util.Set<java.lang.String> getSupportedExtensions();
- }
-
- public class PKIXCertPathValidatorResult implements java.security.cert.CertPathValidatorResult {
- ctor public PKIXCertPathValidatorResult(java.security.cert.TrustAnchor, java.security.cert.PolicyNode, java.security.PublicKey);
- method public Object clone();
- method public java.security.cert.PolicyNode getPolicyTree();
- method public java.security.PublicKey getPublicKey();
- method public java.security.cert.TrustAnchor getTrustAnchor();
- }
-
- public class PKIXParameters implements java.security.cert.CertPathParameters {
- ctor public PKIXParameters(java.util.Set<java.security.cert.TrustAnchor>) throws java.security.InvalidAlgorithmParameterException;
- ctor public PKIXParameters(java.security.KeyStore) throws java.security.InvalidAlgorithmParameterException, java.security.KeyStoreException;
- method public void addCertPathChecker(java.security.cert.PKIXCertPathChecker);
- method public void addCertStore(java.security.cert.CertStore);
- method public Object clone();
- method public java.util.List<java.security.cert.PKIXCertPathChecker> getCertPathCheckers();
- method public java.util.List<java.security.cert.CertStore> getCertStores();
- method public java.util.Date getDate();
- method public java.util.Set<java.lang.String> getInitialPolicies();
- method public boolean getPolicyQualifiersRejected();
- method public String getSigProvider();
- method public java.security.cert.CertSelector getTargetCertConstraints();
- method public java.util.Set<java.security.cert.TrustAnchor> getTrustAnchors();
- method public boolean isAnyPolicyInhibited();
- method public boolean isExplicitPolicyRequired();
- method public boolean isPolicyMappingInhibited();
- method public boolean isRevocationEnabled();
- method public void setAnyPolicyInhibited(boolean);
- method public void setCertPathCheckers(java.util.List<java.security.cert.PKIXCertPathChecker>);
- method public void setCertStores(java.util.List<java.security.cert.CertStore>);
- method public void setDate(java.util.Date);
- method public void setExplicitPolicyRequired(boolean);
- method public void setInitialPolicies(java.util.Set<java.lang.String>);
- method public void setPolicyMappingInhibited(boolean);
- method public void setPolicyQualifiersRejected(boolean);
- method public void setRevocationEnabled(boolean);
- method public void setSigProvider(String);
- method public void setTargetCertConstraints(java.security.cert.CertSelector);
- method public void setTrustAnchors(java.util.Set<java.security.cert.TrustAnchor>) throws java.security.InvalidAlgorithmParameterException;
- }
-
- public enum PKIXReason implements java.security.cert.CertPathValidatorException.Reason {
- enum_constant public static final java.security.cert.PKIXReason INVALID_KEY_USAGE;
- enum_constant public static final java.security.cert.PKIXReason INVALID_NAME;
- enum_constant public static final java.security.cert.PKIXReason INVALID_POLICY;
- enum_constant public static final java.security.cert.PKIXReason NAME_CHAINING;
- enum_constant public static final java.security.cert.PKIXReason NOT_CA_CERT;
- enum_constant public static final java.security.cert.PKIXReason NO_TRUST_ANCHOR;
- enum_constant public static final java.security.cert.PKIXReason PATH_TOO_LONG;
- enum_constant public static final java.security.cert.PKIXReason UNRECOGNIZED_CRIT_EXT;
- }
-
- public abstract class PKIXRevocationChecker extends java.security.cert.PKIXCertPathChecker {
- ctor protected PKIXRevocationChecker();
- method public java.security.cert.PKIXRevocationChecker clone();
- method public java.util.List<java.security.cert.Extension> getOcspExtensions();
- method public java.net.URI getOcspResponder();
- method public java.security.cert.X509Certificate getOcspResponderCert();
- method public java.util.Map<java.security.cert.X509Certificate,byte[]> getOcspResponses();
- method public java.util.Set<java.security.cert.PKIXRevocationChecker.Option> getOptions();
- method public abstract java.util.List<java.security.cert.CertPathValidatorException> getSoftFailExceptions();
- method public void setOcspExtensions(java.util.List<java.security.cert.Extension>);
- method public void setOcspResponder(java.net.URI);
- method public void setOcspResponderCert(java.security.cert.X509Certificate);
- method public void setOcspResponses(java.util.Map<java.security.cert.X509Certificate,byte[]>);
- method public void setOptions(java.util.Set<java.security.cert.PKIXRevocationChecker.Option>);
- }
-
- public enum PKIXRevocationChecker.Option {
- enum_constant public static final java.security.cert.PKIXRevocationChecker.Option NO_FALLBACK;
- enum_constant public static final java.security.cert.PKIXRevocationChecker.Option ONLY_END_ENTITY;
- enum_constant public static final java.security.cert.PKIXRevocationChecker.Option PREFER_CRLS;
- enum_constant public static final java.security.cert.PKIXRevocationChecker.Option SOFT_FAIL;
- }
-
- public interface PolicyNode {
- method public java.util.Iterator<? extends java.security.cert.PolicyNode> getChildren();
- method public int getDepth();
- method public java.util.Set<java.lang.String> getExpectedPolicies();
- method public java.security.cert.PolicyNode getParent();
- method public java.util.Set<? extends java.security.cert.PolicyQualifierInfo> getPolicyQualifiers();
- method public String getValidPolicy();
- method public boolean isCritical();
- }
-
- public class PolicyQualifierInfo {
- ctor public PolicyQualifierInfo(byte[]) throws java.io.IOException;
- method public final byte[] getEncoded();
- method public final byte[] getPolicyQualifier();
- method public final String getPolicyQualifierId();
- }
-
- public class TrustAnchor {
- ctor public TrustAnchor(java.security.cert.X509Certificate, byte[]);
- ctor public TrustAnchor(javax.security.auth.x500.X500Principal, java.security.PublicKey, byte[]);
- ctor public TrustAnchor(String, java.security.PublicKey, byte[]);
- method public final javax.security.auth.x500.X500Principal getCA();
- method public final String getCAName();
- method public final java.security.PublicKey getCAPublicKey();
- method public final byte[] getNameConstraints();
- method public final java.security.cert.X509Certificate getTrustedCert();
- }
-
- public abstract class X509CRL extends java.security.cert.CRL implements java.security.cert.X509Extension {
- ctor protected X509CRL();
- method public abstract byte[] getEncoded() throws java.security.cert.CRLException;
- method public abstract java.security.Principal getIssuerDN();
- method public javax.security.auth.x500.X500Principal getIssuerX500Principal();
- method public abstract java.util.Date getNextUpdate();
- method public abstract java.security.cert.X509CRLEntry getRevokedCertificate(java.math.BigInteger);
- method public java.security.cert.X509CRLEntry getRevokedCertificate(java.security.cert.X509Certificate);
- method public abstract java.util.Set<? extends java.security.cert.X509CRLEntry> getRevokedCertificates();
- method public abstract String getSigAlgName();
- method public abstract String getSigAlgOID();
- method public abstract byte[] getSigAlgParams();
- method public abstract byte[] getSignature();
- method public abstract byte[] getTBSCertList() throws java.security.cert.CRLException;
- method public abstract java.util.Date getThisUpdate();
- method public abstract int getVersion();
- method public abstract void verify(java.security.PublicKey) throws java.security.cert.CRLException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, java.security.SignatureException;
- method public abstract void verify(java.security.PublicKey, String) throws java.security.cert.CRLException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, java.security.SignatureException;
- method public void verify(java.security.PublicKey, java.security.Provider) throws java.security.cert.CRLException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, java.security.SignatureException;
- }
-
- public abstract class X509CRLEntry implements java.security.cert.X509Extension {
- ctor public X509CRLEntry();
- method public javax.security.auth.x500.X500Principal getCertificateIssuer();
- method public abstract byte[] getEncoded() throws java.security.cert.CRLException;
- method public abstract java.util.Date getRevocationDate();
- method public java.security.cert.CRLReason getRevocationReason();
- method public abstract java.math.BigInteger getSerialNumber();
- method public abstract boolean hasExtensions();
- method public abstract String toString();
- }
-
- public class X509CRLSelector implements java.security.cert.CRLSelector {
- ctor public X509CRLSelector();
- method public void addIssuer(javax.security.auth.x500.X500Principal);
- method public void addIssuerName(String) throws java.io.IOException;
- method public void addIssuerName(byte[]) throws java.io.IOException;
- method public Object clone();
- method public java.security.cert.X509Certificate getCertificateChecking();
- method public java.util.Date getDateAndTime();
- method public java.util.Collection<java.lang.Object> getIssuerNames();
- method public java.util.Collection<javax.security.auth.x500.X500Principal> getIssuers();
- method public java.math.BigInteger getMaxCRL();
- method public java.math.BigInteger getMinCRL();
- method public boolean match(java.security.cert.CRL);
- method public void setCertificateChecking(java.security.cert.X509Certificate);
- method public void setDateAndTime(java.util.Date);
- method public void setIssuerNames(java.util.Collection<?>) throws java.io.IOException;
- method public void setIssuers(java.util.Collection<javax.security.auth.x500.X500Principal>);
- method public void setMaxCRLNumber(java.math.BigInteger);
- method public void setMinCRLNumber(java.math.BigInteger);
- }
-
- public class X509CertSelector implements java.security.cert.CertSelector {
- ctor public X509CertSelector();
- method public void addPathToName(int, String) throws java.io.IOException;
- method public void addPathToName(int, byte[]) throws java.io.IOException;
- method public void addSubjectAlternativeName(int, String) throws java.io.IOException;
- method public void addSubjectAlternativeName(int, byte[]) throws java.io.IOException;
- method public Object clone();
- method public byte[] getAuthorityKeyIdentifier();
- method public int getBasicConstraints();
- method public java.security.cert.X509Certificate getCertificate();
- method public java.util.Date getCertificateValid();
- method public java.util.Set<java.lang.String> getExtendedKeyUsage();
- method public javax.security.auth.x500.X500Principal getIssuer();
- method public byte[] getIssuerAsBytes() throws java.io.IOException;
- method public String getIssuerAsString();
- method public boolean[] getKeyUsage();
- method public boolean getMatchAllSubjectAltNames();
- method public byte[] getNameConstraints();
- method public java.util.Collection<java.util.List<?>> getPathToNames();
- method public java.util.Set<java.lang.String> getPolicy();
- method public java.util.Date getPrivateKeyValid();
- method public java.math.BigInteger getSerialNumber();
- method public javax.security.auth.x500.X500Principal getSubject();
- method public java.util.Collection<java.util.List<?>> getSubjectAlternativeNames();
- method public byte[] getSubjectAsBytes() throws java.io.IOException;
- method public String getSubjectAsString();
- method public byte[] getSubjectKeyIdentifier();
- method public java.security.PublicKey getSubjectPublicKey();
- method public String getSubjectPublicKeyAlgID();
- method public boolean match(java.security.cert.Certificate);
- method public void setAuthorityKeyIdentifier(byte[]);
- method public void setBasicConstraints(int);
- method public void setCertificate(java.security.cert.X509Certificate);
- method public void setCertificateValid(java.util.Date);
- method public void setExtendedKeyUsage(java.util.Set<java.lang.String>) throws java.io.IOException;
- method public void setIssuer(javax.security.auth.x500.X500Principal);
- method public void setIssuer(String) throws java.io.IOException;
- method public void setIssuer(byte[]) throws java.io.IOException;
- method public void setKeyUsage(boolean[]);
- method public void setMatchAllSubjectAltNames(boolean);
- method public void setNameConstraints(byte[]) throws java.io.IOException;
- method public void setPathToNames(java.util.Collection<java.util.List<?>>) throws java.io.IOException;
- method public void setPolicy(java.util.Set<java.lang.String>) throws java.io.IOException;
- method public void setPrivateKeyValid(java.util.Date);
- method public void setSerialNumber(java.math.BigInteger);
- method public void setSubject(javax.security.auth.x500.X500Principal);
- method public void setSubject(String) throws java.io.IOException;
- method public void setSubject(byte[]) throws java.io.IOException;
- method public void setSubjectAlternativeNames(java.util.Collection<java.util.List<?>>) throws java.io.IOException;
- method public void setSubjectKeyIdentifier(byte[]);
- method public void setSubjectPublicKey(java.security.PublicKey);
- method public void setSubjectPublicKey(byte[]) throws java.io.IOException;
- method public void setSubjectPublicKeyAlgID(String) throws java.io.IOException;
- }
-
- public abstract class X509Certificate extends java.security.cert.Certificate implements java.security.cert.X509Extension {
- ctor protected X509Certificate();
- method public abstract void checkValidity() throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException;
- method public abstract void checkValidity(java.util.Date) throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException;
- method public abstract int getBasicConstraints();
- method public java.util.List<java.lang.String> getExtendedKeyUsage() throws java.security.cert.CertificateParsingException;
- method public java.util.Collection<java.util.List<?>> getIssuerAlternativeNames() throws java.security.cert.CertificateParsingException;
- method public abstract java.security.Principal getIssuerDN();
- method public abstract boolean[] getIssuerUniqueID();
- method public javax.security.auth.x500.X500Principal getIssuerX500Principal();
- method public abstract boolean[] getKeyUsage();
- method public abstract java.util.Date getNotAfter();
- method public abstract java.util.Date getNotBefore();
- method public abstract java.math.BigInteger getSerialNumber();
- method public abstract String getSigAlgName();
- method public abstract String getSigAlgOID();
- method public abstract byte[] getSigAlgParams();
- method public abstract byte[] getSignature();
- method public java.util.Collection<java.util.List<?>> getSubjectAlternativeNames() throws java.security.cert.CertificateParsingException;
- method public abstract java.security.Principal getSubjectDN();
- method public abstract boolean[] getSubjectUniqueID();
- method public javax.security.auth.x500.X500Principal getSubjectX500Principal();
- method public abstract byte[] getTBSCertificate() throws java.security.cert.CertificateEncodingException;
- method public abstract int getVersion();
- }
-
- public interface X509Extension {
- method public java.util.Set<java.lang.String> getCriticalExtensionOIDs();
- method public byte[] getExtensionValue(String);
- method public java.util.Set<java.lang.String> getNonCriticalExtensionOIDs();
- method public boolean hasUnsupportedCriticalExtension();
- }
-
-}
-
-package java.security.interfaces {
-
- public interface DSAKey {
- method public java.security.interfaces.DSAParams getParams();
- }
-
- public interface DSAKeyPairGenerator {
- method public void initialize(java.security.interfaces.DSAParams, java.security.SecureRandom) throws java.security.InvalidParameterException;
- method public void initialize(int, boolean, java.security.SecureRandom) throws java.security.InvalidParameterException;
- }
-
- public interface DSAParams {
- method public java.math.BigInteger getG();
- method public java.math.BigInteger getP();
- method public java.math.BigInteger getQ();
- }
-
- public interface DSAPrivateKey extends java.security.interfaces.DSAKey java.security.PrivateKey {
- method public java.math.BigInteger getX();
- field public static final long serialVersionUID = 7776497482533790279L; // 0x6bebab423b256247L
- }
-
- public interface DSAPublicKey extends java.security.interfaces.DSAKey java.security.PublicKey {
- method public java.math.BigInteger getY();
- field public static final long serialVersionUID = 1234526332779022332L; // 0x1121eb28ab28c7fcL
- }
-
- public interface ECKey {
- method public java.security.spec.ECParameterSpec getParams();
- }
-
- public interface ECPrivateKey extends java.security.PrivateKey java.security.interfaces.ECKey {
- method public java.math.BigInteger getS();
- field public static final long serialVersionUID = -7896394956925609184L; // 0x926a5e9fa2435b20L
- }
-
- public interface ECPublicKey extends java.security.PublicKey java.security.interfaces.ECKey {
- method public java.security.spec.ECPoint getW();
- field public static final long serialVersionUID = -3314988629879632826L; // 0xd1fecb679990cc46L
- }
-
- public interface RSAKey {
- method public java.math.BigInteger getModulus();
- }
-
- public interface RSAMultiPrimePrivateCrtKey extends java.security.interfaces.RSAPrivateKey {
- method public java.math.BigInteger getCrtCoefficient();
- method public java.security.spec.RSAOtherPrimeInfo[] getOtherPrimeInfo();
- method public java.math.BigInteger getPrimeExponentP();
- method public java.math.BigInteger getPrimeExponentQ();
- method public java.math.BigInteger getPrimeP();
- method public java.math.BigInteger getPrimeQ();
- method public java.math.BigInteger getPublicExponent();
- field public static final long serialVersionUID = 618058533534628008L; // 0x893c8f62dbaf8a8L
- }
-
- public interface RSAPrivateCrtKey extends java.security.interfaces.RSAPrivateKey {
- method public java.math.BigInteger getCrtCoefficient();
- method public java.math.BigInteger getPrimeExponentP();
- method public java.math.BigInteger getPrimeExponentQ();
- method public java.math.BigInteger getPrimeP();
- method public java.math.BigInteger getPrimeQ();
- method public java.math.BigInteger getPublicExponent();
- field public static final long serialVersionUID = -5682214253527700368L; // 0xb124b83df8d1ec70L
- }
-
- public interface RSAPrivateKey extends java.security.PrivateKey java.security.interfaces.RSAKey {
- method public java.math.BigInteger getPrivateExponent();
- field public static final long serialVersionUID = 5187144804936595022L; // 0x47fc70b7a8c2364eL
- }
-
- public interface RSAPublicKey extends java.security.PublicKey java.security.interfaces.RSAKey {
- method public java.math.BigInteger getPublicExponent();
- field public static final long serialVersionUID = -8727434096241101194L; // 0x86e1ecedeceab676L
- }
-
-}
-
-package java.security.spec {
-
- public interface AlgorithmParameterSpec {
- }
-
- public class DSAParameterSpec implements java.security.spec.AlgorithmParameterSpec java.security.interfaces.DSAParams {
- ctor public DSAParameterSpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger);
- method public java.math.BigInteger getG();
- method public java.math.BigInteger getP();
- method public java.math.BigInteger getQ();
- }
-
- public class DSAPrivateKeySpec implements java.security.spec.KeySpec {
- ctor public DSAPrivateKeySpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger);
- method public java.math.BigInteger getG();
- method public java.math.BigInteger getP();
- method public java.math.BigInteger getQ();
- method public java.math.BigInteger getX();
- }
-
- public class DSAPublicKeySpec implements java.security.spec.KeySpec {
- ctor public DSAPublicKeySpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger);
- method public java.math.BigInteger getG();
- method public java.math.BigInteger getP();
- method public java.math.BigInteger getQ();
- method public java.math.BigInteger getY();
- }
-
- public interface ECField {
- method public int getFieldSize();
- }
-
- public class ECFieldF2m implements java.security.spec.ECField {
- ctor public ECFieldF2m(int);
- ctor public ECFieldF2m(int, java.math.BigInteger);
- ctor public ECFieldF2m(int, int[]);
- method public int getFieldSize();
- method public int getM();
- method public int[] getMidTermsOfReductionPolynomial();
- method public java.math.BigInteger getReductionPolynomial();
- }
-
- public class ECFieldFp implements java.security.spec.ECField {
- ctor public ECFieldFp(java.math.BigInteger);
- method public int getFieldSize();
- method public java.math.BigInteger getP();
- }
-
- public class ECGenParameterSpec implements java.security.spec.AlgorithmParameterSpec {
- ctor public ECGenParameterSpec(String);
- method public String getName();
- }
-
- public class ECParameterSpec implements java.security.spec.AlgorithmParameterSpec {
- ctor public ECParameterSpec(java.security.spec.EllipticCurve, java.security.spec.ECPoint, java.math.BigInteger, int);
- method public int getCofactor();
- method public java.security.spec.EllipticCurve getCurve();
- method public java.security.spec.ECPoint getGenerator();
- method public java.math.BigInteger getOrder();
- }
-
- public class ECPoint {
- ctor public ECPoint(java.math.BigInteger, java.math.BigInteger);
- method public java.math.BigInteger getAffineX();
- method public java.math.BigInteger getAffineY();
- field public static final java.security.spec.ECPoint POINT_INFINITY;
- }
-
- public class ECPrivateKeySpec implements java.security.spec.KeySpec {
- ctor public ECPrivateKeySpec(java.math.BigInteger, java.security.spec.ECParameterSpec);
- method public java.security.spec.ECParameterSpec getParams();
- method public java.math.BigInteger getS();
- }
-
- public class ECPublicKeySpec implements java.security.spec.KeySpec {
- ctor public ECPublicKeySpec(java.security.spec.ECPoint, java.security.spec.ECParameterSpec);
- method public java.security.spec.ECParameterSpec getParams();
- method public java.security.spec.ECPoint getW();
- }
-
- public class EllipticCurve {
- ctor public EllipticCurve(java.security.spec.ECField, java.math.BigInteger, java.math.BigInteger);
- ctor public EllipticCurve(java.security.spec.ECField, java.math.BigInteger, java.math.BigInteger, byte[]);
- method public java.math.BigInteger getA();
- method public java.math.BigInteger getB();
- method public java.security.spec.ECField getField();
- method public byte[] getSeed();
- }
-
- public abstract class EncodedKeySpec implements java.security.spec.KeySpec {
- ctor public EncodedKeySpec(byte[]);
- method public byte[] getEncoded();
- method public abstract String getFormat();
- }
-
- public class InvalidKeySpecException extends java.security.GeneralSecurityException {
- ctor public InvalidKeySpecException();
- ctor public InvalidKeySpecException(String);
- ctor public InvalidKeySpecException(String, Throwable);
- ctor public InvalidKeySpecException(Throwable);
- }
-
- public class InvalidParameterSpecException extends java.security.GeneralSecurityException {
- ctor public InvalidParameterSpecException();
- ctor public InvalidParameterSpecException(String);
- }
-
- public interface KeySpec {
- }
-
- public class MGF1ParameterSpec implements java.security.spec.AlgorithmParameterSpec {
- ctor public MGF1ParameterSpec(String);
- method public String getDigestAlgorithm();
- field public static final java.security.spec.MGF1ParameterSpec SHA1;
- field public static final java.security.spec.MGF1ParameterSpec SHA224;
- field public static final java.security.spec.MGF1ParameterSpec SHA256;
- field public static final java.security.spec.MGF1ParameterSpec SHA384;
- field public static final java.security.spec.MGF1ParameterSpec SHA512;
- }
-
- public class PKCS8EncodedKeySpec extends java.security.spec.EncodedKeySpec {
- ctor public PKCS8EncodedKeySpec(byte[]);
- method public final String getFormat();
- }
-
- public class PSSParameterSpec implements java.security.spec.AlgorithmParameterSpec {
- ctor public PSSParameterSpec(String, String, java.security.spec.AlgorithmParameterSpec, int, int);
- ctor public PSSParameterSpec(int);
- method public String getDigestAlgorithm();
- method public String getMGFAlgorithm();
- method public java.security.spec.AlgorithmParameterSpec getMGFParameters();
- method public int getSaltLength();
- method public int getTrailerField();
- field public static final java.security.spec.PSSParameterSpec DEFAULT;
- }
-
- public class RSAKeyGenParameterSpec implements java.security.spec.AlgorithmParameterSpec {
- ctor public RSAKeyGenParameterSpec(int, java.math.BigInteger);
- method public int getKeysize();
- method public java.math.BigInteger getPublicExponent();
- field public static final java.math.BigInteger F0;
- field public static final java.math.BigInteger F4;
- }
-
- public class RSAMultiPrimePrivateCrtKeySpec extends java.security.spec.RSAPrivateKeySpec {
- ctor public RSAMultiPrimePrivateCrtKeySpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.security.spec.RSAOtherPrimeInfo[]);
- method public java.math.BigInteger getCrtCoefficient();
- method public java.security.spec.RSAOtherPrimeInfo[] getOtherPrimeInfo();
- method public java.math.BigInteger getPrimeExponentP();
- method public java.math.BigInteger getPrimeExponentQ();
- method public java.math.BigInteger getPrimeP();
- method public java.math.BigInteger getPrimeQ();
- method public java.math.BigInteger getPublicExponent();
- }
-
- public class RSAOtherPrimeInfo {
- ctor public RSAOtherPrimeInfo(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger);
- method public final java.math.BigInteger getCrtCoefficient();
- method public final java.math.BigInteger getExponent();
- method public final java.math.BigInteger getPrime();
- }
-
- public class RSAPrivateCrtKeySpec extends java.security.spec.RSAPrivateKeySpec {
- ctor public RSAPrivateCrtKeySpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger);
- method public java.math.BigInteger getCrtCoefficient();
- method public java.math.BigInteger getPrimeExponentP();
- method public java.math.BigInteger getPrimeExponentQ();
- method public java.math.BigInteger getPrimeP();
- method public java.math.BigInteger getPrimeQ();
- method public java.math.BigInteger getPublicExponent();
- }
-
- public class RSAPrivateKeySpec implements java.security.spec.KeySpec {
- ctor public RSAPrivateKeySpec(java.math.BigInteger, java.math.BigInteger);
- method public java.math.BigInteger getModulus();
- method public java.math.BigInteger getPrivateExponent();
- }
-
- public class RSAPublicKeySpec implements java.security.spec.KeySpec {
- ctor public RSAPublicKeySpec(java.math.BigInteger, java.math.BigInteger);
- method public java.math.BigInteger getModulus();
- method public java.math.BigInteger getPublicExponent();
- }
-
- public class X509EncodedKeySpec extends java.security.spec.EncodedKeySpec {
- ctor public X509EncodedKeySpec(byte[]);
- method public final String getFormat();
- }
-
-}
-
-package java.sql {
-
- public interface Array {
- method public void free() throws java.sql.SQLException;
- method public Object getArray() throws java.sql.SQLException;
- method public Object getArray(java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
- method public Object getArray(long, int) throws java.sql.SQLException;
- method public Object getArray(long, int, java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
- method public int getBaseType() throws java.sql.SQLException;
- method public String getBaseTypeName() throws java.sql.SQLException;
- method public java.sql.ResultSet getResultSet() throws java.sql.SQLException;
- method public java.sql.ResultSet getResultSet(java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
- method public java.sql.ResultSet getResultSet(long, int) throws java.sql.SQLException;
- method public java.sql.ResultSet getResultSet(long, int, java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
- }
-
- public class BatchUpdateException extends java.sql.SQLException {
- ctor public BatchUpdateException(String, String, int, int[]);
- ctor public BatchUpdateException(String, String, int[]);
- ctor public BatchUpdateException(String, int[]);
- ctor public BatchUpdateException(int[]);
- ctor public BatchUpdateException();
- ctor public BatchUpdateException(Throwable);
- ctor public BatchUpdateException(int[], Throwable);
- ctor public BatchUpdateException(String, int[], Throwable);
- ctor public BatchUpdateException(String, String, int[], Throwable);
- ctor public BatchUpdateException(String, String, int, int[], Throwable);
- method public int[] getUpdateCounts();
- }
-
- public interface Blob {
- method public void free() throws java.sql.SQLException;
- method public java.io.InputStream getBinaryStream() throws java.sql.SQLException;
- method public java.io.InputStream getBinaryStream(long, long) throws java.sql.SQLException;
- method public byte[] getBytes(long, int) throws java.sql.SQLException;
- method public long length() throws java.sql.SQLException;
- method public long position(byte[], long) throws java.sql.SQLException;
- method public long position(java.sql.Blob, long) throws java.sql.SQLException;
- method public java.io.OutputStream setBinaryStream(long) throws java.sql.SQLException;
- method public int setBytes(long, byte[]) throws java.sql.SQLException;
- method public int setBytes(long, byte[], int, int) throws java.sql.SQLException;
- method public void truncate(long) throws java.sql.SQLException;
- }
-
- public interface CallableStatement extends java.sql.PreparedStatement {
- method public java.sql.Array getArray(int) throws java.sql.SQLException;
- method public java.sql.Array getArray(String) throws java.sql.SQLException;
- method @Deprecated public java.math.BigDecimal getBigDecimal(int, int) throws java.sql.SQLException;
- method public java.math.BigDecimal getBigDecimal(int) throws java.sql.SQLException;
- method public java.math.BigDecimal getBigDecimal(String) throws java.sql.SQLException;
- method public java.sql.Blob getBlob(int) throws java.sql.SQLException;
- method public java.sql.Blob getBlob(String) throws java.sql.SQLException;
- method public boolean getBoolean(int) throws java.sql.SQLException;
- method public boolean getBoolean(String) throws java.sql.SQLException;
- method public byte getByte(int) throws java.sql.SQLException;
- method public byte getByte(String) throws java.sql.SQLException;
- method public byte[] getBytes(int) throws java.sql.SQLException;
- method public byte[] getBytes(String) throws java.sql.SQLException;
- method public java.io.Reader getCharacterStream(int) throws java.sql.SQLException;
- method public java.io.Reader getCharacterStream(String) throws java.sql.SQLException;
- method public java.sql.Clob getClob(int) throws java.sql.SQLException;
- method public java.sql.Clob getClob(String) throws java.sql.SQLException;
- method public java.sql.Date getDate(int) throws java.sql.SQLException;
- method public java.sql.Date getDate(int, java.util.Calendar) throws java.sql.SQLException;
- method public java.sql.Date getDate(String) throws java.sql.SQLException;
- method public java.sql.Date getDate(String, java.util.Calendar) throws java.sql.SQLException;
- method public double getDouble(int) throws java.sql.SQLException;
- method public double getDouble(String) throws java.sql.SQLException;
- method public float getFloat(int) throws java.sql.SQLException;
- method public float getFloat(String) throws java.sql.SQLException;
- method public int getInt(int) throws java.sql.SQLException;
- method public int getInt(String) throws java.sql.SQLException;
- method public long getLong(int) throws java.sql.SQLException;
- method public long getLong(String) throws java.sql.SQLException;
- method public java.io.Reader getNCharacterStream(int) throws java.sql.SQLException;
- method public java.io.Reader getNCharacterStream(String) throws java.sql.SQLException;
- method public java.sql.NClob getNClob(int) throws java.sql.SQLException;
- method public java.sql.NClob getNClob(String) throws java.sql.SQLException;
- method public String getNString(int) throws java.sql.SQLException;
- method public String getNString(String) throws java.sql.SQLException;
- method public Object getObject(int) throws java.sql.SQLException;
- method public Object getObject(int, java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
- method public Object getObject(String) throws java.sql.SQLException;
- method public Object getObject(String, java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
- method public java.sql.Ref getRef(int) throws java.sql.SQLException;
- method public java.sql.Ref getRef(String) throws java.sql.SQLException;
- method public java.sql.RowId getRowId(int) throws java.sql.SQLException;
- method public java.sql.RowId getRowId(String) throws java.sql.SQLException;
- method public java.sql.SQLXML getSQLXML(int) throws java.sql.SQLException;
- method public java.sql.SQLXML getSQLXML(String) throws java.sql.SQLException;
- method public short getShort(int) throws java.sql.SQLException;
- method public short getShort(String) throws java.sql.SQLException;
- method public String getString(int) throws java.sql.SQLException;
- method public String getString(String) throws java.sql.SQLException;
- method public java.sql.Time getTime(int) throws java.sql.SQLException;
- method public java.sql.Time getTime(int, java.util.Calendar) throws java.sql.SQLException;
- method public java.sql.Time getTime(String) throws java.sql.SQLException;
- method public java.sql.Time getTime(String, java.util.Calendar) throws java.sql.SQLException;
- method public java.sql.Timestamp getTimestamp(int) throws java.sql.SQLException;
- method public java.sql.Timestamp getTimestamp(int, java.util.Calendar) throws java.sql.SQLException;
- method public java.sql.Timestamp getTimestamp(String) throws java.sql.SQLException;
- method public java.sql.Timestamp getTimestamp(String, java.util.Calendar) throws java.sql.SQLException;
- method public java.net.URL getURL(int) throws java.sql.SQLException;
- method public java.net.URL getURL(String) throws java.sql.SQLException;
- method public void registerOutParameter(int, int) throws java.sql.SQLException;
- method public void registerOutParameter(int, int, int) throws java.sql.SQLException;
- method public void registerOutParameter(int, int, String) throws java.sql.SQLException;
- method public void registerOutParameter(String, int) throws java.sql.SQLException;
- method public void registerOutParameter(String, int, int) throws java.sql.SQLException;
- method public void registerOutParameter(String, int, String) throws java.sql.SQLException;
- method public void setAsciiStream(String, java.io.InputStream, int) throws java.sql.SQLException;
- method public void setAsciiStream(String, java.io.InputStream, long) throws java.sql.SQLException;
- method public void setAsciiStream(String, java.io.InputStream) throws java.sql.SQLException;
- method public void setBigDecimal(String, java.math.BigDecimal) throws java.sql.SQLException;
- method public void setBinaryStream(String, java.io.InputStream, int) throws java.sql.SQLException;
- method public void setBinaryStream(String, java.io.InputStream, long) throws java.sql.SQLException;
- method public void setBinaryStream(String, java.io.InputStream) throws java.sql.SQLException;
- method public void setBlob(String, java.io.InputStream, long) throws java.sql.SQLException;
- method public void setBlob(String, java.sql.Blob) throws java.sql.SQLException;
- method public void setBlob(String, java.io.InputStream) throws java.sql.SQLException;
- method public void setBoolean(String, boolean) throws java.sql.SQLException;
- method public void setByte(String, byte) throws java.sql.SQLException;
- method public void setBytes(String, byte[]) throws java.sql.SQLException;
- method public void setCharacterStream(String, java.io.Reader, int) throws java.sql.SQLException;
- method public void setCharacterStream(String, java.io.Reader, long) throws java.sql.SQLException;
- method public void setCharacterStream(String, java.io.Reader) throws java.sql.SQLException;
- method public void setClob(String, java.io.Reader, long) throws java.sql.SQLException;
- method public void setClob(String, java.sql.Clob) throws java.sql.SQLException;
- method public void setClob(String, java.io.Reader) throws java.sql.SQLException;
- method public void setDate(String, java.sql.Date) throws java.sql.SQLException;
- method public void setDate(String, java.sql.Date, java.util.Calendar) throws java.sql.SQLException;
- method public void setDouble(String, double) throws java.sql.SQLException;
- method public void setFloat(String, float) throws java.sql.SQLException;
- method public void setInt(String, int) throws java.sql.SQLException;
- method public void setLong(String, long) throws java.sql.SQLException;
- method public void setNCharacterStream(String, java.io.Reader, long) throws java.sql.SQLException;
- method public void setNCharacterStream(String, java.io.Reader) throws java.sql.SQLException;
- method public void setNClob(String, java.sql.NClob) throws java.sql.SQLException;
- method public void setNClob(String, java.io.Reader, long) throws java.sql.SQLException;
- method public void setNClob(String, java.io.Reader) throws java.sql.SQLException;
- method public void setNString(String, String) throws java.sql.SQLException;
- method public void setNull(String, int) throws java.sql.SQLException;
- method public void setNull(String, int, String) throws java.sql.SQLException;
- method public void setObject(String, Object, int, int) throws java.sql.SQLException;
- method public void setObject(String, Object, int) throws java.sql.SQLException;
- method public void setObject(String, Object) throws java.sql.SQLException;
- method public void setRowId(String, java.sql.RowId) throws java.sql.SQLException;
- method public void setSQLXML(String, java.sql.SQLXML) throws java.sql.SQLException;
- method public void setShort(String, short) throws java.sql.SQLException;
- method public void setString(String, String) throws java.sql.SQLException;
- method public void setTime(String, java.sql.Time) throws java.sql.SQLException;
- method public void setTime(String, java.sql.Time, java.util.Calendar) throws java.sql.SQLException;
- method public void setTimestamp(String, java.sql.Timestamp) throws java.sql.SQLException;
- method public void setTimestamp(String, java.sql.Timestamp, java.util.Calendar) throws java.sql.SQLException;
- method public void setURL(String, java.net.URL) throws java.sql.SQLException;
- method public boolean wasNull() throws java.sql.SQLException;
- }
-
- public enum ClientInfoStatus {
- enum_constant public static final java.sql.ClientInfoStatus REASON_UNKNOWN;
- enum_constant public static final java.sql.ClientInfoStatus REASON_UNKNOWN_PROPERTY;
- enum_constant public static final java.sql.ClientInfoStatus REASON_VALUE_INVALID;
- enum_constant public static final java.sql.ClientInfoStatus REASON_VALUE_TRUNCATED;
- }
-
- public interface Clob {
- method public void free() throws java.sql.SQLException;
- method public java.io.InputStream getAsciiStream() throws java.sql.SQLException;
- method public java.io.Reader getCharacterStream() throws java.sql.SQLException;
- method public java.io.Reader getCharacterStream(long, long) throws java.sql.SQLException;
- method public String getSubString(long, int) throws java.sql.SQLException;
- method public long length() throws java.sql.SQLException;
- method public long position(String, long) throws java.sql.SQLException;
- method public long position(java.sql.Clob, long) throws java.sql.SQLException;
- method public java.io.OutputStream setAsciiStream(long) throws java.sql.SQLException;
- method public java.io.Writer setCharacterStream(long) throws java.sql.SQLException;
- method public int setString(long, String) throws java.sql.SQLException;
- method public int setString(long, String, int, int) throws java.sql.SQLException;
- method public void truncate(long) throws java.sql.SQLException;
- }
-
- public interface Connection extends java.sql.Wrapper java.lang.AutoCloseable {
- method public void clearWarnings() throws java.sql.SQLException;
- method public void close() throws java.sql.SQLException;
- method public void commit() throws java.sql.SQLException;
- method public java.sql.Array createArrayOf(String, Object[]) throws java.sql.SQLException;
- method public java.sql.Blob createBlob() throws java.sql.SQLException;
- method public java.sql.Clob createClob() throws java.sql.SQLException;
- method public java.sql.NClob createNClob() throws java.sql.SQLException;
- method public java.sql.SQLXML createSQLXML() throws java.sql.SQLException;
- method public java.sql.Statement createStatement() throws java.sql.SQLException;
- method public java.sql.Statement createStatement(int, int) throws java.sql.SQLException;
- method public java.sql.Statement createStatement(int, int, int) throws java.sql.SQLException;
- method public java.sql.Struct createStruct(String, Object[]) throws java.sql.SQLException;
- method public boolean getAutoCommit() throws java.sql.SQLException;
- method public String getCatalog() throws java.sql.SQLException;
- method public String getClientInfo(String) throws java.sql.SQLException;
- method public java.util.Properties getClientInfo() throws java.sql.SQLException;
- method public int getHoldability() throws java.sql.SQLException;
- method public java.sql.DatabaseMetaData getMetaData() throws java.sql.SQLException;
- method public int getTransactionIsolation() throws java.sql.SQLException;
- method public java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap() throws java.sql.SQLException;
- method public java.sql.SQLWarning getWarnings() throws java.sql.SQLException;
- method public boolean isClosed() throws java.sql.SQLException;
- method public boolean isReadOnly() throws java.sql.SQLException;
- method public boolean isValid(int) throws java.sql.SQLException;
- method public String nativeSQL(String) throws java.sql.SQLException;
- method public java.sql.CallableStatement prepareCall(String) throws java.sql.SQLException;
- method public java.sql.CallableStatement prepareCall(String, int, int) throws java.sql.SQLException;
- method public java.sql.CallableStatement prepareCall(String, int, int, int) throws java.sql.SQLException;
- method public java.sql.PreparedStatement prepareStatement(String) throws java.sql.SQLException;
- method public java.sql.PreparedStatement prepareStatement(String, int, int) throws java.sql.SQLException;
- method public java.sql.PreparedStatement prepareStatement(String, int, int, int) throws java.sql.SQLException;
- method public java.sql.PreparedStatement prepareStatement(String, int) throws java.sql.SQLException;
- method public java.sql.PreparedStatement prepareStatement(String, int[]) throws java.sql.SQLException;
- method public java.sql.PreparedStatement prepareStatement(String, String[]) throws java.sql.SQLException;
- method public void releaseSavepoint(java.sql.Savepoint) throws java.sql.SQLException;
- method public void rollback() throws java.sql.SQLException;
- method public void rollback(java.sql.Savepoint) throws java.sql.SQLException;
- method public void setAutoCommit(boolean) throws java.sql.SQLException;
- method public void setCatalog(String) throws java.sql.SQLException;
- method public void setClientInfo(String, String) throws java.sql.SQLClientInfoException;
- method public void setClientInfo(java.util.Properties) throws java.sql.SQLClientInfoException;
- method public void setHoldability(int) throws java.sql.SQLException;
- method public void setReadOnly(boolean) throws java.sql.SQLException;
- method public java.sql.Savepoint setSavepoint() throws java.sql.SQLException;
- method public java.sql.Savepoint setSavepoint(String) throws java.sql.SQLException;
- method public void setTransactionIsolation(int) throws java.sql.SQLException;
- method public void setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
- field public static final int TRANSACTION_NONE = 0; // 0x0
- field public static final int TRANSACTION_READ_COMMITTED = 2; // 0x2
- field public static final int TRANSACTION_READ_UNCOMMITTED = 1; // 0x1
- field public static final int TRANSACTION_REPEATABLE_READ = 4; // 0x4
- field public static final int TRANSACTION_SERIALIZABLE = 8; // 0x8
- }
-
- public class DataTruncation extends java.sql.SQLWarning {
- ctor public DataTruncation(int, boolean, boolean, int, int);
- ctor public DataTruncation(int, boolean, boolean, int, int, Throwable);
- method public int getDataSize();
- method public int getIndex();
- method public boolean getParameter();
- method public boolean getRead();
- method public int getTransferSize();
- }
-
- public interface DatabaseMetaData extends java.sql.Wrapper {
- method public boolean allProceduresAreCallable() throws java.sql.SQLException;
- method public boolean allTablesAreSelectable() throws java.sql.SQLException;
- method public boolean autoCommitFailureClosesAllResultSets() throws java.sql.SQLException;
- method public boolean dataDefinitionCausesTransactionCommit() throws java.sql.SQLException;
- method public boolean dataDefinitionIgnoredInTransactions() throws java.sql.SQLException;
- method public boolean deletesAreDetected(int) throws java.sql.SQLException;
- method public boolean doesMaxRowSizeIncludeBlobs() throws java.sql.SQLException;
- method public java.sql.ResultSet getAttributes(String, String, String, String) throws java.sql.SQLException;
- method public java.sql.ResultSet getBestRowIdentifier(String, String, String, int, boolean) throws java.sql.SQLException;
- method public String getCatalogSeparator() throws java.sql.SQLException;
- method public String getCatalogTerm() throws java.sql.SQLException;
- method public java.sql.ResultSet getCatalogs() throws java.sql.SQLException;
- method public java.sql.ResultSet getClientInfoProperties() throws java.sql.SQLException;
- method public java.sql.ResultSet getColumnPrivileges(String, String, String, String) throws java.sql.SQLException;
- method public java.sql.ResultSet getColumns(String, String, String, String) throws java.sql.SQLException;
- method public java.sql.Connection getConnection() throws java.sql.SQLException;
- method public java.sql.ResultSet getCrossReference(String, String, String, String, String, String) throws java.sql.SQLException;
- method public int getDatabaseMajorVersion() throws java.sql.SQLException;
- method public int getDatabaseMinorVersion() throws java.sql.SQLException;
- method public String getDatabaseProductName() throws java.sql.SQLException;
- method public String getDatabaseProductVersion() throws java.sql.SQLException;
- method public int getDefaultTransactionIsolation() throws java.sql.SQLException;
- method public int getDriverMajorVersion();
- method public int getDriverMinorVersion();
- method public String getDriverName() throws java.sql.SQLException;
- method public String getDriverVersion() throws java.sql.SQLException;
- method public java.sql.ResultSet getExportedKeys(String, String, String) throws java.sql.SQLException;
- method public String getExtraNameCharacters() throws java.sql.SQLException;
- method public java.sql.ResultSet getFunctionColumns(String, String, String, String) throws java.sql.SQLException;
- method public java.sql.ResultSet getFunctions(String, String, String) throws java.sql.SQLException;
- method public String getIdentifierQuoteString() throws java.sql.SQLException;
- method public java.sql.ResultSet getImportedKeys(String, String, String) throws java.sql.SQLException;
- method public java.sql.ResultSet getIndexInfo(String, String, String, boolean, boolean) throws java.sql.SQLException;
- method public int getJDBCMajorVersion() throws java.sql.SQLException;
- method public int getJDBCMinorVersion() throws java.sql.SQLException;
- method public int getMaxBinaryLiteralLength() throws java.sql.SQLException;
- method public int getMaxCatalogNameLength() throws java.sql.SQLException;
- method public int getMaxCharLiteralLength() throws java.sql.SQLException;
- method public int getMaxColumnNameLength() throws java.sql.SQLException;
- method public int getMaxColumnsInGroupBy() throws java.sql.SQLException;
- method public int getMaxColumnsInIndex() throws java.sql.SQLException;
- method public int getMaxColumnsInOrderBy() throws java.sql.SQLException;
- method public int getMaxColumnsInSelect() throws java.sql.SQLException;
- method public int getMaxColumnsInTable() throws java.sql.SQLException;
- method public int getMaxConnections() throws java.sql.SQLException;
- method public int getMaxCursorNameLength() throws java.sql.SQLException;
- method public int getMaxIndexLength() throws java.sql.SQLException;
- method public int getMaxProcedureNameLength() throws java.sql.SQLException;
- method public int getMaxRowSize() throws java.sql.SQLException;
- method public int getMaxSchemaNameLength() throws java.sql.SQLException;
- method public int getMaxStatementLength() throws java.sql.SQLException;
- method public int getMaxStatements() throws java.sql.SQLException;
- method public int getMaxTableNameLength() throws java.sql.SQLException;
- method public int getMaxTablesInSelect() throws java.sql.SQLException;
- method public int getMaxUserNameLength() throws java.sql.SQLException;
- method public String getNumericFunctions() throws java.sql.SQLException;
- method public java.sql.ResultSet getPrimaryKeys(String, String, String) throws java.sql.SQLException;
- method public java.sql.ResultSet getProcedureColumns(String, String, String, String) throws java.sql.SQLException;
- method public String getProcedureTerm() throws java.sql.SQLException;
- method public java.sql.ResultSet getProcedures(String, String, String) throws java.sql.SQLException;
- method public int getResultSetHoldability() throws java.sql.SQLException;
- method public java.sql.RowIdLifetime getRowIdLifetime() throws java.sql.SQLException;
- method public String getSQLKeywords() throws java.sql.SQLException;
- method public int getSQLStateType() throws java.sql.SQLException;
- method public String getSchemaTerm() throws java.sql.SQLException;
- method public java.sql.ResultSet getSchemas() throws java.sql.SQLException;
- method public java.sql.ResultSet getSchemas(String, String) throws java.sql.SQLException;
- method public String getSearchStringEscape() throws java.sql.SQLException;
- method public String getStringFunctions() throws java.sql.SQLException;
- method public java.sql.ResultSet getSuperTables(String, String, String) throws java.sql.SQLException;
- method public java.sql.ResultSet getSuperTypes(String, String, String) throws java.sql.SQLException;
- method public String getSystemFunctions() throws java.sql.SQLException;
- method public java.sql.ResultSet getTablePrivileges(String, String, String) throws java.sql.SQLException;
- method public java.sql.ResultSet getTableTypes() throws java.sql.SQLException;
- method public java.sql.ResultSet getTables(String, String, String, String[]) throws java.sql.SQLException;
- method public String getTimeDateFunctions() throws java.sql.SQLException;
- method public java.sql.ResultSet getTypeInfo() throws java.sql.SQLException;
- method public java.sql.ResultSet getUDTs(String, String, String, int[]) throws java.sql.SQLException;
- method public String getURL() throws java.sql.SQLException;
- method public String getUserName() throws java.sql.SQLException;
- method public java.sql.ResultSet getVersionColumns(String, String, String) throws java.sql.SQLException;
- method public boolean insertsAreDetected(int) throws java.sql.SQLException;
- method public boolean isCatalogAtStart() throws java.sql.SQLException;
- method public boolean isReadOnly() throws java.sql.SQLException;
- method public boolean locatorsUpdateCopy() throws java.sql.SQLException;
- method public boolean nullPlusNonNullIsNull() throws java.sql.SQLException;
- method public boolean nullsAreSortedAtEnd() throws java.sql.SQLException;
- method public boolean nullsAreSortedAtStart() throws java.sql.SQLException;
- method public boolean nullsAreSortedHigh() throws java.sql.SQLException;
- method public boolean nullsAreSortedLow() throws java.sql.SQLException;
- method public boolean othersDeletesAreVisible(int) throws java.sql.SQLException;
- method public boolean othersInsertsAreVisible(int) throws java.sql.SQLException;
- method public boolean othersUpdatesAreVisible(int) throws java.sql.SQLException;
- method public boolean ownDeletesAreVisible(int) throws java.sql.SQLException;
- method public boolean ownInsertsAreVisible(int) throws java.sql.SQLException;
- method public boolean ownUpdatesAreVisible(int) throws java.sql.SQLException;
- method public boolean storesLowerCaseIdentifiers() throws java.sql.SQLException;
- method public boolean storesLowerCaseQuotedIdentifiers() throws java.sql.SQLException;
- method public boolean storesMixedCaseIdentifiers() throws java.sql.SQLException;
- method public boolean storesMixedCaseQuotedIdentifiers() throws java.sql.SQLException;
- method public boolean storesUpperCaseIdentifiers() throws java.sql.SQLException;
- method public boolean storesUpperCaseQuotedIdentifiers() throws java.sql.SQLException;
- method public boolean supportsANSI92EntryLevelSQL() throws java.sql.SQLException;
- method public boolean supportsANSI92FullSQL() throws java.sql.SQLException;
- method public boolean supportsANSI92IntermediateSQL() throws java.sql.SQLException;
- method public boolean supportsAlterTableWithAddColumn() throws java.sql.SQLException;
- method public boolean supportsAlterTableWithDropColumn() throws java.sql.SQLException;
- method public boolean supportsBatchUpdates() throws java.sql.SQLException;
- method public boolean supportsCatalogsInDataManipulation() throws java.sql.SQLException;
- method public boolean supportsCatalogsInIndexDefinitions() throws java.sql.SQLException;
- method public boolean supportsCatalogsInPrivilegeDefinitions() throws java.sql.SQLException;
- method public boolean supportsCatalogsInProcedureCalls() throws java.sql.SQLException;
- method public boolean supportsCatalogsInTableDefinitions() throws java.sql.SQLException;
- method public boolean supportsColumnAliasing() throws java.sql.SQLException;
- method public boolean supportsConvert() throws java.sql.SQLException;
- method public boolean supportsConvert(int, int) throws java.sql.SQLException;
- method public boolean supportsCoreSQLGrammar() throws java.sql.SQLException;
- method public boolean supportsCorrelatedSubqueries() throws java.sql.SQLException;
- method public boolean supportsDataDefinitionAndDataManipulationTransactions() throws java.sql.SQLException;
- method public boolean supportsDataManipulationTransactionsOnly() throws java.sql.SQLException;
- method public boolean supportsDifferentTableCorrelationNames() throws java.sql.SQLException;
- method public boolean supportsExpressionsInOrderBy() throws java.sql.SQLException;
- method public boolean supportsExtendedSQLGrammar() throws java.sql.SQLException;
- method public boolean supportsFullOuterJoins() throws java.sql.SQLException;
- method public boolean supportsGetGeneratedKeys() throws java.sql.SQLException;
- method public boolean supportsGroupBy() throws java.sql.SQLException;
- method public boolean supportsGroupByBeyondSelect() throws java.sql.SQLException;
- method public boolean supportsGroupByUnrelated() throws java.sql.SQLException;
- method public boolean supportsIntegrityEnhancementFacility() throws java.sql.SQLException;
- method public boolean supportsLikeEscapeClause() throws java.sql.SQLException;
- method public boolean supportsLimitedOuterJoins() throws java.sql.SQLException;
- method public boolean supportsMinimumSQLGrammar() throws java.sql.SQLException;
- method public boolean supportsMixedCaseIdentifiers() throws java.sql.SQLException;
- method public boolean supportsMixedCaseQuotedIdentifiers() throws java.sql.SQLException;
- method public boolean supportsMultipleOpenResults() throws java.sql.SQLException;
- method public boolean supportsMultipleResultSets() throws java.sql.SQLException;
- method public boolean supportsMultipleTransactions() throws java.sql.SQLException;
- method public boolean supportsNamedParameters() throws java.sql.SQLException;
- method public boolean supportsNonNullableColumns() throws java.sql.SQLException;
- method public boolean supportsOpenCursorsAcrossCommit() throws java.sql.SQLException;
- method public boolean supportsOpenCursorsAcrossRollback() throws java.sql.SQLException;
- method public boolean supportsOpenStatementsAcrossCommit() throws java.sql.SQLException;
- method public boolean supportsOpenStatementsAcrossRollback() throws java.sql.SQLException;
- method public boolean supportsOrderByUnrelated() throws java.sql.SQLException;
- method public boolean supportsOuterJoins() throws java.sql.SQLException;
- method public boolean supportsPositionedDelete() throws java.sql.SQLException;
- method public boolean supportsPositionedUpdate() throws java.sql.SQLException;
- method public boolean supportsResultSetConcurrency(int, int) throws java.sql.SQLException;
- method public boolean supportsResultSetHoldability(int) throws java.sql.SQLException;
- method public boolean supportsResultSetType(int) throws java.sql.SQLException;
- method public boolean supportsSavepoints() throws java.sql.SQLException;
- method public boolean supportsSchemasInDataManipulation() throws java.sql.SQLException;
- method public boolean supportsSchemasInIndexDefinitions() throws java.sql.SQLException;
- method public boolean supportsSchemasInPrivilegeDefinitions() throws java.sql.SQLException;
- method public boolean supportsSchemasInProcedureCalls() throws java.sql.SQLException;
- method public boolean supportsSchemasInTableDefinitions() throws java.sql.SQLException;
- method public boolean supportsSelectForUpdate() throws java.sql.SQLException;
- method public boolean supportsStatementPooling() throws java.sql.SQLException;
- method public boolean supportsStoredFunctionsUsingCallSyntax() throws java.sql.SQLException;
- method public boolean supportsStoredProcedures() throws java.sql.SQLException;
- method public boolean supportsSubqueriesInComparisons() throws java.sql.SQLException;
- method public boolean supportsSubqueriesInExists() throws java.sql.SQLException;
- method public boolean supportsSubqueriesInIns() throws java.sql.SQLException;
- method public boolean supportsSubqueriesInQuantifieds() throws java.sql.SQLException;
- method public boolean supportsTableCorrelationNames() throws java.sql.SQLException;
- method public boolean supportsTransactionIsolationLevel(int) throws java.sql.SQLException;
- method public boolean supportsTransactions() throws java.sql.SQLException;
- method public boolean supportsUnion() throws java.sql.SQLException;
- method public boolean supportsUnionAll() throws java.sql.SQLException;
- method public boolean updatesAreDetected(int) throws java.sql.SQLException;
- method public boolean usesLocalFilePerTable() throws java.sql.SQLException;
- method public boolean usesLocalFiles() throws java.sql.SQLException;
- field public static final short attributeNoNulls = 0; // 0x0
- field public static final short attributeNullable = 1; // 0x1
- field public static final short attributeNullableUnknown = 2; // 0x2
- field public static final int bestRowNotPseudo = 1; // 0x1
- field public static final int bestRowPseudo = 2; // 0x2
- field public static final int bestRowSession = 2; // 0x2
- field public static final int bestRowTemporary = 0; // 0x0
- field public static final int bestRowTransaction = 1; // 0x1
- field public static final int bestRowUnknown = 0; // 0x0
- field public static final int columnNoNulls = 0; // 0x0
- field public static final int columnNullable = 1; // 0x1
- field public static final int columnNullableUnknown = 2; // 0x2
- field public static final int functionColumnIn = 1; // 0x1
- field public static final int functionColumnInOut = 2; // 0x2
- field public static final int functionColumnOut = 3; // 0x3
- field public static final int functionColumnResult = 5; // 0x5
- field public static final int functionColumnUnknown = 0; // 0x0
- field public static final int functionNoNulls = 0; // 0x0
- field public static final int functionNoTable = 1; // 0x1
- field public static final int functionNullable = 1; // 0x1
- field public static final int functionNullableUnknown = 2; // 0x2
- field public static final int functionResultUnknown = 0; // 0x0
- field public static final int functionReturn = 4; // 0x4
- field public static final int functionReturnsTable = 2; // 0x2
- field public static final int importedKeyCascade = 0; // 0x0
- field public static final int importedKeyInitiallyDeferred = 5; // 0x5
- field public static final int importedKeyInitiallyImmediate = 6; // 0x6
- field public static final int importedKeyNoAction = 3; // 0x3
- field public static final int importedKeyNotDeferrable = 7; // 0x7
- field public static final int importedKeyRestrict = 1; // 0x1
- field public static final int importedKeySetDefault = 4; // 0x4
- field public static final int importedKeySetNull = 2; // 0x2
- field public static final int procedureColumnIn = 1; // 0x1
- field public static final int procedureColumnInOut = 2; // 0x2
- field public static final int procedureColumnOut = 4; // 0x4
- field public static final int procedureColumnResult = 3; // 0x3
- field public static final int procedureColumnReturn = 5; // 0x5
- field public static final int procedureColumnUnknown = 0; // 0x0
- field public static final int procedureNoNulls = 0; // 0x0
- field public static final int procedureNoResult = 1; // 0x1
- field public static final int procedureNullable = 1; // 0x1
- field public static final int procedureNullableUnknown = 2; // 0x2
- field public static final int procedureResultUnknown = 0; // 0x0
- field public static final int procedureReturnsResult = 2; // 0x2
- field public static final int sqlStateSQL = 2; // 0x2
- field public static final int sqlStateSQL99 = 2; // 0x2
- field public static final int sqlStateXOpen = 1; // 0x1
- field public static final short tableIndexClustered = 1; // 0x1
- field public static final short tableIndexHashed = 2; // 0x2
- field public static final short tableIndexOther = 3; // 0x3
- field public static final short tableIndexStatistic = 0; // 0x0
- field public static final int typeNoNulls = 0; // 0x0
- field public static final int typeNullable = 1; // 0x1
- field public static final int typeNullableUnknown = 2; // 0x2
- field public static final int typePredBasic = 2; // 0x2
- field public static final int typePredChar = 1; // 0x1
- field public static final int typePredNone = 0; // 0x0
- field public static final int typeSearchable = 3; // 0x3
- field public static final int versionColumnNotPseudo = 1; // 0x1
- field public static final int versionColumnPseudo = 2; // 0x2
- field public static final int versionColumnUnknown = 0; // 0x0
- }
-
- public class Date extends java.util.Date {
- ctor @Deprecated public Date(int, int, int);
- ctor public Date(long);
- method public static java.sql.Date valueOf(String);
- }
-
- public interface Driver {
- method public boolean acceptsURL(String) throws java.sql.SQLException;
- method public java.sql.Connection connect(String, java.util.Properties) throws java.sql.SQLException;
- method public int getMajorVersion();
- method public int getMinorVersion();
- method public java.sql.DriverPropertyInfo[] getPropertyInfo(String, java.util.Properties) throws java.sql.SQLException;
- method public boolean jdbcCompliant();
- }
-
- public class DriverManager {
- method public static void deregisterDriver(java.sql.Driver) throws java.sql.SQLException;
- method public static java.sql.Connection getConnection(String, java.util.Properties) throws java.sql.SQLException;
- method public static java.sql.Connection getConnection(String, String, String) throws java.sql.SQLException;
- method public static java.sql.Connection getConnection(String) throws java.sql.SQLException;
- method public static java.sql.Driver getDriver(String) throws java.sql.SQLException;
- method public static java.util.Enumeration<java.sql.Driver> getDrivers();
- method @Deprecated public static java.io.PrintStream getLogStream();
- method public static java.io.PrintWriter getLogWriter();
- method public static int getLoginTimeout();
- method public static void println(String);
- method public static void registerDriver(java.sql.Driver) throws java.sql.SQLException;
- method @Deprecated public static void setLogStream(java.io.PrintStream);
- method public static void setLogWriter(java.io.PrintWriter);
- method public static void setLoginTimeout(int);
- }
-
- public class DriverPropertyInfo {
- ctor public DriverPropertyInfo(String, String);
- field public String[] choices;
- field public String description;
- field public String name;
- field public boolean required;
- field public String value;
- }
-
- public interface NClob extends java.sql.Clob {
- }
-
- public interface ParameterMetaData extends java.sql.Wrapper {
- method public String getParameterClassName(int) throws java.sql.SQLException;
- method public int getParameterCount() throws java.sql.SQLException;
- method public int getParameterMode(int) throws java.sql.SQLException;
- method public int getParameterType(int) throws java.sql.SQLException;
- method public String getParameterTypeName(int) throws java.sql.SQLException;
- method public int getPrecision(int) throws java.sql.SQLException;
- method public int getScale(int) throws java.sql.SQLException;
- method public int isNullable(int) throws java.sql.SQLException;
- method public boolean isSigned(int) throws java.sql.SQLException;
- field public static final int parameterModeIn = 1; // 0x1
- field public static final int parameterModeInOut = 2; // 0x2
- field public static final int parameterModeOut = 4; // 0x4
- field public static final int parameterModeUnknown = 0; // 0x0
- field public static final int parameterNoNulls = 0; // 0x0
- field public static final int parameterNullable = 1; // 0x1
- field public static final int parameterNullableUnknown = 2; // 0x2
- }
-
- public interface PreparedStatement extends java.sql.Statement {
- method public void addBatch() throws java.sql.SQLException;
- method public void clearParameters() throws java.sql.SQLException;
- method public boolean execute() throws java.sql.SQLException;
- method public java.sql.ResultSet executeQuery() throws java.sql.SQLException;
- method public int executeUpdate() throws java.sql.SQLException;
- method public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException;
- method public java.sql.ParameterMetaData getParameterMetaData() throws java.sql.SQLException;
- method public void setArray(int, java.sql.Array) throws java.sql.SQLException;
- method public void setAsciiStream(int, java.io.InputStream, int) throws java.sql.SQLException;
- method public void setAsciiStream(int, java.io.InputStream, long) throws java.sql.SQLException;
- method public void setAsciiStream(int, java.io.InputStream) throws java.sql.SQLException;
- method public void setBigDecimal(int, java.math.BigDecimal) throws java.sql.SQLException;
- method public void setBinaryStream(int, java.io.InputStream, int) throws java.sql.SQLException;
- method public void setBinaryStream(int, java.io.InputStream, long) throws java.sql.SQLException;
- method public void setBinaryStream(int, java.io.InputStream) throws java.sql.SQLException;
- method public void setBlob(int, java.sql.Blob) throws java.sql.SQLException;
- method public void setBlob(int, java.io.InputStream, long) throws java.sql.SQLException;
- method public void setBlob(int, java.io.InputStream) throws java.sql.SQLException;
- method public void setBoolean(int, boolean) throws java.sql.SQLException;
- method public void setByte(int, byte) throws java.sql.SQLException;
- method public void setBytes(int, byte[]) throws java.sql.SQLException;
- method public void setCharacterStream(int, java.io.Reader, int) throws java.sql.SQLException;
- method public void setCharacterStream(int, java.io.Reader, long) throws java.sql.SQLException;
- method public void setCharacterStream(int, java.io.Reader) throws java.sql.SQLException;
- method public void setClob(int, java.sql.Clob) throws java.sql.SQLException;
- method public void setClob(int, java.io.Reader, long) throws java.sql.SQLException;
- method public void setClob(int, java.io.Reader) throws java.sql.SQLException;
- method public void setDate(int, java.sql.Date) throws java.sql.SQLException;
- method public void setDate(int, java.sql.Date, java.util.Calendar) throws java.sql.SQLException;
- method public void setDouble(int, double) throws java.sql.SQLException;
- method public void setFloat(int, float) throws java.sql.SQLException;
- method public void setInt(int, int) throws java.sql.SQLException;
- method public void setLong(int, long) throws java.sql.SQLException;
- method public void setNCharacterStream(int, java.io.Reader, long) throws java.sql.SQLException;
- method public void setNCharacterStream(int, java.io.Reader) throws java.sql.SQLException;
- method public void setNClob(int, java.sql.NClob) throws java.sql.SQLException;
- method public void setNClob(int, java.io.Reader, long) throws java.sql.SQLException;
- method public void setNClob(int, java.io.Reader) throws java.sql.SQLException;
- method public void setNString(int, String) throws java.sql.SQLException;
- method public void setNull(int, int) throws java.sql.SQLException;
- method public void setNull(int, int, String) throws java.sql.SQLException;
- method public void setObject(int, Object, int) throws java.sql.SQLException;
- method public void setObject(int, Object) throws java.sql.SQLException;
- method public void setObject(int, Object, int, int) throws java.sql.SQLException;
- method public void setRef(int, java.sql.Ref) throws java.sql.SQLException;
- method public void setRowId(int, java.sql.RowId) throws java.sql.SQLException;
- method public void setSQLXML(int, java.sql.SQLXML) throws java.sql.SQLException;
- method public void setShort(int, short) throws java.sql.SQLException;
- method public void setString(int, String) throws java.sql.SQLException;
- method public void setTime(int, java.sql.Time) throws java.sql.SQLException;
- method public void setTime(int, java.sql.Time, java.util.Calendar) throws java.sql.SQLException;
- method public void setTimestamp(int, java.sql.Timestamp) throws java.sql.SQLException;
- method public void setTimestamp(int, java.sql.Timestamp, java.util.Calendar) throws java.sql.SQLException;
- method public void setURL(int, java.net.URL) throws java.sql.SQLException;
- method @Deprecated public void setUnicodeStream(int, java.io.InputStream, int) throws java.sql.SQLException;
- }
-
- public interface Ref {
- method public String getBaseTypeName() throws java.sql.SQLException;
- method public Object getObject(java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
- method public Object getObject() throws java.sql.SQLException;
- method public void setObject(Object) throws java.sql.SQLException;
- }
-
- public interface ResultSet extends java.sql.Wrapper java.lang.AutoCloseable {
- method public boolean absolute(int) throws java.sql.SQLException;
- method public void afterLast() throws java.sql.SQLException;
- method public void beforeFirst() throws java.sql.SQLException;
- method public void cancelRowUpdates() throws java.sql.SQLException;
- method public void clearWarnings() throws java.sql.SQLException;
- method public void close() throws java.sql.SQLException;
- method public void deleteRow() throws java.sql.SQLException;
- method public int findColumn(String) throws java.sql.SQLException;
- method public boolean first() throws java.sql.SQLException;
- method public java.sql.Array getArray(int) throws java.sql.SQLException;
- method public java.sql.Array getArray(String) throws java.sql.SQLException;
- method public java.io.InputStream getAsciiStream(int) throws java.sql.SQLException;
- method public java.io.InputStream getAsciiStream(String) throws java.sql.SQLException;
- method @Deprecated public java.math.BigDecimal getBigDecimal(int, int) throws java.sql.SQLException;
- method @Deprecated public java.math.BigDecimal getBigDecimal(String, int) throws java.sql.SQLException;
- method public java.math.BigDecimal getBigDecimal(int) throws java.sql.SQLException;
- method public java.math.BigDecimal getBigDecimal(String) throws java.sql.SQLException;
- method public java.io.InputStream getBinaryStream(int) throws java.sql.SQLException;
- method public java.io.InputStream getBinaryStream(String) throws java.sql.SQLException;
- method public java.sql.Blob getBlob(int) throws java.sql.SQLException;
- method public java.sql.Blob getBlob(String) throws java.sql.SQLException;
- method public boolean getBoolean(int) throws java.sql.SQLException;
- method public boolean getBoolean(String) throws java.sql.SQLException;
- method public byte getByte(int) throws java.sql.SQLException;
- method public byte getByte(String) throws java.sql.SQLException;
- method public byte[] getBytes(int) throws java.sql.SQLException;
- method public byte[] getBytes(String) throws java.sql.SQLException;
- method public java.io.Reader getCharacterStream(int) throws java.sql.SQLException;
- method public java.io.Reader getCharacterStream(String) throws java.sql.SQLException;
- method public java.sql.Clob getClob(int) throws java.sql.SQLException;
- method public java.sql.Clob getClob(String) throws java.sql.SQLException;
- method public int getConcurrency() throws java.sql.SQLException;
- method public String getCursorName() throws java.sql.SQLException;
- method public java.sql.Date getDate(int) throws java.sql.SQLException;
- method public java.sql.Date getDate(String) throws java.sql.SQLException;
- method public java.sql.Date getDate(int, java.util.Calendar) throws java.sql.SQLException;
- method public java.sql.Date getDate(String, java.util.Calendar) throws java.sql.SQLException;
- method public double getDouble(int) throws java.sql.SQLException;
- method public double getDouble(String) throws java.sql.SQLException;
- method public int getFetchDirection() throws java.sql.SQLException;
- method public int getFetchSize() throws java.sql.SQLException;
- method public float getFloat(int) throws java.sql.SQLException;
- method public float getFloat(String) throws java.sql.SQLException;
- method public int getHoldability() throws java.sql.SQLException;
- method public int getInt(int) throws java.sql.SQLException;
- method public int getInt(String) throws java.sql.SQLException;
- method public long getLong(int) throws java.sql.SQLException;
- method public long getLong(String) throws java.sql.SQLException;
- method public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException;
- method public java.io.Reader getNCharacterStream(int) throws java.sql.SQLException;
- method public java.io.Reader getNCharacterStream(String) throws java.sql.SQLException;
- method public java.sql.NClob getNClob(int) throws java.sql.SQLException;
- method public java.sql.NClob getNClob(String) throws java.sql.SQLException;
- method public String getNString(int) throws java.sql.SQLException;
- method public String getNString(String) throws java.sql.SQLException;
- method public Object getObject(int) throws java.sql.SQLException;
- method public Object getObject(String) throws java.sql.SQLException;
- method public Object getObject(int, java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
- method public Object getObject(String, java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
- method public java.sql.Ref getRef(int) throws java.sql.SQLException;
- method public java.sql.Ref getRef(String) throws java.sql.SQLException;
- method public int getRow() throws java.sql.SQLException;
- method public java.sql.RowId getRowId(int) throws java.sql.SQLException;
- method public java.sql.RowId getRowId(String) throws java.sql.SQLException;
- method public java.sql.SQLXML getSQLXML(int) throws java.sql.SQLException;
- method public java.sql.SQLXML getSQLXML(String) throws java.sql.SQLException;
- method public short getShort(int) throws java.sql.SQLException;
- method public short getShort(String) throws java.sql.SQLException;
- method public java.sql.Statement getStatement() throws java.sql.SQLException;
- method public String getString(int) throws java.sql.SQLException;
- method public String getString(String) throws java.sql.SQLException;
- method public java.sql.Time getTime(int) throws java.sql.SQLException;
- method public java.sql.Time getTime(String) throws java.sql.SQLException;
- method public java.sql.Time getTime(int, java.util.Calendar) throws java.sql.SQLException;
- method public java.sql.Time getTime(String, java.util.Calendar) throws java.sql.SQLException;
- method public java.sql.Timestamp getTimestamp(int) throws java.sql.SQLException;
- method public java.sql.Timestamp getTimestamp(String) throws java.sql.SQLException;
- method public java.sql.Timestamp getTimestamp(int, java.util.Calendar) throws java.sql.SQLException;
- method public java.sql.Timestamp getTimestamp(String, java.util.Calendar) throws java.sql.SQLException;
- method public int getType() throws java.sql.SQLException;
- method public java.net.URL getURL(int) throws java.sql.SQLException;
- method public java.net.URL getURL(String) throws java.sql.SQLException;
- method @Deprecated public java.io.InputStream getUnicodeStream(int) throws java.sql.SQLException;
- method @Deprecated public java.io.InputStream getUnicodeStream(String) throws java.sql.SQLException;
- method public java.sql.SQLWarning getWarnings() throws java.sql.SQLException;
- method public void insertRow() throws java.sql.SQLException;
- method public boolean isAfterLast() throws java.sql.SQLException;
- method public boolean isBeforeFirst() throws java.sql.SQLException;
- method public boolean isClosed() throws java.sql.SQLException;
- method public boolean isFirst() throws java.sql.SQLException;
- method public boolean isLast() throws java.sql.SQLException;
- method public boolean last() throws java.sql.SQLException;
- method public void moveToCurrentRow() throws java.sql.SQLException;
- method public void moveToInsertRow() throws java.sql.SQLException;
- method public boolean next() throws java.sql.SQLException;
- method public boolean previous() throws java.sql.SQLException;
- method public void refreshRow() throws java.sql.SQLException;
- method public boolean relative(int) throws java.sql.SQLException;
- method public boolean rowDeleted() throws java.sql.SQLException;
- method public boolean rowInserted() throws java.sql.SQLException;
- method public boolean rowUpdated() throws java.sql.SQLException;
- method public void setFetchDirection(int) throws java.sql.SQLException;
- method public void setFetchSize(int) throws java.sql.SQLException;
- method public void updateArray(int, java.sql.Array) throws java.sql.SQLException;
- method public void updateArray(String, java.sql.Array) throws java.sql.SQLException;
- method public void updateAsciiStream(int, java.io.InputStream, int) throws java.sql.SQLException;
- method public void updateAsciiStream(String, java.io.InputStream, int) throws java.sql.SQLException;
- method public void updateAsciiStream(int, java.io.InputStream, long) throws java.sql.SQLException;
- method public void updateAsciiStream(String, java.io.InputStream, long) throws java.sql.SQLException;
- method public void updateAsciiStream(int, java.io.InputStream) throws java.sql.SQLException;
- method public void updateAsciiStream(String, java.io.InputStream) throws java.sql.SQLException;
- method public void updateBigDecimal(int, java.math.BigDecimal) throws java.sql.SQLException;
- method public void updateBigDecimal(String, java.math.BigDecimal) throws java.sql.SQLException;
- method public void updateBinaryStream(int, java.io.InputStream, int) throws java.sql.SQLException;
- method public void updateBinaryStream(String, java.io.InputStream, int) throws java.sql.SQLException;
- method public void updateBinaryStream(int, java.io.InputStream, long) throws java.sql.SQLException;
- method public void updateBinaryStream(String, java.io.InputStream, long) throws java.sql.SQLException;
- method public void updateBinaryStream(int, java.io.InputStream) throws java.sql.SQLException;
- method public void updateBinaryStream(String, java.io.InputStream) throws java.sql.SQLException;
- method public void updateBlob(int, java.sql.Blob) throws java.sql.SQLException;
- method public void updateBlob(String, java.sql.Blob) throws java.sql.SQLException;
- method public void updateBlob(int, java.io.InputStream, long) throws java.sql.SQLException;
- method public void updateBlob(String, java.io.InputStream, long) throws java.sql.SQLException;
- method public void updateBlob(int, java.io.InputStream) throws java.sql.SQLException;
- method public void updateBlob(String, java.io.InputStream) throws java.sql.SQLException;
- method public void updateBoolean(int, boolean) throws java.sql.SQLException;
- method public void updateBoolean(String, boolean) throws java.sql.SQLException;
- method public void updateByte(int, byte) throws java.sql.SQLException;
- method public void updateByte(String, byte) throws java.sql.SQLException;
- method public void updateBytes(int, byte[]) throws java.sql.SQLException;
- method public void updateBytes(String, byte[]) throws java.sql.SQLException;
- method public void updateCharacterStream(int, java.io.Reader, int) throws java.sql.SQLException;
- method public void updateCharacterStream(String, java.io.Reader, int) throws java.sql.SQLException;
- method public void updateCharacterStream(int, java.io.Reader, long) throws java.sql.SQLException;
- method public void updateCharacterStream(String, java.io.Reader, long) throws java.sql.SQLException;
- method public void updateCharacterStream(int, java.io.Reader) throws java.sql.SQLException;
- method public void updateCharacterStream(String, java.io.Reader) throws java.sql.SQLException;
- method public void updateClob(int, java.sql.Clob) throws java.sql.SQLException;
- method public void updateClob(String, java.sql.Clob) throws java.sql.SQLException;
- method public void updateClob(int, java.io.Reader, long) throws java.sql.SQLException;
- method public void updateClob(String, java.io.Reader, long) throws java.sql.SQLException;
- method public void updateClob(int, java.io.Reader) throws java.sql.SQLException;
- method public void updateClob(String, java.io.Reader) throws java.sql.SQLException;
- method public void updateDate(int, java.sql.Date) throws java.sql.SQLException;
- method public void updateDate(String, java.sql.Date) throws java.sql.SQLException;
- method public void updateDouble(int, double) throws java.sql.SQLException;
- method public void updateDouble(String, double) throws java.sql.SQLException;
- method public void updateFloat(int, float) throws java.sql.SQLException;
- method public void updateFloat(String, float) throws java.sql.SQLException;
- method public void updateInt(int, int) throws java.sql.SQLException;
- method public void updateInt(String, int) throws java.sql.SQLException;
- method public void updateLong(int, long) throws java.sql.SQLException;
- method public void updateLong(String, long) throws java.sql.SQLException;
- method public void updateNCharacterStream(int, java.io.Reader, long) throws java.sql.SQLException;
- method public void updateNCharacterStream(String, java.io.Reader, long) throws java.sql.SQLException;
- method public void updateNCharacterStream(int, java.io.Reader) throws java.sql.SQLException;
- method public void updateNCharacterStream(String, java.io.Reader) throws java.sql.SQLException;
- method public void updateNClob(int, java.sql.NClob) throws java.sql.SQLException;
- method public void updateNClob(String, java.sql.NClob) throws java.sql.SQLException;
- method public void updateNClob(int, java.io.Reader, long) throws java.sql.SQLException;
- method public void updateNClob(String, java.io.Reader, long) throws java.sql.SQLException;
- method public void updateNClob(int, java.io.Reader) throws java.sql.SQLException;
- method public void updateNClob(String, java.io.Reader) throws java.sql.SQLException;
- method public void updateNString(int, String) throws java.sql.SQLException;
- method public void updateNString(String, String) throws java.sql.SQLException;
- method public void updateNull(int) throws java.sql.SQLException;
- method public void updateNull(String) throws java.sql.SQLException;
- method public void updateObject(int, Object, int) throws java.sql.SQLException;
- method public void updateObject(int, Object) throws java.sql.SQLException;
- method public void updateObject(String, Object, int) throws java.sql.SQLException;
- method public void updateObject(String, Object) throws java.sql.SQLException;
- method public void updateRef(int, java.sql.Ref) throws java.sql.SQLException;
- method public void updateRef(String, java.sql.Ref) throws java.sql.SQLException;
- method public void updateRow() throws java.sql.SQLException;
- method public void updateRowId(int, java.sql.RowId) throws java.sql.SQLException;
- method public void updateRowId(String, java.sql.RowId) throws java.sql.SQLException;
- method public void updateSQLXML(int, java.sql.SQLXML) throws java.sql.SQLException;
- method public void updateSQLXML(String, java.sql.SQLXML) throws java.sql.SQLException;
- method public void updateShort(int, short) throws java.sql.SQLException;
- method public void updateShort(String, short) throws java.sql.SQLException;
- method public void updateString(int, String) throws java.sql.SQLException;
- method public void updateString(String, String) throws java.sql.SQLException;
- method public void updateTime(int, java.sql.Time) throws java.sql.SQLException;
- method public void updateTime(String, java.sql.Time) throws java.sql.SQLException;
- method public void updateTimestamp(int, java.sql.Timestamp) throws java.sql.SQLException;
- method public void updateTimestamp(String, java.sql.Timestamp) throws java.sql.SQLException;
- method public boolean wasNull() throws java.sql.SQLException;
- field public static final int CLOSE_CURSORS_AT_COMMIT = 2; // 0x2
- field public static final int CONCUR_READ_ONLY = 1007; // 0x3ef
- field public static final int CONCUR_UPDATABLE = 1008; // 0x3f0
- field public static final int FETCH_FORWARD = 1000; // 0x3e8
- field public static final int FETCH_REVERSE = 1001; // 0x3e9
- field public static final int FETCH_UNKNOWN = 1002; // 0x3ea
- field public static final int HOLD_CURSORS_OVER_COMMIT = 1; // 0x1
- field public static final int TYPE_FORWARD_ONLY = 1003; // 0x3eb
- field public static final int TYPE_SCROLL_INSENSITIVE = 1004; // 0x3ec
- field public static final int TYPE_SCROLL_SENSITIVE = 1005; // 0x3ed
- }
-
- public interface ResultSetMetaData extends java.sql.Wrapper {
- method public String getCatalogName(int) throws java.sql.SQLException;
- method public String getColumnClassName(int) throws java.sql.SQLException;
- method public int getColumnCount() throws java.sql.SQLException;
- method public int getColumnDisplaySize(int) throws java.sql.SQLException;
- method public String getColumnLabel(int) throws java.sql.SQLException;
- method public String getColumnName(int) throws java.sql.SQLException;
- method public int getColumnType(int) throws java.sql.SQLException;
- method public String getColumnTypeName(int) throws java.sql.SQLException;
- method public int getPrecision(int) throws java.sql.SQLException;
- method public int getScale(int) throws java.sql.SQLException;
- method public String getSchemaName(int) throws java.sql.SQLException;
- method public String getTableName(int) throws java.sql.SQLException;
- method public boolean isAutoIncrement(int) throws java.sql.SQLException;
- method public boolean isCaseSensitive(int) throws java.sql.SQLException;
- method public boolean isCurrency(int) throws java.sql.SQLException;
- method public boolean isDefinitelyWritable(int) throws java.sql.SQLException;
- method public int isNullable(int) throws java.sql.SQLException;
- method public boolean isReadOnly(int) throws java.sql.SQLException;
- method public boolean isSearchable(int) throws java.sql.SQLException;
- method public boolean isSigned(int) throws java.sql.SQLException;
- method public boolean isWritable(int) throws java.sql.SQLException;
- field public static final int columnNoNulls = 0; // 0x0
- field public static final int columnNullable = 1; // 0x1
- field public static final int columnNullableUnknown = 2; // 0x2
- }
-
- public interface RowId {
- method public boolean equals(Object);
- method public byte[] getBytes();
- method public int hashCode();
- method public String toString();
- }
-
- public enum RowIdLifetime {
- enum_constant public static final java.sql.RowIdLifetime ROWID_UNSUPPORTED;
- enum_constant public static final java.sql.RowIdLifetime ROWID_VALID_FOREVER;
- enum_constant public static final java.sql.RowIdLifetime ROWID_VALID_OTHER;
- enum_constant public static final java.sql.RowIdLifetime ROWID_VALID_SESSION;
- enum_constant public static final java.sql.RowIdLifetime ROWID_VALID_TRANSACTION;
- }
-
- public class SQLClientInfoException extends java.sql.SQLException {
- ctor public SQLClientInfoException();
- ctor public SQLClientInfoException(java.util.Map<java.lang.String,java.sql.ClientInfoStatus>);
- ctor public SQLClientInfoException(java.util.Map<java.lang.String,java.sql.ClientInfoStatus>, Throwable);
- ctor public SQLClientInfoException(String, java.util.Map<java.lang.String,java.sql.ClientInfoStatus>);
- ctor public SQLClientInfoException(String, java.util.Map<java.lang.String,java.sql.ClientInfoStatus>, Throwable);
- ctor public SQLClientInfoException(String, String, java.util.Map<java.lang.String,java.sql.ClientInfoStatus>);
- ctor public SQLClientInfoException(String, String, java.util.Map<java.lang.String,java.sql.ClientInfoStatus>, Throwable);
- ctor public SQLClientInfoException(String, String, int, java.util.Map<java.lang.String,java.sql.ClientInfoStatus>);
- ctor public SQLClientInfoException(String, String, int, java.util.Map<java.lang.String,java.sql.ClientInfoStatus>, Throwable);
- method public java.util.Map<java.lang.String,java.sql.ClientInfoStatus> getFailedProperties();
- }
-
- public interface SQLData {
- method public String getSQLTypeName() throws java.sql.SQLException;
- method public void readSQL(java.sql.SQLInput, String) throws java.sql.SQLException;
- method public void writeSQL(java.sql.SQLOutput) throws java.sql.SQLException;
- }
-
- public class SQLDataException extends java.sql.SQLNonTransientException {
- ctor public SQLDataException();
- ctor public SQLDataException(String);
- ctor public SQLDataException(String, String);
- ctor public SQLDataException(String, String, int);
- ctor public SQLDataException(Throwable);
- ctor public SQLDataException(String, Throwable);
- ctor public SQLDataException(String, String, Throwable);
- ctor public SQLDataException(String, String, int, Throwable);
- }
-
- public class SQLException extends java.lang.Exception implements java.lang.Iterable<java.lang.Throwable> {
- ctor public SQLException(String, String, int);
- ctor public SQLException(String, String);
- ctor public SQLException(String);
- ctor public SQLException();
- ctor public SQLException(Throwable);
- ctor public SQLException(String, Throwable);
- ctor public SQLException(String, String, Throwable);
- ctor public SQLException(String, String, int, Throwable);
- method public int getErrorCode();
- method public java.sql.SQLException getNextException();
- method public String getSQLState();
- method public java.util.Iterator<java.lang.Throwable> iterator();
- method public void setNextException(java.sql.SQLException);
- }
-
- public class SQLFeatureNotSupportedException extends java.sql.SQLNonTransientException {
- ctor public SQLFeatureNotSupportedException();
- ctor public SQLFeatureNotSupportedException(String);
- ctor public SQLFeatureNotSupportedException(String, String);
- ctor public SQLFeatureNotSupportedException(String, String, int);
- ctor public SQLFeatureNotSupportedException(Throwable);
- ctor public SQLFeatureNotSupportedException(String, Throwable);
- ctor public SQLFeatureNotSupportedException(String, String, Throwable);
- ctor public SQLFeatureNotSupportedException(String, String, int, Throwable);
- }
-
- public interface SQLInput {
- method public java.sql.Array readArray() throws java.sql.SQLException;
- method public java.io.InputStream readAsciiStream() throws java.sql.SQLException;
- method public java.math.BigDecimal readBigDecimal() throws java.sql.SQLException;
- method public java.io.InputStream readBinaryStream() throws java.sql.SQLException;
- method public java.sql.Blob readBlob() throws java.sql.SQLException;
- method public boolean readBoolean() throws java.sql.SQLException;
- method public byte readByte() throws java.sql.SQLException;
- method public byte[] readBytes() throws java.sql.SQLException;
- method public java.io.Reader readCharacterStream() throws java.sql.SQLException;
- method public java.sql.Clob readClob() throws java.sql.SQLException;
- method public java.sql.Date readDate() throws java.sql.SQLException;
- method public double readDouble() throws java.sql.SQLException;
- method public float readFloat() throws java.sql.SQLException;
- method public int readInt() throws java.sql.SQLException;
- method public long readLong() throws java.sql.SQLException;
- method public java.sql.NClob readNClob() throws java.sql.SQLException;
- method public String readNString() throws java.sql.SQLException;
- method public Object readObject() throws java.sql.SQLException;
- method public java.sql.Ref readRef() throws java.sql.SQLException;
- method public java.sql.RowId readRowId() throws java.sql.SQLException;
- method public java.sql.SQLXML readSQLXML() throws java.sql.SQLException;
- method public short readShort() throws java.sql.SQLException;
- method public String readString() throws java.sql.SQLException;
- method public java.sql.Time readTime() throws java.sql.SQLException;
- method public java.sql.Timestamp readTimestamp() throws java.sql.SQLException;
- method public java.net.URL readURL() throws java.sql.SQLException;
- method public boolean wasNull() throws java.sql.SQLException;
- }
-
- public class SQLIntegrityConstraintViolationException extends java.sql.SQLNonTransientException {
- ctor public SQLIntegrityConstraintViolationException();
- ctor public SQLIntegrityConstraintViolationException(String);
- ctor public SQLIntegrityConstraintViolationException(String, String);
- ctor public SQLIntegrityConstraintViolationException(String, String, int);
- ctor public SQLIntegrityConstraintViolationException(Throwable);
- ctor public SQLIntegrityConstraintViolationException(String, Throwable);
- ctor public SQLIntegrityConstraintViolationException(String, String, Throwable);
- ctor public SQLIntegrityConstraintViolationException(String, String, int, Throwable);
- }
-
- public class SQLInvalidAuthorizationSpecException extends java.sql.SQLNonTransientException {
- ctor public SQLInvalidAuthorizationSpecException();
- ctor public SQLInvalidAuthorizationSpecException(String);
- ctor public SQLInvalidAuthorizationSpecException(String, String);
- ctor public SQLInvalidAuthorizationSpecException(String, String, int);
- ctor public SQLInvalidAuthorizationSpecException(Throwable);
- ctor public SQLInvalidAuthorizationSpecException(String, Throwable);
- ctor public SQLInvalidAuthorizationSpecException(String, String, Throwable);
- ctor public SQLInvalidAuthorizationSpecException(String, String, int, Throwable);
- }
-
- public class SQLNonTransientConnectionException extends java.sql.SQLNonTransientException {
- ctor public SQLNonTransientConnectionException();
- ctor public SQLNonTransientConnectionException(String);
- ctor public SQLNonTransientConnectionException(String, String);
- ctor public SQLNonTransientConnectionException(String, String, int);
- ctor public SQLNonTransientConnectionException(Throwable);
- ctor public SQLNonTransientConnectionException(String, Throwable);
- ctor public SQLNonTransientConnectionException(String, String, Throwable);
- ctor public SQLNonTransientConnectionException(String, String, int, Throwable);
- }
-
- public class SQLNonTransientException extends java.sql.SQLException {
- ctor public SQLNonTransientException();
- ctor public SQLNonTransientException(String);
- ctor public SQLNonTransientException(String, String);
- ctor public SQLNonTransientException(String, String, int);
- ctor public SQLNonTransientException(Throwable);
- ctor public SQLNonTransientException(String, Throwable);
- ctor public SQLNonTransientException(String, String, Throwable);
- ctor public SQLNonTransientException(String, String, int, Throwable);
- }
-
- public interface SQLOutput {
- method public void writeArray(java.sql.Array) throws java.sql.SQLException;
- method public void writeAsciiStream(java.io.InputStream) throws java.sql.SQLException;
- method public void writeBigDecimal(java.math.BigDecimal) throws java.sql.SQLException;
- method public void writeBinaryStream(java.io.InputStream) throws java.sql.SQLException;
- method public void writeBlob(java.sql.Blob) throws java.sql.SQLException;
- method public void writeBoolean(boolean) throws java.sql.SQLException;
- method public void writeByte(byte) throws java.sql.SQLException;
- method public void writeBytes(byte[]) throws java.sql.SQLException;
- method public void writeCharacterStream(java.io.Reader) throws java.sql.SQLException;
- method public void writeClob(java.sql.Clob) throws java.sql.SQLException;
- method public void writeDate(java.sql.Date) throws java.sql.SQLException;
- method public void writeDouble(double) throws java.sql.SQLException;
- method public void writeFloat(float) throws java.sql.SQLException;
- method public void writeInt(int) throws java.sql.SQLException;
- method public void writeLong(long) throws java.sql.SQLException;
- method public void writeNClob(java.sql.NClob) throws java.sql.SQLException;
- method public void writeNString(String) throws java.sql.SQLException;
- method public void writeObject(java.sql.SQLData) throws java.sql.SQLException;
- method public void writeRef(java.sql.Ref) throws java.sql.SQLException;
- method public void writeRowId(java.sql.RowId) throws java.sql.SQLException;
- method public void writeSQLXML(java.sql.SQLXML) throws java.sql.SQLException;
- method public void writeShort(short) throws java.sql.SQLException;
- method public void writeString(String) throws java.sql.SQLException;
- method public void writeStruct(java.sql.Struct) throws java.sql.SQLException;
- method public void writeTime(java.sql.Time) throws java.sql.SQLException;
- method public void writeTimestamp(java.sql.Timestamp) throws java.sql.SQLException;
- method public void writeURL(java.net.URL) throws java.sql.SQLException;
- }
-
- public final class SQLPermission extends java.security.BasicPermission {
- ctor public SQLPermission(String);
- ctor public SQLPermission(String, String);
- }
-
- public class SQLRecoverableException extends java.sql.SQLException {
- ctor public SQLRecoverableException();
- ctor public SQLRecoverableException(String);
- ctor public SQLRecoverableException(String, String);
- ctor public SQLRecoverableException(String, String, int);
- ctor public SQLRecoverableException(Throwable);
- ctor public SQLRecoverableException(String, Throwable);
- ctor public SQLRecoverableException(String, String, Throwable);
- ctor public SQLRecoverableException(String, String, int, Throwable);
- }
-
- public class SQLSyntaxErrorException extends java.sql.SQLNonTransientException {
- ctor public SQLSyntaxErrorException();
- ctor public SQLSyntaxErrorException(String);
- ctor public SQLSyntaxErrorException(String, String);
- ctor public SQLSyntaxErrorException(String, String, int);
- ctor public SQLSyntaxErrorException(Throwable);
- ctor public SQLSyntaxErrorException(String, Throwable);
- ctor public SQLSyntaxErrorException(String, String, Throwable);
- ctor public SQLSyntaxErrorException(String, String, int, Throwable);
- }
-
- public class SQLTimeoutException extends java.sql.SQLTransientException {
- ctor public SQLTimeoutException();
- ctor public SQLTimeoutException(String);
- ctor public SQLTimeoutException(String, String);
- ctor public SQLTimeoutException(String, String, int);
- ctor public SQLTimeoutException(Throwable);
- ctor public SQLTimeoutException(String, Throwable);
- ctor public SQLTimeoutException(String, String, Throwable);
- ctor public SQLTimeoutException(String, String, int, Throwable);
- }
-
- public class SQLTransactionRollbackException extends java.sql.SQLTransientException {
- ctor public SQLTransactionRollbackException();
- ctor public SQLTransactionRollbackException(String);
- ctor public SQLTransactionRollbackException(String, String);
- ctor public SQLTransactionRollbackException(String, String, int);
- ctor public SQLTransactionRollbackException(Throwable);
- ctor public SQLTransactionRollbackException(String, Throwable);
- ctor public SQLTransactionRollbackException(String, String, Throwable);
- ctor public SQLTransactionRollbackException(String, String, int, Throwable);
- }
-
- public class SQLTransientConnectionException extends java.sql.SQLTransientException {
- ctor public SQLTransientConnectionException();
- ctor public SQLTransientConnectionException(String);
- ctor public SQLTransientConnectionException(String, String);
- ctor public SQLTransientConnectionException(String, String, int);
- ctor public SQLTransientConnectionException(Throwable);
- ctor public SQLTransientConnectionException(String, Throwable);
- ctor public SQLTransientConnectionException(String, String, Throwable);
- ctor public SQLTransientConnectionException(String, String, int, Throwable);
- }
-
- public class SQLTransientException extends java.sql.SQLException {
- ctor public SQLTransientException();
- ctor public SQLTransientException(String);
- ctor public SQLTransientException(String, String);
- ctor public SQLTransientException(String, String, int);
- ctor public SQLTransientException(Throwable);
- ctor public SQLTransientException(String, Throwable);
- ctor public SQLTransientException(String, String, Throwable);
- ctor public SQLTransientException(String, String, int, Throwable);
- }
-
- public class SQLWarning extends java.sql.SQLException {
- ctor public SQLWarning(String, String, int);
- ctor public SQLWarning(String, String);
- ctor public SQLWarning(String);
- ctor public SQLWarning();
- ctor public SQLWarning(Throwable);
- ctor public SQLWarning(String, Throwable);
- ctor public SQLWarning(String, String, Throwable);
- ctor public SQLWarning(String, String, int, Throwable);
- method public java.sql.SQLWarning getNextWarning();
- method public void setNextWarning(java.sql.SQLWarning);
- }
-
- public interface SQLXML {
- method public void free() throws java.sql.SQLException;
- method public java.io.InputStream getBinaryStream() throws java.sql.SQLException;
- method public java.io.Reader getCharacterStream() throws java.sql.SQLException;
- method public <T extends javax.xml.transform.Source> T getSource(Class<T>) throws java.sql.SQLException;
- method public String getString() throws java.sql.SQLException;
- method public java.io.OutputStream setBinaryStream() throws java.sql.SQLException;
- method public java.io.Writer setCharacterStream() throws java.sql.SQLException;
- method public <T extends javax.xml.transform.Result> T setResult(Class<T>) throws java.sql.SQLException;
- method public void setString(String) throws java.sql.SQLException;
- }
-
- public interface Savepoint {
- method public int getSavepointId() throws java.sql.SQLException;
- method public String getSavepointName() throws java.sql.SQLException;
- }
-
- public interface Statement extends java.sql.Wrapper java.lang.AutoCloseable {
- method public void addBatch(String) throws java.sql.SQLException;
- method public void cancel() throws java.sql.SQLException;
- method public void clearBatch() throws java.sql.SQLException;
- method public void clearWarnings() throws java.sql.SQLException;
- method public void close() throws java.sql.SQLException;
- method public boolean execute(String) throws java.sql.SQLException;
- method public boolean execute(String, int) throws java.sql.SQLException;
- method public boolean execute(String, int[]) throws java.sql.SQLException;
- method public boolean execute(String, String[]) throws java.sql.SQLException;
- method public int[] executeBatch() throws java.sql.SQLException;
- method public java.sql.ResultSet executeQuery(String) throws java.sql.SQLException;
- method public int executeUpdate(String) throws java.sql.SQLException;
- method public int executeUpdate(String, int) throws java.sql.SQLException;
- method public int executeUpdate(String, int[]) throws java.sql.SQLException;
- method public int executeUpdate(String, String[]) throws java.sql.SQLException;
- method public java.sql.Connection getConnection() throws java.sql.SQLException;
- method public int getFetchDirection() throws java.sql.SQLException;
- method public int getFetchSize() throws java.sql.SQLException;
- method public java.sql.ResultSet getGeneratedKeys() throws java.sql.SQLException;
- method public int getMaxFieldSize() throws java.sql.SQLException;
- method public int getMaxRows() throws java.sql.SQLException;
- method public boolean getMoreResults() throws java.sql.SQLException;
- method public boolean getMoreResults(int) throws java.sql.SQLException;
- method public int getQueryTimeout() throws java.sql.SQLException;
- method public java.sql.ResultSet getResultSet() throws java.sql.SQLException;
- method public int getResultSetConcurrency() throws java.sql.SQLException;
- method public int getResultSetHoldability() throws java.sql.SQLException;
- method public int getResultSetType() throws java.sql.SQLException;
- method public int getUpdateCount() throws java.sql.SQLException;
- method public java.sql.SQLWarning getWarnings() throws java.sql.SQLException;
- method public boolean isClosed() throws java.sql.SQLException;
- method public boolean isPoolable() throws java.sql.SQLException;
- method public void setCursorName(String) throws java.sql.SQLException;
- method public void setEscapeProcessing(boolean) throws java.sql.SQLException;
- method public void setFetchDirection(int) throws java.sql.SQLException;
- method public void setFetchSize(int) throws java.sql.SQLException;
- method public void setMaxFieldSize(int) throws java.sql.SQLException;
- method public void setMaxRows(int) throws java.sql.SQLException;
- method public void setPoolable(boolean) throws java.sql.SQLException;
- method public void setQueryTimeout(int) throws java.sql.SQLException;
- field public static final int CLOSE_ALL_RESULTS = 3; // 0x3
- field public static final int CLOSE_CURRENT_RESULT = 1; // 0x1
- field public static final int EXECUTE_FAILED = -3; // 0xfffffffd
- field public static final int KEEP_CURRENT_RESULT = 2; // 0x2
- field public static final int NO_GENERATED_KEYS = 2; // 0x2
- field public static final int RETURN_GENERATED_KEYS = 1; // 0x1
- field public static final int SUCCESS_NO_INFO = -2; // 0xfffffffe
- }
-
- public interface Struct {
- method public Object[] getAttributes() throws java.sql.SQLException;
- method public Object[] getAttributes(java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
- method public String getSQLTypeName() throws java.sql.SQLException;
- }
-
- public class Time extends java.util.Date {
- ctor @Deprecated public Time(int, int, int);
- ctor public Time(long);
- method public static java.sql.Time valueOf(String);
- }
-
- public class Timestamp extends java.util.Date {
- ctor @Deprecated public Timestamp(int, int, int, int, int, int, int);
- ctor public Timestamp(long);
- method public boolean after(java.sql.Timestamp);
- method public boolean before(java.sql.Timestamp);
- method public int compareTo(java.sql.Timestamp);
- method public boolean equals(java.sql.Timestamp);
- method public int getNanos();
- method public void setNanos(int);
- method public static java.sql.Timestamp valueOf(String);
- }
-
- public class Types {
- field public static final int ARRAY = 2003; // 0x7d3
- field public static final int BIGINT = -5; // 0xfffffffb
- field public static final int BINARY = -2; // 0xfffffffe
- field public static final int BIT = -7; // 0xfffffff9
- field public static final int BLOB = 2004; // 0x7d4
- field public static final int BOOLEAN = 16; // 0x10
- field public static final int CHAR = 1; // 0x1
- field public static final int CLOB = 2005; // 0x7d5
- field public static final int DATALINK = 70; // 0x46
- field public static final int DATE = 91; // 0x5b
- field public static final int DECIMAL = 3; // 0x3
- field public static final int DISTINCT = 2001; // 0x7d1
- field public static final int DOUBLE = 8; // 0x8
- field public static final int FLOAT = 6; // 0x6
- field public static final int INTEGER = 4; // 0x4
- field public static final int JAVA_OBJECT = 2000; // 0x7d0
- field public static final int LONGNVARCHAR = -16; // 0xfffffff0
- field public static final int LONGVARBINARY = -4; // 0xfffffffc
- field public static final int LONGVARCHAR = -1; // 0xffffffff
- field public static final int NCHAR = -15; // 0xfffffff1
- field public static final int NCLOB = 2011; // 0x7db
- field public static final int NULL = 0; // 0x0
- field public static final int NUMERIC = 2; // 0x2
- field public static final int NVARCHAR = -9; // 0xfffffff7
- field public static final int OTHER = 1111; // 0x457
- field public static final int REAL = 7; // 0x7
- field public static final int REF = 2006; // 0x7d6
- field public static final int ROWID = -8; // 0xfffffff8
- field public static final int SMALLINT = 5; // 0x5
- field public static final int SQLXML = 2009; // 0x7d9
- field public static final int STRUCT = 2002; // 0x7d2
- field public static final int TIME = 92; // 0x5c
- field public static final int TIMESTAMP = 93; // 0x5d
- field public static final int TINYINT = -6; // 0xfffffffa
- field public static final int VARBINARY = -3; // 0xfffffffd
- field public static final int VARCHAR = 12; // 0xc
- }
-
- public interface Wrapper {
- method public boolean isWrapperFor(Class<?>) throws java.sql.SQLException;
- method public <T> T unwrap(Class<T>) throws java.sql.SQLException;
- }
-
-}
-
-package java.text {
-
- public class Annotation {
- ctor public Annotation(Object);
- method public Object getValue();
- }
-
- public interface AttributedCharacterIterator extends java.text.CharacterIterator {
- method public java.util.Set<java.text.AttributedCharacterIterator.Attribute> getAllAttributeKeys();
- method public Object getAttribute(java.text.AttributedCharacterIterator.Attribute);
- method public java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> getAttributes();
- method public int getRunLimit();
- method public int getRunLimit(java.text.AttributedCharacterIterator.Attribute);
- method public int getRunLimit(java.util.Set<? extends java.text.AttributedCharacterIterator.Attribute>);
- method public int getRunStart();
- method public int getRunStart(java.text.AttributedCharacterIterator.Attribute);
- method public int getRunStart(java.util.Set<? extends java.text.AttributedCharacterIterator.Attribute>);
- }
-
- public static class AttributedCharacterIterator.Attribute implements java.io.Serializable {
- ctor protected AttributedCharacterIterator.Attribute(String);
- method public final boolean equals(Object);
- method protected String getName();
- method public final int hashCode();
- method protected Object readResolve() throws java.io.InvalidObjectException;
- field public static final java.text.AttributedCharacterIterator.Attribute INPUT_METHOD_SEGMENT;
- field public static final java.text.AttributedCharacterIterator.Attribute LANGUAGE;
- field public static final java.text.AttributedCharacterIterator.Attribute READING;
- }
-
- public class AttributedString {
- ctor public AttributedString(String);
- ctor public AttributedString(String, java.util.Map<? extends java.text.AttributedCharacterIterator.Attribute,?>);
- ctor public AttributedString(java.text.AttributedCharacterIterator);
- ctor public AttributedString(java.text.AttributedCharacterIterator, int, int);
- ctor public AttributedString(java.text.AttributedCharacterIterator, int, int, java.text.AttributedCharacterIterator.Attribute[]);
- method public void addAttribute(java.text.AttributedCharacterIterator.Attribute, Object);
- method public void addAttribute(java.text.AttributedCharacterIterator.Attribute, Object, int, int);
- method public void addAttributes(java.util.Map<? extends java.text.AttributedCharacterIterator.Attribute,?>, int, int);
- method public java.text.AttributedCharacterIterator getIterator();
- method public java.text.AttributedCharacterIterator getIterator(java.text.AttributedCharacterIterator.Attribute[]);
- method public java.text.AttributedCharacterIterator getIterator(java.text.AttributedCharacterIterator.Attribute[], int, int);
- }
-
- public final class Bidi {
- ctor public Bidi(String, int);
- ctor public Bidi(java.text.AttributedCharacterIterator);
- ctor public Bidi(char[], int, byte[], int, int, int);
- method public boolean baseIsLeftToRight();
- method public java.text.Bidi createLineBidi(int, int);
- method public int getBaseLevel();
- method public int getLength();
- method public int getLevelAt(int);
- method public int getRunCount();
- method public int getRunLevel(int);
- method public int getRunLimit(int);
- method public int getRunStart(int);
- method public boolean isLeftToRight();
- method public boolean isMixed();
- method public boolean isRightToLeft();
- method public static void reorderVisually(byte[], int, Object[], int, int);
- method public static boolean requiresBidi(char[], int, int);
- field public static final int DIRECTION_DEFAULT_LEFT_TO_RIGHT = -2; // 0xfffffffe
- field public static final int DIRECTION_DEFAULT_RIGHT_TO_LEFT = -1; // 0xffffffff
- field public static final int DIRECTION_LEFT_TO_RIGHT = 0; // 0x0
- field public static final int DIRECTION_RIGHT_TO_LEFT = 1; // 0x1
- }
-
- public abstract class BreakIterator implements java.lang.Cloneable {
- ctor protected BreakIterator();
- method public Object clone();
- method public abstract int current();
- method public abstract int first();
- method public abstract int following(int);
- method public static java.util.Locale[] getAvailableLocales();
- method public static java.text.BreakIterator getCharacterInstance();
- method public static java.text.BreakIterator getCharacterInstance(java.util.Locale);
- method public static java.text.BreakIterator getLineInstance();
- method public static java.text.BreakIterator getLineInstance(java.util.Locale);
- method public static java.text.BreakIterator getSentenceInstance();
- method public static java.text.BreakIterator getSentenceInstance(java.util.Locale);
- method public abstract java.text.CharacterIterator getText();
- method public static java.text.BreakIterator getWordInstance();
- method public static java.text.BreakIterator getWordInstance(java.util.Locale);
- method public boolean isBoundary(int);
- method public abstract int last();
- method public abstract int next(int);
- method public abstract int next();
- method public int preceding(int);
- method public abstract int previous();
- method public void setText(String);
- method public abstract void setText(java.text.CharacterIterator);
- field public static final int DONE = -1; // 0xffffffff
- }
-
- public interface CharacterIterator extends java.lang.Cloneable {
- method public Object clone();
- method public char current();
- method public char first();
- method public int getBeginIndex();
- method public int getEndIndex();
- method public int getIndex();
- method public char last();
- method public char next();
- method public char previous();
- method public char setIndex(int);
- field public static final char DONE = 65535; // 0xffff '\uffff'
- }
-
- public class ChoiceFormat extends java.text.NumberFormat {
- ctor public ChoiceFormat(String);
- ctor public ChoiceFormat(double[], String[]);
- method public void applyPattern(String);
- method public StringBuffer format(long, StringBuffer, java.text.FieldPosition);
- method public StringBuffer format(double, StringBuffer, java.text.FieldPosition);
- method public Object[] getFormats();
- method public double[] getLimits();
- method public static final double nextDouble(double);
- method public static double nextDouble(double, boolean);
- method public Number parse(String, java.text.ParsePosition);
- method public static final double previousDouble(double);
- method public void setChoices(double[], String[]);
- method public String toPattern();
- }
-
- public final class CollationElementIterator {
- method public int getMaxExpansion(int);
- method public int getOffset();
- method public int next();
- method public int previous();
- method public static int primaryOrder(int);
- method public void reset();
- method public static short secondaryOrder(int);
- method public void setOffset(int);
- method public void setText(String);
- method public void setText(java.text.CharacterIterator);
- method public static short tertiaryOrder(int);
- field public static final int NULLORDER = -1; // 0xffffffff
- }
-
- public abstract class CollationKey implements java.lang.Comparable<java.text.CollationKey> {
- ctor protected CollationKey(String);
- method public abstract int compareTo(java.text.CollationKey);
- method public String getSourceString();
- method public abstract byte[] toByteArray();
- }
-
- public abstract class Collator implements java.lang.Cloneable java.util.Comparator<java.lang.Object> {
- ctor protected Collator();
- method public Object clone();
- method public abstract int compare(String, String);
- method public int compare(Object, Object);
- method public boolean equals(String, String);
- method public static java.util.Locale[] getAvailableLocales();
- method public abstract java.text.CollationKey getCollationKey(String);
- method public int getDecomposition();
- method public static java.text.Collator getInstance();
- method public static java.text.Collator getInstance(java.util.Locale);
- method public int getStrength();
- method public abstract int hashCode();
- method public void setDecomposition(int);
- method public void setStrength(int);
- field public static final int CANONICAL_DECOMPOSITION = 1; // 0x1
- field public static final int FULL_DECOMPOSITION = 2; // 0x2
- field public static final int IDENTICAL = 3; // 0x3
- field public static final int NO_DECOMPOSITION = 0; // 0x0
- field public static final int PRIMARY = 0; // 0x0
- field public static final int SECONDARY = 1; // 0x1
- field public static final int TERTIARY = 2; // 0x2
- }
-
- public abstract class DateFormat extends java.text.Format {
- ctor protected DateFormat();
- method @NonNull public final StringBuffer format(@NonNull Object, @NonNull StringBuffer, @NonNull java.text.FieldPosition);
- method @NonNull public abstract StringBuffer format(@NonNull java.util.Date, @NonNull StringBuffer, @NonNull java.text.FieldPosition);
- method @NonNull public final String format(@NonNull java.util.Date);
- method @NonNull public static java.util.Locale[] getAvailableLocales();
- method @NonNull public java.util.Calendar getCalendar();
- method @NonNull public static final java.text.DateFormat getDateInstance();
- method @NonNull public static final java.text.DateFormat getDateInstance(int);
- method @NonNull public static final java.text.DateFormat getDateInstance(int, @NonNull java.util.Locale);
- method @NonNull public static final java.text.DateFormat getDateTimeInstance();
- method @NonNull public static final java.text.DateFormat getDateTimeInstance(int, int);
- method @NonNull public static final java.text.DateFormat getDateTimeInstance(int, int, @NonNull java.util.Locale);
- method @NonNull public static final java.text.DateFormat getInstance();
- method @NonNull public java.text.NumberFormat getNumberFormat();
- method @NonNull public static final java.text.DateFormat getTimeInstance();
- method @NonNull public static final java.text.DateFormat getTimeInstance(int);
- method @NonNull public static final java.text.DateFormat getTimeInstance(int, @NonNull java.util.Locale);
- method @NonNull public java.util.TimeZone getTimeZone();
- method public boolean isLenient();
- method @Nullable public java.util.Date parse(@NonNull String) throws java.text.ParseException;
- method @Nullable public abstract java.util.Date parse(@NonNull String, @NonNull java.text.ParsePosition);
- method @Nullable public Object parseObject(@NonNull String, @NonNull java.text.ParsePosition);
- method public void setCalendar(@NonNull java.util.Calendar);
- method public void setLenient(boolean);
- method public void setNumberFormat(@NonNull java.text.NumberFormat);
- method public void setTimeZone(@NonNull java.util.TimeZone);
- field public static final int AM_PM_FIELD = 14; // 0xe
- field public static final int DATE_FIELD = 3; // 0x3
- field public static final int DAY_OF_WEEK_FIELD = 9; // 0x9
- field public static final int DAY_OF_WEEK_IN_MONTH_FIELD = 11; // 0xb
- field public static final int DAY_OF_YEAR_FIELD = 10; // 0xa
- field public static final int DEFAULT = 2; // 0x2
- field public static final int ERA_FIELD = 0; // 0x0
- field public static final int FULL = 0; // 0x0
- field public static final int HOUR0_FIELD = 16; // 0x10
- field public static final int HOUR1_FIELD = 15; // 0xf
- field public static final int HOUR_OF_DAY0_FIELD = 5; // 0x5
- field public static final int HOUR_OF_DAY1_FIELD = 4; // 0x4
- field public static final int LONG = 1; // 0x1
- field public static final int MEDIUM = 2; // 0x2
- field public static final int MILLISECOND_FIELD = 8; // 0x8
- field public static final int MINUTE_FIELD = 6; // 0x6
- field public static final int MONTH_FIELD = 2; // 0x2
- field public static final int SECOND_FIELD = 7; // 0x7
- field public static final int SHORT = 3; // 0x3
- field public static final int TIMEZONE_FIELD = 17; // 0x11
- field public static final int WEEK_OF_MONTH_FIELD = 13; // 0xd
- field public static final int WEEK_OF_YEAR_FIELD = 12; // 0xc
- field public static final int YEAR_FIELD = 1; // 0x1
- field @NonNull protected java.util.Calendar calendar;
- field @NonNull protected java.text.NumberFormat numberFormat;
- }
-
- public static class DateFormat.Field extends java.text.Format.Field {
- ctor protected DateFormat.Field(@NonNull String, int);
- method public int getCalendarField();
- method @NonNull public static java.text.DateFormat.Field ofCalendarField(int);
- field @NonNull public static final java.text.DateFormat.Field AM_PM;
- field @NonNull public static final java.text.DateFormat.Field DAY_OF_MONTH;
- field @NonNull public static final java.text.DateFormat.Field DAY_OF_WEEK;
- field @NonNull public static final java.text.DateFormat.Field DAY_OF_WEEK_IN_MONTH;
- field @NonNull public static final java.text.DateFormat.Field DAY_OF_YEAR;
- field @NonNull public static final java.text.DateFormat.Field ERA;
- field @NonNull public static final java.text.DateFormat.Field HOUR0;
- field @NonNull public static final java.text.DateFormat.Field HOUR1;
- field @NonNull public static final java.text.DateFormat.Field HOUR_OF_DAY0;
- field @NonNull public static final java.text.DateFormat.Field HOUR_OF_DAY1;
- field @NonNull public static final java.text.DateFormat.Field MILLISECOND;
- field @NonNull public static final java.text.DateFormat.Field MINUTE;
- field @NonNull public static final java.text.DateFormat.Field MONTH;
- field @NonNull public static final java.text.DateFormat.Field SECOND;
- field @NonNull public static final java.text.DateFormat.Field TIME_ZONE;
- field @NonNull public static final java.text.DateFormat.Field WEEK_OF_MONTH;
- field @NonNull public static final java.text.DateFormat.Field WEEK_OF_YEAR;
- field @NonNull public static final java.text.DateFormat.Field YEAR;
- }
-
- public class DateFormatSymbols implements java.lang.Cloneable java.io.Serializable {
- ctor public DateFormatSymbols();
- ctor public DateFormatSymbols(java.util.Locale);
- method public Object clone();
- method public String[] getAmPmStrings();
- method public static java.util.Locale[] getAvailableLocales();
- method public String[] getEras();
- method public static final java.text.DateFormatSymbols getInstance();
- method public static final java.text.DateFormatSymbols getInstance(java.util.Locale);
- method public String getLocalPatternChars();
- method public String[] getMonths();
- method public String[] getShortMonths();
- method public String[] getShortWeekdays();
- method public String[] getWeekdays();
- method public String[][] getZoneStrings();
- method public void setAmPmStrings(String[]);
- method public void setEras(String[]);
- method public void setLocalPatternChars(String);
- method public void setMonths(String[]);
- method public void setShortMonths(String[]);
- method public void setShortWeekdays(String[]);
- method public void setWeekdays(String[]);
- method public void setZoneStrings(String[][]);
- }
-
- public class DecimalFormat extends java.text.NumberFormat {
- ctor public DecimalFormat();
- ctor public DecimalFormat(String);
- ctor public DecimalFormat(String, java.text.DecimalFormatSymbols);
- method public void applyLocalizedPattern(String);
- method public void applyPattern(String);
- method public final StringBuffer format(Object, StringBuffer, java.text.FieldPosition);
- method public StringBuffer format(double, StringBuffer, java.text.FieldPosition);
- method public StringBuffer format(long, StringBuffer, java.text.FieldPosition);
- method public java.text.DecimalFormatSymbols getDecimalFormatSymbols();
- method public int getGroupingSize();
- method public int getMultiplier();
- method public String getNegativePrefix();
- method public String getNegativeSuffix();
- method public String getPositivePrefix();
- method public String getPositiveSuffix();
- method public boolean isDecimalSeparatorAlwaysShown();
- method public boolean isParseBigDecimal();
- method public Number parse(String, java.text.ParsePosition);
- method public void setDecimalFormatSymbols(java.text.DecimalFormatSymbols);
- method public void setDecimalSeparatorAlwaysShown(boolean);
- method public void setGroupingSize(int);
- method public void setMultiplier(int);
- method public void setNegativePrefix(String);
- method public void setNegativeSuffix(String);
- method public void setParseBigDecimal(boolean);
- method public void setPositivePrefix(String);
- method public void setPositiveSuffix(String);
- method public String toLocalizedPattern();
- method public String toPattern();
- }
-
- public class DecimalFormatSymbols implements java.lang.Cloneable java.io.Serializable {
- ctor public DecimalFormatSymbols();
- ctor public DecimalFormatSymbols(java.util.Locale);
- method public Object clone();
- method public static java.util.Locale[] getAvailableLocales();
- method public java.util.Currency getCurrency();
- method public String getCurrencySymbol();
- method public char getDecimalSeparator();
- method public char getDigit();
- method public String getExponentSeparator();
- method public char getGroupingSeparator();
- method public String getInfinity();
- method public static final java.text.DecimalFormatSymbols getInstance();
- method public static final java.text.DecimalFormatSymbols getInstance(java.util.Locale);
- method public String getInternationalCurrencySymbol();
- method public char getMinusSign();
- method public char getMonetaryDecimalSeparator();
- method public String getNaN();
- method public char getPatternSeparator();
- method public char getPerMill();
- method public char getPercent();
- method public char getZeroDigit();
- method public void setCurrency(java.util.Currency);
- method public void setCurrencySymbol(String);
- method public void setDecimalSeparator(char);
- method public void setDigit(char);
- method public void setExponentSeparator(String);
- method public void setGroupingSeparator(char);
- method public void setInfinity(String);
- method public void setInternationalCurrencySymbol(String);
- method public void setMinusSign(char);
- method public void setMonetaryDecimalSeparator(char);
- method public void setNaN(String);
- method public void setPatternSeparator(char);
- method public void setPerMill(char);
- method public void setPercent(char);
- method public void setZeroDigit(char);
- }
-
- public class FieldPosition {
- ctor public FieldPosition(int);
- ctor public FieldPosition(java.text.Format.Field);
- ctor public FieldPosition(java.text.Format.Field, int);
- method public int getBeginIndex();
- method public int getEndIndex();
- method public int getField();
- method public java.text.Format.Field getFieldAttribute();
- method public void setBeginIndex(int);
- method public void setEndIndex(int);
- }
-
- public abstract class Format implements java.lang.Cloneable java.io.Serializable {
- ctor protected Format();
- method public Object clone();
- method public final String format(Object);
- method public abstract StringBuffer format(Object, StringBuffer, java.text.FieldPosition);
- method public java.text.AttributedCharacterIterator formatToCharacterIterator(Object);
- method public abstract Object parseObject(String, java.text.ParsePosition);
- method public Object parseObject(String) throws java.text.ParseException;
- }
-
- public static class Format.Field extends java.text.AttributedCharacterIterator.Attribute {
- ctor protected Format.Field(String);
- }
-
- public class MessageFormat extends java.text.Format {
- ctor public MessageFormat(String);
- ctor public MessageFormat(String, java.util.Locale);
- method public void applyPattern(String);
- method public final StringBuffer format(Object[], StringBuffer, java.text.FieldPosition);
- method public static String format(String, java.lang.Object...);
- method public final StringBuffer format(Object, StringBuffer, java.text.FieldPosition);
- method public java.text.Format[] getFormats();
- method public java.text.Format[] getFormatsByArgumentIndex();
- method public java.util.Locale getLocale();
- method public Object[] parse(String, java.text.ParsePosition);
- method public Object[] parse(String) throws java.text.ParseException;
- method public Object parseObject(String, java.text.ParsePosition);
- method public void setFormat(int, java.text.Format);
- method public void setFormatByArgumentIndex(int, java.text.Format);
- method public void setFormats(java.text.Format[]);
- method public void setFormatsByArgumentIndex(java.text.Format[]);
- method public void setLocale(java.util.Locale);
- method public String toPattern();
- }
-
- public static class MessageFormat.Field extends java.text.Format.Field {
- ctor protected MessageFormat.Field(String);
- field public static final java.text.MessageFormat.Field ARGUMENT;
- }
-
- public final class Normalizer {
- method public static boolean isNormalized(CharSequence, java.text.Normalizer.Form);
- method public static String normalize(CharSequence, java.text.Normalizer.Form);
- }
-
- public enum Normalizer.Form {
- enum_constant public static final java.text.Normalizer.Form NFC;
- enum_constant public static final java.text.Normalizer.Form NFD;
- enum_constant public static final java.text.Normalizer.Form NFKC;
- enum_constant public static final java.text.Normalizer.Form NFKD;
- }
-
- public abstract class NumberFormat extends java.text.Format {
- ctor protected NumberFormat();
- method @NonNull public StringBuffer format(@NonNull Object, @NonNull StringBuffer, @NonNull java.text.FieldPosition);
- method @NonNull public final String format(double);
- method @NonNull public final String format(long);
- method @NonNull public abstract StringBuffer format(double, @NonNull StringBuffer, @NonNull java.text.FieldPosition);
- method @NonNull public abstract StringBuffer format(long, @NonNull StringBuffer, @NonNull java.text.FieldPosition);
- method @NonNull public static java.util.Locale[] getAvailableLocales();
- method @Nullable public java.util.Currency getCurrency();
- method @NonNull public static final java.text.NumberFormat getCurrencyInstance();
- method @NonNull public static java.text.NumberFormat getCurrencyInstance(@NonNull java.util.Locale);
- method @NonNull public static final java.text.NumberFormat getInstance();
- method @NonNull public static java.text.NumberFormat getInstance(@NonNull java.util.Locale);
- method @NonNull public static final java.text.NumberFormat getIntegerInstance();
- method @NonNull public static java.text.NumberFormat getIntegerInstance(@NonNull java.util.Locale);
- method public int getMaximumFractionDigits();
- method public int getMaximumIntegerDigits();
- method public int getMinimumFractionDigits();
- method public int getMinimumIntegerDigits();
- method @NonNull public static final java.text.NumberFormat getNumberInstance();
- method @NonNull public static java.text.NumberFormat getNumberInstance(@NonNull java.util.Locale);
- method @NonNull public static final java.text.NumberFormat getPercentInstance();
- method @NonNull public static java.text.NumberFormat getPercentInstance(@NonNull java.util.Locale);
- method @NonNull public java.math.RoundingMode getRoundingMode();
- method public boolean isGroupingUsed();
- method public boolean isParseIntegerOnly();
- method @Nullable public abstract Number parse(@NonNull String, @NonNull java.text.ParsePosition);
- method @Nullable public Number parse(@NonNull String) throws java.text.ParseException;
- method @Nullable public final Object parseObject(@NonNull String, @NonNull java.text.ParsePosition);
- method public void setCurrency(@NonNull java.util.Currency);
- method public void setGroupingUsed(boolean);
- method public void setMaximumFractionDigits(int);
- method public void setMaximumIntegerDigits(int);
- method public void setMinimumFractionDigits(int);
- method public void setMinimumIntegerDigits(int);
- method public void setParseIntegerOnly(boolean);
- method public void setRoundingMode(@Nullable java.math.RoundingMode);
- field public static final int FRACTION_FIELD = 1; // 0x1
- field public static final int INTEGER_FIELD = 0; // 0x0
- }
-
- public static class NumberFormat.Field extends java.text.Format.Field {
- ctor protected NumberFormat.Field(@NonNull String);
- field @NonNull public static final java.text.NumberFormat.Field CURRENCY;
- field @NonNull public static final java.text.NumberFormat.Field DECIMAL_SEPARATOR;
- field @NonNull public static final java.text.NumberFormat.Field EXPONENT;
- field @NonNull public static final java.text.NumberFormat.Field EXPONENT_SIGN;
- field @NonNull public static final java.text.NumberFormat.Field EXPONENT_SYMBOL;
- field @NonNull public static final java.text.NumberFormat.Field FRACTION;
- field @NonNull public static final java.text.NumberFormat.Field GROUPING_SEPARATOR;
- field @NonNull public static final java.text.NumberFormat.Field INTEGER;
- field @NonNull public static final java.text.NumberFormat.Field PERCENT;
- field @NonNull public static final java.text.NumberFormat.Field PERMILLE;
- field @NonNull public static final java.text.NumberFormat.Field SIGN;
- }
-
- public class ParseException extends java.lang.Exception {
- ctor public ParseException(String, int);
- method public int getErrorOffset();
- }
-
- public class ParsePosition {
- ctor public ParsePosition(int);
- method public int getErrorIndex();
- method public int getIndex();
- method public void setErrorIndex(int);
- method public void setIndex(int);
- }
-
- public class RuleBasedCollator extends java.text.Collator {
- ctor public RuleBasedCollator(String) throws java.text.ParseException;
- method public int compare(String, String);
- method public java.text.CollationElementIterator getCollationElementIterator(String);
- method public java.text.CollationElementIterator getCollationElementIterator(java.text.CharacterIterator);
- method public java.text.CollationKey getCollationKey(String);
- method public String getRules();
- }
-
- public class SimpleDateFormat extends java.text.DateFormat {
- ctor public SimpleDateFormat();
- ctor public SimpleDateFormat(String);
- ctor public SimpleDateFormat(String, java.util.Locale);
- ctor public SimpleDateFormat(String, java.text.DateFormatSymbols);
- method public void applyLocalizedPattern(String);
- method public void applyPattern(String);
- method public StringBuffer format(java.util.Date, StringBuffer, java.text.FieldPosition);
- method public java.util.Date get2DigitYearStart();
- method public java.text.DateFormatSymbols getDateFormatSymbols();
- method public java.util.Date parse(String, java.text.ParsePosition);
- method public void set2DigitYearStart(java.util.Date);
- method public void setDateFormatSymbols(java.text.DateFormatSymbols);
- method public String toLocalizedPattern();
- method public String toPattern();
- }
-
- public final class StringCharacterIterator implements java.text.CharacterIterator {
- ctor public StringCharacterIterator(String);
- ctor public StringCharacterIterator(String, int);
- ctor public StringCharacterIterator(String, int, int, int);
- method public Object clone();
- method public char current();
- method public char first();
- method public int getBeginIndex();
- method public int getEndIndex();
- method public int getIndex();
- method public char last();
- method public char next();
- method public char previous();
- method public char setIndex(int);
- method public void setText(String);
- }
-
-}
-
-package java.time {
-
- public abstract class Clock {
- ctor protected Clock();
- method public static java.time.Clock fixed(java.time.Instant, java.time.ZoneId);
- method public abstract java.time.ZoneId getZone();
- method public abstract java.time.Instant instant();
- method public long millis();
- method public static java.time.Clock offset(java.time.Clock, java.time.Duration);
- method public static java.time.Clock system(java.time.ZoneId);
- method public static java.time.Clock systemDefaultZone();
- method public static java.time.Clock systemUTC();
- method public static java.time.Clock tick(java.time.Clock, java.time.Duration);
- method public static java.time.Clock tickMinutes(java.time.ZoneId);
- method public static java.time.Clock tickSeconds(java.time.ZoneId);
- method public abstract java.time.Clock withZone(java.time.ZoneId);
- }
-
- public class DateTimeException extends java.lang.RuntimeException {
- ctor public DateTimeException(String);
- ctor public DateTimeException(String, Throwable);
- }
-
- public enum DayOfWeek implements java.time.temporal.TemporalAccessor java.time.temporal.TemporalAdjuster {
- method public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal);
- method public static java.time.DayOfWeek from(java.time.temporal.TemporalAccessor);
- method public String getDisplayName(java.time.format.TextStyle, java.util.Locale);
- method public long getLong(java.time.temporal.TemporalField);
- method public int getValue();
- method public boolean isSupported(java.time.temporal.TemporalField);
- method public java.time.DayOfWeek minus(long);
- method public static java.time.DayOfWeek of(int);
- method public java.time.DayOfWeek plus(long);
- enum_constant public static final java.time.DayOfWeek FRIDAY;
- enum_constant public static final java.time.DayOfWeek MONDAY;
- enum_constant public static final java.time.DayOfWeek SATURDAY;
- enum_constant public static final java.time.DayOfWeek SUNDAY;
- enum_constant public static final java.time.DayOfWeek THURSDAY;
- enum_constant public static final java.time.DayOfWeek TUESDAY;
- enum_constant public static final java.time.DayOfWeek WEDNESDAY;
- }
-
- public final class Duration implements java.lang.Comparable<java.time.Duration> java.io.Serializable java.time.temporal.TemporalAmount {
- method public java.time.Duration abs();
- method public java.time.temporal.Temporal addTo(java.time.temporal.Temporal);
- method public static java.time.Duration between(java.time.temporal.Temporal, java.time.temporal.Temporal);
- method public int compareTo(java.time.Duration);
- method public java.time.Duration dividedBy(long);
- method public static java.time.Duration from(java.time.temporal.TemporalAmount);
- method public long get(java.time.temporal.TemporalUnit);
- method public int getNano();
- method public long getSeconds();
- method public java.util.List<java.time.temporal.TemporalUnit> getUnits();
- method public boolean isNegative();
- method public boolean isZero();
- method public java.time.Duration minus(java.time.Duration);
- method public java.time.Duration minus(long, java.time.temporal.TemporalUnit);
- method public java.time.Duration minusDays(long);
- method public java.time.Duration minusHours(long);
- method public java.time.Duration minusMillis(long);
- method public java.time.Duration minusMinutes(long);
- method public java.time.Duration minusNanos(long);
- method public java.time.Duration minusSeconds(long);
- method public java.time.Duration multipliedBy(long);
- method public java.time.Duration negated();
- method public static java.time.Duration of(long, java.time.temporal.TemporalUnit);
- method public static java.time.Duration ofDays(long);
- method public static java.time.Duration ofHours(long);
- method public static java.time.Duration ofMillis(long);
- method public static java.time.Duration ofMinutes(long);
- method public static java.time.Duration ofNanos(long);
- method public static java.time.Duration ofSeconds(long);
- method public static java.time.Duration ofSeconds(long, long);
- method public static java.time.Duration parse(CharSequence);
- method public java.time.Duration plus(java.time.Duration);
- method public java.time.Duration plus(long, java.time.temporal.TemporalUnit);
- method public java.time.Duration plusDays(long);
- method public java.time.Duration plusHours(long);
- method public java.time.Duration plusMillis(long);
- method public java.time.Duration plusMinutes(long);
- method public java.time.Duration plusNanos(long);
- method public java.time.Duration plusSeconds(long);
- method public java.time.temporal.Temporal subtractFrom(java.time.temporal.Temporal);
- method public long toDays();
- method public long toHours();
- method public long toMillis();
- method public long toMinutes();
- method public long toNanos();
- method public java.time.Duration withNanos(int);
- method public java.time.Duration withSeconds(long);
- field public static final java.time.Duration ZERO;
- }
-
- public final class Instant implements java.lang.Comparable<java.time.Instant> java.io.Serializable java.time.temporal.Temporal java.time.temporal.TemporalAdjuster {
- method public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal);
- method public java.time.OffsetDateTime atOffset(java.time.ZoneOffset);
- method public java.time.ZonedDateTime atZone(java.time.ZoneId);
- method public int compareTo(java.time.Instant);
- method public static java.time.Instant from(java.time.temporal.TemporalAccessor);
- method public long getEpochSecond();
- method public long getLong(java.time.temporal.TemporalField);
- method public int getNano();
- method public boolean isAfter(java.time.Instant);
- method public boolean isBefore(java.time.Instant);
- method public boolean isSupported(java.time.temporal.TemporalField);
- method public boolean isSupported(java.time.temporal.TemporalUnit);
- method public java.time.Instant minus(java.time.temporal.TemporalAmount);
- method public java.time.Instant minus(long, java.time.temporal.TemporalUnit);
- method public java.time.Instant minusMillis(long);
- method public java.time.Instant minusNanos(long);
- method public java.time.Instant minusSeconds(long);
- method public static java.time.Instant now();
- method public static java.time.Instant now(java.time.Clock);
- method public static java.time.Instant ofEpochMilli(long);
- method public static java.time.Instant ofEpochSecond(long);
- method public static java.time.Instant ofEpochSecond(long, long);
- method public static java.time.Instant parse(CharSequence);
- method public java.time.Instant plus(java.time.temporal.TemporalAmount);
- method public java.time.Instant plus(long, java.time.temporal.TemporalUnit);
- method public java.time.Instant plusMillis(long);
- method public java.time.Instant plusNanos(long);
- method public java.time.Instant plusSeconds(long);
- method public long toEpochMilli();
- method public java.time.Instant truncatedTo(java.time.temporal.TemporalUnit);
- method public long until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit);
- method public java.time.Instant with(java.time.temporal.TemporalAdjuster);
- method public java.time.Instant with(java.time.temporal.TemporalField, long);
- field public static final java.time.Instant EPOCH;
- field public static final java.time.Instant MAX;
- field public static final java.time.Instant MIN;
- }
-
- public final class LocalDate implements java.time.chrono.ChronoLocalDate java.io.Serializable java.time.temporal.Temporal java.time.temporal.TemporalAdjuster {
- method public java.time.LocalDateTime atStartOfDay();
- method public java.time.ZonedDateTime atStartOfDay(java.time.ZoneId);
- method public java.time.LocalDateTime atTime(java.time.LocalTime);
- method public java.time.LocalDateTime atTime(int, int);
- method public java.time.LocalDateTime atTime(int, int, int);
- method public java.time.LocalDateTime atTime(int, int, int, int);
- method public java.time.OffsetDateTime atTime(java.time.OffsetTime);
- method public static java.time.LocalDate from(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.IsoChronology getChronology();
- method public int getDayOfMonth();
- method public java.time.DayOfWeek getDayOfWeek();
- method public int getDayOfYear();
- method public long getLong(java.time.temporal.TemporalField);
- method public java.time.Month getMonth();
- method public int getMonthValue();
- method public int getYear();
- method public int lengthOfMonth();
- method public java.time.LocalDate minus(java.time.temporal.TemporalAmount);
- method public java.time.LocalDate minus(long, java.time.temporal.TemporalUnit);
- method public java.time.LocalDate minusDays(long);
- method public java.time.LocalDate minusMonths(long);
- method public java.time.LocalDate minusWeeks(long);
- method public java.time.LocalDate minusYears(long);
- method public static java.time.LocalDate now();
- method public static java.time.LocalDate now(java.time.ZoneId);
- method public static java.time.LocalDate now(java.time.Clock);
- method public static java.time.LocalDate of(int, java.time.Month, int);
- method public static java.time.LocalDate of(int, int, int);
- method public static java.time.LocalDate ofEpochDay(long);
- method public static java.time.LocalDate ofYearDay(int, int);
- method public static java.time.LocalDate parse(CharSequence);
- method public static java.time.LocalDate parse(CharSequence, java.time.format.DateTimeFormatter);
- method public java.time.LocalDate plus(java.time.temporal.TemporalAmount);
- method public java.time.LocalDate plus(long, java.time.temporal.TemporalUnit);
- method public java.time.LocalDate plusDays(long);
- method public java.time.LocalDate plusMonths(long);
- method public java.time.LocalDate plusWeeks(long);
- method public java.time.LocalDate plusYears(long);
- method public long until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit);
- method public java.time.Period until(java.time.chrono.ChronoLocalDate);
- method public java.time.LocalDate with(java.time.temporal.TemporalAdjuster);
- method public java.time.LocalDate with(java.time.temporal.TemporalField, long);
- method public java.time.LocalDate withDayOfMonth(int);
- method public java.time.LocalDate withDayOfYear(int);
- method public java.time.LocalDate withMonth(int);
- method public java.time.LocalDate withYear(int);
- field public static final java.time.LocalDate MAX;
- field public static final java.time.LocalDate MIN;
- }
-
- public final class LocalDateTime implements java.time.chrono.ChronoLocalDateTime<java.time.LocalDate> java.io.Serializable java.time.temporal.Temporal java.time.temporal.TemporalAdjuster {
- method public java.time.OffsetDateTime atOffset(java.time.ZoneOffset);
- method public java.time.ZonedDateTime atZone(java.time.ZoneId);
- method public static java.time.LocalDateTime from(java.time.temporal.TemporalAccessor);
- method public int getDayOfMonth();
- method public java.time.DayOfWeek getDayOfWeek();
- method public int getDayOfYear();
- method public int getHour();
- method public long getLong(java.time.temporal.TemporalField);
- method public int getMinute();
- method public java.time.Month getMonth();
- method public int getMonthValue();
- method public int getNano();
- method public int getSecond();
- method public int getYear();
- method public boolean isSupported(java.time.temporal.TemporalField);
- method public java.time.LocalDateTime minus(java.time.temporal.TemporalAmount);
- method public java.time.LocalDateTime minus(long, java.time.temporal.TemporalUnit);
- method public java.time.LocalDateTime minusDays(long);
- method public java.time.LocalDateTime minusHours(long);
- method public java.time.LocalDateTime minusMinutes(long);
- method public java.time.LocalDateTime minusMonths(long);
- method public java.time.LocalDateTime minusNanos(long);
- method public java.time.LocalDateTime minusSeconds(long);
- method public java.time.LocalDateTime minusWeeks(long);
- method public java.time.LocalDateTime minusYears(long);
- method public static java.time.LocalDateTime now();
- method public static java.time.LocalDateTime now(java.time.ZoneId);
- method public static java.time.LocalDateTime now(java.time.Clock);
- method public static java.time.LocalDateTime of(int, java.time.Month, int, int, int);
- method public static java.time.LocalDateTime of(int, java.time.Month, int, int, int, int);
- method public static java.time.LocalDateTime of(int, java.time.Month, int, int, int, int, int);
- method public static java.time.LocalDateTime of(int, int, int, int, int);
- method public static java.time.LocalDateTime of(int, int, int, int, int, int);
- method public static java.time.LocalDateTime of(int, int, int, int, int, int, int);
- method public static java.time.LocalDateTime of(java.time.LocalDate, java.time.LocalTime);
- method public static java.time.LocalDateTime ofEpochSecond(long, int, java.time.ZoneOffset);
- method public static java.time.LocalDateTime ofInstant(java.time.Instant, java.time.ZoneId);
- method public static java.time.LocalDateTime parse(CharSequence);
- method public static java.time.LocalDateTime parse(CharSequence, java.time.format.DateTimeFormatter);
- method public java.time.LocalDateTime plus(java.time.temporal.TemporalAmount);
- method public java.time.LocalDateTime plus(long, java.time.temporal.TemporalUnit);
- method public java.time.LocalDateTime plusDays(long);
- method public java.time.LocalDateTime plusHours(long);
- method public java.time.LocalDateTime plusMinutes(long);
- method public java.time.LocalDateTime plusMonths(long);
- method public java.time.LocalDateTime plusNanos(long);
- method public java.time.LocalDateTime plusSeconds(long);
- method public java.time.LocalDateTime plusWeeks(long);
- method public java.time.LocalDateTime plusYears(long);
- method public java.time.LocalDate toLocalDate();
- method public java.time.LocalTime toLocalTime();
- method public java.time.LocalDateTime truncatedTo(java.time.temporal.TemporalUnit);
- method public long until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit);
- method public java.time.LocalDateTime with(java.time.temporal.TemporalAdjuster);
- method public java.time.LocalDateTime with(java.time.temporal.TemporalField, long);
- method public java.time.LocalDateTime withDayOfMonth(int);
- method public java.time.LocalDateTime withDayOfYear(int);
- method public java.time.LocalDateTime withHour(int);
- method public java.time.LocalDateTime withMinute(int);
- method public java.time.LocalDateTime withMonth(int);
- method public java.time.LocalDateTime withNano(int);
- method public java.time.LocalDateTime withSecond(int);
- method public java.time.LocalDateTime withYear(int);
- field public static final java.time.LocalDateTime MAX;
- field public static final java.time.LocalDateTime MIN;
- }
-
- public final class LocalTime implements java.lang.Comparable<java.time.LocalTime> java.io.Serializable java.time.temporal.Temporal java.time.temporal.TemporalAdjuster {
- method public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal);
- method public java.time.LocalDateTime atDate(java.time.LocalDate);
- method public java.time.OffsetTime atOffset(java.time.ZoneOffset);
- method public int compareTo(java.time.LocalTime);
- method public String format(java.time.format.DateTimeFormatter);
- method public static java.time.LocalTime from(java.time.temporal.TemporalAccessor);
- method public int getHour();
- method public long getLong(java.time.temporal.TemporalField);
- method public int getMinute();
- method public int getNano();
- method public int getSecond();
- method public boolean isAfter(java.time.LocalTime);
- method public boolean isBefore(java.time.LocalTime);
- method public boolean isSupported(java.time.temporal.TemporalField);
- method public boolean isSupported(java.time.temporal.TemporalUnit);
- method public java.time.LocalTime minus(java.time.temporal.TemporalAmount);
- method public java.time.LocalTime minus(long, java.time.temporal.TemporalUnit);
- method public java.time.LocalTime minusHours(long);
- method public java.time.LocalTime minusMinutes(long);
- method public java.time.LocalTime minusNanos(long);
- method public java.time.LocalTime minusSeconds(long);
- method public static java.time.LocalTime now();
- method public static java.time.LocalTime now(java.time.ZoneId);
- method public static java.time.LocalTime now(java.time.Clock);
- method public static java.time.LocalTime of(int, int);
- method public static java.time.LocalTime of(int, int, int);
- method public static java.time.LocalTime of(int, int, int, int);
- method public static java.time.LocalTime ofNanoOfDay(long);
- method public static java.time.LocalTime ofSecondOfDay(long);
- method public static java.time.LocalTime parse(CharSequence);
- method public static java.time.LocalTime parse(CharSequence, java.time.format.DateTimeFormatter);
- method public java.time.LocalTime plus(java.time.temporal.TemporalAmount);
- method public java.time.LocalTime plus(long, java.time.temporal.TemporalUnit);
- method public java.time.LocalTime plusHours(long);
- method public java.time.LocalTime plusMinutes(long);
- method public java.time.LocalTime plusNanos(long);
- method public java.time.LocalTime plusSeconds(long);
- method public long toNanoOfDay();
- method public int toSecondOfDay();
- method public java.time.LocalTime truncatedTo(java.time.temporal.TemporalUnit);
- method public long until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit);
- method public java.time.LocalTime with(java.time.temporal.TemporalAdjuster);
- method public java.time.LocalTime with(java.time.temporal.TemporalField, long);
- method public java.time.LocalTime withHour(int);
- method public java.time.LocalTime withMinute(int);
- method public java.time.LocalTime withNano(int);
- method public java.time.LocalTime withSecond(int);
- field public static final java.time.LocalTime MAX;
- field public static final java.time.LocalTime MIDNIGHT;
- field public static final java.time.LocalTime MIN;
- field public static final java.time.LocalTime NOON;
- }
-
- public enum Month implements java.time.temporal.TemporalAccessor java.time.temporal.TemporalAdjuster {
- method public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal);
- method public int firstDayOfYear(boolean);
- method public java.time.Month firstMonthOfQuarter();
- method public static java.time.Month from(java.time.temporal.TemporalAccessor);
- method public String getDisplayName(java.time.format.TextStyle, java.util.Locale);
- method public long getLong(java.time.temporal.TemporalField);
- method public int getValue();
- method public boolean isSupported(java.time.temporal.TemporalField);
- method public int length(boolean);
- method public int maxLength();
- method public int minLength();
- method public java.time.Month minus(long);
- method public static java.time.Month of(int);
- method public java.time.Month plus(long);
- enum_constant public static final java.time.Month APRIL;
- enum_constant public static final java.time.Month AUGUST;
- enum_constant public static final java.time.Month DECEMBER;
- enum_constant public static final java.time.Month FEBRUARY;
- enum_constant public static final java.time.Month JANUARY;
- enum_constant public static final java.time.Month JULY;
- enum_constant public static final java.time.Month JUNE;
- enum_constant public static final java.time.Month MARCH;
- enum_constant public static final java.time.Month MAY;
- enum_constant public static final java.time.Month NOVEMBER;
- enum_constant public static final java.time.Month OCTOBER;
- enum_constant public static final java.time.Month SEPTEMBER;
- }
-
- public final class MonthDay implements java.lang.Comparable<java.time.MonthDay> java.io.Serializable java.time.temporal.TemporalAccessor java.time.temporal.TemporalAdjuster {
- method public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal);
- method public java.time.LocalDate atYear(int);
- method public int compareTo(java.time.MonthDay);
- method public String format(java.time.format.DateTimeFormatter);
- method public static java.time.MonthDay from(java.time.temporal.TemporalAccessor);
- method public int getDayOfMonth();
- method public long getLong(java.time.temporal.TemporalField);
- method public java.time.Month getMonth();
- method public int getMonthValue();
- method public boolean isAfter(java.time.MonthDay);
- method public boolean isBefore(java.time.MonthDay);
- method public boolean isSupported(java.time.temporal.TemporalField);
- method public boolean isValidYear(int);
- method public static java.time.MonthDay now();
- method public static java.time.MonthDay now(java.time.ZoneId);
- method public static java.time.MonthDay now(java.time.Clock);
- method public static java.time.MonthDay of(java.time.Month, int);
- method public static java.time.MonthDay of(int, int);
- method public static java.time.MonthDay parse(CharSequence);
- method public static java.time.MonthDay parse(CharSequence, java.time.format.DateTimeFormatter);
- method public java.time.MonthDay with(java.time.Month);
- method public java.time.MonthDay withDayOfMonth(int);
- method public java.time.MonthDay withMonth(int);
- }
-
- public final class OffsetDateTime implements java.lang.Comparable<java.time.OffsetDateTime> java.io.Serializable java.time.temporal.Temporal java.time.temporal.TemporalAdjuster {
- method public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal);
- method public java.time.ZonedDateTime atZoneSameInstant(java.time.ZoneId);
- method public java.time.ZonedDateTime atZoneSimilarLocal(java.time.ZoneId);
- method public int compareTo(java.time.OffsetDateTime);
- method public String format(java.time.format.DateTimeFormatter);
- method public static java.time.OffsetDateTime from(java.time.temporal.TemporalAccessor);
- method public int getDayOfMonth();
- method public java.time.DayOfWeek getDayOfWeek();
- method public int getDayOfYear();
- method public int getHour();
- method public long getLong(java.time.temporal.TemporalField);
- method public int getMinute();
- method public java.time.Month getMonth();
- method public int getMonthValue();
- method public int getNano();
- method public java.time.ZoneOffset getOffset();
- method public int getSecond();
- method public int getYear();
- method public boolean isAfter(java.time.OffsetDateTime);
- method public boolean isBefore(java.time.OffsetDateTime);
- method public boolean isEqual(java.time.OffsetDateTime);
- method public boolean isSupported(java.time.temporal.TemporalField);
- method public boolean isSupported(java.time.temporal.TemporalUnit);
- method public java.time.OffsetDateTime minus(java.time.temporal.TemporalAmount);
- method public java.time.OffsetDateTime minus(long, java.time.temporal.TemporalUnit);
- method public java.time.OffsetDateTime minusDays(long);
- method public java.time.OffsetDateTime minusHours(long);
- method public java.time.OffsetDateTime minusMinutes(long);
- method public java.time.OffsetDateTime minusMonths(long);
- method public java.time.OffsetDateTime minusNanos(long);
- method public java.time.OffsetDateTime minusSeconds(long);
- method public java.time.OffsetDateTime minusWeeks(long);
- method public java.time.OffsetDateTime minusYears(long);
- method public static java.time.OffsetDateTime now();
- method public static java.time.OffsetDateTime now(java.time.ZoneId);
- method public static java.time.OffsetDateTime now(java.time.Clock);
- method public static java.time.OffsetDateTime of(java.time.LocalDate, java.time.LocalTime, java.time.ZoneOffset);
- method public static java.time.OffsetDateTime of(java.time.LocalDateTime, java.time.ZoneOffset);
- method public static java.time.OffsetDateTime of(int, int, int, int, int, int, int, java.time.ZoneOffset);
- method public static java.time.OffsetDateTime ofInstant(java.time.Instant, java.time.ZoneId);
- method public static java.time.OffsetDateTime parse(CharSequence);
- method public static java.time.OffsetDateTime parse(CharSequence, java.time.format.DateTimeFormatter);
- method public java.time.OffsetDateTime plus(java.time.temporal.TemporalAmount);
- method public java.time.OffsetDateTime plus(long, java.time.temporal.TemporalUnit);
- method public java.time.OffsetDateTime plusDays(long);
- method public java.time.OffsetDateTime plusHours(long);
- method public java.time.OffsetDateTime plusMinutes(long);
- method public java.time.OffsetDateTime plusMonths(long);
- method public java.time.OffsetDateTime plusNanos(long);
- method public java.time.OffsetDateTime plusSeconds(long);
- method public java.time.OffsetDateTime plusWeeks(long);
- method public java.time.OffsetDateTime plusYears(long);
- method public static java.util.Comparator<java.time.OffsetDateTime> timeLineOrder();
- method public long toEpochSecond();
- method public java.time.Instant toInstant();
- method public java.time.LocalDate toLocalDate();
- method public java.time.LocalDateTime toLocalDateTime();
- method public java.time.LocalTime toLocalTime();
- method public java.time.OffsetTime toOffsetTime();
- method public java.time.ZonedDateTime toZonedDateTime();
- method public java.time.OffsetDateTime truncatedTo(java.time.temporal.TemporalUnit);
- method public long until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit);
- method public java.time.OffsetDateTime with(java.time.temporal.TemporalAdjuster);
- method public java.time.OffsetDateTime with(java.time.temporal.TemporalField, long);
- method public java.time.OffsetDateTime withDayOfMonth(int);
- method public java.time.OffsetDateTime withDayOfYear(int);
- method public java.time.OffsetDateTime withHour(int);
- method public java.time.OffsetDateTime withMinute(int);
- method public java.time.OffsetDateTime withMonth(int);
- method public java.time.OffsetDateTime withNano(int);
- method public java.time.OffsetDateTime withOffsetSameInstant(java.time.ZoneOffset);
- method public java.time.OffsetDateTime withOffsetSameLocal(java.time.ZoneOffset);
- method public java.time.OffsetDateTime withSecond(int);
- method public java.time.OffsetDateTime withYear(int);
- field public static final java.time.OffsetDateTime MAX;
- field public static final java.time.OffsetDateTime MIN;
- }
-
- public final class OffsetTime implements java.lang.Comparable<java.time.OffsetTime> java.io.Serializable java.time.temporal.Temporal java.time.temporal.TemporalAdjuster {
- method public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal);
- method public java.time.OffsetDateTime atDate(java.time.LocalDate);
- method public int compareTo(java.time.OffsetTime);
- method public String format(java.time.format.DateTimeFormatter);
- method public static java.time.OffsetTime from(java.time.temporal.TemporalAccessor);
- method public int getHour();
- method public long getLong(java.time.temporal.TemporalField);
- method public int getMinute();
- method public int getNano();
- method public java.time.ZoneOffset getOffset();
- method public int getSecond();
- method public boolean isAfter(java.time.OffsetTime);
- method public boolean isBefore(java.time.OffsetTime);
- method public boolean isEqual(java.time.OffsetTime);
- method public boolean isSupported(java.time.temporal.TemporalField);
- method public boolean isSupported(java.time.temporal.TemporalUnit);
- method public java.time.OffsetTime minus(java.time.temporal.TemporalAmount);
- method public java.time.OffsetTime minus(long, java.time.temporal.TemporalUnit);
- method public java.time.OffsetTime minusHours(long);
- method public java.time.OffsetTime minusMinutes(long);
- method public java.time.OffsetTime minusNanos(long);
- method public java.time.OffsetTime minusSeconds(long);
- method public static java.time.OffsetTime now();
- method public static java.time.OffsetTime now(java.time.ZoneId);
- method public static java.time.OffsetTime now(java.time.Clock);
- method public static java.time.OffsetTime of(java.time.LocalTime, java.time.ZoneOffset);
- method public static java.time.OffsetTime of(int, int, int, int, java.time.ZoneOffset);
- method public static java.time.OffsetTime ofInstant(java.time.Instant, java.time.ZoneId);
- method public static java.time.OffsetTime parse(CharSequence);
- method public static java.time.OffsetTime parse(CharSequence, java.time.format.DateTimeFormatter);
- method public java.time.OffsetTime plus(java.time.temporal.TemporalAmount);
- method public java.time.OffsetTime plus(long, java.time.temporal.TemporalUnit);
- method public java.time.OffsetTime plusHours(long);
- method public java.time.OffsetTime plusMinutes(long);
- method public java.time.OffsetTime plusNanos(long);
- method public java.time.OffsetTime plusSeconds(long);
- method public java.time.LocalTime toLocalTime();
- method public java.time.OffsetTime truncatedTo(java.time.temporal.TemporalUnit);
- method public long until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit);
- method public java.time.OffsetTime with(java.time.temporal.TemporalAdjuster);
- method public java.time.OffsetTime with(java.time.temporal.TemporalField, long);
- method public java.time.OffsetTime withHour(int);
- method public java.time.OffsetTime withMinute(int);
- method public java.time.OffsetTime withNano(int);
- method public java.time.OffsetTime withOffsetSameInstant(java.time.ZoneOffset);
- method public java.time.OffsetTime withOffsetSameLocal(java.time.ZoneOffset);
- method public java.time.OffsetTime withSecond(int);
- field public static final java.time.OffsetTime MAX;
- field public static final java.time.OffsetTime MIN;
- }
-
- public final class Period implements java.time.chrono.ChronoPeriod java.io.Serializable {
- method public java.time.temporal.Temporal addTo(java.time.temporal.Temporal);
- method public static java.time.Period between(java.time.LocalDate, java.time.LocalDate);
- method public static java.time.Period from(java.time.temporal.TemporalAmount);
- method public long get(java.time.temporal.TemporalUnit);
- method public java.time.chrono.IsoChronology getChronology();
- method public int getDays();
- method public int getMonths();
- method public java.util.List<java.time.temporal.TemporalUnit> getUnits();
- method public int getYears();
- method public java.time.Period minus(java.time.temporal.TemporalAmount);
- method public java.time.Period minusDays(long);
- method public java.time.Period minusMonths(long);
- method public java.time.Period minusYears(long);
- method public java.time.Period multipliedBy(int);
- method public java.time.Period negated();
- method public java.time.Period normalized();
- method public static java.time.Period of(int, int, int);
- method public static java.time.Period ofDays(int);
- method public static java.time.Period ofMonths(int);
- method public static java.time.Period ofWeeks(int);
- method public static java.time.Period ofYears(int);
- method public static java.time.Period parse(CharSequence);
- method public java.time.Period plus(java.time.temporal.TemporalAmount);
- method public java.time.Period plusDays(long);
- method public java.time.Period plusMonths(long);
- method public java.time.Period plusYears(long);
- method public java.time.temporal.Temporal subtractFrom(java.time.temporal.Temporal);
- method public long toTotalMonths();
- method public java.time.Period withDays(int);
- method public java.time.Period withMonths(int);
- method public java.time.Period withYears(int);
- field public static final java.time.Period ZERO;
- }
-
- public final class Year implements java.lang.Comparable<java.time.Year> java.io.Serializable java.time.temporal.Temporal java.time.temporal.TemporalAdjuster {
- method public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal);
- method public java.time.LocalDate atDay(int);
- method public java.time.YearMonth atMonth(java.time.Month);
- method public java.time.YearMonth atMonth(int);
- method public java.time.LocalDate atMonthDay(java.time.MonthDay);
- method public int compareTo(java.time.Year);
- method public String format(java.time.format.DateTimeFormatter);
- method public static java.time.Year from(java.time.temporal.TemporalAccessor);
- method public long getLong(java.time.temporal.TemporalField);
- method public int getValue();
- method public boolean isAfter(java.time.Year);
- method public boolean isBefore(java.time.Year);
- method public static boolean isLeap(long);
- method public boolean isLeap();
- method public boolean isSupported(java.time.temporal.TemporalField);
- method public boolean isSupported(java.time.temporal.TemporalUnit);
- method public boolean isValidMonthDay(java.time.MonthDay);
- method public int length();
- method public java.time.Year minus(java.time.temporal.TemporalAmount);
- method public java.time.Year minus(long, java.time.temporal.TemporalUnit);
- method public java.time.Year minusYears(long);
- method public static java.time.Year now();
- method public static java.time.Year now(java.time.ZoneId);
- method public static java.time.Year now(java.time.Clock);
- method public static java.time.Year of(int);
- method public static java.time.Year parse(CharSequence);
- method public static java.time.Year parse(CharSequence, java.time.format.DateTimeFormatter);
- method public java.time.Year plus(java.time.temporal.TemporalAmount);
- method public java.time.Year plus(long, java.time.temporal.TemporalUnit);
- method public java.time.Year plusYears(long);
- method public long until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit);
- method public java.time.Year with(java.time.temporal.TemporalAdjuster);
- method public java.time.Year with(java.time.temporal.TemporalField, long);
- field public static final int MAX_VALUE = 999999999; // 0x3b9ac9ff
- field public static final int MIN_VALUE = -999999999; // 0xc4653601
- }
-
- public final class YearMonth implements java.lang.Comparable<java.time.YearMonth> java.io.Serializable java.time.temporal.Temporal java.time.temporal.TemporalAdjuster {
- method public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal);
- method public java.time.LocalDate atDay(int);
- method public java.time.LocalDate atEndOfMonth();
- method public int compareTo(java.time.YearMonth);
- method public String format(java.time.format.DateTimeFormatter);
- method public static java.time.YearMonth from(java.time.temporal.TemporalAccessor);
- method public long getLong(java.time.temporal.TemporalField);
- method public java.time.Month getMonth();
- method public int getMonthValue();
- method public int getYear();
- method public boolean isAfter(java.time.YearMonth);
- method public boolean isBefore(java.time.YearMonth);
- method public boolean isLeapYear();
- method public boolean isSupported(java.time.temporal.TemporalField);
- method public boolean isSupported(java.time.temporal.TemporalUnit);
- method public boolean isValidDay(int);
- method public int lengthOfMonth();
- method public int lengthOfYear();
- method public java.time.YearMonth minus(java.time.temporal.TemporalAmount);
- method public java.time.YearMonth minus(long, java.time.temporal.TemporalUnit);
- method public java.time.YearMonth minusMonths(long);
- method public java.time.YearMonth minusYears(long);
- method public static java.time.YearMonth now();
- method public static java.time.YearMonth now(java.time.ZoneId);
- method public static java.time.YearMonth now(java.time.Clock);
- method public static java.time.YearMonth of(int, java.time.Month);
- method public static java.time.YearMonth of(int, int);
- method public static java.time.YearMonth parse(CharSequence);
- method public static java.time.YearMonth parse(CharSequence, java.time.format.DateTimeFormatter);
- method public java.time.YearMonth plus(java.time.temporal.TemporalAmount);
- method public java.time.YearMonth plus(long, java.time.temporal.TemporalUnit);
- method public java.time.YearMonth plusMonths(long);
- method public java.time.YearMonth plusYears(long);
- method public long until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit);
- method public java.time.YearMonth with(java.time.temporal.TemporalAdjuster);
- method public java.time.YearMonth with(java.time.temporal.TemporalField, long);
- method public java.time.YearMonth withMonth(int);
- method public java.time.YearMonth withYear(int);
- }
-
- public abstract class ZoneId implements java.io.Serializable {
- method public static java.time.ZoneId from(java.time.temporal.TemporalAccessor);
- method public static java.util.Set<java.lang.String> getAvailableZoneIds();
- method public String getDisplayName(java.time.format.TextStyle, java.util.Locale);
- method public abstract String getId();
- method public abstract java.time.zone.ZoneRules getRules();
- method public java.time.ZoneId normalized();
- method public static java.time.ZoneId of(String, java.util.Map<java.lang.String,java.lang.String>);
- method public static java.time.ZoneId of(String);
- method public static java.time.ZoneId ofOffset(String, java.time.ZoneOffset);
- method public static java.time.ZoneId systemDefault();
- field public static final java.util.Map<java.lang.String,java.lang.String> SHORT_IDS;
- }
-
- public final class ZoneOffset extends java.time.ZoneId implements java.lang.Comparable<java.time.ZoneOffset> java.io.Serializable java.time.temporal.TemporalAccessor java.time.temporal.TemporalAdjuster {
- method public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal);
- method public int compareTo(java.time.ZoneOffset);
- method public static java.time.ZoneOffset from(java.time.temporal.TemporalAccessor);
- method public String getId();
- method public long getLong(java.time.temporal.TemporalField);
- method public java.time.zone.ZoneRules getRules();
- method public int getTotalSeconds();
- method public boolean isSupported(java.time.temporal.TemporalField);
- method public static java.time.ZoneOffset of(String);
- method public static java.time.ZoneOffset ofHours(int);
- method public static java.time.ZoneOffset ofHoursMinutes(int, int);
- method public static java.time.ZoneOffset ofHoursMinutesSeconds(int, int, int);
- method public static java.time.ZoneOffset ofTotalSeconds(int);
- field public static final java.time.ZoneOffset MAX;
- field public static final java.time.ZoneOffset MIN;
- field public static final java.time.ZoneOffset UTC;
- }
-
- public final class ZonedDateTime implements java.time.chrono.ChronoZonedDateTime<java.time.LocalDate> java.io.Serializable java.time.temporal.Temporal {
- method public static java.time.ZonedDateTime from(java.time.temporal.TemporalAccessor);
- method public int getDayOfMonth();
- method public java.time.DayOfWeek getDayOfWeek();
- method public int getDayOfYear();
- method public int getHour();
- method public int getMinute();
- method public java.time.Month getMonth();
- method public int getMonthValue();
- method public int getNano();
- method public java.time.ZoneOffset getOffset();
- method public int getSecond();
- method public int getYear();
- method public java.time.ZoneId getZone();
- method public boolean isSupported(java.time.temporal.TemporalField);
- method public java.time.ZonedDateTime minus(java.time.temporal.TemporalAmount);
- method public java.time.ZonedDateTime minus(long, java.time.temporal.TemporalUnit);
- method public java.time.ZonedDateTime minusDays(long);
- method public java.time.ZonedDateTime minusHours(long);
- method public java.time.ZonedDateTime minusMinutes(long);
- method public java.time.ZonedDateTime minusMonths(long);
- method public java.time.ZonedDateTime minusNanos(long);
- method public java.time.ZonedDateTime minusSeconds(long);
- method public java.time.ZonedDateTime minusWeeks(long);
- method public java.time.ZonedDateTime minusYears(long);
- method public static java.time.ZonedDateTime now();
- method public static java.time.ZonedDateTime now(java.time.ZoneId);
- method public static java.time.ZonedDateTime now(java.time.Clock);
- method public static java.time.ZonedDateTime of(java.time.LocalDate, java.time.LocalTime, java.time.ZoneId);
- method public static java.time.ZonedDateTime of(java.time.LocalDateTime, java.time.ZoneId);
- method public static java.time.ZonedDateTime of(int, int, int, int, int, int, int, java.time.ZoneId);
- method public static java.time.ZonedDateTime ofInstant(java.time.Instant, java.time.ZoneId);
- method public static java.time.ZonedDateTime ofInstant(java.time.LocalDateTime, java.time.ZoneOffset, java.time.ZoneId);
- method public static java.time.ZonedDateTime ofLocal(java.time.LocalDateTime, java.time.ZoneId, java.time.ZoneOffset);
- method public static java.time.ZonedDateTime ofStrict(java.time.LocalDateTime, java.time.ZoneOffset, java.time.ZoneId);
- method public static java.time.ZonedDateTime parse(CharSequence);
- method public static java.time.ZonedDateTime parse(CharSequence, java.time.format.DateTimeFormatter);
- method public java.time.ZonedDateTime plus(java.time.temporal.TemporalAmount);
- method public java.time.ZonedDateTime plus(long, java.time.temporal.TemporalUnit);
- method public java.time.ZonedDateTime plusDays(long);
- method public java.time.ZonedDateTime plusHours(long);
- method public java.time.ZonedDateTime plusMinutes(long);
- method public java.time.ZonedDateTime plusMonths(long);
- method public java.time.ZonedDateTime plusNanos(long);
- method public java.time.ZonedDateTime plusSeconds(long);
- method public java.time.ZonedDateTime plusWeeks(long);
- method public java.time.ZonedDateTime plusYears(long);
- method public java.time.LocalDate toLocalDate();
- method public java.time.LocalDateTime toLocalDateTime();
- method public java.time.OffsetDateTime toOffsetDateTime();
- method public java.time.ZonedDateTime truncatedTo(java.time.temporal.TemporalUnit);
- method public long until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit);
- method public java.time.ZonedDateTime with(java.time.temporal.TemporalAdjuster);
- method public java.time.ZonedDateTime with(java.time.temporal.TemporalField, long);
- method public java.time.ZonedDateTime withDayOfMonth(int);
- method public java.time.ZonedDateTime withDayOfYear(int);
- method public java.time.ZonedDateTime withEarlierOffsetAtOverlap();
- method public java.time.ZonedDateTime withFixedOffsetZone();
- method public java.time.ZonedDateTime withHour(int);
- method public java.time.ZonedDateTime withLaterOffsetAtOverlap();
- method public java.time.ZonedDateTime withMinute(int);
- method public java.time.ZonedDateTime withMonth(int);
- method public java.time.ZonedDateTime withNano(int);
- method public java.time.ZonedDateTime withSecond(int);
- method public java.time.ZonedDateTime withYear(int);
- method public java.time.ZonedDateTime withZoneSameInstant(java.time.ZoneId);
- method public java.time.ZonedDateTime withZoneSameLocal(java.time.ZoneId);
- }
-
-}
-
-package java.time.chrono {
-
- public abstract class AbstractChronology implements java.time.chrono.Chronology {
- ctor protected AbstractChronology();
- method public int compareTo(java.time.chrono.Chronology);
- method public java.time.chrono.ChronoLocalDate resolveDate(java.util.Map<java.time.temporal.TemporalField,java.lang.Long>, java.time.format.ResolverStyle);
- }
-
- public interface ChronoLocalDate extends java.time.temporal.Temporal java.lang.Comparable<java.time.chrono.ChronoLocalDate> java.time.temporal.TemporalAdjuster {
- method public default java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal);
- method public default java.time.chrono.ChronoLocalDateTime<?> atTime(java.time.LocalTime);
- method public default int compareTo(java.time.chrono.ChronoLocalDate);
- method public boolean equals(Object);
- method public default String format(java.time.format.DateTimeFormatter);
- method public static java.time.chrono.ChronoLocalDate from(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.Chronology getChronology();
- method public default java.time.chrono.Era getEra();
- method public int hashCode();
- method public default boolean isAfter(java.time.chrono.ChronoLocalDate);
- method public default boolean isBefore(java.time.chrono.ChronoLocalDate);
- method public default boolean isEqual(java.time.chrono.ChronoLocalDate);
- method public default boolean isLeapYear();
- method public default boolean isSupported(java.time.temporal.TemporalField);
- method public default boolean isSupported(java.time.temporal.TemporalUnit);
- method public int lengthOfMonth();
- method public default int lengthOfYear();
- method public default java.time.chrono.ChronoLocalDate minus(java.time.temporal.TemporalAmount);
- method public default java.time.chrono.ChronoLocalDate minus(long, java.time.temporal.TemporalUnit);
- method public default java.time.chrono.ChronoLocalDate plus(java.time.temporal.TemporalAmount);
- method public default java.time.chrono.ChronoLocalDate plus(long, java.time.temporal.TemporalUnit);
- method public static java.util.Comparator<java.time.chrono.ChronoLocalDate> timeLineOrder();
- method public default long toEpochDay();
- method public String toString();
- method public java.time.chrono.ChronoPeriod until(java.time.chrono.ChronoLocalDate);
- method public default java.time.chrono.ChronoLocalDate with(java.time.temporal.TemporalAdjuster);
- method public default java.time.chrono.ChronoLocalDate with(java.time.temporal.TemporalField, long);
- }
-
- public interface ChronoLocalDateTime<D extends java.time.chrono.ChronoLocalDate> extends java.time.temporal.Temporal java.lang.Comparable<java.time.chrono.ChronoLocalDateTime<?>> java.time.temporal.TemporalAdjuster {
- method public default java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal);
- method public java.time.chrono.ChronoZonedDateTime<D> atZone(java.time.ZoneId);
- method public default int compareTo(java.time.chrono.ChronoLocalDateTime<?>);
- method public boolean equals(Object);
- method public default String format(java.time.format.DateTimeFormatter);
- method public static java.time.chrono.ChronoLocalDateTime<?> from(java.time.temporal.TemporalAccessor);
- method public default java.time.chrono.Chronology getChronology();
- method public int hashCode();
- method public default boolean isAfter(java.time.chrono.ChronoLocalDateTime<?>);
- method public default boolean isBefore(java.time.chrono.ChronoLocalDateTime<?>);
- method public default boolean isEqual(java.time.chrono.ChronoLocalDateTime<?>);
- method public default boolean isSupported(java.time.temporal.TemporalUnit);
- method public default java.time.chrono.ChronoLocalDateTime<D> minus(java.time.temporal.TemporalAmount);
- method public default java.time.chrono.ChronoLocalDateTime<D> minus(long, java.time.temporal.TemporalUnit);
- method public default java.time.chrono.ChronoLocalDateTime<D> plus(java.time.temporal.TemporalAmount);
- method public java.time.chrono.ChronoLocalDateTime<D> plus(long, java.time.temporal.TemporalUnit);
- method public static java.util.Comparator<java.time.chrono.ChronoLocalDateTime<?>> timeLineOrder();
- method public default long toEpochSecond(java.time.ZoneOffset);
- method public default java.time.Instant toInstant(java.time.ZoneOffset);
- method public D toLocalDate();
- method public java.time.LocalTime toLocalTime();
- method public String toString();
- method public default java.time.chrono.ChronoLocalDateTime<D> with(java.time.temporal.TemporalAdjuster);
- method public java.time.chrono.ChronoLocalDateTime<D> with(java.time.temporal.TemporalField, long);
- }
-
- public interface ChronoPeriod extends java.time.temporal.TemporalAmount {
- method public static java.time.chrono.ChronoPeriod between(java.time.chrono.ChronoLocalDate, java.time.chrono.ChronoLocalDate);
- method public boolean equals(Object);
- method public java.time.chrono.Chronology getChronology();
- method public int hashCode();
- method public default boolean isNegative();
- method public default boolean isZero();
- method public java.time.chrono.ChronoPeriod minus(java.time.temporal.TemporalAmount);
- method public java.time.chrono.ChronoPeriod multipliedBy(int);
- method public default java.time.chrono.ChronoPeriod negated();
- method public java.time.chrono.ChronoPeriod normalized();
- method public java.time.chrono.ChronoPeriod plus(java.time.temporal.TemporalAmount);
- method public String toString();
- }
-
- public interface ChronoZonedDateTime<D extends java.time.chrono.ChronoLocalDate> extends java.time.temporal.Temporal java.lang.Comparable<java.time.chrono.ChronoZonedDateTime<?>> {
- method public default int compareTo(java.time.chrono.ChronoZonedDateTime<?>);
- method public boolean equals(Object);
- method public default String format(java.time.format.DateTimeFormatter);
- method public static java.time.chrono.ChronoZonedDateTime<?> from(java.time.temporal.TemporalAccessor);
- method public default java.time.chrono.Chronology getChronology();
- method public default long getLong(java.time.temporal.TemporalField);
- method public java.time.ZoneOffset getOffset();
- method public java.time.ZoneId getZone();
- method public int hashCode();
- method public default boolean isAfter(java.time.chrono.ChronoZonedDateTime<?>);
- method public default boolean isBefore(java.time.chrono.ChronoZonedDateTime<?>);
- method public default boolean isEqual(java.time.chrono.ChronoZonedDateTime<?>);
- method public default boolean isSupported(java.time.temporal.TemporalUnit);
- method public default java.time.chrono.ChronoZonedDateTime<D> minus(java.time.temporal.TemporalAmount);
- method public default java.time.chrono.ChronoZonedDateTime<D> minus(long, java.time.temporal.TemporalUnit);
- method public default java.time.chrono.ChronoZonedDateTime<D> plus(java.time.temporal.TemporalAmount);
- method public java.time.chrono.ChronoZonedDateTime<D> plus(long, java.time.temporal.TemporalUnit);
- method public static java.util.Comparator<java.time.chrono.ChronoZonedDateTime<?>> timeLineOrder();
- method public default long toEpochSecond();
- method public default java.time.Instant toInstant();
- method public default D toLocalDate();
- method public java.time.chrono.ChronoLocalDateTime<D> toLocalDateTime();
- method public default java.time.LocalTime toLocalTime();
- method public String toString();
- method public default java.time.chrono.ChronoZonedDateTime<D> with(java.time.temporal.TemporalAdjuster);
- method public java.time.chrono.ChronoZonedDateTime<D> with(java.time.temporal.TemporalField, long);
- method public java.time.chrono.ChronoZonedDateTime<D> withEarlierOffsetAtOverlap();
- method public java.time.chrono.ChronoZonedDateTime<D> withLaterOffsetAtOverlap();
- method public java.time.chrono.ChronoZonedDateTime<D> withZoneSameInstant(java.time.ZoneId);
- method public java.time.chrono.ChronoZonedDateTime<D> withZoneSameLocal(java.time.ZoneId);
- }
-
- public interface Chronology extends java.lang.Comparable<java.time.chrono.Chronology> {
- method public int compareTo(java.time.chrono.Chronology);
- method public default java.time.chrono.ChronoLocalDate date(java.time.chrono.Era, int, int, int);
- method public java.time.chrono.ChronoLocalDate date(int, int, int);
- method public java.time.chrono.ChronoLocalDate date(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.ChronoLocalDate dateEpochDay(long);
- method public default java.time.chrono.ChronoLocalDate dateNow();
- method public default java.time.chrono.ChronoLocalDate dateNow(java.time.ZoneId);
- method public default java.time.chrono.ChronoLocalDate dateNow(java.time.Clock);
- method public default java.time.chrono.ChronoLocalDate dateYearDay(java.time.chrono.Era, int, int);
- method public java.time.chrono.ChronoLocalDate dateYearDay(int, int);
- method public boolean equals(Object);
- method public java.time.chrono.Era eraOf(int);
- method public java.util.List<java.time.chrono.Era> eras();
- method public static java.time.chrono.Chronology from(java.time.temporal.TemporalAccessor);
- method public static java.util.Set<java.time.chrono.Chronology> getAvailableChronologies();
- method public String getCalendarType();
- method public default String getDisplayName(java.time.format.TextStyle, java.util.Locale);
- method public String getId();
- method public int hashCode();
- method public boolean isLeapYear(long);
- method public default java.time.chrono.ChronoLocalDateTime<? extends java.time.chrono.ChronoLocalDate> localDateTime(java.time.temporal.TemporalAccessor);
- method public static java.time.chrono.Chronology of(String);
- method public static java.time.chrono.Chronology ofLocale(java.util.Locale);
- method public default java.time.chrono.ChronoPeriod period(int, int, int);
- method public int prolepticYear(java.time.chrono.Era, int);
- method public java.time.temporal.ValueRange range(java.time.temporal.ChronoField);
- method public java.time.chrono.ChronoLocalDate resolveDate(java.util.Map<java.time.temporal.TemporalField,java.lang.Long>, java.time.format.ResolverStyle);
- method public String toString();
- method public default java.time.chrono.ChronoZonedDateTime<? extends java.time.chrono.ChronoLocalDate> zonedDateTime(java.time.temporal.TemporalAccessor);
- method public default java.time.chrono.ChronoZonedDateTime<? extends java.time.chrono.ChronoLocalDate> zonedDateTime(java.time.Instant, java.time.ZoneId);
- }
-
- public interface Era extends java.time.temporal.TemporalAccessor java.time.temporal.TemporalAdjuster {
- method public default java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal);
- method public default String getDisplayName(java.time.format.TextStyle, java.util.Locale);
- method public default long getLong(java.time.temporal.TemporalField);
- method public int getValue();
- method public default boolean isSupported(java.time.temporal.TemporalField);
- }
-
- public final class HijrahChronology extends java.time.chrono.AbstractChronology implements java.io.Serializable {
- method public java.time.chrono.HijrahDate date(java.time.chrono.Era, int, int, int);
- method public java.time.chrono.HijrahDate date(int, int, int);
- method public java.time.chrono.HijrahDate date(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.HijrahDate dateEpochDay(long);
- method public java.time.chrono.HijrahDate dateNow();
- method public java.time.chrono.HijrahDate dateNow(java.time.ZoneId);
- method public java.time.chrono.HijrahDate dateNow(java.time.Clock);
- method public java.time.chrono.HijrahDate dateYearDay(java.time.chrono.Era, int, int);
- method public java.time.chrono.HijrahDate dateYearDay(int, int);
- method public java.time.chrono.HijrahEra eraOf(int);
- method public java.util.List<java.time.chrono.Era> eras();
- method public String getCalendarType();
- method public String getId();
- method public boolean isLeapYear(long);
- method public java.time.chrono.ChronoLocalDateTime<java.time.chrono.HijrahDate> localDateTime(java.time.temporal.TemporalAccessor);
- method public int prolepticYear(java.time.chrono.Era, int);
- method public java.time.temporal.ValueRange range(java.time.temporal.ChronoField);
- method public java.time.chrono.HijrahDate resolveDate(java.util.Map<java.time.temporal.TemporalField,java.lang.Long>, java.time.format.ResolverStyle);
- method public java.time.chrono.ChronoZonedDateTime<java.time.chrono.HijrahDate> zonedDateTime(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.ChronoZonedDateTime<java.time.chrono.HijrahDate> zonedDateTime(java.time.Instant, java.time.ZoneId);
- field public static final java.time.chrono.HijrahChronology INSTANCE;
- }
-
- public final class HijrahDate implements java.time.chrono.ChronoLocalDate java.io.Serializable java.time.temporal.Temporal java.time.temporal.TemporalAdjuster {
- method public java.time.chrono.ChronoLocalDateTime<java.time.chrono.HijrahDate> atTime(java.time.LocalTime);
- method public static java.time.chrono.HijrahDate from(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.HijrahChronology getChronology();
- method public java.time.chrono.HijrahEra getEra();
- method public long getLong(java.time.temporal.TemporalField);
- method public int lengthOfMonth();
- method public java.time.chrono.HijrahDate minus(java.time.temporal.TemporalAmount);
- method public java.time.chrono.HijrahDate minus(long, java.time.temporal.TemporalUnit);
- method public static java.time.chrono.HijrahDate now();
- method public static java.time.chrono.HijrahDate now(java.time.ZoneId);
- method public static java.time.chrono.HijrahDate now(java.time.Clock);
- method public static java.time.chrono.HijrahDate of(int, int, int);
- method public java.time.chrono.HijrahDate plus(java.time.temporal.TemporalAmount);
- method public java.time.chrono.HijrahDate plus(long, java.time.temporal.TemporalUnit);
- method public java.time.chrono.ChronoPeriod until(java.time.chrono.ChronoLocalDate);
- method public long until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit);
- method public java.time.chrono.HijrahDate with(java.time.temporal.TemporalField, long);
- method public java.time.chrono.HijrahDate with(java.time.temporal.TemporalAdjuster);
- method public java.time.chrono.HijrahDate withVariant(java.time.chrono.HijrahChronology);
- }
-
- public enum HijrahEra implements java.time.chrono.Era {
- method public int getValue();
- method public static java.time.chrono.HijrahEra of(int);
- enum_constant public static final java.time.chrono.HijrahEra AH;
- }
-
- public final class IsoChronology extends java.time.chrono.AbstractChronology implements java.io.Serializable {
- method public java.time.LocalDate date(java.time.chrono.Era, int, int, int);
- method public java.time.LocalDate date(int, int, int);
- method public java.time.LocalDate date(java.time.temporal.TemporalAccessor);
- method public java.time.LocalDate dateEpochDay(long);
- method public java.time.LocalDate dateNow();
- method public java.time.LocalDate dateNow(java.time.ZoneId);
- method public java.time.LocalDate dateNow(java.time.Clock);
- method public java.time.LocalDate dateYearDay(java.time.chrono.Era, int, int);
- method public java.time.LocalDate dateYearDay(int, int);
- method public java.time.chrono.IsoEra eraOf(int);
- method public java.util.List<java.time.chrono.Era> eras();
- method public String getCalendarType();
- method public String getId();
- method public boolean isLeapYear(long);
- method public java.time.LocalDateTime localDateTime(java.time.temporal.TemporalAccessor);
- method public java.time.Period period(int, int, int);
- method public int prolepticYear(java.time.chrono.Era, int);
- method public java.time.temporal.ValueRange range(java.time.temporal.ChronoField);
- method public java.time.LocalDate resolveDate(java.util.Map<java.time.temporal.TemporalField,java.lang.Long>, java.time.format.ResolverStyle);
- method public java.time.ZonedDateTime zonedDateTime(java.time.temporal.TemporalAccessor);
- method public java.time.ZonedDateTime zonedDateTime(java.time.Instant, java.time.ZoneId);
- field public static final java.time.chrono.IsoChronology INSTANCE;
- }
-
- public enum IsoEra implements java.time.chrono.Era {
- method public int getValue();
- method public static java.time.chrono.IsoEra of(int);
- enum_constant public static final java.time.chrono.IsoEra BCE;
- enum_constant public static final java.time.chrono.IsoEra CE;
- }
-
- public final class JapaneseChronology extends java.time.chrono.AbstractChronology implements java.io.Serializable {
- method public java.time.chrono.JapaneseDate date(java.time.chrono.Era, int, int, int);
- method public java.time.chrono.JapaneseDate date(int, int, int);
- method public java.time.chrono.JapaneseDate date(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.JapaneseDate dateEpochDay(long);
- method public java.time.chrono.JapaneseDate dateNow();
- method public java.time.chrono.JapaneseDate dateNow(java.time.ZoneId);
- method public java.time.chrono.JapaneseDate dateNow(java.time.Clock);
- method public java.time.chrono.JapaneseDate dateYearDay(java.time.chrono.Era, int, int);
- method public java.time.chrono.JapaneseDate dateYearDay(int, int);
- method public java.time.chrono.JapaneseEra eraOf(int);
- method public java.util.List<java.time.chrono.Era> eras();
- method public String getCalendarType();
- method public String getId();
- method public boolean isLeapYear(long);
- method public java.time.chrono.ChronoLocalDateTime<java.time.chrono.JapaneseDate> localDateTime(java.time.temporal.TemporalAccessor);
- method public int prolepticYear(java.time.chrono.Era, int);
- method public java.time.temporal.ValueRange range(java.time.temporal.ChronoField);
- method public java.time.chrono.JapaneseDate resolveDate(java.util.Map<java.time.temporal.TemporalField,java.lang.Long>, java.time.format.ResolverStyle);
- method public java.time.chrono.ChronoZonedDateTime<java.time.chrono.JapaneseDate> zonedDateTime(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.ChronoZonedDateTime<java.time.chrono.JapaneseDate> zonedDateTime(java.time.Instant, java.time.ZoneId);
- field public static final java.time.chrono.JapaneseChronology INSTANCE;
- }
-
- public final class JapaneseDate implements java.time.chrono.ChronoLocalDate java.io.Serializable java.time.temporal.Temporal java.time.temporal.TemporalAdjuster {
- method public java.time.chrono.ChronoLocalDateTime<java.time.chrono.JapaneseDate> atTime(java.time.LocalTime);
- method public static java.time.chrono.JapaneseDate from(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.JapaneseChronology getChronology();
- method public java.time.chrono.JapaneseEra getEra();
- method public long getLong(java.time.temporal.TemporalField);
- method public int lengthOfMonth();
- method public java.time.chrono.JapaneseDate minus(java.time.temporal.TemporalAmount);
- method public java.time.chrono.JapaneseDate minus(long, java.time.temporal.TemporalUnit);
- method public static java.time.chrono.JapaneseDate now();
- method public static java.time.chrono.JapaneseDate now(java.time.ZoneId);
- method public static java.time.chrono.JapaneseDate now(java.time.Clock);
- method public static java.time.chrono.JapaneseDate of(java.time.chrono.JapaneseEra, int, int, int);
- method public static java.time.chrono.JapaneseDate of(int, int, int);
- method public java.time.chrono.JapaneseDate plus(java.time.temporal.TemporalAmount);
- method public java.time.chrono.JapaneseDate plus(long, java.time.temporal.TemporalUnit);
- method public java.time.chrono.ChronoPeriod until(java.time.chrono.ChronoLocalDate);
- method public long until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit);
- method public java.time.chrono.JapaneseDate with(java.time.temporal.TemporalField, long);
- method public java.time.chrono.JapaneseDate with(java.time.temporal.TemporalAdjuster);
- }
-
- public final class JapaneseEra implements java.time.chrono.Era java.io.Serializable {
- method public int getValue();
- method public static java.time.chrono.JapaneseEra of(int);
- method public static java.time.chrono.JapaneseEra valueOf(String);
- method public static java.time.chrono.JapaneseEra[] values();
- field public static final java.time.chrono.JapaneseEra HEISEI;
- field public static final java.time.chrono.JapaneseEra MEIJI;
- field public static final java.time.chrono.JapaneseEra REIWA;
- field public static final java.time.chrono.JapaneseEra SHOWA;
- field public static final java.time.chrono.JapaneseEra TAISHO;
- }
-
- public final class MinguoChronology extends java.time.chrono.AbstractChronology implements java.io.Serializable {
- method public java.time.chrono.MinguoDate date(java.time.chrono.Era, int, int, int);
- method public java.time.chrono.MinguoDate date(int, int, int);
- method public java.time.chrono.MinguoDate date(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.MinguoDate dateEpochDay(long);
- method public java.time.chrono.MinguoDate dateNow();
- method public java.time.chrono.MinguoDate dateNow(java.time.ZoneId);
- method public java.time.chrono.MinguoDate dateNow(java.time.Clock);
- method public java.time.chrono.MinguoDate dateYearDay(java.time.chrono.Era, int, int);
- method public java.time.chrono.MinguoDate dateYearDay(int, int);
- method public java.time.chrono.MinguoEra eraOf(int);
- method public java.util.List<java.time.chrono.Era> eras();
- method public String getCalendarType();
- method public String getId();
- method public boolean isLeapYear(long);
- method public java.time.chrono.ChronoLocalDateTime<java.time.chrono.MinguoDate> localDateTime(java.time.temporal.TemporalAccessor);
- method public int prolepticYear(java.time.chrono.Era, int);
- method public java.time.temporal.ValueRange range(java.time.temporal.ChronoField);
- method public java.time.chrono.MinguoDate resolveDate(java.util.Map<java.time.temporal.TemporalField,java.lang.Long>, java.time.format.ResolverStyle);
- method public java.time.chrono.ChronoZonedDateTime<java.time.chrono.MinguoDate> zonedDateTime(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.ChronoZonedDateTime<java.time.chrono.MinguoDate> zonedDateTime(java.time.Instant, java.time.ZoneId);
- field public static final java.time.chrono.MinguoChronology INSTANCE;
- }
-
- public final class MinguoDate implements java.time.chrono.ChronoLocalDate java.io.Serializable java.time.temporal.Temporal java.time.temporal.TemporalAdjuster {
- method public java.time.chrono.ChronoLocalDateTime<java.time.chrono.MinguoDate> atTime(java.time.LocalTime);
- method public static java.time.chrono.MinguoDate from(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.MinguoChronology getChronology();
- method public java.time.chrono.MinguoEra getEra();
- method public long getLong(java.time.temporal.TemporalField);
- method public int lengthOfMonth();
- method public java.time.chrono.MinguoDate minus(java.time.temporal.TemporalAmount);
- method public java.time.chrono.MinguoDate minus(long, java.time.temporal.TemporalUnit);
- method public static java.time.chrono.MinguoDate now();
- method public static java.time.chrono.MinguoDate now(java.time.ZoneId);
- method public static java.time.chrono.MinguoDate now(java.time.Clock);
- method public static java.time.chrono.MinguoDate of(int, int, int);
- method public java.time.chrono.MinguoDate plus(java.time.temporal.TemporalAmount);
- method public java.time.chrono.MinguoDate plus(long, java.time.temporal.TemporalUnit);
- method public java.time.chrono.ChronoPeriod until(java.time.chrono.ChronoLocalDate);
- method public long until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit);
- method public java.time.chrono.MinguoDate with(java.time.temporal.TemporalField, long);
- method public java.time.chrono.MinguoDate with(java.time.temporal.TemporalAdjuster);
- }
-
- public enum MinguoEra implements java.time.chrono.Era {
- method public int getValue();
- method public static java.time.chrono.MinguoEra of(int);
- enum_constant public static final java.time.chrono.MinguoEra BEFORE_ROC;
- enum_constant public static final java.time.chrono.MinguoEra ROC;
- }
-
- public final class ThaiBuddhistChronology extends java.time.chrono.AbstractChronology implements java.io.Serializable {
- method public java.time.chrono.ThaiBuddhistDate date(java.time.chrono.Era, int, int, int);
- method public java.time.chrono.ThaiBuddhistDate date(int, int, int);
- method public java.time.chrono.ThaiBuddhistDate date(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.ThaiBuddhistDate dateEpochDay(long);
- method public java.time.chrono.ThaiBuddhistDate dateNow();
- method public java.time.chrono.ThaiBuddhistDate dateNow(java.time.ZoneId);
- method public java.time.chrono.ThaiBuddhistDate dateNow(java.time.Clock);
- method public java.time.chrono.ThaiBuddhistDate dateYearDay(java.time.chrono.Era, int, int);
- method public java.time.chrono.ThaiBuddhistDate dateYearDay(int, int);
- method public java.time.chrono.ThaiBuddhistEra eraOf(int);
- method public java.util.List<java.time.chrono.Era> eras();
- method public String getCalendarType();
- method public String getId();
- method public boolean isLeapYear(long);
- method public java.time.chrono.ChronoLocalDateTime<java.time.chrono.ThaiBuddhistDate> localDateTime(java.time.temporal.TemporalAccessor);
- method public int prolepticYear(java.time.chrono.Era, int);
- method public java.time.temporal.ValueRange range(java.time.temporal.ChronoField);
- method public java.time.chrono.ThaiBuddhistDate resolveDate(java.util.Map<java.time.temporal.TemporalField,java.lang.Long>, java.time.format.ResolverStyle);
- method public java.time.chrono.ChronoZonedDateTime<java.time.chrono.ThaiBuddhistDate> zonedDateTime(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.ChronoZonedDateTime<java.time.chrono.ThaiBuddhistDate> zonedDateTime(java.time.Instant, java.time.ZoneId);
- field public static final java.time.chrono.ThaiBuddhistChronology INSTANCE;
- }
-
- public final class ThaiBuddhistDate implements java.time.chrono.ChronoLocalDate java.io.Serializable java.time.temporal.Temporal java.time.temporal.TemporalAdjuster {
- method public java.time.chrono.ChronoLocalDateTime<java.time.chrono.ThaiBuddhistDate> atTime(java.time.LocalTime);
- method public static java.time.chrono.ThaiBuddhistDate from(java.time.temporal.TemporalAccessor);
- method public java.time.chrono.ThaiBuddhistChronology getChronology();
- method public java.time.chrono.ThaiBuddhistEra getEra();
- method public long getLong(java.time.temporal.TemporalField);
- method public int lengthOfMonth();
- method public java.time.chrono.ThaiBuddhistDate minus(java.time.temporal.TemporalAmount);
- method public java.time.chrono.ThaiBuddhistDate minus(long, java.time.temporal.TemporalUnit);
- method public static java.time.chrono.ThaiBuddhistDate now();
- method public static java.time.chrono.ThaiBuddhistDate now(java.time.ZoneId);
- method public static java.time.chrono.ThaiBuddhistDate now(java.time.Clock);
- method public static java.time.chrono.ThaiBuddhistDate of(int, int, int);
- method public java.time.chrono.ThaiBuddhistDate plus(java.time.temporal.TemporalAmount);
- method public java.time.chrono.ThaiBuddhistDate plus(long, java.time.temporal.TemporalUnit);
- method public java.time.chrono.ChronoPeriod until(java.time.chrono.ChronoLocalDate);
- method public long until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit);
- method public java.time.chrono.ThaiBuddhistDate with(java.time.temporal.TemporalField, long);
- method public java.time.chrono.ThaiBuddhistDate with(java.time.temporal.TemporalAdjuster);
- }
-
- public enum ThaiBuddhistEra implements java.time.chrono.Era {
- method public int getValue();
- method public static java.time.chrono.ThaiBuddhistEra of(int);
- enum_constant public static final java.time.chrono.ThaiBuddhistEra BE;
- enum_constant public static final java.time.chrono.ThaiBuddhistEra BEFORE_BE;
- }
-
-}
-
-package java.time.format {
-
- public final class DateTimeFormatter {
- method public String format(java.time.temporal.TemporalAccessor);
- method public void formatTo(java.time.temporal.TemporalAccessor, Appendable);
- method public java.time.chrono.Chronology getChronology();
- method public java.time.format.DecimalStyle getDecimalStyle();
- method public java.util.Locale getLocale();
- method public java.util.Set<java.time.temporal.TemporalField> getResolverFields();
- method public java.time.format.ResolverStyle getResolverStyle();
- method public java.time.ZoneId getZone();
- method public static java.time.format.DateTimeFormatter ofLocalizedDate(java.time.format.FormatStyle);
- method public static java.time.format.DateTimeFormatter ofLocalizedDateTime(java.time.format.FormatStyle);
- method public static java.time.format.DateTimeFormatter ofLocalizedDateTime(java.time.format.FormatStyle, java.time.format.FormatStyle);
- method public static java.time.format.DateTimeFormatter ofLocalizedTime(java.time.format.FormatStyle);
- method public static java.time.format.DateTimeFormatter ofPattern(String);
- method public static java.time.format.DateTimeFormatter ofPattern(String, java.util.Locale);
- method public java.time.temporal.TemporalAccessor parse(CharSequence);
- method public java.time.temporal.TemporalAccessor parse(CharSequence, java.text.ParsePosition);
- method public <T> T parse(CharSequence, java.time.temporal.TemporalQuery<T>);
- method public java.time.temporal.TemporalAccessor parseBest(CharSequence, java.time.temporal.TemporalQuery<?>...);
- method public java.time.temporal.TemporalAccessor parseUnresolved(CharSequence, java.text.ParsePosition);
- method public static java.time.temporal.TemporalQuery<java.time.Period> parsedExcessDays();
- method public static java.time.temporal.TemporalQuery<java.lang.Boolean> parsedLeapSecond();
- method public java.text.Format toFormat();
- method public java.text.Format toFormat(java.time.temporal.TemporalQuery<?>);
- method public java.time.format.DateTimeFormatter withChronology(java.time.chrono.Chronology);
- method public java.time.format.DateTimeFormatter withDecimalStyle(java.time.format.DecimalStyle);
- method public java.time.format.DateTimeFormatter withLocale(java.util.Locale);
- method public java.time.format.DateTimeFormatter withResolverFields(java.time.temporal.TemporalField...);
- method public java.time.format.DateTimeFormatter withResolverFields(java.util.Set<java.time.temporal.TemporalField>);
- method public java.time.format.DateTimeFormatter withResolverStyle(java.time.format.ResolverStyle);
- method public java.time.format.DateTimeFormatter withZone(java.time.ZoneId);
- field public static final java.time.format.DateTimeFormatter BASIC_ISO_DATE;
- field public static final java.time.format.DateTimeFormatter ISO_DATE;
- field public static final java.time.format.DateTimeFormatter ISO_DATE_TIME;
- field public static final java.time.format.DateTimeFormatter ISO_INSTANT;
- field public static final java.time.format.DateTimeFormatter ISO_LOCAL_DATE;
- field public static final java.time.format.DateTimeFormatter ISO_LOCAL_DATE_TIME;
- field public static final java.time.format.DateTimeFormatter ISO_LOCAL_TIME;
- field public static final java.time.format.DateTimeFormatter ISO_OFFSET_DATE;
- field public static final java.time.format.DateTimeFormatter ISO_OFFSET_DATE_TIME;
- field public static final java.time.format.DateTimeFormatter ISO_OFFSET_TIME;
- field public static final java.time.format.DateTimeFormatter ISO_ORDINAL_DATE;
- field public static final java.time.format.DateTimeFormatter ISO_TIME;
- field public static final java.time.format.DateTimeFormatter ISO_WEEK_DATE;
- field public static final java.time.format.DateTimeFormatter ISO_ZONED_DATE_TIME;
- field public static final java.time.format.DateTimeFormatter RFC_1123_DATE_TIME;
- }
-
- public final class DateTimeFormatterBuilder {
- ctor public DateTimeFormatterBuilder();
- method public java.time.format.DateTimeFormatterBuilder append(java.time.format.DateTimeFormatter);
- method public java.time.format.DateTimeFormatterBuilder appendChronologyId();
- method public java.time.format.DateTimeFormatterBuilder appendChronologyText(java.time.format.TextStyle);
- method public java.time.format.DateTimeFormatterBuilder appendFraction(java.time.temporal.TemporalField, int, int, boolean);
- method public java.time.format.DateTimeFormatterBuilder appendInstant();
- method public java.time.format.DateTimeFormatterBuilder appendInstant(int);
- method public java.time.format.DateTimeFormatterBuilder appendLiteral(char);
- method public java.time.format.DateTimeFormatterBuilder appendLiteral(String);
- method public java.time.format.DateTimeFormatterBuilder appendLocalized(java.time.format.FormatStyle, java.time.format.FormatStyle);
- method public java.time.format.DateTimeFormatterBuilder appendLocalizedOffset(java.time.format.TextStyle);
- method public java.time.format.DateTimeFormatterBuilder appendOffset(String, String);
- method public java.time.format.DateTimeFormatterBuilder appendOffsetId();
- method public java.time.format.DateTimeFormatterBuilder appendOptional(java.time.format.DateTimeFormatter);
- method public java.time.format.DateTimeFormatterBuilder appendPattern(String);
- method public java.time.format.DateTimeFormatterBuilder appendText(java.time.temporal.TemporalField);
- method public java.time.format.DateTimeFormatterBuilder appendText(java.time.temporal.TemporalField, java.time.format.TextStyle);
- method public java.time.format.DateTimeFormatterBuilder appendText(java.time.temporal.TemporalField, java.util.Map<java.lang.Long,java.lang.String>);
- method public java.time.format.DateTimeFormatterBuilder appendValue(java.time.temporal.TemporalField);
- method public java.time.format.DateTimeFormatterBuilder appendValue(java.time.temporal.TemporalField, int);
- method public java.time.format.DateTimeFormatterBuilder appendValue(java.time.temporal.TemporalField, int, int, java.time.format.SignStyle);
- method public java.time.format.DateTimeFormatterBuilder appendValueReduced(java.time.temporal.TemporalField, int, int, int);
- method public java.time.format.DateTimeFormatterBuilder appendValueReduced(java.time.temporal.TemporalField, int, int, java.time.chrono.ChronoLocalDate);
- method public java.time.format.DateTimeFormatterBuilder appendZoneId();
- method public java.time.format.DateTimeFormatterBuilder appendZoneOrOffsetId();
- method public java.time.format.DateTimeFormatterBuilder appendZoneRegionId();
- method public java.time.format.DateTimeFormatterBuilder appendZoneText(java.time.format.TextStyle);
- method public java.time.format.DateTimeFormatterBuilder appendZoneText(java.time.format.TextStyle, java.util.Set<java.time.ZoneId>);
- method public static String getLocalizedDateTimePattern(java.time.format.FormatStyle, java.time.format.FormatStyle, java.time.chrono.Chronology, java.util.Locale);
- method public java.time.format.DateTimeFormatterBuilder optionalEnd();
- method public java.time.format.DateTimeFormatterBuilder optionalStart();
- method public java.time.format.DateTimeFormatterBuilder padNext(int);
- method public java.time.format.DateTimeFormatterBuilder padNext(int, char);
- method public java.time.format.DateTimeFormatterBuilder parseCaseInsensitive();
- method public java.time.format.DateTimeFormatterBuilder parseCaseSensitive();
- method public java.time.format.DateTimeFormatterBuilder parseDefaulting(java.time.temporal.TemporalField, long);
- method public java.time.format.DateTimeFormatterBuilder parseLenient();
- method public java.time.format.DateTimeFormatterBuilder parseStrict();
- method public java.time.format.DateTimeFormatter toFormatter();
- method public java.time.format.DateTimeFormatter toFormatter(java.util.Locale);
- }
-
- public class DateTimeParseException extends java.time.DateTimeException {
- ctor public DateTimeParseException(String, CharSequence, int);
- ctor public DateTimeParseException(String, CharSequence, int, Throwable);
- method public int getErrorIndex();
- method public String getParsedString();
- }
-
- public final class DecimalStyle {
- method public static java.util.Set<java.util.Locale> getAvailableLocales();
- method public char getDecimalSeparator();
- method public char getNegativeSign();
- method public char getPositiveSign();
- method public char getZeroDigit();
- method public static java.time.format.DecimalStyle of(java.util.Locale);
- method public static java.time.format.DecimalStyle ofDefaultLocale();
- method public java.time.format.DecimalStyle withDecimalSeparator(char);
- method public java.time.format.DecimalStyle withNegativeSign(char);
- method public java.time.format.DecimalStyle withPositiveSign(char);
- method public java.time.format.DecimalStyle withZeroDigit(char);
- field public static final java.time.format.DecimalStyle STANDARD;
- }
-
- public enum FormatStyle {
- enum_constant public static final java.time.format.FormatStyle FULL;
- enum_constant public static final java.time.format.FormatStyle LONG;
- enum_constant public static final java.time.format.FormatStyle MEDIUM;
- enum_constant public static final java.time.format.FormatStyle SHORT;
- }
-
- public enum ResolverStyle {
- enum_constant public static final java.time.format.ResolverStyle LENIENT;
- enum_constant public static final java.time.format.ResolverStyle SMART;
- enum_constant public static final java.time.format.ResolverStyle STRICT;
- }
-
- public enum SignStyle {
- enum_constant public static final java.time.format.SignStyle ALWAYS;
- enum_constant public static final java.time.format.SignStyle EXCEEDS_PAD;
- enum_constant public static final java.time.format.SignStyle NEVER;
- enum_constant public static final java.time.format.SignStyle NORMAL;
- enum_constant public static final java.time.format.SignStyle NOT_NEGATIVE;
- }
-
- public enum TextStyle {
- method public java.time.format.TextStyle asNormal();
- method public java.time.format.TextStyle asStandalone();
- method public boolean isStandalone();
- enum_constant public static final java.time.format.TextStyle FULL;
- enum_constant public static final java.time.format.TextStyle FULL_STANDALONE;
- enum_constant public static final java.time.format.TextStyle NARROW;
- enum_constant public static final java.time.format.TextStyle NARROW_STANDALONE;
- enum_constant public static final java.time.format.TextStyle SHORT;
- enum_constant public static final java.time.format.TextStyle SHORT_STANDALONE;
- }
-
-}
-
-package java.time.temporal {
-
- public enum ChronoField implements java.time.temporal.TemporalField {
- method public <R extends java.time.temporal.Temporal> R adjustInto(R, long);
- method public int checkValidIntValue(long);
- method public long checkValidValue(long);
- method public java.time.temporal.TemporalUnit getBaseUnit();
- method public long getFrom(java.time.temporal.TemporalAccessor);
- method public java.time.temporal.TemporalUnit getRangeUnit();
- method public boolean isDateBased();
- method public boolean isSupportedBy(java.time.temporal.TemporalAccessor);
- method public boolean isTimeBased();
- method public java.time.temporal.ValueRange range();
- method public java.time.temporal.ValueRange rangeRefinedBy(java.time.temporal.TemporalAccessor);
- enum_constant public static final java.time.temporal.ChronoField ALIGNED_DAY_OF_WEEK_IN_MONTH;
- enum_constant public static final java.time.temporal.ChronoField ALIGNED_DAY_OF_WEEK_IN_YEAR;
- enum_constant public static final java.time.temporal.ChronoField ALIGNED_WEEK_OF_MONTH;
- enum_constant public static final java.time.temporal.ChronoField ALIGNED_WEEK_OF_YEAR;
- enum_constant public static final java.time.temporal.ChronoField AMPM_OF_DAY;
- enum_constant public static final java.time.temporal.ChronoField CLOCK_HOUR_OF_AMPM;
- enum_constant public static final java.time.temporal.ChronoField CLOCK_HOUR_OF_DAY;
- enum_constant public static final java.time.temporal.ChronoField DAY_OF_MONTH;
- enum_constant public static final java.time.temporal.ChronoField DAY_OF_WEEK;
- enum_constant public static final java.time.temporal.ChronoField DAY_OF_YEAR;
- enum_constant public static final java.time.temporal.ChronoField EPOCH_DAY;
- enum_constant public static final java.time.temporal.ChronoField ERA;
- enum_constant public static final java.time.temporal.ChronoField HOUR_OF_AMPM;
- enum_constant public static final java.time.temporal.ChronoField HOUR_OF_DAY;
- enum_constant public static final java.time.temporal.ChronoField INSTANT_SECONDS;
- enum_constant public static final java.time.temporal.ChronoField MICRO_OF_DAY;
- enum_constant public static final java.time.temporal.ChronoField MICRO_OF_SECOND;
- enum_constant public static final java.time.temporal.ChronoField MILLI_OF_DAY;
- enum_constant public static final java.time.temporal.ChronoField MILLI_OF_SECOND;
- enum_constant public static final java.time.temporal.ChronoField MINUTE_OF_DAY;
- enum_constant public static final java.time.temporal.ChronoField MINUTE_OF_HOUR;
- enum_constant public static final java.time.temporal.ChronoField MONTH_OF_YEAR;
- enum_constant public static final java.time.temporal.ChronoField NANO_OF_DAY;
- enum_constant public static final java.time.temporal.ChronoField NANO_OF_SECOND;
- enum_constant public static final java.time.temporal.ChronoField OFFSET_SECONDS;
- enum_constant public static final java.time.temporal.ChronoField PROLEPTIC_MONTH;
- enum_constant public static final java.time.temporal.ChronoField SECOND_OF_DAY;
- enum_constant public static final java.time.temporal.ChronoField SECOND_OF_MINUTE;
- enum_constant public static final java.time.temporal.ChronoField YEAR;
- enum_constant public static final java.time.temporal.ChronoField YEAR_OF_ERA;
- }
-
- public enum ChronoUnit implements java.time.temporal.TemporalUnit {
- method public <R extends java.time.temporal.Temporal> R addTo(R, long);
- method public long between(java.time.temporal.Temporal, java.time.temporal.Temporal);
- method public java.time.Duration getDuration();
- method public boolean isDateBased();
- method public boolean isDurationEstimated();
- method public boolean isTimeBased();
- enum_constant public static final java.time.temporal.ChronoUnit CENTURIES;
- enum_constant public static final java.time.temporal.ChronoUnit DAYS;
- enum_constant public static final java.time.temporal.ChronoUnit DECADES;
- enum_constant public static final java.time.temporal.ChronoUnit ERAS;
- enum_constant public static final java.time.temporal.ChronoUnit FOREVER;
- enum_constant public static final java.time.temporal.ChronoUnit HALF_DAYS;
- enum_constant public static final java.time.temporal.ChronoUnit HOURS;
- enum_constant public static final java.time.temporal.ChronoUnit MICROS;
- enum_constant public static final java.time.temporal.ChronoUnit MILLENNIA;
- enum_constant public static final java.time.temporal.ChronoUnit MILLIS;
- enum_constant public static final java.time.temporal.ChronoUnit MINUTES;
- enum_constant public static final java.time.temporal.ChronoUnit MONTHS;
- enum_constant public static final java.time.temporal.ChronoUnit NANOS;
- enum_constant public static final java.time.temporal.ChronoUnit SECONDS;
- enum_constant public static final java.time.temporal.ChronoUnit WEEKS;
- enum_constant public static final java.time.temporal.ChronoUnit YEARS;
- }
-
- public final class IsoFields {
- field public static final java.time.temporal.TemporalField DAY_OF_QUARTER;
- field public static final java.time.temporal.TemporalField QUARTER_OF_YEAR;
- field public static final java.time.temporal.TemporalUnit QUARTER_YEARS;
- field public static final java.time.temporal.TemporalField WEEK_BASED_YEAR;
- field public static final java.time.temporal.TemporalUnit WEEK_BASED_YEARS;
- field public static final java.time.temporal.TemporalField WEEK_OF_WEEK_BASED_YEAR;
- }
-
- public final class JulianFields {
- field public static final java.time.temporal.TemporalField JULIAN_DAY;
- field public static final java.time.temporal.TemporalField MODIFIED_JULIAN_DAY;
- field public static final java.time.temporal.TemporalField RATA_DIE;
- }
-
- public interface Temporal extends java.time.temporal.TemporalAccessor {
- method public boolean isSupported(java.time.temporal.TemporalUnit);
- method public default java.time.temporal.Temporal minus(java.time.temporal.TemporalAmount);
- method public default java.time.temporal.Temporal minus(long, java.time.temporal.TemporalUnit);
- method public default java.time.temporal.Temporal plus(java.time.temporal.TemporalAmount);
- method public java.time.temporal.Temporal plus(long, java.time.temporal.TemporalUnit);
- method public long until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit);
- method public default java.time.temporal.Temporal with(java.time.temporal.TemporalAdjuster);
- method public java.time.temporal.Temporal with(java.time.temporal.TemporalField, long);
- }
-
- public interface TemporalAccessor {
- method public default int get(java.time.temporal.TemporalField);
- method public long getLong(java.time.temporal.TemporalField);
- method public boolean isSupported(java.time.temporal.TemporalField);
- method public default <R> R query(java.time.temporal.TemporalQuery<R>);
- method public default java.time.temporal.ValueRange range(java.time.temporal.TemporalField);
- }
-
- @java.lang.FunctionalInterface public interface TemporalAdjuster {
- method public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal);
- }
-
- public final class TemporalAdjusters {
- method public static java.time.temporal.TemporalAdjuster dayOfWeekInMonth(int, java.time.DayOfWeek);
- method public static java.time.temporal.TemporalAdjuster firstDayOfMonth();
- method public static java.time.temporal.TemporalAdjuster firstDayOfNextMonth();
- method public static java.time.temporal.TemporalAdjuster firstDayOfNextYear();
- method public static java.time.temporal.TemporalAdjuster firstDayOfYear();
- method public static java.time.temporal.TemporalAdjuster firstInMonth(java.time.DayOfWeek);
- method public static java.time.temporal.TemporalAdjuster lastDayOfMonth();
- method public static java.time.temporal.TemporalAdjuster lastDayOfYear();
- method public static java.time.temporal.TemporalAdjuster lastInMonth(java.time.DayOfWeek);
- method public static java.time.temporal.TemporalAdjuster next(java.time.DayOfWeek);
- method public static java.time.temporal.TemporalAdjuster nextOrSame(java.time.DayOfWeek);
- method public static java.time.temporal.TemporalAdjuster ofDateAdjuster(java.util.function.UnaryOperator<java.time.LocalDate>);
- method public static java.time.temporal.TemporalAdjuster previous(java.time.DayOfWeek);
- method public static java.time.temporal.TemporalAdjuster previousOrSame(java.time.DayOfWeek);
- }
-
- public interface TemporalAmount {
- method public java.time.temporal.Temporal addTo(java.time.temporal.Temporal);
- method public long get(java.time.temporal.TemporalUnit);
- method public java.util.List<java.time.temporal.TemporalUnit> getUnits();
- method public java.time.temporal.Temporal subtractFrom(java.time.temporal.Temporal);
- }
-
- public interface TemporalField {
- method public <R extends java.time.temporal.Temporal> R adjustInto(R, long);
- method public java.time.temporal.TemporalUnit getBaseUnit();
- method public default String getDisplayName(java.util.Locale);
- method public long getFrom(java.time.temporal.TemporalAccessor);
- method public java.time.temporal.TemporalUnit getRangeUnit();
- method public boolean isDateBased();
- method public boolean isSupportedBy(java.time.temporal.TemporalAccessor);
- method public boolean isTimeBased();
- method public java.time.temporal.ValueRange range();
- method public java.time.temporal.ValueRange rangeRefinedBy(java.time.temporal.TemporalAccessor);
- method public default java.time.temporal.TemporalAccessor resolve(java.util.Map<java.time.temporal.TemporalField,java.lang.Long>, java.time.temporal.TemporalAccessor, java.time.format.ResolverStyle);
- method public String toString();
- }
-
- public final class TemporalQueries {
- method public static java.time.temporal.TemporalQuery<java.time.chrono.Chronology> chronology();
- method public static java.time.temporal.TemporalQuery<java.time.LocalDate> localDate();
- method public static java.time.temporal.TemporalQuery<java.time.LocalTime> localTime();
- method public static java.time.temporal.TemporalQuery<java.time.ZoneOffset> offset();
- method public static java.time.temporal.TemporalQuery<java.time.temporal.TemporalUnit> precision();
- method public static java.time.temporal.TemporalQuery<java.time.ZoneId> zone();
- method public static java.time.temporal.TemporalQuery<java.time.ZoneId> zoneId();
- }
-
- @java.lang.FunctionalInterface public interface TemporalQuery<R> {
- method public R queryFrom(java.time.temporal.TemporalAccessor);
- }
-
- public interface TemporalUnit {
- method public <R extends java.time.temporal.Temporal> R addTo(R, long);
- method public long between(java.time.temporal.Temporal, java.time.temporal.Temporal);
- method public java.time.Duration getDuration();
- method public boolean isDateBased();
- method public boolean isDurationEstimated();
- method public default boolean isSupportedBy(java.time.temporal.Temporal);
- method public boolean isTimeBased();
- method public String toString();
- }
-
- public class UnsupportedTemporalTypeException extends java.time.DateTimeException {
- ctor public UnsupportedTemporalTypeException(String);
- ctor public UnsupportedTemporalTypeException(String, Throwable);
- }
-
- public final class ValueRange implements java.io.Serializable {
- method public int checkValidIntValue(long, java.time.temporal.TemporalField);
- method public long checkValidValue(long, java.time.temporal.TemporalField);
- method public long getLargestMinimum();
- method public long getMaximum();
- method public long getMinimum();
- method public long getSmallestMaximum();
- method public boolean isFixed();
- method public boolean isIntValue();
- method public boolean isValidIntValue(long);
- method public boolean isValidValue(long);
- method public static java.time.temporal.ValueRange of(long, long);
- method public static java.time.temporal.ValueRange of(long, long, long);
- method public static java.time.temporal.ValueRange of(long, long, long, long);
- }
-
- public final class WeekFields implements java.io.Serializable {
- method public java.time.temporal.TemporalField dayOfWeek();
- method public java.time.DayOfWeek getFirstDayOfWeek();
- method public int getMinimalDaysInFirstWeek();
- method public static java.time.temporal.WeekFields of(java.util.Locale);
- method public static java.time.temporal.WeekFields of(java.time.DayOfWeek, int);
- method public java.time.temporal.TemporalField weekBasedYear();
- method public java.time.temporal.TemporalField weekOfMonth();
- method public java.time.temporal.TemporalField weekOfWeekBasedYear();
- method public java.time.temporal.TemporalField weekOfYear();
- field public static final java.time.temporal.WeekFields ISO;
- field public static final java.time.temporal.WeekFields SUNDAY_START;
- field public static final java.time.temporal.TemporalUnit WEEK_BASED_YEARS;
- }
-
-}
-
-package java.time.zone {
-
- public final class ZoneOffsetTransition implements java.lang.Comparable<java.time.zone.ZoneOffsetTransition> java.io.Serializable {
- method public int compareTo(java.time.zone.ZoneOffsetTransition);
- method public java.time.LocalDateTime getDateTimeAfter();
- method public java.time.LocalDateTime getDateTimeBefore();
- method public java.time.Duration getDuration();
- method public java.time.Instant getInstant();
- method public java.time.ZoneOffset getOffsetAfter();
- method public java.time.ZoneOffset getOffsetBefore();
- method public boolean isGap();
- method public boolean isOverlap();
- method public boolean isValidOffset(java.time.ZoneOffset);
- method public static java.time.zone.ZoneOffsetTransition of(java.time.LocalDateTime, java.time.ZoneOffset, java.time.ZoneOffset);
- method public long toEpochSecond();
- }
-
- public final class ZoneOffsetTransitionRule implements java.io.Serializable {
- method public java.time.zone.ZoneOffsetTransition createTransition(int);
- method public int getDayOfMonthIndicator();
- method public java.time.DayOfWeek getDayOfWeek();
- method public java.time.LocalTime getLocalTime();
- method public java.time.Month getMonth();
- method public java.time.ZoneOffset getOffsetAfter();
- method public java.time.ZoneOffset getOffsetBefore();
- method public java.time.ZoneOffset getStandardOffset();
- method public java.time.zone.ZoneOffsetTransitionRule.TimeDefinition getTimeDefinition();
- method public boolean isMidnightEndOfDay();
- method public static java.time.zone.ZoneOffsetTransitionRule of(java.time.Month, int, java.time.DayOfWeek, java.time.LocalTime, boolean, java.time.zone.ZoneOffsetTransitionRule.TimeDefinition, java.time.ZoneOffset, java.time.ZoneOffset, java.time.ZoneOffset);
- }
-
- public enum ZoneOffsetTransitionRule.TimeDefinition {
- method public java.time.LocalDateTime createDateTime(java.time.LocalDateTime, java.time.ZoneOffset, java.time.ZoneOffset);
- enum_constant public static final java.time.zone.ZoneOffsetTransitionRule.TimeDefinition STANDARD;
- enum_constant public static final java.time.zone.ZoneOffsetTransitionRule.TimeDefinition UTC;
- enum_constant public static final java.time.zone.ZoneOffsetTransitionRule.TimeDefinition WALL;
- }
-
- public final class ZoneRules implements java.io.Serializable {
- method public java.time.Duration getDaylightSavings(java.time.Instant);
- method public java.time.ZoneOffset getOffset(java.time.Instant);
- method public java.time.ZoneOffset getOffset(java.time.LocalDateTime);
- method public java.time.ZoneOffset getStandardOffset(java.time.Instant);
- method public java.time.zone.ZoneOffsetTransition getTransition(java.time.LocalDateTime);
- method public java.util.List<java.time.zone.ZoneOffsetTransitionRule> getTransitionRules();
- method public java.util.List<java.time.zone.ZoneOffsetTransition> getTransitions();
- method public java.util.List<java.time.ZoneOffset> getValidOffsets(java.time.LocalDateTime);
- method public boolean isDaylightSavings(java.time.Instant);
- method public boolean isFixedOffset();
- method public boolean isValidOffset(java.time.LocalDateTime, java.time.ZoneOffset);
- method public java.time.zone.ZoneOffsetTransition nextTransition(java.time.Instant);
- method public static java.time.zone.ZoneRules of(java.time.ZoneOffset, java.time.ZoneOffset, java.util.List<java.time.zone.ZoneOffsetTransition>, java.util.List<java.time.zone.ZoneOffsetTransition>, java.util.List<java.time.zone.ZoneOffsetTransitionRule>);
- method public static java.time.zone.ZoneRules of(java.time.ZoneOffset);
- method public java.time.zone.ZoneOffsetTransition previousTransition(java.time.Instant);
- }
-
- public class ZoneRulesException extends java.time.DateTimeException {
- ctor public ZoneRulesException(String);
- ctor public ZoneRulesException(String, Throwable);
- }
-
-}
-
-package java.util {
-
- public abstract class AbstractCollection<E> implements java.util.Collection<E> {
- ctor protected AbstractCollection();
- method public boolean add(E);
- method public boolean addAll(@NonNull java.util.Collection<? extends E>);
- method public void clear();
- method public boolean contains(@Nullable Object);
- method public boolean containsAll(@NonNull java.util.Collection<?>);
- method public boolean isEmpty();
- method public boolean remove(@Nullable Object);
- method public boolean removeAll(@NonNull java.util.Collection<?>);
- method public boolean retainAll(@NonNull java.util.Collection<?>);
- method @NonNull public Object[] toArray();
- method @NonNull public <T> T[] toArray(@NonNull T[]);
- }
-
- public abstract class AbstractList<E> extends java.util.AbstractCollection<E> implements java.util.List<E> {
- ctor protected AbstractList();
- method public void add(int, E);
- method public boolean addAll(int, @NonNull java.util.Collection<? extends E>);
- method public int indexOf(@Nullable Object);
- method @NonNull public java.util.Iterator<E> iterator();
- method public int lastIndexOf(@Nullable Object);
- method @NonNull public java.util.ListIterator<E> listIterator();
- method @NonNull public java.util.ListIterator<E> listIterator(int);
- method public E remove(int);
- method protected void removeRange(int, int);
- method public E set(int, E);
- method @NonNull public java.util.List<E> subList(int, int);
- field protected transient int modCount;
- }
-
- public abstract class AbstractMap<K, V> implements java.util.Map<K,V> {
- ctor protected AbstractMap();
- method public void clear();
- method public boolean containsKey(@Nullable Object);
- method public boolean containsValue(@Nullable Object);
- method @Nullable public V get(@Nullable Object);
- method public boolean isEmpty();
- method @NonNull public java.util.Set<K> keySet();
- method @Nullable public V put(K, V);
- method public void putAll(@NonNull java.util.Map<? extends K,? extends V>);
- method @Nullable public V remove(@Nullable Object);
- method public int size();
- method @NonNull public java.util.Collection<V> values();
- }
-
- public static class AbstractMap.SimpleEntry<K, V> implements java.util.Map.Entry<K,V> java.io.Serializable {
- ctor public AbstractMap.SimpleEntry(K, V);
- ctor public AbstractMap.SimpleEntry(@NonNull java.util.Map.Entry<? extends K,? extends V>);
- method public K getKey();
- method public V getValue();
- method public V setValue(V);
- }
-
- public static class AbstractMap.SimpleImmutableEntry<K, V> implements java.util.Map.Entry<K,V> java.io.Serializable {
- ctor public AbstractMap.SimpleImmutableEntry(K, V);
- ctor public AbstractMap.SimpleImmutableEntry(@NonNull java.util.Map.Entry<? extends K,? extends V>);
- method public K getKey();
- method public V getValue();
- method public V setValue(V);
- }
-
- public abstract class AbstractQueue<E> extends java.util.AbstractCollection<E> implements java.util.Queue<E> {
- ctor protected AbstractQueue();
- method public E element();
- method public E remove();
- }
-
- public abstract class AbstractSequentialList<E> extends java.util.AbstractList<E> {
- ctor protected AbstractSequentialList();
- method public E get(int);
- }
-
- public abstract class AbstractSet<E> extends java.util.AbstractCollection<E> implements java.util.Set<E> {
- ctor protected AbstractSet();
- }
-
- public class ArrayDeque<E> extends java.util.AbstractCollection<E> implements java.lang.Cloneable java.util.Deque<E> java.io.Serializable {
- ctor public ArrayDeque();
- ctor public ArrayDeque(int);
- ctor public ArrayDeque(@NonNull java.util.Collection<? extends E>);
- method public void addFirst(E);
- method public void addLast(E);
- method @NonNull public java.util.ArrayDeque<E> clone();
- method @NonNull public java.util.Iterator<E> descendingIterator();
- method public E element();
- method public E getFirst();
- method public E getLast();
- method @NonNull public java.util.Iterator<E> iterator();
- method public boolean offer(E);
- method public boolean offerFirst(E);
- method public boolean offerLast(E);
- method @Nullable public E peek();
- method @Nullable public E peekFirst();
- method @Nullable public E peekLast();
- method @Nullable public E poll();
- method @Nullable public E pollFirst();
- method @Nullable public E pollLast();
- method public E pop();
- method public void push(E);
- method public E remove();
- method public E removeFirst();
- method public boolean removeFirstOccurrence(@Nullable Object);
- method public E removeLast();
- method public boolean removeLastOccurrence(@Nullable Object);
- method public int size();
- }
-
- public class ArrayList<E> extends java.util.AbstractList<E> implements java.lang.Cloneable java.util.List<E> java.util.RandomAccess java.io.Serializable {
- ctor public ArrayList(int);
- ctor public ArrayList();
- ctor public ArrayList(@NonNull java.util.Collection<? extends E>);
- method @NonNull public Object clone();
- method public void ensureCapacity(int);
- method public void forEach(@NonNull java.util.function.Consumer<? super E>);
- method public E get(int);
- method public int size();
- method public void trimToSize();
- }
-
- public class Arrays {
- method @NonNull @java.lang.SafeVarargs public static <T> java.util.List<T> asList(@NonNull T...);
- method public static int binarySearch(@NonNull long[], long);
- method public static int binarySearch(@NonNull long[], int, int, long);
- method public static int binarySearch(@NonNull int[], int);
- method public static int binarySearch(@NonNull int[], int, int, int);
- method public static int binarySearch(@NonNull short[], short);
- method public static int binarySearch(@NonNull short[], int, int, short);
- method public static int binarySearch(@NonNull char[], char);
- method public static int binarySearch(@NonNull char[], int, int, char);
- method public static int binarySearch(@NonNull byte[], byte);
- method public static int binarySearch(@NonNull byte[], int, int, byte);
- method public static int binarySearch(@NonNull double[], double);
- method public static int binarySearch(@NonNull double[], int, int, double);
- method public static int binarySearch(@NonNull float[], float);
- method public static int binarySearch(@NonNull float[], int, int, float);
- method public static int binarySearch(@NonNull Object[], @NonNull Object);
- method public static int binarySearch(@NonNull Object[], int, int, @NonNull Object);
- method public static <T> int binarySearch(@NonNull T[], T, @Nullable java.util.Comparator<? super T>);
- method public static <T> int binarySearch(@NonNull T[], int, int, T, @Nullable java.util.Comparator<? super T>);
- method @NonNull public static <T> T[] copyOf(@NonNull T[], int);
- method @NonNull public static <T, U> T[] copyOf(@NonNull U[], int, @NonNull Class<? extends T[]>);
- method @NonNull public static byte[] copyOf(@NonNull byte[], int);
- method @NonNull public static short[] copyOf(@NonNull short[], int);
- method @NonNull public static int[] copyOf(@NonNull int[], int);
- method @NonNull public static long[] copyOf(@NonNull long[], int);
- method @NonNull public static char[] copyOf(@NonNull char[], int);
- method @NonNull public static float[] copyOf(@NonNull float[], int);
- method @NonNull public static double[] copyOf(@NonNull double[], int);
- method @NonNull public static boolean[] copyOf(@NonNull boolean[], int);
- method @NonNull public static <T> T[] copyOfRange(@NonNull T[], int, int);
- method @NonNull public static <T, U> T[] copyOfRange(@NonNull U[], int, int, @NonNull Class<? extends T[]>);
- method @NonNull public static byte[] copyOfRange(@NonNull byte[], int, int);
- method @NonNull public static short[] copyOfRange(@NonNull short[], int, int);
- method @NonNull public static int[] copyOfRange(@NonNull int[], int, int);
- method @NonNull public static long[] copyOfRange(@NonNull long[], int, int);
- method @NonNull public static char[] copyOfRange(@NonNull char[], int, int);
- method @NonNull public static float[] copyOfRange(@NonNull float[], int, int);
- method @NonNull public static double[] copyOfRange(@NonNull double[], int, int);
- method @NonNull public static boolean[] copyOfRange(@NonNull boolean[], int, int);
- method public static boolean deepEquals(@Nullable Object[], @Nullable Object[]);
- method public static int deepHashCode(@Nullable Object[]);
- method @NonNull public static String deepToString(@Nullable Object[]);
- method public static boolean equals(@Nullable long[], @Nullable long[]);
- method public static boolean equals(@Nullable int[], @Nullable int[]);
- method public static boolean equals(@Nullable short[], @Nullable short[]);
- method public static boolean equals(@Nullable char[], @Nullable char[]);
- method public static boolean equals(@Nullable byte[], @Nullable byte[]);
- method public static boolean equals(@Nullable boolean[], @Nullable boolean[]);
- method public static boolean equals(@Nullable double[], @Nullable double[]);
- method public static boolean equals(@Nullable float[], @Nullable float[]);
- method public static boolean equals(@Nullable Object[], @Nullable Object[]);
- method public static void fill(@NonNull long[], long);
- method public static void fill(@NonNull long[], int, int, long);
- method public static void fill(@NonNull int[], int);
- method public static void fill(@NonNull int[], int, int, int);
- method public static void fill(@NonNull short[], short);
- method public static void fill(@NonNull short[], int, int, short);
- method public static void fill(@NonNull char[], char);
- method public static void fill(@NonNull char[], int, int, char);
- method public static void fill(@NonNull byte[], byte);
- method public static void fill(@NonNull byte[], int, int, byte);
- method public static void fill(@NonNull boolean[], boolean);
- method public static void fill(@NonNull boolean[], int, int, boolean);
- method public static void fill(@NonNull double[], double);
- method public static void fill(@NonNull double[], int, int, double);
- method public static void fill(@NonNull float[], float);
- method public static void fill(@NonNull float[], int, int, float);
- method public static void fill(@NonNull Object[], @Nullable Object);
- method public static void fill(@NonNull Object[], int, int, @Nullable Object);
- method public static int hashCode(@Nullable long[]);
- method public static int hashCode(@Nullable int[]);
- method public static int hashCode(@Nullable short[]);
- method public static int hashCode(@Nullable char[]);
- method public static int hashCode(@Nullable byte[]);
- method public static int hashCode(@Nullable boolean[]);
- method public static int hashCode(@Nullable float[]);
- method public static int hashCode(@Nullable double[]);
- method public static int hashCode(@Nullable Object[]);
- method public static <T> void parallelPrefix(@NonNull T[], @NonNull java.util.function.BinaryOperator<T>);
- method public static <T> void parallelPrefix(@NonNull T[], int, int, @NonNull java.util.function.BinaryOperator<T>);
- method public static void parallelPrefix(@NonNull long[], @NonNull java.util.function.LongBinaryOperator);
- method public static void parallelPrefix(@NonNull long[], int, int, @NonNull java.util.function.LongBinaryOperator);
- method public static void parallelPrefix(@NonNull double[], @NonNull java.util.function.DoubleBinaryOperator);
- method public static void parallelPrefix(@NonNull double[], int, int, @NonNull java.util.function.DoubleBinaryOperator);
- method public static void parallelPrefix(@NonNull int[], @NonNull java.util.function.IntBinaryOperator);
- method public static void parallelPrefix(@NonNull int[], int, int, @NonNull java.util.function.IntBinaryOperator);
- method public static <T> void parallelSetAll(@NonNull T[], @NonNull java.util.function.IntFunction<? extends T>);
- method public static void parallelSetAll(@NonNull int[], @NonNull java.util.function.IntUnaryOperator);
- method public static void parallelSetAll(@NonNull long[], @NonNull java.util.function.IntToLongFunction);
- method public static void parallelSetAll(@NonNull double[], @NonNull java.util.function.IntToDoubleFunction);
- method public static void parallelSort(@NonNull byte[]);
- method public static void parallelSort(@NonNull byte[], int, int);
- method public static void parallelSort(@NonNull char[]);
- method public static void parallelSort(@NonNull char[], int, int);
- method public static void parallelSort(@NonNull short[]);
- method public static void parallelSort(@NonNull short[], int, int);
- method public static void parallelSort(@NonNull int[]);
- method public static void parallelSort(@NonNull int[], int, int);
- method public static void parallelSort(@NonNull long[]);
- method public static void parallelSort(@NonNull long[], int, int);
- method public static void parallelSort(@NonNull float[]);
- method public static void parallelSort(@NonNull float[], int, int);
- method public static void parallelSort(@NonNull double[]);
- method public static void parallelSort(@NonNull double[], int, int);
- method public static <T extends java.lang.Comparable<? super T>> void parallelSort(@NonNull T[]);
- method public static <T extends java.lang.Comparable<? super T>> void parallelSort(@NonNull T[], int, int);
- method public static <T> void parallelSort(@NonNull T[], @Nullable java.util.Comparator<? super T>);
- method public static <T> void parallelSort(@NonNull T[], int, int, @Nullable java.util.Comparator<? super T>);
- method public static <T> void setAll(@NonNull T[], @NonNull java.util.function.IntFunction<? extends T>);
- method public static void setAll(@NonNull int[], @NonNull java.util.function.IntUnaryOperator);
- method public static void setAll(@NonNull long[], @NonNull java.util.function.IntToLongFunction);
- method public static void setAll(@NonNull double[], @NonNull java.util.function.IntToDoubleFunction);
- method public static void sort(@NonNull int[]);
- method public static void sort(@NonNull int[], int, int);
- method public static void sort(@NonNull long[]);
- method public static void sort(@NonNull long[], int, int);
- method public static void sort(@NonNull short[]);
- method public static void sort(@NonNull short[], int, int);
- method public static void sort(@NonNull char[]);
- method public static void sort(@NonNull char[], int, int);
- method public static void sort(@NonNull byte[]);
- method public static void sort(@NonNull byte[], int, int);
- method public static void sort(@NonNull float[]);
- method public static void sort(@NonNull float[], int, int);
- method public static void sort(@NonNull double[]);
- method public static void sort(@NonNull double[], int, int);
- method public static void sort(@NonNull Object[]);
- method public static void sort(@NonNull Object[], int, int);
- method public static <T> void sort(@NonNull T[], @Nullable java.util.Comparator<? super T>);
- method public static <T> void sort(@NonNull T[], int, int, @Nullable java.util.Comparator<? super T>);
- method @NonNull public static <T> java.util.Spliterator<T> spliterator(@NonNull T[]);
- method @NonNull public static <T> java.util.Spliterator<T> spliterator(@NonNull T[], int, int);
- method @NonNull public static java.util.Spliterator.OfInt spliterator(@NonNull int[]);
- method @NonNull public static java.util.Spliterator.OfInt spliterator(@NonNull int[], int, int);
- method @NonNull public static java.util.Spliterator.OfLong spliterator(@NonNull long[]);
- method @NonNull public static java.util.Spliterator.OfLong spliterator(@NonNull long[], int, int);
- method @NonNull public static java.util.Spliterator.OfDouble spliterator(@NonNull double[]);
- method @NonNull public static java.util.Spliterator.OfDouble spliterator(@NonNull double[], int, int);
- method @NonNull public static <T> java.util.stream.Stream<T> stream(@NonNull T[]);
- method @NonNull public static <T> java.util.stream.Stream<T> stream(@NonNull T[], int, int);
- method @NonNull public static java.util.stream.IntStream stream(@NonNull int[]);
- method @NonNull public static java.util.stream.IntStream stream(@NonNull int[], int, int);
- method @NonNull public static java.util.stream.LongStream stream(@NonNull long[]);
- method @NonNull public static java.util.stream.LongStream stream(@NonNull long[], int, int);
- method @NonNull public static java.util.stream.DoubleStream stream(@NonNull double[]);
- method @NonNull public static java.util.stream.DoubleStream stream(@NonNull double[], int, int);
- method @NonNull public static String toString(@Nullable long[]);
- method @NonNull public static String toString(@Nullable int[]);
- method @NonNull public static String toString(@Nullable short[]);
- method @NonNull public static String toString(@Nullable char[]);
- method @NonNull public static String toString(@Nullable byte[]);
- method @NonNull public static String toString(@Nullable boolean[]);
- method @NonNull public static String toString(@Nullable float[]);
- method @NonNull public static String toString(@Nullable double[]);
- method @NonNull public static String toString(@Nullable Object[]);
- }
-
- public class Base64 {
- method public static java.util.Base64.Decoder getDecoder();
- method public static java.util.Base64.Encoder getEncoder();
- method public static java.util.Base64.Decoder getMimeDecoder();
- method public static java.util.Base64.Encoder getMimeEncoder();
- method public static java.util.Base64.Encoder getMimeEncoder(int, byte[]);
- method public static java.util.Base64.Decoder getUrlDecoder();
- method public static java.util.Base64.Encoder getUrlEncoder();
- }
-
- public static class Base64.Decoder {
- method public byte[] decode(byte[]);
- method public byte[] decode(String);
- method public int decode(byte[], byte[]);
- method public java.nio.ByteBuffer decode(java.nio.ByteBuffer);
- method public java.io.InputStream wrap(java.io.InputStream);
- }
-
- public static class Base64.Encoder {
- method public byte[] encode(byte[]);
- method public int encode(byte[], byte[]);
- method public java.nio.ByteBuffer encode(java.nio.ByteBuffer);
- method public String encodeToString(byte[]);
- method public java.util.Base64.Encoder withoutPadding();
- method public java.io.OutputStream wrap(java.io.OutputStream);
- }
-
- public class BitSet implements java.lang.Cloneable java.io.Serializable {
- ctor public BitSet();
- ctor public BitSet(int);
- method public void and(java.util.BitSet);
- method public void andNot(java.util.BitSet);
- method public int cardinality();
- method public void clear(int);
- method public void clear(int, int);
- method public void clear();
- method public Object clone();
- method public void flip(int);
- method public void flip(int, int);
- method public boolean get(int);
- method public java.util.BitSet get(int, int);
- method public boolean intersects(java.util.BitSet);
- method public boolean isEmpty();
- method public int length();
- method public int nextClearBit(int);
- method public int nextSetBit(int);
- method public void or(java.util.BitSet);
- method public int previousClearBit(int);
- method public int previousSetBit(int);
- method public void set(int);
- method public void set(int, boolean);
- method public void set(int, int);
- method public void set(int, int, boolean);
- method public int size();
- method public java.util.stream.IntStream stream();
- method public byte[] toByteArray();
- method public long[] toLongArray();
- method public static java.util.BitSet valueOf(long[]);
- method public static java.util.BitSet valueOf(java.nio.LongBuffer);
- method public static java.util.BitSet valueOf(byte[]);
- method public static java.util.BitSet valueOf(java.nio.ByteBuffer);
- method public void xor(java.util.BitSet);
- }
-
- public abstract class Calendar implements java.lang.Cloneable java.lang.Comparable<java.util.Calendar> java.io.Serializable {
- ctor protected Calendar();
- ctor protected Calendar(@NonNull java.util.TimeZone, @NonNull java.util.Locale);
- method public abstract void add(int, int);
- method public boolean after(@Nullable Object);
- method public boolean before(@Nullable Object);
- method public final void clear();
- method public final void clear(int);
- method @NonNull public Object clone();
- method public int compareTo(@NonNull java.util.Calendar);
- method protected void complete();
- method protected abstract void computeFields();
- method protected abstract void computeTime();
- method public int get(int);
- method public int getActualMaximum(int);
- method public int getActualMinimum(int);
- method @NonNull public static java.util.Set<java.lang.String> getAvailableCalendarTypes();
- method @NonNull public static java.util.Locale[] getAvailableLocales();
- method @NonNull public String getCalendarType();
- method @Nullable public String getDisplayName(int, int, @NonNull java.util.Locale);
- method @Nullable public java.util.Map<java.lang.String,java.lang.Integer> getDisplayNames(int, int, @NonNull java.util.Locale);
- method public int getFirstDayOfWeek();
- method public abstract int getGreatestMinimum(int);
- method @NonNull public static java.util.Calendar getInstance();
- method @NonNull public static java.util.Calendar getInstance(@NonNull java.util.TimeZone);
- method @NonNull public static java.util.Calendar getInstance(@NonNull java.util.Locale);
- method @NonNull public static java.util.Calendar getInstance(@NonNull java.util.TimeZone, @NonNull java.util.Locale);
- method public abstract int getLeastMaximum(int);
- method public abstract int getMaximum(int);
- method public int getMinimalDaysInFirstWeek();
- method public abstract int getMinimum(int);
- method @NonNull public final java.util.Date getTime();
- method public long getTimeInMillis();
- method @NonNull public java.util.TimeZone getTimeZone();
- method public int getWeekYear();
- method public int getWeeksInWeekYear();
- method protected final int internalGet(int);
- method public boolean isLenient();
- method public final boolean isSet(int);
- method public boolean isWeekDateSupported();
- method public abstract void roll(int, boolean);
- method public void roll(int, int);
- method public void set(int, int);
- method public final void set(int, int, int);
- method public final void set(int, int, int, int, int);
- method public final void set(int, int, int, int, int, int);
- method public void setFirstDayOfWeek(int);
- method public void setLenient(boolean);
- method public void setMinimalDaysInFirstWeek(int);
- method public final void setTime(@NonNull java.util.Date);
- method public void setTimeInMillis(long);
- method public void setTimeZone(@NonNull java.util.TimeZone);
- method public void setWeekDate(int, int, int);
- method @NonNull public final java.time.Instant toInstant();
- field public static final int ALL_STYLES = 0; // 0x0
- field public static final int AM = 0; // 0x0
- field public static final int AM_PM = 9; // 0x9
- field public static final int APRIL = 3; // 0x3
- field public static final int AUGUST = 7; // 0x7
- field public static final int DATE = 5; // 0x5
- field public static final int DAY_OF_MONTH = 5; // 0x5
- field public static final int DAY_OF_WEEK = 7; // 0x7
- field public static final int DAY_OF_WEEK_IN_MONTH = 8; // 0x8
- field public static final int DAY_OF_YEAR = 6; // 0x6
- field public static final int DECEMBER = 11; // 0xb
- field public static final int DST_OFFSET = 16; // 0x10
- field public static final int ERA = 0; // 0x0
- field public static final int FEBRUARY = 1; // 0x1
- field public static final int FIELD_COUNT = 17; // 0x11
- field public static final int FRIDAY = 6; // 0x6
- field public static final int HOUR = 10; // 0xa
- field public static final int HOUR_OF_DAY = 11; // 0xb
- field public static final int JANUARY = 0; // 0x0
- field public static final int JULY = 6; // 0x6
- field public static final int JUNE = 5; // 0x5
- field public static final int LONG = 2; // 0x2
- field public static final int LONG_FORMAT = 2; // 0x2
- field public static final int LONG_STANDALONE = 32770; // 0x8002
- field public static final int MARCH = 2; // 0x2
- field public static final int MAY = 4; // 0x4
- field public static final int MILLISECOND = 14; // 0xe
- field public static final int MINUTE = 12; // 0xc
- field public static final int MONDAY = 2; // 0x2
- field public static final int MONTH = 2; // 0x2
- field public static final int NARROW_FORMAT = 4; // 0x4
- field public static final int NARROW_STANDALONE = 32772; // 0x8004
- field public static final int NOVEMBER = 10; // 0xa
- field public static final int OCTOBER = 9; // 0x9
- field public static final int PM = 1; // 0x1
- field public static final int SATURDAY = 7; // 0x7
- field public static final int SECOND = 13; // 0xd
- field public static final int SEPTEMBER = 8; // 0x8
- field public static final int SHORT = 1; // 0x1
- field public static final int SHORT_FORMAT = 1; // 0x1
- field public static final int SHORT_STANDALONE = 32769; // 0x8001
- field public static final int SUNDAY = 1; // 0x1
- field public static final int THURSDAY = 5; // 0x5
- field public static final int TUESDAY = 3; // 0x3
- field public static final int UNDECIMBER = 12; // 0xc
- field public static final int WEDNESDAY = 4; // 0x4
- field public static final int WEEK_OF_MONTH = 4; // 0x4
- field public static final int WEEK_OF_YEAR = 3; // 0x3
- field public static final int YEAR = 1; // 0x1
- field public static final int ZONE_OFFSET = 15; // 0xf
- field protected boolean areFieldsSet;
- field @NonNull protected int[] fields;
- field @NonNull protected boolean[] isSet;
- field protected boolean isTimeSet;
- field protected long time;
- }
-
- public static class Calendar.Builder {
- ctor public Calendar.Builder();
- method @NonNull public java.util.Calendar build();
- method @NonNull public java.util.Calendar.Builder set(int, int);
- method @NonNull public java.util.Calendar.Builder setCalendarType(@NonNull String);
- method @NonNull public java.util.Calendar.Builder setDate(int, int, int);
- method @NonNull public java.util.Calendar.Builder setFields(@NonNull int...);
- method @NonNull public java.util.Calendar.Builder setInstant(long);
- method @NonNull public java.util.Calendar.Builder setInstant(@NonNull java.util.Date);
- method @NonNull public java.util.Calendar.Builder setLenient(boolean);
- method @NonNull public java.util.Calendar.Builder setLocale(@NonNull java.util.Locale);
- method @NonNull public java.util.Calendar.Builder setTimeOfDay(int, int, int);
- method @NonNull public java.util.Calendar.Builder setTimeOfDay(int, int, int, int);
- method @NonNull public java.util.Calendar.Builder setTimeZone(@NonNull java.util.TimeZone);
- method @NonNull public java.util.Calendar.Builder setWeekDate(int, int, int);
- method @NonNull public java.util.Calendar.Builder setWeekDefinition(int, int);
- }
-
- public interface Collection<E> extends java.lang.Iterable<E> {
- method public boolean add(E);
- method public boolean addAll(@NonNull java.util.Collection<? extends E>);
- method public void clear();
- method public boolean contains(@Nullable Object);
- method public boolean containsAll(@NonNull java.util.Collection<?>);
- method public boolean equals(@Nullable Object);
- method public int hashCode();
- method public boolean isEmpty();
- method @NonNull public java.util.Iterator<E> iterator();
- method @NonNull public default java.util.stream.Stream<E> parallelStream();
- method public boolean remove(@Nullable Object);
- method public boolean removeAll(@NonNull java.util.Collection<?>);
- method public default boolean removeIf(@NonNull java.util.function.Predicate<? super E>);
- method public boolean retainAll(@NonNull java.util.Collection<?>);
- method public int size();
- method @NonNull public default java.util.Spliterator<E> spliterator();
- method @NonNull public default java.util.stream.Stream<E> stream();
- method @NonNull public Object[] toArray();
- method @NonNull public <T> T[] toArray(@NonNull T[]);
- }
-
- public class Collections {
- method @java.lang.SafeVarargs public static <T> boolean addAll(@NonNull java.util.Collection<? super T>, @NonNull T...);
- method @NonNull public static <T> java.util.Queue<T> asLifoQueue(@NonNull java.util.Deque<T>);
- method public static <T> int binarySearch(@NonNull java.util.List<? extends java.lang.Comparable<? super T>>, @NonNull T);
- method public static <T> int binarySearch(@NonNull java.util.List<? extends T>, T, @Nullable java.util.Comparator<? super T>);
- method @NonNull public static <E> java.util.Collection<E> checkedCollection(@NonNull java.util.Collection<E>, @NonNull Class<E>);
- method @NonNull public static <E> java.util.List<E> checkedList(@NonNull java.util.List<E>, @NonNull Class<E>);
- method @NonNull public static <K, V> java.util.Map<K,V> checkedMap(@NonNull java.util.Map<K,V>, @NonNull Class<K>, @NonNull Class<V>);
- method @NonNull public static <K, V> java.util.NavigableMap<K,V> checkedNavigableMap(@NonNull java.util.NavigableMap<K,V>, @NonNull Class<K>, @NonNull Class<V>);
- method @NonNull public static <E> java.util.NavigableSet<E> checkedNavigableSet(@NonNull java.util.NavigableSet<E>, @NonNull Class<E>);
- method @NonNull public static <E> java.util.Queue<E> checkedQueue(@NonNull java.util.Queue<E>, @NonNull Class<E>);
- method @NonNull public static <E> java.util.Set<E> checkedSet(@NonNull java.util.Set<E>, @NonNull Class<E>);
- method @NonNull public static <K, V> java.util.SortedMap<K,V> checkedSortedMap(@NonNull java.util.SortedMap<K,V>, @NonNull Class<K>, @NonNull Class<V>);
- method @NonNull public static <E> java.util.SortedSet<E> checkedSortedSet(@NonNull java.util.SortedSet<E>, @NonNull Class<E>);
- method public static <T> void copy(@NonNull java.util.List<? super T>, @NonNull java.util.List<? extends T>);
- method public static boolean disjoint(@NonNull java.util.Collection<?>, @NonNull java.util.Collection<?>);
- method @NonNull public static <T> java.util.Enumeration<T> emptyEnumeration();
- method @NonNull public static <T> java.util.Iterator<T> emptyIterator();
- method @NonNull public static final <T> java.util.List<T> emptyList();
- method @NonNull public static <T> java.util.ListIterator<T> emptyListIterator();
- method @NonNull public static final <K, V> java.util.Map<K,V> emptyMap();
- method @NonNull public static final <K, V> java.util.NavigableMap<K,V> emptyNavigableMap();
- method @NonNull public static <E> java.util.NavigableSet<E> emptyNavigableSet();
- method @NonNull public static final <T> java.util.Set<T> emptySet();
- method @NonNull public static final <K, V> java.util.SortedMap<K,V> emptySortedMap();
- method @NonNull public static <E> java.util.SortedSet<E> emptySortedSet();
- method @NonNull public static <T> java.util.Enumeration<T> enumeration(@NonNull java.util.Collection<T>);
- method public static <T> void fill(@NonNull java.util.List<? super T>, T);
- method public static int frequency(@NonNull java.util.Collection<?>, @Nullable Object);
- method public static int indexOfSubList(@NonNull java.util.List<?>, @NonNull java.util.List<?>);
- method public static int lastIndexOfSubList(@NonNull java.util.List<?>, @NonNull java.util.List<?>);
- method @NonNull public static <T> java.util.ArrayList<T> list(@NonNull java.util.Enumeration<T>);
- method @NonNull public static <T extends java.lang.Object & java.lang.Comparable<? super T>> T max(@NonNull java.util.Collection<? extends T>);
- method public static <T> T max(@NonNull java.util.Collection<? extends T>, @Nullable java.util.Comparator<? super T>);
- method @NonNull public static <T extends java.lang.Object & java.lang.Comparable<? super T>> T min(@NonNull java.util.Collection<? extends T>);
- method public static <T> T min(@NonNull java.util.Collection<? extends T>, @Nullable java.util.Comparator<? super T>);
- method @NonNull public static <T> java.util.List<T> nCopies(int, T);
- method @NonNull public static <E> java.util.Set<E> newSetFromMap(@NonNull java.util.Map<E,java.lang.Boolean>);
- method public static <T> boolean replaceAll(@NonNull java.util.List<T>, T, T);
- method public static void reverse(@NonNull java.util.List<?>);
- method @NonNull public static <T> java.util.Comparator<T> reverseOrder();
- method @NonNull public static <T> java.util.Comparator<T> reverseOrder(@Nullable java.util.Comparator<T>);
- method public static void rotate(@NonNull java.util.List<?>, int);
- method public static void shuffle(@NonNull java.util.List<?>);
- method public static void shuffle(@NonNull java.util.List<?>, @NonNull java.util.Random);
- method @NonNull public static <T> java.util.Set<T> singleton(T);
- method @NonNull public static <T> java.util.List<T> singletonList(T);
- method @NonNull public static <K, V> java.util.Map<K,V> singletonMap(K, V);
- method public static <T extends java.lang.Comparable<? super T>> void sort(@NonNull java.util.List<T>);
- method public static <T> void sort(@NonNull java.util.List<T>, @Nullable java.util.Comparator<? super T>);
- method public static void swap(@NonNull java.util.List<?>, int, int);
- method @NonNull public static <T> java.util.Collection<T> synchronizedCollection(@NonNull java.util.Collection<T>);
- method @NonNull public static <T> java.util.List<T> synchronizedList(@NonNull java.util.List<T>);
- method @NonNull public static <K, V> java.util.Map<K,V> synchronizedMap(@NonNull java.util.Map<K,V>);
- method @NonNull public static <K, V> java.util.NavigableMap<K,V> synchronizedNavigableMap(@NonNull java.util.NavigableMap<K,V>);
- method @NonNull public static <T> java.util.NavigableSet<T> synchronizedNavigableSet(@NonNull java.util.NavigableSet<T>);
- method @NonNull public static <T> java.util.Set<T> synchronizedSet(@NonNull java.util.Set<T>);
- method @NonNull public static <K, V> java.util.SortedMap<K,V> synchronizedSortedMap(@NonNull java.util.SortedMap<K,V>);
- method @NonNull public static <T> java.util.SortedSet<T> synchronizedSortedSet(@NonNull java.util.SortedSet<T>);
- method @NonNull public static <T> java.util.Collection<T> unmodifiableCollection(@NonNull java.util.Collection<? extends T>);
- method @NonNull public static <T> java.util.List<T> unmodifiableList(@NonNull java.util.List<? extends T>);
- method @NonNull public static <K, V> java.util.Map<K,V> unmodifiableMap(@NonNull java.util.Map<? extends K,? extends V>);
- method @NonNull public static <K, V> java.util.NavigableMap<K,V> unmodifiableNavigableMap(@NonNull java.util.NavigableMap<K,? extends V>);
- method @NonNull public static <T> java.util.NavigableSet<T> unmodifiableNavigableSet(@NonNull java.util.NavigableSet<T>);
- method @NonNull public static <T> java.util.Set<T> unmodifiableSet(@NonNull java.util.Set<? extends T>);
- method @NonNull public static <K, V> java.util.SortedMap<K,V> unmodifiableSortedMap(@NonNull java.util.SortedMap<K,? extends V>);
- method @NonNull public static <T> java.util.SortedSet<T> unmodifiableSortedSet(@NonNull java.util.SortedSet<T>);
- field @NonNull public static final java.util.List EMPTY_LIST;
- field @NonNull public static final java.util.Map EMPTY_MAP;
- field @NonNull public static final java.util.Set EMPTY_SET;
- }
-
- @java.lang.FunctionalInterface public interface Comparator<T> {
- method public int compare(T, T);
- method public static <T, U> java.util.Comparator<T> comparing(java.util.function.Function<? super T,? extends U>, java.util.Comparator<? super U>);
- method public static <T, U extends java.lang.Comparable<? super U>> java.util.Comparator<T> comparing(java.util.function.Function<? super T,? extends U>);
- method public static <T> java.util.Comparator<T> comparingDouble(java.util.function.ToDoubleFunction<? super T>);
- method public static <T> java.util.Comparator<T> comparingInt(java.util.function.ToIntFunction<? super T>);
- method public static <T> java.util.Comparator<T> comparingLong(java.util.function.ToLongFunction<? super T>);
- method public boolean equals(Object);
- method public static <T extends java.lang.Comparable<? super T>> java.util.Comparator<T> naturalOrder();
- method public static <T> java.util.Comparator<T> nullsFirst(java.util.Comparator<? super T>);
- method public static <T> java.util.Comparator<T> nullsLast(java.util.Comparator<? super T>);
- method public static <T extends java.lang.Comparable<? super T>> java.util.Comparator<T> reverseOrder();
- method public default java.util.Comparator<T> reversed();
- method public default java.util.Comparator<T> thenComparing(java.util.Comparator<? super T>);
- method public default <U> java.util.Comparator<T> thenComparing(java.util.function.Function<? super T,? extends U>, java.util.Comparator<? super U>);
- method public default <U extends java.lang.Comparable<? super U>> java.util.Comparator<T> thenComparing(java.util.function.Function<? super T,? extends U>);
- method public default java.util.Comparator<T> thenComparingDouble(java.util.function.ToDoubleFunction<? super T>);
- method public default java.util.Comparator<T> thenComparingInt(java.util.function.ToIntFunction<? super T>);
- method public default java.util.Comparator<T> thenComparingLong(java.util.function.ToLongFunction<? super T>);
- }
-
- public class ConcurrentModificationException extends java.lang.RuntimeException {
- ctor public ConcurrentModificationException();
- ctor public ConcurrentModificationException(String);
- ctor public ConcurrentModificationException(Throwable);
- ctor public ConcurrentModificationException(String, Throwable);
- }
-
- public final class Currency implements java.io.Serializable {
- method public static java.util.Set<java.util.Currency> getAvailableCurrencies();
- method public String getCurrencyCode();
- method public int getDefaultFractionDigits();
- method public String getDisplayName();
- method public String getDisplayName(java.util.Locale);
- method public static java.util.Currency getInstance(String);
- method public static java.util.Currency getInstance(java.util.Locale);
- method public int getNumericCode();
- method public String getSymbol();
- method public String getSymbol(java.util.Locale);
- }
-
- public class Date implements java.lang.Cloneable java.lang.Comparable<java.util.Date> java.io.Serializable {
- ctor public Date();
- ctor public Date(long);
- ctor @Deprecated public Date(int, int, int);
- ctor @Deprecated public Date(int, int, int, int, int);
- ctor @Deprecated public Date(int, int, int, int, int, int);
- ctor @Deprecated public Date(String);
- method @Deprecated public static long UTC(int, int, int, int, int, int);
- method public boolean after(java.util.Date);
- method public boolean before(java.util.Date);
- method public Object clone();
- method public int compareTo(java.util.Date);
- method public static java.util.Date from(java.time.Instant);
- method @Deprecated public int getDate();
- method @Deprecated public int getDay();
- method @Deprecated public int getHours();
- method @Deprecated public int getMinutes();
- method @Deprecated public int getMonth();
- method @Deprecated public int getSeconds();
- method public long getTime();
- method @Deprecated public int getTimezoneOffset();
- method @Deprecated public int getYear();
- method @Deprecated public static long parse(String);
- method @Deprecated public void setDate(int);
- method @Deprecated public void setHours(int);
- method @Deprecated public void setMinutes(int);
- method @Deprecated public void setMonth(int);
- method @Deprecated public void setSeconds(int);
- method public void setTime(long);
- method @Deprecated public void setYear(int);
- method @Deprecated public String toGMTString();
- method public java.time.Instant toInstant();
- method @Deprecated public String toLocaleString();
- }
-
- public interface Deque<E> extends java.util.Queue<E> {
- method public void addFirst(E);
- method public void addLast(E);
- method @NonNull public java.util.Iterator<E> descendingIterator();
- method public E getFirst();
- method public E getLast();
- method public boolean offerFirst(E);
- method public boolean offerLast(E);
- method @Nullable public E peekFirst();
- method @Nullable public E peekLast();
- method @Nullable public E pollFirst();
- method @Nullable public E pollLast();
- method public E pop();
- method public void push(E);
- method public E removeFirst();
- method public boolean removeFirstOccurrence(@Nullable Object);
- method public E removeLast();
- method public boolean removeLastOccurrence(@Nullable Object);
- }
-
- public abstract class Dictionary<K, V> {
- ctor public Dictionary();
- method public abstract java.util.Enumeration<V> elements();
- method public abstract V get(Object);
- method public abstract boolean isEmpty();
- method public abstract java.util.Enumeration<K> keys();
- method public abstract V put(K, V);
- method public abstract V remove(Object);
- method public abstract int size();
- }
-
- public class DoubleSummaryStatistics implements java.util.function.DoubleConsumer {
- ctor public DoubleSummaryStatistics();
- method public void accept(double);
- method public void combine(java.util.DoubleSummaryStatistics);
- method public final double getAverage();
- method public final long getCount();
- method public final double getMax();
- method public final double getMin();
- method public final double getSum();
- }
-
- public class DuplicateFormatFlagsException extends java.util.IllegalFormatException {
- ctor public DuplicateFormatFlagsException(String);
- method public String getFlags();
- }
-
- public class EmptyStackException extends java.lang.RuntimeException {
- ctor public EmptyStackException();
- }
-
- public class EnumMap<K extends java.lang.Enum<K>, V> extends java.util.AbstractMap<K,V> implements java.lang.Cloneable java.io.Serializable {
- ctor public EnumMap(Class<K>);
- ctor public EnumMap(java.util.EnumMap<K,? extends V>);
- ctor public EnumMap(java.util.Map<K,? extends V>);
- method public java.util.EnumMap<K,V> clone();
- method public java.util.Set<java.util.Map.Entry<K,V>> entrySet();
- }
-
- public abstract class EnumSet<E extends java.lang.Enum<E>> extends java.util.AbstractSet<E> implements java.lang.Cloneable java.io.Serializable {
- method public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> allOf(Class<E>);
- method public java.util.EnumSet<E> clone();
- method public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> complementOf(java.util.EnumSet<E>);
- method public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> copyOf(java.util.EnumSet<E>);
- method public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> copyOf(java.util.Collection<E>);
- method public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> noneOf(Class<E>);
- method public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E);
- method public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E, E);
- method public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E, E, E);
- method public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E, E, E, E);
- method public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E, E, E, E, E);
- method @java.lang.SafeVarargs public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E, E...);
- method public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> range(E, E);
- }
-
- public interface Enumeration<E> {
- method public boolean hasMoreElements();
- method public E nextElement();
- }
-
- public interface EventListener {
- }
-
- public abstract class EventListenerProxy<T extends java.util.EventListener> implements java.util.EventListener {
- ctor public EventListenerProxy(T);
- method public T getListener();
- }
-
- public class EventObject implements java.io.Serializable {
- ctor public EventObject(Object);
- method public Object getSource();
- field protected transient Object source;
- }
-
- public class FormatFlagsConversionMismatchException extends java.util.IllegalFormatException {
- ctor public FormatFlagsConversionMismatchException(String, char);
- method public char getConversion();
- method public String getFlags();
- }
-
- public interface Formattable {
- method public void formatTo(java.util.Formatter, int, int, int);
- }
-
- public class FormattableFlags {
- field public static final int ALTERNATE = 4; // 0x4
- field public static final int LEFT_JUSTIFY = 1; // 0x1
- field public static final int UPPERCASE = 2; // 0x2
- }
-
- public final class Formatter implements java.io.Closeable java.io.Flushable {
- ctor public Formatter();
- ctor public Formatter(Appendable);
- ctor public Formatter(java.util.Locale);
- ctor public Formatter(Appendable, java.util.Locale);
- ctor public Formatter(String) throws java.io.FileNotFoundException;
- ctor public Formatter(String, String) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException;
- ctor public Formatter(String, String, java.util.Locale) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException;
- ctor public Formatter(java.io.File) throws java.io.FileNotFoundException;
- ctor public Formatter(java.io.File, String) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException;
- ctor public Formatter(java.io.File, String, java.util.Locale) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException;
- ctor public Formatter(java.io.PrintStream);
- ctor public Formatter(java.io.OutputStream);
- ctor public Formatter(java.io.OutputStream, String) throws java.io.UnsupportedEncodingException;
- ctor public Formatter(java.io.OutputStream, String, java.util.Locale) throws java.io.UnsupportedEncodingException;
- method public void close();
- method public void flush();
- method public java.util.Formatter format(String, java.lang.Object...);
- method public java.util.Formatter format(java.util.Locale, String, java.lang.Object...);
- method public java.io.IOException ioException();
- method public java.util.Locale locale();
- method public Appendable out();
- }
-
- public enum Formatter.BigDecimalLayoutForm {
- enum_constant public static final java.util.Formatter.BigDecimalLayoutForm DECIMAL_FLOAT;
- enum_constant public static final java.util.Formatter.BigDecimalLayoutForm SCIENTIFIC;
- }
-
- public class FormatterClosedException extends java.lang.IllegalStateException {
- ctor public FormatterClosedException();
- }
-
- public class GregorianCalendar extends java.util.Calendar {
- ctor public GregorianCalendar();
- ctor public GregorianCalendar(java.util.TimeZone);
- ctor public GregorianCalendar(java.util.Locale);
- ctor public GregorianCalendar(java.util.TimeZone, java.util.Locale);
- ctor public GregorianCalendar(int, int, int);
- ctor public GregorianCalendar(int, int, int, int, int);
- ctor public GregorianCalendar(int, int, int, int, int, int);
- method public void add(int, int);
- method protected void computeFields();
- method protected void computeTime();
- method public static java.util.GregorianCalendar from(java.time.ZonedDateTime);
- method public int getGreatestMinimum(int);
- method public final java.util.Date getGregorianChange();
- method public int getLeastMaximum(int);
- method public int getMaximum(int);
- method public int getMinimum(int);
- method public boolean isLeapYear(int);
- method public final boolean isWeekDateSupported();
- method public void roll(int, boolean);
- method public void setGregorianChange(java.util.Date);
- method public java.time.ZonedDateTime toZonedDateTime();
- field public static final int AD = 1; // 0x1
- field public static final int BC = 0; // 0x0
- }
-
- public class HashMap<K, V> extends java.util.AbstractMap<K,V> implements java.lang.Cloneable java.util.Map<K,V> java.io.Serializable {
- ctor public HashMap(int, float);
- ctor public HashMap(int);
- ctor public HashMap();
- ctor public HashMap(@NonNull java.util.Map<? extends K,? extends V>);
- method @NonNull public Object clone();
- method @NonNull public java.util.Set<java.util.Map.Entry<K,V>> entrySet();
- }
-
- public class HashSet<E> extends java.util.AbstractSet<E> implements java.lang.Cloneable java.io.Serializable java.util.Set<E> {
- ctor public HashSet();
- ctor public HashSet(@NonNull java.util.Collection<? extends E>);
- ctor public HashSet(int, float);
- ctor public HashSet(int);
- method @NonNull public Object clone();
- method @NonNull public java.util.Iterator<E> iterator();
- method public int size();
- }
-
- public class Hashtable<K, V> extends java.util.Dictionary<K,V> implements java.lang.Cloneable java.util.Map<K,V> java.io.Serializable {
- ctor public Hashtable(int, float);
- ctor public Hashtable(int);
- ctor public Hashtable();
- ctor public Hashtable(java.util.Map<? extends K,? extends V>);
- method public void clear();
- method public Object clone();
- method public boolean contains(Object);
- method public boolean containsKey(Object);
- method public boolean containsValue(Object);
- method public java.util.Enumeration<V> elements();
- method public java.util.Set<java.util.Map.Entry<K,V>> entrySet();
- method public V get(Object);
- method public boolean isEmpty();
- method public java.util.Set<K> keySet();
- method public java.util.Enumeration<K> keys();
- method public V put(K, V);
- method public void putAll(java.util.Map<? extends K,? extends V>);
- method protected void rehash();
- method public V remove(Object);
- method public int size();
- method public java.util.Collection<V> values();
- }
-
- public class IdentityHashMap<K, V> extends java.util.AbstractMap<K,V> implements java.lang.Cloneable java.util.Map<K,V> java.io.Serializable {
- ctor public IdentityHashMap();
- ctor public IdentityHashMap(int);
- ctor public IdentityHashMap(java.util.Map<? extends K,? extends V>);
- method public Object clone();
- method public java.util.Set<java.util.Map.Entry<K,V>> entrySet();
- }
-
- public class IllegalFormatCodePointException extends java.util.IllegalFormatException {
- ctor public IllegalFormatCodePointException(int);
- method public int getCodePoint();
- }
-
- public class IllegalFormatConversionException extends java.util.IllegalFormatException {
- ctor public IllegalFormatConversionException(char, Class<?>);
- method public Class<?> getArgumentClass();
- method public char getConversion();
- }
-
- public class IllegalFormatException extends java.lang.IllegalArgumentException {
- }
-
- public class IllegalFormatFlagsException extends java.util.IllegalFormatException {
- ctor public IllegalFormatFlagsException(String);
- method public String getFlags();
- }
-
- public class IllegalFormatPrecisionException extends java.util.IllegalFormatException {
- ctor public IllegalFormatPrecisionException(int);
- method public int getPrecision();
- }
-
- public class IllegalFormatWidthException extends java.util.IllegalFormatException {
- ctor public IllegalFormatWidthException(int);
- method public int getWidth();
- }
-
- public class IllformedLocaleException extends java.lang.RuntimeException {
- ctor public IllformedLocaleException();
- ctor public IllformedLocaleException(String);
- ctor public IllformedLocaleException(String, int);
- method public int getErrorIndex();
- }
-
- public class InputMismatchException extends java.util.NoSuchElementException {
- ctor public InputMismatchException();
- ctor public InputMismatchException(String);
- }
-
- public class IntSummaryStatistics implements java.util.function.IntConsumer {
- ctor public IntSummaryStatistics();
- method public void accept(int);
- method public void combine(java.util.IntSummaryStatistics);
- method public final double getAverage();
- method public final long getCount();
- method public final int getMax();
- method public final int getMin();
- method public final long getSum();
- }
-
- public class InvalidPropertiesFormatException extends java.io.IOException {
- ctor public InvalidPropertiesFormatException(Throwable);
- ctor public InvalidPropertiesFormatException(String);
- }
-
- public interface Iterator<E> {
- method public default void forEachRemaining(@NonNull java.util.function.Consumer<? super E>);
- method public boolean hasNext();
- method public E next();
- method public default void remove();
- }
-
- public class LinkedHashMap<K, V> extends java.util.HashMap<K,V> implements java.util.Map<K,V> {
- ctor public LinkedHashMap(int, float);
- ctor public LinkedHashMap(int);
- ctor public LinkedHashMap();
- ctor public LinkedHashMap(java.util.Map<? extends K,? extends V>);
- ctor public LinkedHashMap(int, float, boolean);
- method protected boolean removeEldestEntry(java.util.Map.Entry<K,V>);
- }
-
- public class LinkedHashSet<E> extends java.util.HashSet<E> implements java.lang.Cloneable java.io.Serializable java.util.Set<E> {
- ctor public LinkedHashSet(int, float);
- ctor public LinkedHashSet(int);
- ctor public LinkedHashSet();
- ctor public LinkedHashSet(java.util.Collection<? extends E>);
- }
-
- public class LinkedList<E> extends java.util.AbstractSequentialList<E> implements java.lang.Cloneable java.util.Deque<E> java.util.List<E> java.io.Serializable {
- ctor public LinkedList();
- ctor public LinkedList(@NonNull java.util.Collection<? extends E>);
- method public void addFirst(E);
- method public void addLast(E);
- method @NonNull public Object clone();
- method @NonNull public java.util.Iterator<E> descendingIterator();
- method public E element();
- method public E getFirst();
- method public E getLast();
- method public boolean offer(E);
- method public boolean offerFirst(E);
- method public boolean offerLast(E);
- method @Nullable public E peek();
- method @Nullable public E peekFirst();
- method @Nullable public E peekLast();
- method @Nullable public E poll();
- method @Nullable public E pollFirst();
- method @Nullable public E pollLast();
- method public E pop();
- method public void push(E);
- method public E remove();
- method public E removeFirst();
- method public boolean removeFirstOccurrence(@Nullable Object);
- method public E removeLast();
- method public boolean removeLastOccurrence(@Nullable Object);
- method public int size();
- }
-
- public interface List<E> extends java.util.Collection<E> {
- method public void add(int, E);
- method public boolean addAll(int, @NonNull java.util.Collection<? extends E>);
- method public E get(int);
- method public int indexOf(@Nullable Object);
- method public int lastIndexOf(@Nullable Object);
- method @NonNull public java.util.ListIterator<E> listIterator();
- method @NonNull public java.util.ListIterator<E> listIterator(int);
- method @NonNull public static <E> java.util.List<E> of();
- method @NonNull public static <E> java.util.List<E> of(@NonNull E);
- method @NonNull public static <E> java.util.List<E> of(@NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.List<E> of(@NonNull E, @NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.List<E> of(@NonNull E, @NonNull E, @NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.List<E> of(@NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.List<E> of(@NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.List<E> of(@NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.List<E> of(@NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.List<E> of(@NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.List<E> of(@NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E);
- method @NonNull @java.lang.SafeVarargs public static <E> java.util.List<E> of(@NonNull E...);
- method public E remove(int);
- method public default void replaceAll(@NonNull java.util.function.UnaryOperator<E>);
- method public E set(int, E);
- method public default void sort(@Nullable java.util.Comparator<? super E>);
- method @NonNull public java.util.List<E> subList(int, int);
- }
-
- public interface ListIterator<E> extends java.util.Iterator<E> {
- method public void add(E);
- method public boolean hasPrevious();
- method public int nextIndex();
- method public E previous();
- method public int previousIndex();
- method public void remove();
- method public void set(E);
- }
-
- public abstract class ListResourceBundle extends java.util.ResourceBundle {
- ctor public ListResourceBundle();
- method protected abstract Object[][] getContents();
- method public java.util.Enumeration<java.lang.String> getKeys();
- method public final Object handleGetObject(String);
- }
-
- public final class Locale implements java.lang.Cloneable java.io.Serializable {
- ctor public Locale(@NonNull String, @NonNull String, @NonNull String);
- ctor public Locale(@NonNull String, @NonNull String);
- ctor public Locale(@NonNull String);
- method @NonNull public Object clone();
- method @NonNull public static java.util.List<java.util.Locale> filter(@NonNull java.util.List<java.util.Locale.LanguageRange>, @NonNull java.util.Collection<java.util.Locale>, @NonNull java.util.Locale.FilteringMode);
- method @NonNull public static java.util.List<java.util.Locale> filter(@NonNull java.util.List<java.util.Locale.LanguageRange>, @NonNull java.util.Collection<java.util.Locale>);
- method @NonNull public static java.util.List<java.lang.String> filterTags(@NonNull java.util.List<java.util.Locale.LanguageRange>, @NonNull java.util.Collection<java.lang.String>, @NonNull java.util.Locale.FilteringMode);
- method @NonNull public static java.util.List<java.lang.String> filterTags(@NonNull java.util.List<java.util.Locale.LanguageRange>, @NonNull java.util.Collection<java.lang.String>);
- method @NonNull public static java.util.Locale forLanguageTag(@NonNull String);
- method @NonNull public static java.util.Locale[] getAvailableLocales();
- method @NonNull public String getCountry();
- method @NonNull public static java.util.Locale getDefault();
- method @NonNull public static java.util.Locale getDefault(@NonNull java.util.Locale.Category);
- method @NonNull public String getDisplayCountry();
- method @NonNull public String getDisplayCountry(@NonNull java.util.Locale);
- method @NonNull public String getDisplayLanguage();
- method @NonNull public String getDisplayLanguage(@NonNull java.util.Locale);
- method @NonNull public String getDisplayName();
- method @NonNull public String getDisplayName(@NonNull java.util.Locale);
- method @NonNull public String getDisplayScript();
- method @NonNull public String getDisplayScript(@NonNull java.util.Locale);
- method @NonNull public String getDisplayVariant();
- method @NonNull public String getDisplayVariant(@NonNull java.util.Locale);
- method @Nullable public String getExtension(char);
- method @NonNull public java.util.Set<java.lang.Character> getExtensionKeys();
- method @NonNull public String getISO3Country() throws java.util.MissingResourceException;
- method @NonNull public String getISO3Language() throws java.util.MissingResourceException;
- method @NonNull public static String[] getISOCountries();
- method @NonNull public static String[] getISOLanguages();
- method @NonNull public String getLanguage();
- method @NonNull public String getScript();
- method @NonNull public java.util.Set<java.lang.String> getUnicodeLocaleAttributes();
- method @NonNull public java.util.Set<java.lang.String> getUnicodeLocaleKeys();
- method @Nullable public String getUnicodeLocaleType(@NonNull String);
- method @NonNull public String getVariant();
- method public boolean hasExtensions();
- method @Nullable public static java.util.Locale lookup(@NonNull java.util.List<java.util.Locale.LanguageRange>, @NonNull java.util.Collection<java.util.Locale>);
- method @Nullable public static String lookupTag(@NonNull java.util.List<java.util.Locale.LanguageRange>, @NonNull java.util.Collection<java.lang.String>);
- method public static void setDefault(@NonNull java.util.Locale);
- method public static void setDefault(@NonNull java.util.Locale.Category, @NonNull java.util.Locale);
- method @NonNull public java.util.Locale stripExtensions();
- method @NonNull public String toLanguageTag();
- field @NonNull public static final java.util.Locale CANADA;
- field @NonNull public static final java.util.Locale CANADA_FRENCH;
- field @NonNull public static final java.util.Locale CHINA;
- field @NonNull public static final java.util.Locale CHINESE;
- field @NonNull public static final java.util.Locale ENGLISH;
- field @NonNull public static final java.util.Locale FRANCE;
- field @NonNull public static final java.util.Locale FRENCH;
- field @NonNull public static final java.util.Locale GERMAN;
- field @NonNull public static final java.util.Locale GERMANY;
- field @NonNull public static final java.util.Locale ITALIAN;
- field @NonNull public static final java.util.Locale ITALY;
- field @NonNull public static final java.util.Locale JAPAN;
- field @NonNull public static final java.util.Locale JAPANESE;
- field @NonNull public static final java.util.Locale KOREA;
- field @NonNull public static final java.util.Locale KOREAN;
- field @NonNull public static final java.util.Locale PRC;
- field public static final char PRIVATE_USE_EXTENSION = 120; // 0x0078 'x'
- field @NonNull public static final java.util.Locale ROOT;
- field @NonNull public static final java.util.Locale SIMPLIFIED_CHINESE;
- field @NonNull public static final java.util.Locale TAIWAN;
- field @NonNull public static final java.util.Locale TRADITIONAL_CHINESE;
- field @NonNull public static final java.util.Locale UK;
- field public static final char UNICODE_LOCALE_EXTENSION = 117; // 0x0075 'u'
- field @NonNull public static final java.util.Locale US;
- }
-
- public static final class Locale.Builder {
- ctor public Locale.Builder();
- method @NonNull public java.util.Locale.Builder addUnicodeLocaleAttribute(@NonNull String);
- method @NonNull public java.util.Locale build();
- method @NonNull public java.util.Locale.Builder clear();
- method @NonNull public java.util.Locale.Builder clearExtensions();
- method @NonNull public java.util.Locale.Builder removeUnicodeLocaleAttribute(@NonNull String);
- method @NonNull public java.util.Locale.Builder setExtension(char, @Nullable String);
- method @NonNull public java.util.Locale.Builder setLanguage(@Nullable String);
- method @NonNull public java.util.Locale.Builder setLanguageTag(@NonNull String);
- method @NonNull public java.util.Locale.Builder setLocale(@NonNull java.util.Locale);
- method @NonNull public java.util.Locale.Builder setRegion(@Nullable String);
- method @NonNull public java.util.Locale.Builder setScript(@Nullable String);
- method @NonNull public java.util.Locale.Builder setUnicodeLocaleKeyword(@NonNull String, @Nullable String);
- method @NonNull public java.util.Locale.Builder setVariant(@Nullable String);
- }
-
- public enum Locale.Category {
- enum_constant public static final java.util.Locale.Category DISPLAY;
- enum_constant public static final java.util.Locale.Category FORMAT;
- }
-
- public enum Locale.FilteringMode {
- enum_constant public static final java.util.Locale.FilteringMode AUTOSELECT_FILTERING;
- enum_constant public static final java.util.Locale.FilteringMode EXTENDED_FILTERING;
- enum_constant public static final java.util.Locale.FilteringMode IGNORE_EXTENDED_RANGES;
- enum_constant public static final java.util.Locale.FilteringMode MAP_EXTENDED_RANGES;
- enum_constant public static final java.util.Locale.FilteringMode REJECT_EXTENDED_RANGES;
- }
-
- public static final class Locale.LanguageRange {
- ctor public Locale.LanguageRange(@NonNull String);
- ctor public Locale.LanguageRange(@NonNull String, double);
- method @NonNull public String getRange();
- method public double getWeight();
- method @NonNull public static java.util.List<java.util.Locale.LanguageRange> mapEquivalents(@NonNull java.util.List<java.util.Locale.LanguageRange>, @NonNull java.util.Map<java.lang.String,java.util.List<java.lang.String>>);
- method @NonNull public static java.util.List<java.util.Locale.LanguageRange> parse(@NonNull String);
- method @NonNull public static java.util.List<java.util.Locale.LanguageRange> parse(@NonNull String, @NonNull java.util.Map<java.lang.String,java.util.List<java.lang.String>>);
- field public static final double MAX_WEIGHT = 1.0;
- field public static final double MIN_WEIGHT = 0.0;
- }
-
- public class LongSummaryStatistics implements java.util.function.IntConsumer java.util.function.LongConsumer {
- ctor public LongSummaryStatistics();
- method public void accept(int);
- method public void accept(long);
- method public void combine(java.util.LongSummaryStatistics);
- method public final double getAverage();
- method public final long getCount();
- method public final long getMax();
- method public final long getMin();
- method public final long getSum();
- }
-
- public interface Map<K, V> {
- method public void clear();
- method @Nullable public default V compute(K, @NonNull java.util.function.BiFunction<? super K,? super V,? extends V>);
- method @Nullable public default V computeIfAbsent(K, @NonNull java.util.function.Function<? super K,? extends V>);
- method @Nullable public default V computeIfPresent(K, @NonNull java.util.function.BiFunction<? super K,? super V,? extends V>);
- method public boolean containsKey(@Nullable Object);
- method public boolean containsValue(@Nullable Object);
- method @NonNull public static <K, V> java.util.Map.Entry<K,V> entry(@NonNull K, @NonNull V);
- method @NonNull public java.util.Set<java.util.Map.Entry<K,V>> entrySet();
- method public boolean equals(@Nullable Object);
- method public default void forEach(@NonNull java.util.function.BiConsumer<? super K,? super V>);
- method @Nullable public V get(@Nullable Object);
- method @Nullable public default V getOrDefault(@Nullable Object, @Nullable V);
- method public int hashCode();
- method public boolean isEmpty();
- method @NonNull public java.util.Set<K> keySet();
- method @Nullable public default V merge(K, @NonNull V, @NonNull java.util.function.BiFunction<? super V,? super V,? extends V>);
- method @NonNull public static <K, V> java.util.Map<K,V> of();
- method @NonNull public static <K, V> java.util.Map<K,V> of(@NonNull K, @NonNull V);
- method @NonNull public static <K, V> java.util.Map<K,V> of(@NonNull K, @NonNull V, @NonNull K, @NonNull V);
- method @NonNull public static <K, V> java.util.Map<K,V> of(@NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V);
- method @NonNull public static <K, V> java.util.Map<K,V> of(@NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V);
- method @NonNull public static <K, V> java.util.Map<K,V> of(@NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V);
- method @NonNull public static <K, V> java.util.Map<K,V> of(@NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V);
- method @NonNull public static <K, V> java.util.Map<K,V> of(@NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V);
- method @NonNull public static <K, V> java.util.Map<K,V> of(@NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V);
- method @NonNull public static <K, V> java.util.Map<K,V> of(@NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V);
- method @NonNull public static <K, V> java.util.Map<K,V> of(@NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V, @NonNull K, @NonNull V);
- method @NonNull @java.lang.SafeVarargs public static <K, V> java.util.Map<K,V> ofEntries(@NonNull java.util.Map.Entry<? extends K,? extends V>...);
- method @Nullable public V put(K, V);
- method public void putAll(@NonNull java.util.Map<? extends K,? extends V>);
- method @Nullable public default V putIfAbsent(K, V);
- method @Nullable public V remove(@Nullable Object);
- method public default boolean remove(@Nullable Object, @Nullable Object);
- method public default boolean replace(K, @Nullable V, V);
- method @Nullable public default V replace(K, V);
- method public default void replaceAll(@NonNull java.util.function.BiFunction<? super K,? super V,? extends V>);
- method public int size();
- method @NonNull public java.util.Collection<V> values();
- }
-
- public static interface Map.Entry<K, V> {
- method @NonNull public static <K extends java.lang.Comparable<? super K>, V> java.util.Comparator<java.util.Map.Entry<K,V>> comparingByKey();
- method @NonNull public static <K, V> java.util.Comparator<java.util.Map.Entry<K,V>> comparingByKey(@NonNull java.util.Comparator<? super K>);
- method @NonNull public static <K, V extends java.lang.Comparable<? super V>> java.util.Comparator<java.util.Map.Entry<K,V>> comparingByValue();
- method @NonNull public static <K, V> java.util.Comparator<java.util.Map.Entry<K,V>> comparingByValue(@NonNull java.util.Comparator<? super V>);
- method public boolean equals(@Nullable Object);
- method public K getKey();
- method public V getValue();
- method public int hashCode();
- method public V setValue(V);
- }
-
- public class MissingFormatArgumentException extends java.util.IllegalFormatException {
- ctor public MissingFormatArgumentException(String);
- method public String getFormatSpecifier();
- }
-
- public class MissingFormatWidthException extends java.util.IllegalFormatException {
- ctor public MissingFormatWidthException(String);
- method public String getFormatSpecifier();
- }
-
- public class MissingResourceException extends java.lang.RuntimeException {
- ctor public MissingResourceException(String, String, String);
- method public String getClassName();
- method public String getKey();
- }
-
- public interface NavigableMap<K, V> extends java.util.SortedMap<K,V> {
- method @Nullable public java.util.Map.Entry<K,V> ceilingEntry(K);
- method @Nullable public K ceilingKey(K);
- method @NonNull public java.util.NavigableSet<K> descendingKeySet();
- method @NonNull public java.util.NavigableMap<K,V> descendingMap();
- method @Nullable public java.util.Map.Entry<K,V> firstEntry();
- method @Nullable public java.util.Map.Entry<K,V> floorEntry(K);
- method @Nullable public K floorKey(K);
- method @NonNull public java.util.NavigableMap<K,V> headMap(K, boolean);
- method @Nullable public java.util.Map.Entry<K,V> higherEntry(K);
- method @Nullable public K higherKey(K);
- method @Nullable public java.util.Map.Entry<K,V> lastEntry();
- method @Nullable public java.util.Map.Entry<K,V> lowerEntry(K);
- method @Nullable public K lowerKey(K);
- method @NonNull public java.util.NavigableSet<K> navigableKeySet();
- method @Nullable public java.util.Map.Entry<K,V> pollFirstEntry();
- method @Nullable public java.util.Map.Entry<K,V> pollLastEntry();
- method @NonNull public java.util.NavigableMap<K,V> subMap(K, boolean, K, boolean);
- method @NonNull public java.util.NavigableMap<K,V> tailMap(K, boolean);
- }
-
- public interface NavigableSet<E> extends java.util.SortedSet<E> {
- method public E ceiling(E);
- method public java.util.Iterator<E> descendingIterator();
- method public java.util.NavigableSet<E> descendingSet();
- method public E floor(E);
- method public java.util.NavigableSet<E> headSet(E, boolean);
- method public E higher(E);
- method public E lower(E);
- method public E pollFirst();
- method public E pollLast();
- method public java.util.NavigableSet<E> subSet(E, boolean, E, boolean);
- method public java.util.NavigableSet<E> tailSet(E, boolean);
- }
-
- public class NoSuchElementException extends java.lang.RuntimeException {
- ctor public NoSuchElementException();
- ctor public NoSuchElementException(String);
- }
-
- public final class Objects {
- method public static int checkFromIndexSize(int, int, int);
- method public static int checkFromToIndex(int, int, int);
- method public static int checkIndex(int, int);
- method public static <T> int compare(T, T, @NonNull java.util.Comparator<? super T>);
- method public static boolean deepEquals(@Nullable Object, @Nullable Object);
- method public static boolean equals(@Nullable Object, @Nullable Object);
- method public static int hash(@Nullable java.lang.Object...);
- method public static int hashCode(@Nullable Object);
- method public static boolean isNull(@Nullable Object);
- method public static boolean nonNull(@Nullable Object);
- method @NonNull public static <T> T requireNonNull(@Nullable T);
- method @NonNull public static <T> T requireNonNull(@Nullable T, @NonNull String);
- method @NonNull public static <T> T requireNonNull(@Nullable T, @NonNull java.util.function.Supplier<java.lang.String>);
- method @NonNull public static <T> T requireNonNullElse(@Nullable T, @NonNull T);
- method @NonNull public static <T> T requireNonNullElseGet(@Nullable T, @NonNull java.util.function.Supplier<? extends T>);
- method @NonNull public static String toString(@Nullable Object);
- method @NonNull public static String toString(@Nullable Object, @NonNull String);
- }
-
- public class Observable {
- ctor public Observable();
- method public void addObserver(java.util.Observer);
- method protected void clearChanged();
- method public int countObservers();
- method public void deleteObserver(java.util.Observer);
- method public void deleteObservers();
- method public boolean hasChanged();
- method public void notifyObservers();
- method public void notifyObservers(Object);
- method protected void setChanged();
- }
-
- public interface Observer {
- method public void update(java.util.Observable, Object);
- }
-
- public final class Optional<T> {
- method public static <T> java.util.Optional<T> empty();
- method public java.util.Optional<T> filter(java.util.function.Predicate<? super T>);
- method public <U> java.util.Optional<U> flatMap(java.util.function.Function<? super T,java.util.Optional<U>>);
- method public T get();
- method public void ifPresent(java.util.function.Consumer<? super T>);
- method public boolean isPresent();
- method public <U> java.util.Optional<U> map(java.util.function.Function<? super T,? extends U>);
- method public static <T> java.util.Optional<T> of(T);
- method public static <T> java.util.Optional<T> ofNullable(T);
- method public T orElse(T);
- method public T orElseGet(java.util.function.Supplier<? extends T>);
- method public <X extends java.lang.Throwable> T orElseThrow(java.util.function.Supplier<? extends X>) throws X;
- }
-
- public final class OptionalDouble {
- method public static java.util.OptionalDouble empty();
- method public double getAsDouble();
- method public void ifPresent(java.util.function.DoubleConsumer);
- method public boolean isPresent();
- method public static java.util.OptionalDouble of(double);
- method public double orElse(double);
- method public double orElseGet(java.util.function.DoubleSupplier);
- method public <X extends java.lang.Throwable> double orElseThrow(java.util.function.Supplier<X>) throws X;
- }
-
- public final class OptionalInt {
- method public static java.util.OptionalInt empty();
- method public int getAsInt();
- method public void ifPresent(java.util.function.IntConsumer);
- method public boolean isPresent();
- method public static java.util.OptionalInt of(int);
- method public int orElse(int);
- method public int orElseGet(java.util.function.IntSupplier);
- method public <X extends java.lang.Throwable> int orElseThrow(java.util.function.Supplier<X>) throws X;
- }
-
- public final class OptionalLong {
- method public static java.util.OptionalLong empty();
- method public long getAsLong();
- method public void ifPresent(java.util.function.LongConsumer);
- method public boolean isPresent();
- method public static java.util.OptionalLong of(long);
- method public long orElse(long);
- method public long orElseGet(java.util.function.LongSupplier);
- method public <X extends java.lang.Throwable> long orElseThrow(java.util.function.Supplier<X>) throws X;
- }
-
- public interface PrimitiveIterator<T, T_CONS> extends java.util.Iterator<T> {
- method public void forEachRemaining(T_CONS);
- }
-
- public static interface PrimitiveIterator.OfDouble extends java.util.PrimitiveIterator<java.lang.Double,java.util.function.DoubleConsumer> {
- method public default void forEachRemaining(java.util.function.DoubleConsumer);
- method public default void forEachRemaining(java.util.function.Consumer<? super java.lang.Double>);
- method public default Double next();
- method public double nextDouble();
- }
-
- public static interface PrimitiveIterator.OfInt extends java.util.PrimitiveIterator<java.lang.Integer,java.util.function.IntConsumer> {
- method public default void forEachRemaining(java.util.function.IntConsumer);
- method public default void forEachRemaining(java.util.function.Consumer<? super java.lang.Integer>);
- method public default Integer next();
- method public int nextInt();
- }
-
- public static interface PrimitiveIterator.OfLong extends java.util.PrimitiveIterator<java.lang.Long,java.util.function.LongConsumer> {
- method public default void forEachRemaining(java.util.function.LongConsumer);
- method public default void forEachRemaining(java.util.function.Consumer<? super java.lang.Long>);
- method public default Long next();
- method public long nextLong();
- }
-
- public class PriorityQueue<E> extends java.util.AbstractQueue<E> implements java.io.Serializable {
- ctor public PriorityQueue();
- ctor public PriorityQueue(int);
- ctor public PriorityQueue(java.util.Comparator<? super E>);
- ctor public PriorityQueue(int, java.util.Comparator<? super E>);
- ctor public PriorityQueue(java.util.Collection<? extends E>);
- ctor public PriorityQueue(java.util.PriorityQueue<? extends E>);
- ctor public PriorityQueue(java.util.SortedSet<? extends E>);
- method public java.util.Comparator<? super E> comparator();
- method public java.util.Iterator<E> iterator();
- method public boolean offer(E);
- method public E peek();
- method public E poll();
- method public int size();
- method public final java.util.Spliterator<E> spliterator();
- }
-
- public class Properties extends java.util.Hashtable<java.lang.Object,java.lang.Object> {
- ctor public Properties();
- ctor public Properties(java.util.Properties);
- method public String getProperty(String);
- method public String getProperty(String, String);
- method public void list(java.io.PrintStream);
- method public void list(java.io.PrintWriter);
- method public void load(java.io.Reader) throws java.io.IOException;
- method public void load(java.io.InputStream) throws java.io.IOException;
- method public void loadFromXML(java.io.InputStream) throws java.io.IOException, java.util.InvalidPropertiesFormatException;
- method public java.util.Enumeration<?> propertyNames();
- method @Deprecated public void save(java.io.OutputStream, String);
- method public Object setProperty(String, String);
- method public void store(java.io.Writer, String) throws java.io.IOException;
- method public void store(java.io.OutputStream, String) throws java.io.IOException;
- method public void storeToXML(java.io.OutputStream, String) throws java.io.IOException;
- method public void storeToXML(java.io.OutputStream, String, String) throws java.io.IOException;
- method public java.util.Set<java.lang.String> stringPropertyNames();
- field protected java.util.Properties defaults;
- }
-
- public final class PropertyPermission extends java.security.BasicPermission {
- ctor public PropertyPermission(String, String);
- }
-
- public class PropertyResourceBundle extends java.util.ResourceBundle {
- ctor public PropertyResourceBundle(java.io.InputStream) throws java.io.IOException;
- ctor public PropertyResourceBundle(java.io.Reader) throws java.io.IOException;
- method public java.util.Enumeration<java.lang.String> getKeys();
- method public Object handleGetObject(String);
- }
-
- public interface Queue<E> extends java.util.Collection<E> {
- method public E element();
- method public boolean offer(E);
- method @Nullable public E peek();
- method @Nullable public E poll();
- method public E remove();
- }
-
- public class Random implements java.io.Serializable {
- ctor public Random();
- ctor public Random(long);
- method public java.util.stream.DoubleStream doubles(long);
- method public java.util.stream.DoubleStream doubles();
- method public java.util.stream.DoubleStream doubles(long, double, double);
- method public java.util.stream.DoubleStream doubles(double, double);
- method public java.util.stream.IntStream ints(long);
- method public java.util.stream.IntStream ints();
- method public java.util.stream.IntStream ints(long, int, int);
- method public java.util.stream.IntStream ints(int, int);
- method public java.util.stream.LongStream longs(long);
- method public java.util.stream.LongStream longs();
- method public java.util.stream.LongStream longs(long, long, long);
- method public java.util.stream.LongStream longs(long, long);
- method protected int next(int);
- method public boolean nextBoolean();
- method public void nextBytes(byte[]);
- method public double nextDouble();
- method public float nextFloat();
- method public double nextGaussian();
- method public int nextInt();
- method public int nextInt(int);
- method public long nextLong();
- method public void setSeed(long);
- }
-
- public interface RandomAccess {
- }
-
- public abstract class ResourceBundle {
- ctor public ResourceBundle();
- method public static final void clearCache();
- method public static final void clearCache(ClassLoader);
- method public boolean containsKey(String);
- method public String getBaseBundleName();
- method public static final java.util.ResourceBundle getBundle(String);
- method public static final java.util.ResourceBundle getBundle(String, java.util.ResourceBundle.Control);
- method public static final java.util.ResourceBundle getBundle(String, java.util.Locale);
- method public static final java.util.ResourceBundle getBundle(String, java.util.Locale, java.util.ResourceBundle.Control);
- method public static java.util.ResourceBundle getBundle(String, java.util.Locale, ClassLoader);
- method public static java.util.ResourceBundle getBundle(String, java.util.Locale, ClassLoader, java.util.ResourceBundle.Control);
- method public abstract java.util.Enumeration<java.lang.String> getKeys();
- method public java.util.Locale getLocale();
- method public final Object getObject(String);
- method public final String getString(String);
- method public final String[] getStringArray(String);
- method protected abstract Object handleGetObject(String);
- method protected java.util.Set<java.lang.String> handleKeySet();
- method public java.util.Set<java.lang.String> keySet();
- method protected void setParent(java.util.ResourceBundle);
- field protected java.util.ResourceBundle parent;
- }
-
- public static class ResourceBundle.Control {
- ctor protected ResourceBundle.Control();
- method public java.util.List<java.util.Locale> getCandidateLocales(String, java.util.Locale);
- method public static final java.util.ResourceBundle.Control getControl(java.util.List<java.lang.String>);
- method public java.util.Locale getFallbackLocale(String, java.util.Locale);
- method public java.util.List<java.lang.String> getFormats(String);
- method public static final java.util.ResourceBundle.Control getNoFallbackControl(java.util.List<java.lang.String>);
- method public long getTimeToLive(String, java.util.Locale);
- method public boolean needsReload(String, java.util.Locale, String, ClassLoader, java.util.ResourceBundle, long);
- method public java.util.ResourceBundle newBundle(String, java.util.Locale, String, ClassLoader, boolean) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationException;
- method public String toBundleName(String, java.util.Locale);
- method public final String toResourceName(String, String);
- field public static final java.util.List<java.lang.String> FORMAT_CLASS;
- field public static final java.util.List<java.lang.String> FORMAT_DEFAULT;
- field public static final java.util.List<java.lang.String> FORMAT_PROPERTIES;
- field public static final long TTL_DONT_CACHE = -1L; // 0xffffffffffffffffL
- field public static final long TTL_NO_EXPIRATION_CONTROL = -2L; // 0xfffffffffffffffeL
- }
-
- public final class Scanner implements java.io.Closeable java.util.Iterator<java.lang.String> {
- ctor public Scanner(Readable);
- ctor public Scanner(java.io.InputStream);
- ctor public Scanner(java.io.InputStream, String);
- ctor public Scanner(java.io.File) throws java.io.FileNotFoundException;
- ctor public Scanner(java.io.File, String) throws java.io.FileNotFoundException;
- ctor public Scanner(java.nio.file.Path) throws java.io.IOException;
- ctor public Scanner(java.nio.file.Path, String) throws java.io.IOException;
- ctor public Scanner(String);
- ctor public Scanner(java.nio.channels.ReadableByteChannel);
- ctor public Scanner(java.nio.channels.ReadableByteChannel, String);
- method public void close();
- method public java.util.regex.Pattern delimiter();
- method public String findInLine(String);
- method public String findInLine(java.util.regex.Pattern);
- method public String findWithinHorizon(String, int);
- method public String findWithinHorizon(java.util.regex.Pattern, int);
- method public boolean hasNext();
- method public boolean hasNext(String);
- method public boolean hasNext(java.util.regex.Pattern);
- method public boolean hasNextBigDecimal();
- method public boolean hasNextBigInteger();
- method public boolean hasNextBigInteger(int);
- method public boolean hasNextBoolean();
- method public boolean hasNextByte();
- method public boolean hasNextByte(int);
- method public boolean hasNextDouble();
- method public boolean hasNextFloat();
- method public boolean hasNextInt();
- method public boolean hasNextInt(int);
- method public boolean hasNextLine();
- method public boolean hasNextLong();
- method public boolean hasNextLong(int);
- method public boolean hasNextShort();
- method public boolean hasNextShort(int);
- method public java.io.IOException ioException();
- method public java.util.Locale locale();
- method public java.util.regex.MatchResult match();
- method public String next();
- method public String next(String);
- method public String next(java.util.regex.Pattern);
- method public java.math.BigDecimal nextBigDecimal();
- method public java.math.BigInteger nextBigInteger();
- method public java.math.BigInteger nextBigInteger(int);
- method public boolean nextBoolean();
- method public byte nextByte();
- method public byte nextByte(int);
- method public double nextDouble();
- method public float nextFloat();
- method public int nextInt();
- method public int nextInt(int);
- method public String nextLine();
- method public long nextLong();
- method public long nextLong(int);
- method public short nextShort();
- method public short nextShort(int);
- method public int radix();
- method public java.util.Scanner reset();
- method public java.util.Scanner skip(java.util.regex.Pattern);
- method public java.util.Scanner skip(String);
- method public java.util.Scanner useDelimiter(java.util.regex.Pattern);
- method public java.util.Scanner useDelimiter(String);
- method public java.util.Scanner useLocale(java.util.Locale);
- method public java.util.Scanner useRadix(int);
- }
-
- public class ServiceConfigurationError extends java.lang.Error {
- ctor public ServiceConfigurationError(String);
- ctor public ServiceConfigurationError(String, Throwable);
- }
-
- public final class ServiceLoader<S> implements java.lang.Iterable<S> {
- method public java.util.Iterator<S> iterator();
- method public static <S> java.util.ServiceLoader<S> load(Class<S>, ClassLoader);
- method public static <S> java.util.ServiceLoader<S> load(Class<S>);
- method public static <S> java.util.ServiceLoader<S> loadInstalled(Class<S>);
- method public void reload();
- }
-
- public interface Set<E> extends java.util.Collection<E> {
- method @NonNull public static <E> java.util.Set<E> of();
- method @NonNull public static <E> java.util.Set<E> of(@NonNull E);
- method @NonNull public static <E> java.util.Set<E> of(@NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.Set<E> of(@NonNull E, @NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.Set<E> of(@NonNull E, @NonNull E, @NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.Set<E> of(@NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.Set<E> of(@NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.Set<E> of(@NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.Set<E> of(@NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.Set<E> of(@NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E);
- method @NonNull public static <E> java.util.Set<E> of(@NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E, @NonNull E);
- method @NonNull @java.lang.SafeVarargs public static <E> java.util.Set<E> of(@NonNull E...);
- }
-
- public class SimpleTimeZone extends java.util.TimeZone {
- ctor public SimpleTimeZone(int, String);
- ctor public SimpleTimeZone(int, String, int, int, int, int, int, int, int, int);
- ctor public SimpleTimeZone(int, String, int, int, int, int, int, int, int, int, int);
- ctor public SimpleTimeZone(int, String, int, int, int, int, int, int, int, int, int, int, int);
- method public int getOffset(int, int, int, int, int, int);
- method public int getRawOffset();
- method public boolean inDaylightTime(java.util.Date);
- method public void setDSTSavings(int);
- method public void setEndRule(int, int, int, int);
- method public void setEndRule(int, int, int);
- method public void setEndRule(int, int, int, int, boolean);
- method public void setRawOffset(int);
- method public void setStartRule(int, int, int, int);
- method public void setStartRule(int, int, int);
- method public void setStartRule(int, int, int, int, boolean);
- method public void setStartYear(int);
- method public boolean useDaylightTime();
- field public static final int STANDARD_TIME = 1; // 0x1
- field public static final int UTC_TIME = 2; // 0x2
- field public static final int WALL_TIME = 0; // 0x0
- }
-
- public interface SortedMap<K, V> extends java.util.Map<K,V> {
- method @Nullable public java.util.Comparator<? super K> comparator();
- method public K firstKey();
- method @NonNull public java.util.SortedMap<K,V> headMap(K);
- method public K lastKey();
- method @NonNull public java.util.SortedMap<K,V> subMap(K, K);
- method @NonNull public java.util.SortedMap<K,V> tailMap(K);
- }
-
- public interface SortedSet<E> extends java.util.Set<E> {
- method public java.util.Comparator<? super E> comparator();
- method public E first();
- method public java.util.SortedSet<E> headSet(E);
- method public E last();
- method public java.util.SortedSet<E> subSet(E, E);
- method public java.util.SortedSet<E> tailSet(E);
- }
-
- public interface Spliterator<T> {
- method public int characteristics();
- method public long estimateSize();
- method public default void forEachRemaining(java.util.function.Consumer<? super T>);
- method public default java.util.Comparator<? super T> getComparator();
- method public default long getExactSizeIfKnown();
- method public default boolean hasCharacteristics(int);
- method public boolean tryAdvance(java.util.function.Consumer<? super T>);
- method public java.util.Spliterator<T> trySplit();
- field public static final int CONCURRENT = 4096; // 0x1000
- field public static final int DISTINCT = 1; // 0x1
- field public static final int IMMUTABLE = 1024; // 0x400
- field public static final int NONNULL = 256; // 0x100
- field public static final int ORDERED = 16; // 0x10
- field public static final int SIZED = 64; // 0x40
- field public static final int SORTED = 4; // 0x4
- field public static final int SUBSIZED = 16384; // 0x4000
- }
-
- public static interface Spliterator.OfDouble extends java.util.Spliterator.OfPrimitive<java.lang.Double,java.util.function.DoubleConsumer,java.util.Spliterator.OfDouble> {
- method public default void forEachRemaining(java.util.function.DoubleConsumer);
- method public default void forEachRemaining(java.util.function.Consumer<? super java.lang.Double>);
- method public boolean tryAdvance(java.util.function.DoubleConsumer);
- method public default boolean tryAdvance(java.util.function.Consumer<? super java.lang.Double>);
- method public java.util.Spliterator.OfDouble trySplit();
- }
-
- public static interface Spliterator.OfInt extends java.util.Spliterator.OfPrimitive<java.lang.Integer,java.util.function.IntConsumer,java.util.Spliterator.OfInt> {
- method public default void forEachRemaining(java.util.function.IntConsumer);
- method public default void forEachRemaining(java.util.function.Consumer<? super java.lang.Integer>);
- method public boolean tryAdvance(java.util.function.IntConsumer);
- method public default boolean tryAdvance(java.util.function.Consumer<? super java.lang.Integer>);
- method public java.util.Spliterator.OfInt trySplit();
- }
-
- public static interface Spliterator.OfLong extends java.util.Spliterator.OfPrimitive<java.lang.Long,java.util.function.LongConsumer,java.util.Spliterator.OfLong> {
- method public default void forEachRemaining(java.util.function.LongConsumer);
- method public default void forEachRemaining(java.util.function.Consumer<? super java.lang.Long>);
- method public boolean tryAdvance(java.util.function.LongConsumer);
- method public default boolean tryAdvance(java.util.function.Consumer<? super java.lang.Long>);
- method public java.util.Spliterator.OfLong trySplit();
- }
-
- public static interface Spliterator.OfPrimitive<T, T_CONS, T_SPLITR extends java.util.Spliterator.OfPrimitive<T, T_CONS, T_SPLITR>> extends java.util.Spliterator<T> {
- method public default void forEachRemaining(T_CONS);
- method public boolean tryAdvance(T_CONS);
- method public T_SPLITR trySplit();
- }
-
- public final class Spliterators {
- method public static java.util.Spliterator.OfDouble emptyDoubleSpliterator();
- method public static java.util.Spliterator.OfInt emptyIntSpliterator();
- method public static java.util.Spliterator.OfLong emptyLongSpliterator();
- method public static <T> java.util.Spliterator<T> emptySpliterator();
- method public static <T> java.util.Iterator<T> iterator(java.util.Spliterator<? extends T>);
- method public static java.util.PrimitiveIterator.OfInt iterator(java.util.Spliterator.OfInt);
- method public static java.util.PrimitiveIterator.OfLong iterator(java.util.Spliterator.OfLong);
- method public static java.util.PrimitiveIterator.OfDouble iterator(java.util.Spliterator.OfDouble);
- method public static <T> java.util.Spliterator<T> spliterator(Object[], int);
- method public static <T> java.util.Spliterator<T> spliterator(Object[], int, int, int);
- method public static java.util.Spliterator.OfInt spliterator(int[], int);
- method public static java.util.Spliterator.OfInt spliterator(int[], int, int, int);
- method public static java.util.Spliterator.OfLong spliterator(long[], int);
- method public static java.util.Spliterator.OfLong spliterator(long[], int, int, int);
- method public static java.util.Spliterator.OfDouble spliterator(double[], int);
- method public static java.util.Spliterator.OfDouble spliterator(double[], int, int, int);
- method public static <T> java.util.Spliterator<T> spliterator(java.util.Collection<? extends T>, int);
- method public static <T> java.util.Spliterator<T> spliterator(java.util.Iterator<? extends T>, long, int);
- method public static java.util.Spliterator.OfInt spliterator(java.util.PrimitiveIterator.OfInt, long, int);
- method public static java.util.Spliterator.OfLong spliterator(java.util.PrimitiveIterator.OfLong, long, int);
- method public static java.util.Spliterator.OfDouble spliterator(java.util.PrimitiveIterator.OfDouble, long, int);
- method public static <T> java.util.Spliterator<T> spliteratorUnknownSize(java.util.Iterator<? extends T>, int);
- method public static java.util.Spliterator.OfInt spliteratorUnknownSize(java.util.PrimitiveIterator.OfInt, int);
- method public static java.util.Spliterator.OfLong spliteratorUnknownSize(java.util.PrimitiveIterator.OfLong, int);
- method public static java.util.Spliterator.OfDouble spliteratorUnknownSize(java.util.PrimitiveIterator.OfDouble, int);
- }
-
- public abstract static class Spliterators.AbstractDoubleSpliterator implements java.util.Spliterator.OfDouble {
- ctor protected Spliterators.AbstractDoubleSpliterator(long, int);
- method public int characteristics();
- method public long estimateSize();
- method public java.util.Spliterator.OfDouble trySplit();
- }
-
- public abstract static class Spliterators.AbstractIntSpliterator implements java.util.Spliterator.OfInt {
- ctor protected Spliterators.AbstractIntSpliterator(long, int);
- method public int characteristics();
- method public long estimateSize();
- method public java.util.Spliterator.OfInt trySplit();
- }
-
- public abstract static class Spliterators.AbstractLongSpliterator implements java.util.Spliterator.OfLong {
- ctor protected Spliterators.AbstractLongSpliterator(long, int);
- method public int characteristics();
- method public long estimateSize();
- method public java.util.Spliterator.OfLong trySplit();
- }
-
- public abstract static class Spliterators.AbstractSpliterator<T> implements java.util.Spliterator<T> {
- ctor protected Spliterators.AbstractSpliterator(long, int);
- method public int characteristics();
- method public long estimateSize();
- method public java.util.Spliterator<T> trySplit();
- }
-
- public final class SplittableRandom {
- ctor public SplittableRandom(long);
- ctor public SplittableRandom();
- method public java.util.stream.DoubleStream doubles(long);
- method public java.util.stream.DoubleStream doubles();
- method public java.util.stream.DoubleStream doubles(long, double, double);
- method public java.util.stream.DoubleStream doubles(double, double);
- method public java.util.stream.IntStream ints(long);
- method public java.util.stream.IntStream ints();
- method public java.util.stream.IntStream ints(long, int, int);
- method public java.util.stream.IntStream ints(int, int);
- method public java.util.stream.LongStream longs(long);
- method public java.util.stream.LongStream longs();
- method public java.util.stream.LongStream longs(long, long, long);
- method public java.util.stream.LongStream longs(long, long);
- method public boolean nextBoolean();
- method public double nextDouble();
- method public double nextDouble(double);
- method public double nextDouble(double, double);
- method public int nextInt();
- method public int nextInt(int);
- method public int nextInt(int, int);
- method public long nextLong();
- method public long nextLong(long);
- method public long nextLong(long, long);
- method public java.util.SplittableRandom split();
- }
-
- public class Stack<E> extends java.util.Vector<E> {
- ctor public Stack();
- method public boolean empty();
- method public E peek();
- method public E pop();
- method public E push(E);
- method public int search(Object);
- }
-
- public final class StringJoiner {
- ctor public StringJoiner(CharSequence);
- ctor public StringJoiner(CharSequence, CharSequence, CharSequence);
- method public java.util.StringJoiner add(CharSequence);
- method public int length();
- method public java.util.StringJoiner merge(java.util.StringJoiner);
- method public java.util.StringJoiner setEmptyValue(CharSequence);
- }
-
- public class StringTokenizer implements java.util.Enumeration<java.lang.Object> {
- ctor public StringTokenizer(String, String, boolean);
- ctor public StringTokenizer(String, String);
- ctor public StringTokenizer(String);
- method public int countTokens();
- method public boolean hasMoreElements();
- method public boolean hasMoreTokens();
- method public Object nextElement();
- method public String nextToken();
- method public String nextToken(String);
- }
-
- public abstract class TimeZone implements java.lang.Cloneable java.io.Serializable {
- ctor public TimeZone();
- method public Object clone();
- method public static String[] getAvailableIDs(int);
- method public static String[] getAvailableIDs();
- method public int getDSTSavings();
- method public static java.util.TimeZone getDefault();
- method public final String getDisplayName();
- method public final String getDisplayName(java.util.Locale);
- method public final String getDisplayName(boolean, int);
- method public String getDisplayName(boolean, int, java.util.Locale);
- method public String getID();
- method public abstract int getOffset(int, int, int, int, int, int);
- method public int getOffset(long);
- method public abstract int getRawOffset();
- method public static java.util.TimeZone getTimeZone(String);
- method public static java.util.TimeZone getTimeZone(java.time.ZoneId);
- method public boolean hasSameRules(java.util.TimeZone);
- method public abstract boolean inDaylightTime(java.util.Date);
- method public boolean observesDaylightTime();
- method public static void setDefault(java.util.TimeZone);
- method public void setID(String);
- method public abstract void setRawOffset(int);
- method public java.time.ZoneId toZoneId();
- method public abstract boolean useDaylightTime();
- field public static final int LONG = 1; // 0x1
- field public static final int SHORT = 0; // 0x0
- }
-
- public class Timer {
- ctor public Timer();
- ctor public Timer(boolean);
- ctor public Timer(String);
- ctor public Timer(String, boolean);
- method public void cancel();
- method public int purge();
- method public void schedule(java.util.TimerTask, long);
- method public void schedule(java.util.TimerTask, java.util.Date);
- method public void schedule(java.util.TimerTask, long, long);
- method public void schedule(java.util.TimerTask, java.util.Date, long);
- method public void scheduleAtFixedRate(java.util.TimerTask, long, long);
- method public void scheduleAtFixedRate(java.util.TimerTask, java.util.Date, long);
- }
-
- public abstract class TimerTask implements java.lang.Runnable {
- ctor protected TimerTask();
- method public boolean cancel();
- method public long scheduledExecutionTime();
- }
-
- public class TooManyListenersException extends java.lang.Exception {
- ctor public TooManyListenersException();
- ctor public TooManyListenersException(String);
- }
-
- public class TreeMap<K, V> extends java.util.AbstractMap<K,V> implements java.lang.Cloneable java.util.NavigableMap<K,V> java.io.Serializable {
- ctor public TreeMap();
- ctor public TreeMap(@Nullable java.util.Comparator<? super K>);
- ctor public TreeMap(@NonNull java.util.Map<? extends K,? extends V>);
- ctor public TreeMap(@NonNull java.util.SortedMap<K,? extends V>);
- method @Nullable public java.util.Map.Entry<K,V> ceilingEntry(K);
- method @Nullable public K ceilingKey(K);
- method @NonNull public Object clone();
- method @Nullable public java.util.Comparator<? super K> comparator();
- method @NonNull public java.util.NavigableSet<K> descendingKeySet();
- method @NonNull public java.util.NavigableMap<K,V> descendingMap();
- method @NonNull public java.util.Set<java.util.Map.Entry<K,V>> entrySet();
- method @Nullable public java.util.Map.Entry<K,V> firstEntry();
- method public K firstKey();
- method @Nullable public java.util.Map.Entry<K,V> floorEntry(K);
- method @Nullable public K floorKey(K);
- method @NonNull public java.util.NavigableMap<K,V> headMap(K, boolean);
- method @NonNull public java.util.SortedMap<K,V> headMap(K);
- method @Nullable public java.util.Map.Entry<K,V> higherEntry(K);
- method @Nullable public K higherKey(K);
- method @Nullable public java.util.Map.Entry<K,V> lastEntry();
- method public K lastKey();
- method @Nullable public java.util.Map.Entry<K,V> lowerEntry(K);
- method @Nullable public K lowerKey(K);
- method @NonNull public java.util.NavigableSet<K> navigableKeySet();
- method @Nullable public java.util.Map.Entry<K,V> pollFirstEntry();
- method @Nullable public java.util.Map.Entry<K,V> pollLastEntry();
- method @NonNull public java.util.NavigableMap<K,V> subMap(K, boolean, K, boolean);
- method @NonNull public java.util.SortedMap<K,V> subMap(K, K);
- method @NonNull public java.util.NavigableMap<K,V> tailMap(K, boolean);
- method @NonNull public java.util.SortedMap<K,V> tailMap(K);
- }
-
- public class TreeSet<E> extends java.util.AbstractSet<E> implements java.lang.Cloneable java.util.NavigableSet<E> java.io.Serializable {
- ctor public TreeSet();
- ctor public TreeSet(java.util.Comparator<? super E>);
- ctor public TreeSet(java.util.Collection<? extends E>);
- ctor public TreeSet(java.util.SortedSet<E>);
- method public E ceiling(E);
- method public Object clone();
- method public java.util.Comparator<? super E> comparator();
- method public java.util.Iterator<E> descendingIterator();
- method public java.util.NavigableSet<E> descendingSet();
- method public E first();
- method public E floor(E);
- method public java.util.NavigableSet<E> headSet(E, boolean);
- method public java.util.SortedSet<E> headSet(E);
- method public E higher(E);
- method public java.util.Iterator<E> iterator();
- method public E last();
- method public E lower(E);
- method public E pollFirst();
- method public E pollLast();
- method public int size();
- method public java.util.NavigableSet<E> subSet(E, boolean, E, boolean);
- method public java.util.SortedSet<E> subSet(E, E);
- method public java.util.NavigableSet<E> tailSet(E, boolean);
- method public java.util.SortedSet<E> tailSet(E);
- }
-
- public final class UUID implements java.lang.Comparable<java.util.UUID> java.io.Serializable {
- ctor public UUID(long, long);
- method public int clockSequence();
- method public int compareTo(java.util.UUID);
- method public static java.util.UUID fromString(String);
- method public long getLeastSignificantBits();
- method public long getMostSignificantBits();
- method public static java.util.UUID nameUUIDFromBytes(byte[]);
- method public long node();
- method public static java.util.UUID randomUUID();
- method public long timestamp();
- method public int variant();
- method public int version();
- }
-
- public class UnknownFormatConversionException extends java.util.IllegalFormatException {
- ctor public UnknownFormatConversionException(String);
- method public String getConversion();
- }
-
- public class UnknownFormatFlagsException extends java.util.IllegalFormatException {
- ctor public UnknownFormatFlagsException(String);
- method public String getFlags();
- }
-
- public class Vector<E> extends java.util.AbstractList<E> implements java.lang.Cloneable java.util.List<E> java.util.RandomAccess java.io.Serializable {
- ctor public Vector(int, int);
- ctor public Vector(int);
- ctor public Vector();
- ctor public Vector(@NonNull java.util.Collection<? extends E>);
- method public void addElement(E);
- method public int capacity();
- method @NonNull public Object clone();
- method public void copyInto(@NonNull Object[]);
- method public E elementAt(int);
- method @NonNull public java.util.Enumeration<E> elements();
- method public void ensureCapacity(int);
- method public E firstElement();
- method public void forEach(@NonNull java.util.function.Consumer<? super E>);
- method public E get(int);
- method public int indexOf(@Nullable Object, int);
- method public void insertElementAt(E, int);
- method public E lastElement();
- method public int lastIndexOf(@Nullable Object, int);
- method public void removeAllElements();
- method public boolean removeElement(@Nullable Object);
- method public void removeElementAt(int);
- method public void setElementAt(E, int);
- method public void setSize(int);
- method public int size();
- method public void trimToSize();
- field protected int capacityIncrement;
- field protected int elementCount;
- field @NonNull protected Object[] elementData;
- }
-
- public class WeakHashMap<K, V> extends java.util.AbstractMap<K,V> implements java.util.Map<K,V> {
- ctor public WeakHashMap(int, float);
- ctor public WeakHashMap(int);
- ctor public WeakHashMap();
- ctor public WeakHashMap(@NonNull java.util.Map<? extends K,? extends V>);
- method @NonNull public java.util.Set<java.util.Map.Entry<K,V>> entrySet();
- }
-
-}
-
-package java.util.concurrent {
-
- public abstract class AbstractExecutorService implements java.util.concurrent.ExecutorService {
- ctor public AbstractExecutorService();
- method public <T> java.util.List<java.util.concurrent.Future<T>> invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>>) throws java.lang.InterruptedException;
- method public <T> java.util.List<java.util.concurrent.Future<T>> invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>>, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public <T> T invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>>) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException;
- method public <T> T invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>>, long, java.util.concurrent.TimeUnit) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.util.concurrent.TimeoutException;
- method protected <T> java.util.concurrent.RunnableFuture<T> newTaskFor(Runnable, T);
- method protected <T> java.util.concurrent.RunnableFuture<T> newTaskFor(java.util.concurrent.Callable<T>);
- method public java.util.concurrent.Future<?> submit(Runnable);
- method public <T> java.util.concurrent.Future<T> submit(Runnable, T);
- method public <T> java.util.concurrent.Future<T> submit(java.util.concurrent.Callable<T>);
- }
-
- public class ArrayBlockingQueue<E> extends java.util.AbstractQueue<E> implements java.util.concurrent.BlockingQueue<E> java.io.Serializable {
- ctor public ArrayBlockingQueue(int);
- ctor public ArrayBlockingQueue(int, boolean);
- ctor public ArrayBlockingQueue(int, boolean, java.util.Collection<? extends E>);
- method public int drainTo(java.util.Collection<? super E>);
- method public int drainTo(java.util.Collection<? super E>, int);
- method public java.util.Iterator<E> iterator();
- method public boolean offer(E);
- method public boolean offer(E, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public E peek();
- method public E poll();
- method public E poll(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public void put(E) throws java.lang.InterruptedException;
- method public int remainingCapacity();
- method public int size();
- method public E take() throws java.lang.InterruptedException;
- }
-
- public interface BlockingDeque<E> extends java.util.concurrent.BlockingQueue<E> java.util.Deque<E> {
- method public boolean offerFirst(E, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public boolean offerLast(E, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public E pollFirst(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public E pollLast(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public void putFirst(E) throws java.lang.InterruptedException;
- method public void putLast(E) throws java.lang.InterruptedException;
- method public E takeFirst() throws java.lang.InterruptedException;
- method public E takeLast() throws java.lang.InterruptedException;
- }
-
- public interface BlockingQueue<E> extends java.util.Queue<E> {
- method public int drainTo(java.util.Collection<? super E>);
- method public int drainTo(java.util.Collection<? super E>, int);
- method public boolean offer(E, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public E poll(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public void put(E) throws java.lang.InterruptedException;
- method public int remainingCapacity();
- method public E take() throws java.lang.InterruptedException;
- }
-
- public class BrokenBarrierException extends java.lang.Exception {
- ctor public BrokenBarrierException();
- ctor public BrokenBarrierException(String);
- }
-
- @java.lang.FunctionalInterface public interface Callable<V> {
- method public V call() throws java.lang.Exception;
- }
-
- public class CancellationException extends java.lang.IllegalStateException {
- ctor public CancellationException();
- ctor public CancellationException(String);
- }
-
- public class CompletableFuture<T> implements java.util.concurrent.CompletionStage<T> java.util.concurrent.Future<T> {
- ctor public CompletableFuture();
- method public java.util.concurrent.CompletableFuture<java.lang.Void> acceptEither(java.util.concurrent.CompletionStage<? extends T>, java.util.function.Consumer<? super T>);
- method public java.util.concurrent.CompletableFuture<java.lang.Void> acceptEitherAsync(java.util.concurrent.CompletionStage<? extends T>, java.util.function.Consumer<? super T>);
- method public java.util.concurrent.CompletableFuture<java.lang.Void> acceptEitherAsync(java.util.concurrent.CompletionStage<? extends T>, java.util.function.Consumer<? super T>, java.util.concurrent.Executor);
- method public static java.util.concurrent.CompletableFuture<java.lang.Void> allOf(java.util.concurrent.CompletableFuture<?>...);
- method public static java.util.concurrent.CompletableFuture<java.lang.Object> anyOf(java.util.concurrent.CompletableFuture<?>...);
- method public <U> java.util.concurrent.CompletableFuture<U> applyToEither(java.util.concurrent.CompletionStage<? extends T>, java.util.function.Function<? super T,U>);
- method public <U> java.util.concurrent.CompletableFuture<U> applyToEitherAsync(java.util.concurrent.CompletionStage<? extends T>, java.util.function.Function<? super T,U>);
- method public <U> java.util.concurrent.CompletableFuture<U> applyToEitherAsync(java.util.concurrent.CompletionStage<? extends T>, java.util.function.Function<? super T,U>, java.util.concurrent.Executor);
- method public boolean cancel(boolean);
- method public boolean complete(T);
- method public boolean completeExceptionally(Throwable);
- method public static <U> java.util.concurrent.CompletableFuture<U> completedFuture(U);
- method public java.util.concurrent.CompletableFuture<T> exceptionally(java.util.function.Function<java.lang.Throwable,? extends T>);
- method public T get() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException;
- method public T get(long, java.util.concurrent.TimeUnit) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.util.concurrent.TimeoutException;
- method public T getNow(T);
- method public int getNumberOfDependents();
- method public <U> java.util.concurrent.CompletableFuture<U> handle(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U>);
- method public <U> java.util.concurrent.CompletableFuture<U> handleAsync(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U>);
- method public <U> java.util.concurrent.CompletableFuture<U> handleAsync(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U>, java.util.concurrent.Executor);
- method public boolean isCancelled();
- method public boolean isCompletedExceptionally();
- method public boolean isDone();
- method public T join();
- method public void obtrudeException(Throwable);
- method public void obtrudeValue(T);
- method public java.util.concurrent.CompletableFuture<java.lang.Void> runAfterBoth(java.util.concurrent.CompletionStage<?>, Runnable);
- method public java.util.concurrent.CompletableFuture<java.lang.Void> runAfterBothAsync(java.util.concurrent.CompletionStage<?>, Runnable);
- method public java.util.concurrent.CompletableFuture<java.lang.Void> runAfterBothAsync(java.util.concurrent.CompletionStage<?>, Runnable, java.util.concurrent.Executor);
- method public java.util.concurrent.CompletableFuture<java.lang.Void> runAfterEither(java.util.concurrent.CompletionStage<?>, Runnable);
- method public java.util.concurrent.CompletableFuture<java.lang.Void> runAfterEitherAsync(java.util.concurrent.CompletionStage<?>, Runnable);
- method public java.util.concurrent.CompletableFuture<java.lang.Void> runAfterEitherAsync(java.util.concurrent.CompletionStage<?>, Runnable, java.util.concurrent.Executor);
- method public static java.util.concurrent.CompletableFuture<java.lang.Void> runAsync(Runnable);
- method public static java.util.concurrent.CompletableFuture<java.lang.Void> runAsync(Runnable, java.util.concurrent.Executor);
- method public static <U> java.util.concurrent.CompletableFuture<U> supplyAsync(java.util.function.Supplier<U>);
- method public static <U> java.util.concurrent.CompletableFuture<U> supplyAsync(java.util.function.Supplier<U>, java.util.concurrent.Executor);
- method public java.util.concurrent.CompletableFuture<java.lang.Void> thenAccept(java.util.function.Consumer<? super T>);
- method public java.util.concurrent.CompletableFuture<java.lang.Void> thenAcceptAsync(java.util.function.Consumer<? super T>);
- method public java.util.concurrent.CompletableFuture<java.lang.Void> thenAcceptAsync(java.util.function.Consumer<? super T>, java.util.concurrent.Executor);
- method public <U> java.util.concurrent.CompletableFuture<java.lang.Void> thenAcceptBoth(java.util.concurrent.CompletionStage<? extends U>, java.util.function.BiConsumer<? super T,? super U>);
- method public <U> java.util.concurrent.CompletableFuture<java.lang.Void> thenAcceptBothAsync(java.util.concurrent.CompletionStage<? extends U>, java.util.function.BiConsumer<? super T,? super U>);
- method public <U> java.util.concurrent.CompletableFuture<java.lang.Void> thenAcceptBothAsync(java.util.concurrent.CompletionStage<? extends U>, java.util.function.BiConsumer<? super T,? super U>, java.util.concurrent.Executor);
- method public <U> java.util.concurrent.CompletableFuture<U> thenApply(java.util.function.Function<? super T,? extends U>);
- method public <U> java.util.concurrent.CompletableFuture<U> thenApplyAsync(java.util.function.Function<? super T,? extends U>);
- method public <U> java.util.concurrent.CompletableFuture<U> thenApplyAsync(java.util.function.Function<? super T,? extends U>, java.util.concurrent.Executor);
- method public <U, V> java.util.concurrent.CompletableFuture<V> thenCombine(java.util.concurrent.CompletionStage<? extends U>, java.util.function.BiFunction<? super T,? super U,? extends V>);
- method public <U, V> java.util.concurrent.CompletableFuture<V> thenCombineAsync(java.util.concurrent.CompletionStage<? extends U>, java.util.function.BiFunction<? super T,? super U,? extends V>);
- method public <U, V> java.util.concurrent.CompletableFuture<V> thenCombineAsync(java.util.concurrent.CompletionStage<? extends U>, java.util.function.BiFunction<? super T,? super U,? extends V>, java.util.concurrent.Executor);
- method public <U> java.util.concurrent.CompletableFuture<U> thenCompose(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>>);
- method public <U> java.util.concurrent.CompletableFuture<U> thenComposeAsync(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>>);
- method public <U> java.util.concurrent.CompletableFuture<U> thenComposeAsync(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>>, java.util.concurrent.Executor);
- method public java.util.concurrent.CompletableFuture<java.lang.Void> thenRun(Runnable);
- method public java.util.concurrent.CompletableFuture<java.lang.Void> thenRunAsync(Runnable);
- method public java.util.concurrent.CompletableFuture<java.lang.Void> thenRunAsync(Runnable, java.util.concurrent.Executor);
- method public java.util.concurrent.CompletableFuture<T> toCompletableFuture();
- method public java.util.concurrent.CompletableFuture<T> whenComplete(java.util.function.BiConsumer<? super T,? super java.lang.Throwable>);
- method public java.util.concurrent.CompletableFuture<T> whenCompleteAsync(java.util.function.BiConsumer<? super T,? super java.lang.Throwable>);
- method public java.util.concurrent.CompletableFuture<T> whenCompleteAsync(java.util.function.BiConsumer<? super T,? super java.lang.Throwable>, java.util.concurrent.Executor);
- }
-
- public static interface CompletableFuture.AsynchronousCompletionTask {
- }
-
- public class CompletionException extends java.lang.RuntimeException {
- ctor protected CompletionException();
- ctor protected CompletionException(String);
- ctor public CompletionException(String, Throwable);
- ctor public CompletionException(Throwable);
- }
-
- public interface CompletionService<V> {
- method public java.util.concurrent.Future<V> poll();
- method public java.util.concurrent.Future<V> poll(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public java.util.concurrent.Future<V> submit(java.util.concurrent.Callable<V>);
- method public java.util.concurrent.Future<V> submit(Runnable, V);
- method public java.util.concurrent.Future<V> take() throws java.lang.InterruptedException;
- }
-
- public interface CompletionStage<T> {
- method public java.util.concurrent.CompletionStage<java.lang.Void> acceptEither(java.util.concurrent.CompletionStage<? extends T>, java.util.function.Consumer<? super T>);
- method public java.util.concurrent.CompletionStage<java.lang.Void> acceptEitherAsync(java.util.concurrent.CompletionStage<? extends T>, java.util.function.Consumer<? super T>);
- method public java.util.concurrent.CompletionStage<java.lang.Void> acceptEitherAsync(java.util.concurrent.CompletionStage<? extends T>, java.util.function.Consumer<? super T>, java.util.concurrent.Executor);
- method public <U> java.util.concurrent.CompletionStage<U> applyToEither(java.util.concurrent.CompletionStage<? extends T>, java.util.function.Function<? super T,U>);
- method public <U> java.util.concurrent.CompletionStage<U> applyToEitherAsync(java.util.concurrent.CompletionStage<? extends T>, java.util.function.Function<? super T,U>);
- method public <U> java.util.concurrent.CompletionStage<U> applyToEitherAsync(java.util.concurrent.CompletionStage<? extends T>, java.util.function.Function<? super T,U>, java.util.concurrent.Executor);
- method public java.util.concurrent.CompletionStage<T> exceptionally(java.util.function.Function<java.lang.Throwable,? extends T>);
- method public <U> java.util.concurrent.CompletionStage<U> handle(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U>);
- method public <U> java.util.concurrent.CompletionStage<U> handleAsync(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U>);
- method public <U> java.util.concurrent.CompletionStage<U> handleAsync(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U>, java.util.concurrent.Executor);
- method public java.util.concurrent.CompletionStage<java.lang.Void> runAfterBoth(java.util.concurrent.CompletionStage<?>, Runnable);
- method public java.util.concurrent.CompletionStage<java.lang.Void> runAfterBothAsync(java.util.concurrent.CompletionStage<?>, Runnable);
- method public java.util.concurrent.CompletionStage<java.lang.Void> runAfterBothAsync(java.util.concurrent.CompletionStage<?>, Runnable, java.util.concurrent.Executor);
- method public java.util.concurrent.CompletionStage<java.lang.Void> runAfterEither(java.util.concurrent.CompletionStage<?>, Runnable);
- method public java.util.concurrent.CompletionStage<java.lang.Void> runAfterEitherAsync(java.util.concurrent.CompletionStage<?>, Runnable);
- method public java.util.concurrent.CompletionStage<java.lang.Void> runAfterEitherAsync(java.util.concurrent.CompletionStage<?>, Runnable, java.util.concurrent.Executor);
- method public java.util.concurrent.CompletionStage<java.lang.Void> thenAccept(java.util.function.Consumer<? super T>);
- method public java.util.concurrent.CompletionStage<java.lang.Void> thenAcceptAsync(java.util.function.Consumer<? super T>);
- method public java.util.concurrent.CompletionStage<java.lang.Void> thenAcceptAsync(java.util.function.Consumer<? super T>, java.util.concurrent.Executor);
- method public <U> java.util.concurrent.CompletionStage<java.lang.Void> thenAcceptBoth(java.util.concurrent.CompletionStage<? extends U>, java.util.function.BiConsumer<? super T,? super U>);
- method public <U> java.util.concurrent.CompletionStage<java.lang.Void> thenAcceptBothAsync(java.util.concurrent.CompletionStage<? extends U>, java.util.function.BiConsumer<? super T,? super U>);
- method public <U> java.util.concurrent.CompletionStage<java.lang.Void> thenAcceptBothAsync(java.util.concurrent.CompletionStage<? extends U>, java.util.function.BiConsumer<? super T,? super U>, java.util.concurrent.Executor);
- method public <U> java.util.concurrent.CompletionStage<U> thenApply(java.util.function.Function<? super T,? extends U>);
- method public <U> java.util.concurrent.CompletionStage<U> thenApplyAsync(java.util.function.Function<? super T,? extends U>);
- method public <U> java.util.concurrent.CompletionStage<U> thenApplyAsync(java.util.function.Function<? super T,? extends U>, java.util.concurrent.Executor);
- method public <U, V> java.util.concurrent.CompletionStage<V> thenCombine(java.util.concurrent.CompletionStage<? extends U>, java.util.function.BiFunction<? super T,? super U,? extends V>);
- method public <U, V> java.util.concurrent.CompletionStage<V> thenCombineAsync(java.util.concurrent.CompletionStage<? extends U>, java.util.function.BiFunction<? super T,? super U,? extends V>);
- method public <U, V> java.util.concurrent.CompletionStage<V> thenCombineAsync(java.util.concurrent.CompletionStage<? extends U>, java.util.function.BiFunction<? super T,? super U,? extends V>, java.util.concurrent.Executor);
- method public <U> java.util.concurrent.CompletionStage<U> thenCompose(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>>);
- method public <U> java.util.concurrent.CompletionStage<U> thenComposeAsync(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>>);
- method public <U> java.util.concurrent.CompletionStage<U> thenComposeAsync(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>>, java.util.concurrent.Executor);
- method public java.util.concurrent.CompletionStage<java.lang.Void> thenRun(Runnable);
- method public java.util.concurrent.CompletionStage<java.lang.Void> thenRunAsync(Runnable);
- method public java.util.concurrent.CompletionStage<java.lang.Void> thenRunAsync(Runnable, java.util.concurrent.Executor);
- method public java.util.concurrent.CompletableFuture<T> toCompletableFuture();
- method public java.util.concurrent.CompletionStage<T> whenComplete(java.util.function.BiConsumer<? super T,? super java.lang.Throwable>);
- method public java.util.concurrent.CompletionStage<T> whenCompleteAsync(java.util.function.BiConsumer<? super T,? super java.lang.Throwable>);
- method public java.util.concurrent.CompletionStage<T> whenCompleteAsync(java.util.function.BiConsumer<? super T,? super java.lang.Throwable>, java.util.concurrent.Executor);
- }
-
- public class ConcurrentHashMap<K, V> extends java.util.AbstractMap<K,V> implements java.util.concurrent.ConcurrentMap<K,V> java.io.Serializable {
- ctor public ConcurrentHashMap();
- ctor public ConcurrentHashMap(int);
- ctor public ConcurrentHashMap(@NonNull java.util.Map<? extends K,? extends V>);
- ctor public ConcurrentHashMap(int, float);
- ctor public ConcurrentHashMap(int, float, int);
- method public boolean contains(@NonNull Object);
- method @NonNull public java.util.Enumeration<V> elements();
- method @NonNull public java.util.Set<java.util.Map.Entry<K,V>> entrySet();
- method public void forEach(long, @NonNull java.util.function.BiConsumer<? super K,? super V>);
- method public <U> void forEach(long, @NonNull java.util.function.BiFunction<? super K,? super V,? extends U>, @NonNull java.util.function.Consumer<? super U>);
- method public void forEachEntry(long, @NonNull java.util.function.Consumer<? super java.util.Map.Entry<K,V>>);
- method public <U> void forEachEntry(long, @NonNull java.util.function.Function<java.util.Map.Entry<K,V>,? extends U>, @NonNull java.util.function.Consumer<? super U>);
- method public void forEachKey(long, @NonNull java.util.function.Consumer<? super K>);
- method public <U> void forEachKey(long, @NonNull java.util.function.Function<? super K,? extends U>, @NonNull java.util.function.Consumer<? super U>);
- method public void forEachValue(long, @NonNull java.util.function.Consumer<? super V>);
- method public <U> void forEachValue(long, @NonNull java.util.function.Function<? super V,? extends U>, @NonNull java.util.function.Consumer<? super U>);
- method @NonNull public java.util.concurrent.ConcurrentHashMap.KeySetView<K,V> keySet(@NonNull V);
- method @NonNull public java.util.Enumeration<K> keys();
- method public long mappingCount();
- method @NonNull public static <K> java.util.concurrent.ConcurrentHashMap.KeySetView<K,java.lang.Boolean> newKeySet();
- method @NonNull public static <K> java.util.concurrent.ConcurrentHashMap.KeySetView<K,java.lang.Boolean> newKeySet(int);
- method @Nullable public <U> U reduce(long, @NonNull java.util.function.BiFunction<? super K,? super V,? extends U>, @NonNull java.util.function.BiFunction<? super U,? super U,? extends U>);
- method @Nullable public java.util.Map.Entry<K,V> reduceEntries(long, @NonNull java.util.function.BiFunction<java.util.Map.Entry<K,V>,java.util.Map.Entry<K,V>,? extends java.util.Map.Entry<K,V>>);
- method @Nullable public <U> U reduceEntries(long, @NonNull java.util.function.Function<java.util.Map.Entry<K,V>,? extends U>, @NonNull java.util.function.BiFunction<? super U,? super U,? extends U>);
- method public double reduceEntriesToDouble(long, @NonNull java.util.function.ToDoubleFunction<java.util.Map.Entry<K,V>>, double, @NonNull java.util.function.DoubleBinaryOperator);
- method public int reduceEntriesToInt(long, @NonNull java.util.function.ToIntFunction<java.util.Map.Entry<K,V>>, int, @NonNull java.util.function.IntBinaryOperator);
- method public long reduceEntriesToLong(long, @NonNull java.util.function.ToLongFunction<java.util.Map.Entry<K,V>>, long, @NonNull java.util.function.LongBinaryOperator);
- method @Nullable public K reduceKeys(long, @NonNull java.util.function.BiFunction<? super K,? super K,? extends K>);
- method @Nullable public <U> U reduceKeys(long, @NonNull java.util.function.Function<? super K,? extends U>, @NonNull java.util.function.BiFunction<? super U,? super U,? extends U>);
- method public double reduceKeysToDouble(long, @NonNull java.util.function.ToDoubleFunction<? super K>, double, @NonNull java.util.function.DoubleBinaryOperator);
- method public int reduceKeysToInt(long, @NonNull java.util.function.ToIntFunction<? super K>, int, @NonNull java.util.function.IntBinaryOperator);
- method public long reduceKeysToLong(long, @NonNull java.util.function.ToLongFunction<? super K>, long, @NonNull java.util.function.LongBinaryOperator);
- method public double reduceToDouble(long, @NonNull java.util.function.ToDoubleBiFunction<? super K,? super V>, double, @NonNull java.util.function.DoubleBinaryOperator);
- method public int reduceToInt(long, @NonNull java.util.function.ToIntBiFunction<? super K,? super V>, int, @NonNull java.util.function.IntBinaryOperator);
- method public long reduceToLong(long, @NonNull java.util.function.ToLongBiFunction<? super K,? super V>, long, @NonNull java.util.function.LongBinaryOperator);
- method @Nullable public V reduceValues(long, @NonNull java.util.function.BiFunction<? super V,? super V,? extends V>);
- method @Nullable public <U> U reduceValues(long, @NonNull java.util.function.Function<? super V,? extends U>, @NonNull java.util.function.BiFunction<? super U,? super U,? extends U>);
- method public double reduceValuesToDouble(long, @NonNull java.util.function.ToDoubleFunction<? super V>, double, @NonNull java.util.function.DoubleBinaryOperator);
- method public int reduceValuesToInt(long, @NonNull java.util.function.ToIntFunction<? super V>, int, @NonNull java.util.function.IntBinaryOperator);
- method public long reduceValuesToLong(long, @NonNull java.util.function.ToLongFunction<? super V>, long, @NonNull java.util.function.LongBinaryOperator);
- method @Nullable public <U> U search(long, @NonNull java.util.function.BiFunction<? super K,? super V,? extends U>);
- method @Nullable public <U> U searchEntries(long, @NonNull java.util.function.Function<java.util.Map.Entry<K,V>,? extends U>);
- method @Nullable public <U> U searchKeys(long, @NonNull java.util.function.Function<? super K,? extends U>);
- method @Nullable public <U> U searchValues(long, @NonNull java.util.function.Function<? super V,? extends U>);
- }
-
- public static class ConcurrentHashMap.KeySetView<K, V> implements java.util.Collection<K> java.io.Serializable java.util.Set<K> {
- method public boolean add(@NonNull K);
- method public boolean addAll(@NonNull java.util.Collection<? extends K>);
- method public final void clear();
- method public boolean contains(@NonNull Object);
- method public final boolean containsAll(@NonNull java.util.Collection<?>);
- method public void forEach(@NonNull java.util.function.Consumer<? super K>);
- method @NonNull public java.util.concurrent.ConcurrentHashMap<K,V> getMap();
- method @Nullable public V getMappedValue();
- method public final boolean isEmpty();
- method @NonNull public java.util.Iterator<K> iterator();
- method public boolean remove(@NonNull Object);
- method public final boolean removeAll(@NonNull java.util.Collection<?>);
- method public final boolean retainAll(@NonNull java.util.Collection<?>);
- method public final int size();
- method @NonNull public java.util.Spliterator<K> spliterator();
- method @NonNull public final Object[] toArray();
- method @NonNull public final <T> T[] toArray(@NonNull T[]);
- method @NonNull public final String toString();
- }
-
- public class ConcurrentLinkedDeque<E> extends java.util.AbstractCollection<E> implements java.util.Deque<E> java.io.Serializable {
- ctor public ConcurrentLinkedDeque();
- ctor public ConcurrentLinkedDeque(java.util.Collection<? extends E>);
- method public void addFirst(E);
- method public void addLast(E);
- method public java.util.Iterator<E> descendingIterator();
- method public E element();
- method public E getFirst();
- method public E getLast();
- method public java.util.Iterator<E> iterator();
- method public boolean offer(E);
- method public boolean offerFirst(E);
- method public boolean offerLast(E);
- method public E peek();
- method public E peekFirst();
- method public E peekLast();
- method public E poll();
- method public E pollFirst();
- method public E pollLast();
- method public E pop();
- method public void push(E);
- method public E remove();
- method public E removeFirst();
- method public boolean removeFirstOccurrence(Object);
- method public E removeLast();
- method public boolean removeLastOccurrence(Object);
- method public int size();
- }
-
- public class ConcurrentLinkedQueue<E> extends java.util.AbstractQueue<E> implements java.util.Queue<E> java.io.Serializable {
- ctor public ConcurrentLinkedQueue();
- ctor public ConcurrentLinkedQueue(java.util.Collection<? extends E>);
- method public java.util.Iterator<E> iterator();
- method public boolean offer(E);
- method public E peek();
- method public E poll();
- method public int size();
- }
-
- public interface ConcurrentMap<K, V> extends java.util.Map<K,V> {
- method public V putIfAbsent(K, V);
- method public boolean remove(Object, Object);
- method public boolean replace(K, V, V);
- method public V replace(K, V);
- }
-
- public interface ConcurrentNavigableMap<K, V> extends java.util.concurrent.ConcurrentMap<K,V> java.util.NavigableMap<K,V> {
- method public java.util.concurrent.ConcurrentNavigableMap<K,V> descendingMap();
- method public java.util.concurrent.ConcurrentNavigableMap<K,V> headMap(K, boolean);
- method public java.util.concurrent.ConcurrentNavigableMap<K,V> headMap(K);
- method public java.util.NavigableSet<K> keySet();
- method public java.util.concurrent.ConcurrentNavigableMap<K,V> subMap(K, boolean, K, boolean);
- method public java.util.concurrent.ConcurrentNavigableMap<K,V> subMap(K, K);
- method public java.util.concurrent.ConcurrentNavigableMap<K,V> tailMap(K, boolean);
- method public java.util.concurrent.ConcurrentNavigableMap<K,V> tailMap(K);
- }
-
- public class ConcurrentSkipListMap<K, V> extends java.util.AbstractMap<K,V> implements java.lang.Cloneable java.util.concurrent.ConcurrentNavigableMap<K,V> java.io.Serializable {
- ctor public ConcurrentSkipListMap();
- ctor public ConcurrentSkipListMap(java.util.Comparator<? super K>);
- ctor public ConcurrentSkipListMap(java.util.Map<? extends K,? extends V>);
- ctor public ConcurrentSkipListMap(java.util.SortedMap<K,? extends V>);
- method public java.util.Map.Entry<K,V> ceilingEntry(K);
- method public K ceilingKey(K);
- method public java.util.concurrent.ConcurrentSkipListMap<K,V> clone();
- method public java.util.Comparator<? super K> comparator();
- method public java.util.NavigableSet<K> descendingKeySet();
- method public java.util.concurrent.ConcurrentNavigableMap<K,V> descendingMap();
- method public java.util.Set<java.util.Map.Entry<K,V>> entrySet();
- method public java.util.Map.Entry<K,V> firstEntry();
- method public K firstKey();
- method public java.util.Map.Entry<K,V> floorEntry(K);
- method public K floorKey(K);
- method public java.util.concurrent.ConcurrentNavigableMap<K,V> headMap(K, boolean);
- method public java.util.concurrent.ConcurrentNavigableMap<K,V> headMap(K);
- method public java.util.Map.Entry<K,V> higherEntry(K);
- method public K higherKey(K);
- method public java.util.NavigableSet<K> keySet();
- method public java.util.Map.Entry<K,V> lastEntry();
- method public K lastKey();
- method public java.util.Map.Entry<K,V> lowerEntry(K);
- method public K lowerKey(K);
- method public java.util.NavigableSet<K> navigableKeySet();
- method public java.util.Map.Entry<K,V> pollFirstEntry();
- method public java.util.Map.Entry<K,V> pollLastEntry();
- method public java.util.concurrent.ConcurrentNavigableMap<K,V> subMap(K, boolean, K, boolean);
- method public java.util.concurrent.ConcurrentNavigableMap<K,V> subMap(K, K);
- method public java.util.concurrent.ConcurrentNavigableMap<K,V> tailMap(K, boolean);
- method public java.util.concurrent.ConcurrentNavigableMap<K,V> tailMap(K);
- }
-
- public class ConcurrentSkipListSet<E> extends java.util.AbstractSet<E> implements java.lang.Cloneable java.util.NavigableSet<E> java.io.Serializable {
- ctor public ConcurrentSkipListSet();
- ctor public ConcurrentSkipListSet(java.util.Comparator<? super E>);
- ctor public ConcurrentSkipListSet(java.util.Collection<? extends E>);
- ctor public ConcurrentSkipListSet(java.util.SortedSet<E>);
- method public E ceiling(E);
- method public java.util.concurrent.ConcurrentSkipListSet<E> clone();
- method public java.util.Comparator<? super E> comparator();
- method public java.util.Iterator<E> descendingIterator();
- method public java.util.NavigableSet<E> descendingSet();
- method public E first();
- method public E floor(E);
- method public java.util.NavigableSet<E> headSet(E, boolean);
- method public java.util.NavigableSet<E> headSet(E);
- method public E higher(E);
- method public java.util.Iterator<E> iterator();
- method public E last();
- method public E lower(E);
- method public E pollFirst();
- method public E pollLast();
- method public int size();
- method public java.util.NavigableSet<E> subSet(E, boolean, E, boolean);
- method public java.util.NavigableSet<E> subSet(E, E);
- method public java.util.NavigableSet<E> tailSet(E, boolean);
- method public java.util.NavigableSet<E> tailSet(E);
- }
-
- public class CopyOnWriteArrayList<E> implements java.lang.Cloneable java.util.List<E> java.util.RandomAccess java.io.Serializable {
- ctor public CopyOnWriteArrayList();
- ctor public CopyOnWriteArrayList(@NonNull java.util.Collection<? extends E>);
- ctor public CopyOnWriteArrayList(@NonNull E[]);
- method public boolean add(E);
- method public void add(int, E);
- method public boolean addAll(@NonNull java.util.Collection<? extends E>);
- method public boolean addAll(int, @NonNull java.util.Collection<? extends E>);
- method public int addAllAbsent(@NonNull java.util.Collection<? extends E>);
- method public boolean addIfAbsent(E);
- method public void clear();
- method @NonNull public Object clone();
- method public boolean contains(@Nullable Object);
- method public boolean containsAll(@NonNull java.util.Collection<?>);
- method public void forEach(@NonNull java.util.function.Consumer<? super E>);
- method public E get(int);
- method public int indexOf(@Nullable Object);
- method public int indexOf(@Nullable E, int);
- method public boolean isEmpty();
- method @NonNull public java.util.Iterator<E> iterator();
- method public int lastIndexOf(@Nullable Object);
- method public int lastIndexOf(@Nullable E, int);
- method @NonNull public java.util.ListIterator<E> listIterator();
- method @NonNull public java.util.ListIterator<E> listIterator(int);
- method public E remove(int);
- method public boolean remove(@Nullable Object);
- method public boolean removeAll(@NonNull java.util.Collection<?>);
- method public boolean retainAll(@NonNull java.util.Collection<?>);
- method public E set(int, E);
- method public int size();
- method @NonNull public java.util.List<E> subList(int, int);
- method @NonNull public Object[] toArray();
- method @NonNull public <T> T[] toArray(@NonNull T[]);
- }
-
- public class CopyOnWriteArraySet<E> extends java.util.AbstractSet<E> implements java.io.Serializable {
- ctor public CopyOnWriteArraySet();
- ctor public CopyOnWriteArraySet(java.util.Collection<? extends E>);
- method public void forEach(java.util.function.Consumer<? super E>);
- method public java.util.Iterator<E> iterator();
- method public int size();
- }
-
- public class CountDownLatch {
- ctor public CountDownLatch(int);
- method public void await() throws java.lang.InterruptedException;
- method public boolean await(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public void countDown();
- method public long getCount();
- }
-
- public abstract class CountedCompleter<T> extends java.util.concurrent.ForkJoinTask<T> {
- ctor protected CountedCompleter(java.util.concurrent.CountedCompleter<?>, int);
- ctor protected CountedCompleter(java.util.concurrent.CountedCompleter<?>);
- ctor protected CountedCompleter();
- method public final void addToPendingCount(int);
- method public final boolean compareAndSetPendingCount(int, int);
- method public void complete(T);
- method public abstract void compute();
- method public final int decrementPendingCountUnlessZero();
- method protected final boolean exec();
- method public final java.util.concurrent.CountedCompleter<?> firstComplete();
- method public final java.util.concurrent.CountedCompleter<?> getCompleter();
- method public final int getPendingCount();
- method public T getRawResult();
- method public final java.util.concurrent.CountedCompleter<?> getRoot();
- method public final void helpComplete(int);
- method public final java.util.concurrent.CountedCompleter<?> nextComplete();
- method public void onCompletion(java.util.concurrent.CountedCompleter<?>);
- method public boolean onExceptionalCompletion(Throwable, java.util.concurrent.CountedCompleter<?>);
- method public final void propagateCompletion();
- method public final void quietlyCompleteRoot();
- method public final void setPendingCount(int);
- method protected void setRawResult(T);
- method public final void tryComplete();
- }
-
- public class CyclicBarrier {
- ctor public CyclicBarrier(int, Runnable);
- ctor public CyclicBarrier(int);
- method public int await() throws java.util.concurrent.BrokenBarrierException, java.lang.InterruptedException;
- method public int await(long, java.util.concurrent.TimeUnit) throws java.util.concurrent.BrokenBarrierException, java.lang.InterruptedException, java.util.concurrent.TimeoutException;
- method public int getNumberWaiting();
- method public int getParties();
- method public boolean isBroken();
- method public void reset();
- }
-
- public class DelayQueue<E extends java.util.concurrent.Delayed> extends java.util.AbstractQueue<E> implements java.util.concurrent.BlockingQueue<E> {
- ctor public DelayQueue();
- ctor public DelayQueue(java.util.Collection<? extends E>);
- method public int drainTo(java.util.Collection<? super E>);
- method public int drainTo(java.util.Collection<? super E>, int);
- method public java.util.Iterator<E> iterator();
- method public boolean offer(E);
- method public boolean offer(E, long, java.util.concurrent.TimeUnit);
- method public E peek();
- method public E poll();
- method public E poll(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public void put(E);
- method public int remainingCapacity();
- method public int size();
- method public E take() throws java.lang.InterruptedException;
- }
-
- public interface Delayed extends java.lang.Comparable<java.util.concurrent.Delayed> {
- method public long getDelay(java.util.concurrent.TimeUnit);
- }
-
- public class Exchanger<V> {
- ctor public Exchanger();
- method public V exchange(V) throws java.lang.InterruptedException;
- method public V exchange(V, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException;
- }
-
- public class ExecutionException extends java.lang.Exception {
- ctor protected ExecutionException();
- ctor protected ExecutionException(String);
- ctor public ExecutionException(String, Throwable);
- ctor public ExecutionException(Throwable);
- }
-
- public interface Executor {
- method public void execute(Runnable);
- }
-
- public class ExecutorCompletionService<V> implements java.util.concurrent.CompletionService<V> {
- ctor public ExecutorCompletionService(java.util.concurrent.Executor);
- ctor public ExecutorCompletionService(java.util.concurrent.Executor, java.util.concurrent.BlockingQueue<java.util.concurrent.Future<V>>);
- method public java.util.concurrent.Future<V> poll();
- method public java.util.concurrent.Future<V> poll(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public java.util.concurrent.Future<V> submit(java.util.concurrent.Callable<V>);
- method public java.util.concurrent.Future<V> submit(Runnable, V);
- method public java.util.concurrent.Future<V> take() throws java.lang.InterruptedException;
- }
-
- public interface ExecutorService extends java.util.concurrent.Executor {
- method public boolean awaitTermination(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public <T> java.util.List<java.util.concurrent.Future<T>> invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>>) throws java.lang.InterruptedException;
- method public <T> java.util.List<java.util.concurrent.Future<T>> invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>>, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public <T> T invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>>) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException;
- method public <T> T invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>>, long, java.util.concurrent.TimeUnit) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.util.concurrent.TimeoutException;
- method public boolean isShutdown();
- method public boolean isTerminated();
- method public void shutdown();
- method public java.util.List<java.lang.Runnable> shutdownNow();
- method public <T> java.util.concurrent.Future<T> submit(java.util.concurrent.Callable<T>);
- method public <T> java.util.concurrent.Future<T> submit(Runnable, T);
- method public java.util.concurrent.Future<?> submit(Runnable);
- }
-
- public class Executors {
- method public static <T> java.util.concurrent.Callable<T> callable(Runnable, T);
- method public static java.util.concurrent.Callable<java.lang.Object> callable(Runnable);
- method public static java.util.concurrent.Callable<java.lang.Object> callable(java.security.PrivilegedAction<?>);
- method public static java.util.concurrent.Callable<java.lang.Object> callable(java.security.PrivilegedExceptionAction<?>);
- method public static java.util.concurrent.ThreadFactory defaultThreadFactory();
- method public static java.util.concurrent.ExecutorService newCachedThreadPool();
- method public static java.util.concurrent.ExecutorService newCachedThreadPool(java.util.concurrent.ThreadFactory);
- method public static java.util.concurrent.ExecutorService newFixedThreadPool(int);
- method public static java.util.concurrent.ExecutorService newFixedThreadPool(int, java.util.concurrent.ThreadFactory);
- method public static java.util.concurrent.ScheduledExecutorService newScheduledThreadPool(int);
- method public static java.util.concurrent.ScheduledExecutorService newScheduledThreadPool(int, java.util.concurrent.ThreadFactory);
- method public static java.util.concurrent.ExecutorService newSingleThreadExecutor();
- method public static java.util.concurrent.ExecutorService newSingleThreadExecutor(java.util.concurrent.ThreadFactory);
- method public static java.util.concurrent.ScheduledExecutorService newSingleThreadScheduledExecutor();
- method public static java.util.concurrent.ScheduledExecutorService newSingleThreadScheduledExecutor(java.util.concurrent.ThreadFactory);
- method public static java.util.concurrent.ExecutorService newWorkStealingPool(int);
- method public static java.util.concurrent.ExecutorService newWorkStealingPool();
- method public static <T> java.util.concurrent.Callable<T> privilegedCallable(java.util.concurrent.Callable<T>);
- method public static <T> java.util.concurrent.Callable<T> privilegedCallableUsingCurrentClassLoader(java.util.concurrent.Callable<T>);
- method public static java.util.concurrent.ThreadFactory privilegedThreadFactory();
- method public static java.util.concurrent.ExecutorService unconfigurableExecutorService(java.util.concurrent.ExecutorService);
- method public static java.util.concurrent.ScheduledExecutorService unconfigurableScheduledExecutorService(java.util.concurrent.ScheduledExecutorService);
- }
-
- public final class Flow {
- method public static int defaultBufferSize();
- }
-
- public static interface Flow.Processor<T, R> extends java.util.concurrent.Flow.Subscriber<T> java.util.concurrent.Flow.Publisher<R> {
- }
-
- @java.lang.FunctionalInterface public static interface Flow.Publisher<T> {
- method public void subscribe(java.util.concurrent.Flow.Subscriber<? super T>);
- }
-
- public static interface Flow.Subscriber<T> {
- method public void onComplete();
- method public void onError(Throwable);
- method public void onNext(T);
- method public void onSubscribe(java.util.concurrent.Flow.Subscription);
- }
-
- public static interface Flow.Subscription {
- method public void cancel();
- method public void request(long);
- }
-
- public class ForkJoinPool extends java.util.concurrent.AbstractExecutorService {
- ctor public ForkJoinPool();
- ctor public ForkJoinPool(int);
- ctor public ForkJoinPool(int, java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory, java.lang.Thread.UncaughtExceptionHandler, boolean);
- method public boolean awaitQuiescence(long, java.util.concurrent.TimeUnit);
- method public boolean awaitTermination(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public static java.util.concurrent.ForkJoinPool commonPool();
- method protected int drainTasksTo(java.util.Collection<? super java.util.concurrent.ForkJoinTask<?>>);
- method public void execute(java.util.concurrent.ForkJoinTask<?>);
- method public void execute(Runnable);
- method public int getActiveThreadCount();
- method public boolean getAsyncMode();
- method public static int getCommonPoolParallelism();
- method public java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory getFactory();
- method public int getParallelism();
- method public int getPoolSize();
- method public int getQueuedSubmissionCount();
- method public long getQueuedTaskCount();
- method public int getRunningThreadCount();
- method public long getStealCount();
- method public java.lang.Thread.UncaughtExceptionHandler getUncaughtExceptionHandler();
- method public boolean hasQueuedSubmissions();
- method public <T> T invoke(java.util.concurrent.ForkJoinTask<T>);
- method public <T> java.util.List<java.util.concurrent.Future<T>> invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>>);
- method public boolean isQuiescent();
- method public boolean isShutdown();
- method public boolean isTerminated();
- method public boolean isTerminating();
- method public static void managedBlock(java.util.concurrent.ForkJoinPool.ManagedBlocker) throws java.lang.InterruptedException;
- method protected java.util.concurrent.ForkJoinTask<?> pollSubmission();
- method public void shutdown();
- method public java.util.List<java.lang.Runnable> shutdownNow();
- method public <T> java.util.concurrent.ForkJoinTask<T> submit(java.util.concurrent.ForkJoinTask<T>);
- method public <T> java.util.concurrent.ForkJoinTask<T> submit(java.util.concurrent.Callable<T>);
- method public <T> java.util.concurrent.ForkJoinTask<T> submit(Runnable, T);
- method public java.util.concurrent.ForkJoinTask<?> submit(Runnable);
- field public static final java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory defaultForkJoinWorkerThreadFactory;
- }
-
- public static interface ForkJoinPool.ForkJoinWorkerThreadFactory {
- method public java.util.concurrent.ForkJoinWorkerThread newThread(java.util.concurrent.ForkJoinPool);
- }
-
- public static interface ForkJoinPool.ManagedBlocker {
- method public boolean block() throws java.lang.InterruptedException;
- method public boolean isReleasable();
- }
-
- public abstract class ForkJoinTask<V> implements java.util.concurrent.Future<V> java.io.Serializable {
- ctor public ForkJoinTask();
- method public static java.util.concurrent.ForkJoinTask<?> adapt(Runnable);
- method public static <T> java.util.concurrent.ForkJoinTask<T> adapt(Runnable, T);
- method public static <T> java.util.concurrent.ForkJoinTask<T> adapt(java.util.concurrent.Callable<? extends T>);
- method public boolean cancel(boolean);
- method public final boolean compareAndSetForkJoinTaskTag(short, short);
- method public void complete(V);
- method public void completeExceptionally(Throwable);
- method protected abstract boolean exec();
- method public final java.util.concurrent.ForkJoinTask<V> fork();
- method public final V get() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException;
- method public final V get(long, java.util.concurrent.TimeUnit) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.util.concurrent.TimeoutException;
- method public final Throwable getException();
- method public final short getForkJoinTaskTag();
- method public static java.util.concurrent.ForkJoinPool getPool();
- method public static int getQueuedTaskCount();
- method public abstract V getRawResult();
- method public static int getSurplusQueuedTaskCount();
- method public static void helpQuiesce();
- method public static boolean inForkJoinPool();
- method public final V invoke();
- method public static void invokeAll(java.util.concurrent.ForkJoinTask<?>, java.util.concurrent.ForkJoinTask<?>);
- method public static void invokeAll(java.util.concurrent.ForkJoinTask<?>...);
- method public static <T extends java.util.concurrent.ForkJoinTask<?>> java.util.Collection<T> invokeAll(java.util.Collection<T>);
- method public final boolean isCancelled();
- method public final boolean isCompletedAbnormally();
- method public final boolean isCompletedNormally();
- method public final boolean isDone();
- method public final V join();
- method protected static java.util.concurrent.ForkJoinTask<?> peekNextLocalTask();
- method protected static java.util.concurrent.ForkJoinTask<?> pollNextLocalTask();
- method protected static java.util.concurrent.ForkJoinTask<?> pollTask();
- method public final void quietlyComplete();
- method public final void quietlyInvoke();
- method public final void quietlyJoin();
- method public void reinitialize();
- method public final short setForkJoinTaskTag(short);
- method protected abstract void setRawResult(V);
- method public boolean tryUnfork();
- }
-
- public class ForkJoinWorkerThread extends java.lang.Thread {
- ctor protected ForkJoinWorkerThread(java.util.concurrent.ForkJoinPool);
- method public java.util.concurrent.ForkJoinPool getPool();
- method public int getPoolIndex();
- method protected void onStart();
- method protected void onTermination(Throwable);
- }
-
- public interface Future<V> {
- method public boolean cancel(boolean);
- method public V get() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException;
- method public V get(long, java.util.concurrent.TimeUnit) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.util.concurrent.TimeoutException;
- method public boolean isCancelled();
- method public boolean isDone();
- }
-
- public class FutureTask<V> implements java.util.concurrent.RunnableFuture<V> {
- ctor public FutureTask(java.util.concurrent.Callable<V>);
- ctor public FutureTask(Runnable, V);
- method public boolean cancel(boolean);
- method protected void done();
- method public V get() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException;
- method public V get(long, java.util.concurrent.TimeUnit) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.util.concurrent.TimeoutException;
- method public boolean isCancelled();
- method public boolean isDone();
- method public void run();
- method protected boolean runAndReset();
- method protected void set(V);
- method protected void setException(Throwable);
- }
-
- public class LinkedBlockingDeque<E> extends java.util.AbstractQueue<E> implements java.util.concurrent.BlockingDeque<E> java.io.Serializable {
- ctor public LinkedBlockingDeque();
- ctor public LinkedBlockingDeque(int);
- ctor public LinkedBlockingDeque(java.util.Collection<? extends E>);
- method public void addFirst(E);
- method public void addLast(E);
- method public java.util.Iterator<E> descendingIterator();
- method public int drainTo(java.util.Collection<? super E>);
- method public int drainTo(java.util.Collection<? super E>, int);
- method public E getFirst();
- method public E getLast();
- method public java.util.Iterator<E> iterator();
- method public boolean offer(E);
- method public boolean offer(E, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public boolean offerFirst(E);
- method public boolean offerFirst(E, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public boolean offerLast(E);
- method public boolean offerLast(E, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public E peek();
- method public E peekFirst();
- method public E peekLast();
- method public E poll();
- method public E poll(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public E pollFirst();
- method public E pollFirst(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public E pollLast();
- method public E pollLast(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public E pop();
- method public void push(E);
- method public void put(E) throws java.lang.InterruptedException;
- method public void putFirst(E) throws java.lang.InterruptedException;
- method public void putLast(E) throws java.lang.InterruptedException;
- method public int remainingCapacity();
- method public E removeFirst();
- method public boolean removeFirstOccurrence(Object);
- method public E removeLast();
- method public boolean removeLastOccurrence(Object);
- method public int size();
- method public E take() throws java.lang.InterruptedException;
- method public E takeFirst() throws java.lang.InterruptedException;
- method public E takeLast() throws java.lang.InterruptedException;
- }
-
- public class LinkedBlockingQueue<E> extends java.util.AbstractQueue<E> implements java.util.concurrent.BlockingQueue<E> java.io.Serializable {
- ctor public LinkedBlockingQueue();
- ctor public LinkedBlockingQueue(int);
- ctor public LinkedBlockingQueue(java.util.Collection<? extends E>);
- method public int drainTo(java.util.Collection<? super E>);
- method public int drainTo(java.util.Collection<? super E>, int);
- method public java.util.Iterator<E> iterator();
- method public boolean offer(E, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public boolean offer(E);
- method public E peek();
- method public E poll(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public E poll();
- method public void put(E) throws java.lang.InterruptedException;
- method public int remainingCapacity();
- method public int size();
- method public E take() throws java.lang.InterruptedException;
- }
-
- public class LinkedTransferQueue<E> extends java.util.AbstractQueue<E> implements java.io.Serializable java.util.concurrent.TransferQueue<E> {
- ctor public LinkedTransferQueue();
- ctor public LinkedTransferQueue(java.util.Collection<? extends E>);
- method public int drainTo(java.util.Collection<? super E>);
- method public int drainTo(java.util.Collection<? super E>, int);
- method public int getWaitingConsumerCount();
- method public boolean hasWaitingConsumer();
- method public java.util.Iterator<E> iterator();
- method public boolean offer(E, long, java.util.concurrent.TimeUnit);
- method public boolean offer(E);
- method public E peek();
- method public E poll(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public E poll();
- method public void put(E);
- method public int remainingCapacity();
- method public int size();
- method public E take() throws java.lang.InterruptedException;
- method public void transfer(E) throws java.lang.InterruptedException;
- method public boolean tryTransfer(E);
- method public boolean tryTransfer(E, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- }
-
- public class Phaser {
- ctor public Phaser();
- ctor public Phaser(int);
- ctor public Phaser(java.util.concurrent.Phaser);
- ctor public Phaser(java.util.concurrent.Phaser, int);
- method public int arrive();
- method public int arriveAndAwaitAdvance();
- method public int arriveAndDeregister();
- method public int awaitAdvance(int);
- method public int awaitAdvanceInterruptibly(int) throws java.lang.InterruptedException;
- method public int awaitAdvanceInterruptibly(int, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException;
- method public int bulkRegister(int);
- method public void forceTermination();
- method public int getArrivedParties();
- method public java.util.concurrent.Phaser getParent();
- method public final int getPhase();
- method public int getRegisteredParties();
- method public java.util.concurrent.Phaser getRoot();
- method public int getUnarrivedParties();
- method public boolean isTerminated();
- method protected boolean onAdvance(int, int);
- method public int register();
- }
-
- public class PriorityBlockingQueue<E> extends java.util.AbstractQueue<E> implements java.util.concurrent.BlockingQueue<E> java.io.Serializable {
- ctor public PriorityBlockingQueue();
- ctor public PriorityBlockingQueue(int);
- ctor public PriorityBlockingQueue(int, java.util.Comparator<? super E>);
- ctor public PriorityBlockingQueue(java.util.Collection<? extends E>);
- method public java.util.Comparator<? super E> comparator();
- method public int drainTo(java.util.Collection<? super E>);
- method public int drainTo(java.util.Collection<? super E>, int);
- method public java.util.Iterator<E> iterator();
- method public boolean offer(E);
- method public boolean offer(E, long, java.util.concurrent.TimeUnit);
- method public E peek();
- method public E poll();
- method public E poll(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public void put(E);
- method public int remainingCapacity();
- method public int size();
- method public E take() throws java.lang.InterruptedException;
- }
-
- public abstract class RecursiveAction extends java.util.concurrent.ForkJoinTask<java.lang.Void> {
- ctor public RecursiveAction();
- method protected abstract void compute();
- method protected final boolean exec();
- method public final Void getRawResult();
- method protected final void setRawResult(Void);
- }
-
- public abstract class RecursiveTask<V> extends java.util.concurrent.ForkJoinTask<V> {
- ctor public RecursiveTask();
- method protected abstract V compute();
- method protected final boolean exec();
- method public final V getRawResult();
- method protected final void setRawResult(V);
- }
-
- public class RejectedExecutionException extends java.lang.RuntimeException {
- ctor public RejectedExecutionException();
- ctor public RejectedExecutionException(String);
- ctor public RejectedExecutionException(String, Throwable);
- ctor public RejectedExecutionException(Throwable);
- }
-
- public interface RejectedExecutionHandler {
- method public void rejectedExecution(Runnable, java.util.concurrent.ThreadPoolExecutor);
- }
-
- public interface RunnableFuture<V> extends java.lang.Runnable java.util.concurrent.Future<V> {
- }
-
- public interface RunnableScheduledFuture<V> extends java.util.concurrent.RunnableFuture<V> java.util.concurrent.ScheduledFuture<V> {
- method public boolean isPeriodic();
- }
-
- public interface ScheduledExecutorService extends java.util.concurrent.ExecutorService {
- method public java.util.concurrent.ScheduledFuture<?> schedule(Runnable, long, java.util.concurrent.TimeUnit);
- method public <V> java.util.concurrent.ScheduledFuture<V> schedule(java.util.concurrent.Callable<V>, long, java.util.concurrent.TimeUnit);
- method public java.util.concurrent.ScheduledFuture<?> scheduleAtFixedRate(Runnable, long, long, java.util.concurrent.TimeUnit);
- method public java.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(Runnable, long, long, java.util.concurrent.TimeUnit);
- }
-
- public interface ScheduledFuture<V> extends java.util.concurrent.Delayed java.util.concurrent.Future<V> {
- }
-
- public class ScheduledThreadPoolExecutor extends java.util.concurrent.ThreadPoolExecutor implements java.util.concurrent.ScheduledExecutorService {
- ctor public ScheduledThreadPoolExecutor(int);
- ctor public ScheduledThreadPoolExecutor(int, java.util.concurrent.ThreadFactory);
- ctor public ScheduledThreadPoolExecutor(int, java.util.concurrent.RejectedExecutionHandler);
- ctor public ScheduledThreadPoolExecutor(int, java.util.concurrent.ThreadFactory, java.util.concurrent.RejectedExecutionHandler);
- method protected <V> java.util.concurrent.RunnableScheduledFuture<V> decorateTask(Runnable, java.util.concurrent.RunnableScheduledFuture<V>);
- method protected <V> java.util.concurrent.RunnableScheduledFuture<V> decorateTask(java.util.concurrent.Callable<V>, java.util.concurrent.RunnableScheduledFuture<V>);
- method public boolean getContinueExistingPeriodicTasksAfterShutdownPolicy();
- method public boolean getExecuteExistingDelayedTasksAfterShutdownPolicy();
- method public boolean getRemoveOnCancelPolicy();
- method public java.util.concurrent.ScheduledFuture<?> schedule(Runnable, long, java.util.concurrent.TimeUnit);
- method public <V> java.util.concurrent.ScheduledFuture<V> schedule(java.util.concurrent.Callable<V>, long, java.util.concurrent.TimeUnit);
- method public java.util.concurrent.ScheduledFuture<?> scheduleAtFixedRate(Runnable, long, long, java.util.concurrent.TimeUnit);
- method public java.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(Runnable, long, long, java.util.concurrent.TimeUnit);
- method public void setContinueExistingPeriodicTasksAfterShutdownPolicy(boolean);
- method public void setExecuteExistingDelayedTasksAfterShutdownPolicy(boolean);
- method public void setRemoveOnCancelPolicy(boolean);
- }
-
- public class Semaphore implements java.io.Serializable {
- ctor public Semaphore(int);
- ctor public Semaphore(int, boolean);
- method public void acquire() throws java.lang.InterruptedException;
- method public void acquire(int) throws java.lang.InterruptedException;
- method public void acquireUninterruptibly();
- method public void acquireUninterruptibly(int);
- method public int availablePermits();
- method public int drainPermits();
- method public final int getQueueLength();
- method protected java.util.Collection<java.lang.Thread> getQueuedThreads();
- method public final boolean hasQueuedThreads();
- method public boolean isFair();
- method protected void reducePermits(int);
- method public void release();
- method public void release(int);
- method public boolean tryAcquire();
- method public boolean tryAcquire(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public boolean tryAcquire(int);
- method public boolean tryAcquire(int, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- }
-
- public class SynchronousQueue<E> extends java.util.AbstractQueue<E> implements java.util.concurrent.BlockingQueue<E> java.io.Serializable {
- ctor public SynchronousQueue();
- ctor public SynchronousQueue(boolean);
- method public int drainTo(java.util.Collection<? super E>);
- method public int drainTo(java.util.Collection<? super E>, int);
- method public java.util.Iterator<E> iterator();
- method public boolean offer(E, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public boolean offer(E);
- method public E peek();
- method public E poll(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public E poll();
- method public void put(E) throws java.lang.InterruptedException;
- method public int remainingCapacity();
- method public int size();
- method public E take() throws java.lang.InterruptedException;
- }
-
- public interface ThreadFactory {
- method public Thread newThread(Runnable);
- }
-
- public class ThreadLocalRandom extends java.util.Random {
- method public static java.util.concurrent.ThreadLocalRandom current();
- method public double nextDouble(double);
- method public double nextDouble(double, double);
- method public int nextInt(int, int);
- method public long nextLong(long);
- method public long nextLong(long, long);
- }
-
- public class ThreadPoolExecutor extends java.util.concurrent.AbstractExecutorService {
- ctor public ThreadPoolExecutor(int, int, long, java.util.concurrent.TimeUnit, java.util.concurrent.BlockingQueue<java.lang.Runnable>);
- ctor public ThreadPoolExecutor(int, int, long, java.util.concurrent.TimeUnit, java.util.concurrent.BlockingQueue<java.lang.Runnable>, java.util.concurrent.ThreadFactory);
- ctor public ThreadPoolExecutor(int, int, long, java.util.concurrent.TimeUnit, java.util.concurrent.BlockingQueue<java.lang.Runnable>, java.util.concurrent.RejectedExecutionHandler);
- ctor public ThreadPoolExecutor(int, int, long, java.util.concurrent.TimeUnit, java.util.concurrent.BlockingQueue<java.lang.Runnable>, java.util.concurrent.ThreadFactory, java.util.concurrent.RejectedExecutionHandler);
- method protected void afterExecute(Runnable, Throwable);
- method public void allowCoreThreadTimeOut(boolean);
- method public boolean allowsCoreThreadTimeOut();
- method public boolean awaitTermination(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method protected void beforeExecute(Thread, Runnable);
- method public void execute(Runnable);
- method protected void finalize();
- method public int getActiveCount();
- method public long getCompletedTaskCount();
- method public int getCorePoolSize();
- method public long getKeepAliveTime(java.util.concurrent.TimeUnit);
- method public int getLargestPoolSize();
- method public int getMaximumPoolSize();
- method public int getPoolSize();
- method public java.util.concurrent.BlockingQueue<java.lang.Runnable> getQueue();
- method public java.util.concurrent.RejectedExecutionHandler getRejectedExecutionHandler();
- method public long getTaskCount();
- method public java.util.concurrent.ThreadFactory getThreadFactory();
- method public boolean isShutdown();
- method public boolean isTerminated();
- method public boolean isTerminating();
- method public int prestartAllCoreThreads();
- method public boolean prestartCoreThread();
- method public void purge();
- method public boolean remove(Runnable);
- method public void setCorePoolSize(int);
- method public void setKeepAliveTime(long, java.util.concurrent.TimeUnit);
- method public void setMaximumPoolSize(int);
- method public void setRejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler);
- method public void setThreadFactory(java.util.concurrent.ThreadFactory);
- method public void shutdown();
- method public java.util.List<java.lang.Runnable> shutdownNow();
- method protected void terminated();
- }
-
- public static class ThreadPoolExecutor.AbortPolicy implements java.util.concurrent.RejectedExecutionHandler {
- ctor public ThreadPoolExecutor.AbortPolicy();
- method public void rejectedExecution(Runnable, java.util.concurrent.ThreadPoolExecutor);
- }
-
- public static class ThreadPoolExecutor.CallerRunsPolicy implements java.util.concurrent.RejectedExecutionHandler {
- ctor public ThreadPoolExecutor.CallerRunsPolicy();
- method public void rejectedExecution(Runnable, java.util.concurrent.ThreadPoolExecutor);
- }
-
- public static class ThreadPoolExecutor.DiscardOldestPolicy implements java.util.concurrent.RejectedExecutionHandler {
- ctor public ThreadPoolExecutor.DiscardOldestPolicy();
- method public void rejectedExecution(Runnable, java.util.concurrent.ThreadPoolExecutor);
- }
-
- public static class ThreadPoolExecutor.DiscardPolicy implements java.util.concurrent.RejectedExecutionHandler {
- ctor public ThreadPoolExecutor.DiscardPolicy();
- method public void rejectedExecution(Runnable, java.util.concurrent.ThreadPoolExecutor);
- }
-
- public enum TimeUnit {
- method public long convert(long, java.util.concurrent.TimeUnit);
- method public void sleep(long) throws java.lang.InterruptedException;
- method public void timedJoin(Thread, long) throws java.lang.InterruptedException;
- method public void timedWait(Object, long) throws java.lang.InterruptedException;
- method public long toDays(long);
- method public long toHours(long);
- method public long toMicros(long);
- method public long toMillis(long);
- method public long toMinutes(long);
- method public long toNanos(long);
- method public long toSeconds(long);
- enum_constant public static final java.util.concurrent.TimeUnit DAYS;
- enum_constant public static final java.util.concurrent.TimeUnit HOURS;
- enum_constant public static final java.util.concurrent.TimeUnit MICROSECONDS;
- enum_constant public static final java.util.concurrent.TimeUnit MILLISECONDS;
- enum_constant public static final java.util.concurrent.TimeUnit MINUTES;
- enum_constant public static final java.util.concurrent.TimeUnit NANOSECONDS;
- enum_constant public static final java.util.concurrent.TimeUnit SECONDS;
- }
-
- public class TimeoutException extends java.lang.Exception {
- ctor public TimeoutException();
- ctor public TimeoutException(String);
- }
-
- public interface TransferQueue<E> extends java.util.concurrent.BlockingQueue<E> {
- method public int getWaitingConsumerCount();
- method public boolean hasWaitingConsumer();
- method public void transfer(E) throws java.lang.InterruptedException;
- method public boolean tryTransfer(E);
- method public boolean tryTransfer(E, long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- }
-
-}
-
-package java.util.concurrent.atomic {
-
- public class AtomicBoolean implements java.io.Serializable {
- ctor public AtomicBoolean(boolean);
- ctor public AtomicBoolean();
- method public final boolean compareAndSet(boolean, boolean);
- method public final boolean get();
- method public final boolean getAndSet(boolean);
- method public final void lazySet(boolean);
- method public final void set(boolean);
- method public boolean weakCompareAndSet(boolean, boolean);
- }
-
- public class AtomicInteger extends java.lang.Number implements java.io.Serializable {
- ctor public AtomicInteger(int);
- ctor public AtomicInteger();
- method public final int accumulateAndGet(int, java.util.function.IntBinaryOperator);
- method public final int addAndGet(int);
- method public final boolean compareAndSet(int, int);
- method public final int decrementAndGet();
- method public double doubleValue();
- method public float floatValue();
- method public final int get();
- method public final int getAndAccumulate(int, java.util.function.IntBinaryOperator);
- method public final int getAndAdd(int);
- method public final int getAndDecrement();
- method public final int getAndIncrement();
- method public final int getAndSet(int);
- method public final int getAndUpdate(java.util.function.IntUnaryOperator);
- method public final int incrementAndGet();
- method public int intValue();
- method public final void lazySet(int);
- method public long longValue();
- method public final void set(int);
- method public final int updateAndGet(java.util.function.IntUnaryOperator);
- method public final boolean weakCompareAndSet(int, int);
- }
-
- public class AtomicIntegerArray implements java.io.Serializable {
- ctor public AtomicIntegerArray(int);
- ctor public AtomicIntegerArray(int[]);
- method public final int accumulateAndGet(int, int, java.util.function.IntBinaryOperator);
- method public final int addAndGet(int, int);
- method public final boolean compareAndSet(int, int, int);
- method public final int decrementAndGet(int);
- method public final int get(int);
- method public final int getAndAccumulate(int, int, java.util.function.IntBinaryOperator);
- method public final int getAndAdd(int, int);
- method public final int getAndDecrement(int);
- method public final int getAndIncrement(int);
- method public final int getAndSet(int, int);
- method public final int getAndUpdate(int, java.util.function.IntUnaryOperator);
- method public final int incrementAndGet(int);
- method public final void lazySet(int, int);
- method public final int length();
- method public final void set(int, int);
- method public final int updateAndGet(int, java.util.function.IntUnaryOperator);
- method public final boolean weakCompareAndSet(int, int, int);
- }
-
- public abstract class AtomicIntegerFieldUpdater<T> {
- ctor protected AtomicIntegerFieldUpdater();
- method public final int accumulateAndGet(T, int, java.util.function.IntBinaryOperator);
- method public int addAndGet(T, int);
- method public abstract boolean compareAndSet(T, int, int);
- method public int decrementAndGet(T);
- method public abstract int get(T);
- method public final int getAndAccumulate(T, int, java.util.function.IntBinaryOperator);
- method public int getAndAdd(T, int);
- method public int getAndDecrement(T);
- method public int getAndIncrement(T);
- method public int getAndSet(T, int);
- method public final int getAndUpdate(T, java.util.function.IntUnaryOperator);
- method public int incrementAndGet(T);
- method public abstract void lazySet(T, int);
- method public static <U> java.util.concurrent.atomic.AtomicIntegerFieldUpdater<U> newUpdater(Class<U>, String);
- method public abstract void set(T, int);
- method public final int updateAndGet(T, java.util.function.IntUnaryOperator);
- method public abstract boolean weakCompareAndSet(T, int, int);
- }
-
- public class AtomicLong extends java.lang.Number implements java.io.Serializable {
- ctor public AtomicLong(long);
- ctor public AtomicLong();
- method public final long accumulateAndGet(long, java.util.function.LongBinaryOperator);
- method public final long addAndGet(long);
- method public final boolean compareAndSet(long, long);
- method public final long decrementAndGet();
- method public double doubleValue();
- method public float floatValue();
- method public final long get();
- method public final long getAndAccumulate(long, java.util.function.LongBinaryOperator);
- method public final long getAndAdd(long);
- method public final long getAndDecrement();
- method public final long getAndIncrement();
- method public final long getAndSet(long);
- method public final long getAndUpdate(java.util.function.LongUnaryOperator);
- method public final long incrementAndGet();
- method public int intValue();
- method public final void lazySet(long);
- method public long longValue();
- method public final void set(long);
- method public final long updateAndGet(java.util.function.LongUnaryOperator);
- method public final boolean weakCompareAndSet(long, long);
- }
-
- public class AtomicLongArray implements java.io.Serializable {
- ctor public AtomicLongArray(int);
- ctor public AtomicLongArray(long[]);
- method public final long accumulateAndGet(int, long, java.util.function.LongBinaryOperator);
- method public long addAndGet(int, long);
- method public final boolean compareAndSet(int, long, long);
- method public final long decrementAndGet(int);
- method public final long get(int);
- method public final long getAndAccumulate(int, long, java.util.function.LongBinaryOperator);
- method public final long getAndAdd(int, long);
- method public final long getAndDecrement(int);
- method public final long getAndIncrement(int);
- method public final long getAndSet(int, long);
- method public final long getAndUpdate(int, java.util.function.LongUnaryOperator);
- method public final long incrementAndGet(int);
- method public final void lazySet(int, long);
- method public final int length();
- method public final void set(int, long);
- method public final long updateAndGet(int, java.util.function.LongUnaryOperator);
- method public final boolean weakCompareAndSet(int, long, long);
- }
-
- public abstract class AtomicLongFieldUpdater<T> {
- ctor protected AtomicLongFieldUpdater();
- method public final long accumulateAndGet(T, long, java.util.function.LongBinaryOperator);
- method public long addAndGet(T, long);
- method public abstract boolean compareAndSet(T, long, long);
- method public long decrementAndGet(T);
- method public abstract long get(T);
- method public final long getAndAccumulate(T, long, java.util.function.LongBinaryOperator);
- method public long getAndAdd(T, long);
- method public long getAndDecrement(T);
- method public long getAndIncrement(T);
- method public long getAndSet(T, long);
- method public final long getAndUpdate(T, java.util.function.LongUnaryOperator);
- method public long incrementAndGet(T);
- method public abstract void lazySet(T, long);
- method public static <U> java.util.concurrent.atomic.AtomicLongFieldUpdater<U> newUpdater(Class<U>, String);
- method public abstract void set(T, long);
- method public final long updateAndGet(T, java.util.function.LongUnaryOperator);
- method public abstract boolean weakCompareAndSet(T, long, long);
- }
-
- public class AtomicMarkableReference<V> {
- ctor public AtomicMarkableReference(V, boolean);
- method public boolean attemptMark(V, boolean);
- method public boolean compareAndSet(V, V, boolean, boolean);
- method public V get(boolean[]);
- method public V getReference();
- method public boolean isMarked();
- method public void set(V, boolean);
- method public boolean weakCompareAndSet(V, V, boolean, boolean);
- }
-
- public class AtomicReference<V> implements java.io.Serializable {
- ctor public AtomicReference(V);
- ctor public AtomicReference();
- method public final V accumulateAndGet(V, java.util.function.BinaryOperator<V>);
- method public final boolean compareAndSet(V, V);
- method public final V get();
- method public final V getAndAccumulate(V, java.util.function.BinaryOperator<V>);
- method public final V getAndSet(V);
- method public final V getAndUpdate(java.util.function.UnaryOperator<V>);
- method public final void lazySet(V);
- method public final void set(V);
- method public final V updateAndGet(java.util.function.UnaryOperator<V>);
- method public final boolean weakCompareAndSet(V, V);
- }
-
- public class AtomicReferenceArray<E> implements java.io.Serializable {
- ctor public AtomicReferenceArray(int);
- ctor public AtomicReferenceArray(E[]);
- method public final E accumulateAndGet(int, E, java.util.function.BinaryOperator<E>);
- method public final boolean compareAndSet(int, E, E);
- method public final E get(int);
- method public final E getAndAccumulate(int, E, java.util.function.BinaryOperator<E>);
- method public final E getAndSet(int, E);
- method public final E getAndUpdate(int, java.util.function.UnaryOperator<E>);
- method public final void lazySet(int, E);
- method public final int length();
- method public final void set(int, E);
- method public final E updateAndGet(int, java.util.function.UnaryOperator<E>);
- method public final boolean weakCompareAndSet(int, E, E);
- }
-
- public abstract class AtomicReferenceFieldUpdater<T, V> {
- ctor protected AtomicReferenceFieldUpdater();
- method public final V accumulateAndGet(T, V, java.util.function.BinaryOperator<V>);
- method public abstract boolean compareAndSet(T, V, V);
- method public abstract V get(T);
- method public final V getAndAccumulate(T, V, java.util.function.BinaryOperator<V>);
- method public V getAndSet(T, V);
- method public final V getAndUpdate(T, java.util.function.UnaryOperator<V>);
- method public abstract void lazySet(T, V);
- method public static <U, W> java.util.concurrent.atomic.AtomicReferenceFieldUpdater<U,W> newUpdater(Class<U>, Class<W>, String);
- method public abstract void set(T, V);
- method public final V updateAndGet(T, java.util.function.UnaryOperator<V>);
- method public abstract boolean weakCompareAndSet(T, V, V);
- }
-
- public class AtomicStampedReference<V> {
- ctor public AtomicStampedReference(V, int);
- method public boolean attemptStamp(V, int);
- method public boolean compareAndSet(V, V, int, int);
- method public V get(int[]);
- method public V getReference();
- method public int getStamp();
- method public void set(V, int);
- method public boolean weakCompareAndSet(V, V, int, int);
- }
-
- public class DoubleAccumulator extends java.lang.Number implements java.io.Serializable {
- ctor public DoubleAccumulator(java.util.function.DoubleBinaryOperator, double);
- method public void accumulate(double);
- method public double doubleValue();
- method public float floatValue();
- method public double get();
- method public double getThenReset();
- method public int intValue();
- method public long longValue();
- method public void reset();
- }
-
- public class DoubleAdder extends java.lang.Number implements java.io.Serializable {
- ctor public DoubleAdder();
- method public void add(double);
- method public double doubleValue();
- method public float floatValue();
- method public int intValue();
- method public long longValue();
- method public void reset();
- method public double sum();
- method public double sumThenReset();
- }
-
- public class LongAccumulator extends java.lang.Number implements java.io.Serializable {
- ctor public LongAccumulator(java.util.function.LongBinaryOperator, long);
- method public void accumulate(long);
- method public double doubleValue();
- method public float floatValue();
- method public long get();
- method public long getThenReset();
- method public int intValue();
- method public long longValue();
- method public void reset();
- }
-
- public class LongAdder extends java.lang.Number implements java.io.Serializable {
- ctor public LongAdder();
- method public void add(long);
- method public void decrement();
- method public double doubleValue();
- method public float floatValue();
- method public void increment();
- method public int intValue();
- method public long longValue();
- method public void reset();
- method public long sum();
- method public long sumThenReset();
- }
-
-}
-
-package java.util.concurrent.locks {
-
- public abstract class AbstractOwnableSynchronizer implements java.io.Serializable {
- ctor protected AbstractOwnableSynchronizer();
- method protected final Thread getExclusiveOwnerThread();
- method protected final void setExclusiveOwnerThread(Thread);
- }
-
- public abstract class AbstractQueuedLongSynchronizer extends java.util.concurrent.locks.AbstractOwnableSynchronizer implements java.io.Serializable {
- ctor protected AbstractQueuedLongSynchronizer();
- method public final void acquire(long);
- method public final void acquireInterruptibly(long) throws java.lang.InterruptedException;
- method public final void acquireShared(long);
- method public final void acquireSharedInterruptibly(long) throws java.lang.InterruptedException;
- method protected final boolean compareAndSetState(long, long);
- method public final java.util.Collection<java.lang.Thread> getExclusiveQueuedThreads();
- method public final Thread getFirstQueuedThread();
- method public final int getQueueLength();
- method public final java.util.Collection<java.lang.Thread> getQueuedThreads();
- method public final java.util.Collection<java.lang.Thread> getSharedQueuedThreads();
- method protected final long getState();
- method public final int getWaitQueueLength(java.util.concurrent.locks.AbstractQueuedLongSynchronizer.ConditionObject);
- method public final java.util.Collection<java.lang.Thread> getWaitingThreads(java.util.concurrent.locks.AbstractQueuedLongSynchronizer.ConditionObject);
- method public final boolean hasContended();
- method public final boolean hasQueuedPredecessors();
- method public final boolean hasQueuedThreads();
- method public final boolean hasWaiters(java.util.concurrent.locks.AbstractQueuedLongSynchronizer.ConditionObject);
- method protected boolean isHeldExclusively();
- method public final boolean isQueued(Thread);
- method public final boolean owns(java.util.concurrent.locks.AbstractQueuedLongSynchronizer.ConditionObject);
- method public final boolean release(long);
- method public final boolean releaseShared(long);
- method protected final void setState(long);
- method protected boolean tryAcquire(long);
- method public final boolean tryAcquireNanos(long, long) throws java.lang.InterruptedException;
- method protected long tryAcquireShared(long);
- method public final boolean tryAcquireSharedNanos(long, long) throws java.lang.InterruptedException;
- method protected boolean tryRelease(long);
- method protected boolean tryReleaseShared(long);
- }
-
- public class AbstractQueuedLongSynchronizer.ConditionObject implements java.util.concurrent.locks.Condition java.io.Serializable {
- ctor public AbstractQueuedLongSynchronizer.ConditionObject();
- method public final void await() throws java.lang.InterruptedException;
- method public final boolean await(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public final long awaitNanos(long) throws java.lang.InterruptedException;
- method public final void awaitUninterruptibly();
- method public final boolean awaitUntil(java.util.Date) throws java.lang.InterruptedException;
- method protected final int getWaitQueueLength();
- method protected final java.util.Collection<java.lang.Thread> getWaitingThreads();
- method protected final boolean hasWaiters();
- method public final void signal();
- method public final void signalAll();
- }
-
- public abstract class AbstractQueuedSynchronizer extends java.util.concurrent.locks.AbstractOwnableSynchronizer implements java.io.Serializable {
- ctor protected AbstractQueuedSynchronizer();
- method public final void acquire(int);
- method public final void acquireInterruptibly(int) throws java.lang.InterruptedException;
- method public final void acquireShared(int);
- method public final void acquireSharedInterruptibly(int) throws java.lang.InterruptedException;
- method protected final boolean compareAndSetState(int, int);
- method public final java.util.Collection<java.lang.Thread> getExclusiveQueuedThreads();
- method public final Thread getFirstQueuedThread();
- method public final int getQueueLength();
- method public final java.util.Collection<java.lang.Thread> getQueuedThreads();
- method public final java.util.Collection<java.lang.Thread> getSharedQueuedThreads();
- method protected final int getState();
- method public final int getWaitQueueLength(java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject);
- method public final java.util.Collection<java.lang.Thread> getWaitingThreads(java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject);
- method public final boolean hasContended();
- method public final boolean hasQueuedPredecessors();
- method public final boolean hasQueuedThreads();
- method public final boolean hasWaiters(java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject);
- method protected boolean isHeldExclusively();
- method public final boolean isQueued(Thread);
- method public final boolean owns(java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject);
- method public final boolean release(int);
- method public final boolean releaseShared(int);
- method protected final void setState(int);
- method protected boolean tryAcquire(int);
- method public final boolean tryAcquireNanos(int, long) throws java.lang.InterruptedException;
- method protected int tryAcquireShared(int);
- method public final boolean tryAcquireSharedNanos(int, long) throws java.lang.InterruptedException;
- method protected boolean tryRelease(int);
- method protected boolean tryReleaseShared(int);
- }
-
- public class AbstractQueuedSynchronizer.ConditionObject implements java.util.concurrent.locks.Condition java.io.Serializable {
- ctor public AbstractQueuedSynchronizer.ConditionObject();
- method public final void await() throws java.lang.InterruptedException;
- method public final boolean await(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public final long awaitNanos(long) throws java.lang.InterruptedException;
- method public final void awaitUninterruptibly();
- method public final boolean awaitUntil(java.util.Date) throws java.lang.InterruptedException;
- method protected final int getWaitQueueLength();
- method protected final java.util.Collection<java.lang.Thread> getWaitingThreads();
- method protected final boolean hasWaiters();
- method public final void signal();
- method public final void signalAll();
- }
-
- public interface Condition {
- method public void await() throws java.lang.InterruptedException;
- method public boolean await(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public long awaitNanos(long) throws java.lang.InterruptedException;
- method public void awaitUninterruptibly();
- method public boolean awaitUntil(java.util.Date) throws java.lang.InterruptedException;
- method public void signal();
- method public void signalAll();
- }
-
- public interface Lock {
- method public void lock();
- method public void lockInterruptibly() throws java.lang.InterruptedException;
- method public java.util.concurrent.locks.Condition newCondition();
- method public boolean tryLock();
- method public boolean tryLock(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public void unlock();
- }
-
- public class LockSupport {
- method public static Object getBlocker(Thread);
- method public static void park(Object);
- method public static void park();
- method public static void parkNanos(Object, long);
- method public static void parkNanos(long);
- method public static void parkUntil(Object, long);
- method public static void parkUntil(long);
- method public static void unpark(Thread);
- }
-
- public interface ReadWriteLock {
- method public java.util.concurrent.locks.Lock readLock();
- method public java.util.concurrent.locks.Lock writeLock();
- }
-
- public class ReentrantLock implements java.util.concurrent.locks.Lock java.io.Serializable {
- ctor public ReentrantLock();
- ctor public ReentrantLock(boolean);
- method public int getHoldCount();
- method protected Thread getOwner();
- method public final int getQueueLength();
- method protected java.util.Collection<java.lang.Thread> getQueuedThreads();
- method public int getWaitQueueLength(java.util.concurrent.locks.Condition);
- method protected java.util.Collection<java.lang.Thread> getWaitingThreads(java.util.concurrent.locks.Condition);
- method public final boolean hasQueuedThread(Thread);
- method public final boolean hasQueuedThreads();
- method public boolean hasWaiters(java.util.concurrent.locks.Condition);
- method public final boolean isFair();
- method public boolean isHeldByCurrentThread();
- method public boolean isLocked();
- method public void lock();
- method public void lockInterruptibly() throws java.lang.InterruptedException;
- method public java.util.concurrent.locks.Condition newCondition();
- method public boolean tryLock();
- method public boolean tryLock(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public void unlock();
- }
-
- public class ReentrantReadWriteLock implements java.util.concurrent.locks.ReadWriteLock java.io.Serializable {
- ctor public ReentrantReadWriteLock();
- ctor public ReentrantReadWriteLock(boolean);
- method protected Thread getOwner();
- method public final int getQueueLength();
- method protected java.util.Collection<java.lang.Thread> getQueuedReaderThreads();
- method protected java.util.Collection<java.lang.Thread> getQueuedThreads();
- method protected java.util.Collection<java.lang.Thread> getQueuedWriterThreads();
- method public int getReadHoldCount();
- method public int getReadLockCount();
- method public int getWaitQueueLength(java.util.concurrent.locks.Condition);
- method protected java.util.Collection<java.lang.Thread> getWaitingThreads(java.util.concurrent.locks.Condition);
- method public int getWriteHoldCount();
- method public final boolean hasQueuedThread(Thread);
- method public final boolean hasQueuedThreads();
- method public boolean hasWaiters(java.util.concurrent.locks.Condition);
- method public final boolean isFair();
- method public boolean isWriteLocked();
- method public boolean isWriteLockedByCurrentThread();
- method public java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock readLock();
- method public java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock writeLock();
- }
-
- public static class ReentrantReadWriteLock.ReadLock implements java.util.concurrent.locks.Lock java.io.Serializable {
- ctor protected ReentrantReadWriteLock.ReadLock(java.util.concurrent.locks.ReentrantReadWriteLock);
- method public void lock();
- method public void lockInterruptibly() throws java.lang.InterruptedException;
- method public java.util.concurrent.locks.Condition newCondition();
- method public boolean tryLock();
- method public boolean tryLock(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public void unlock();
- }
-
- public static class ReentrantReadWriteLock.WriteLock implements java.util.concurrent.locks.Lock java.io.Serializable {
- ctor protected ReentrantReadWriteLock.WriteLock(java.util.concurrent.locks.ReentrantReadWriteLock);
- method public int getHoldCount();
- method public boolean isHeldByCurrentThread();
- method public void lock();
- method public void lockInterruptibly() throws java.lang.InterruptedException;
- method public java.util.concurrent.locks.Condition newCondition();
- method public boolean tryLock();
- method public boolean tryLock(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public void unlock();
- }
-
- public class StampedLock implements java.io.Serializable {
- ctor public StampedLock();
- method public java.util.concurrent.locks.Lock asReadLock();
- method public java.util.concurrent.locks.ReadWriteLock asReadWriteLock();
- method public java.util.concurrent.locks.Lock asWriteLock();
- method public int getReadLockCount();
- method public boolean isReadLocked();
- method public boolean isWriteLocked();
- method public long readLock();
- method public long readLockInterruptibly() throws java.lang.InterruptedException;
- method public long tryConvertToOptimisticRead(long);
- method public long tryConvertToReadLock(long);
- method public long tryConvertToWriteLock(long);
- method public long tryOptimisticRead();
- method public long tryReadLock();
- method public long tryReadLock(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public boolean tryUnlockRead();
- method public boolean tryUnlockWrite();
- method public long tryWriteLock();
- method public long tryWriteLock(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException;
- method public void unlock(long);
- method public void unlockRead(long);
- method public void unlockWrite(long);
- method public boolean validate(long);
- method public long writeLock();
- method public long writeLockInterruptibly() throws java.lang.InterruptedException;
- }
-
-}
-
-package java.util.function {
-
- @java.lang.FunctionalInterface public interface BiConsumer<T, U> {
- method public void accept(T, U);
- method public default java.util.function.BiConsumer<T,U> andThen(java.util.function.BiConsumer<? super T,? super U>);
- }
-
- @java.lang.FunctionalInterface public interface BiFunction<T, U, R> {
- method public default <V> java.util.function.BiFunction<T,U,V> andThen(java.util.function.Function<? super R,? extends V>);
- method public R apply(T, U);
- }
-
- @java.lang.FunctionalInterface public interface BiPredicate<T, U> {
- method public default java.util.function.BiPredicate<T,U> and(java.util.function.BiPredicate<? super T,? super U>);
- method public default java.util.function.BiPredicate<T,U> negate();
- method public default java.util.function.BiPredicate<T,U> or(java.util.function.BiPredicate<? super T,? super U>);
- method public boolean test(T, U);
- }
-
- @java.lang.FunctionalInterface public interface BinaryOperator<T> extends java.util.function.BiFunction<T,T,T> {
- method public static <T> java.util.function.BinaryOperator<T> maxBy(java.util.Comparator<? super T>);
- method public static <T> java.util.function.BinaryOperator<T> minBy(java.util.Comparator<? super T>);
- }
-
- @java.lang.FunctionalInterface public interface BooleanSupplier {
- method public boolean getAsBoolean();
- }
-
- @java.lang.FunctionalInterface public interface Consumer<T> {
- method public void accept(T);
- method public default java.util.function.Consumer<T> andThen(java.util.function.Consumer<? super T>);
- }
-
- @java.lang.FunctionalInterface public interface DoubleBinaryOperator {
- method public double applyAsDouble(double, double);
- }
-
- @java.lang.FunctionalInterface public interface DoubleConsumer {
- method public void accept(double);
- method public default java.util.function.DoubleConsumer andThen(java.util.function.DoubleConsumer);
- }
-
- @java.lang.FunctionalInterface public interface DoubleFunction<R> {
- method public R apply(double);
- }
-
- @java.lang.FunctionalInterface public interface DoublePredicate {
- method public default java.util.function.DoublePredicate and(java.util.function.DoublePredicate);
- method public default java.util.function.DoublePredicate negate();
- method public default java.util.function.DoublePredicate or(java.util.function.DoublePredicate);
- method public boolean test(double);
- }
-
- @java.lang.FunctionalInterface public interface DoubleSupplier {
- method public double getAsDouble();
- }
-
- @java.lang.FunctionalInterface public interface DoubleToIntFunction {
- method public int applyAsInt(double);
- }
-
- @java.lang.FunctionalInterface public interface DoubleToLongFunction {
- method public long applyAsLong(double);
- }
-
- @java.lang.FunctionalInterface public interface DoubleUnaryOperator {
- method public default java.util.function.DoubleUnaryOperator andThen(java.util.function.DoubleUnaryOperator);
- method public double applyAsDouble(double);
- method public default java.util.function.DoubleUnaryOperator compose(java.util.function.DoubleUnaryOperator);
- method public static java.util.function.DoubleUnaryOperator identity();
- }
-
- @java.lang.FunctionalInterface public interface Function<T, R> {
- method public default <V> java.util.function.Function<T,V> andThen(java.util.function.Function<? super R,? extends V>);
- method public R apply(T);
- method public default <V> java.util.function.Function<V,R> compose(java.util.function.Function<? super V,? extends T>);
- method public static <T> java.util.function.Function<T,T> identity();
- }
-
- @java.lang.FunctionalInterface public interface IntBinaryOperator {
- method public int applyAsInt(int, int);
- }
-
- @java.lang.FunctionalInterface public interface IntConsumer {
- method public void accept(int);
- method public default java.util.function.IntConsumer andThen(java.util.function.IntConsumer);
- }
-
- @java.lang.FunctionalInterface public interface IntFunction<R> {
- method public R apply(int);
- }
-
- @java.lang.FunctionalInterface public interface IntPredicate {
- method public default java.util.function.IntPredicate and(java.util.function.IntPredicate);
- method public default java.util.function.IntPredicate negate();
- method public default java.util.function.IntPredicate or(java.util.function.IntPredicate);
- method public boolean test(int);
- }
-
- @java.lang.FunctionalInterface public interface IntSupplier {
- method public int getAsInt();
- }
-
- @java.lang.FunctionalInterface public interface IntToDoubleFunction {
- method public double applyAsDouble(int);
- }
-
- @java.lang.FunctionalInterface public interface IntToLongFunction {
- method public long applyAsLong(int);
- }
-
- @java.lang.FunctionalInterface public interface IntUnaryOperator {
- method public default java.util.function.IntUnaryOperator andThen(java.util.function.IntUnaryOperator);
- method public int applyAsInt(int);
- method public default java.util.function.IntUnaryOperator compose(java.util.function.IntUnaryOperator);
- method public static java.util.function.IntUnaryOperator identity();
- }
-
- @java.lang.FunctionalInterface public interface LongBinaryOperator {
- method public long applyAsLong(long, long);
- }
-
- @java.lang.FunctionalInterface public interface LongConsumer {
- method public void accept(long);
- method public default java.util.function.LongConsumer andThen(java.util.function.LongConsumer);
- }
-
- @java.lang.FunctionalInterface public interface LongFunction<R> {
- method public R apply(long);
- }
-
- @java.lang.FunctionalInterface public interface LongPredicate {
- method public default java.util.function.LongPredicate and(java.util.function.LongPredicate);
- method public default java.util.function.LongPredicate negate();
- method public default java.util.function.LongPredicate or(java.util.function.LongPredicate);
- method public boolean test(long);
- }
-
- @java.lang.FunctionalInterface public interface LongSupplier {
- method public long getAsLong();
- }
-
- @java.lang.FunctionalInterface public interface LongToDoubleFunction {
- method public double applyAsDouble(long);
- }
-
- @java.lang.FunctionalInterface public interface LongToIntFunction {
- method public int applyAsInt(long);
- }
-
- @java.lang.FunctionalInterface public interface LongUnaryOperator {
- method public default java.util.function.LongUnaryOperator andThen(java.util.function.LongUnaryOperator);
- method public long applyAsLong(long);
- method public default java.util.function.LongUnaryOperator compose(java.util.function.LongUnaryOperator);
- method public static java.util.function.LongUnaryOperator identity();
- }
-
- @java.lang.FunctionalInterface public interface ObjDoubleConsumer<T> {
- method public void accept(T, double);
- }
-
- @java.lang.FunctionalInterface public interface ObjIntConsumer<T> {
- method public void accept(T, int);
- }
-
- @java.lang.FunctionalInterface public interface ObjLongConsumer<T> {
- method public void accept(T, long);
- }
-
- @java.lang.FunctionalInterface public interface Predicate<T> {
- method public default java.util.function.Predicate<T> and(java.util.function.Predicate<? super T>);
- method public static <T> java.util.function.Predicate<T> isEqual(Object);
- method public default java.util.function.Predicate<T> negate();
- method public default java.util.function.Predicate<T> or(java.util.function.Predicate<? super T>);
- method public boolean test(T);
- }
-
- @java.lang.FunctionalInterface public interface Supplier<T> {
- method public T get();
- }
-
- @java.lang.FunctionalInterface public interface ToDoubleBiFunction<T, U> {
- method public double applyAsDouble(T, U);
- }
-
- @java.lang.FunctionalInterface public interface ToDoubleFunction<T> {
- method public double applyAsDouble(T);
- }
-
- @java.lang.FunctionalInterface public interface ToIntBiFunction<T, U> {
- method public int applyAsInt(T, U);
- }
-
- @java.lang.FunctionalInterface public interface ToIntFunction<T> {
- method public int applyAsInt(T);
- }
-
- @java.lang.FunctionalInterface public interface ToLongBiFunction<T, U> {
- method public long applyAsLong(T, U);
- }
-
- @java.lang.FunctionalInterface public interface ToLongFunction<T> {
- method public long applyAsLong(T);
- }
-
- @java.lang.FunctionalInterface public interface UnaryOperator<T> extends java.util.function.Function<T,T> {
- method public static <T> java.util.function.UnaryOperator<T> identity();
- }
-
-}
-
-package java.util.jar {
-
- public class Attributes implements java.lang.Cloneable java.util.Map<java.lang.Object,java.lang.Object> {
- ctor public Attributes();
- ctor public Attributes(int);
- ctor public Attributes(java.util.jar.Attributes);
- method public void clear();
- method public Object clone();
- method public boolean containsKey(Object);
- method public boolean containsValue(Object);
- method public java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> entrySet();
- method public Object get(Object);
- method public String getValue(String);
- method public String getValue(java.util.jar.Attributes.Name);
- method public boolean isEmpty();
- method public java.util.Set<java.lang.Object> keySet();
- method public Object put(Object, Object);
- method public void putAll(java.util.Map<?,?>);
- method public String putValue(String, String);
- method public Object remove(Object);
- method public int size();
- method public java.util.Collection<java.lang.Object> values();
- field protected java.util.Map<java.lang.Object,java.lang.Object> map;
- }
-
- public static class Attributes.Name {
- ctor public Attributes.Name(String);
- field public static final java.util.jar.Attributes.Name CLASS_PATH;
- field public static final java.util.jar.Attributes.Name CONTENT_TYPE;
- field @Deprecated public static final java.util.jar.Attributes.Name EXTENSION_INSTALLATION;
- field public static final java.util.jar.Attributes.Name EXTENSION_LIST;
- field public static final java.util.jar.Attributes.Name EXTENSION_NAME;
- field public static final java.util.jar.Attributes.Name IMPLEMENTATION_TITLE;
- field @Deprecated public static final java.util.jar.Attributes.Name IMPLEMENTATION_URL;
- field public static final java.util.jar.Attributes.Name IMPLEMENTATION_VENDOR;
- field @Deprecated public static final java.util.jar.Attributes.Name IMPLEMENTATION_VENDOR_ID;
- field public static final java.util.jar.Attributes.Name IMPLEMENTATION_VERSION;
- field public static final java.util.jar.Attributes.Name MAIN_CLASS;
- field public static final java.util.jar.Attributes.Name MANIFEST_VERSION;
- field public static final java.util.jar.Attributes.Name SEALED;
- field public static final java.util.jar.Attributes.Name SIGNATURE_VERSION;
- field public static final java.util.jar.Attributes.Name SPECIFICATION_TITLE;
- field public static final java.util.jar.Attributes.Name SPECIFICATION_VENDOR;
- field public static final java.util.jar.Attributes.Name SPECIFICATION_VERSION;
- }
-
- public class JarEntry extends java.util.zip.ZipEntry {
- ctor public JarEntry(String);
- ctor public JarEntry(java.util.zip.ZipEntry);
- ctor public JarEntry(java.util.jar.JarEntry);
- method public java.util.jar.Attributes getAttributes() throws java.io.IOException;
- method public java.security.cert.Certificate[] getCertificates();
- method public java.security.CodeSigner[] getCodeSigners();
- field public static final int CENATT = 36; // 0x24
- field public static final int CENATX = 38; // 0x26
- field public static final int CENCOM = 32; // 0x20
- field public static final int CENCRC = 16; // 0x10
- field public static final int CENDSK = 34; // 0x22
- field public static final int CENEXT = 30; // 0x1e
- field public static final int CENFLG = 8; // 0x8
- field public static final int CENHDR = 46; // 0x2e
- field public static final int CENHOW = 10; // 0xa
- field public static final int CENLEN = 24; // 0x18
- field public static final int CENNAM = 28; // 0x1c
- field public static final int CENOFF = 42; // 0x2a
- field public static final long CENSIG = 33639248L; // 0x2014b50L
- field public static final int CENSIZ = 20; // 0x14
- field public static final int CENTIM = 12; // 0xc
- field public static final int CENVEM = 4; // 0x4
- field public static final int CENVER = 6; // 0x6
- field public static final int ENDCOM = 20; // 0x14
- field public static final int ENDHDR = 22; // 0x16
- field public static final int ENDOFF = 16; // 0x10
- field public static final long ENDSIG = 101010256L; // 0x6054b50L
- field public static final int ENDSIZ = 12; // 0xc
- field public static final int ENDSUB = 8; // 0x8
- field public static final int ENDTOT = 10; // 0xa
- field public static final int EXTCRC = 4; // 0x4
- field public static final int EXTHDR = 16; // 0x10
- field public static final int EXTLEN = 12; // 0xc
- field public static final long EXTSIG = 134695760L; // 0x8074b50L
- field public static final int EXTSIZ = 8; // 0x8
- field public static final int LOCCRC = 14; // 0xe
- field public static final int LOCEXT = 28; // 0x1c
- field public static final int LOCFLG = 6; // 0x6
- field public static final int LOCHDR = 30; // 0x1e
- field public static final int LOCHOW = 8; // 0x8
- field public static final int LOCLEN = 22; // 0x16
- field public static final int LOCNAM = 26; // 0x1a
- field public static final long LOCSIG = 67324752L; // 0x4034b50L
- field public static final int LOCSIZ = 18; // 0x12
- field public static final int LOCTIM = 10; // 0xa
- field public static final int LOCVER = 4; // 0x4
- }
-
- public class JarException extends java.util.zip.ZipException {
- ctor public JarException();
- ctor public JarException(String);
- }
-
- public class JarFile extends java.util.zip.ZipFile {
- ctor public JarFile(String) throws java.io.IOException;
- ctor public JarFile(String, boolean) throws java.io.IOException;
- ctor public JarFile(java.io.File) throws java.io.IOException;
- ctor public JarFile(java.io.File, boolean) throws java.io.IOException;
- ctor public JarFile(java.io.File, boolean, int) throws java.io.IOException;
- method public java.util.Enumeration<java.util.jar.JarEntry> entries();
- method public java.util.jar.JarEntry getJarEntry(String);
- method public java.util.jar.Manifest getManifest() throws java.io.IOException;
- method public java.util.stream.Stream<java.util.jar.JarEntry> stream();
- field public static final int CENATT = 36; // 0x24
- field public static final int CENATX = 38; // 0x26
- field public static final int CENCOM = 32; // 0x20
- field public static final int CENCRC = 16; // 0x10
- field public static final int CENDSK = 34; // 0x22
- field public static final int CENEXT = 30; // 0x1e
- field public static final int CENFLG = 8; // 0x8
- field public static final int CENHDR = 46; // 0x2e
- field public static final int CENHOW = 10; // 0xa
- field public static final int CENLEN = 24; // 0x18
- field public static final int CENNAM = 28; // 0x1c
- field public static final int CENOFF = 42; // 0x2a
- field public static final long CENSIG = 33639248L; // 0x2014b50L
- field public static final int CENSIZ = 20; // 0x14
- field public static final int CENTIM = 12; // 0xc
- field public static final int CENVEM = 4; // 0x4
- field public static final int CENVER = 6; // 0x6
- field public static final int ENDCOM = 20; // 0x14
- field public static final int ENDHDR = 22; // 0x16
- field public static final int ENDOFF = 16; // 0x10
- field public static final long ENDSIG = 101010256L; // 0x6054b50L
- field public static final int ENDSIZ = 12; // 0xc
- field public static final int ENDSUB = 8; // 0x8
- field public static final int ENDTOT = 10; // 0xa
- field public static final int EXTCRC = 4; // 0x4
- field public static final int EXTHDR = 16; // 0x10
- field public static final int EXTLEN = 12; // 0xc
- field public static final long EXTSIG = 134695760L; // 0x8074b50L
- field public static final int EXTSIZ = 8; // 0x8
- field public static final int LOCCRC = 14; // 0xe
- field public static final int LOCEXT = 28; // 0x1c
- field public static final int LOCFLG = 6; // 0x6
- field public static final int LOCHDR = 30; // 0x1e
- field public static final int LOCHOW = 8; // 0x8
- field public static final int LOCLEN = 22; // 0x16
- field public static final int LOCNAM = 26; // 0x1a
- field public static final long LOCSIG = 67324752L; // 0x4034b50L
- field public static final int LOCSIZ = 18; // 0x12
- field public static final int LOCTIM = 10; // 0xa
- field public static final int LOCVER = 4; // 0x4
- field public static final String MANIFEST_NAME = "META-INF/MANIFEST.MF";
- }
-
- public class JarInputStream extends java.util.zip.ZipInputStream {
- ctor public JarInputStream(java.io.InputStream) throws java.io.IOException;
- ctor public JarInputStream(java.io.InputStream, boolean) throws java.io.IOException;
- method public java.util.jar.Manifest getManifest();
- method public java.util.jar.JarEntry getNextJarEntry() throws java.io.IOException;
- field public static final int CENATT = 36; // 0x24
- field public static final int CENATX = 38; // 0x26
- field public static final int CENCOM = 32; // 0x20
- field public static final int CENCRC = 16; // 0x10
- field public static final int CENDSK = 34; // 0x22
- field public static final int CENEXT = 30; // 0x1e
- field public static final int CENFLG = 8; // 0x8
- field public static final int CENHDR = 46; // 0x2e
- field public static final int CENHOW = 10; // 0xa
- field public static final int CENLEN = 24; // 0x18
- field public static final int CENNAM = 28; // 0x1c
- field public static final int CENOFF = 42; // 0x2a
- field public static final long CENSIG = 33639248L; // 0x2014b50L
- field public static final int CENSIZ = 20; // 0x14
- field public static final int CENTIM = 12; // 0xc
- field public static final int CENVEM = 4; // 0x4
- field public static final int CENVER = 6; // 0x6
- field public static final int ENDCOM = 20; // 0x14
- field public static final int ENDHDR = 22; // 0x16
- field public static final int ENDOFF = 16; // 0x10
- field public static final long ENDSIG = 101010256L; // 0x6054b50L
- field public static final int ENDSIZ = 12; // 0xc
- field public static final int ENDSUB = 8; // 0x8
- field public static final int ENDTOT = 10; // 0xa
- field public static final int EXTCRC = 4; // 0x4
- field public static final int EXTHDR = 16; // 0x10
- field public static final int EXTLEN = 12; // 0xc
- field public static final long EXTSIG = 134695760L; // 0x8074b50L
- field public static final int EXTSIZ = 8; // 0x8
- field public static final int LOCCRC = 14; // 0xe
- field public static final int LOCEXT = 28; // 0x1c
- field public static final int LOCFLG = 6; // 0x6
- field public static final int LOCHDR = 30; // 0x1e
- field public static final int LOCHOW = 8; // 0x8
- field public static final int LOCLEN = 22; // 0x16
- field public static final int LOCNAM = 26; // 0x1a
- field public static final long LOCSIG = 67324752L; // 0x4034b50L
- field public static final int LOCSIZ = 18; // 0x12
- field public static final int LOCTIM = 10; // 0xa
- field public static final int LOCVER = 4; // 0x4
- }
-
- public class JarOutputStream extends java.util.zip.ZipOutputStream {
- ctor public JarOutputStream(java.io.OutputStream, java.util.jar.Manifest) throws java.io.IOException;
- ctor public JarOutputStream(java.io.OutputStream) throws java.io.IOException;
- field public static final int CENATT = 36; // 0x24
- field public static final int CENATX = 38; // 0x26
- field public static final int CENCOM = 32; // 0x20
- field public static final int CENCRC = 16; // 0x10
- field public static final int CENDSK = 34; // 0x22
- field public static final int CENEXT = 30; // 0x1e
- field public static final int CENFLG = 8; // 0x8
- field public static final int CENHDR = 46; // 0x2e
- field public static final int CENHOW = 10; // 0xa
- field public static final int CENLEN = 24; // 0x18
- field public static final int CENNAM = 28; // 0x1c
- field public static final int CENOFF = 42; // 0x2a
- field public static final long CENSIG = 33639248L; // 0x2014b50L
- field public static final int CENSIZ = 20; // 0x14
- field public static final int CENTIM = 12; // 0xc
- field public static final int CENVEM = 4; // 0x4
- field public static final int CENVER = 6; // 0x6
- field public static final int ENDCOM = 20; // 0x14
- field public static final int ENDHDR = 22; // 0x16
- field public static final int ENDOFF = 16; // 0x10
- field public static final long ENDSIG = 101010256L; // 0x6054b50L
- field public static final int ENDSIZ = 12; // 0xc
- field public static final int ENDSUB = 8; // 0x8
- field public static final int ENDTOT = 10; // 0xa
- field public static final int EXTCRC = 4; // 0x4
- field public static final int EXTHDR = 16; // 0x10
- field public static final int EXTLEN = 12; // 0xc
- field public static final long EXTSIG = 134695760L; // 0x8074b50L
- field public static final int EXTSIZ = 8; // 0x8
- field public static final int LOCCRC = 14; // 0xe
- field public static final int LOCEXT = 28; // 0x1c
- field public static final int LOCFLG = 6; // 0x6
- field public static final int LOCHDR = 30; // 0x1e
- field public static final int LOCHOW = 8; // 0x8
- field public static final int LOCLEN = 22; // 0x16
- field public static final int LOCNAM = 26; // 0x1a
- field public static final long LOCSIG = 67324752L; // 0x4034b50L
- field public static final int LOCSIZ = 18; // 0x12
- field public static final int LOCTIM = 10; // 0xa
- field public static final int LOCVER = 4; // 0x4
- }
-
- public class Manifest implements java.lang.Cloneable {
- ctor public Manifest();
- ctor public Manifest(java.io.InputStream) throws java.io.IOException;
- ctor public Manifest(java.util.jar.Manifest);
- method public void clear();
- method public Object clone();
- method public java.util.jar.Attributes getAttributes(String);
- method public java.util.Map<java.lang.String,java.util.jar.Attributes> getEntries();
- method public java.util.jar.Attributes getMainAttributes();
- method public void read(java.io.InputStream) throws java.io.IOException;
- method public void write(java.io.OutputStream) throws java.io.IOException;
- }
-
- public abstract class Pack200 {
- method public static java.util.jar.Pack200.Packer newPacker();
- method public static java.util.jar.Pack200.Unpacker newUnpacker();
- }
-
- public static interface Pack200.Packer {
- method @Deprecated public default void addPropertyChangeListener(java.beans.PropertyChangeListener);
- method public void pack(java.util.jar.JarFile, java.io.OutputStream) throws java.io.IOException;
- method public void pack(java.util.jar.JarInputStream, java.io.OutputStream) throws java.io.IOException;
- method public java.util.SortedMap<java.lang.String,java.lang.String> properties();
- method @Deprecated public default void removePropertyChangeListener(java.beans.PropertyChangeListener);
- field public static final String CLASS_ATTRIBUTE_PFX = "pack.class.attribute.";
- field public static final String CODE_ATTRIBUTE_PFX = "pack.code.attribute.";
- field public static final String DEFLATE_HINT = "pack.deflate.hint";
- field public static final String EFFORT = "pack.effort";
- field public static final String ERROR = "error";
- field public static final String FALSE = "false";
- field public static final String FIELD_ATTRIBUTE_PFX = "pack.field.attribute.";
- field public static final String KEEP = "keep";
- field public static final String KEEP_FILE_ORDER = "pack.keep.file.order";
- field public static final String LATEST = "latest";
- field public static final String METHOD_ATTRIBUTE_PFX = "pack.method.attribute.";
- field public static final String MODIFICATION_TIME = "pack.modification.time";
- field public static final String PASS = "pass";
- field public static final String PASS_FILE_PFX = "pack.pass.file.";
- field public static final String PROGRESS = "pack.progress";
- field public static final String SEGMENT_LIMIT = "pack.segment.limit";
- field public static final String STRIP = "strip";
- field public static final String TRUE = "true";
- field public static final String UNKNOWN_ATTRIBUTE = "pack.unknown.attribute";
- }
-
- public static interface Pack200.Unpacker {
- method @Deprecated public default void addPropertyChangeListener(java.beans.PropertyChangeListener);
- method public java.util.SortedMap<java.lang.String,java.lang.String> properties();
- method @Deprecated public default void removePropertyChangeListener(java.beans.PropertyChangeListener);
- method public void unpack(java.io.InputStream, java.util.jar.JarOutputStream) throws java.io.IOException;
- method public void unpack(java.io.File, java.util.jar.JarOutputStream) throws java.io.IOException;
- field public static final String DEFLATE_HINT = "unpack.deflate.hint";
- field public static final String FALSE = "false";
- field public static final String KEEP = "keep";
- field public static final String PROGRESS = "unpack.progress";
- field public static final String TRUE = "true";
- }
-
-}
-
-package java.util.logging {
-
- public class ConsoleHandler extends java.util.logging.StreamHandler {
- ctor public ConsoleHandler();
- method public void close();
- }
-
- public class ErrorManager {
- ctor public ErrorManager();
- method public void error(String, Exception, int);
- field public static final int CLOSE_FAILURE = 3; // 0x3
- field public static final int FLUSH_FAILURE = 2; // 0x2
- field public static final int FORMAT_FAILURE = 5; // 0x5
- field public static final int GENERIC_FAILURE = 0; // 0x0
- field public static final int OPEN_FAILURE = 4; // 0x4
- field public static final int WRITE_FAILURE = 1; // 0x1
- }
-
- public class FileHandler extends java.util.logging.StreamHandler {
- ctor public FileHandler() throws java.io.IOException, java.lang.SecurityException;
- ctor public FileHandler(String) throws java.io.IOException, java.lang.SecurityException;
- ctor public FileHandler(String, boolean) throws java.io.IOException, java.lang.SecurityException;
- ctor public FileHandler(String, int, int) throws java.io.IOException, java.lang.SecurityException;
- ctor public FileHandler(String, int, int, boolean) throws java.io.IOException, java.lang.SecurityException;
- }
-
- @java.lang.FunctionalInterface public interface Filter {
- method public boolean isLoggable(java.util.logging.LogRecord);
- }
-
- public abstract class Formatter {
- ctor protected Formatter();
- method public abstract String format(java.util.logging.LogRecord);
- method public String formatMessage(java.util.logging.LogRecord);
- method public String getHead(java.util.logging.Handler);
- method public String getTail(java.util.logging.Handler);
- }
-
- public abstract class Handler {
- ctor protected Handler();
- method public abstract void close() throws java.lang.SecurityException;
- method public abstract void flush();
- method public String getEncoding();
- method public java.util.logging.ErrorManager getErrorManager();
- method public java.util.logging.Filter getFilter();
- method public java.util.logging.Formatter getFormatter();
- method public java.util.logging.Level getLevel();
- method public boolean isLoggable(java.util.logging.LogRecord);
- method public abstract void publish(java.util.logging.LogRecord);
- method protected void reportError(String, Exception, int);
- method public void setEncoding(String) throws java.lang.SecurityException, java.io.UnsupportedEncodingException;
- method public void setErrorManager(java.util.logging.ErrorManager);
- method public void setFilter(java.util.logging.Filter) throws java.lang.SecurityException;
- method public void setFormatter(java.util.logging.Formatter) throws java.lang.SecurityException;
- method public void setLevel(java.util.logging.Level) throws java.lang.SecurityException;
- }
-
- public class Level implements java.io.Serializable {
- ctor protected Level(@NonNull String, int);
- ctor protected Level(@NonNull String, int, @Nullable String);
- method @NonNull public String getLocalizedName();
- method @NonNull public String getName();
- method @Nullable public String getResourceBundleName();
- method public final int intValue();
- method @NonNull public static java.util.logging.Level parse(@NonNull String) throws java.lang.IllegalArgumentException;
- method @NonNull public final String toString();
- field @NonNull public static final java.util.logging.Level ALL;
- field @NonNull public static final java.util.logging.Level CONFIG;
- field @NonNull public static final java.util.logging.Level FINE;
- field @NonNull public static final java.util.logging.Level FINER;
- field @NonNull public static final java.util.logging.Level FINEST;
- field @NonNull public static final java.util.logging.Level INFO;
- field @NonNull public static final java.util.logging.Level OFF;
- field @NonNull public static final java.util.logging.Level SEVERE;
- field @NonNull public static final java.util.logging.Level WARNING;
- }
-
- public class LogManager {
- ctor protected LogManager();
- method public boolean addLogger(java.util.logging.Logger);
- method @Deprecated public void addPropertyChangeListener(java.beans.PropertyChangeListener) throws java.lang.SecurityException;
- method public void checkAccess() throws java.lang.SecurityException;
- method public static java.util.logging.LogManager getLogManager();
- method public java.util.logging.Logger getLogger(String);
- method public java.util.Enumeration<java.lang.String> getLoggerNames();
- method public static java.util.logging.LoggingMXBean getLoggingMXBean();
- method public String getProperty(String);
- method public void readConfiguration() throws java.io.IOException, java.lang.SecurityException;
- method public void readConfiguration(java.io.InputStream) throws java.io.IOException, java.lang.SecurityException;
- method @Deprecated public void removePropertyChangeListener(java.beans.PropertyChangeListener) throws java.lang.SecurityException;
- method public void reset() throws java.lang.SecurityException;
- field public static final String LOGGING_MXBEAN_NAME = "java.util.logging:type=Logging";
- }
-
- public class LogRecord implements java.io.Serializable {
- ctor public LogRecord(java.util.logging.Level, String);
- method public java.util.logging.Level getLevel();
- method public String getLoggerName();
- method public String getMessage();
- method public long getMillis();
- method public Object[] getParameters();
- method public java.util.ResourceBundle getResourceBundle();
- method public String getResourceBundleName();
- method public long getSequenceNumber();
- method public String getSourceClassName();
- method public String getSourceMethodName();
- method public int getThreadID();
- method public Throwable getThrown();
- method public void setLevel(java.util.logging.Level);
- method public void setLoggerName(String);
- method public void setMessage(String);
- method public void setMillis(long);
- method public void setParameters(Object[]);
- method public void setResourceBundle(java.util.ResourceBundle);
- method public void setResourceBundleName(String);
- method public void setSequenceNumber(long);
- method public void setSourceClassName(String);
- method public void setSourceMethodName(String);
- method public void setThreadID(int);
- method public void setThrown(Throwable);
- }
-
- public class Logger {
- ctor protected Logger(@Nullable String, @Nullable String);
- method public void addHandler(@NonNull java.util.logging.Handler) throws java.lang.SecurityException;
- method public void config(@Nullable String);
- method public void config(@NonNull java.util.function.Supplier<java.lang.String>);
- method public void entering(@Nullable String, @Nullable String);
- method public void entering(@Nullable String, @Nullable String, @Nullable Object);
- method public void entering(@Nullable String, @Nullable String, @Nullable Object[]);
- method public void exiting(@Nullable String, @Nullable String);
- method public void exiting(@Nullable String, @Nullable String, @Nullable Object);
- method public void fine(@Nullable String);
- method public void fine(@NonNull java.util.function.Supplier<java.lang.String>);
- method public void finer(@Nullable String);
- method public void finer(@NonNull java.util.function.Supplier<java.lang.String>);
- method public void finest(@Nullable String);
- method public void finest(@NonNull java.util.function.Supplier<java.lang.String>);
- method @NonNull public static java.util.logging.Logger getAnonymousLogger();
- method @NonNull public static java.util.logging.Logger getAnonymousLogger(@Nullable String);
- method @Nullable public java.util.logging.Filter getFilter();
- method @NonNull public static final java.util.logging.Logger getGlobal();
- method @NonNull public java.util.logging.Handler[] getHandlers();
- method @Nullable public java.util.logging.Level getLevel();
- method @NonNull public static java.util.logging.Logger getLogger(@NonNull String);
- method @NonNull public static java.util.logging.Logger getLogger(@NonNull String, @Nullable String);
- method @Nullable public String getName();
- method @Nullable public java.util.logging.Logger getParent();
- method @Nullable public java.util.ResourceBundle getResourceBundle();
- method @Nullable public String getResourceBundleName();
- method public boolean getUseParentHandlers();
- method public void info(@Nullable String);
- method public void info(@NonNull java.util.function.Supplier<java.lang.String>);
- method public boolean isLoggable(@NonNull java.util.logging.Level);
- method public void log(@NonNull java.util.logging.LogRecord);
- method public void log(@NonNull java.util.logging.Level, @Nullable String);
- method public void log(@NonNull java.util.logging.Level, @NonNull java.util.function.Supplier<java.lang.String>);
- method public void log(@NonNull java.util.logging.Level, @Nullable String, @Nullable Object);
- method public void log(@NonNull java.util.logging.Level, @Nullable String, @Nullable Object[]);
- method public void log(@NonNull java.util.logging.Level, @Nullable String, @Nullable Throwable);
- method public void log(@NonNull java.util.logging.Level, @Nullable Throwable, @NonNull java.util.function.Supplier<java.lang.String>);
- method public void logp(@NonNull java.util.logging.Level, @Nullable String, @Nullable String, @Nullable String);
- method public void logp(@NonNull java.util.logging.Level, @Nullable String, @Nullable String, @NonNull java.util.function.Supplier<java.lang.String>);
- method public void logp(@NonNull java.util.logging.Level, @Nullable String, @Nullable String, @Nullable String, @Nullable Object);
- method public void logp(@NonNull java.util.logging.Level, @Nullable String, @Nullable String, @Nullable String, @Nullable Object[]);
- method public void logp(@NonNull java.util.logging.Level, @Nullable String, @Nullable String, @Nullable String, @Nullable Throwable);
- method public void logp(@NonNull java.util.logging.Level, @Nullable String, @Nullable String, @Nullable Throwable, @NonNull java.util.function.Supplier<java.lang.String>);
- method @Deprecated public void logrb(@NonNull java.util.logging.Level, @Nullable String, @Nullable String, @Nullable String, @Nullable String);
- method @Deprecated public void logrb(@NonNull java.util.logging.Level, @Nullable String, @Nullable String, @Nullable String, @Nullable String, @Nullable Object);
- method @Deprecated public void logrb(@NonNull java.util.logging.Level, @Nullable String, @Nullable String, @Nullable String, @Nullable String, @Nullable Object[]);
- method public void logrb(@NonNull java.util.logging.Level, @Nullable String, @Nullable String, @Nullable java.util.ResourceBundle, @Nullable String, @Nullable java.lang.Object...);
- method @Deprecated public void logrb(@NonNull java.util.logging.Level, @Nullable String, @Nullable String, @Nullable String, @Nullable String, @Nullable Throwable);
- method public void logrb(@NonNull java.util.logging.Level, @Nullable String, @Nullable String, @Nullable java.util.ResourceBundle, @Nullable String, @Nullable Throwable);
- method public void removeHandler(@Nullable java.util.logging.Handler) throws java.lang.SecurityException;
- method public void setFilter(@Nullable java.util.logging.Filter) throws java.lang.SecurityException;
- method public void setLevel(@Nullable java.util.logging.Level) throws java.lang.SecurityException;
- method public void setParent(@NonNull java.util.logging.Logger);
- method public void setResourceBundle(@NonNull java.util.ResourceBundle);
- method public void setUseParentHandlers(boolean);
- method public void severe(@Nullable String);
- method public void severe(@NonNull java.util.function.Supplier<java.lang.String>);
- method public void throwing(@Nullable String, @Nullable String, @Nullable Throwable);
- method public void warning(@Nullable String);
- method public void warning(@NonNull java.util.function.Supplier<java.lang.String>);
- field @NonNull public static final String GLOBAL_LOGGER_NAME = "global";
- field @Deprecated @NonNull public static final java.util.logging.Logger global;
- }
-
- public interface LoggingMXBean {
- method public String getLoggerLevel(String);
- method public java.util.List<java.lang.String> getLoggerNames();
- method public String getParentLoggerName(String);
- method public void setLoggerLevel(String, String);
- }
-
- public final class LoggingPermission extends java.security.BasicPermission {
- ctor public LoggingPermission(String, String) throws java.lang.IllegalArgumentException;
- }
-
- public class MemoryHandler extends java.util.logging.Handler {
- ctor public MemoryHandler();
- ctor public MemoryHandler(java.util.logging.Handler, int, java.util.logging.Level);
- method public void close() throws java.lang.SecurityException;
- method public void flush();
- method public java.util.logging.Level getPushLevel();
- method public void publish(java.util.logging.LogRecord);
- method public void push();
- method public void setPushLevel(java.util.logging.Level) throws java.lang.SecurityException;
- }
-
- public class SimpleFormatter extends java.util.logging.Formatter {
- ctor public SimpleFormatter();
- method public String format(java.util.logging.LogRecord);
- }
-
- public class SocketHandler extends java.util.logging.StreamHandler {
- ctor public SocketHandler() throws java.io.IOException;
- ctor public SocketHandler(String, int) throws java.io.IOException;
- }
-
- public class StreamHandler extends java.util.logging.Handler {
- ctor public StreamHandler();
- ctor public StreamHandler(java.io.OutputStream, java.util.logging.Formatter);
- method public void close() throws java.lang.SecurityException;
- method public void flush();
- method public void publish(java.util.logging.LogRecord);
- method protected void setOutputStream(java.io.OutputStream) throws java.lang.SecurityException;
- }
-
- public class XMLFormatter extends java.util.logging.Formatter {
- ctor public XMLFormatter();
- method public String format(java.util.logging.LogRecord);
- }
-
-}
-
-package java.util.prefs {
-
- public abstract class AbstractPreferences extends java.util.prefs.Preferences {
- ctor protected AbstractPreferences(java.util.prefs.AbstractPreferences, String);
- method public String absolutePath();
- method public void addNodeChangeListener(java.util.prefs.NodeChangeListener);
- method public void addPreferenceChangeListener(java.util.prefs.PreferenceChangeListener);
- method protected final java.util.prefs.AbstractPreferences[] cachedChildren();
- method protected abstract java.util.prefs.AbstractPreferences childSpi(String);
- method public String[] childrenNames() throws java.util.prefs.BackingStoreException;
- method protected abstract String[] childrenNamesSpi() throws java.util.prefs.BackingStoreException;
- method public void clear() throws java.util.prefs.BackingStoreException;
- method public void exportNode(java.io.OutputStream) throws java.util.prefs.BackingStoreException, java.io.IOException;
- method public void exportSubtree(java.io.OutputStream) throws java.util.prefs.BackingStoreException, java.io.IOException;
- method public void flush() throws java.util.prefs.BackingStoreException;
- method protected abstract void flushSpi() throws java.util.prefs.BackingStoreException;
- method public String get(String, String);
- method public boolean getBoolean(String, boolean);
- method public byte[] getByteArray(String, byte[]);
- method protected java.util.prefs.AbstractPreferences getChild(String) throws java.util.prefs.BackingStoreException;
- method public double getDouble(String, double);
- method public float getFloat(String, float);
- method public int getInt(String, int);
- method public long getLong(String, long);
- method protected abstract String getSpi(String);
- method protected boolean isRemoved();
- method public boolean isUserNode();
- method public String[] keys() throws java.util.prefs.BackingStoreException;
- method protected abstract String[] keysSpi() throws java.util.prefs.BackingStoreException;
- method public String name();
- method public java.util.prefs.Preferences node(String);
- method public boolean nodeExists(String) throws java.util.prefs.BackingStoreException;
- method public java.util.prefs.Preferences parent();
- method public void put(String, String);
- method public void putBoolean(String, boolean);
- method public void putByteArray(String, byte[]);
- method public void putDouble(String, double);
- method public void putFloat(String, float);
- method public void putInt(String, int);
- method public void putLong(String, long);
- method protected abstract void putSpi(String, String);
- method public void remove(String);
- method public void removeNode() throws java.util.prefs.BackingStoreException;
- method public void removeNodeChangeListener(java.util.prefs.NodeChangeListener);
- method protected abstract void removeNodeSpi() throws java.util.prefs.BackingStoreException;
- method public void removePreferenceChangeListener(java.util.prefs.PreferenceChangeListener);
- method protected abstract void removeSpi(String);
- method public void sync() throws java.util.prefs.BackingStoreException;
- method protected abstract void syncSpi() throws java.util.prefs.BackingStoreException;
- field protected final Object lock;
- field protected boolean newNode;
- }
-
- public class BackingStoreException extends java.lang.Exception {
- ctor public BackingStoreException(String);
- ctor public BackingStoreException(Throwable);
- }
-
- public class InvalidPreferencesFormatException extends java.lang.Exception {
- ctor public InvalidPreferencesFormatException(Throwable);
- ctor public InvalidPreferencesFormatException(String);
- ctor public InvalidPreferencesFormatException(String, Throwable);
- }
-
- public class NodeChangeEvent extends java.util.EventObject {
- ctor public NodeChangeEvent(java.util.prefs.Preferences, java.util.prefs.Preferences);
- method public java.util.prefs.Preferences getChild();
- method public java.util.prefs.Preferences getParent();
- }
-
- public interface NodeChangeListener extends java.util.EventListener {
- method public void childAdded(java.util.prefs.NodeChangeEvent);
- method public void childRemoved(java.util.prefs.NodeChangeEvent);
- }
-
- public class PreferenceChangeEvent extends java.util.EventObject {
- ctor public PreferenceChangeEvent(java.util.prefs.Preferences, String, String);
- method public String getKey();
- method public String getNewValue();
- method public java.util.prefs.Preferences getNode();
- }
-
- @java.lang.FunctionalInterface public interface PreferenceChangeListener extends java.util.EventListener {
- method public void preferenceChange(java.util.prefs.PreferenceChangeEvent);
- }
-
- public abstract class Preferences {
- ctor protected Preferences();
- method public abstract String absolutePath();
- method public abstract void addNodeChangeListener(java.util.prefs.NodeChangeListener);
- method public abstract void addPreferenceChangeListener(java.util.prefs.PreferenceChangeListener);
- method public abstract String[] childrenNames() throws java.util.prefs.BackingStoreException;
- method public abstract void clear() throws java.util.prefs.BackingStoreException;
- method public abstract void exportNode(java.io.OutputStream) throws java.util.prefs.BackingStoreException, java.io.IOException;
- method public abstract void exportSubtree(java.io.OutputStream) throws java.util.prefs.BackingStoreException, java.io.IOException;
- method public abstract void flush() throws java.util.prefs.BackingStoreException;
- method public abstract String get(String, String);
- method public abstract boolean getBoolean(String, boolean);
- method public abstract byte[] getByteArray(String, byte[]);
- method public abstract double getDouble(String, double);
- method public abstract float getFloat(String, float);
- method public abstract int getInt(String, int);
- method public abstract long getLong(String, long);
- method public static void importPreferences(java.io.InputStream) throws java.io.IOException, java.util.prefs.InvalidPreferencesFormatException;
- method public abstract boolean isUserNode();
- method public abstract String[] keys() throws java.util.prefs.BackingStoreException;
- method public abstract String name();
- method public abstract java.util.prefs.Preferences node(String);
- method public abstract boolean nodeExists(String) throws java.util.prefs.BackingStoreException;
- method public abstract java.util.prefs.Preferences parent();
- method public abstract void put(String, String);
- method public abstract void putBoolean(String, boolean);
- method public abstract void putByteArray(String, byte[]);
- method public abstract void putDouble(String, double);
- method public abstract void putFloat(String, float);
- method public abstract void putInt(String, int);
- method public abstract void putLong(String, long);
- method public abstract void remove(String);
- method public abstract void removeNode() throws java.util.prefs.BackingStoreException;
- method public abstract void removeNodeChangeListener(java.util.prefs.NodeChangeListener);
- method public abstract void removePreferenceChangeListener(java.util.prefs.PreferenceChangeListener);
- method public abstract void sync() throws java.util.prefs.BackingStoreException;
- method public static java.util.prefs.Preferences systemNodeForPackage(Class<?>);
- method public static java.util.prefs.Preferences systemRoot();
- method public abstract String toString();
- method public static java.util.prefs.Preferences userNodeForPackage(Class<?>);
- method public static java.util.prefs.Preferences userRoot();
- field public static final int MAX_KEY_LENGTH = 80; // 0x50
- field public static final int MAX_NAME_LENGTH = 80; // 0x50
- field public static final int MAX_VALUE_LENGTH = 8192; // 0x2000
- }
-
- public interface PreferencesFactory {
- method public java.util.prefs.Preferences systemRoot();
- method public java.util.prefs.Preferences userRoot();
- }
-
-}
-
-package java.util.regex {
-
- public interface MatchResult {
- method public int end();
- method public int end(int);
- method public String group();
- method public String group(int);
- method public int groupCount();
- method public int start();
- method public int start(int);
- }
-
- public final class Matcher implements java.util.regex.MatchResult {
- method @NonNull public java.util.regex.Matcher appendReplacement(@NonNull StringBuffer, @NonNull String);
- method @NonNull public StringBuffer appendTail(@NonNull StringBuffer);
- method public int end();
- method public int end(int);
- method public int end(@NonNull String);
- method public boolean find();
- method public boolean find(int);
- method @NonNull public String group();
- method @Nullable public String group(int);
- method @Nullable public String group(@NonNull String);
- method public int groupCount();
- method public boolean hasAnchoringBounds();
- method public boolean hasTransparentBounds();
- method public boolean hitEnd();
- method public boolean lookingAt();
- method public boolean matches();
- method @NonNull public java.util.regex.Pattern pattern();
- method @NonNull public static String quoteReplacement(@NonNull String);
- method @NonNull public java.util.regex.Matcher region(int, int);
- method public int regionEnd();
- method public int regionStart();
- method @NonNull public String replaceAll(@NonNull String);
- method @NonNull public String replaceFirst(@NonNull String);
- method public boolean requireEnd();
- method @NonNull public java.util.regex.Matcher reset();
- method @NonNull public java.util.regex.Matcher reset(@NonNull CharSequence);
- method public int start();
- method public int start(int);
- method public int start(@NonNull String);
- method @NonNull public java.util.regex.MatchResult toMatchResult();
- method @NonNull public java.util.regex.Matcher useAnchoringBounds(boolean);
- method @NonNull public java.util.regex.Matcher usePattern(@NonNull java.util.regex.Pattern);
- method @NonNull public java.util.regex.Matcher useTransparentBounds(boolean);
- }
-
- public final class Pattern implements java.io.Serializable {
- method @NonNull public java.util.function.Predicate<java.lang.String> asPredicate();
- method @NonNull public static java.util.regex.Pattern compile(@NonNull String);
- method @NonNull public static java.util.regex.Pattern compile(@NonNull String, int);
- method public int flags();
- method @NonNull public java.util.regex.Matcher matcher(@NonNull CharSequence);
- method public static boolean matches(@NonNull String, @NonNull CharSequence);
- method @NonNull public String pattern();
- method @NonNull public static String quote(@NonNull String);
- method @NonNull public String[] split(@NonNull CharSequence, int);
- method @NonNull public String[] split(@NonNull CharSequence);
- method @NonNull public java.util.stream.Stream<java.lang.String> splitAsStream(@NonNull CharSequence);
- field public static final int CANON_EQ = 128; // 0x80
- field public static final int CASE_INSENSITIVE = 2; // 0x2
- field public static final int COMMENTS = 4; // 0x4
- field public static final int DOTALL = 32; // 0x20
- field public static final int LITERAL = 16; // 0x10
- field public static final int MULTILINE = 8; // 0x8
- field public static final int UNICODE_CASE = 64; // 0x40
- field public static final int UNICODE_CHARACTER_CLASS = 256; // 0x100
- field public static final int UNIX_LINES = 1; // 0x1
- }
-
- public class PatternSyntaxException extends java.lang.IllegalArgumentException {
- ctor public PatternSyntaxException(String, String, int);
- method public String getDescription();
- method public int getIndex();
- method public String getPattern();
- }
-
-}
-
-package java.util.stream {
-
- public interface BaseStream<T, S extends java.util.stream.BaseStream<T, S>> extends java.lang.AutoCloseable {
- method public void close();
- method public boolean isParallel();
- method public java.util.Iterator<T> iterator();
- method public S onClose(Runnable);
- method public S parallel();
- method public S sequential();
- method public java.util.Spliterator<T> spliterator();
- method public S unordered();
- }
-
- public interface Collector<T, A, R> {
- method public java.util.function.BiConsumer<A,T> accumulator();
- method public java.util.Set<java.util.stream.Collector.Characteristics> characteristics();
- method public java.util.function.BinaryOperator<A> combiner();
- method public java.util.function.Function<A,R> finisher();
- method public static <T, R> java.util.stream.Collector<T,R,R> of(java.util.function.Supplier<R>, java.util.function.BiConsumer<R,T>, java.util.function.BinaryOperator<R>, java.util.stream.Collector.Characteristics...);
- method public static <T, A, R> java.util.stream.Collector<T,A,R> of(java.util.function.Supplier<A>, java.util.function.BiConsumer<A,T>, java.util.function.BinaryOperator<A>, java.util.function.Function<A,R>, java.util.stream.Collector.Characteristics...);
- method public java.util.function.Supplier<A> supplier();
- }
-
- public enum Collector.Characteristics {
- enum_constant public static final java.util.stream.Collector.Characteristics CONCURRENT;
- enum_constant public static final java.util.stream.Collector.Characteristics IDENTITY_FINISH;
- enum_constant public static final java.util.stream.Collector.Characteristics UNORDERED;
- }
-
- public final class Collectors {
- method public static <T> java.util.stream.Collector<T,?,java.lang.Double> averagingDouble(java.util.function.ToDoubleFunction<? super T>);
- method public static <T> java.util.stream.Collector<T,?,java.lang.Double> averagingInt(java.util.function.ToIntFunction<? super T>);
- method public static <T> java.util.stream.Collector<T,?,java.lang.Double> averagingLong(java.util.function.ToLongFunction<? super T>);
- method public static <T, A, R, RR> java.util.stream.Collector<T,A,RR> collectingAndThen(java.util.stream.Collector<T,A,R>, java.util.function.Function<R,RR>);
- method public static <T> java.util.stream.Collector<T,?,java.lang.Long> counting();
- method public static <T, K> java.util.stream.Collector<T,?,java.util.Map<K,java.util.List<T>>> groupingBy(java.util.function.Function<? super T,? extends K>);
- method public static <T, K, A, D> java.util.stream.Collector<T,?,java.util.Map<K,D>> groupingBy(java.util.function.Function<? super T,? extends K>, java.util.stream.Collector<? super T,A,D>);
- method public static <T, K, D, A, M extends java.util.Map<K, D>> java.util.stream.Collector<T,?,M> groupingBy(java.util.function.Function<? super T,? extends K>, java.util.function.Supplier<M>, java.util.stream.Collector<? super T,A,D>);
- method public static <T, K> java.util.stream.Collector<T,?,java.util.concurrent.ConcurrentMap<K,java.util.List<T>>> groupingByConcurrent(java.util.function.Function<? super T,? extends K>);
- method public static <T, K, A, D> java.util.stream.Collector<T,?,java.util.concurrent.ConcurrentMap<K,D>> groupingByConcurrent(java.util.function.Function<? super T,? extends K>, java.util.stream.Collector<? super T,A,D>);
- method public static <T, K, A, D, M extends java.util.concurrent.ConcurrentMap<K, D>> java.util.stream.Collector<T,?,M> groupingByConcurrent(java.util.function.Function<? super T,? extends K>, java.util.function.Supplier<M>, java.util.stream.Collector<? super T,A,D>);
- method public static java.util.stream.Collector<java.lang.CharSequence,?,java.lang.String> joining();
- method public static java.util.stream.Collector<java.lang.CharSequence,?,java.lang.String> joining(CharSequence);
- method public static java.util.stream.Collector<java.lang.CharSequence,?,java.lang.String> joining(CharSequence, CharSequence, CharSequence);
- method public static <T, U, A, R> java.util.stream.Collector<T,?,R> mapping(java.util.function.Function<? super T,? extends U>, java.util.stream.Collector<? super U,A,R>);
- method public static <T> java.util.stream.Collector<T,?,java.util.Optional<T>> maxBy(java.util.Comparator<? super T>);
- method public static <T> java.util.stream.Collector<T,?,java.util.Optional<T>> minBy(java.util.Comparator<? super T>);
- method public static <T> java.util.stream.Collector<T,?,java.util.Map<java.lang.Boolean,java.util.List<T>>> partitioningBy(java.util.function.Predicate<? super T>);
- method public static <T, D, A> java.util.stream.Collector<T,?,java.util.Map<java.lang.Boolean,D>> partitioningBy(java.util.function.Predicate<? super T>, java.util.stream.Collector<? super T,A,D>);
- method public static <T> java.util.stream.Collector<T,?,T> reducing(T, java.util.function.BinaryOperator<T>);
- method public static <T> java.util.stream.Collector<T,?,java.util.Optional<T>> reducing(java.util.function.BinaryOperator<T>);
- method public static <T, U> java.util.stream.Collector<T,?,U> reducing(U, java.util.function.Function<? super T,? extends U>, java.util.function.BinaryOperator<U>);
- method public static <T> java.util.stream.Collector<T,?,java.util.DoubleSummaryStatistics> summarizingDouble(java.util.function.ToDoubleFunction<? super T>);
- method public static <T> java.util.stream.Collector<T,?,java.util.IntSummaryStatistics> summarizingInt(java.util.function.ToIntFunction<? super T>);
- method public static <T> java.util.stream.Collector<T,?,java.util.LongSummaryStatistics> summarizingLong(java.util.function.ToLongFunction<? super T>);
- method public static <T> java.util.stream.Collector<T,?,java.lang.Double> summingDouble(java.util.function.ToDoubleFunction<? super T>);
- method public static <T> java.util.stream.Collector<T,?,java.lang.Integer> summingInt(java.util.function.ToIntFunction<? super T>);
- method public static <T> java.util.stream.Collector<T,?,java.lang.Long> summingLong(java.util.function.ToLongFunction<? super T>);
- method public static <T, C extends java.util.Collection<T>> java.util.stream.Collector<T,?,C> toCollection(java.util.function.Supplier<C>);
- method public static <T, K, U> java.util.stream.Collector<T,?,java.util.concurrent.ConcurrentMap<K,U>> toConcurrentMap(java.util.function.Function<? super T,? extends K>, java.util.function.Function<? super T,? extends U>);
- method public static <T, K, U> java.util.stream.Collector<T,?,java.util.concurrent.ConcurrentMap<K,U>> toConcurrentMap(java.util.function.Function<? super T,? extends K>, java.util.function.Function<? super T,? extends U>, java.util.function.BinaryOperator<U>);
- method public static <T, K, U, M extends java.util.concurrent.ConcurrentMap<K, U>> java.util.stream.Collector<T,?,M> toConcurrentMap(java.util.function.Function<? super T,? extends K>, java.util.function.Function<? super T,? extends U>, java.util.function.BinaryOperator<U>, java.util.function.Supplier<M>);
- method public static <T> java.util.stream.Collector<T,?,java.util.List<T>> toList();
- method public static <T, K, U> java.util.stream.Collector<T,?,java.util.Map<K,U>> toMap(java.util.function.Function<? super T,? extends K>, java.util.function.Function<? super T,? extends U>);
- method public static <T, K, U> java.util.stream.Collector<T,?,java.util.Map<K,U>> toMap(java.util.function.Function<? super T,? extends K>, java.util.function.Function<? super T,? extends U>, java.util.function.BinaryOperator<U>);
- method public static <T, K, U, M extends java.util.Map<K, U>> java.util.stream.Collector<T,?,M> toMap(java.util.function.Function<? super T,? extends K>, java.util.function.Function<? super T,? extends U>, java.util.function.BinaryOperator<U>, java.util.function.Supplier<M>);
- method public static <T> java.util.stream.Collector<T,?,java.util.Set<T>> toSet();
- }
-
- public interface DoubleStream extends java.util.stream.BaseStream<java.lang.Double,java.util.stream.DoubleStream> {
- method public boolean allMatch(java.util.function.DoublePredicate);
- method public boolean anyMatch(java.util.function.DoublePredicate);
- method public java.util.OptionalDouble average();
- method public java.util.stream.Stream<java.lang.Double> boxed();
- method public static java.util.stream.DoubleStream.Builder builder();
- method public <R> R collect(java.util.function.Supplier<R>, java.util.function.ObjDoubleConsumer<R>, java.util.function.BiConsumer<R,R>);
- method public static java.util.stream.DoubleStream concat(java.util.stream.DoubleStream, java.util.stream.DoubleStream);
- method public long count();
- method public java.util.stream.DoubleStream distinct();
- method public static java.util.stream.DoubleStream empty();
- method public java.util.stream.DoubleStream filter(java.util.function.DoublePredicate);
- method public java.util.OptionalDouble findAny();
- method public java.util.OptionalDouble findFirst();
- method public java.util.stream.DoubleStream flatMap(java.util.function.DoubleFunction<? extends java.util.stream.DoubleStream>);
- method public void forEach(java.util.function.DoubleConsumer);
- method public void forEachOrdered(java.util.function.DoubleConsumer);
- method public static java.util.stream.DoubleStream generate(java.util.function.DoubleSupplier);
- method public static java.util.stream.DoubleStream iterate(double, java.util.function.DoubleUnaryOperator);
- method public java.util.PrimitiveIterator.OfDouble iterator();
- method public java.util.stream.DoubleStream limit(long);
- method public java.util.stream.DoubleStream map(java.util.function.DoubleUnaryOperator);
- method public java.util.stream.IntStream mapToInt(java.util.function.DoubleToIntFunction);
- method public java.util.stream.LongStream mapToLong(java.util.function.DoubleToLongFunction);
- method public <U> java.util.stream.Stream<U> mapToObj(java.util.function.DoubleFunction<? extends U>);
- method public java.util.OptionalDouble max();
- method public java.util.OptionalDouble min();
- method public boolean noneMatch(java.util.function.DoublePredicate);
- method public static java.util.stream.DoubleStream of(double);
- method public static java.util.stream.DoubleStream of(double...);
- method public java.util.stream.DoubleStream parallel();
- method public java.util.stream.DoubleStream peek(java.util.function.DoubleConsumer);
- method public double reduce(double, java.util.function.DoubleBinaryOperator);
- method public java.util.OptionalDouble reduce(java.util.function.DoubleBinaryOperator);
- method public java.util.stream.DoubleStream sequential();
- method public java.util.stream.DoubleStream skip(long);
- method public java.util.stream.DoubleStream sorted();
- method public java.util.Spliterator.OfDouble spliterator();
- method public double sum();
- method public java.util.DoubleSummaryStatistics summaryStatistics();
- method public double[] toArray();
- }
-
- public static interface DoubleStream.Builder extends java.util.function.DoubleConsumer {
- method public default java.util.stream.DoubleStream.Builder add(double);
- method public java.util.stream.DoubleStream build();
- }
-
- public interface IntStream extends java.util.stream.BaseStream<java.lang.Integer,java.util.stream.IntStream> {
- method public boolean allMatch(java.util.function.IntPredicate);
- method public boolean anyMatch(java.util.function.IntPredicate);
- method public java.util.stream.DoubleStream asDoubleStream();
- method public java.util.stream.LongStream asLongStream();
- method public java.util.OptionalDouble average();
- method public java.util.stream.Stream<java.lang.Integer> boxed();
- method public static java.util.stream.IntStream.Builder builder();
- method public <R> R collect(java.util.function.Supplier<R>, java.util.function.ObjIntConsumer<R>, java.util.function.BiConsumer<R,R>);
- method public static java.util.stream.IntStream concat(java.util.stream.IntStream, java.util.stream.IntStream);
- method public long count();
- method public java.util.stream.IntStream distinct();
- method public static java.util.stream.IntStream empty();
- method public java.util.stream.IntStream filter(java.util.function.IntPredicate);
- method public java.util.OptionalInt findAny();
- method public java.util.OptionalInt findFirst();
- method public java.util.stream.IntStream flatMap(java.util.function.IntFunction<? extends java.util.stream.IntStream>);
- method public void forEach(java.util.function.IntConsumer);
- method public void forEachOrdered(java.util.function.IntConsumer);
- method public static java.util.stream.IntStream generate(java.util.function.IntSupplier);
- method public static java.util.stream.IntStream iterate(int, java.util.function.IntUnaryOperator);
- method public java.util.PrimitiveIterator.OfInt iterator();
- method public java.util.stream.IntStream limit(long);
- method public java.util.stream.IntStream map(java.util.function.IntUnaryOperator);
- method public java.util.stream.DoubleStream mapToDouble(java.util.function.IntToDoubleFunction);
- method public java.util.stream.LongStream mapToLong(java.util.function.IntToLongFunction);
- method public <U> java.util.stream.Stream<U> mapToObj(java.util.function.IntFunction<? extends U>);
- method public java.util.OptionalInt max();
- method public java.util.OptionalInt min();
- method public boolean noneMatch(java.util.function.IntPredicate);
- method public static java.util.stream.IntStream of(int);
- method public static java.util.stream.IntStream of(int...);
- method public java.util.stream.IntStream parallel();
- method public java.util.stream.IntStream peek(java.util.function.IntConsumer);
- method public static java.util.stream.IntStream range(int, int);
- method public static java.util.stream.IntStream rangeClosed(int, int);
- method public int reduce(int, java.util.function.IntBinaryOperator);
- method public java.util.OptionalInt reduce(java.util.function.IntBinaryOperator);
- method public java.util.stream.IntStream sequential();
- method public java.util.stream.IntStream skip(long);
- method public java.util.stream.IntStream sorted();
- method public java.util.Spliterator.OfInt spliterator();
- method public int sum();
- method public java.util.IntSummaryStatistics summaryStatistics();
- method public int[] toArray();
- }
-
- public static interface IntStream.Builder extends java.util.function.IntConsumer {
- method public default java.util.stream.IntStream.Builder add(int);
- method public java.util.stream.IntStream build();
- }
-
- public interface LongStream extends java.util.stream.BaseStream<java.lang.Long,java.util.stream.LongStream> {
- method public boolean allMatch(java.util.function.LongPredicate);
- method public boolean anyMatch(java.util.function.LongPredicate);
- method public java.util.stream.DoubleStream asDoubleStream();
- method public java.util.OptionalDouble average();
- method public java.util.stream.Stream<java.lang.Long> boxed();
- method public static java.util.stream.LongStream.Builder builder();
- method public <R> R collect(java.util.function.Supplier<R>, java.util.function.ObjLongConsumer<R>, java.util.function.BiConsumer<R,R>);
- method public static java.util.stream.LongStream concat(java.util.stream.LongStream, java.util.stream.LongStream);
- method public long count();
- method public java.util.stream.LongStream distinct();
- method public static java.util.stream.LongStream empty();
- method public java.util.stream.LongStream filter(java.util.function.LongPredicate);
- method public java.util.OptionalLong findAny();
- method public java.util.OptionalLong findFirst();
- method public java.util.stream.LongStream flatMap(java.util.function.LongFunction<? extends java.util.stream.LongStream>);
- method public void forEach(java.util.function.LongConsumer);
- method public void forEachOrdered(java.util.function.LongConsumer);
- method public static java.util.stream.LongStream generate(java.util.function.LongSupplier);
- method public static java.util.stream.LongStream iterate(long, java.util.function.LongUnaryOperator);
- method public java.util.PrimitiveIterator.OfLong iterator();
- method public java.util.stream.LongStream limit(long);
- method public java.util.stream.LongStream map(java.util.function.LongUnaryOperator);
- method public java.util.stream.DoubleStream mapToDouble(java.util.function.LongToDoubleFunction);
- method public java.util.stream.IntStream mapToInt(java.util.function.LongToIntFunction);
- method public <U> java.util.stream.Stream<U> mapToObj(java.util.function.LongFunction<? extends U>);
- method public java.util.OptionalLong max();
- method public java.util.OptionalLong min();
- method public boolean noneMatch(java.util.function.LongPredicate);
- method public static java.util.stream.LongStream of(long);
- method public static java.util.stream.LongStream of(long...);
- method public java.util.stream.LongStream parallel();
- method public java.util.stream.LongStream peek(java.util.function.LongConsumer);
- method public static java.util.stream.LongStream range(long, long);
- method public static java.util.stream.LongStream rangeClosed(long, long);
- method public long reduce(long, java.util.function.LongBinaryOperator);
- method public java.util.OptionalLong reduce(java.util.function.LongBinaryOperator);
- method public java.util.stream.LongStream sequential();
- method public java.util.stream.LongStream skip(long);
- method public java.util.stream.LongStream sorted();
- method public java.util.Spliterator.OfLong spliterator();
- method public long sum();
- method public java.util.LongSummaryStatistics summaryStatistics();
- method public long[] toArray();
- }
-
- public static interface LongStream.Builder extends java.util.function.LongConsumer {
- method public default java.util.stream.LongStream.Builder add(long);
- method public java.util.stream.LongStream build();
- }
-
- public interface Stream<T> extends java.util.stream.BaseStream<T,java.util.stream.Stream<T>> {
- method public boolean allMatch(java.util.function.Predicate<? super T>);
- method public boolean anyMatch(java.util.function.Predicate<? super T>);
- method public static <T> java.util.stream.Stream.Builder<T> builder();
- method public <R> R collect(java.util.function.Supplier<R>, java.util.function.BiConsumer<R,? super T>, java.util.function.BiConsumer<R,R>);
- method public <R, A> R collect(java.util.stream.Collector<? super T,A,R>);
- method public static <T> java.util.stream.Stream<T> concat(java.util.stream.Stream<? extends T>, java.util.stream.Stream<? extends T>);
- method public long count();
- method public java.util.stream.Stream<T> distinct();
- method public static <T> java.util.stream.Stream<T> empty();
- method public java.util.stream.Stream<T> filter(java.util.function.Predicate<? super T>);
- method public java.util.Optional<T> findAny();
- method public java.util.Optional<T> findFirst();
- method public <R> java.util.stream.Stream<R> flatMap(java.util.function.Function<? super T,? extends java.util.stream.Stream<? extends R>>);
- method public java.util.stream.DoubleStream flatMapToDouble(java.util.function.Function<? super T,? extends java.util.stream.DoubleStream>);
- method public java.util.stream.IntStream flatMapToInt(java.util.function.Function<? super T,? extends java.util.stream.IntStream>);
- method public java.util.stream.LongStream flatMapToLong(java.util.function.Function<? super T,? extends java.util.stream.LongStream>);
- method public void forEach(java.util.function.Consumer<? super T>);
- method public void forEachOrdered(java.util.function.Consumer<? super T>);
- method public static <T> java.util.stream.Stream<T> generate(java.util.function.Supplier<T>);
- method public static <T> java.util.stream.Stream<T> iterate(T, java.util.function.UnaryOperator<T>);
- method public java.util.stream.Stream<T> limit(long);
- method public <R> java.util.stream.Stream<R> map(java.util.function.Function<? super T,? extends R>);
- method public java.util.stream.DoubleStream mapToDouble(java.util.function.ToDoubleFunction<? super T>);
- method public java.util.stream.IntStream mapToInt(java.util.function.ToIntFunction<? super T>);
- method public java.util.stream.LongStream mapToLong(java.util.function.ToLongFunction<? super T>);
- method public java.util.Optional<T> max(java.util.Comparator<? super T>);
- method public java.util.Optional<T> min(java.util.Comparator<? super T>);
- method public boolean noneMatch(java.util.function.Predicate<? super T>);
- method public static <T> java.util.stream.Stream<T> of(T);
- method @java.lang.SafeVarargs public static <T> java.util.stream.Stream<T> of(T...);
- method public java.util.stream.Stream<T> peek(java.util.function.Consumer<? super T>);
- method public T reduce(T, java.util.function.BinaryOperator<T>);
- method public java.util.Optional<T> reduce(java.util.function.BinaryOperator<T>);
- method public <U> U reduce(U, java.util.function.BiFunction<U,? super T,U>, java.util.function.BinaryOperator<U>);
- method public java.util.stream.Stream<T> skip(long);
- method public java.util.stream.Stream<T> sorted();
- method public java.util.stream.Stream<T> sorted(java.util.Comparator<? super T>);
- method public Object[] toArray();
- method public <A> A[] toArray(java.util.function.IntFunction<A[]>);
- }
-
- public static interface Stream.Builder<T> extends java.util.function.Consumer<T> {
- method public default java.util.stream.Stream.Builder<T> add(T);
- method public java.util.stream.Stream<T> build();
- }
-
- public final class StreamSupport {
- method public static java.util.stream.DoubleStream doubleStream(java.util.Spliterator.OfDouble, boolean);
- method public static java.util.stream.DoubleStream doubleStream(java.util.function.Supplier<? extends java.util.Spliterator.OfDouble>, int, boolean);
- method public static java.util.stream.IntStream intStream(java.util.Spliterator.OfInt, boolean);
- method public static java.util.stream.IntStream intStream(java.util.function.Supplier<? extends java.util.Spliterator.OfInt>, int, boolean);
- method public static java.util.stream.LongStream longStream(java.util.Spliterator.OfLong, boolean);
- method public static java.util.stream.LongStream longStream(java.util.function.Supplier<? extends java.util.Spliterator.OfLong>, int, boolean);
- method public static <T> java.util.stream.Stream<T> stream(java.util.Spliterator<T>, boolean);
- method public static <T> java.util.stream.Stream<T> stream(java.util.function.Supplier<? extends java.util.Spliterator<T>>, int, boolean);
- }
-
-}
-
-package java.util.zip {
-
- public class Adler32 implements java.util.zip.Checksum {
- ctor public Adler32();
- method public long getValue();
- method public void reset();
- method public void update(int);
- method public void update(byte[], int, int);
- method public void update(byte[]);
- method public void update(java.nio.ByteBuffer);
- }
-
- public class CRC32 implements java.util.zip.Checksum {
- ctor public CRC32();
- method public long getValue();
- method public void reset();
- method public void update(int);
- method public void update(byte[], int, int);
- method public void update(byte[]);
- method public void update(java.nio.ByteBuffer);
- }
-
- public class CheckedInputStream extends java.io.FilterInputStream {
- ctor public CheckedInputStream(java.io.InputStream, java.util.zip.Checksum);
- method public java.util.zip.Checksum getChecksum();
- }
-
- public class CheckedOutputStream extends java.io.FilterOutputStream {
- ctor public CheckedOutputStream(java.io.OutputStream, java.util.zip.Checksum);
- method public java.util.zip.Checksum getChecksum();
- }
-
- public interface Checksum {
- method public long getValue();
- method public void reset();
- method public void update(int);
- method public void update(byte[], int, int);
- }
-
- public class DataFormatException extends java.lang.Exception {
- ctor public DataFormatException();
- ctor public DataFormatException(String);
- }
-
- public class Deflater {
- ctor public Deflater(int, boolean);
- ctor public Deflater(int);
- ctor public Deflater();
- method public int deflate(byte[], int, int);
- method public int deflate(byte[]);
- method public int deflate(byte[], int, int, int);
- method public void end();
- method protected void finalize();
- method public void finish();
- method public boolean finished();
- method public int getAdler();
- method public long getBytesRead();
- method public long getBytesWritten();
- method public int getTotalIn();
- method public int getTotalOut();
- method public boolean needsInput();
- method public void reset();
- method public void setDictionary(byte[], int, int);
- method public void setDictionary(byte[]);
- method public void setInput(byte[], int, int);
- method public void setInput(byte[]);
- method public void setLevel(int);
- method public void setStrategy(int);
- field public static final int BEST_COMPRESSION = 9; // 0x9
- field public static final int BEST_SPEED = 1; // 0x1
- field public static final int DEFAULT_COMPRESSION = -1; // 0xffffffff
- field public static final int DEFAULT_STRATEGY = 0; // 0x0
- field public static final int DEFLATED = 8; // 0x8
- field public static final int FILTERED = 1; // 0x1
- field public static final int FULL_FLUSH = 3; // 0x3
- field public static final int HUFFMAN_ONLY = 2; // 0x2
- field public static final int NO_COMPRESSION = 0; // 0x0
- field public static final int NO_FLUSH = 0; // 0x0
- field public static final int SYNC_FLUSH = 2; // 0x2
- }
-
- public class DeflaterInputStream extends java.io.FilterInputStream {
- ctor public DeflaterInputStream(java.io.InputStream);
- ctor public DeflaterInputStream(java.io.InputStream, java.util.zip.Deflater);
- ctor public DeflaterInputStream(java.io.InputStream, java.util.zip.Deflater, int);
- field protected final byte[] buf;
- field protected final java.util.zip.Deflater def;
- }
-
- public class DeflaterOutputStream extends java.io.FilterOutputStream {
- ctor public DeflaterOutputStream(java.io.OutputStream, java.util.zip.Deflater, int, boolean);
- ctor public DeflaterOutputStream(java.io.OutputStream, java.util.zip.Deflater, int);
- ctor public DeflaterOutputStream(java.io.OutputStream, java.util.zip.Deflater, boolean);
- ctor public DeflaterOutputStream(java.io.OutputStream, java.util.zip.Deflater);
- ctor public DeflaterOutputStream(java.io.OutputStream, boolean);
- ctor public DeflaterOutputStream(java.io.OutputStream);
- method protected void deflate() throws java.io.IOException;
- method public void finish() throws java.io.IOException;
- field protected byte[] buf;
- field protected java.util.zip.Deflater def;
- }
-
- public class GZIPInputStream extends java.util.zip.InflaterInputStream {
- ctor public GZIPInputStream(java.io.InputStream, int) throws java.io.IOException;
- ctor public GZIPInputStream(java.io.InputStream) throws java.io.IOException;
- field public static final int GZIP_MAGIC = 35615; // 0x8b1f
- field protected java.util.zip.CRC32 crc;
- field protected boolean eos;
- }
-
- public class GZIPOutputStream extends java.util.zip.DeflaterOutputStream {
- ctor public GZIPOutputStream(java.io.OutputStream, int) throws java.io.IOException;
- ctor public GZIPOutputStream(java.io.OutputStream, int, boolean) throws java.io.IOException;
- ctor public GZIPOutputStream(java.io.OutputStream) throws java.io.IOException;
- ctor public GZIPOutputStream(java.io.OutputStream, boolean) throws java.io.IOException;
- field protected java.util.zip.CRC32 crc;
- }
-
- public class Inflater {
- ctor public Inflater(boolean);
- ctor public Inflater();
- method public void end();
- method protected void finalize();
- method public boolean finished();
- method public int getAdler();
- method public long getBytesRead();
- method public long getBytesWritten();
- method public int getRemaining();
- method public int getTotalIn();
- method public int getTotalOut();
- method public int inflate(byte[], int, int) throws java.util.zip.DataFormatException;
- method public int inflate(byte[]) throws java.util.zip.DataFormatException;
- method public boolean needsDictionary();
- method public boolean needsInput();
- method public void reset();
- method public void setDictionary(byte[], int, int);
- method public void setDictionary(byte[]);
- method public void setInput(byte[], int, int);
- method public void setInput(byte[]);
- }
-
- public class InflaterInputStream extends java.io.FilterInputStream {
- ctor public InflaterInputStream(java.io.InputStream, java.util.zip.Inflater, int);
- ctor public InflaterInputStream(java.io.InputStream, java.util.zip.Inflater);
- ctor public InflaterInputStream(java.io.InputStream);
- method protected void fill() throws java.io.IOException;
- field protected byte[] buf;
- field @Deprecated protected boolean closed;
- field protected java.util.zip.Inflater inf;
- field protected int len;
- }
-
- public class InflaterOutputStream extends java.io.FilterOutputStream {
- ctor public InflaterOutputStream(java.io.OutputStream);
- ctor public InflaterOutputStream(java.io.OutputStream, java.util.zip.Inflater);
- ctor public InflaterOutputStream(java.io.OutputStream, java.util.zip.Inflater, int);
- method public void finish() throws java.io.IOException;
- field protected final byte[] buf;
- field protected final java.util.zip.Inflater inf;
- }
-
- public class ZipEntry implements java.lang.Cloneable {
- ctor public ZipEntry(String);
- ctor public ZipEntry(java.util.zip.ZipEntry);
- method public Object clone();
- method public String getComment();
- method public long getCompressedSize();
- method public long getCrc();
- method public java.nio.file.attribute.FileTime getCreationTime();
- method public byte[] getExtra();
- method public java.nio.file.attribute.FileTime getLastAccessTime();
- method public java.nio.file.attribute.FileTime getLastModifiedTime();
- method public int getMethod();
- method public String getName();
- method public long getSize();
- method public long getTime();
- method public boolean isDirectory();
- method public void setComment(String);
- method public void setCompressedSize(long);
- method public void setCrc(long);
- method public java.util.zip.ZipEntry setCreationTime(java.nio.file.attribute.FileTime);
- method public void setExtra(byte[]);
- method public java.util.zip.ZipEntry setLastAccessTime(java.nio.file.attribute.FileTime);
- method public java.util.zip.ZipEntry setLastModifiedTime(java.nio.file.attribute.FileTime);
- method public void setMethod(int);
- method public void setSize(long);
- method public void setTime(long);
- field public static final int CENATT = 36; // 0x24
- field public static final int CENATX = 38; // 0x26
- field public static final int CENCOM = 32; // 0x20
- field public static final int CENCRC = 16; // 0x10
- field public static final int CENDSK = 34; // 0x22
- field public static final int CENEXT = 30; // 0x1e
- field public static final int CENFLG = 8; // 0x8
- field public static final int CENHDR = 46; // 0x2e
- field public static final int CENHOW = 10; // 0xa
- field public static final int CENLEN = 24; // 0x18
- field public static final int CENNAM = 28; // 0x1c
- field public static final int CENOFF = 42; // 0x2a
- field public static final long CENSIG = 33639248L; // 0x2014b50L
- field public static final int CENSIZ = 20; // 0x14
- field public static final int CENTIM = 12; // 0xc
- field public static final int CENVEM = 4; // 0x4
- field public static final int CENVER = 6; // 0x6
- field public static final int DEFLATED = 8; // 0x8
- field public static final int ENDCOM = 20; // 0x14
- field public static final int ENDHDR = 22; // 0x16
- field public static final int ENDOFF = 16; // 0x10
- field public static final long ENDSIG = 101010256L; // 0x6054b50L
- field public static final int ENDSIZ = 12; // 0xc
- field public static final int ENDSUB = 8; // 0x8
- field public static final int ENDTOT = 10; // 0xa
- field public static final int EXTCRC = 4; // 0x4
- field public static final int EXTHDR = 16; // 0x10
- field public static final int EXTLEN = 12; // 0xc
- field public static final long EXTSIG = 134695760L; // 0x8074b50L
- field public static final int EXTSIZ = 8; // 0x8
- field public static final int LOCCRC = 14; // 0xe
- field public static final int LOCEXT = 28; // 0x1c
- field public static final int LOCFLG = 6; // 0x6
- field public static final int LOCHDR = 30; // 0x1e
- field public static final int LOCHOW = 8; // 0x8
- field public static final int LOCLEN = 22; // 0x16
- field public static final int LOCNAM = 26; // 0x1a
- field public static final long LOCSIG = 67324752L; // 0x4034b50L
- field public static final int LOCSIZ = 18; // 0x12
- field public static final int LOCTIM = 10; // 0xa
- field public static final int LOCVER = 4; // 0x4
- field public static final int STORED = 0; // 0x0
- }
-
- public class ZipError extends java.lang.InternalError {
- ctor public ZipError(String);
- }
-
- public class ZipException extends java.io.IOException {
- ctor public ZipException();
- ctor public ZipException(String);
- }
-
- public class ZipFile implements java.io.Closeable {
- ctor public ZipFile(String) throws java.io.IOException;
- ctor public ZipFile(java.io.File, int) throws java.io.IOException;
- ctor public ZipFile(java.io.File) throws java.io.IOException, java.util.zip.ZipException;
- ctor public ZipFile(java.io.File, int, java.nio.charset.Charset) throws java.io.IOException;
- ctor public ZipFile(String, java.nio.charset.Charset) throws java.io.IOException;
- ctor public ZipFile(java.io.File, java.nio.charset.Charset) throws java.io.IOException;
- method public void close() throws java.io.IOException;
- method public java.util.Enumeration<? extends java.util.zip.ZipEntry> entries();
- method protected void finalize() throws java.io.IOException;
- method public String getComment();
- method public java.util.zip.ZipEntry getEntry(String);
- method public java.io.InputStream getInputStream(java.util.zip.ZipEntry) throws java.io.IOException;
- method public String getName();
- method public int size();
- method public java.util.stream.Stream<? extends java.util.zip.ZipEntry> stream();
- field public static final int CENATT = 36; // 0x24
- field public static final int CENATX = 38; // 0x26
- field public static final int CENCOM = 32; // 0x20
- field public static final int CENCRC = 16; // 0x10
- field public static final int CENDSK = 34; // 0x22
- field public static final int CENEXT = 30; // 0x1e
- field public static final int CENFLG = 8; // 0x8
- field public static final int CENHDR = 46; // 0x2e
- field public static final int CENHOW = 10; // 0xa
- field public static final int CENLEN = 24; // 0x18
- field public static final int CENNAM = 28; // 0x1c
- field public static final int CENOFF = 42; // 0x2a
- field public static final long CENSIG = 33639248L; // 0x2014b50L
- field public static final int CENSIZ = 20; // 0x14
- field public static final int CENTIM = 12; // 0xc
- field public static final int CENVEM = 4; // 0x4
- field public static final int CENVER = 6; // 0x6
- field public static final int ENDCOM = 20; // 0x14
- field public static final int ENDHDR = 22; // 0x16
- field public static final int ENDOFF = 16; // 0x10
- field public static final long ENDSIG = 101010256L; // 0x6054b50L
- field public static final int ENDSIZ = 12; // 0xc
- field public static final int ENDSUB = 8; // 0x8
- field public static final int ENDTOT = 10; // 0xa
- field public static final int EXTCRC = 4; // 0x4
- field public static final int EXTHDR = 16; // 0x10
- field public static final int EXTLEN = 12; // 0xc
- field public static final long EXTSIG = 134695760L; // 0x8074b50L
- field public static final int EXTSIZ = 8; // 0x8
- field public static final int LOCCRC = 14; // 0xe
- field public static final int LOCEXT = 28; // 0x1c
- field public static final int LOCFLG = 6; // 0x6
- field public static final int LOCHDR = 30; // 0x1e
- field public static final int LOCHOW = 8; // 0x8
- field public static final int LOCLEN = 22; // 0x16
- field public static final int LOCNAM = 26; // 0x1a
- field public static final long LOCSIG = 67324752L; // 0x4034b50L
- field public static final int LOCSIZ = 18; // 0x12
- field public static final int LOCTIM = 10; // 0xa
- field public static final int LOCVER = 4; // 0x4
- field public static final int OPEN_DELETE = 4; // 0x4
- field public static final int OPEN_READ = 1; // 0x1
- }
-
- public class ZipInputStream extends java.util.zip.InflaterInputStream {
- ctor public ZipInputStream(java.io.InputStream);
- ctor public ZipInputStream(java.io.InputStream, java.nio.charset.Charset);
- method public void closeEntry() throws java.io.IOException;
- method protected java.util.zip.ZipEntry createZipEntry(String);
- method public java.util.zip.ZipEntry getNextEntry() throws java.io.IOException;
- field public static final int CENATT = 36; // 0x24
- field public static final int CENATX = 38; // 0x26
- field public static final int CENCOM = 32; // 0x20
- field public static final int CENCRC = 16; // 0x10
- field public static final int CENDSK = 34; // 0x22
- field public static final int CENEXT = 30; // 0x1e
- field public static final int CENFLG = 8; // 0x8
- field public static final int CENHDR = 46; // 0x2e
- field public static final int CENHOW = 10; // 0xa
- field public static final int CENLEN = 24; // 0x18
- field public static final int CENNAM = 28; // 0x1c
- field public static final int CENOFF = 42; // 0x2a
- field public static final long CENSIG = 33639248L; // 0x2014b50L
- field public static final int CENSIZ = 20; // 0x14
- field public static final int CENTIM = 12; // 0xc
- field public static final int CENVEM = 4; // 0x4
- field public static final int CENVER = 6; // 0x6
- field public static final int ENDCOM = 20; // 0x14
- field public static final int ENDHDR = 22; // 0x16
- field public static final int ENDOFF = 16; // 0x10
- field public static final long ENDSIG = 101010256L; // 0x6054b50L
- field public static final int ENDSIZ = 12; // 0xc
- field public static final int ENDSUB = 8; // 0x8
- field public static final int ENDTOT = 10; // 0xa
- field public static final int EXTCRC = 4; // 0x4
- field public static final int EXTHDR = 16; // 0x10
- field public static final int EXTLEN = 12; // 0xc
- field public static final long EXTSIG = 134695760L; // 0x8074b50L
- field public static final int EXTSIZ = 8; // 0x8
- field public static final int LOCCRC = 14; // 0xe
- field public static final int LOCEXT = 28; // 0x1c
- field public static final int LOCFLG = 6; // 0x6
- field public static final int LOCHDR = 30; // 0x1e
- field public static final int LOCHOW = 8; // 0x8
- field public static final int LOCLEN = 22; // 0x16
- field public static final int LOCNAM = 26; // 0x1a
- field public static final long LOCSIG = 67324752L; // 0x4034b50L
- field public static final int LOCSIZ = 18; // 0x12
- field public static final int LOCTIM = 10; // 0xa
- field public static final int LOCVER = 4; // 0x4
- }
-
- public class ZipOutputStream extends java.util.zip.DeflaterOutputStream {
- ctor public ZipOutputStream(java.io.OutputStream);
- ctor public ZipOutputStream(java.io.OutputStream, java.nio.charset.Charset);
- method public void closeEntry() throws java.io.IOException;
- method public void putNextEntry(java.util.zip.ZipEntry) throws java.io.IOException;
- method public void setComment(String);
- method public void setLevel(int);
- method public void setMethod(int);
- field public static final int CENATT = 36; // 0x24
- field public static final int CENATX = 38; // 0x26
- field public static final int CENCOM = 32; // 0x20
- field public static final int CENCRC = 16; // 0x10
- field public static final int CENDSK = 34; // 0x22
- field public static final int CENEXT = 30; // 0x1e
- field public static final int CENFLG = 8; // 0x8
- field public static final int CENHDR = 46; // 0x2e
- field public static final int CENHOW = 10; // 0xa
- field public static final int CENLEN = 24; // 0x18
- field public static final int CENNAM = 28; // 0x1c
- field public static final int CENOFF = 42; // 0x2a
- field public static final long CENSIG = 33639248L; // 0x2014b50L
- field public static final int CENSIZ = 20; // 0x14
- field public static final int CENTIM = 12; // 0xc
- field public static final int CENVEM = 4; // 0x4
- field public static final int CENVER = 6; // 0x6
- field public static final int DEFLATED = 8; // 0x8
- field public static final int ENDCOM = 20; // 0x14
- field public static final int ENDHDR = 22; // 0x16
- field public static final int ENDOFF = 16; // 0x10
- field public static final long ENDSIG = 101010256L; // 0x6054b50L
- field public static final int ENDSIZ = 12; // 0xc
- field public static final int ENDSUB = 8; // 0x8
- field public static final int ENDTOT = 10; // 0xa
- field public static final int EXTCRC = 4; // 0x4
- field public static final int EXTHDR = 16; // 0x10
- field public static final int EXTLEN = 12; // 0xc
- field public static final long EXTSIG = 134695760L; // 0x8074b50L
- field public static final int EXTSIZ = 8; // 0x8
- field public static final int LOCCRC = 14; // 0xe
- field public static final int LOCEXT = 28; // 0x1c
- field public static final int LOCFLG = 6; // 0x6
- field public static final int LOCHDR = 30; // 0x1e
- field public static final int LOCHOW = 8; // 0x8
- field public static final int LOCLEN = 22; // 0x16
- field public static final int LOCNAM = 26; // 0x1a
- field public static final long LOCSIG = 67324752L; // 0x4034b50L
- field public static final int LOCSIZ = 18; // 0x12
- field public static final int LOCTIM = 10; // 0xa
- field public static final int LOCVER = 4; // 0x4
- field public static final int STORED = 0; // 0x0
- }
-
-}
-
-package javax.crypto {
-
- public class AEADBadTagException extends javax.crypto.BadPaddingException {
- ctor public AEADBadTagException();
- ctor public AEADBadTagException(String);
- }
-
- public class BadPaddingException extends java.security.GeneralSecurityException {
- ctor public BadPaddingException();
- ctor public BadPaddingException(String);
- }
-
- public class Cipher {
- ctor protected Cipher(javax.crypto.CipherSpi, java.security.Provider, String);
- method public final byte[] doFinal() throws javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException;
- method public final int doFinal(byte[], int) throws javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException, javax.crypto.ShortBufferException;
- method public final byte[] doFinal(byte[]) throws javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException;
- method public final byte[] doFinal(byte[], int, int) throws javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException;
- method public final int doFinal(byte[], int, int, byte[]) throws javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException, javax.crypto.ShortBufferException;
- method public final int doFinal(byte[], int, int, byte[], int) throws javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException, javax.crypto.ShortBufferException;
- method public final int doFinal(java.nio.ByteBuffer, java.nio.ByteBuffer) throws javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException, javax.crypto.ShortBufferException;
- method public final String getAlgorithm();
- method public final int getBlockSize();
- method public final javax.crypto.ExemptionMechanism getExemptionMechanism();
- method public final byte[] getIV();
- method public static final javax.crypto.Cipher getInstance(String) throws java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingException;
- method public static final javax.crypto.Cipher getInstance(String, String) throws java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingException, java.security.NoSuchProviderException;
- method public static final javax.crypto.Cipher getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingException;
- method public static final int getMaxAllowedKeyLength(String) throws java.security.NoSuchAlgorithmException;
- method public static final java.security.spec.AlgorithmParameterSpec getMaxAllowedParameterSpec(String) throws java.security.NoSuchAlgorithmException;
- method public final int getOutputSize(int);
- method public final java.security.AlgorithmParameters getParameters();
- method public final java.security.Provider getProvider();
- method public final void init(int, java.security.Key) throws java.security.InvalidKeyException;
- method public final void init(int, java.security.Key, java.security.SecureRandom) throws java.security.InvalidKeyException;
- method public final void init(int, java.security.Key, java.security.spec.AlgorithmParameterSpec) throws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- method public final void init(int, java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom) throws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- method public final void init(int, java.security.Key, java.security.AlgorithmParameters) throws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- method public final void init(int, java.security.Key, java.security.AlgorithmParameters, java.security.SecureRandom) throws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- method public final void init(int, java.security.cert.Certificate) throws java.security.InvalidKeyException;
- method public final void init(int, java.security.cert.Certificate, java.security.SecureRandom) throws java.security.InvalidKeyException;
- method public final java.security.Key unwrap(byte[], String, int) throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException;
- method public final byte[] update(byte[]);
- method public final byte[] update(byte[], int, int);
- method public final int update(byte[], int, int, byte[]) throws javax.crypto.ShortBufferException;
- method public final int update(byte[], int, int, byte[], int) throws javax.crypto.ShortBufferException;
- method public final int update(java.nio.ByteBuffer, java.nio.ByteBuffer) throws javax.crypto.ShortBufferException;
- method public final void updateAAD(byte[]);
- method public final void updateAAD(byte[], int, int);
- method public final void updateAAD(java.nio.ByteBuffer);
- method public final byte[] wrap(java.security.Key) throws javax.crypto.IllegalBlockSizeException, java.security.InvalidKeyException;
- field public static final int DECRYPT_MODE = 2; // 0x2
- field public static final int ENCRYPT_MODE = 1; // 0x1
- field public static final int PRIVATE_KEY = 2; // 0x2
- field public static final int PUBLIC_KEY = 1; // 0x1
- field public static final int SECRET_KEY = 3; // 0x3
- field public static final int UNWRAP_MODE = 4; // 0x4
- field public static final int WRAP_MODE = 3; // 0x3
- }
-
- public class CipherInputStream extends java.io.FilterInputStream {
- ctor public CipherInputStream(java.io.InputStream, javax.crypto.Cipher);
- ctor protected CipherInputStream(java.io.InputStream);
- }
-
- public class CipherOutputStream extends java.io.FilterOutputStream {
- ctor public CipherOutputStream(java.io.OutputStream, javax.crypto.Cipher);
- ctor protected CipherOutputStream(java.io.OutputStream);
- }
-
- public abstract class CipherSpi {
- ctor public CipherSpi();
- method protected abstract byte[] engineDoFinal(byte[], int, int) throws javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException;
- method protected abstract int engineDoFinal(byte[], int, int, byte[], int) throws javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException, javax.crypto.ShortBufferException;
- method protected int engineDoFinal(java.nio.ByteBuffer, java.nio.ByteBuffer) throws javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException, javax.crypto.ShortBufferException;
- method protected abstract int engineGetBlockSize();
- method protected abstract byte[] engineGetIV();
- method protected int engineGetKeySize(java.security.Key) throws java.security.InvalidKeyException;
- method protected abstract int engineGetOutputSize(int);
- method protected abstract java.security.AlgorithmParameters engineGetParameters();
- method protected abstract void engineInit(int, java.security.Key, java.security.SecureRandom) throws java.security.InvalidKeyException;
- method protected abstract void engineInit(int, java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom) throws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- method protected abstract void engineInit(int, java.security.Key, java.security.AlgorithmParameters, java.security.SecureRandom) throws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- method protected abstract void engineSetMode(String) throws java.security.NoSuchAlgorithmException;
- method protected abstract void engineSetPadding(String) throws javax.crypto.NoSuchPaddingException;
- method protected java.security.Key engineUnwrap(byte[], String, int) throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException;
- method protected abstract byte[] engineUpdate(byte[], int, int);
- method protected abstract int engineUpdate(byte[], int, int, byte[], int) throws javax.crypto.ShortBufferException;
- method protected int engineUpdate(java.nio.ByteBuffer, java.nio.ByteBuffer) throws javax.crypto.ShortBufferException;
- method protected void engineUpdateAAD(byte[], int, int);
- method protected void engineUpdateAAD(java.nio.ByteBuffer);
- method protected byte[] engineWrap(java.security.Key) throws javax.crypto.IllegalBlockSizeException, java.security.InvalidKeyException;
- }
-
- public class EncryptedPrivateKeyInfo {
- ctor public EncryptedPrivateKeyInfo(byte[]) throws java.io.IOException;
- ctor public EncryptedPrivateKeyInfo(String, byte[]) throws java.security.NoSuchAlgorithmException;
- ctor public EncryptedPrivateKeyInfo(java.security.AlgorithmParameters, byte[]) throws java.security.NoSuchAlgorithmException;
- method public String getAlgName();
- method public java.security.AlgorithmParameters getAlgParameters();
- method public byte[] getEncoded() throws java.io.IOException;
- method public byte[] getEncryptedData();
- method public java.security.spec.PKCS8EncodedKeySpec getKeySpec(javax.crypto.Cipher) throws java.security.spec.InvalidKeySpecException;
- method public java.security.spec.PKCS8EncodedKeySpec getKeySpec(java.security.Key) throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException;
- method public java.security.spec.PKCS8EncodedKeySpec getKeySpec(java.security.Key, String) throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public java.security.spec.PKCS8EncodedKeySpec getKeySpec(java.security.Key, java.security.Provider) throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException;
- }
-
- public class ExemptionMechanism {
- ctor protected ExemptionMechanism(javax.crypto.ExemptionMechanismSpi, java.security.Provider, String);
- method public final byte[] genExemptionBlob() throws javax.crypto.ExemptionMechanismException, java.lang.IllegalStateException;
- method public final int genExemptionBlob(byte[]) throws javax.crypto.ExemptionMechanismException, java.lang.IllegalStateException, javax.crypto.ShortBufferException;
- method public final int genExemptionBlob(byte[], int) throws javax.crypto.ExemptionMechanismException, java.lang.IllegalStateException, javax.crypto.ShortBufferException;
- method public static final javax.crypto.ExemptionMechanism getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static final javax.crypto.ExemptionMechanism getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static final javax.crypto.ExemptionMechanism getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public final String getName();
- method public final int getOutputSize(int) throws java.lang.IllegalStateException;
- method public final java.security.Provider getProvider();
- method public final void init(java.security.Key) throws javax.crypto.ExemptionMechanismException, java.security.InvalidKeyException;
- method public final void init(java.security.Key, java.security.spec.AlgorithmParameterSpec) throws javax.crypto.ExemptionMechanismException, java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- method public final void init(java.security.Key, java.security.AlgorithmParameters) throws javax.crypto.ExemptionMechanismException, java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- method public final boolean isCryptoAllowed(java.security.Key) throws javax.crypto.ExemptionMechanismException;
- }
-
- public class ExemptionMechanismException extends java.security.GeneralSecurityException {
- ctor public ExemptionMechanismException();
- ctor public ExemptionMechanismException(String);
- }
-
- public abstract class ExemptionMechanismSpi {
- ctor public ExemptionMechanismSpi();
- method protected abstract byte[] engineGenExemptionBlob() throws javax.crypto.ExemptionMechanismException;
- method protected abstract int engineGenExemptionBlob(byte[], int) throws javax.crypto.ExemptionMechanismException, javax.crypto.ShortBufferException;
- method protected abstract int engineGetOutputSize(int);
- method protected abstract void engineInit(java.security.Key) throws javax.crypto.ExemptionMechanismException, java.security.InvalidKeyException;
- method protected abstract void engineInit(java.security.Key, java.security.spec.AlgorithmParameterSpec) throws javax.crypto.ExemptionMechanismException, java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- method protected abstract void engineInit(java.security.Key, java.security.AlgorithmParameters) throws javax.crypto.ExemptionMechanismException, java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- }
-
- public class IllegalBlockSizeException extends java.security.GeneralSecurityException {
- ctor public IllegalBlockSizeException();
- ctor public IllegalBlockSizeException(String);
- }
-
- public class KeyAgreement {
- ctor protected KeyAgreement(javax.crypto.KeyAgreementSpi, java.security.Provider, String);
- method public final java.security.Key doPhase(java.security.Key, boolean) throws java.lang.IllegalStateException, java.security.InvalidKeyException;
- method public final byte[] generateSecret() throws java.lang.IllegalStateException;
- method public final int generateSecret(byte[], int) throws java.lang.IllegalStateException, javax.crypto.ShortBufferException;
- method public final javax.crypto.SecretKey generateSecret(String) throws java.lang.IllegalStateException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException;
- method public final String getAlgorithm();
- method public static final javax.crypto.KeyAgreement getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static final javax.crypto.KeyAgreement getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static final javax.crypto.KeyAgreement getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public final java.security.Provider getProvider();
- method public final void init(java.security.Key) throws java.security.InvalidKeyException;
- method public final void init(java.security.Key, java.security.SecureRandom) throws java.security.InvalidKeyException;
- method public final void init(java.security.Key, java.security.spec.AlgorithmParameterSpec) throws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- method public final void init(java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom) throws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- }
-
- public abstract class KeyAgreementSpi {
- ctor public KeyAgreementSpi();
- method protected abstract java.security.Key engineDoPhase(java.security.Key, boolean) throws java.lang.IllegalStateException, java.security.InvalidKeyException;
- method protected abstract byte[] engineGenerateSecret() throws java.lang.IllegalStateException;
- method protected abstract int engineGenerateSecret(byte[], int) throws java.lang.IllegalStateException, javax.crypto.ShortBufferException;
- method protected abstract javax.crypto.SecretKey engineGenerateSecret(String) throws java.lang.IllegalStateException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException;
- method protected abstract void engineInit(java.security.Key, java.security.SecureRandom) throws java.security.InvalidKeyException;
- method protected abstract void engineInit(java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom) throws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- }
-
- public class KeyGenerator {
- ctor protected KeyGenerator(javax.crypto.KeyGeneratorSpi, java.security.Provider, String);
- method public final javax.crypto.SecretKey generateKey();
- method public final String getAlgorithm();
- method public static final javax.crypto.KeyGenerator getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static final javax.crypto.KeyGenerator getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static final javax.crypto.KeyGenerator getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public final java.security.Provider getProvider();
- method public final void init(java.security.SecureRandom);
- method public final void init(java.security.spec.AlgorithmParameterSpec) throws java.security.InvalidAlgorithmParameterException;
- method public final void init(java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom) throws java.security.InvalidAlgorithmParameterException;
- method public final void init(int);
- method public final void init(int, java.security.SecureRandom);
- }
-
- public abstract class KeyGeneratorSpi {
- ctor public KeyGeneratorSpi();
- method protected abstract javax.crypto.SecretKey engineGenerateKey();
- method protected abstract void engineInit(java.security.SecureRandom);
- method protected abstract void engineInit(java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom) throws java.security.InvalidAlgorithmParameterException;
- method protected abstract void engineInit(int, java.security.SecureRandom);
- }
-
- public class Mac implements java.lang.Cloneable {
- ctor protected Mac(javax.crypto.MacSpi, java.security.Provider, String);
- method public final Object clone() throws java.lang.CloneNotSupportedException;
- method public final byte[] doFinal() throws java.lang.IllegalStateException;
- method public final void doFinal(byte[], int) throws java.lang.IllegalStateException, javax.crypto.ShortBufferException;
- method public final byte[] doFinal(byte[]) throws java.lang.IllegalStateException;
- method public final String getAlgorithm();
- method public static final javax.crypto.Mac getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static final javax.crypto.Mac getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static final javax.crypto.Mac getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public final int getMacLength();
- method public final java.security.Provider getProvider();
- method public final void init(java.security.Key) throws java.security.InvalidKeyException;
- method public final void init(java.security.Key, java.security.spec.AlgorithmParameterSpec) throws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- method public final void reset();
- method public final void update(byte) throws java.lang.IllegalStateException;
- method public final void update(byte[]) throws java.lang.IllegalStateException;
- method public final void update(byte[], int, int) throws java.lang.IllegalStateException;
- method public final void update(java.nio.ByteBuffer);
- }
-
- public abstract class MacSpi {
- ctor public MacSpi();
- method public Object clone() throws java.lang.CloneNotSupportedException;
- method protected abstract byte[] engineDoFinal();
- method protected abstract int engineGetMacLength();
- method protected abstract void engineInit(java.security.Key, java.security.spec.AlgorithmParameterSpec) throws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException;
- method protected abstract void engineReset();
- method protected abstract void engineUpdate(byte);
- method protected abstract void engineUpdate(byte[], int, int);
- method protected void engineUpdate(java.nio.ByteBuffer);
- }
-
- public class NoSuchPaddingException extends java.security.GeneralSecurityException {
- ctor public NoSuchPaddingException();
- ctor public NoSuchPaddingException(String);
- }
-
- public class NullCipher extends javax.crypto.Cipher {
- ctor public NullCipher();
- }
-
- public class SealedObject implements java.io.Serializable {
- ctor public SealedObject(java.io.Serializable, javax.crypto.Cipher) throws java.io.IOException, javax.crypto.IllegalBlockSizeException;
- ctor protected SealedObject(javax.crypto.SealedObject);
- method public final String getAlgorithm();
- method public final Object getObject(java.security.Key) throws java.lang.ClassNotFoundException, java.io.IOException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException;
- method public final Object getObject(javax.crypto.Cipher) throws javax.crypto.BadPaddingException, java.lang.ClassNotFoundException, java.io.IOException, javax.crypto.IllegalBlockSizeException;
- method public final Object getObject(java.security.Key, String) throws java.lang.ClassNotFoundException, java.io.IOException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- field protected byte[] encodedParams;
- }
-
- public interface SecretKey extends java.security.Key javax.security.auth.Destroyable {
- field public static final long serialVersionUID = -4795878709595146952L; // 0xbd719db928b8f538L
- }
-
- public class SecretKeyFactory {
- ctor protected SecretKeyFactory(javax.crypto.SecretKeyFactorySpi, java.security.Provider, String);
- method public final javax.crypto.SecretKey generateSecret(java.security.spec.KeySpec) throws java.security.spec.InvalidKeySpecException;
- method public final String getAlgorithm();
- method public static final javax.crypto.SecretKeyFactory getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static final javax.crypto.SecretKeyFactory getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static final javax.crypto.SecretKeyFactory getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public final java.security.spec.KeySpec getKeySpec(javax.crypto.SecretKey, Class<?>) throws java.security.spec.InvalidKeySpecException;
- method public final java.security.Provider getProvider();
- method public final javax.crypto.SecretKey translateKey(javax.crypto.SecretKey) throws java.security.InvalidKeyException;
- }
-
- public abstract class SecretKeyFactorySpi {
- ctor public SecretKeyFactorySpi();
- method protected abstract javax.crypto.SecretKey engineGenerateSecret(java.security.spec.KeySpec) throws java.security.spec.InvalidKeySpecException;
- method protected abstract java.security.spec.KeySpec engineGetKeySpec(javax.crypto.SecretKey, Class<?>) throws java.security.spec.InvalidKeySpecException;
- method protected abstract javax.crypto.SecretKey engineTranslateKey(javax.crypto.SecretKey) throws java.security.InvalidKeyException;
- }
-
- public class ShortBufferException extends java.security.GeneralSecurityException {
- ctor public ShortBufferException();
- ctor public ShortBufferException(String);
- }
-
-}
-
-package javax.crypto.interfaces {
-
- public interface DHKey {
- method public javax.crypto.spec.DHParameterSpec getParams();
- }
-
- public interface DHPrivateKey extends javax.crypto.interfaces.DHKey java.security.PrivateKey {
- method public java.math.BigInteger getX();
- field public static final long serialVersionUID = 2211791113380396553L; // 0x1eb1dc4c8e677e09L
- }
-
- public interface DHPublicKey extends javax.crypto.interfaces.DHKey java.security.PublicKey {
- method public java.math.BigInteger getY();
- field public static final long serialVersionUID = -6628103563352519193L; // 0xa4043eed23df4de7L
- }
-
- public interface PBEKey extends javax.crypto.SecretKey {
- method public int getIterationCount();
- method public char[] getPassword();
- method public byte[] getSalt();
- field public static final long serialVersionUID = -1430015993304333921L; // 0xec279007d7f7c19fL
- }
-
-}
-
-package javax.crypto.spec {
-
- public class DESKeySpec implements java.security.spec.KeySpec {
- ctor public DESKeySpec(byte[]) throws java.security.InvalidKeyException;
- ctor public DESKeySpec(byte[], int) throws java.security.InvalidKeyException;
- method public byte[] getKey();
- method public static boolean isParityAdjusted(byte[], int) throws java.security.InvalidKeyException;
- method public static boolean isWeak(byte[], int) throws java.security.InvalidKeyException;
- field public static final int DES_KEY_LEN = 8; // 0x8
- }
-
- public class DESedeKeySpec implements java.security.spec.KeySpec {
- ctor public DESedeKeySpec(byte[]) throws java.security.InvalidKeyException;
- ctor public DESedeKeySpec(byte[], int) throws java.security.InvalidKeyException;
- method public byte[] getKey();
- method public static boolean isParityAdjusted(byte[], int) throws java.security.InvalidKeyException;
- field public static final int DES_EDE_KEY_LEN = 24; // 0x18
- }
-
- public class DHGenParameterSpec implements java.security.spec.AlgorithmParameterSpec {
- ctor public DHGenParameterSpec(int, int);
- method public int getExponentSize();
- method public int getPrimeSize();
- }
-
- public class DHParameterSpec implements java.security.spec.AlgorithmParameterSpec {
- ctor public DHParameterSpec(java.math.BigInteger, java.math.BigInteger);
- ctor public DHParameterSpec(java.math.BigInteger, java.math.BigInteger, int);
- method public java.math.BigInteger getG();
- method public int getL();
- method public java.math.BigInteger getP();
- }
-
- public class DHPrivateKeySpec implements java.security.spec.KeySpec {
- ctor public DHPrivateKeySpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger);
- method public java.math.BigInteger getG();
- method public java.math.BigInteger getP();
- method public java.math.BigInteger getX();
- }
-
- public class DHPublicKeySpec implements java.security.spec.KeySpec {
- ctor public DHPublicKeySpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger);
- method public java.math.BigInteger getG();
- method public java.math.BigInteger getP();
- method public java.math.BigInteger getY();
- }
-
- public class GCMParameterSpec implements java.security.spec.AlgorithmParameterSpec {
- ctor public GCMParameterSpec(int, byte[]);
- ctor public GCMParameterSpec(int, byte[], int, int);
- method public byte[] getIV();
- method public int getTLen();
- }
-
- public class IvParameterSpec implements java.security.spec.AlgorithmParameterSpec {
- ctor public IvParameterSpec(byte[]);
- ctor public IvParameterSpec(byte[], int, int);
- method public byte[] getIV();
- }
-
- public class OAEPParameterSpec implements java.security.spec.AlgorithmParameterSpec {
- ctor public OAEPParameterSpec(String, String, java.security.spec.AlgorithmParameterSpec, javax.crypto.spec.PSource);
- method public String getDigestAlgorithm();
- method public String getMGFAlgorithm();
- method public java.security.spec.AlgorithmParameterSpec getMGFParameters();
- method public javax.crypto.spec.PSource getPSource();
- field public static final javax.crypto.spec.OAEPParameterSpec DEFAULT;
- }
-
- public class PBEKeySpec implements java.security.spec.KeySpec {
- ctor public PBEKeySpec(char[]);
- ctor public PBEKeySpec(char[], byte[], int, int);
- ctor public PBEKeySpec(char[], byte[], int);
- method public final void clearPassword();
- method public final int getIterationCount();
- method public final int getKeyLength();
- method public final char[] getPassword();
- method public final byte[] getSalt();
- }
-
- public class PBEParameterSpec implements java.security.spec.AlgorithmParameterSpec {
- ctor public PBEParameterSpec(byte[], int);
- ctor public PBEParameterSpec(byte[], int, java.security.spec.AlgorithmParameterSpec);
- method public int getIterationCount();
- method public java.security.spec.AlgorithmParameterSpec getParameterSpec();
- method public byte[] getSalt();
- }
-
- public class PSource {
- ctor protected PSource(String);
- method public String getAlgorithm();
- }
-
- public static final class PSource.PSpecified extends javax.crypto.spec.PSource {
- ctor public PSource.PSpecified(byte[]);
- method public byte[] getValue();
- field public static final javax.crypto.spec.PSource.PSpecified DEFAULT;
- }
-
- public class RC2ParameterSpec implements java.security.spec.AlgorithmParameterSpec {
- ctor public RC2ParameterSpec(int);
- ctor public RC2ParameterSpec(int, byte[]);
- ctor public RC2ParameterSpec(int, byte[], int);
- method public int getEffectiveKeyBits();
- method public byte[] getIV();
- }
-
- public class RC5ParameterSpec implements java.security.spec.AlgorithmParameterSpec {
- ctor public RC5ParameterSpec(int, int, int);
- ctor public RC5ParameterSpec(int, int, int, byte[]);
- ctor public RC5ParameterSpec(int, int, int, byte[], int);
- method public byte[] getIV();
- method public int getRounds();
- method public int getVersion();
- method public int getWordSize();
- }
-
- public class SecretKeySpec implements java.security.spec.KeySpec javax.crypto.SecretKey {
- ctor public SecretKeySpec(byte[], String);
- ctor public SecretKeySpec(byte[], int, int, String);
- method public String getAlgorithm();
- method public byte[] getEncoded();
- method public String getFormat();
- }
-
-}
-
package javax.microedition.khronos.egl {
public interface EGL {
@@ -73024,1527 +55398,6 @@
}
-package javax.net {
-
- public abstract class ServerSocketFactory {
- ctor protected ServerSocketFactory();
- method public java.net.ServerSocket createServerSocket() throws java.io.IOException;
- method public abstract java.net.ServerSocket createServerSocket(int) throws java.io.IOException;
- method public abstract java.net.ServerSocket createServerSocket(int, int) throws java.io.IOException;
- method public abstract java.net.ServerSocket createServerSocket(int, int, java.net.InetAddress) throws java.io.IOException;
- method public static javax.net.ServerSocketFactory getDefault();
- }
-
- public abstract class SocketFactory {
- ctor protected SocketFactory();
- method public java.net.Socket createSocket() throws java.io.IOException;
- method public abstract java.net.Socket createSocket(String, int) throws java.io.IOException, java.net.UnknownHostException;
- method public abstract java.net.Socket createSocket(String, int, java.net.InetAddress, int) throws java.io.IOException, java.net.UnknownHostException;
- method public abstract java.net.Socket createSocket(java.net.InetAddress, int) throws java.io.IOException;
- method public abstract java.net.Socket createSocket(java.net.InetAddress, int, java.net.InetAddress, int) throws java.io.IOException;
- method public static javax.net.SocketFactory getDefault();
- }
-
-}
-
-package javax.net.ssl {
-
- public class CertPathTrustManagerParameters implements javax.net.ssl.ManagerFactoryParameters {
- ctor public CertPathTrustManagerParameters(java.security.cert.CertPathParameters);
- method public java.security.cert.CertPathParameters getParameters();
- }
-
- public abstract class ExtendedSSLSession implements javax.net.ssl.SSLSession {
- ctor public ExtendedSSLSession();
- method public abstract String[] getLocalSupportedSignatureAlgorithms();
- method public abstract String[] getPeerSupportedSignatureAlgorithms();
- method public java.util.List<javax.net.ssl.SNIServerName> getRequestedServerNames();
- }
-
- public class HandshakeCompletedEvent extends java.util.EventObject {
- ctor public HandshakeCompletedEvent(javax.net.ssl.SSLSocket, javax.net.ssl.SSLSession);
- method public String getCipherSuite();
- method public java.security.cert.Certificate[] getLocalCertificates();
- method public java.security.Principal getLocalPrincipal();
- method public javax.security.cert.X509Certificate[] getPeerCertificateChain() throws javax.net.ssl.SSLPeerUnverifiedException;
- method public java.security.cert.Certificate[] getPeerCertificates() throws javax.net.ssl.SSLPeerUnverifiedException;
- method public java.security.Principal getPeerPrincipal() throws javax.net.ssl.SSLPeerUnverifiedException;
- method public javax.net.ssl.SSLSession getSession();
- method public javax.net.ssl.SSLSocket getSocket();
- }
-
- public interface HandshakeCompletedListener extends java.util.EventListener {
- method public void handshakeCompleted(javax.net.ssl.HandshakeCompletedEvent);
- }
-
- public interface HostnameVerifier {
- method public boolean verify(String, javax.net.ssl.SSLSession);
- }
-
- public abstract class HttpsURLConnection extends java.net.HttpURLConnection {
- ctor protected HttpsURLConnection(java.net.URL);
- method public abstract String getCipherSuite();
- method public static javax.net.ssl.HostnameVerifier getDefaultHostnameVerifier();
- method public static javax.net.ssl.SSLSocketFactory getDefaultSSLSocketFactory();
- method public javax.net.ssl.HostnameVerifier getHostnameVerifier();
- method public abstract java.security.cert.Certificate[] getLocalCertificates();
- method public java.security.Principal getLocalPrincipal();
- method public java.security.Principal getPeerPrincipal() throws javax.net.ssl.SSLPeerUnverifiedException;
- method public javax.net.ssl.SSLSocketFactory getSSLSocketFactory();
- method public abstract java.security.cert.Certificate[] getServerCertificates() throws javax.net.ssl.SSLPeerUnverifiedException;
- method public static void setDefaultHostnameVerifier(javax.net.ssl.HostnameVerifier);
- method public static void setDefaultSSLSocketFactory(javax.net.ssl.SSLSocketFactory);
- method public void setHostnameVerifier(javax.net.ssl.HostnameVerifier);
- method public void setSSLSocketFactory(javax.net.ssl.SSLSocketFactory);
- field protected javax.net.ssl.HostnameVerifier hostnameVerifier;
- }
-
- public interface KeyManager {
- }
-
- public class KeyManagerFactory {
- ctor protected KeyManagerFactory(javax.net.ssl.KeyManagerFactorySpi, java.security.Provider, String);
- method public final String getAlgorithm();
- method public static final String getDefaultAlgorithm();
- method public static final javax.net.ssl.KeyManagerFactory getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static final javax.net.ssl.KeyManagerFactory getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static final javax.net.ssl.KeyManagerFactory getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public final javax.net.ssl.KeyManager[] getKeyManagers();
- method public final java.security.Provider getProvider();
- method public final void init(java.security.KeyStore, char[]) throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException;
- method public final void init(javax.net.ssl.ManagerFactoryParameters) throws java.security.InvalidAlgorithmParameterException;
- }
-
- public abstract class KeyManagerFactorySpi {
- ctor public KeyManagerFactorySpi();
- method protected abstract javax.net.ssl.KeyManager[] engineGetKeyManagers();
- method protected abstract void engineInit(java.security.KeyStore, char[]) throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException;
- method protected abstract void engineInit(javax.net.ssl.ManagerFactoryParameters) throws java.security.InvalidAlgorithmParameterException;
- }
-
- public class KeyStoreBuilderParameters implements javax.net.ssl.ManagerFactoryParameters {
- ctor public KeyStoreBuilderParameters(java.security.KeyStore.Builder);
- ctor public KeyStoreBuilderParameters(java.util.List<java.security.KeyStore.Builder>);
- method public java.util.List<java.security.KeyStore.Builder> getParameters();
- }
-
- public interface ManagerFactoryParameters {
- }
-
- public final class SNIHostName extends javax.net.ssl.SNIServerName {
- ctor public SNIHostName(String);
- ctor public SNIHostName(byte[]);
- method public static javax.net.ssl.SNIMatcher createSNIMatcher(String);
- method public String getAsciiName();
- }
-
- public abstract class SNIMatcher {
- ctor protected SNIMatcher(int);
- method public final int getType();
- method public abstract boolean matches(javax.net.ssl.SNIServerName);
- }
-
- public abstract class SNIServerName {
- ctor protected SNIServerName(int, byte[]);
- method public final byte[] getEncoded();
- method public final int getType();
- }
-
- public class SSLContext {
- ctor protected SSLContext(javax.net.ssl.SSLContextSpi, java.security.Provider, String);
- method public final javax.net.ssl.SSLEngine createSSLEngine();
- method public final javax.net.ssl.SSLEngine createSSLEngine(String, int);
- method public final javax.net.ssl.SSLSessionContext getClientSessionContext();
- method public static javax.net.ssl.SSLContext getDefault() throws java.security.NoSuchAlgorithmException;
- method public final javax.net.ssl.SSLParameters getDefaultSSLParameters();
- method public static javax.net.ssl.SSLContext getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static javax.net.ssl.SSLContext getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static javax.net.ssl.SSLContext getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public final String getProtocol();
- method public final java.security.Provider getProvider();
- method public final javax.net.ssl.SSLSessionContext getServerSessionContext();
- method public final javax.net.ssl.SSLServerSocketFactory getServerSocketFactory();
- method public final javax.net.ssl.SSLSocketFactory getSocketFactory();
- method public final javax.net.ssl.SSLParameters getSupportedSSLParameters();
- method public final void init(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], java.security.SecureRandom) throws java.security.KeyManagementException;
- method public static void setDefault(javax.net.ssl.SSLContext);
- }
-
- public abstract class SSLContextSpi {
- ctor public SSLContextSpi();
- method protected abstract javax.net.ssl.SSLEngine engineCreateSSLEngine();
- method protected abstract javax.net.ssl.SSLEngine engineCreateSSLEngine(String, int);
- method protected abstract javax.net.ssl.SSLSessionContext engineGetClientSessionContext();
- method protected javax.net.ssl.SSLParameters engineGetDefaultSSLParameters();
- method protected abstract javax.net.ssl.SSLSessionContext engineGetServerSessionContext();
- method protected abstract javax.net.ssl.SSLServerSocketFactory engineGetServerSocketFactory();
- method protected abstract javax.net.ssl.SSLSocketFactory engineGetSocketFactory();
- method protected javax.net.ssl.SSLParameters engineGetSupportedSSLParameters();
- method protected abstract void engineInit(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], java.security.SecureRandom) throws java.security.KeyManagementException;
- }
-
- public abstract class SSLEngine {
- ctor protected SSLEngine();
- ctor protected SSLEngine(String, int);
- method public abstract void beginHandshake() throws javax.net.ssl.SSLException;
- method public abstract void closeInbound() throws javax.net.ssl.SSLException;
- method public abstract void closeOutbound();
- method public String getApplicationProtocol();
- method public abstract Runnable getDelegatedTask();
- method public abstract boolean getEnableSessionCreation();
- method public abstract String[] getEnabledCipherSuites();
- method public abstract String[] getEnabledProtocols();
- method public String getHandshakeApplicationProtocol();
- method public java.util.function.BiFunction<javax.net.ssl.SSLEngine,java.util.List<java.lang.String>,java.lang.String> getHandshakeApplicationProtocolSelector();
- method public javax.net.ssl.SSLSession getHandshakeSession();
- method public abstract javax.net.ssl.SSLEngineResult.HandshakeStatus getHandshakeStatus();
- method public abstract boolean getNeedClientAuth();
- method public String getPeerHost();
- method public int getPeerPort();
- method public javax.net.ssl.SSLParameters getSSLParameters();
- method public abstract javax.net.ssl.SSLSession getSession();
- method public abstract String[] getSupportedCipherSuites();
- method public abstract String[] getSupportedProtocols();
- method public abstract boolean getUseClientMode();
- method public abstract boolean getWantClientAuth();
- method public abstract boolean isInboundDone();
- method public abstract boolean isOutboundDone();
- method public abstract void setEnableSessionCreation(boolean);
- method public abstract void setEnabledCipherSuites(String[]);
- method public abstract void setEnabledProtocols(String[]);
- method public void setHandshakeApplicationProtocolSelector(java.util.function.BiFunction<javax.net.ssl.SSLEngine,java.util.List<java.lang.String>,java.lang.String>);
- method public abstract void setNeedClientAuth(boolean);
- method public void setSSLParameters(javax.net.ssl.SSLParameters);
- method public abstract void setUseClientMode(boolean);
- method public abstract void setWantClientAuth(boolean);
- method public javax.net.ssl.SSLEngineResult unwrap(java.nio.ByteBuffer, java.nio.ByteBuffer) throws javax.net.ssl.SSLException;
- method public javax.net.ssl.SSLEngineResult unwrap(java.nio.ByteBuffer, java.nio.ByteBuffer[]) throws javax.net.ssl.SSLException;
- method public abstract javax.net.ssl.SSLEngineResult unwrap(java.nio.ByteBuffer, java.nio.ByteBuffer[], int, int) throws javax.net.ssl.SSLException;
- method public javax.net.ssl.SSLEngineResult wrap(java.nio.ByteBuffer, java.nio.ByteBuffer) throws javax.net.ssl.SSLException;
- method public javax.net.ssl.SSLEngineResult wrap(java.nio.ByteBuffer[], java.nio.ByteBuffer) throws javax.net.ssl.SSLException;
- method public abstract javax.net.ssl.SSLEngineResult wrap(java.nio.ByteBuffer[], int, int, java.nio.ByteBuffer) throws javax.net.ssl.SSLException;
- }
-
- public class SSLEngineResult {
- ctor public SSLEngineResult(javax.net.ssl.SSLEngineResult.Status, javax.net.ssl.SSLEngineResult.HandshakeStatus, int, int);
- method public final int bytesConsumed();
- method public final int bytesProduced();
- method public final javax.net.ssl.SSLEngineResult.HandshakeStatus getHandshakeStatus();
- method public final javax.net.ssl.SSLEngineResult.Status getStatus();
- }
-
- public enum SSLEngineResult.HandshakeStatus {
- enum_constant public static final javax.net.ssl.SSLEngineResult.HandshakeStatus FINISHED;
- enum_constant public static final javax.net.ssl.SSLEngineResult.HandshakeStatus NEED_TASK;
- enum_constant public static final javax.net.ssl.SSLEngineResult.HandshakeStatus NEED_UNWRAP;
- enum_constant public static final javax.net.ssl.SSLEngineResult.HandshakeStatus NEED_WRAP;
- enum_constant public static final javax.net.ssl.SSLEngineResult.HandshakeStatus NOT_HANDSHAKING;
- }
-
- public enum SSLEngineResult.Status {
- enum_constant public static final javax.net.ssl.SSLEngineResult.Status BUFFER_OVERFLOW;
- enum_constant public static final javax.net.ssl.SSLEngineResult.Status BUFFER_UNDERFLOW;
- enum_constant public static final javax.net.ssl.SSLEngineResult.Status CLOSED;
- enum_constant public static final javax.net.ssl.SSLEngineResult.Status OK;
- }
-
- public class SSLException extends java.io.IOException {
- ctor public SSLException(String);
- ctor public SSLException(String, Throwable);
- ctor public SSLException(Throwable);
- }
-
- public class SSLHandshakeException extends javax.net.ssl.SSLException {
- ctor public SSLHandshakeException(String);
- }
-
- public class SSLKeyException extends javax.net.ssl.SSLException {
- ctor public SSLKeyException(String);
- }
-
- public class SSLParameters {
- ctor public SSLParameters();
- ctor public SSLParameters(String[]);
- ctor public SSLParameters(String[], String[]);
- method public java.security.AlgorithmConstraints getAlgorithmConstraints();
- method public String[] getApplicationProtocols();
- method public String[] getCipherSuites();
- method public String getEndpointIdentificationAlgorithm();
- method public boolean getNeedClientAuth();
- method public String[] getProtocols();
- method public final java.util.Collection<javax.net.ssl.SNIMatcher> getSNIMatchers();
- method public final java.util.List<javax.net.ssl.SNIServerName> getServerNames();
- method public final boolean getUseCipherSuitesOrder();
- method public boolean getWantClientAuth();
- method public void setAlgorithmConstraints(java.security.AlgorithmConstraints);
- method public void setApplicationProtocols(String[]);
- method public void setCipherSuites(String[]);
- method public void setEndpointIdentificationAlgorithm(String);
- method public void setNeedClientAuth(boolean);
- method public void setProtocols(String[]);
- method public final void setSNIMatchers(java.util.Collection<javax.net.ssl.SNIMatcher>);
- method public final void setServerNames(java.util.List<javax.net.ssl.SNIServerName>);
- method public final void setUseCipherSuitesOrder(boolean);
- method public void setWantClientAuth(boolean);
- }
-
- public class SSLPeerUnverifiedException extends javax.net.ssl.SSLException {
- ctor public SSLPeerUnverifiedException(String);
- }
-
- public final class SSLPermission extends java.security.BasicPermission {
- ctor public SSLPermission(String);
- ctor public SSLPermission(String, String);
- }
-
- public class SSLProtocolException extends javax.net.ssl.SSLException {
- ctor public SSLProtocolException(String);
- }
-
- public abstract class SSLServerSocket extends java.net.ServerSocket {
- ctor protected SSLServerSocket() throws java.io.IOException;
- ctor protected SSLServerSocket(int) throws java.io.IOException;
- ctor protected SSLServerSocket(int, int) throws java.io.IOException;
- ctor protected SSLServerSocket(int, int, java.net.InetAddress) throws java.io.IOException;
- method public abstract boolean getEnableSessionCreation();
- method public abstract String[] getEnabledCipherSuites();
- method public abstract String[] getEnabledProtocols();
- method public abstract boolean getNeedClientAuth();
- method public javax.net.ssl.SSLParameters getSSLParameters();
- method public abstract String[] getSupportedCipherSuites();
- method public abstract String[] getSupportedProtocols();
- method public abstract boolean getUseClientMode();
- method public abstract boolean getWantClientAuth();
- method public abstract void setEnableSessionCreation(boolean);
- method public abstract void setEnabledCipherSuites(String[]);
- method public abstract void setEnabledProtocols(String[]);
- method public abstract void setNeedClientAuth(boolean);
- method public void setSSLParameters(javax.net.ssl.SSLParameters);
- method public abstract void setUseClientMode(boolean);
- method public abstract void setWantClientAuth(boolean);
- }
-
- public abstract class SSLServerSocketFactory extends javax.net.ServerSocketFactory {
- ctor protected SSLServerSocketFactory();
- method public static javax.net.ServerSocketFactory getDefault();
- method public abstract String[] getDefaultCipherSuites();
- method public abstract String[] getSupportedCipherSuites();
- }
-
- public interface SSLSession {
- method public int getApplicationBufferSize();
- method public String getCipherSuite();
- method public long getCreationTime();
- method public byte[] getId();
- method public long getLastAccessedTime();
- method public java.security.cert.Certificate[] getLocalCertificates();
- method public java.security.Principal getLocalPrincipal();
- method public int getPacketBufferSize();
- method public javax.security.cert.X509Certificate[] getPeerCertificateChain() throws javax.net.ssl.SSLPeerUnverifiedException;
- method public java.security.cert.Certificate[] getPeerCertificates() throws javax.net.ssl.SSLPeerUnverifiedException;
- method public String getPeerHost();
- method public int getPeerPort();
- method public java.security.Principal getPeerPrincipal() throws javax.net.ssl.SSLPeerUnverifiedException;
- method public String getProtocol();
- method public javax.net.ssl.SSLSessionContext getSessionContext();
- method public Object getValue(String);
- method public String[] getValueNames();
- method public void invalidate();
- method public boolean isValid();
- method public void putValue(String, Object);
- method public void removeValue(String);
- }
-
- public class SSLSessionBindingEvent extends java.util.EventObject {
- ctor public SSLSessionBindingEvent(javax.net.ssl.SSLSession, String);
- method public String getName();
- method public javax.net.ssl.SSLSession getSession();
- }
-
- public interface SSLSessionBindingListener extends java.util.EventListener {
- method public void valueBound(javax.net.ssl.SSLSessionBindingEvent);
- method public void valueUnbound(javax.net.ssl.SSLSessionBindingEvent);
- }
-
- public interface SSLSessionContext {
- method public java.util.Enumeration<byte[]> getIds();
- method public javax.net.ssl.SSLSession getSession(byte[]);
- method public int getSessionCacheSize();
- method public int getSessionTimeout();
- method public void setSessionCacheSize(int) throws java.lang.IllegalArgumentException;
- method public void setSessionTimeout(int) throws java.lang.IllegalArgumentException;
- }
-
- public abstract class SSLSocket extends java.net.Socket {
- ctor protected SSLSocket();
- ctor protected SSLSocket(String, int) throws java.io.IOException, java.net.UnknownHostException;
- ctor protected SSLSocket(java.net.InetAddress, int) throws java.io.IOException;
- ctor protected SSLSocket(String, int, java.net.InetAddress, int) throws java.io.IOException, java.net.UnknownHostException;
- ctor protected SSLSocket(java.net.InetAddress, int, java.net.InetAddress, int) throws java.io.IOException;
- method public abstract void addHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener);
- method public String getApplicationProtocol();
- method public abstract boolean getEnableSessionCreation();
- method public abstract String[] getEnabledCipherSuites();
- method public abstract String[] getEnabledProtocols();
- method public String getHandshakeApplicationProtocol();
- method public java.util.function.BiFunction<javax.net.ssl.SSLSocket,java.util.List<java.lang.String>,java.lang.String> getHandshakeApplicationProtocolSelector();
- method public javax.net.ssl.SSLSession getHandshakeSession();
- method public abstract boolean getNeedClientAuth();
- method public javax.net.ssl.SSLParameters getSSLParameters();
- method public abstract javax.net.ssl.SSLSession getSession();
- method public abstract String[] getSupportedCipherSuites();
- method public abstract String[] getSupportedProtocols();
- method public abstract boolean getUseClientMode();
- method public abstract boolean getWantClientAuth();
- method public abstract void removeHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener);
- method public abstract void setEnableSessionCreation(boolean);
- method public abstract void setEnabledCipherSuites(String[]);
- method public abstract void setEnabledProtocols(String[]);
- method public void setHandshakeApplicationProtocolSelector(java.util.function.BiFunction<javax.net.ssl.SSLSocket,java.util.List<java.lang.String>,java.lang.String>);
- method public abstract void setNeedClientAuth(boolean);
- method public void setSSLParameters(javax.net.ssl.SSLParameters);
- method public abstract void setUseClientMode(boolean);
- method public abstract void setWantClientAuth(boolean);
- method public abstract void startHandshake() throws java.io.IOException;
- }
-
- public abstract class SSLSocketFactory extends javax.net.SocketFactory {
- ctor public SSLSocketFactory();
- method public abstract java.net.Socket createSocket(java.net.Socket, String, int, boolean) throws java.io.IOException;
- method public static javax.net.SocketFactory getDefault();
- method public abstract String[] getDefaultCipherSuites();
- method public abstract String[] getSupportedCipherSuites();
- }
-
- public final class StandardConstants {
- field public static final int SNI_HOST_NAME = 0; // 0x0
- }
-
- public interface TrustManager {
- }
-
- public class TrustManagerFactory {
- ctor protected TrustManagerFactory(javax.net.ssl.TrustManagerFactorySpi, java.security.Provider, String);
- method public final String getAlgorithm();
- method public static final String getDefaultAlgorithm();
- method public static final javax.net.ssl.TrustManagerFactory getInstance(String) throws java.security.NoSuchAlgorithmException;
- method public static final javax.net.ssl.TrustManagerFactory getInstance(String, String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException;
- method public static final javax.net.ssl.TrustManagerFactory getInstance(String, java.security.Provider) throws java.security.NoSuchAlgorithmException;
- method public final java.security.Provider getProvider();
- method public final javax.net.ssl.TrustManager[] getTrustManagers();
- method public final void init(java.security.KeyStore) throws java.security.KeyStoreException;
- method public final void init(javax.net.ssl.ManagerFactoryParameters) throws java.security.InvalidAlgorithmParameterException;
- }
-
- public abstract class TrustManagerFactorySpi {
- ctor public TrustManagerFactorySpi();
- method protected abstract javax.net.ssl.TrustManager[] engineGetTrustManagers();
- method protected abstract void engineInit(java.security.KeyStore) throws java.security.KeyStoreException;
- method protected abstract void engineInit(javax.net.ssl.ManagerFactoryParameters) throws java.security.InvalidAlgorithmParameterException;
- }
-
- public abstract class X509ExtendedKeyManager implements javax.net.ssl.X509KeyManager {
- ctor protected X509ExtendedKeyManager();
- method public String chooseEngineClientAlias(String[], java.security.Principal[], javax.net.ssl.SSLEngine);
- method public String chooseEngineServerAlias(String, java.security.Principal[], javax.net.ssl.SSLEngine);
- }
-
- public abstract class X509ExtendedTrustManager implements javax.net.ssl.X509TrustManager {
- ctor public X509ExtendedTrustManager();
- method public abstract void checkClientTrusted(java.security.cert.X509Certificate[], String, java.net.Socket) throws java.security.cert.CertificateException;
- method public abstract void checkClientTrusted(java.security.cert.X509Certificate[], String, javax.net.ssl.SSLEngine) throws java.security.cert.CertificateException;
- method public abstract void checkServerTrusted(java.security.cert.X509Certificate[], String, java.net.Socket) throws java.security.cert.CertificateException;
- method public abstract void checkServerTrusted(java.security.cert.X509Certificate[], String, javax.net.ssl.SSLEngine) throws java.security.cert.CertificateException;
- }
-
- public interface X509KeyManager extends javax.net.ssl.KeyManager {
- method public String chooseClientAlias(String[], java.security.Principal[], java.net.Socket);
- method public String chooseServerAlias(String, java.security.Principal[], java.net.Socket);
- method public java.security.cert.X509Certificate[] getCertificateChain(String);
- method public String[] getClientAliases(String, java.security.Principal[]);
- method public java.security.PrivateKey getPrivateKey(String);
- method public String[] getServerAliases(String, java.security.Principal[]);
- }
-
- public interface X509TrustManager extends javax.net.ssl.TrustManager {
- method public void checkClientTrusted(java.security.cert.X509Certificate[], String) throws java.security.cert.CertificateException;
- method public void checkServerTrusted(java.security.cert.X509Certificate[], String) throws java.security.cert.CertificateException;
- method public java.security.cert.X509Certificate[] getAcceptedIssuers();
- }
-
-}
-
-package javax.security.auth {
-
- public final class AuthPermission extends java.security.BasicPermission {
- ctor public AuthPermission(String);
- ctor public AuthPermission(String, String);
- }
-
- public class DestroyFailedException extends java.lang.Exception {
- ctor public DestroyFailedException();
- ctor public DestroyFailedException(String);
- }
-
- public interface Destroyable {
- method public default void destroy() throws javax.security.auth.DestroyFailedException;
- method public default boolean isDestroyed();
- }
-
- public final class PrivateCredentialPermission extends java.security.Permission {
- ctor public PrivateCredentialPermission(String, String);
- method public String getActions();
- method public String getCredentialClass();
- method public String[][] getPrincipals();
- method public boolean implies(java.security.Permission);
- }
-
- public final class Subject implements java.io.Serializable {
- ctor public Subject();
- ctor public Subject(boolean, java.util.Set<? extends java.security.Principal>, java.util.Set<?>, java.util.Set<?>);
- method public static <T> T doAs(javax.security.auth.Subject, java.security.PrivilegedAction<T>);
- method public static <T> T doAs(javax.security.auth.Subject, java.security.PrivilegedExceptionAction<T>) throws java.security.PrivilegedActionException;
- method public static <T> T doAsPrivileged(javax.security.auth.Subject, java.security.PrivilegedAction<T>, java.security.AccessControlContext);
- method public static <T> T doAsPrivileged(javax.security.auth.Subject, java.security.PrivilegedExceptionAction<T>, java.security.AccessControlContext) throws java.security.PrivilegedActionException;
- method public java.util.Set<java.security.Principal> getPrincipals();
- method public <T extends java.security.Principal> java.util.Set<T> getPrincipals(Class<T>);
- method public java.util.Set<java.lang.Object> getPrivateCredentials();
- method public <T> java.util.Set<T> getPrivateCredentials(Class<T>);
- method public java.util.Set<java.lang.Object> getPublicCredentials();
- method public <T> java.util.Set<T> getPublicCredentials(Class<T>);
- method public static javax.security.auth.Subject getSubject(java.security.AccessControlContext);
- method public boolean isReadOnly();
- method public void setReadOnly();
- }
-
- public class SubjectDomainCombiner implements java.security.DomainCombiner {
- ctor public SubjectDomainCombiner(javax.security.auth.Subject);
- method public java.security.ProtectionDomain[] combine(java.security.ProtectionDomain[], java.security.ProtectionDomain[]);
- method public javax.security.auth.Subject getSubject();
- }
-
-}
-
-package javax.security.auth.callback {
-
- public interface Callback {
- }
-
- public interface CallbackHandler {
- method public void handle(javax.security.auth.callback.Callback[]) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException;
- }
-
- public class PasswordCallback implements javax.security.auth.callback.Callback java.io.Serializable {
- ctor public PasswordCallback(String, boolean);
- method public void clearPassword();
- method public char[] getPassword();
- method public String getPrompt();
- method public boolean isEchoOn();
- method public void setPassword(char[]);
- }
-
- public class UnsupportedCallbackException extends java.lang.Exception {
- ctor public UnsupportedCallbackException(javax.security.auth.callback.Callback);
- ctor public UnsupportedCallbackException(javax.security.auth.callback.Callback, String);
- method public javax.security.auth.callback.Callback getCallback();
- }
-
-}
-
-package javax.security.auth.login {
-
- public class LoginException extends java.security.GeneralSecurityException {
- ctor public LoginException();
- ctor public LoginException(String);
- }
-
-}
-
-package javax.security.auth.x500 {
-
- public final class X500Principal implements java.security.Principal java.io.Serializable {
- ctor public X500Principal(String);
- ctor public X500Principal(String, java.util.Map<java.lang.String,java.lang.String>);
- ctor public X500Principal(byte[]);
- ctor public X500Principal(java.io.InputStream);
- method public byte[] getEncoded();
- method public String getName();
- method public String getName(String);
- method public String getName(String, java.util.Map<java.lang.String,java.lang.String>);
- field public static final String CANONICAL = "CANONICAL";
- field public static final String RFC1779 = "RFC1779";
- field public static final String RFC2253 = "RFC2253";
- }
-
-}
-
-package javax.security.cert {
-
- public abstract class Certificate {
- ctor public Certificate();
- method public abstract byte[] getEncoded() throws javax.security.cert.CertificateEncodingException;
- method public abstract java.security.PublicKey getPublicKey();
- method public abstract String toString();
- method public abstract void verify(java.security.PublicKey) throws javax.security.cert.CertificateException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, java.security.SignatureException;
- method public abstract void verify(java.security.PublicKey, String) throws javax.security.cert.CertificateException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, java.security.SignatureException;
- }
-
- public class CertificateEncodingException extends javax.security.cert.CertificateException {
- ctor public CertificateEncodingException();
- ctor public CertificateEncodingException(String);
- }
-
- public class CertificateException extends java.lang.Exception {
- ctor public CertificateException();
- ctor public CertificateException(String);
- }
-
- public class CertificateExpiredException extends javax.security.cert.CertificateException {
- ctor public CertificateExpiredException();
- ctor public CertificateExpiredException(String);
- }
-
- public class CertificateNotYetValidException extends javax.security.cert.CertificateException {
- ctor public CertificateNotYetValidException();
- ctor public CertificateNotYetValidException(String);
- }
-
- public class CertificateParsingException extends javax.security.cert.CertificateException {
- ctor public CertificateParsingException();
- ctor public CertificateParsingException(String);
- }
-
- public abstract class X509Certificate extends javax.security.cert.Certificate {
- ctor public X509Certificate();
- method public abstract void checkValidity() throws javax.security.cert.CertificateExpiredException, javax.security.cert.CertificateNotYetValidException;
- method public abstract void checkValidity(java.util.Date) throws javax.security.cert.CertificateExpiredException, javax.security.cert.CertificateNotYetValidException;
- method public static final javax.security.cert.X509Certificate getInstance(java.io.InputStream) throws javax.security.cert.CertificateException;
- method public static final javax.security.cert.X509Certificate getInstance(byte[]) throws javax.security.cert.CertificateException;
- method public abstract java.security.Principal getIssuerDN();
- method public abstract java.util.Date getNotAfter();
- method public abstract java.util.Date getNotBefore();
- method public abstract java.math.BigInteger getSerialNumber();
- method public abstract String getSigAlgName();
- method public abstract String getSigAlgOID();
- method public abstract byte[] getSigAlgParams();
- method public abstract java.security.Principal getSubjectDN();
- method public abstract int getVersion();
- }
-
-}
-
-package javax.sql {
-
- public interface CommonDataSource {
- method public java.io.PrintWriter getLogWriter() throws java.sql.SQLException;
- method public int getLoginTimeout() throws java.sql.SQLException;
- method public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException;
- method public void setLogWriter(java.io.PrintWriter) throws java.sql.SQLException;
- method public void setLoginTimeout(int) throws java.sql.SQLException;
- }
-
- public class ConnectionEvent extends java.util.EventObject {
- ctor public ConnectionEvent(javax.sql.PooledConnection);
- ctor public ConnectionEvent(javax.sql.PooledConnection, java.sql.SQLException);
- method public java.sql.SQLException getSQLException();
- }
-
- public interface ConnectionEventListener extends java.util.EventListener {
- method public void connectionClosed(javax.sql.ConnectionEvent);
- method public void connectionErrorOccurred(javax.sql.ConnectionEvent);
- }
-
- public interface ConnectionPoolDataSource extends javax.sql.CommonDataSource {
- method public javax.sql.PooledConnection getPooledConnection() throws java.sql.SQLException;
- method public javax.sql.PooledConnection getPooledConnection(String, String) throws java.sql.SQLException;
- }
-
- public interface DataSource extends javax.sql.CommonDataSource java.sql.Wrapper {
- method public java.sql.Connection getConnection() throws java.sql.SQLException;
- method public java.sql.Connection getConnection(String, String) throws java.sql.SQLException;
- }
-
- public interface PooledConnection {
- method public void addConnectionEventListener(javax.sql.ConnectionEventListener);
- method public void addStatementEventListener(javax.sql.StatementEventListener);
- method public void close() throws java.sql.SQLException;
- method public java.sql.Connection getConnection() throws java.sql.SQLException;
- method public void removeConnectionEventListener(javax.sql.ConnectionEventListener);
- method public void removeStatementEventListener(javax.sql.StatementEventListener);
- }
-
- public interface RowSet extends java.sql.ResultSet {
- method public void addRowSetListener(javax.sql.RowSetListener);
- method public void clearParameters() throws java.sql.SQLException;
- method public void execute() throws java.sql.SQLException;
- method public String getCommand();
- method public String getDataSourceName();
- method public boolean getEscapeProcessing() throws java.sql.SQLException;
- method public int getMaxFieldSize() throws java.sql.SQLException;
- method public int getMaxRows() throws java.sql.SQLException;
- method public String getPassword();
- method public int getQueryTimeout() throws java.sql.SQLException;
- method public int getTransactionIsolation();
- method public java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap() throws java.sql.SQLException;
- method public String getUrl() throws java.sql.SQLException;
- method public String getUsername();
- method public boolean isReadOnly();
- method public void removeRowSetListener(javax.sql.RowSetListener);
- method public void setArray(int, java.sql.Array) throws java.sql.SQLException;
- method public void setAsciiStream(int, java.io.InputStream, int) throws java.sql.SQLException;
- method public void setAsciiStream(String, java.io.InputStream, int) throws java.sql.SQLException;
- method public void setAsciiStream(int, java.io.InputStream) throws java.sql.SQLException;
- method public void setAsciiStream(String, java.io.InputStream) throws java.sql.SQLException;
- method public void setBigDecimal(int, java.math.BigDecimal) throws java.sql.SQLException;
- method public void setBigDecimal(String, java.math.BigDecimal) throws java.sql.SQLException;
- method public void setBinaryStream(int, java.io.InputStream, int) throws java.sql.SQLException;
- method public void setBinaryStream(String, java.io.InputStream, int) throws java.sql.SQLException;
- method public void setBinaryStream(int, java.io.InputStream) throws java.sql.SQLException;
- method public void setBinaryStream(String, java.io.InputStream) throws java.sql.SQLException;
- method public void setBlob(int, java.sql.Blob) throws java.sql.SQLException;
- method public void setBlob(int, java.io.InputStream, long) throws java.sql.SQLException;
- method public void setBlob(int, java.io.InputStream) throws java.sql.SQLException;
- method public void setBlob(String, java.io.InputStream, long) throws java.sql.SQLException;
- method public void setBlob(String, java.sql.Blob) throws java.sql.SQLException;
- method public void setBlob(String, java.io.InputStream) throws java.sql.SQLException;
- method public void setBoolean(int, boolean) throws java.sql.SQLException;
- method public void setBoolean(String, boolean) throws java.sql.SQLException;
- method public void setByte(int, byte) throws java.sql.SQLException;
- method public void setByte(String, byte) throws java.sql.SQLException;
- method public void setBytes(int, byte[]) throws java.sql.SQLException;
- method public void setBytes(String, byte[]) throws java.sql.SQLException;
- method public void setCharacterStream(int, java.io.Reader, int) throws java.sql.SQLException;
- method public void setCharacterStream(String, java.io.Reader, int) throws java.sql.SQLException;
- method public void setCharacterStream(int, java.io.Reader) throws java.sql.SQLException;
- method public void setCharacterStream(String, java.io.Reader) throws java.sql.SQLException;
- method public void setClob(int, java.sql.Clob) throws java.sql.SQLException;
- method public void setClob(int, java.io.Reader, long) throws java.sql.SQLException;
- method public void setClob(int, java.io.Reader) throws java.sql.SQLException;
- method public void setClob(String, java.io.Reader, long) throws java.sql.SQLException;
- method public void setClob(String, java.sql.Clob) throws java.sql.SQLException;
- method public void setClob(String, java.io.Reader) throws java.sql.SQLException;
- method public void setCommand(String) throws java.sql.SQLException;
- method public void setConcurrency(int) throws java.sql.SQLException;
- method public void setDataSourceName(String) throws java.sql.SQLException;
- method public void setDate(int, java.sql.Date) throws java.sql.SQLException;
- method public void setDate(int, java.sql.Date, java.util.Calendar) throws java.sql.SQLException;
- method public void setDate(String, java.sql.Date) throws java.sql.SQLException;
- method public void setDate(String, java.sql.Date, java.util.Calendar) throws java.sql.SQLException;
- method public void setDouble(int, double) throws java.sql.SQLException;
- method public void setDouble(String, double) throws java.sql.SQLException;
- method public void setEscapeProcessing(boolean) throws java.sql.SQLException;
- method public void setFloat(int, float) throws java.sql.SQLException;
- method public void setFloat(String, float) throws java.sql.SQLException;
- method public void setInt(int, int) throws java.sql.SQLException;
- method public void setInt(String, int) throws java.sql.SQLException;
- method public void setLong(int, long) throws java.sql.SQLException;
- method public void setLong(String, long) throws java.sql.SQLException;
- method public void setMaxFieldSize(int) throws java.sql.SQLException;
- method public void setMaxRows(int) throws java.sql.SQLException;
- method public void setNCharacterStream(int, java.io.Reader) throws java.sql.SQLException;
- method public void setNCharacterStream(int, java.io.Reader, long) throws java.sql.SQLException;
- method public void setNCharacterStream(String, java.io.Reader, long) throws java.sql.SQLException;
- method public void setNCharacterStream(String, java.io.Reader) throws java.sql.SQLException;
- method public void setNClob(String, java.sql.NClob) throws java.sql.SQLException;
- method public void setNClob(String, java.io.Reader, long) throws java.sql.SQLException;
- method public void setNClob(String, java.io.Reader) throws java.sql.SQLException;
- method public void setNClob(int, java.io.Reader, long) throws java.sql.SQLException;
- method public void setNClob(int, java.sql.NClob) throws java.sql.SQLException;
- method public void setNClob(int, java.io.Reader) throws java.sql.SQLException;
- method public void setNString(int, String) throws java.sql.SQLException;
- method public void setNString(String, String) throws java.sql.SQLException;
- method public void setNull(int, int) throws java.sql.SQLException;
- method public void setNull(String, int) throws java.sql.SQLException;
- method public void setNull(int, int, String) throws java.sql.SQLException;
- method public void setNull(String, int, String) throws java.sql.SQLException;
- method public void setObject(int, Object, int, int) throws java.sql.SQLException;
- method public void setObject(String, Object, int, int) throws java.sql.SQLException;
- method public void setObject(int, Object, int) throws java.sql.SQLException;
- method public void setObject(String, Object, int) throws java.sql.SQLException;
- method public void setObject(String, Object) throws java.sql.SQLException;
- method public void setObject(int, Object) throws java.sql.SQLException;
- method public void setPassword(String) throws java.sql.SQLException;
- method public void setQueryTimeout(int) throws java.sql.SQLException;
- method public void setReadOnly(boolean) throws java.sql.SQLException;
- method public void setRef(int, java.sql.Ref) throws java.sql.SQLException;
- method public void setRowId(int, java.sql.RowId) throws java.sql.SQLException;
- method public void setRowId(String, java.sql.RowId) throws java.sql.SQLException;
- method public void setSQLXML(int, java.sql.SQLXML) throws java.sql.SQLException;
- method public void setSQLXML(String, java.sql.SQLXML) throws java.sql.SQLException;
- method public void setShort(int, short) throws java.sql.SQLException;
- method public void setShort(String, short) throws java.sql.SQLException;
- method public void setString(int, String) throws java.sql.SQLException;
- method public void setString(String, String) throws java.sql.SQLException;
- method public void setTime(int, java.sql.Time) throws java.sql.SQLException;
- method public void setTime(int, java.sql.Time, java.util.Calendar) throws java.sql.SQLException;
- method public void setTime(String, java.sql.Time) throws java.sql.SQLException;
- method public void setTime(String, java.sql.Time, java.util.Calendar) throws java.sql.SQLException;
- method public void setTimestamp(int, java.sql.Timestamp) throws java.sql.SQLException;
- method public void setTimestamp(String, java.sql.Timestamp) throws java.sql.SQLException;
- method public void setTimestamp(int, java.sql.Timestamp, java.util.Calendar) throws java.sql.SQLException;
- method public void setTimestamp(String, java.sql.Timestamp, java.util.Calendar) throws java.sql.SQLException;
- method public void setTransactionIsolation(int) throws java.sql.SQLException;
- method public void setType(int) throws java.sql.SQLException;
- method public void setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>>) throws java.sql.SQLException;
- method public void setURL(int, java.net.URL) throws java.sql.SQLException;
- method public void setUrl(String) throws java.sql.SQLException;
- method public void setUsername(String) throws java.sql.SQLException;
- }
-
- public class RowSetEvent extends java.util.EventObject {
- ctor public RowSetEvent(javax.sql.RowSet);
- }
-
- public interface RowSetInternal {
- method public java.sql.Connection getConnection() throws java.sql.SQLException;
- method public java.sql.ResultSet getOriginal() throws java.sql.SQLException;
- method public java.sql.ResultSet getOriginalRow() throws java.sql.SQLException;
- method public Object[] getParams() throws java.sql.SQLException;
- method public void setMetaData(javax.sql.RowSetMetaData) throws java.sql.SQLException;
- }
-
- public interface RowSetListener extends java.util.EventListener {
- method public void cursorMoved(javax.sql.RowSetEvent);
- method public void rowChanged(javax.sql.RowSetEvent);
- method public void rowSetChanged(javax.sql.RowSetEvent);
- }
-
- public interface RowSetMetaData extends java.sql.ResultSetMetaData {
- method public void setAutoIncrement(int, boolean) throws java.sql.SQLException;
- method public void setCaseSensitive(int, boolean) throws java.sql.SQLException;
- method public void setCatalogName(int, String) throws java.sql.SQLException;
- method public void setColumnCount(int) throws java.sql.SQLException;
- method public void setColumnDisplaySize(int, int) throws java.sql.SQLException;
- method public void setColumnLabel(int, String) throws java.sql.SQLException;
- method public void setColumnName(int, String) throws java.sql.SQLException;
- method public void setColumnType(int, int) throws java.sql.SQLException;
- method public void setColumnTypeName(int, String) throws java.sql.SQLException;
- method public void setCurrency(int, boolean) throws java.sql.SQLException;
- method public void setNullable(int, int) throws java.sql.SQLException;
- method public void setPrecision(int, int) throws java.sql.SQLException;
- method public void setScale(int, int) throws java.sql.SQLException;
- method public void setSchemaName(int, String) throws java.sql.SQLException;
- method public void setSearchable(int, boolean) throws java.sql.SQLException;
- method public void setSigned(int, boolean) throws java.sql.SQLException;
- method public void setTableName(int, String) throws java.sql.SQLException;
- }
-
- public interface RowSetReader {
- method public void readData(javax.sql.RowSetInternal) throws java.sql.SQLException;
- }
-
- public interface RowSetWriter {
- method public boolean writeData(javax.sql.RowSetInternal) throws java.sql.SQLException;
- }
-
- public class StatementEvent extends java.util.EventObject {
- ctor public StatementEvent(javax.sql.PooledConnection, java.sql.PreparedStatement);
- ctor public StatementEvent(javax.sql.PooledConnection, java.sql.PreparedStatement, java.sql.SQLException);
- method public java.sql.SQLException getSQLException();
- method public java.sql.PreparedStatement getStatement();
- }
-
- public interface StatementEventListener extends java.util.EventListener {
- method public void statementClosed(javax.sql.StatementEvent);
- method public void statementErrorOccurred(javax.sql.StatementEvent);
- }
-
-}
-
-package javax.xml {
-
- public final class XMLConstants {
- field public static final String DEFAULT_NS_PREFIX = "";
- field public static final String FEATURE_SECURE_PROCESSING = "http://javax.xml.XMLConstants/feature/secure-processing";
- field public static final String NULL_NS_URI = "";
- field public static final String RELAXNG_NS_URI = "http://relaxng.org/ns/structure/1.0";
- field public static final String W3C_XML_SCHEMA_INSTANCE_NS_URI = "http://www.w3.org/2001/XMLSchema-instance";
- field public static final String W3C_XML_SCHEMA_NS_URI = "http://www.w3.org/2001/XMLSchema";
- field public static final String W3C_XPATH_DATATYPE_NS_URI = "http://www.w3.org/2003/11/xpath-datatypes";
- field public static final String XMLNS_ATTRIBUTE = "xmlns";
- field public static final String XMLNS_ATTRIBUTE_NS_URI = "http://www.w3.org/2000/xmlns/";
- field public static final String XML_DTD_NS_URI = "http://www.w3.org/TR/REC-xml";
- field public static final String XML_NS_PREFIX = "xml";
- field public static final String XML_NS_URI = "http://www.w3.org/XML/1998/namespace";
- }
-
-}
-
-package javax.xml.datatype {
-
- public class DatatypeConfigurationException extends java.lang.Exception {
- ctor public DatatypeConfigurationException();
- ctor public DatatypeConfigurationException(String);
- ctor public DatatypeConfigurationException(String, Throwable);
- ctor public DatatypeConfigurationException(Throwable);
- }
-
- public final class DatatypeConstants {
- field public static final int APRIL = 4; // 0x4
- field public static final int AUGUST = 8; // 0x8
- field public static final javax.xml.namespace.QName DATE;
- field public static final javax.xml.namespace.QName DATETIME;
- field public static final javax.xml.datatype.DatatypeConstants.Field DAYS;
- field public static final int DECEMBER = 12; // 0xc
- field public static final javax.xml.namespace.QName DURATION;
- field public static final javax.xml.namespace.QName DURATION_DAYTIME;
- field public static final javax.xml.namespace.QName DURATION_YEARMONTH;
- field public static final int EQUAL = 0; // 0x0
- field public static final int FEBRUARY = 2; // 0x2
- field public static final int FIELD_UNDEFINED = -2147483648; // 0x80000000
- field public static final javax.xml.namespace.QName GDAY;
- field public static final javax.xml.namespace.QName GMONTH;
- field public static final javax.xml.namespace.QName GMONTHDAY;
- field public static final int GREATER = 1; // 0x1
- field public static final javax.xml.namespace.QName GYEAR;
- field public static final javax.xml.namespace.QName GYEARMONTH;
- field public static final javax.xml.datatype.DatatypeConstants.Field HOURS;
- field public static final int INDETERMINATE = 2; // 0x2
- field public static final int JANUARY = 1; // 0x1
- field public static final int JULY = 7; // 0x7
- field public static final int JUNE = 6; // 0x6
- field public static final int LESSER = -1; // 0xffffffff
- field public static final int MARCH = 3; // 0x3
- field public static final int MAX_TIMEZONE_OFFSET = -840; // 0xfffffcb8
- field public static final int MAY = 5; // 0x5
- field public static final javax.xml.datatype.DatatypeConstants.Field MINUTES;
- field public static final int MIN_TIMEZONE_OFFSET = 840; // 0x348
- field public static final javax.xml.datatype.DatatypeConstants.Field MONTHS;
- field public static final int NOVEMBER = 11; // 0xb
- field public static final int OCTOBER = 10; // 0xa
- field public static final javax.xml.datatype.DatatypeConstants.Field SECONDS;
- field public static final int SEPTEMBER = 9; // 0x9
- field public static final javax.xml.namespace.QName TIME;
- field public static final javax.xml.datatype.DatatypeConstants.Field YEARS;
- }
-
- public static final class DatatypeConstants.Field {
- method public int getId();
- }
-
- public abstract class DatatypeFactory {
- ctor protected DatatypeFactory();
- method public abstract javax.xml.datatype.Duration newDuration(String);
- method public abstract javax.xml.datatype.Duration newDuration(long);
- method public abstract javax.xml.datatype.Duration newDuration(boolean, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigDecimal);
- method public javax.xml.datatype.Duration newDuration(boolean, int, int, int, int, int, int);
- method public javax.xml.datatype.Duration newDurationDayTime(String);
- method public javax.xml.datatype.Duration newDurationDayTime(long);
- method public javax.xml.datatype.Duration newDurationDayTime(boolean, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger);
- method public javax.xml.datatype.Duration newDurationDayTime(boolean, int, int, int, int);
- method public javax.xml.datatype.Duration newDurationYearMonth(String);
- method public javax.xml.datatype.Duration newDurationYearMonth(long);
- method public javax.xml.datatype.Duration newDurationYearMonth(boolean, java.math.BigInteger, java.math.BigInteger);
- method public javax.xml.datatype.Duration newDurationYearMonth(boolean, int, int);
- method public static javax.xml.datatype.DatatypeFactory newInstance() throws javax.xml.datatype.DatatypeConfigurationException;
- method public static javax.xml.datatype.DatatypeFactory newInstance(String, ClassLoader) throws javax.xml.datatype.DatatypeConfigurationException;
- method public abstract javax.xml.datatype.XMLGregorianCalendar newXMLGregorianCalendar();
- method public abstract javax.xml.datatype.XMLGregorianCalendar newXMLGregorianCalendar(String);
- method public abstract javax.xml.datatype.XMLGregorianCalendar newXMLGregorianCalendar(java.util.GregorianCalendar);
- method public abstract javax.xml.datatype.XMLGregorianCalendar newXMLGregorianCalendar(java.math.BigInteger, int, int, int, int, int, java.math.BigDecimal, int);
- method public javax.xml.datatype.XMLGregorianCalendar newXMLGregorianCalendar(int, int, int, int, int, int, int, int);
- method public javax.xml.datatype.XMLGregorianCalendar newXMLGregorianCalendarDate(int, int, int, int);
- method public javax.xml.datatype.XMLGregorianCalendar newXMLGregorianCalendarTime(int, int, int, int);
- method public javax.xml.datatype.XMLGregorianCalendar newXMLGregorianCalendarTime(int, int, int, java.math.BigDecimal, int);
- method public javax.xml.datatype.XMLGregorianCalendar newXMLGregorianCalendarTime(int, int, int, int, int);
- field public static final String DATATYPEFACTORY_IMPLEMENTATION_CLASS;
- field public static final String DATATYPEFACTORY_PROPERTY = "javax.xml.datatype.DatatypeFactory";
- }
-
- public abstract class Duration {
- ctor public Duration();
- method public abstract javax.xml.datatype.Duration add(javax.xml.datatype.Duration);
- method public abstract void addTo(java.util.Calendar);
- method public void addTo(java.util.Date);
- method public abstract int compare(javax.xml.datatype.Duration);
- method public int getDays();
- method public abstract Number getField(javax.xml.datatype.DatatypeConstants.Field);
- method public int getHours();
- method public int getMinutes();
- method public int getMonths();
- method public int getSeconds();
- method public abstract int getSign();
- method public long getTimeInMillis(java.util.Calendar);
- method public long getTimeInMillis(java.util.Date);
- method public javax.xml.namespace.QName getXMLSchemaType();
- method public int getYears();
- method public abstract int hashCode();
- method public boolean isLongerThan(javax.xml.datatype.Duration);
- method public abstract boolean isSet(javax.xml.datatype.DatatypeConstants.Field);
- method public boolean isShorterThan(javax.xml.datatype.Duration);
- method public javax.xml.datatype.Duration multiply(int);
- method public abstract javax.xml.datatype.Duration multiply(java.math.BigDecimal);
- method public abstract javax.xml.datatype.Duration negate();
- method public abstract javax.xml.datatype.Duration normalizeWith(java.util.Calendar);
- method public javax.xml.datatype.Duration subtract(javax.xml.datatype.Duration);
- }
-
- public abstract class XMLGregorianCalendar implements java.lang.Cloneable {
- ctor public XMLGregorianCalendar();
- method public abstract void add(javax.xml.datatype.Duration);
- method public abstract void clear();
- method public abstract Object clone();
- method public abstract int compare(javax.xml.datatype.XMLGregorianCalendar);
- method public abstract int getDay();
- method public abstract java.math.BigInteger getEon();
- method public abstract java.math.BigInteger getEonAndYear();
- method public abstract java.math.BigDecimal getFractionalSecond();
- method public abstract int getHour();
- method public int getMillisecond();
- method public abstract int getMinute();
- method public abstract int getMonth();
- method public abstract int getSecond();
- method public abstract java.util.TimeZone getTimeZone(int);
- method public abstract int getTimezone();
- method public abstract javax.xml.namespace.QName getXMLSchemaType();
- method public abstract int getYear();
- method public abstract boolean isValid();
- method public abstract javax.xml.datatype.XMLGregorianCalendar normalize();
- method public abstract void reset();
- method public abstract void setDay(int);
- method public abstract void setFractionalSecond(java.math.BigDecimal);
- method public abstract void setHour(int);
- method public abstract void setMillisecond(int);
- method public abstract void setMinute(int);
- method public abstract void setMonth(int);
- method public abstract void setSecond(int);
- method public void setTime(int, int, int);
- method public void setTime(int, int, int, java.math.BigDecimal);
- method public void setTime(int, int, int, int);
- method public abstract void setTimezone(int);
- method public abstract void setYear(java.math.BigInteger);
- method public abstract void setYear(int);
- method public abstract java.util.GregorianCalendar toGregorianCalendar();
- method public abstract java.util.GregorianCalendar toGregorianCalendar(java.util.TimeZone, java.util.Locale, javax.xml.datatype.XMLGregorianCalendar);
- method public abstract String toXMLFormat();
- }
-
-}
-
-package javax.xml.namespace {
-
- public interface NamespaceContext {
- method public String getNamespaceURI(String);
- method public String getPrefix(String);
- method public java.util.Iterator getPrefixes(String);
- }
-
- public class QName implements java.io.Serializable {
- ctor public QName(String, String);
- ctor public QName(String, String, String);
- ctor public QName(String);
- method public final boolean equals(Object);
- method public String getLocalPart();
- method public String getNamespaceURI();
- method public String getPrefix();
- method public final int hashCode();
- method public static javax.xml.namespace.QName valueOf(String);
- }
-
-}
-
-package javax.xml.parsers {
-
- public abstract class DocumentBuilder {
- ctor protected DocumentBuilder();
- method public abstract org.w3c.dom.DOMImplementation getDOMImplementation();
- method public javax.xml.validation.Schema getSchema();
- method public abstract boolean isNamespaceAware();
- method public abstract boolean isValidating();
- method public boolean isXIncludeAware();
- method public abstract org.w3c.dom.Document newDocument();
- method public org.w3c.dom.Document parse(java.io.InputStream) throws java.io.IOException, org.xml.sax.SAXException;
- method public org.w3c.dom.Document parse(java.io.InputStream, String) throws java.io.IOException, org.xml.sax.SAXException;
- method public org.w3c.dom.Document parse(String) throws java.io.IOException, org.xml.sax.SAXException;
- method public org.w3c.dom.Document parse(java.io.File) throws java.io.IOException, org.xml.sax.SAXException;
- method public abstract org.w3c.dom.Document parse(org.xml.sax.InputSource) throws java.io.IOException, org.xml.sax.SAXException;
- method public void reset();
- method public abstract void setEntityResolver(org.xml.sax.EntityResolver);
- method public abstract void setErrorHandler(org.xml.sax.ErrorHandler);
- }
-
- public abstract class DocumentBuilderFactory {
- ctor protected DocumentBuilderFactory();
- method public abstract Object getAttribute(String) throws java.lang.IllegalArgumentException;
- method public abstract boolean getFeature(String) throws javax.xml.parsers.ParserConfigurationException;
- method public javax.xml.validation.Schema getSchema();
- method public boolean isCoalescing();
- method public boolean isExpandEntityReferences();
- method public boolean isIgnoringComments();
- method public boolean isIgnoringElementContentWhitespace();
- method public boolean isNamespaceAware();
- method public boolean isValidating();
- method public boolean isXIncludeAware();
- method public abstract javax.xml.parsers.DocumentBuilder newDocumentBuilder() throws javax.xml.parsers.ParserConfigurationException;
- method public static javax.xml.parsers.DocumentBuilderFactory newInstance();
- method public static javax.xml.parsers.DocumentBuilderFactory newInstance(String, ClassLoader);
- method public abstract void setAttribute(String, Object) throws java.lang.IllegalArgumentException;
- method public void setCoalescing(boolean);
- method public void setExpandEntityReferences(boolean);
- method public abstract void setFeature(String, boolean) throws javax.xml.parsers.ParserConfigurationException;
- method public void setIgnoringComments(boolean);
- method public void setIgnoringElementContentWhitespace(boolean);
- method public void setNamespaceAware(boolean);
- method public void setSchema(javax.xml.validation.Schema);
- method public void setValidating(boolean);
- method public void setXIncludeAware(boolean);
- }
-
- public class FactoryConfigurationError extends java.lang.Error {
- ctor public FactoryConfigurationError();
- ctor public FactoryConfigurationError(String);
- ctor public FactoryConfigurationError(Exception);
- ctor public FactoryConfigurationError(Exception, String);
- method public Exception getException();
- }
-
- public class ParserConfigurationException extends java.lang.Exception {
- ctor public ParserConfigurationException();
- ctor public ParserConfigurationException(String);
- }
-
- public abstract class SAXParser {
- ctor protected SAXParser();
- method public abstract org.xml.sax.Parser getParser() throws org.xml.sax.SAXException;
- method public abstract Object getProperty(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public javax.xml.validation.Schema getSchema();
- method public abstract org.xml.sax.XMLReader getXMLReader() throws org.xml.sax.SAXException;
- method public abstract boolean isNamespaceAware();
- method public abstract boolean isValidating();
- method public boolean isXIncludeAware();
- method public void parse(java.io.InputStream, org.xml.sax.HandlerBase) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parse(java.io.InputStream, org.xml.sax.HandlerBase, String) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parse(java.io.InputStream, org.xml.sax.helpers.DefaultHandler) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parse(java.io.InputStream, org.xml.sax.helpers.DefaultHandler, String) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parse(String, org.xml.sax.HandlerBase) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parse(String, org.xml.sax.helpers.DefaultHandler) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parse(java.io.File, org.xml.sax.HandlerBase) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parse(java.io.File, org.xml.sax.helpers.DefaultHandler) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parse(org.xml.sax.InputSource, org.xml.sax.HandlerBase) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parse(org.xml.sax.InputSource, org.xml.sax.helpers.DefaultHandler) throws java.io.IOException, org.xml.sax.SAXException;
- method public void reset();
- method public abstract void setProperty(String, Object) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- }
-
- public abstract class SAXParserFactory {
- ctor protected SAXParserFactory();
- method public abstract boolean getFeature(String) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public javax.xml.validation.Schema getSchema();
- method public boolean isNamespaceAware();
- method public boolean isValidating();
- method public boolean isXIncludeAware();
- method public static javax.xml.parsers.SAXParserFactory newInstance();
- method public static javax.xml.parsers.SAXParserFactory newInstance(String, ClassLoader);
- method public abstract javax.xml.parsers.SAXParser newSAXParser() throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException;
- method public abstract void setFeature(String, boolean) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public void setNamespaceAware(boolean);
- method public void setSchema(javax.xml.validation.Schema);
- method public void setValidating(boolean);
- method public void setXIncludeAware(boolean);
- }
-
-}
-
-package javax.xml.transform {
-
- public interface ErrorListener {
- method public void error(javax.xml.transform.TransformerException) throws javax.xml.transform.TransformerException;
- method public void fatalError(javax.xml.transform.TransformerException) throws javax.xml.transform.TransformerException;
- method public void warning(javax.xml.transform.TransformerException) throws javax.xml.transform.TransformerException;
- }
-
- public class OutputKeys {
- field public static final String CDATA_SECTION_ELEMENTS = "cdata-section-elements";
- field public static final String DOCTYPE_PUBLIC = "doctype-public";
- field public static final String DOCTYPE_SYSTEM = "doctype-system";
- field public static final String ENCODING = "encoding";
- field public static final String INDENT = "indent";
- field public static final String MEDIA_TYPE = "media-type";
- field public static final String METHOD = "method";
- field public static final String OMIT_XML_DECLARATION = "omit-xml-declaration";
- field public static final String STANDALONE = "standalone";
- field public static final String VERSION = "version";
- }
-
- public interface Result {
- method public String getSystemId();
- method public void setSystemId(String);
- field public static final String PI_DISABLE_OUTPUT_ESCAPING = "javax.xml.transform.disable-output-escaping";
- field public static final String PI_ENABLE_OUTPUT_ESCAPING = "javax.xml.transform.enable-output-escaping";
- }
-
- public interface Source {
- method public String getSystemId();
- method public void setSystemId(String);
- }
-
- public interface SourceLocator {
- method public int getColumnNumber();
- method public int getLineNumber();
- method public String getPublicId();
- method public String getSystemId();
- }
-
- public interface Templates {
- method public java.util.Properties getOutputProperties();
- method public javax.xml.transform.Transformer newTransformer() throws javax.xml.transform.TransformerConfigurationException;
- }
-
- public abstract class Transformer {
- ctor protected Transformer();
- method public abstract void clearParameters();
- method public abstract javax.xml.transform.ErrorListener getErrorListener();
- method public abstract java.util.Properties getOutputProperties();
- method public abstract String getOutputProperty(String) throws java.lang.IllegalArgumentException;
- method public abstract Object getParameter(String);
- method public abstract javax.xml.transform.URIResolver getURIResolver();
- method public void reset();
- method public abstract void setErrorListener(javax.xml.transform.ErrorListener) throws java.lang.IllegalArgumentException;
- method public abstract void setOutputProperties(java.util.Properties);
- method public abstract void setOutputProperty(String, String) throws java.lang.IllegalArgumentException;
- method public abstract void setParameter(String, Object);
- method public abstract void setURIResolver(javax.xml.transform.URIResolver);
- method public abstract void transform(javax.xml.transform.Source, javax.xml.transform.Result) throws javax.xml.transform.TransformerException;
- }
-
- public class TransformerConfigurationException extends javax.xml.transform.TransformerException {
- ctor public TransformerConfigurationException();
- ctor public TransformerConfigurationException(String);
- ctor public TransformerConfigurationException(Throwable);
- ctor public TransformerConfigurationException(String, Throwable);
- ctor public TransformerConfigurationException(String, javax.xml.transform.SourceLocator);
- ctor public TransformerConfigurationException(String, javax.xml.transform.SourceLocator, Throwable);
- }
-
- public class TransformerException extends java.lang.Exception {
- ctor public TransformerException(String);
- ctor public TransformerException(Throwable);
- ctor public TransformerException(String, Throwable);
- ctor public TransformerException(String, javax.xml.transform.SourceLocator);
- ctor public TransformerException(String, javax.xml.transform.SourceLocator, Throwable);
- method public Throwable getException();
- method public String getLocationAsString();
- method public javax.xml.transform.SourceLocator getLocator();
- method public String getMessageAndLocation();
- method public void setLocator(javax.xml.transform.SourceLocator);
- }
-
- public abstract class TransformerFactory {
- ctor protected TransformerFactory();
- method public abstract javax.xml.transform.Source getAssociatedStylesheet(javax.xml.transform.Source, String, String, String) throws javax.xml.transform.TransformerConfigurationException;
- method public abstract Object getAttribute(String);
- method public abstract javax.xml.transform.ErrorListener getErrorListener();
- method public abstract boolean getFeature(String);
- method public abstract javax.xml.transform.URIResolver getURIResolver();
- method public static javax.xml.transform.TransformerFactory newInstance() throws javax.xml.transform.TransformerFactoryConfigurationError;
- method public static javax.xml.transform.TransformerFactory newInstance(String, ClassLoader) throws javax.xml.transform.TransformerFactoryConfigurationError;
- method public abstract javax.xml.transform.Templates newTemplates(javax.xml.transform.Source) throws javax.xml.transform.TransformerConfigurationException;
- method public abstract javax.xml.transform.Transformer newTransformer(javax.xml.transform.Source) throws javax.xml.transform.TransformerConfigurationException;
- method public abstract javax.xml.transform.Transformer newTransformer() throws javax.xml.transform.TransformerConfigurationException;
- method public abstract void setAttribute(String, Object);
- method public abstract void setErrorListener(javax.xml.transform.ErrorListener);
- method public abstract void setFeature(String, boolean) throws javax.xml.transform.TransformerConfigurationException;
- method public abstract void setURIResolver(javax.xml.transform.URIResolver);
- }
-
- public class TransformerFactoryConfigurationError extends java.lang.Error {
- ctor public TransformerFactoryConfigurationError();
- ctor public TransformerFactoryConfigurationError(String);
- ctor public TransformerFactoryConfigurationError(Exception);
- ctor public TransformerFactoryConfigurationError(Exception, String);
- method public Exception getException();
- }
-
- public interface URIResolver {
- method public javax.xml.transform.Source resolve(String, String) throws javax.xml.transform.TransformerException;
- }
-
-}
-
-package javax.xml.transform.dom {
-
- public interface DOMLocator extends javax.xml.transform.SourceLocator {
- method public org.w3c.dom.Node getOriginatingNode();
- }
-
- public class DOMResult implements javax.xml.transform.Result {
- ctor public DOMResult();
- ctor public DOMResult(org.w3c.dom.Node);
- ctor public DOMResult(org.w3c.dom.Node, String);
- ctor public DOMResult(org.w3c.dom.Node, org.w3c.dom.Node);
- ctor public DOMResult(org.w3c.dom.Node, org.w3c.dom.Node, String);
- method public org.w3c.dom.Node getNextSibling();
- method public org.w3c.dom.Node getNode();
- method public String getSystemId();
- method public void setNextSibling(org.w3c.dom.Node);
- method public void setNode(org.w3c.dom.Node);
- method public void setSystemId(String);
- field public static final String FEATURE = "http://javax.xml.transform.dom.DOMResult/feature";
- }
-
- public class DOMSource implements javax.xml.transform.Source {
- ctor public DOMSource();
- ctor public DOMSource(org.w3c.dom.Node);
- ctor public DOMSource(org.w3c.dom.Node, String);
- method public org.w3c.dom.Node getNode();
- method public String getSystemId();
- method public void setNode(org.w3c.dom.Node);
- method public void setSystemId(String);
- field public static final String FEATURE = "http://javax.xml.transform.dom.DOMSource/feature";
- }
-
-}
-
-package javax.xml.transform.sax {
-
- public class SAXResult implements javax.xml.transform.Result {
- ctor public SAXResult();
- ctor public SAXResult(org.xml.sax.ContentHandler);
- method public org.xml.sax.ContentHandler getHandler();
- method public org.xml.sax.ext.LexicalHandler getLexicalHandler();
- method public String getSystemId();
- method public void setHandler(org.xml.sax.ContentHandler);
- method public void setLexicalHandler(org.xml.sax.ext.LexicalHandler);
- method public void setSystemId(String);
- field public static final String FEATURE = "http://javax.xml.transform.sax.SAXResult/feature";
- }
-
- public class SAXSource implements javax.xml.transform.Source {
- ctor public SAXSource();
- ctor public SAXSource(org.xml.sax.XMLReader, org.xml.sax.InputSource);
- ctor public SAXSource(org.xml.sax.InputSource);
- method public org.xml.sax.InputSource getInputSource();
- method public String getSystemId();
- method public org.xml.sax.XMLReader getXMLReader();
- method public void setInputSource(org.xml.sax.InputSource);
- method public void setSystemId(String);
- method public void setXMLReader(org.xml.sax.XMLReader);
- method public static org.xml.sax.InputSource sourceToInputSource(javax.xml.transform.Source);
- field public static final String FEATURE = "http://javax.xml.transform.sax.SAXSource/feature";
- }
-
- public abstract class SAXTransformerFactory extends javax.xml.transform.TransformerFactory {
- ctor protected SAXTransformerFactory();
- method public abstract javax.xml.transform.sax.TemplatesHandler newTemplatesHandler() throws javax.xml.transform.TransformerConfigurationException;
- method public abstract javax.xml.transform.sax.TransformerHandler newTransformerHandler(javax.xml.transform.Source) throws javax.xml.transform.TransformerConfigurationException;
- method public abstract javax.xml.transform.sax.TransformerHandler newTransformerHandler(javax.xml.transform.Templates) throws javax.xml.transform.TransformerConfigurationException;
- method public abstract javax.xml.transform.sax.TransformerHandler newTransformerHandler() throws javax.xml.transform.TransformerConfigurationException;
- method public abstract org.xml.sax.XMLFilter newXMLFilter(javax.xml.transform.Source) throws javax.xml.transform.TransformerConfigurationException;
- method public abstract org.xml.sax.XMLFilter newXMLFilter(javax.xml.transform.Templates) throws javax.xml.transform.TransformerConfigurationException;
- field public static final String FEATURE = "http://javax.xml.transform.sax.SAXTransformerFactory/feature";
- field public static final String FEATURE_XMLFILTER = "http://javax.xml.transform.sax.SAXTransformerFactory/feature/xmlfilter";
- }
-
- public interface TemplatesHandler extends org.xml.sax.ContentHandler {
- method public String getSystemId();
- method public javax.xml.transform.Templates getTemplates();
- method public void setSystemId(String);
- }
-
- public interface TransformerHandler extends org.xml.sax.ContentHandler org.xml.sax.DTDHandler org.xml.sax.ext.LexicalHandler {
- method public String getSystemId();
- method public javax.xml.transform.Transformer getTransformer();
- method public void setResult(javax.xml.transform.Result) throws java.lang.IllegalArgumentException;
- method public void setSystemId(String);
- }
-
-}
-
-package javax.xml.transform.stream {
-
- public class StreamResult implements javax.xml.transform.Result {
- ctor public StreamResult();
- ctor public StreamResult(java.io.OutputStream);
- ctor public StreamResult(java.io.Writer);
- ctor public StreamResult(String);
- ctor public StreamResult(java.io.File);
- method public java.io.OutputStream getOutputStream();
- method public String getSystemId();
- method public java.io.Writer getWriter();
- method public void setOutputStream(java.io.OutputStream);
- method public void setSystemId(String);
- method public void setSystemId(java.io.File);
- method public void setWriter(java.io.Writer);
- field public static final String FEATURE = "http://javax.xml.transform.stream.StreamResult/feature";
- }
-
- public class StreamSource implements javax.xml.transform.Source {
- ctor public StreamSource();
- ctor public StreamSource(java.io.InputStream);
- ctor public StreamSource(java.io.InputStream, String);
- ctor public StreamSource(java.io.Reader);
- ctor public StreamSource(java.io.Reader, String);
- ctor public StreamSource(String);
- ctor public StreamSource(java.io.File);
- method public java.io.InputStream getInputStream();
- method public String getPublicId();
- method public java.io.Reader getReader();
- method public String getSystemId();
- method public void setInputStream(java.io.InputStream);
- method public void setPublicId(String);
- method public void setReader(java.io.Reader);
- method public void setSystemId(String);
- method public void setSystemId(java.io.File);
- field public static final String FEATURE = "http://javax.xml.transform.stream.StreamSource/feature";
- }
-
-}
-
-package javax.xml.validation {
-
- public abstract class Schema {
- ctor protected Schema();
- method public abstract javax.xml.validation.Validator newValidator();
- method public abstract javax.xml.validation.ValidatorHandler newValidatorHandler();
- }
-
- public abstract class SchemaFactory {
- ctor protected SchemaFactory();
- method public abstract org.xml.sax.ErrorHandler getErrorHandler();
- method public boolean getFeature(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public Object getProperty(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public abstract org.w3c.dom.ls.LSResourceResolver getResourceResolver();
- method public abstract boolean isSchemaLanguageSupported(String);
- method public static javax.xml.validation.SchemaFactory newInstance(String);
- method public static javax.xml.validation.SchemaFactory newInstance(String, String, ClassLoader);
- method public javax.xml.validation.Schema newSchema(javax.xml.transform.Source) throws org.xml.sax.SAXException;
- method public javax.xml.validation.Schema newSchema(java.io.File) throws org.xml.sax.SAXException;
- method public javax.xml.validation.Schema newSchema(java.net.URL) throws org.xml.sax.SAXException;
- method public abstract javax.xml.validation.Schema newSchema(javax.xml.transform.Source[]) throws org.xml.sax.SAXException;
- method public abstract javax.xml.validation.Schema newSchema() throws org.xml.sax.SAXException;
- method public abstract void setErrorHandler(org.xml.sax.ErrorHandler);
- method public void setFeature(String, boolean) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public void setProperty(String, Object) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public abstract void setResourceResolver(org.w3c.dom.ls.LSResourceResolver);
- }
-
- public abstract class SchemaFactoryLoader {
- ctor protected SchemaFactoryLoader();
- method public abstract javax.xml.validation.SchemaFactory newFactory(String);
- }
-
- public abstract class TypeInfoProvider {
- ctor protected TypeInfoProvider();
- method public abstract org.w3c.dom.TypeInfo getAttributeTypeInfo(int);
- method public abstract org.w3c.dom.TypeInfo getElementTypeInfo();
- method public abstract boolean isIdAttribute(int);
- method public abstract boolean isSpecified(int);
- }
-
- public abstract class Validator {
- ctor protected Validator();
- method public abstract org.xml.sax.ErrorHandler getErrorHandler();
- method public boolean getFeature(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public Object getProperty(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public abstract org.w3c.dom.ls.LSResourceResolver getResourceResolver();
- method public abstract void reset();
- method public abstract void setErrorHandler(org.xml.sax.ErrorHandler);
- method public void setFeature(String, boolean) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public void setProperty(String, Object) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public abstract void setResourceResolver(org.w3c.dom.ls.LSResourceResolver);
- method public void validate(javax.xml.transform.Source) throws java.io.IOException, org.xml.sax.SAXException;
- method public abstract void validate(javax.xml.transform.Source, javax.xml.transform.Result) throws java.io.IOException, org.xml.sax.SAXException;
- }
-
- public abstract class ValidatorHandler implements org.xml.sax.ContentHandler {
- ctor protected ValidatorHandler();
- method public abstract org.xml.sax.ContentHandler getContentHandler();
- method public abstract org.xml.sax.ErrorHandler getErrorHandler();
- method public boolean getFeature(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public Object getProperty(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public abstract org.w3c.dom.ls.LSResourceResolver getResourceResolver();
- method public abstract javax.xml.validation.TypeInfoProvider getTypeInfoProvider();
- method public abstract void setContentHandler(org.xml.sax.ContentHandler);
- method public abstract void setErrorHandler(org.xml.sax.ErrorHandler);
- method public void setFeature(String, boolean) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public void setProperty(String, Object) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public abstract void setResourceResolver(org.w3c.dom.ls.LSResourceResolver);
- }
-
-}
-
-package javax.xml.xpath {
-
- public interface XPath {
- method public javax.xml.xpath.XPathExpression compile(String) throws javax.xml.xpath.XPathExpressionException;
- method public Object evaluate(String, Object, javax.xml.namespace.QName) throws javax.xml.xpath.XPathExpressionException;
- method public String evaluate(String, Object) throws javax.xml.xpath.XPathExpressionException;
- method public Object evaluate(String, org.xml.sax.InputSource, javax.xml.namespace.QName) throws javax.xml.xpath.XPathExpressionException;
- method public String evaluate(String, org.xml.sax.InputSource) throws javax.xml.xpath.XPathExpressionException;
- method public javax.xml.namespace.NamespaceContext getNamespaceContext();
- method public javax.xml.xpath.XPathFunctionResolver getXPathFunctionResolver();
- method public javax.xml.xpath.XPathVariableResolver getXPathVariableResolver();
- method public void reset();
- method public void setNamespaceContext(javax.xml.namespace.NamespaceContext);
- method public void setXPathFunctionResolver(javax.xml.xpath.XPathFunctionResolver);
- method public void setXPathVariableResolver(javax.xml.xpath.XPathVariableResolver);
- }
-
- public class XPathConstants {
- field public static final javax.xml.namespace.QName BOOLEAN;
- field public static final String DOM_OBJECT_MODEL = "http://java.sun.com/jaxp/xpath/dom";
- field public static final javax.xml.namespace.QName NODE;
- field public static final javax.xml.namespace.QName NODESET;
- field public static final javax.xml.namespace.QName NUMBER;
- field public static final javax.xml.namespace.QName STRING;
- }
-
- public class XPathException extends java.lang.Exception {
- ctor public XPathException(String);
- ctor public XPathException(Throwable);
- }
-
- public interface XPathExpression {
- method public Object evaluate(Object, javax.xml.namespace.QName) throws javax.xml.xpath.XPathExpressionException;
- method public String evaluate(Object) throws javax.xml.xpath.XPathExpressionException;
- method public Object evaluate(org.xml.sax.InputSource, javax.xml.namespace.QName) throws javax.xml.xpath.XPathExpressionException;
- method public String evaluate(org.xml.sax.InputSource) throws javax.xml.xpath.XPathExpressionException;
- }
-
- public class XPathExpressionException extends javax.xml.xpath.XPathException {
- ctor public XPathExpressionException(String);
- ctor public XPathExpressionException(Throwable);
- }
-
- public abstract class XPathFactory {
- ctor protected XPathFactory();
- method public abstract boolean getFeature(String) throws javax.xml.xpath.XPathFactoryConfigurationException;
- method public abstract boolean isObjectModelSupported(String);
- method public static final javax.xml.xpath.XPathFactory newInstance();
- method public static final javax.xml.xpath.XPathFactory newInstance(String) throws javax.xml.xpath.XPathFactoryConfigurationException;
- method public static javax.xml.xpath.XPathFactory newInstance(String, String, ClassLoader) throws javax.xml.xpath.XPathFactoryConfigurationException;
- method public abstract javax.xml.xpath.XPath newXPath();
- method public abstract void setFeature(String, boolean) throws javax.xml.xpath.XPathFactoryConfigurationException;
- method public abstract void setXPathFunctionResolver(javax.xml.xpath.XPathFunctionResolver);
- method public abstract void setXPathVariableResolver(javax.xml.xpath.XPathVariableResolver);
- field public static final String DEFAULT_OBJECT_MODEL_URI = "http://java.sun.com/jaxp/xpath/dom";
- field public static final String DEFAULT_PROPERTY_NAME = "javax.xml.xpath.XPathFactory";
- }
-
- public class XPathFactoryConfigurationException extends javax.xml.xpath.XPathException {
- ctor public XPathFactoryConfigurationException(String);
- ctor public XPathFactoryConfigurationException(Throwable);
- }
-
- public interface XPathFunction {
- method public Object evaluate(java.util.List) throws javax.xml.xpath.XPathFunctionException;
- }
-
- public class XPathFunctionException extends javax.xml.xpath.XPathExpressionException {
- ctor public XPathFunctionException(String);
- ctor public XPathFunctionException(Throwable);
- }
-
- public interface XPathFunctionResolver {
- method public javax.xml.xpath.XPathFunction resolveFunction(javax.xml.namespace.QName, int);
- }
-
- public interface XPathVariableResolver {
- method public Object resolveVariable(javax.xml.namespace.QName);
- }
-
-}
-
package org.apache.http.conn {
@Deprecated public class ConnectTimeoutException extends java.io.InterruptedIOException {
@@ -74679,1152 +55532,3 @@
}
-package org.json {
-
- public class JSONArray {
- ctor public JSONArray();
- ctor public JSONArray(java.util.Collection);
- ctor public JSONArray(org.json.JSONTokener) throws org.json.JSONException;
- ctor public JSONArray(String) throws org.json.JSONException;
- ctor public JSONArray(Object) throws org.json.JSONException;
- method public Object get(int) throws org.json.JSONException;
- method public boolean getBoolean(int) throws org.json.JSONException;
- method public double getDouble(int) throws org.json.JSONException;
- method public int getInt(int) throws org.json.JSONException;
- method public org.json.JSONArray getJSONArray(int) throws org.json.JSONException;
- method public org.json.JSONObject getJSONObject(int) throws org.json.JSONException;
- method public long getLong(int) throws org.json.JSONException;
- method public String getString(int) throws org.json.JSONException;
- method public boolean isNull(int);
- method public String join(String) throws org.json.JSONException;
- method public int length();
- method public Object opt(int);
- method public boolean optBoolean(int);
- method public boolean optBoolean(int, boolean);
- method public double optDouble(int);
- method public double optDouble(int, double);
- method public int optInt(int);
- method public int optInt(int, int);
- method public org.json.JSONArray optJSONArray(int);
- method public org.json.JSONObject optJSONObject(int);
- method public long optLong(int);
- method public long optLong(int, long);
- method public String optString(int);
- method public String optString(int, String);
- method public org.json.JSONArray put(boolean);
- method public org.json.JSONArray put(double) throws org.json.JSONException;
- method public org.json.JSONArray put(int);
- method public org.json.JSONArray put(long);
- method public org.json.JSONArray put(Object);
- method public org.json.JSONArray put(int, boolean) throws org.json.JSONException;
- method public org.json.JSONArray put(int, double) throws org.json.JSONException;
- method public org.json.JSONArray put(int, int) throws org.json.JSONException;
- method public org.json.JSONArray put(int, long) throws org.json.JSONException;
- method public org.json.JSONArray put(int, Object) throws org.json.JSONException;
- method public Object remove(int);
- method public org.json.JSONObject toJSONObject(org.json.JSONArray) throws org.json.JSONException;
- method public String toString(int) throws org.json.JSONException;
- }
-
- public class JSONException extends java.lang.Exception {
- ctor public JSONException(String);
- ctor public JSONException(String, Throwable);
- ctor public JSONException(Throwable);
- }
-
- public class JSONObject {
- ctor public JSONObject();
- ctor public JSONObject(@NonNull java.util.Map);
- ctor public JSONObject(@NonNull org.json.JSONTokener) throws org.json.JSONException;
- ctor public JSONObject(@NonNull String) throws org.json.JSONException;
- ctor public JSONObject(@NonNull org.json.JSONObject, @NonNull String[]) throws org.json.JSONException;
- method @NonNull public org.json.JSONObject accumulate(@NonNull String, @Nullable Object) throws org.json.JSONException;
- method @NonNull public Object get(@NonNull String) throws org.json.JSONException;
- method public boolean getBoolean(@NonNull String) throws org.json.JSONException;
- method public double getDouble(@NonNull String) throws org.json.JSONException;
- method public int getInt(@NonNull String) throws org.json.JSONException;
- method @NonNull public org.json.JSONArray getJSONArray(@NonNull String) throws org.json.JSONException;
- method @NonNull public org.json.JSONObject getJSONObject(@NonNull String) throws org.json.JSONException;
- method public long getLong(@NonNull String) throws org.json.JSONException;
- method @NonNull public String getString(@NonNull String) throws org.json.JSONException;
- method public boolean has(@Nullable String);
- method public boolean isNull(@Nullable String);
- method @NonNull public java.util.Iterator<java.lang.String> keys();
- method public int length();
- method @Nullable public org.json.JSONArray names();
- method @NonNull public static String numberToString(@NonNull Number) throws org.json.JSONException;
- method @Nullable public Object opt(@Nullable String);
- method public boolean optBoolean(@Nullable String);
- method public boolean optBoolean(@Nullable String, boolean);
- method public double optDouble(@Nullable String);
- method public double optDouble(@Nullable String, double);
- method public int optInt(@Nullable String);
- method public int optInt(@Nullable String, int);
- method @Nullable public org.json.JSONArray optJSONArray(@Nullable String);
- method @Nullable public org.json.JSONObject optJSONObject(@Nullable String);
- method public long optLong(@Nullable String);
- method public long optLong(@Nullable String, long);
- method @NonNull public String optString(@Nullable String);
- method @NonNull public String optString(@Nullable String, @NonNull String);
- method @NonNull public org.json.JSONObject put(@NonNull String, boolean) throws org.json.JSONException;
- method @NonNull public org.json.JSONObject put(@NonNull String, double) throws org.json.JSONException;
- method @NonNull public org.json.JSONObject put(@NonNull String, int) throws org.json.JSONException;
- method @NonNull public org.json.JSONObject put(@NonNull String, long) throws org.json.JSONException;
- method @NonNull public org.json.JSONObject put(@NonNull String, @Nullable Object) throws org.json.JSONException;
- method @NonNull public org.json.JSONObject putOpt(@Nullable String, @Nullable Object) throws org.json.JSONException;
- method @NonNull public static String quote(@Nullable String);
- method @Nullable public Object remove(@Nullable String);
- method @Nullable public org.json.JSONArray toJSONArray(@Nullable org.json.JSONArray) throws org.json.JSONException;
- method @NonNull public String toString(int) throws org.json.JSONException;
- method @Nullable public static Object wrap(@Nullable Object);
- field @NonNull public static final Object NULL;
- }
-
- public class JSONStringer {
- ctor public JSONStringer();
- method public org.json.JSONStringer array() throws org.json.JSONException;
- method public org.json.JSONStringer endArray() throws org.json.JSONException;
- method public org.json.JSONStringer endObject() throws org.json.JSONException;
- method public org.json.JSONStringer key(String) throws org.json.JSONException;
- method public org.json.JSONStringer object() throws org.json.JSONException;
- method public org.json.JSONStringer value(Object) throws org.json.JSONException;
- method public org.json.JSONStringer value(boolean) throws org.json.JSONException;
- method public org.json.JSONStringer value(double) throws org.json.JSONException;
- method public org.json.JSONStringer value(long) throws org.json.JSONException;
- }
-
- public class JSONTokener {
- ctor public JSONTokener(String);
- method public void back();
- method public static int dehexchar(char);
- method public boolean more();
- method public char next();
- method public char next(char) throws org.json.JSONException;
- method public String next(int) throws org.json.JSONException;
- method public char nextClean() throws org.json.JSONException;
- method public String nextString(char) throws org.json.JSONException;
- method public String nextTo(String);
- method public String nextTo(char);
- method public Object nextValue() throws org.json.JSONException;
- method public void skipPast(String);
- method public char skipTo(char);
- method public org.json.JSONException syntaxError(String);
- }
-
-}
-
-package org.w3c.dom {
-
- public interface Attr extends org.w3c.dom.Node {
- method public String getName();
- method public org.w3c.dom.Element getOwnerElement();
- method public org.w3c.dom.TypeInfo getSchemaTypeInfo();
- method public boolean getSpecified();
- method public String getValue();
- method public boolean isId();
- method public void setValue(String) throws org.w3c.dom.DOMException;
- }
-
- public interface CDATASection extends org.w3c.dom.Text {
- }
-
- public interface CharacterData extends org.w3c.dom.Node {
- method public void appendData(String) throws org.w3c.dom.DOMException;
- method public void deleteData(int, int) throws org.w3c.dom.DOMException;
- method public String getData() throws org.w3c.dom.DOMException;
- method public int getLength();
- method public void insertData(int, String) throws org.w3c.dom.DOMException;
- method public void replaceData(int, int, String) throws org.w3c.dom.DOMException;
- method public void setData(String) throws org.w3c.dom.DOMException;
- method public String substringData(int, int) throws org.w3c.dom.DOMException;
- }
-
- public interface Comment extends org.w3c.dom.CharacterData {
- }
-
- public interface DOMConfiguration {
- method public boolean canSetParameter(String, Object);
- method public Object getParameter(String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.DOMStringList getParameterNames();
- method public void setParameter(String, Object) throws org.w3c.dom.DOMException;
- }
-
- public interface DOMError {
- method public org.w3c.dom.DOMLocator getLocation();
- method public String getMessage();
- method public Object getRelatedData();
- method public Object getRelatedException();
- method public short getSeverity();
- method public String getType();
- field public static final short SEVERITY_ERROR = 2; // 0x2
- field public static final short SEVERITY_FATAL_ERROR = 3; // 0x3
- field public static final short SEVERITY_WARNING = 1; // 0x1
- }
-
- public interface DOMErrorHandler {
- method public boolean handleError(org.w3c.dom.DOMError);
- }
-
- public class DOMException extends java.lang.RuntimeException {
- ctor public DOMException(short, String);
- field public static final short DOMSTRING_SIZE_ERR = 2; // 0x2
- field public static final short HIERARCHY_REQUEST_ERR = 3; // 0x3
- field public static final short INDEX_SIZE_ERR = 1; // 0x1
- field public static final short INUSE_ATTRIBUTE_ERR = 10; // 0xa
- field public static final short INVALID_ACCESS_ERR = 15; // 0xf
- field public static final short INVALID_CHARACTER_ERR = 5; // 0x5
- field public static final short INVALID_MODIFICATION_ERR = 13; // 0xd
- field public static final short INVALID_STATE_ERR = 11; // 0xb
- field public static final short NAMESPACE_ERR = 14; // 0xe
- field public static final short NOT_FOUND_ERR = 8; // 0x8
- field public static final short NOT_SUPPORTED_ERR = 9; // 0x9
- field public static final short NO_DATA_ALLOWED_ERR = 6; // 0x6
- field public static final short NO_MODIFICATION_ALLOWED_ERR = 7; // 0x7
- field public static final short SYNTAX_ERR = 12; // 0xc
- field public static final short TYPE_MISMATCH_ERR = 17; // 0x11
- field public static final short VALIDATION_ERR = 16; // 0x10
- field public static final short WRONG_DOCUMENT_ERR = 4; // 0x4
- field public short code;
- }
-
- public interface DOMImplementation {
- method public org.w3c.dom.Document createDocument(String, String, org.w3c.dom.DocumentType) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.DocumentType createDocumentType(String, String, String) throws org.w3c.dom.DOMException;
- method public Object getFeature(String, String);
- method public boolean hasFeature(String, String);
- }
-
- public interface DOMImplementationList {
- method public int getLength();
- method public org.w3c.dom.DOMImplementation item(int);
- }
-
- public interface DOMImplementationSource {
- method public org.w3c.dom.DOMImplementation getDOMImplementation(String);
- method public org.w3c.dom.DOMImplementationList getDOMImplementationList(String);
- }
-
- public interface DOMLocator {
- method public int getByteOffset();
- method public int getColumnNumber();
- method public int getLineNumber();
- method public org.w3c.dom.Node getRelatedNode();
- method public String getUri();
- method public int getUtf16Offset();
- }
-
- public interface DOMStringList {
- method public boolean contains(String);
- method public int getLength();
- method public String item(int);
- }
-
- public interface Document extends org.w3c.dom.Node {
- method public org.w3c.dom.Node adoptNode(org.w3c.dom.Node) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Attr createAttribute(String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Attr createAttributeNS(String, String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.CDATASection createCDATASection(String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Comment createComment(String);
- method public org.w3c.dom.DocumentFragment createDocumentFragment();
- method public org.w3c.dom.Element createElement(String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Element createElementNS(String, String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.EntityReference createEntityReference(String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.ProcessingInstruction createProcessingInstruction(String, String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Text createTextNode(String);
- method public org.w3c.dom.DocumentType getDoctype();
- method public org.w3c.dom.Element getDocumentElement();
- method public String getDocumentURI();
- method public org.w3c.dom.DOMConfiguration getDomConfig();
- method public org.w3c.dom.Element getElementById(String);
- method public org.w3c.dom.NodeList getElementsByTagName(String);
- method public org.w3c.dom.NodeList getElementsByTagNameNS(String, String);
- method public org.w3c.dom.DOMImplementation getImplementation();
- method public String getInputEncoding();
- method public boolean getStrictErrorChecking();
- method public String getXmlEncoding();
- method public boolean getXmlStandalone();
- method public String getXmlVersion();
- method public org.w3c.dom.Node importNode(org.w3c.dom.Node, boolean) throws org.w3c.dom.DOMException;
- method public void normalizeDocument();
- method public org.w3c.dom.Node renameNode(org.w3c.dom.Node, String, String) throws org.w3c.dom.DOMException;
- method public void setDocumentURI(String);
- method public void setStrictErrorChecking(boolean);
- method public void setXmlStandalone(boolean) throws org.w3c.dom.DOMException;
- method public void setXmlVersion(String) throws org.w3c.dom.DOMException;
- }
-
- public interface DocumentFragment extends org.w3c.dom.Node {
- }
-
- public interface DocumentType extends org.w3c.dom.Node {
- method public org.w3c.dom.NamedNodeMap getEntities();
- method public String getInternalSubset();
- method public String getName();
- method public org.w3c.dom.NamedNodeMap getNotations();
- method public String getPublicId();
- method public String getSystemId();
- }
-
- public interface Element extends org.w3c.dom.Node {
- method public String getAttribute(String);
- method public String getAttributeNS(String, String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Attr getAttributeNode(String);
- method public org.w3c.dom.Attr getAttributeNodeNS(String, String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.NodeList getElementsByTagName(String);
- method public org.w3c.dom.NodeList getElementsByTagNameNS(String, String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.TypeInfo getSchemaTypeInfo();
- method public String getTagName();
- method public boolean hasAttribute(String);
- method public boolean hasAttributeNS(String, String) throws org.w3c.dom.DOMException;
- method public void removeAttribute(String) throws org.w3c.dom.DOMException;
- method public void removeAttributeNS(String, String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr) throws org.w3c.dom.DOMException;
- method public void setAttribute(String, String) throws org.w3c.dom.DOMException;
- method public void setAttributeNS(String, String, String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr) throws org.w3c.dom.DOMException;
- method public void setIdAttribute(String, boolean) throws org.w3c.dom.DOMException;
- method public void setIdAttributeNS(String, String, boolean) throws org.w3c.dom.DOMException;
- method public void setIdAttributeNode(org.w3c.dom.Attr, boolean) throws org.w3c.dom.DOMException;
- }
-
- public interface Entity extends org.w3c.dom.Node {
- method public String getInputEncoding();
- method public String getNotationName();
- method public String getPublicId();
- method public String getSystemId();
- method public String getXmlEncoding();
- method public String getXmlVersion();
- }
-
- public interface EntityReference extends org.w3c.dom.Node {
- }
-
- public interface NameList {
- method public boolean contains(String);
- method public boolean containsNS(String, String);
- method public int getLength();
- method public String getName(int);
- method public String getNamespaceURI(int);
- }
-
- public interface NamedNodeMap {
- method public int getLength();
- method public org.w3c.dom.Node getNamedItem(String);
- method public org.w3c.dom.Node getNamedItemNS(String, String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Node item(int);
- method public org.w3c.dom.Node removeNamedItem(String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Node removeNamedItemNS(String, String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Node setNamedItem(org.w3c.dom.Node) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node) throws org.w3c.dom.DOMException;
- }
-
- public interface Node {
- method public org.w3c.dom.Node appendChild(org.w3c.dom.Node) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Node cloneNode(boolean);
- method public short compareDocumentPosition(org.w3c.dom.Node) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.NamedNodeMap getAttributes();
- method public String getBaseURI();
- method public org.w3c.dom.NodeList getChildNodes();
- method public Object getFeature(String, String);
- method public org.w3c.dom.Node getFirstChild();
- method public org.w3c.dom.Node getLastChild();
- method public String getLocalName();
- method public String getNamespaceURI();
- method public org.w3c.dom.Node getNextSibling();
- method public String getNodeName();
- method public short getNodeType();
- method public String getNodeValue() throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Document getOwnerDocument();
- method public org.w3c.dom.Node getParentNode();
- method public String getPrefix();
- method public org.w3c.dom.Node getPreviousSibling();
- method public String getTextContent() throws org.w3c.dom.DOMException;
- method public Object getUserData(String);
- method public boolean hasAttributes();
- method public boolean hasChildNodes();
- method public org.w3c.dom.Node insertBefore(org.w3c.dom.Node, org.w3c.dom.Node) throws org.w3c.dom.DOMException;
- method public boolean isDefaultNamespace(String);
- method public boolean isEqualNode(org.w3c.dom.Node);
- method public boolean isSameNode(org.w3c.dom.Node);
- method public boolean isSupported(String, String);
- method public String lookupNamespaceURI(String);
- method public String lookupPrefix(String);
- method public void normalize();
- method public org.w3c.dom.Node removeChild(org.w3c.dom.Node) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Node replaceChild(org.w3c.dom.Node, org.w3c.dom.Node) throws org.w3c.dom.DOMException;
- method public void setNodeValue(String) throws org.w3c.dom.DOMException;
- method public void setPrefix(String) throws org.w3c.dom.DOMException;
- method public void setTextContent(String) throws org.w3c.dom.DOMException;
- method public Object setUserData(String, Object, org.w3c.dom.UserDataHandler);
- field public static final short ATTRIBUTE_NODE = 2; // 0x2
- field public static final short CDATA_SECTION_NODE = 4; // 0x4
- field public static final short COMMENT_NODE = 8; // 0x8
- field public static final short DOCUMENT_FRAGMENT_NODE = 11; // 0xb
- field public static final short DOCUMENT_NODE = 9; // 0x9
- field public static final short DOCUMENT_POSITION_CONTAINED_BY = 16; // 0x10
- field public static final short DOCUMENT_POSITION_CONTAINS = 8; // 0x8
- field public static final short DOCUMENT_POSITION_DISCONNECTED = 1; // 0x1
- field public static final short DOCUMENT_POSITION_FOLLOWING = 4; // 0x4
- field public static final short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32; // 0x20
- field public static final short DOCUMENT_POSITION_PRECEDING = 2; // 0x2
- field public static final short DOCUMENT_TYPE_NODE = 10; // 0xa
- field public static final short ELEMENT_NODE = 1; // 0x1
- field public static final short ENTITY_NODE = 6; // 0x6
- field public static final short ENTITY_REFERENCE_NODE = 5; // 0x5
- field public static final short NOTATION_NODE = 12; // 0xc
- field public static final short PROCESSING_INSTRUCTION_NODE = 7; // 0x7
- field public static final short TEXT_NODE = 3; // 0x3
- }
-
- public interface NodeList {
- method public int getLength();
- method public org.w3c.dom.Node item(int);
- }
-
- public interface Notation extends org.w3c.dom.Node {
- method public String getPublicId();
- method public String getSystemId();
- }
-
- public interface ProcessingInstruction extends org.w3c.dom.Node {
- method public String getData();
- method public String getTarget();
- method public void setData(String) throws org.w3c.dom.DOMException;
- }
-
- public interface Text extends org.w3c.dom.CharacterData {
- method public String getWholeText();
- method public boolean isElementContentWhitespace();
- method public org.w3c.dom.Text replaceWholeText(String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.Text splitText(int) throws org.w3c.dom.DOMException;
- }
-
- public interface TypeInfo {
- method public String getTypeName();
- method public String getTypeNamespace();
- method public boolean isDerivedFrom(String, String, int);
- field public static final int DERIVATION_EXTENSION = 2; // 0x2
- field public static final int DERIVATION_LIST = 8; // 0x8
- field public static final int DERIVATION_RESTRICTION = 1; // 0x1
- field public static final int DERIVATION_UNION = 4; // 0x4
- }
-
- public interface UserDataHandler {
- method public void handle(short, String, Object, org.w3c.dom.Node, org.w3c.dom.Node);
- field public static final short NODE_ADOPTED = 5; // 0x5
- field public static final short NODE_CLONED = 1; // 0x1
- field public static final short NODE_DELETED = 3; // 0x3
- field public static final short NODE_IMPORTED = 2; // 0x2
- field public static final short NODE_RENAMED = 4; // 0x4
- }
-
-}
-
-package org.w3c.dom.ls {
-
- public interface DOMImplementationLS {
- method public org.w3c.dom.ls.LSInput createLSInput();
- method public org.w3c.dom.ls.LSOutput createLSOutput();
- method public org.w3c.dom.ls.LSParser createLSParser(short, String) throws org.w3c.dom.DOMException;
- method public org.w3c.dom.ls.LSSerializer createLSSerializer();
- field public static final short MODE_ASYNCHRONOUS = 2; // 0x2
- field public static final short MODE_SYNCHRONOUS = 1; // 0x1
- }
-
- public class LSException extends java.lang.RuntimeException {
- ctor public LSException(short, String);
- field public static final short PARSE_ERR = 81; // 0x51
- field public static final short SERIALIZE_ERR = 82; // 0x52
- field public short code;
- }
-
- public interface LSInput {
- method public String getBaseURI();
- method public java.io.InputStream getByteStream();
- method public boolean getCertifiedText();
- method public java.io.Reader getCharacterStream();
- method public String getEncoding();
- method public String getPublicId();
- method public String getStringData();
- method public String getSystemId();
- method public void setBaseURI(String);
- method public void setByteStream(java.io.InputStream);
- method public void setCertifiedText(boolean);
- method public void setCharacterStream(java.io.Reader);
- method public void setEncoding(String);
- method public void setPublicId(String);
- method public void setStringData(String);
- method public void setSystemId(String);
- }
-
- public interface LSOutput {
- method public java.io.OutputStream getByteStream();
- method public java.io.Writer getCharacterStream();
- method public String getEncoding();
- method public String getSystemId();
- method public void setByteStream(java.io.OutputStream);
- method public void setCharacterStream(java.io.Writer);
- method public void setEncoding(String);
- method public void setSystemId(String);
- }
-
- public interface LSParser {
- method public void abort();
- method public boolean getAsync();
- method public boolean getBusy();
- method public org.w3c.dom.DOMConfiguration getDomConfig();
- method public org.w3c.dom.ls.LSParserFilter getFilter();
- method public org.w3c.dom.Document parse(org.w3c.dom.ls.LSInput) throws org.w3c.dom.DOMException, org.w3c.dom.ls.LSException;
- method public org.w3c.dom.Document parseURI(String) throws org.w3c.dom.DOMException, org.w3c.dom.ls.LSException;
- method public org.w3c.dom.Node parseWithContext(org.w3c.dom.ls.LSInput, org.w3c.dom.Node, short) throws org.w3c.dom.DOMException, org.w3c.dom.ls.LSException;
- method public void setFilter(org.w3c.dom.ls.LSParserFilter);
- field public static final short ACTION_APPEND_AS_CHILDREN = 1; // 0x1
- field public static final short ACTION_INSERT_AFTER = 4; // 0x4
- field public static final short ACTION_INSERT_BEFORE = 3; // 0x3
- field public static final short ACTION_REPLACE = 5; // 0x5
- field public static final short ACTION_REPLACE_CHILDREN = 2; // 0x2
- }
-
- public interface LSParserFilter {
- method public short acceptNode(org.w3c.dom.Node);
- method public int getWhatToShow();
- method public short startElement(org.w3c.dom.Element);
- field public static final short FILTER_ACCEPT = 1; // 0x1
- field public static final short FILTER_INTERRUPT = 4; // 0x4
- field public static final short FILTER_REJECT = 2; // 0x2
- field public static final short FILTER_SKIP = 3; // 0x3
- }
-
- public interface LSResourceResolver {
- method public org.w3c.dom.ls.LSInput resolveResource(String, String, String, String, String);
- }
-
- public interface LSSerializer {
- method public org.w3c.dom.DOMConfiguration getDomConfig();
- method public String getNewLine();
- method public void setNewLine(String);
- method public boolean write(org.w3c.dom.Node, org.w3c.dom.ls.LSOutput) throws org.w3c.dom.ls.LSException;
- method public String writeToString(org.w3c.dom.Node) throws org.w3c.dom.DOMException, org.w3c.dom.ls.LSException;
- method public boolean writeToURI(org.w3c.dom.Node, String) throws org.w3c.dom.ls.LSException;
- }
-
-}
-
-package org.xml.sax {
-
- @Deprecated public interface AttributeList {
- method @Deprecated public int getLength();
- method @Deprecated public String getName(int);
- method @Deprecated public String getType(int);
- method @Deprecated public String getType(String);
- method @Deprecated public String getValue(int);
- method @Deprecated public String getValue(String);
- }
-
- public interface Attributes {
- method public int getIndex(String, String);
- method public int getIndex(String);
- method public int getLength();
- method public String getLocalName(int);
- method public String getQName(int);
- method public String getType(int);
- method public String getType(String, String);
- method public String getType(String);
- method public String getURI(int);
- method public String getValue(int);
- method public String getValue(String, String);
- method public String getValue(String);
- }
-
- public interface ContentHandler {
- method public void characters(char[], int, int) throws org.xml.sax.SAXException;
- method public void endDocument() throws org.xml.sax.SAXException;
- method public void endElement(String, String, String) throws org.xml.sax.SAXException;
- method public void endPrefixMapping(String) throws org.xml.sax.SAXException;
- method public void ignorableWhitespace(char[], int, int) throws org.xml.sax.SAXException;
- method public void processingInstruction(String, String) throws org.xml.sax.SAXException;
- method public void setDocumentLocator(org.xml.sax.Locator);
- method public void skippedEntity(String) throws org.xml.sax.SAXException;
- method public void startDocument() throws org.xml.sax.SAXException;
- method public void startElement(String, String, String, org.xml.sax.Attributes) throws org.xml.sax.SAXException;
- method public void startPrefixMapping(String, String) throws org.xml.sax.SAXException;
- }
-
- public interface DTDHandler {
- method public void notationDecl(String, String, String) throws org.xml.sax.SAXException;
- method public void unparsedEntityDecl(String, String, String, String) throws org.xml.sax.SAXException;
- }
-
- @Deprecated public interface DocumentHandler {
- method @Deprecated public void characters(char[], int, int) throws org.xml.sax.SAXException;
- method @Deprecated public void endDocument() throws org.xml.sax.SAXException;
- method @Deprecated public void endElement(String) throws org.xml.sax.SAXException;
- method @Deprecated public void ignorableWhitespace(char[], int, int) throws org.xml.sax.SAXException;
- method @Deprecated public void processingInstruction(String, String) throws org.xml.sax.SAXException;
- method @Deprecated public void setDocumentLocator(org.xml.sax.Locator);
- method @Deprecated public void startDocument() throws org.xml.sax.SAXException;
- method @Deprecated public void startElement(String, org.xml.sax.AttributeList) throws org.xml.sax.SAXException;
- }
-
- public interface EntityResolver {
- method public org.xml.sax.InputSource resolveEntity(String, String) throws java.io.IOException, org.xml.sax.SAXException;
- }
-
- public interface ErrorHandler {
- method public void error(org.xml.sax.SAXParseException) throws org.xml.sax.SAXException;
- method public void fatalError(org.xml.sax.SAXParseException) throws org.xml.sax.SAXException;
- method public void warning(org.xml.sax.SAXParseException) throws org.xml.sax.SAXException;
- }
-
- @Deprecated public class HandlerBase implements org.xml.sax.DTDHandler org.xml.sax.DocumentHandler org.xml.sax.EntityResolver org.xml.sax.ErrorHandler {
- ctor @Deprecated public HandlerBase();
- method @Deprecated public void characters(char[], int, int) throws org.xml.sax.SAXException;
- method @Deprecated public void endDocument() throws org.xml.sax.SAXException;
- method @Deprecated public void endElement(String) throws org.xml.sax.SAXException;
- method @Deprecated public void error(org.xml.sax.SAXParseException) throws org.xml.sax.SAXException;
- method @Deprecated public void fatalError(org.xml.sax.SAXParseException) throws org.xml.sax.SAXException;
- method @Deprecated public void ignorableWhitespace(char[], int, int) throws org.xml.sax.SAXException;
- method @Deprecated public void notationDecl(String, String, String);
- method @Deprecated public void processingInstruction(String, String) throws org.xml.sax.SAXException;
- method @Deprecated public org.xml.sax.InputSource resolveEntity(String, String) throws org.xml.sax.SAXException;
- method @Deprecated public void setDocumentLocator(org.xml.sax.Locator);
- method @Deprecated public void startDocument() throws org.xml.sax.SAXException;
- method @Deprecated public void startElement(String, org.xml.sax.AttributeList) throws org.xml.sax.SAXException;
- method @Deprecated public void unparsedEntityDecl(String, String, String, String);
- method @Deprecated public void warning(org.xml.sax.SAXParseException) throws org.xml.sax.SAXException;
- }
-
- public class InputSource {
- ctor public InputSource();
- ctor public InputSource(String);
- ctor public InputSource(java.io.InputStream);
- ctor public InputSource(java.io.Reader);
- method public java.io.InputStream getByteStream();
- method public java.io.Reader getCharacterStream();
- method public String getEncoding();
- method public String getPublicId();
- method public String getSystemId();
- method public void setByteStream(java.io.InputStream);
- method public void setCharacterStream(java.io.Reader);
- method public void setEncoding(String);
- method public void setPublicId(String);
- method public void setSystemId(String);
- }
-
- public interface Locator {
- method public int getColumnNumber();
- method public int getLineNumber();
- method public String getPublicId();
- method public String getSystemId();
- }
-
- @Deprecated public interface Parser {
- method @Deprecated public void parse(org.xml.sax.InputSource) throws java.io.IOException, org.xml.sax.SAXException;
- method @Deprecated public void parse(String) throws java.io.IOException, org.xml.sax.SAXException;
- method @Deprecated public void setDTDHandler(org.xml.sax.DTDHandler);
- method @Deprecated public void setDocumentHandler(org.xml.sax.DocumentHandler);
- method @Deprecated public void setEntityResolver(org.xml.sax.EntityResolver);
- method @Deprecated public void setErrorHandler(org.xml.sax.ErrorHandler);
- method @Deprecated public void setLocale(java.util.Locale) throws org.xml.sax.SAXException;
- }
-
- public class SAXException extends java.lang.Exception {
- ctor public SAXException();
- ctor public SAXException(String);
- ctor public SAXException(Exception);
- ctor public SAXException(String, Exception);
- method public Exception getException();
- }
-
- public class SAXNotRecognizedException extends org.xml.sax.SAXException {
- ctor public SAXNotRecognizedException();
- ctor public SAXNotRecognizedException(String);
- }
-
- public class SAXNotSupportedException extends org.xml.sax.SAXException {
- ctor public SAXNotSupportedException();
- ctor public SAXNotSupportedException(String);
- }
-
- public class SAXParseException extends org.xml.sax.SAXException {
- ctor public SAXParseException(String, org.xml.sax.Locator);
- ctor public SAXParseException(String, org.xml.sax.Locator, Exception);
- ctor public SAXParseException(String, String, String, int, int);
- ctor public SAXParseException(String, String, String, int, int, Exception);
- method public int getColumnNumber();
- method public int getLineNumber();
- method public String getPublicId();
- method public String getSystemId();
- }
-
- public interface XMLFilter extends org.xml.sax.XMLReader {
- method public org.xml.sax.XMLReader getParent();
- method public void setParent(org.xml.sax.XMLReader);
- }
-
- public interface XMLReader {
- method public org.xml.sax.ContentHandler getContentHandler();
- method public org.xml.sax.DTDHandler getDTDHandler();
- method public org.xml.sax.EntityResolver getEntityResolver();
- method public org.xml.sax.ErrorHandler getErrorHandler();
- method public boolean getFeature(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public Object getProperty(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public void parse(org.xml.sax.InputSource) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parse(String) throws java.io.IOException, org.xml.sax.SAXException;
- method public void setContentHandler(org.xml.sax.ContentHandler);
- method public void setDTDHandler(org.xml.sax.DTDHandler);
- method public void setEntityResolver(org.xml.sax.EntityResolver);
- method public void setErrorHandler(org.xml.sax.ErrorHandler);
- method public void setFeature(String, boolean) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public void setProperty(String, Object) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- }
-
-}
-
-package org.xml.sax.ext {
-
- public interface Attributes2 extends org.xml.sax.Attributes {
- method public boolean isDeclared(int);
- method public boolean isDeclared(String);
- method public boolean isDeclared(String, String);
- method public boolean isSpecified(int);
- method public boolean isSpecified(String, String);
- method public boolean isSpecified(String);
- }
-
- public class Attributes2Impl extends org.xml.sax.helpers.AttributesImpl implements org.xml.sax.ext.Attributes2 {
- ctor public Attributes2Impl();
- ctor public Attributes2Impl(org.xml.sax.Attributes);
- method public boolean isDeclared(int);
- method public boolean isDeclared(String, String);
- method public boolean isDeclared(String);
- method public boolean isSpecified(int);
- method public boolean isSpecified(String, String);
- method public boolean isSpecified(String);
- method public void setDeclared(int, boolean);
- method public void setSpecified(int, boolean);
- }
-
- public interface DeclHandler {
- method public void attributeDecl(String, String, String, String, String) throws org.xml.sax.SAXException;
- method public void elementDecl(String, String) throws org.xml.sax.SAXException;
- method public void externalEntityDecl(String, String, String) throws org.xml.sax.SAXException;
- method public void internalEntityDecl(String, String) throws org.xml.sax.SAXException;
- }
-
- public class DefaultHandler2 extends org.xml.sax.helpers.DefaultHandler implements org.xml.sax.ext.DeclHandler org.xml.sax.ext.EntityResolver2 org.xml.sax.ext.LexicalHandler {
- ctor public DefaultHandler2();
- method public void attributeDecl(String, String, String, String, String) throws org.xml.sax.SAXException;
- method public void comment(char[], int, int) throws org.xml.sax.SAXException;
- method public void elementDecl(String, String) throws org.xml.sax.SAXException;
- method public void endCDATA() throws org.xml.sax.SAXException;
- method public void endDTD() throws org.xml.sax.SAXException;
- method public void endEntity(String) throws org.xml.sax.SAXException;
- method public void externalEntityDecl(String, String, String) throws org.xml.sax.SAXException;
- method public org.xml.sax.InputSource getExternalSubset(String, String) throws java.io.IOException, org.xml.sax.SAXException;
- method public void internalEntityDecl(String, String) throws org.xml.sax.SAXException;
- method public org.xml.sax.InputSource resolveEntity(String, String, String, String) throws java.io.IOException, org.xml.sax.SAXException;
- method public void startCDATA() throws org.xml.sax.SAXException;
- method public void startDTD(String, String, String) throws org.xml.sax.SAXException;
- method public void startEntity(String) throws org.xml.sax.SAXException;
- }
-
- public interface EntityResolver2 extends org.xml.sax.EntityResolver {
- method public org.xml.sax.InputSource getExternalSubset(String, String) throws java.io.IOException, org.xml.sax.SAXException;
- method public org.xml.sax.InputSource resolveEntity(String, String, String, String) throws java.io.IOException, org.xml.sax.SAXException;
- }
-
- public interface LexicalHandler {
- method public void comment(char[], int, int) throws org.xml.sax.SAXException;
- method public void endCDATA() throws org.xml.sax.SAXException;
- method public void endDTD() throws org.xml.sax.SAXException;
- method public void endEntity(String) throws org.xml.sax.SAXException;
- method public void startCDATA() throws org.xml.sax.SAXException;
- method public void startDTD(String, String, String) throws org.xml.sax.SAXException;
- method public void startEntity(String) throws org.xml.sax.SAXException;
- }
-
- public interface Locator2 extends org.xml.sax.Locator {
- method public String getEncoding();
- method public String getXMLVersion();
- }
-
- public class Locator2Impl extends org.xml.sax.helpers.LocatorImpl implements org.xml.sax.ext.Locator2 {
- ctor public Locator2Impl();
- ctor public Locator2Impl(org.xml.sax.Locator);
- method public String getEncoding();
- method public String getXMLVersion();
- method public void setEncoding(String);
- method public void setXMLVersion(String);
- }
-
-}
-
-package org.xml.sax.helpers {
-
- @Deprecated public class AttributeListImpl implements org.xml.sax.AttributeList {
- ctor @Deprecated public AttributeListImpl();
- ctor @Deprecated public AttributeListImpl(org.xml.sax.AttributeList);
- method @Deprecated public void addAttribute(String, String, String);
- method @Deprecated public void clear();
- method @Deprecated public int getLength();
- method @Deprecated public String getName(int);
- method @Deprecated public String getType(int);
- method @Deprecated public String getType(String);
- method @Deprecated public String getValue(int);
- method @Deprecated public String getValue(String);
- method @Deprecated public void removeAttribute(String);
- method @Deprecated public void setAttributeList(org.xml.sax.AttributeList);
- }
-
- public class AttributesImpl implements org.xml.sax.Attributes {
- ctor public AttributesImpl();
- ctor public AttributesImpl(org.xml.sax.Attributes);
- method public void addAttribute(String, String, String, String, String);
- method public void clear();
- method public int getIndex(String, String);
- method public int getIndex(String);
- method public int getLength();
- method public String getLocalName(int);
- method public String getQName(int);
- method public String getType(int);
- method public String getType(String, String);
- method public String getType(String);
- method public String getURI(int);
- method public String getValue(int);
- method public String getValue(String, String);
- method public String getValue(String);
- method public void removeAttribute(int);
- method public void setAttribute(int, String, String, String, String, String);
- method public void setAttributes(org.xml.sax.Attributes);
- method public void setLocalName(int, String);
- method public void setQName(int, String);
- method public void setType(int, String);
- method public void setURI(int, String);
- method public void setValue(int, String);
- }
-
- public class DefaultHandler implements org.xml.sax.ContentHandler org.xml.sax.DTDHandler org.xml.sax.EntityResolver org.xml.sax.ErrorHandler {
- ctor public DefaultHandler();
- method public void characters(char[], int, int) throws org.xml.sax.SAXException;
- method public void endDocument() throws org.xml.sax.SAXException;
- method public void endElement(String, String, String) throws org.xml.sax.SAXException;
- method public void endPrefixMapping(String) throws org.xml.sax.SAXException;
- method public void error(org.xml.sax.SAXParseException) throws org.xml.sax.SAXException;
- method public void fatalError(org.xml.sax.SAXParseException) throws org.xml.sax.SAXException;
- method public void ignorableWhitespace(char[], int, int) throws org.xml.sax.SAXException;
- method public void notationDecl(String, String, String) throws org.xml.sax.SAXException;
- method public void processingInstruction(String, String) throws org.xml.sax.SAXException;
- method public org.xml.sax.InputSource resolveEntity(String, String) throws java.io.IOException, org.xml.sax.SAXException;
- method public void setDocumentLocator(org.xml.sax.Locator);
- method public void skippedEntity(String) throws org.xml.sax.SAXException;
- method public void startDocument() throws org.xml.sax.SAXException;
- method public void startElement(String, String, String, org.xml.sax.Attributes) throws org.xml.sax.SAXException;
- method public void startPrefixMapping(String, String) throws org.xml.sax.SAXException;
- method public void unparsedEntityDecl(String, String, String, String) throws org.xml.sax.SAXException;
- method public void warning(org.xml.sax.SAXParseException) throws org.xml.sax.SAXException;
- }
-
- public class LocatorImpl implements org.xml.sax.Locator {
- ctor public LocatorImpl();
- ctor public LocatorImpl(org.xml.sax.Locator);
- method public int getColumnNumber();
- method public int getLineNumber();
- method public String getPublicId();
- method public String getSystemId();
- method public void setColumnNumber(int);
- method public void setLineNumber(int);
- method public void setPublicId(String);
- method public void setSystemId(String);
- }
-
- public class NamespaceSupport {
- ctor public NamespaceSupport();
- method public boolean declarePrefix(String, String);
- method public java.util.Enumeration getDeclaredPrefixes();
- method public String getPrefix(String);
- method public java.util.Enumeration getPrefixes();
- method public java.util.Enumeration getPrefixes(String);
- method public String getURI(String);
- method public boolean isNamespaceDeclUris();
- method public void popContext();
- method public String[] processName(String, String[], boolean);
- method public void pushContext();
- method public void reset();
- method public void setNamespaceDeclUris(boolean);
- field public static final String NSDECL = "http://www.w3.org/xmlns/2000/";
- field public static final String XMLNS = "http://www.w3.org/XML/1998/namespace";
- }
-
- public class ParserAdapter implements org.xml.sax.DocumentHandler org.xml.sax.XMLReader {
- ctor public ParserAdapter() throws org.xml.sax.SAXException;
- ctor public ParserAdapter(org.xml.sax.Parser);
- method public void characters(char[], int, int) throws org.xml.sax.SAXException;
- method public void endDocument() throws org.xml.sax.SAXException;
- method public void endElement(String) throws org.xml.sax.SAXException;
- method public org.xml.sax.ContentHandler getContentHandler();
- method public org.xml.sax.DTDHandler getDTDHandler();
- method public org.xml.sax.EntityResolver getEntityResolver();
- method public org.xml.sax.ErrorHandler getErrorHandler();
- method public boolean getFeature(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public Object getProperty(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public void ignorableWhitespace(char[], int, int) throws org.xml.sax.SAXException;
- method public void parse(String) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parse(org.xml.sax.InputSource) throws java.io.IOException, org.xml.sax.SAXException;
- method public void processingInstruction(String, String) throws org.xml.sax.SAXException;
- method public void setContentHandler(org.xml.sax.ContentHandler);
- method public void setDTDHandler(org.xml.sax.DTDHandler);
- method public void setDocumentLocator(org.xml.sax.Locator);
- method public void setEntityResolver(org.xml.sax.EntityResolver);
- method public void setErrorHandler(org.xml.sax.ErrorHandler);
- method public void setFeature(String, boolean) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public void setProperty(String, Object) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public void startDocument() throws org.xml.sax.SAXException;
- method public void startElement(String, org.xml.sax.AttributeList) throws org.xml.sax.SAXException;
- }
-
- @Deprecated public class ParserFactory {
- method @Deprecated public static org.xml.sax.Parser makeParser() throws java.lang.ClassCastException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.NullPointerException;
- method @Deprecated public static org.xml.sax.Parser makeParser(String) throws java.lang.ClassCastException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException;
- }
-
- public class XMLFilterImpl implements org.xml.sax.ContentHandler org.xml.sax.DTDHandler org.xml.sax.EntityResolver org.xml.sax.ErrorHandler org.xml.sax.XMLFilter {
- ctor public XMLFilterImpl();
- ctor public XMLFilterImpl(org.xml.sax.XMLReader);
- method public void characters(char[], int, int) throws org.xml.sax.SAXException;
- method public void endDocument() throws org.xml.sax.SAXException;
- method public void endElement(String, String, String) throws org.xml.sax.SAXException;
- method public void endPrefixMapping(String) throws org.xml.sax.SAXException;
- method public void error(org.xml.sax.SAXParseException) throws org.xml.sax.SAXException;
- method public void fatalError(org.xml.sax.SAXParseException) throws org.xml.sax.SAXException;
- method public org.xml.sax.ContentHandler getContentHandler();
- method public org.xml.sax.DTDHandler getDTDHandler();
- method public org.xml.sax.EntityResolver getEntityResolver();
- method public org.xml.sax.ErrorHandler getErrorHandler();
- method public boolean getFeature(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public org.xml.sax.XMLReader getParent();
- method public Object getProperty(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public void ignorableWhitespace(char[], int, int) throws org.xml.sax.SAXException;
- method public void notationDecl(String, String, String) throws org.xml.sax.SAXException;
- method public void parse(org.xml.sax.InputSource) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parse(String) throws java.io.IOException, org.xml.sax.SAXException;
- method public void processingInstruction(String, String) throws org.xml.sax.SAXException;
- method public org.xml.sax.InputSource resolveEntity(String, String) throws java.io.IOException, org.xml.sax.SAXException;
- method public void setContentHandler(org.xml.sax.ContentHandler);
- method public void setDTDHandler(org.xml.sax.DTDHandler);
- method public void setDocumentLocator(org.xml.sax.Locator);
- method public void setEntityResolver(org.xml.sax.EntityResolver);
- method public void setErrorHandler(org.xml.sax.ErrorHandler);
- method public void setFeature(String, boolean) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public void setParent(org.xml.sax.XMLReader);
- method public void setProperty(String, Object) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public void skippedEntity(String) throws org.xml.sax.SAXException;
- method public void startDocument() throws org.xml.sax.SAXException;
- method public void startElement(String, String, String, org.xml.sax.Attributes) throws org.xml.sax.SAXException;
- method public void startPrefixMapping(String, String) throws org.xml.sax.SAXException;
- method public void unparsedEntityDecl(String, String, String, String) throws org.xml.sax.SAXException;
- method public void warning(org.xml.sax.SAXParseException) throws org.xml.sax.SAXException;
- }
-
- public class XMLReaderAdapter implements org.xml.sax.ContentHandler org.xml.sax.Parser {
- ctor public XMLReaderAdapter() throws org.xml.sax.SAXException;
- ctor public XMLReaderAdapter(org.xml.sax.XMLReader);
- method public void characters(char[], int, int) throws org.xml.sax.SAXException;
- method public void endDocument() throws org.xml.sax.SAXException;
- method public void endElement(String, String, String) throws org.xml.sax.SAXException;
- method public void endPrefixMapping(String);
- method public void ignorableWhitespace(char[], int, int) throws org.xml.sax.SAXException;
- method public void parse(String) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parse(org.xml.sax.InputSource) throws java.io.IOException, org.xml.sax.SAXException;
- method public void processingInstruction(String, String) throws org.xml.sax.SAXException;
- method public void setDTDHandler(org.xml.sax.DTDHandler);
- method public void setDocumentHandler(org.xml.sax.DocumentHandler);
- method public void setDocumentLocator(org.xml.sax.Locator);
- method public void setEntityResolver(org.xml.sax.EntityResolver);
- method public void setErrorHandler(org.xml.sax.ErrorHandler);
- method public void setLocale(java.util.Locale) throws org.xml.sax.SAXException;
- method public void skippedEntity(String) throws org.xml.sax.SAXException;
- method public void startDocument() throws org.xml.sax.SAXException;
- method public void startElement(String, String, String, org.xml.sax.Attributes) throws org.xml.sax.SAXException;
- method public void startPrefixMapping(String, String);
- }
-
- public final class XMLReaderFactory {
- method public static org.xml.sax.XMLReader createXMLReader() throws org.xml.sax.SAXException;
- method public static org.xml.sax.XMLReader createXMLReader(String) throws org.xml.sax.SAXException;
- }
-
-}
-
-package org.xmlpull.v1 {
-
- public interface XmlPullParser {
- method public void defineEntityReplacementText(String, String) throws org.xmlpull.v1.XmlPullParserException;
- method public int getAttributeCount();
- method public String getAttributeName(int);
- method public String getAttributeNamespace(int);
- method public String getAttributePrefix(int);
- method public String getAttributeType(int);
- method public String getAttributeValue(int);
- method public String getAttributeValue(String, String);
- method public int getColumnNumber();
- method public int getDepth();
- method public int getEventType() throws org.xmlpull.v1.XmlPullParserException;
- method public boolean getFeature(String);
- method public String getInputEncoding();
- method public int getLineNumber();
- method public String getName();
- method public String getNamespace(String);
- method public String getNamespace();
- method public int getNamespaceCount(int) throws org.xmlpull.v1.XmlPullParserException;
- method public String getNamespacePrefix(int) throws org.xmlpull.v1.XmlPullParserException;
- method public String getNamespaceUri(int) throws org.xmlpull.v1.XmlPullParserException;
- method public String getPositionDescription();
- method public String getPrefix();
- method public Object getProperty(String);
- method public String getText();
- method public char[] getTextCharacters(int[]);
- method public boolean isAttributeDefault(int);
- method public boolean isEmptyElementTag() throws org.xmlpull.v1.XmlPullParserException;
- method public boolean isWhitespace() throws org.xmlpull.v1.XmlPullParserException;
- method public int next() throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
- method public int nextTag() throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
- method public String nextText() throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
- method public int nextToken() throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
- method public void require(int, String, String) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
- method public void setFeature(String, boolean) throws org.xmlpull.v1.XmlPullParserException;
- method public void setInput(java.io.Reader) throws org.xmlpull.v1.XmlPullParserException;
- method public void setInput(java.io.InputStream, String) throws org.xmlpull.v1.XmlPullParserException;
- method public void setProperty(String, Object) throws org.xmlpull.v1.XmlPullParserException;
- field public static final int CDSECT = 5; // 0x5
- field public static final int COMMENT = 9; // 0x9
- field public static final int DOCDECL = 10; // 0xa
- field public static final int END_DOCUMENT = 1; // 0x1
- field public static final int END_TAG = 3; // 0x3
- field public static final int ENTITY_REF = 6; // 0x6
- field public static final String FEATURE_PROCESS_DOCDECL = "http://xmlpull.org/v1/doc/features.html#process-docdecl";
- field public static final String FEATURE_PROCESS_NAMESPACES = "http://xmlpull.org/v1/doc/features.html#process-namespaces";
- field public static final String FEATURE_REPORT_NAMESPACE_ATTRIBUTES = "http://xmlpull.org/v1/doc/features.html#report-namespace-prefixes";
- field public static final String FEATURE_VALIDATION = "http://xmlpull.org/v1/doc/features.html#validation";
- field public static final int IGNORABLE_WHITESPACE = 7; // 0x7
- field public static final String NO_NAMESPACE = "";
- field public static final int PROCESSING_INSTRUCTION = 8; // 0x8
- field public static final int START_DOCUMENT = 0; // 0x0
- field public static final int START_TAG = 2; // 0x2
- field public static final int TEXT = 4; // 0x4
- field public static final String[] TYPES;
- }
-
- public class XmlPullParserException extends java.lang.Exception {
- ctor public XmlPullParserException(String);
- ctor public XmlPullParserException(String, org.xmlpull.v1.XmlPullParser, Throwable);
- method public int getColumnNumber();
- method public Throwable getDetail();
- method public int getLineNumber();
- field protected int column;
- field protected Throwable detail;
- field protected int row;
- }
-
- public class XmlPullParserFactory {
- ctor protected XmlPullParserFactory();
- method public boolean getFeature(String);
- method public boolean isNamespaceAware();
- method public boolean isValidating();
- method public static org.xmlpull.v1.XmlPullParserFactory newInstance() throws org.xmlpull.v1.XmlPullParserException;
- method public static org.xmlpull.v1.XmlPullParserFactory newInstance(String, Class) throws org.xmlpull.v1.XmlPullParserException;
- method public org.xmlpull.v1.XmlPullParser newPullParser() throws org.xmlpull.v1.XmlPullParserException;
- method public org.xmlpull.v1.XmlSerializer newSerializer() throws org.xmlpull.v1.XmlPullParserException;
- method public void setFeature(String, boolean) throws org.xmlpull.v1.XmlPullParserException;
- method public void setNamespaceAware(boolean);
- method public void setValidating(boolean);
- field public static final String PROPERTY_NAME = "org.xmlpull.v1.XmlPullParserFactory";
- field protected String classNamesLocation;
- field protected java.util.HashMap<java.lang.String,java.lang.Boolean> features;
- field protected java.util.ArrayList parserClasses;
- field protected java.util.ArrayList serializerClasses;
- }
-
- public interface XmlSerializer {
- method public org.xmlpull.v1.XmlSerializer attribute(String, String, String) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public void cdsect(String) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public void comment(String) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public void docdecl(String) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public void endDocument() throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public org.xmlpull.v1.XmlSerializer endTag(String, String) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public void entityRef(String) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public void flush() throws java.io.IOException;
- method public int getDepth();
- method public boolean getFeature(String);
- method public String getName();
- method public String getNamespace();
- method public String getPrefix(String, boolean) throws java.lang.IllegalArgumentException;
- method public Object getProperty(String);
- method public void ignorableWhitespace(String) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public void processingInstruction(String) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public void setFeature(String, boolean) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public void setOutput(java.io.OutputStream, String) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public void setOutput(java.io.Writer) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public void setPrefix(String, String) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public void setProperty(String, Object) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public void startDocument(String, Boolean) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public org.xmlpull.v1.XmlSerializer startTag(String, String) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public org.xmlpull.v1.XmlSerializer text(String) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- method public org.xmlpull.v1.XmlSerializer text(char[], int, int) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.IllegalStateException;
- }
-
-}
-
-package org.xmlpull.v1.sax2 {
-
- public class Driver implements org.xml.sax.Attributes org.xml.sax.Locator org.xml.sax.XMLReader {
- ctor public Driver() throws org.xmlpull.v1.XmlPullParserException;
- ctor public Driver(org.xmlpull.v1.XmlPullParser) throws org.xmlpull.v1.XmlPullParserException;
- method public int getColumnNumber();
- method public org.xml.sax.ContentHandler getContentHandler();
- method public org.xml.sax.DTDHandler getDTDHandler();
- method public org.xml.sax.EntityResolver getEntityResolver();
- method public org.xml.sax.ErrorHandler getErrorHandler();
- method public boolean getFeature(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public int getIndex(String, String);
- method public int getIndex(String);
- method public int getLength();
- method public int getLineNumber();
- method public String getLocalName(int);
- method public Object getProperty(String) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public String getPublicId();
- method public String getQName(int);
- method public String getSystemId();
- method public String getType(int);
- method public String getType(String, String);
- method public String getType(String);
- method public String getURI(int);
- method public String getValue(int);
- method public String getValue(String, String);
- method public String getValue(String);
- method public void parse(org.xml.sax.InputSource) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parse(String) throws java.io.IOException, org.xml.sax.SAXException;
- method public void parseSubTree(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xml.sax.SAXException;
- method public void setContentHandler(org.xml.sax.ContentHandler);
- method public void setDTDHandler(org.xml.sax.DTDHandler);
- method public void setEntityResolver(org.xml.sax.EntityResolver);
- method public void setErrorHandler(org.xml.sax.ErrorHandler);
- method public void setFeature(String, boolean) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method public void setProperty(String, Object) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException;
- method protected void startElement(String, String, String) throws org.xml.sax.SAXException;
- field protected static final String APACHE_DYNAMIC_VALIDATION_FEATURE = "http://apache.org/xml/features/validation/dynamic";
- field protected static final String APACHE_SCHEMA_VALIDATION_FEATURE = "http://apache.org/xml/features/validation/schema";
- field protected static final String DECLARATION_HANDLER_PROPERTY = "http://xml.org/sax/properties/declaration-handler";
- field protected static final String LEXICAL_HANDLER_PROPERTY = "http://xml.org/sax/properties/lexical-handler";
- field protected static final String NAMESPACES_FEATURE = "http://xml.org/sax/features/namespaces";
- field protected static final String NAMESPACE_PREFIXES_FEATURE = "http://xml.org/sax/features/namespace-prefixes";
- field protected static final String VALIDATION_FEATURE = "http://xml.org/sax/features/validation";
- field protected org.xml.sax.ContentHandler contentHandler;
- field protected org.xml.sax.ErrorHandler errorHandler;
- field protected org.xmlpull.v1.XmlPullParser pp;
- field protected String systemId;
- }
-
-}
-
diff --git a/core/api/system-current.txt b/core/api/system-current.txt
index a3725d3..2a5f787 100644
--- a/core/api/system-current.txt
+++ b/core/api/system-current.txt
@@ -6029,6 +6029,10 @@
method @Deprecated public void onUpstreamChanged(@Nullable android.net.Network);
}
+ public class DnsResolverServiceManager {
+ method @NonNull @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public static android.os.IBinder getService(@NonNull android.content.Context);
+ }
+
public class EthernetManager {
method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public android.net.EthernetManager.TetheredInterfaceRequest requestTetheredInterface(@NonNull java.util.concurrent.Executor, @NonNull android.net.EthernetManager.TetheredInterfaceCallback);
}
@@ -10491,6 +10495,35 @@
package android.telephony.data {
+ public final class ApnThrottleStatus implements android.os.Parcelable {
+ method public int describeContents();
+ method public int getApnType();
+ method public int getRetryType();
+ method public int getSlotIndex();
+ method public long getThrottleExpiryTimeMillis();
+ method public int getThrottleType();
+ method public int getTransportType();
+ method public void writeToParcel(@NonNull android.os.Parcel, int);
+ field @NonNull public static final android.os.Parcelable.Creator<android.telephony.data.ApnThrottleStatus> CREATOR;
+ field public static final int RETRY_TYPE_HANDOVER = 3; // 0x3
+ field public static final int RETRY_TYPE_NEW_CONNECTION = 2; // 0x2
+ field public static final int RETRY_TYPE_NONE = 1; // 0x1
+ field public static final int THROTTLE_TYPE_ELAPSED_TIME = 2; // 0x2
+ field public static final int THROTTLE_TYPE_NONE = 1; // 0x1
+ }
+
+ public static final class ApnThrottleStatus.Builder {
+ ctor public ApnThrottleStatus.Builder();
+ method @NonNull public android.telephony.data.ApnThrottleStatus build();
+ method @NonNull public android.telephony.data.ApnThrottleStatus.Builder setApnType(int);
+ method @NonNull public android.telephony.data.ApnThrottleStatus.Builder setNoThrottle();
+ method @NonNull public android.telephony.data.ApnThrottleStatus.Builder setRetryType(int);
+ method @NonNull public android.telephony.data.ApnThrottleStatus.Builder setSlotIndex(int);
+ method @NonNull public android.telephony.data.ApnThrottleStatus.Builder setThrottleExpiryTimeMillis(long);
+ method @NonNull public android.telephony.data.ApnThrottleStatus.Builder setTransportType(int);
+ field public static final long NO_THROTTLE_EXPIRY_TIME = -1L; // 0xffffffffffffffffL
+ }
+
public final class DataCallResponse implements android.os.Parcelable {
method public int describeContents();
method @NonNull public java.util.List<android.net.LinkAddress> getAddresses();
@@ -10507,7 +10540,7 @@
method @NonNull public java.util.List<java.net.InetAddress> getPcscfAddresses();
method public int getPduSessionId();
method public int getProtocolType();
- method public long getRetryIntervalMillis();
+ method public long getRetryDurationMillis();
method @Deprecated public int getSuggestedRetryTime();
method public void writeToParcel(android.os.Parcel, int);
field @NonNull public static final android.os.Parcelable.Creator<android.telephony.data.DataCallResponse> CREATOR;
@@ -10521,7 +10554,7 @@
field public static final int LINK_STATUS_INACTIVE = 0; // 0x0
field public static final int LINK_STATUS_UNKNOWN = -1; // 0xffffffff
field public static final int PDU_SESSION_ID_NOT_SET = 0; // 0x0
- field public static final int RETRY_INTERVAL_UNDEFINED = -1; // 0xffffffff
+ field public static final int RETRY_DURATION_UNDEFINED = -1; // 0xffffffff
}
public static final class DataCallResponse.Builder {
@@ -10541,7 +10574,7 @@
method @NonNull public android.telephony.data.DataCallResponse.Builder setPcscfAddresses(@NonNull java.util.List<java.net.InetAddress>);
method @NonNull public android.telephony.data.DataCallResponse.Builder setPduSessionId(int);
method @NonNull public android.telephony.data.DataCallResponse.Builder setProtocolType(int);
- method @NonNull public android.telephony.data.DataCallResponse.Builder setRetryIntervalMillis(long);
+ method @NonNull public android.telephony.data.DataCallResponse.Builder setRetryDurationMillis(long);
method @Deprecated @NonNull public android.telephony.data.DataCallResponse.Builder setSuggestedRetryTime(int);
}
@@ -10608,6 +10641,7 @@
method public abstract void close();
method public void deactivateDataCall(int, int, @Nullable android.telephony.data.DataServiceCallback);
method public final int getSlotIndex();
+ method public final void notifyApnUnthrottled(@NonNull String);
method public final void notifyDataCallListChanged(java.util.List<android.telephony.data.DataCallResponse>);
method public void requestDataCallList(@NonNull android.telephony.data.DataServiceCallback);
method public void setDataProfile(@NonNull java.util.List<android.telephony.data.DataProfile>, boolean, @NonNull android.telephony.data.DataServiceCallback);
@@ -10618,6 +10652,7 @@
}
public class DataServiceCallback {
+ method public void onApnUnthrottled(@NonNull String);
method public void onDataCallListChanged(@NonNull java.util.List<android.telephony.data.DataCallResponse>);
method public void onDeactivateDataCallComplete(int);
method public void onHandoverCancelled(int);
@@ -10643,6 +10678,7 @@
ctor public QualifiedNetworksService.NetworkAvailabilityProvider(int);
method public abstract void close();
method public final int getSlotIndex();
+ method public void reportApnThrottleStatusChanged(@NonNull java.util.List<android.telephony.data.ApnThrottleStatus>);
method public final void updateQualifiedNetworkTypes(int, @NonNull java.util.List<java.lang.Integer>);
}
@@ -11028,6 +11064,7 @@
method public boolean getCallExtraBoolean(String, boolean);
method public int getCallExtraInt(String);
method public int getCallExtraInt(String, int);
+ method @Nullable public <T extends android.os.Parcelable> T getCallExtraParcelable(@Nullable String);
method public android.os.Bundle getCallExtras();
method public int getCallType();
method public static int getCallTypeFromVideoState(int);
@@ -11050,6 +11087,7 @@
method public void setCallExtra(String, String);
method public void setCallExtraBoolean(String, boolean);
method public void setCallExtraInt(String, int);
+ method public void setCallExtraParcelable(@NonNull String, @NonNull android.os.Parcelable);
method public void setCallRestrictCause(int);
method public void setCallerNumberVerificationStatus(int);
method public void setEmergencyCallRouting(int);
@@ -11084,6 +11122,7 @@
field public static final String EXTRA_CALL_DISCONNECT_CAUSE = "android.telephony.ims.extra.CALL_DISCONNECT_CAUSE";
field public static final String EXTRA_CALL_NETWORK_TYPE = "android.telephony.ims.extra.CALL_NETWORK_TYPE";
field @Deprecated public static final String EXTRA_CALL_RAT_TYPE = "CallRadioTech";
+ field public static final String EXTRA_CALL_SUBJECT = "android.telephony.ims.extra.CALL_SUBJECT";
field public static final String EXTRA_CHILD_NUMBER = "ChildNum";
field public static final String EXTRA_CNA = "cna";
field public static final String EXTRA_CNAP = "cnap";
@@ -11093,8 +11132,11 @@
field public static final String EXTRA_EMERGENCY_CALL = "e_call";
field public static final String EXTRA_FORWARDED_NUMBER = "android.telephony.ims.extra.FORWARDED_NUMBER";
field public static final String EXTRA_IS_CALL_PULL = "CallPull";
+ field public static final String EXTRA_LOCATION = "android.telephony.ims.extra.LOCATION";
field public static final String EXTRA_OI = "oi";
field public static final String EXTRA_OIR = "oir";
+ field public static final String EXTRA_PICTURE_URL = "android.telephony.ims.extra.PICTURE_URL";
+ field public static final String EXTRA_PRIORITY = "android.telephony.ims.extra.PRIORITY";
field public static final String EXTRA_REMOTE_URI = "remote_uri";
field public static final String EXTRA_USSD = "ussd";
field public static final int OIR_DEFAULT = 0; // 0x0
@@ -11102,6 +11144,8 @@
field public static final int OIR_PRESENTATION_PAYPHONE = 4; // 0x4
field public static final int OIR_PRESENTATION_RESTRICTED = 1; // 0x1
field public static final int OIR_PRESENTATION_UNKNOWN = 3; // 0x3
+ field public static final int PRIORITY_NORMAL = 0; // 0x0
+ field public static final int PRIORITY_URGENT = 1; // 0x1
field public static final int SERVICE_TYPE_EMERGENCY = 2; // 0x2
field public static final int SERVICE_TYPE_NONE = 0; // 0x0
field public static final int SERVICE_TYPE_NORMAL = 1; // 0x1
@@ -11123,7 +11167,9 @@
method public void callSessionHoldFailed(android.telephony.ims.ImsReasonInfo);
method public void callSessionHoldReceived(android.telephony.ims.ImsCallProfile);
method public void callSessionInitiated(android.telephony.ims.ImsCallProfile);
- method public void callSessionInitiatedFailed(android.telephony.ims.ImsReasonInfo);
+ method @Deprecated public void callSessionInitiatedFailed(android.telephony.ims.ImsReasonInfo);
+ method public void callSessionInitiating(@NonNull android.telephony.ims.ImsCallProfile);
+ method public void callSessionInitiatingFailed(@NonNull android.telephony.ims.ImsReasonInfo);
method public void callSessionInviteParticipantsRequestDelivered();
method public void callSessionInviteParticipantsRequestFailed(android.telephony.ims.ImsReasonInfo);
method @Deprecated public void callSessionMayHandover(int, int);
diff --git a/core/java/android/accounts/GrantCredentialsPermissionActivity.java b/core/java/android/accounts/GrantCredentialsPermissionActivity.java
index af74b03..5dc6e60 100644
--- a/core/java/android/accounts/GrantCredentialsPermissionActivity.java
+++ b/core/java/android/accounts/GrantCredentialsPermissionActivity.java
@@ -16,16 +16,23 @@
package android.accounts;
import android.app.Activity;
-import android.content.res.Resources;
-import android.os.Bundle;
-import android.widget.TextView;
-import android.widget.LinearLayout;
-import android.view.View;
-import android.view.LayoutInflater;
+import android.app.ActivityTaskManager;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
+import android.content.res.Resources;
+import android.os.Bundle;
+import android.os.IBinder;
+import android.os.Process;
+import android.os.RemoteException;
+import android.os.UserHandle;
import android.text.TextUtils;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+
import com.android.internal.R;
import java.io.IOException;
@@ -42,11 +49,15 @@
private Account mAccount;
private String mAuthTokenType;
private int mUid;
+ private int mCallingUid;
private Bundle mResultBundle = null;
protected LayoutInflater mInflater;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ getWindow().addSystemFlags(
+ android.view.WindowManager.LayoutParams
+ .SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
setContentView(R.layout.grant_credentials_permission);
setTitle(R.string.grant_permissions_header_text);
@@ -74,6 +85,20 @@
return;
}
+ try {
+ IBinder activityToken = getActivityToken();
+ mCallingUid = ActivityTaskManager.getService().getLaunchedFromUid(activityToken);
+ } catch (RemoteException re) {
+ // Couldn't figure out caller details
+ Log.w(getClass().getSimpleName(), "Unable to get caller identity \n" + re);
+ }
+
+ if (!UserHandle.isSameApp(mCallingUid, Process.SYSTEM_UID) && mCallingUid != mUid) {
+ setResult(Activity.RESULT_CANCELED);
+ finish();
+ return;
+ }
+
String accountTypeLabel;
try {
accountTypeLabel = getAccountLabel(mAccount);
diff --git a/core/java/android/app/people/OWNERS b/core/java/android/app/people/OWNERS
new file mode 100644
index 0000000..7371a88
--- /dev/null
+++ b/core/java/android/app/people/OWNERS
@@ -0,0 +1,4 @@
+# Bug component: 978868
+
+danningc@google.com
+juliacr@google.com
\ No newline at end of file
diff --git a/core/java/android/app/slice/SliceProvider.java b/core/java/android/app/slice/SliceProvider.java
index bd1eea5..46be548 100644
--- a/core/java/android/app/slice/SliceProvider.java
+++ b/core/java/android/app/slice/SliceProvider.java
@@ -153,6 +153,7 @@
*/
public static final String EXTRA_PKG = "pkg";
/**
+ * @Deprecated provider pkg is now being extracted in SlicePermissionActivity
* @hide
*/
public static final String EXTRA_PROVIDER_PKG = "provider_pkg";
diff --git a/core/java/android/bluetooth/BluetoothHeadset.java b/core/java/android/bluetooth/BluetoothHeadset.java
index adb7e2f7..f59ae33 100644
--- a/core/java/android/bluetooth/BluetoothHeadset.java
+++ b/core/java/android/bluetooth/BluetoothHeadset.java
@@ -682,6 +682,48 @@
}
/**
+ * Checks whether the headset supports some form of noise reduction
+ *
+ * @param device Bluetooth device
+ * @return true if echo cancellation and/or noise reduction is supported, false otherwise
+ */
+ @RequiresPermission(Manifest.permission.BLUETOOTH)
+ public boolean isNoiseReductionSupported(@NonNull BluetoothDevice device) {
+ if (DBG) log("isNoiseReductionSupported()");
+ final IBluetoothHeadset service = mService;
+ if (service != null && isEnabled() && isValidDevice(device)) {
+ try {
+ return service.isNoiseReductionSupported(device);
+ } catch (RemoteException e) {
+ Log.e(TAG, Log.getStackTraceString(new Throwable()));
+ }
+ }
+ if (service == null) Log.w(TAG, "Proxy not attached to service");
+ return false;
+ }
+
+ /**
+ * Checks whether the headset supports voice recognition
+ *
+ * @param device Bluetooth device
+ * @return true if voice recognition is supported, false otherwise
+ */
+ @RequiresPermission(Manifest.permission.BLUETOOTH)
+ public boolean isVoiceRecognitionSupported(@NonNull BluetoothDevice device) {
+ if (DBG) log("isVoiceRecognitionSupported()");
+ final IBluetoothHeadset service = mService;
+ if (service != null && isEnabled() && isValidDevice(device)) {
+ try {
+ return service.isVoiceRecognitionSupported(device);
+ } catch (RemoteException e) {
+ Log.e(TAG, Log.getStackTraceString(new Throwable()));
+ }
+ }
+ if (service == null) Log.w(TAG, "Proxy not attached to service");
+ return false;
+ }
+
+ /**
* Start Bluetooth voice recognition. This methods sends the voice
* recognition AT command to the headset and establishes the
* audio connection.
diff --git a/core/java/android/content/ContextWrapper.java b/core/java/android/content/ContextWrapper.java
index 3d724f0..5bdd521 100644
--- a/core/java/android/content/ContextWrapper.java
+++ b/core/java/android/content/ContextWrapper.java
@@ -943,7 +943,7 @@
/** @hide */
@Override
- @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
+ @UnsupportedAppUsage(trackingBug = 175981568)
public Context createApplicationContext(ApplicationInfo application,
int flags) throws PackageManager.NameNotFoundException {
return mBase.createApplicationContext(application, flags);
diff --git a/core/java/android/content/om/IOverlayManager.aidl b/core/java/android/content/om/IOverlayManager.aidl
index 44b5c44..0b950b4 100644
--- a/core/java/android/content/om/IOverlayManager.aidl
+++ b/core/java/android/content/om/IOverlayManager.aidl
@@ -17,6 +17,7 @@
package android.content.om;
import android.content.om.OverlayInfo;
+import android.content.om.OverlayManagerTransaction;
/**
* Api for getting information about overlay packages.
@@ -163,4 +164,18 @@
* @param packageName The name of the overlay package whose idmap should be deleted.
*/
void invalidateCachesForOverlay(in String packageName, in int userIs);
+
+ /**
+ * Perform a series of requests related to overlay packages. This is an
+ * atomic operation: either all requests were performed successfully and
+ * the changes were propagated to the rest of the system, or at least one
+ * request could not be performed successfully and nothing is changed and
+ * nothing is propagated to the rest of the system.
+ *
+ * @see OverlayManagerTransaction
+ *
+ * @param transaction the series of overlay related requests to perform
+ * @throws SecurityException if the transaction failed
+ */
+ void commit(in OverlayManagerTransaction transaction);
}
diff --git a/core/java/android/content/om/OverlayManager.java b/core/java/android/content/om/OverlayManager.java
index 217f637c..7c14c28 100644
--- a/core/java/android/content/om/OverlayManager.java
+++ b/core/java/android/content/om/OverlayManager.java
@@ -254,6 +254,29 @@
}
/**
+ * Perform a series of requests related to overlay packages. This is an
+ * atomic operation: either all requests were performed successfully and
+ * the changes were propagated to the rest of the system, or at least one
+ * request could not be performed successfully and nothing is changed and
+ * nothing is propagated to the rest of the system.
+ *
+ * @see OverlayManagerTransaction
+ *
+ * @param transaction the series of overlay related requests to perform
+ * @throws Exception if not all the requests could be successfully and
+ * atomically executed
+ *
+ * @hide
+ */
+ public void commit(@NonNull final OverlayManagerTransaction transaction) {
+ try {
+ mService.commit(transaction);
+ } catch (RemoteException e) {
+ throw e.rethrowFromSystemServer();
+ }
+ }
+
+ /**
* Starting on R, actor enforcement and app visibility changes introduce additional failure
* cases, but the SecurityException thrown with these checks is unexpected for existing
* consumers of the API.
diff --git a/core/java/android/content/om/OverlayManagerTransaction.aidl b/core/java/android/content/om/OverlayManagerTransaction.aidl
new file mode 100644
index 0000000..6715c82
--- /dev/null
+++ b/core/java/android/content/om/OverlayManagerTransaction.aidl
@@ -0,0 +1,19 @@
+/*
+ * Copyright (C) 2019 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.content.om;
+
+parcelable OverlayManagerTransaction;
diff --git a/core/java/android/content/om/OverlayManagerTransaction.java b/core/java/android/content/om/OverlayManagerTransaction.java
new file mode 100644
index 0000000..1fa8973
--- /dev/null
+++ b/core/java/android/content/om/OverlayManagerTransaction.java
@@ -0,0 +1,216 @@
+/*
+ * Copyright (C) 2019 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.content.om;
+
+import static com.android.internal.util.Preconditions.checkNotNull;
+
+import android.annotation.IntDef;
+import android.annotation.NonNull;
+import android.os.Parcel;
+import android.os.Parcelable;
+import android.os.UserHandle;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+/**
+ * Container for a batch of requests to the OverlayManagerService.
+ *
+ * Transactions are created using a builder interface. Example usage:
+ *
+ * final OverlayManager om = ctx.getSystemService(OverlayManager.class);
+ * final OverlayManagerTransaction t = new OverlayManagerTransaction.Builder()
+ * .setEnabled(...)
+ * .setEnabled(...)
+ * .build();
+ * om.commit(t);
+ *
+ * @hide
+ */
+public class OverlayManagerTransaction
+ implements Iterable<OverlayManagerTransaction.Request>, Parcelable {
+ // TODO: remove @hide from this class when OverlayManager is added to the
+ // SDK, but keep OverlayManagerTransaction.Request @hidden
+ private final List<Request> mRequests;
+
+ OverlayManagerTransaction(@NonNull final List<Request> requests) {
+ checkNotNull(requests);
+ if (requests.contains(null)) {
+ throw new IllegalArgumentException("null request");
+ }
+ mRequests = requests;
+ }
+
+ private OverlayManagerTransaction(@NonNull final Parcel source) {
+ final int size = source.readInt();
+ mRequests = new ArrayList<Request>(size);
+ for (int i = 0; i < size; i++) {
+ final int request = source.readInt();
+ final String packageName = source.readString();
+ final int userId = source.readInt();
+ mRequests.add(new Request(request, packageName, userId));
+ }
+ }
+
+ @Override
+ public Iterator<Request> iterator() {
+ return mRequests.iterator();
+ }
+
+ @Override
+ public String toString() {
+ return String.format("OverlayManagerTransaction { mRequests = %s }", mRequests);
+ }
+
+ /**
+ * A single unit of the transaction, such as a request to enable an
+ * overlay, or to disable an overlay.
+ *
+ * @hide
+ */
+ public static class Request {
+ @IntDef(prefix = "TYPE_", value = {
+ TYPE_SET_ENABLED,
+ TYPE_SET_DISABLED,
+ })
+ @Retention(RetentionPolicy.SOURCE)
+ @interface RequestType {}
+
+ public static final int TYPE_SET_ENABLED = 0;
+ public static final int TYPE_SET_DISABLED = 1;
+
+ @RequestType public final int type;
+ public final String packageName;
+ public final int userId;
+
+ public Request(@RequestType final int type, @NonNull final String packageName,
+ final int userId) {
+ this.type = type;
+ this.packageName = packageName;
+ this.userId = userId;
+ }
+
+ @Override
+ public String toString() {
+ return String.format("Request{type=0x%02x (%s), packageName=%s, userId=%d}",
+ type, typeToString(), packageName, userId);
+ }
+
+ /**
+ * Translate the request type into a human readable string. Only
+ * intended for debugging.
+ *
+ * @hide
+ */
+ public String typeToString() {
+ switch (type) {
+ case TYPE_SET_ENABLED: return "TYPE_SET_ENABLED";
+ case TYPE_SET_DISABLED: return "TYPE_SET_DISABLED";
+ default: return String.format("TYPE_UNKNOWN (0x%02x)", type);
+ }
+ }
+ }
+
+ /**
+ * Builder class for OverlayManagerTransaction objects.
+ *
+ * @hide
+ */
+ public static class Builder {
+ private final List<Request> mRequests = new ArrayList<>();
+
+ /**
+ * Request that an overlay package be enabled and change its loading
+ * order to the last package to be loaded, or disabled
+ *
+ * If the caller has the correct permissions, it is always possible to
+ * disable an overlay. Due to technical and security reasons it may not
+ * always be possible to enable an overlay, for instance if the overlay
+ * does not successfully overlay any target resources due to
+ * overlayable policy restrictions.
+ *
+ * An enabled overlay is a part of target package's resources, i.e. it will
+ * be part of any lookups performed via {@link android.content.res.Resources}
+ * and {@link android.content.res.AssetManager}. A disabled overlay will no
+ * longer affect the resources of the target package. If the target is
+ * currently running, its outdated resources will be replaced by new ones.
+ *
+ * @param packageName The name of the overlay package.
+ * @param enable true to enable the overlay, false to disable it.
+ * @return this Builder object, so you can chain additional requests
+ */
+ public Builder setEnabled(@NonNull String packageName, boolean enable) {
+ return setEnabled(packageName, enable, UserHandle.myUserId());
+ }
+
+ /**
+ * @hide
+ */
+ public Builder setEnabled(@NonNull String packageName, boolean enable, int userId) {
+ checkNotNull(packageName);
+ @Request.RequestType final int type =
+ enable ? Request.TYPE_SET_ENABLED : Request.TYPE_SET_DISABLED;
+ mRequests.add(new Request(type, packageName, userId));
+ return this;
+ }
+
+ /**
+ * Create a new transaction out of the requests added so far. Execute
+ * the transaction by calling OverlayManager#commit.
+ *
+ * @see OverlayManager#commit
+ * @return a new transaction
+ */
+ public OverlayManagerTransaction build() {
+ return new OverlayManagerTransaction(mRequests);
+ }
+ }
+
+ @Override
+ public int describeContents() {
+ return 0;
+ }
+
+ @Override
+ public void writeToParcel(Parcel dest, int flags) {
+ final int size = mRequests.size();
+ dest.writeInt(size);
+ for (int i = 0; i < size; i++) {
+ final Request req = mRequests.get(i);
+ dest.writeInt(req.type);
+ dest.writeString(req.packageName);
+ dest.writeInt(req.userId);
+ }
+ }
+
+ public static final Parcelable.Creator<OverlayManagerTransaction> CREATOR =
+ new Parcelable.Creator<OverlayManagerTransaction>() {
+
+ @Override
+ public OverlayManagerTransaction createFromParcel(Parcel source) {
+ return new OverlayManagerTransaction(source);
+ }
+
+ @Override
+ public OverlayManagerTransaction[] newArray(int size) {
+ return new OverlayManagerTransaction[size];
+ }
+ };
+}
diff --git a/core/java/android/content/pm/LAUNCHER_OWNERS b/core/java/android/content/pm/LAUNCHER_OWNERS
new file mode 100644
index 0000000..400836f
--- /dev/null
+++ b/core/java/android/content/pm/LAUNCHER_OWNERS
@@ -0,0 +1,7 @@
+set noparent
+
+omakoto@google.com
+sunnygoyal@google.com
+mett@google.com
+jonmiranda@google.com
+pinyaoting@google.com
diff --git a/core/java/android/content/pm/OWNERS b/core/java/android/content/pm/OWNERS
index 24872e8..f88df95 100644
--- a/core/java/android/content/pm/OWNERS
+++ b/core/java/android/content/pm/OWNERS
@@ -5,4 +5,5 @@
patb@google.com
per-file PackageParser.java = chiuwinson@google.com
-per-file *Shortcut* = omakoto@google.com, yamasani@google.com, sunnygoyal@google.com, mett@google.com, pinyaoting@google.com
+per-file *Shortcut* = file:/core/java/android/content/pm/SHORTCUT_OWNERS
+per-file *Launcher* = file:/core/java/android/content/pm/LAUNCHER_OWNERS
diff --git a/core/java/android/content/pm/SHORTCUT_OWNERS b/core/java/android/content/pm/SHORTCUT_OWNERS
new file mode 100644
index 0000000..3688d5a
--- /dev/null
+++ b/core/java/android/content/pm/SHORTCUT_OWNERS
@@ -0,0 +1,7 @@
+set noparent
+
+omakoto@google.com
+yamasani@google.com
+sunnygoyal@google.com
+mett@google.com
+pinyaoting@google.com
diff --git a/core/java/android/content/res/Resources.java b/core/java/android/content/res/Resources.java
index 6c911f6..63c58d2 100644
--- a/core/java/android/content/res/Resources.java
+++ b/core/java/android/content/res/Resources.java
@@ -2057,7 +2057,7 @@
}
/** @hide */
- @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
+ @UnsupportedAppUsage(trackingBug = 176190631)
public DisplayAdjustments getDisplayAdjustments() {
final DisplayAdjustments overrideDisplayAdjustments = mOverrideDisplayAdjustments;
if (overrideDisplayAdjustments != null) {
diff --git a/core/java/android/net/ConnectivityDiagnosticsManager.java b/core/java/android/net/ConnectivityDiagnosticsManager.java
index 704f31d..5234494 100644
--- a/core/java/android/net/ConnectivityDiagnosticsManager.java
+++ b/core/java/android/net/ConnectivityDiagnosticsManager.java
@@ -623,32 +623,41 @@
/** @hide */
@VisibleForTesting
public void onConnectivityReportAvailable(@NonNull ConnectivityReport report) {
- Binder.withCleanCallingIdentity(() -> {
+ final long token = Binder.clearCallingIdentity();
+ try {
mExecutor.execute(() -> {
mCb.onConnectivityReportAvailable(report);
});
- });
+ } finally {
+ Binder.restoreCallingIdentity(token);
+ }
}
/** @hide */
@VisibleForTesting
public void onDataStallSuspected(@NonNull DataStallReport report) {
- Binder.withCleanCallingIdentity(() -> {
+ final long token = Binder.clearCallingIdentity();
+ try {
mExecutor.execute(() -> {
mCb.onDataStallSuspected(report);
});
- });
+ } finally {
+ Binder.restoreCallingIdentity(token);
+ }
}
/** @hide */
@VisibleForTesting
public void onNetworkConnectivityReported(
@NonNull Network network, boolean hasConnectivity) {
- Binder.withCleanCallingIdentity(() -> {
+ final long token = Binder.clearCallingIdentity();
+ try {
mExecutor.execute(() -> {
mCb.onNetworkConnectivityReported(network, hasConnectivity);
});
- });
+ } finally {
+ Binder.restoreCallingIdentity(token);
+ }
}
}
diff --git a/core/java/android/net/ConnectivityManager.java b/core/java/android/net/ConnectivityManager.java
index 540ea5c..06c15980 100644
--- a/core/java/android/net/ConnectivityManager.java
+++ b/core/java/android/net/ConnectivityManager.java
@@ -59,8 +59,10 @@
import android.telephony.TelephonyManager;
import android.util.ArrayMap;
import android.util.Log;
+import android.util.Range;
import android.util.SparseIntArray;
+import com.android.connectivity.aidl.INetworkAgent;
import com.android.internal.annotations.GuardedBy;
import com.android.internal.util.Preconditions;
import com.android.internal.util.Protocol;
@@ -72,10 +74,12 @@
import java.io.UncheckedIOException;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
+import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.util.ArrayList;
+import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -1162,6 +1166,55 @@
}
/**
+ * Adds or removes a requirement for given UID ranges to use the VPN.
+ *
+ * If set to {@code true}, informs the system that the UIDs in the specified ranges must not
+ * have any connectivity except if a VPN is connected and applies to the UIDs, or if the UIDs
+ * otherwise have permission to bypass the VPN (e.g., because they have the
+ * {@link android.Manifest.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS} permission, or when
+ * using a socket protected by a method such as {@link VpnService#protect(DatagramSocket)}. If
+ * set to {@code false}, a previously-added restriction is removed.
+ * <p>
+ * Each of the UID ranges specified by this method is added and removed as is, and no processing
+ * is performed on the ranges to de-duplicate, merge, split, or intersect them. In order to
+ * remove a previously-added range, the exact range must be removed as is.
+ * <p>
+ * The changes are applied asynchronously and may not have been applied by the time the method
+ * returns. Apps will be notified about any changes that apply to them via
+ * {@link NetworkCallback#onBlockedStatusChanged} callbacks called after the changes take
+ * effect.
+ * <p>
+ * This method should be called only by the VPN code.
+ *
+ * @param ranges the UID ranges to restrict
+ * @param requireVpn whether the specified UID ranges must use a VPN
+ *
+ * TODO: expose as @SystemApi.
+ * @hide
+ */
+ @RequiresPermission(anyOf = {
+ NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
+ android.Manifest.permission.NETWORK_STACK})
+ public void setRequireVpnForUids(boolean requireVpn,
+ @NonNull Collection<Range<Integer>> ranges) {
+ Objects.requireNonNull(ranges);
+ // The Range class is not parcelable. Convert to UidRange, which is what is used internally.
+ // This method is not necessarily expected to be used outside the system server, so
+ // parceling may not be necessary, but it could be used out-of-process, e.g., by the network
+ // stack process, or by tests.
+ UidRange[] rangesArray = new UidRange[ranges.size()];
+ int index = 0;
+ for (Range<Integer> range : ranges) {
+ rangesArray[index++] = new UidRange(range.getLower(), range.getUpper());
+ }
+ try {
+ mService.setRequireVpnForUids(requireVpn, rangesArray);
+ } catch (RemoteException e) {
+ throw e.rethrowFromSystemServer();
+ }
+ }
+
+ /**
* Returns details about the currently active default data network
* for a given uid. This is for internal use only to avoid spying
* other apps.
@@ -1832,30 +1885,42 @@
mCallback = new ISocketKeepaliveCallback.Stub() {
@Override
public void onStarted(int slot) {
- Binder.withCleanCallingIdentity(() ->
- mExecutor.execute(() -> {
- mSlot = slot;
- callback.onStarted();
- }));
+ final long token = Binder.clearCallingIdentity();
+ try {
+ mExecutor.execute(() -> {
+ mSlot = slot;
+ callback.onStarted();
+ });
+ } finally {
+ Binder.restoreCallingIdentity(token);
+ }
}
@Override
public void onStopped() {
- Binder.withCleanCallingIdentity(() ->
- mExecutor.execute(() -> {
- mSlot = null;
- callback.onStopped();
- }));
+ final long token = Binder.clearCallingIdentity();
+ try {
+ mExecutor.execute(() -> {
+ mSlot = null;
+ callback.onStopped();
+ });
+ } finally {
+ Binder.restoreCallingIdentity(token);
+ }
mExecutor.shutdown();
}
@Override
public void onError(int error) {
- Binder.withCleanCallingIdentity(() ->
- mExecutor.execute(() -> {
- mSlot = null;
- callback.onError(error);
- }));
+ final long token = Binder.clearCallingIdentity();
+ try {
+ mExecutor.execute(() -> {
+ mSlot = null;
+ callback.onError(error);
+ });
+ } finally {
+ Binder.restoreCallingIdentity(token);
+ }
mExecutor.shutdown();
}
@@ -3119,39 +3184,6 @@
}
/**
- * Check mobile provisioning.
- *
- * @param suggestedTimeOutMs, timeout in milliseconds
- *
- * @return time out that will be used, maybe less that suggestedTimeOutMs
- * -1 if an error.
- *
- * {@hide}
- */
- public int checkMobileProvisioning(int suggestedTimeOutMs) {
- int timeOutMs = -1;
- try {
- timeOutMs = mService.checkMobileProvisioning(suggestedTimeOutMs);
- } catch (RemoteException e) {
- throw e.rethrowFromSystemServer();
- }
- return timeOutMs;
- }
-
- /**
- * Get the mobile provisioning url.
- * {@hide}
- */
- @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS)
- public String getMobileProvisioningUrl() {
- try {
- return mService.getMobileProvisioningUrl();
- } catch (RemoteException e) {
- throw e.rethrowFromSystemServer();
- }
- }
-
- /**
* Set sign in error notification to visible or invisible
*
* @hide
@@ -3287,9 +3319,9 @@
@RequiresPermission(anyOf = {
NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
android.Manifest.permission.NETWORK_FACTORY})
- public Network registerNetworkAgent(Messenger messenger, NetworkInfo ni, LinkProperties lp,
+ public Network registerNetworkAgent(INetworkAgent na, NetworkInfo ni, LinkProperties lp,
NetworkCapabilities nc, int score, NetworkAgentConfig config) {
- return registerNetworkAgent(messenger, ni, lp, nc, score, config, NetworkProvider.ID_NONE);
+ return registerNetworkAgent(na, ni, lp, nc, score, config, NetworkProvider.ID_NONE);
}
/**
@@ -3300,10 +3332,10 @@
@RequiresPermission(anyOf = {
NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
android.Manifest.permission.NETWORK_FACTORY})
- public Network registerNetworkAgent(Messenger messenger, NetworkInfo ni, LinkProperties lp,
+ public Network registerNetworkAgent(INetworkAgent na, NetworkInfo ni, LinkProperties lp,
NetworkCapabilities nc, int score, NetworkAgentConfig config, int providerId) {
try {
- return mService.registerNetworkAgent(messenger, ni, lp, nc, score, config, providerId);
+ return mService.registerNetworkAgent(na, ni, lp, nc, score, config, providerId);
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
diff --git a/core/java/android/net/DnsResolverServiceManager.java b/core/java/android/net/DnsResolverServiceManager.java
new file mode 100644
index 0000000..1597322
--- /dev/null
+++ b/core/java/android/net/DnsResolverServiceManager.java
@@ -0,0 +1,63 @@
+/*
+ * Copyright (C) 2020 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package android.net;
+
+import android.annotation.NonNull;
+import android.annotation.RequiresPermission;
+import android.annotation.SystemApi;
+import android.content.Context;
+import android.os.IBinder;
+import android.os.ServiceManager;
+
+import java.util.Objects;
+
+/**
+ * Provides a way to obtain the DnsResolver binder objects.
+ *
+ * @hide
+ */
+@SystemApi
+public class DnsResolverServiceManager {
+ /**
+ * Name to retrieve a {@link android.net.IDnsResolver} IBinder.
+ */
+ private static final String DNS_RESOLVER_SERVICE = "dnsresolver";
+
+ private DnsResolverServiceManager() {}
+
+ /**
+ * Get an {@link IBinder} representing the DnsResolver stable AIDL interface
+ *
+ * @param context the context for permission check.
+ * @return {@link android.net.IDnsResolver} IBinder.
+ */
+ @NonNull
+ @RequiresPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK)
+ public static IBinder getService(@NonNull final Context context) {
+ Objects.requireNonNull(context);
+ context.enforceCallingOrSelfPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
+ "DnsResolverServiceManager");
+ try {
+ return ServiceManager.getServiceOrThrow(DNS_RESOLVER_SERVICE);
+ } catch (ServiceManager.ServiceNotFoundException e) {
+ // Catch ServiceManager#ServiceNotFoundException and rethrow IllegalStateException
+ // because ServiceManager#ServiceNotFoundException is @hide so that it can't be listed
+ // on the system api. Thus, rethrow IllegalStateException if dns resolver service cannot
+ // be found.
+ throw new IllegalStateException("Cannot find dns resolver service.");
+ }
+ }
+}
diff --git a/core/java/android/net/EthernetManager.java b/core/java/android/net/EthernetManager.java
index 84a8e1c..7cd63ef 100644
--- a/core/java/android/net/EthernetManager.java
+++ b/core/java/android/net/EthernetManager.java
@@ -24,10 +24,11 @@
import android.compat.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.os.Build;
-import android.os.Handler;
-import android.os.Message;
import android.os.RemoteException;
+import com.android.internal.annotations.GuardedBy;
+import com.android.internal.os.BackgroundThread;
+
import java.util.ArrayList;
import java.util.Objects;
import java.util.concurrent.Executor;
@@ -41,31 +42,35 @@
@SystemService(Context.ETHERNET_SERVICE)
public class EthernetManager {
private static final String TAG = "EthernetManager";
- private static final int MSG_AVAILABILITY_CHANGED = 1000;
- private final Context mContext;
private final IEthernetManager mService;
- private final Handler mHandler = new Handler(ConnectivityThread.getInstanceLooper()) {
- @Override
- public void handleMessage(Message msg) {
- if (msg.what == MSG_AVAILABILITY_CHANGED) {
- boolean isAvailable = (msg.arg1 == 1);
- for (Listener listener : mListeners) {
- listener.onAvailabilityChanged((String) msg.obj, isAvailable);
- }
- }
- }
- };
- private final ArrayList<Listener> mListeners = new ArrayList<>();
+ @GuardedBy("mListeners")
+ private final ArrayList<ListenerInfo> mListeners = new ArrayList<>();
private final IEthernetServiceListener.Stub mServiceListener =
new IEthernetServiceListener.Stub() {
@Override
public void onAvailabilityChanged(String iface, boolean isAvailable) {
- mHandler.obtainMessage(
- MSG_AVAILABILITY_CHANGED, isAvailable ? 1 : 0, 0, iface).sendToTarget();
+ synchronized (mListeners) {
+ for (ListenerInfo li : mListeners) {
+ li.executor.execute(() ->
+ li.listener.onAvailabilityChanged(iface, isAvailable));
+ }
+ }
}
};
+ private static class ListenerInfo {
+ @NonNull
+ public final Executor executor;
+ @NonNull
+ public final Listener listener;
+
+ private ListenerInfo(@NonNull Executor executor, @NonNull Listener listener) {
+ this.executor = executor;
+ this.listener = listener;
+ }
+ }
+
/**
* A listener interface to receive notification on changes in Ethernet.
* @hide
@@ -89,7 +94,6 @@
* @hide
*/
public EthernetManager(Context context, IEthernetManager service) {
- mContext = context;
mService = service;
}
@@ -146,21 +150,38 @@
/**
* Adds a listener.
+ *
+ * Consider using {@link #addListener(Listener, Executor)} instead: this method uses a default
+ * executor that may have higher latency than a provided executor.
* @param listener A {@link Listener} to add.
* @throws IllegalArgumentException If the listener is null.
* @hide
*/
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
- public void addListener(Listener listener) {
- if (listener == null) {
- throw new IllegalArgumentException("listener must not be null");
+ public void addListener(@NonNull Listener listener) {
+ addListener(listener, BackgroundThread.getExecutor());
+ }
+
+ /**
+ * Adds a listener.
+ * @param listener A {@link Listener} to add.
+ * @param executor Executor to run callbacks on.
+ * @throws IllegalArgumentException If the listener or executor is null.
+ * @hide
+ */
+ @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
+ public void addListener(@NonNull Listener listener, @NonNull Executor executor) {
+ if (listener == null || executor == null) {
+ throw new NullPointerException("listener and executor must not be null");
}
- mListeners.add(listener);
- if (mListeners.size() == 1) {
- try {
- mService.addListener(mServiceListener);
- } catch (RemoteException e) {
- throw e.rethrowFromSystemServer();
+ synchronized (mListeners) {
+ mListeners.add(new ListenerInfo(executor, listener));
+ if (mListeners.size() == 1) {
+ try {
+ mService.addListener(mServiceListener);
+ } catch (RemoteException e) {
+ throw e.rethrowFromSystemServer();
+ }
}
}
}
@@ -185,16 +206,18 @@
* @hide
*/
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
- public void removeListener(Listener listener) {
+ public void removeListener(@NonNull Listener listener) {
if (listener == null) {
throw new IllegalArgumentException("listener must not be null");
}
- mListeners.remove(listener);
- if (mListeners.isEmpty()) {
- try {
- mService.removeListener(mServiceListener);
- } catch (RemoteException e) {
- throw e.rethrowFromSystemServer();
+ synchronized (mListeners) {
+ mListeners.removeIf(l -> l.listener == listener);
+ if (mListeners.isEmpty()) {
+ try {
+ mService.removeListener(mServiceListener);
+ } catch (RemoteException e) {
+ throw e.rethrowFromSystemServer();
+ }
}
}
}
diff --git a/core/java/android/net/IConnectivityManager.aidl b/core/java/android/net/IConnectivityManager.aidl
index 95a2f2e..b32c98b 100644
--- a/core/java/android/net/IConnectivityManager.aidl
+++ b/core/java/android/net/IConnectivityManager.aidl
@@ -29,6 +29,7 @@
import android.net.NetworkState;
import android.net.ISocketKeepaliveCallback;
import android.net.ProxyInfo;
+import android.net.UidRange;
import android.os.Bundle;
import android.os.IBinder;
import android.os.INetworkActivityListener;
@@ -37,6 +38,7 @@
import android.os.PersistableBundle;
import android.os.ResultReceiver;
+import com.android.connectivity.aidl.INetworkAgent;
import com.android.internal.net.LegacyVpnInfo;
import com.android.internal.net.VpnConfig;
import com.android.internal.net.VpnInfo;
@@ -145,10 +147,7 @@
String getAlwaysOnVpnPackage(int userId);
boolean isVpnLockdownEnabled(int userId);
List<String> getVpnLockdownWhitelist(int userId);
-
- int checkMobileProvisioning(int suggestedTimeOutMs);
-
- String getMobileProvisioningUrl();
+ void setRequireVpnForUids(boolean requireVpn, in UidRange[] ranges);
void setProvisioningNotificationVisible(boolean visible, int networkType, in String action);
@@ -164,7 +163,7 @@
void declareNetworkRequestUnfulfillable(in NetworkRequest request);
- Network registerNetworkAgent(in Messenger messenger, in NetworkInfo ni, in LinkProperties lp,
+ Network registerNetworkAgent(in INetworkAgent na, in NetworkInfo ni, in LinkProperties lp,
in NetworkCapabilities nc, int score, in NetworkAgentConfig config,
in int factorySerialNumber);
diff --git a/core/java/android/net/NattKeepalivePacketData.aidl b/core/java/android/net/NattKeepalivePacketData.aidl
new file mode 100644
index 0000000..af644b5
--- /dev/null
+++ b/core/java/android/net/NattKeepalivePacketData.aidl
@@ -0,0 +1,18 @@
+/**
+ * Copyright (c) 2020, The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing perNmissions and
+ * limitations under the License.
+ */
+package android.net;
+
+@JavaOnlyStableParcelable parcelable NattKeepalivePacketData;
diff --git a/core/java/android/net/NetworkAgent.java b/core/java/android/net/NetworkAgent.java
index 6780167..4166c2c 100644
--- a/core/java/android/net/NetworkAgent.java
+++ b/core/java/android/net/NetworkAgent.java
@@ -29,11 +29,12 @@
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
-import android.os.Messenger;
+import android.os.RemoteException;
import android.util.Log;
+import com.android.connectivity.aidl.INetworkAgent;
+import com.android.connectivity.aidl.INetworkAgentRegistry;
import com.android.internal.annotations.VisibleForTesting;
-import com.android.internal.util.AsyncChannel;
import com.android.internal.util.Protocol;
import java.lang.annotation.Retention;
@@ -94,12 +95,18 @@
@Nullable
private volatile Network mNetwork;
+ @Nullable
+ private volatile INetworkAgentRegistry mRegistry;
+
+ private interface RegistryAction {
+ void execute(@NonNull INetworkAgentRegistry registry) throws RemoteException;
+ }
+
private final Handler mHandler;
- private volatile AsyncChannel mAsyncChannel;
private final String LOG_TAG;
private static final boolean DBG = true;
private static final boolean VDBG = false;
- private final ArrayList<Message> mPreConnectedQueue = new ArrayList<Message>();
+ private final ArrayList<RegistryAction> mPreConnectedQueue = new ArrayList<>();
private volatile long mLastBwRefreshTime = 0;
private static final long BW_REFRESH_MIN_WIN_MS = 500;
private boolean mBandwidthUpdateScheduled = false;
@@ -329,6 +336,17 @@
*/
public static final int CMD_REMOVE_KEEPALIVE_PACKET_FILTER = BASE + 17;
+ /**
+ * Sent by ConnectivityService to the NetworkAgent to complete the bidirectional connection.
+ * obj = INetworkAgentRegistry
+ */
+ private static final int EVENT_AGENT_CONNECTED = BASE + 18;
+
+ /**
+ * Sent by ConnectivityService to the NetworkAgent to inform the agent that it was disconnected.
+ */
+ private static final int EVENT_AGENT_DISCONNECTED = BASE + 19;
+
private static NetworkInfo getLegacyNetworkInfo(final NetworkAgentConfig config) {
// The subtype can be changed with (TODO) setLegacySubtype, but it starts
// with 0 (TelephonyManager.NETWORK_TYPE_UNKNOWN) and an empty description.
@@ -402,36 +420,33 @@
@Override
public void handleMessage(Message msg) {
switch (msg.what) {
- case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: {
- if (mAsyncChannel != null) {
+ case EVENT_AGENT_CONNECTED: {
+ if (mRegistry != null) {
log("Received new connection while already connected!");
} else {
if (VDBG) log("NetworkAgent fully connected");
- AsyncChannel ac = new AsyncChannel();
- ac.connected(null, this, msg.replyTo);
- ac.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED,
- AsyncChannel.STATUS_SUCCESSFUL);
synchronized (mPreConnectedQueue) {
- mAsyncChannel = ac;
- for (Message m : mPreConnectedQueue) {
- ac.sendMessage(m);
+ final INetworkAgentRegistry registry = (INetworkAgentRegistry) msg.obj;
+ mRegistry = registry;
+ for (RegistryAction a : mPreConnectedQueue) {
+ try {
+ a.execute(registry);
+ } catch (RemoteException e) {
+ Log.wtf(LOG_TAG, "Communication error with registry", e);
+ // Fall through
+ }
}
mPreConnectedQueue.clear();
}
}
break;
}
- case AsyncChannel.CMD_CHANNEL_DISCONNECT: {
- if (VDBG) log("CMD_CHANNEL_DISCONNECT");
- if (mAsyncChannel != null) mAsyncChannel.disconnect();
- break;
- }
- case AsyncChannel.CMD_CHANNEL_DISCONNECTED: {
+ case EVENT_AGENT_DISCONNECTED: {
if (DBG) log("NetworkAgent channel lost");
// let the client know CS is done with us.
onNetworkUnwanted();
synchronized (mPreConnectedQueue) {
- mAsyncChannel = null;
+ mRegistry = null;
}
break;
}
@@ -494,15 +509,7 @@
}
case CMD_SET_SIGNAL_STRENGTH_THRESHOLDS: {
- ArrayList<Integer> thresholds =
- ((Bundle) msg.obj).getIntegerArrayList("thresholds");
- // TODO: Change signal strength thresholds API to use an ArrayList<Integer>
- // rather than convert to int[].
- int[] intThresholds = new int[(thresholds != null) ? thresholds.size() : 0];
- for (int i = 0; i < intThresholds.length; i++) {
- intThresholds[i] = thresholds.get(i);
- }
- onSignalStrengthThresholdsUpdated(intThresholds);
+ onSignalStrengthThresholdsUpdated((int[]) msg.obj);
break;
}
case CMD_PREVENT_AUTOMATIC_RECONNECT: {
@@ -541,7 +548,7 @@
}
final ConnectivityManager cm = (ConnectivityManager) mInitialConfiguration.context
.getSystemService(Context.CONNECTIVITY_SERVICE);
- mNetwork = cm.registerNetworkAgent(new Messenger(mHandler),
+ mNetwork = cm.registerNetworkAgent(new NetworkAgentBinder(mHandler),
new NetworkInfo(mInitialConfiguration.info),
mInitialConfiguration.properties, mInitialConfiguration.capabilities,
mInitialConfiguration.score, mInitialConfiguration.config, providerId);
@@ -550,6 +557,95 @@
return mNetwork;
}
+ private static class NetworkAgentBinder extends INetworkAgent.Stub {
+ private final Handler mHandler;
+
+ private NetworkAgentBinder(Handler handler) {
+ mHandler = handler;
+ }
+
+ @Override
+ public void onRegistered(@NonNull INetworkAgentRegistry registry) {
+ mHandler.sendMessage(mHandler.obtainMessage(EVENT_AGENT_CONNECTED, registry));
+ }
+
+ @Override
+ public void onDisconnected() {
+ mHandler.sendMessage(mHandler.obtainMessage(EVENT_AGENT_DISCONNECTED));
+ }
+
+ @Override
+ public void onBandwidthUpdateRequested() {
+ mHandler.sendMessage(mHandler.obtainMessage(CMD_REQUEST_BANDWIDTH_UPDATE));
+ }
+
+ @Override
+ public void onValidationStatusChanged(
+ int validationStatus, @Nullable String captivePortalUrl) {
+ // TODO: consider using a parcelable as argument when the interface is structured
+ Bundle redirectUrlBundle = new Bundle();
+ redirectUrlBundle.putString(NetworkAgent.REDIRECT_URL_KEY, captivePortalUrl);
+ mHandler.sendMessage(mHandler.obtainMessage(CMD_REPORT_NETWORK_STATUS,
+ validationStatus, 0, redirectUrlBundle));
+ }
+
+ @Override
+ public void onSaveAcceptUnvalidated(boolean acceptUnvalidated) {
+ mHandler.sendMessage(mHandler.obtainMessage(CMD_SAVE_ACCEPT_UNVALIDATED,
+ acceptUnvalidated ? 1 : 0, 0));
+ }
+
+ @Override
+ public void onStartNattSocketKeepalive(int slot, int intervalDurationMs,
+ @NonNull NattKeepalivePacketData packetData) {
+ mHandler.sendMessage(mHandler.obtainMessage(CMD_START_SOCKET_KEEPALIVE,
+ slot, intervalDurationMs, packetData));
+ }
+
+ @Override
+ public void onStartTcpSocketKeepalive(int slot, int intervalDurationMs,
+ @NonNull TcpKeepalivePacketData packetData) {
+ mHandler.sendMessage(mHandler.obtainMessage(CMD_START_SOCKET_KEEPALIVE,
+ slot, intervalDurationMs, packetData));
+ }
+
+ @Override
+ public void onStopSocketKeepalive(int slot) {
+ mHandler.sendMessage(mHandler.obtainMessage(CMD_STOP_SOCKET_KEEPALIVE, slot, 0));
+ }
+
+ @Override
+ public void onSignalStrengthThresholdsUpdated(@NonNull int[] thresholds) {
+ mHandler.sendMessage(mHandler.obtainMessage(
+ CMD_SET_SIGNAL_STRENGTH_THRESHOLDS, thresholds));
+ }
+
+ @Override
+ public void onPreventAutomaticReconnect() {
+ mHandler.sendMessage(mHandler.obtainMessage(CMD_PREVENT_AUTOMATIC_RECONNECT));
+ }
+
+ @Override
+ public void onAddNattKeepalivePacketFilter(int slot,
+ @NonNull NattKeepalivePacketData packetData) {
+ mHandler.sendMessage(mHandler.obtainMessage(CMD_ADD_KEEPALIVE_PACKET_FILTER,
+ slot, 0, packetData));
+ }
+
+ @Override
+ public void onAddTcpKeepalivePacketFilter(int slot,
+ @NonNull TcpKeepalivePacketData packetData) {
+ mHandler.sendMessage(mHandler.obtainMessage(CMD_ADD_KEEPALIVE_PACKET_FILTER,
+ slot, 0, packetData));
+ }
+
+ @Override
+ public void onRemoveKeepalivePacketFilter(int slot) {
+ mHandler.sendMessage(mHandler.obtainMessage(CMD_REMOVE_KEEPALIVE_PACKET_FILTER,
+ slot, 0));
+ }
+ }
+
/**
* Register this network agent with a testing harness.
*
@@ -559,13 +655,13 @@
*
* @hide
*/
- public Messenger registerForTest(final Network network) {
+ public INetworkAgent registerForTest(final Network network) {
log("Registering NetworkAgent for test");
synchronized (mRegisterLock) {
mNetwork = network;
mInitialConfiguration = null;
}
- return new Messenger(mHandler);
+ return new NetworkAgentBinder(mHandler);
}
/**
@@ -589,29 +685,17 @@
return mNetwork;
}
- private void queueOrSendMessage(int what, Object obj) {
- queueOrSendMessage(what, 0, 0, obj);
- }
-
- private void queueOrSendMessage(int what, int arg1, int arg2) {
- queueOrSendMessage(what, arg1, arg2, null);
- }
-
- private void queueOrSendMessage(int what, int arg1, int arg2, Object obj) {
- Message msg = Message.obtain();
- msg.what = what;
- msg.arg1 = arg1;
- msg.arg2 = arg2;
- msg.obj = obj;
- queueOrSendMessage(msg);
- }
-
- private void queueOrSendMessage(Message msg) {
+ private void queueOrSendMessage(@NonNull RegistryAction action) {
synchronized (mPreConnectedQueue) {
- if (mAsyncChannel != null) {
- mAsyncChannel.sendMessage(msg);
+ if (mRegistry != null) {
+ try {
+ action.execute(mRegistry);
+ } catch (RemoteException e) {
+ Log.wtf(LOG_TAG, "Error executing registry action", e);
+ // Fall through: the channel is asynchronous and does not report errors back
+ }
} else {
- mPreConnectedQueue.add(msg);
+ mPreConnectedQueue.add(action);
}
}
}
@@ -622,7 +706,8 @@
*/
public final void sendLinkProperties(@NonNull LinkProperties linkProperties) {
Objects.requireNonNull(linkProperties);
- queueOrSendMessage(EVENT_NETWORK_PROPERTIES_CHANGED, new LinkProperties(linkProperties));
+ final LinkProperties lp = new LinkProperties(linkProperties);
+ queueOrSendMessage(reg -> reg.sendLinkProperties(lp));
}
/**
@@ -647,9 +732,7 @@
public final void setUnderlyingNetworks(@Nullable List<Network> underlyingNetworks) {
final ArrayList<Network> underlyingArray = (underlyingNetworks != null)
? new ArrayList<>(underlyingNetworks) : null;
- final Bundle bundle = new Bundle();
- bundle.putParcelableArrayList(UNDERLYING_NETWORKS_KEY, underlyingArray);
- queueOrSendMessage(EVENT_UNDERLYING_NETWORKS_CHANGED, bundle);
+ queueOrSendMessage(reg -> reg.sendUnderlyingNetworks(underlyingArray));
}
/**
@@ -659,7 +742,7 @@
public void markConnected() {
mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null /* reason */,
mNetworkInfo.getExtraInfo());
- queueOrSendMessage(EVENT_NETWORK_INFO_CHANGED, mNetworkInfo);
+ queueOrSendNetworkInfo(mNetworkInfo);
}
/**
@@ -672,7 +755,7 @@
// When unregistering an agent nobody should use the extrainfo (or reason) any more.
mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null /* reason */,
null /* extraInfo */);
- queueOrSendMessage(EVENT_NETWORK_INFO_CHANGED, mNetworkInfo);
+ queueOrSendNetworkInfo(mNetworkInfo);
}
/**
@@ -689,7 +772,7 @@
@Deprecated
public void setLegacySubtype(final int legacySubtype, @NonNull final String legacySubtypeName) {
mNetworkInfo.setSubtype(legacySubtype, legacySubtypeName);
- queueOrSendMessage(EVENT_NETWORK_INFO_CHANGED, mNetworkInfo);
+ queueOrSendNetworkInfo(mNetworkInfo);
}
/**
@@ -711,7 +794,7 @@
@Deprecated
public void setLegacyExtraInfo(@Nullable final String extraInfo) {
mNetworkInfo.setExtraInfo(extraInfo);
- queueOrSendMessage(EVENT_NETWORK_INFO_CHANGED, mNetworkInfo);
+ queueOrSendNetworkInfo(mNetworkInfo);
}
/**
@@ -720,7 +803,11 @@
*/
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023)
public final void sendNetworkInfo(NetworkInfo networkInfo) {
- queueOrSendMessage(EVENT_NETWORK_INFO_CHANGED, new NetworkInfo(networkInfo));
+ queueOrSendNetworkInfo(new NetworkInfo(networkInfo));
+ }
+
+ private void queueOrSendNetworkInfo(NetworkInfo networkInfo) {
+ queueOrSendMessage(reg -> reg.sendNetworkInfo(networkInfo));
}
/**
@@ -731,8 +818,8 @@
Objects.requireNonNull(networkCapabilities);
mBandwidthUpdatePending.set(false);
mLastBwRefreshTime = System.currentTimeMillis();
- queueOrSendMessage(EVENT_NETWORK_CAPABILITIES_CHANGED,
- new NetworkCapabilities(networkCapabilities));
+ final NetworkCapabilities nc = new NetworkCapabilities(networkCapabilities);
+ queueOrSendMessage(reg -> reg.sendNetworkCapabilities(nc));
}
/**
@@ -744,7 +831,7 @@
if (score < 0) {
throw new IllegalArgumentException("Score must be >= 0");
}
- queueOrSendMessage(EVENT_NETWORK_SCORE_CHANGED, score, 0);
+ queueOrSendMessage(reg -> reg.sendScore(score));
}
/**
@@ -784,9 +871,8 @@
* @hide should move to NetworkAgentConfig.
*/
public void explicitlySelected(boolean explicitlySelected, boolean acceptUnvalidated) {
- queueOrSendMessage(EVENT_SET_EXPLICITLY_SELECTED,
- explicitlySelected ? 1 : 0,
- acceptUnvalidated ? 1 : 0);
+ queueOrSendMessage(reg -> reg.sendExplicitlySelected(
+ explicitlySelected, acceptUnvalidated));
}
/**
@@ -909,7 +995,7 @@
*/
public final void sendSocketKeepaliveEvent(int slot,
@SocketKeepalive.KeepaliveEvent int event) {
- queueOrSendMessage(EVENT_SOCKET_KEEPALIVE, slot, event);
+ queueOrSendMessage(reg -> reg.sendSocketKeepaliveEvent(slot, event));
}
/** @hide TODO delete once callers have moved to sendSocketKeepaliveEvent */
public void onSocketKeepaliveEvent(int slot, int reason) {
diff --git a/core/java/android/net/SocketKeepalive.java b/core/java/android/net/SocketKeepalive.java
index a7dce18..d007a95 100644
--- a/core/java/android/net/SocketKeepalive.java
+++ b/core/java/android/net/SocketKeepalive.java
@@ -187,38 +187,54 @@
mCallback = new ISocketKeepaliveCallback.Stub() {
@Override
public void onStarted(int slot) {
- Binder.withCleanCallingIdentity(() ->
- mExecutor.execute(() -> {
- mSlot = slot;
- callback.onStarted();
- }));
+ final long token = Binder.clearCallingIdentity();
+ try {
+ mExecutor.execute(() -> {
+ mSlot = slot;
+ callback.onStarted();
+ });
+ } finally {
+ Binder.restoreCallingIdentity(token);
+ }
}
@Override
public void onStopped() {
- Binder.withCleanCallingIdentity(() ->
- executor.execute(() -> {
- mSlot = null;
- callback.onStopped();
- }));
+ final long token = Binder.clearCallingIdentity();
+ try {
+ executor.execute(() -> {
+ mSlot = null;
+ callback.onStopped();
+ });
+ } finally {
+ Binder.restoreCallingIdentity(token);
+ }
}
@Override
public void onError(int error) {
- Binder.withCleanCallingIdentity(() ->
- executor.execute(() -> {
- mSlot = null;
- callback.onError(error);
- }));
+ final long token = Binder.clearCallingIdentity();
+ try {
+ executor.execute(() -> {
+ mSlot = null;
+ callback.onError(error);
+ });
+ } finally {
+ Binder.restoreCallingIdentity(token);
+ }
}
@Override
public void onDataReceived() {
- Binder.withCleanCallingIdentity(() ->
- executor.execute(() -> {
- mSlot = null;
- callback.onDataReceived();
- }));
+ final long token = Binder.clearCallingIdentity();
+ try {
+ executor.execute(() -> {
+ mSlot = null;
+ callback.onDataReceived();
+ });
+ } finally {
+ Binder.restoreCallingIdentity(token);
+ }
}
};
}
diff --git a/core/java/android/net/TcpKeepalivePacketData.aidl b/core/java/android/net/TcpKeepalivePacketData.aidl
new file mode 100644
index 0000000..fdc7af9
--- /dev/null
+++ b/core/java/android/net/TcpKeepalivePacketData.aidl
@@ -0,0 +1,18 @@
+/**
+ * Copyright (c) 2020, The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing perNmissions and
+ * limitations under the License.
+ */
+package android.net;
+
+@JavaOnlyStableParcelable parcelable TcpKeepalivePacketData;
diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java
index 8ab734d..27dc6e0 100644
--- a/core/java/android/os/Debug.java
+++ b/core/java/android/os/Debug.java
@@ -2576,6 +2576,13 @@
public static native long getIonMappedSizeKb();
/**
+ * Return memory size in kilobytes used by GPU.
+ *
+ * @hide
+ */
+ public static native long getGpuTotalUsageKb();
+
+ /**
* Return whether virtually-mapped kernel stacks are enabled (CONFIG_VMAP_STACK).
* Note: caller needs config_gz read sepolicy permission
*
diff --git a/core/java/android/os/OWNERS b/core/java/android/os/OWNERS
index 563ff62..8c77a20 100644
--- a/core/java/android/os/OWNERS
+++ b/core/java/android/os/OWNERS
@@ -22,6 +22,34 @@
per-file BatteryUsageStats* = file:/BATTERY_STATS_OWNERS
per-file PowerComponents.java = file:/BATTERY_STATS_OWNERS
+# Binder
+per-file BadParcelableException.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file Binder.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file BinderProxy.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file DeadObjectException.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file IBinder.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file Parcel.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file ParcelFileDescriptor.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file ParcelFormatException.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file Parcelable.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file ParcelableException.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file ParcelableHolder.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file ParcelableParcel.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file RemoteException.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file ServiceManager.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file ServiceManagerNative.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file ServiceSpecificException.java = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file TransactionTooLargeException.java = file:platform/frameworks/native:/libs/binder/OWNERS
+
+# HwBinder
+per-file HwBinder.java = file:platform/system/libhwbinder:/OWNERS
+per-file HwBlob.java = file:platform/system/libhwbinder:/OWNERS
+per-file HwParcel.java = file:platform/system/libhwbinder:/OWNERS
+per-file HwParcel.java = file:platform/system/libhwbinder:/OWNERS
+per-file HwRemoteBinder.java = file:platform/system/libhwbinder:/OWNERS
+per-file IHwBinder.java = file:platform/system/libhwbinder:/OWNERS
+per-file IHwInterface.java = file:platform/system/libhwbinder:/OWNERS
+
per-file GraphicsEnvironment.java = chrisforbes@google.com, cnorthrop@google.com, lpy@google.com, timvp@google.com, zzyiwei@google.com
per-file *Network* = file:/services/core/java/com/android/server/net/OWNERS
diff --git a/core/java/android/os/ParcelableHolder.java b/core/java/android/os/ParcelableHolder.java
index 1be367c..368ee2d 100644
--- a/core/java/android/os/ParcelableHolder.java
+++ b/core/java/android/os/ParcelableHolder.java
@@ -63,6 +63,8 @@
* op.y = ...;
* ap.extension.setParcelable(op);}</pre>
*
+ * <p class="note">ParcelableHolder is <strong>not</strong> thread-safe.</p>
+ *
* @hide
*/
@SystemApi
@@ -120,6 +122,7 @@
/**
* Write a parcelable into ParcelableHolder, the previous parcelable will be removed.
+ * (@link #setParcelable} and (@link #getParcelable} are not thread-safe.
* @throws BadParcelableException if the parcelable's stability is more unstable
* ParcelableHolder.
*/
@@ -139,6 +142,8 @@
}
/**
+ * Read a parcelable from ParcelableHolder.
+ * (@link #setParcelable} and (@link #getParcelable} are not thread-safe.
* @return the parcelable that was written by {@link #setParcelable} or {@link #readFromParcel},
* or {@code null} if the parcelable has not been written.
* @throws BadParcelableException if T is different from the type written by
diff --git a/core/java/android/os/TransactionTooLargeException.java b/core/java/android/os/TransactionTooLargeException.java
index 10abf26..4d5b2a1 100644
--- a/core/java/android/os/TransactionTooLargeException.java
+++ b/core/java/android/os/TransactionTooLargeException.java
@@ -23,9 +23,11 @@
* During a remote procedure call, the arguments and the return value of the call
* are transferred as {@link Parcel} objects stored in the Binder transaction buffer.
* If the arguments or the return value are too large to fit in the transaction buffer,
- * then the call will fail and {@link TransactionTooLargeException} will be thrown.
+ * then the call will fail. {@link TransactionTooLargeException} is thrown as a
+ * heuristic when a transaction is large, and it fails, since these are the transactions
+ * which are most likely to overfill the transaction buffer.
* </p><p>
- * The Binder transaction buffer has a limited fixed size, currently 1Mb, which
+ * The Binder transaction buffer has a limited fixed size, currently 1MB, which
* is shared by all transactions in progress for the process. Consequently this
* exception can be thrown when there are many transactions in progress even when
* most of the individual transactions are of moderate size.
diff --git a/core/java/android/os/image/DynamicSystemClient.java b/core/java/android/os/image/DynamicSystemClient.java
index 58268e2..0fe8894 100644
--- a/core/java/android/os/image/DynamicSystemClient.java
+++ b/core/java/android/os/image/DynamicSystemClient.java
@@ -68,6 +68,8 @@
*/
@SystemApi
public class DynamicSystemClient {
+ private static final String TAG = "DynamicSystemClient";
+
/** @hide */
@IntDef(prefix = { "STATUS_" }, value = {
STATUS_UNKNOWN,
@@ -92,8 +94,6 @@
@Retention(RetentionPolicy.SOURCE)
public @interface StatusChangedCause {}
- private static final String TAG = "DynSystemClient";
-
/** Listener for installation status updates. */
public interface OnStatusChangedListener {
/**
@@ -240,7 +240,7 @@
private class DynSystemServiceConnection implements ServiceConnection {
public void onServiceConnected(ComponentName className, IBinder service) {
- Slog.v(TAG, "DynSystemService connected");
+ Slog.v(TAG, "onServiceConnected: " + className);
mService = new Messenger(service);
@@ -262,7 +262,7 @@
}
public void onServiceDisconnected(ComponentName className) {
- Slog.v(TAG, "DynSystemService disconnected");
+ Slog.v(TAG, "onServiceDisconnected: " + className);
mService = null;
}
}
diff --git a/core/java/android/os/image/DynamicSystemManager.java b/core/java/android/os/image/DynamicSystemManager.java
index 7f01cad..e8e4785 100644
--- a/core/java/android/os/image/DynamicSystemManager.java
+++ b/core/java/android/os/image/DynamicSystemManager.java
@@ -269,4 +269,16 @@
throw new RuntimeException(e.toString());
}
}
+
+ /**
+ * Returns the suggested scratch partition size for overlayFS.
+ */
+ @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
+ public long suggestScratchSize() {
+ try {
+ return mService.suggestScratchSize();
+ } catch (RemoteException e) {
+ throw new RuntimeException(e.toString());
+ }
+ }
}
diff --git a/core/java/android/os/image/IDynamicSystemService.aidl b/core/java/android/os/image/IDynamicSystemService.aidl
index df0a69b..a5a40ad 100644
--- a/core/java/android/os/image/IDynamicSystemService.aidl
+++ b/core/java/android/os/image/IDynamicSystemService.aidl
@@ -125,4 +125,9 @@
* valid VBMeta block to retrieve the AVB key from.
*/
boolean getAvbPublicKey(out AvbPublicKey dst);
+
+ /**
+ * Returns the suggested scratch partition size for overlayFS.
+ */
+ long suggestScratchSize();
}
diff --git a/core/java/android/os/image/OWNERS b/core/java/android/os/image/OWNERS
index 389b55b..08a51ff 100644
--- a/core/java/android/os/image/OWNERS
+++ b/core/java/android/os/image/OWNERS
@@ -1 +1,3 @@
+include /packages/DynamicSystemInstallationService/OWNERS
+
andrewhsieh@google.com
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 300bb760..1e14e3a 100755
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -13283,6 +13283,16 @@
@TestApi
public static final String HIDDEN_API_POLICY = "hidden_api_policy";
+ /**
+ * Flag for forcing {@link com.android.server.compat.OverrideValidatorImpl}
+ * to consider this a non-debuggable build.
+ *
+ * @hide
+ */
+ public static final String FORCE_NON_DEBUGGABLE_FINAL_BUILD_FOR_COMPAT =
+ "force_non_debuggable_final_build_for_compat";
+
+
/**
* Current version of signed configuration applied.
*
diff --git a/core/java/android/security/ConfirmationPrompt.java b/core/java/android/security/ConfirmationPrompt.java
index f67af85..2329037 100644
--- a/core/java/android/security/ConfirmationPrompt.java
+++ b/core/java/android/security/ConfirmationPrompt.java
@@ -21,6 +21,7 @@
import android.content.Context;
import android.provider.Settings;
import android.provider.Settings.SettingNotFoundException;
+import android.security.keystore.AndroidKeyStoreProvider;
import android.text.TextUtils;
import android.util.Log;
@@ -36,15 +37,15 @@
* compromised. Implementing confirmation prompts with these guarantees requires dedicated
* hardware-support and may not always be available.
*
- * <p>Confirmation prompts are typically used with an external entitity - the <i>Relying Party</i> -
+ * <p>Confirmation prompts are typically used with an external entity - the <i>Relying Party</i> -
* in the following way. The setup steps are as follows:
* <ul>
* <li> Before first use, the application generates a key-pair with the
* {@link android.security.keystore.KeyGenParameterSpec.Builder#setUserConfirmationRequired
- * CONFIRMATION tag} set. Device attestation,
- * e.g. {@link java.security.KeyStore#getCertificateChain getCertificateChain()}, is used to
- * generate a certificate chain that includes the public key (<code>Kpub</code> in the following)
- * of the newly generated key.
+ * CONFIRMATION tag} set. AndroidKeyStore key attestation, e.g.,
+ * {@link android.security.keystore.KeyGenParameterSpec.Builder#setAttestationChallenge(byte[])}
+ * is used to generate a certificate chain that includes the public key (<code>Kpub</code> in the
+ * following) of the newly generated key.
* <li> The application sends <code>Kpub</code> and the certificate chain resulting from device
* attestation to the <i>Relying Party</i>.
* <li> The <i>Relying Party</i> validates the certificate chain which involves checking the root
@@ -78,9 +79,10 @@
* previously created nonce. If all checks passes, the transaction is executed.
* </ul>
*
- * <p>A common way of implementing the "<code>promptText</code> is what is expected" check in the
- * last bullet, is to have the <i>Relying Party</i> generate <code>promptText</code> and store it
- * along the nonce in the <code>extraData</code> blob.
+ * <p>Note: It is vital to check the <code>promptText</code> because this is the only part that
+ * the user has approved. To avoid writing parsers for all of the possible locales, it is
+ * recommended that the <i>Relying Party</i> uses the same string generator as used on the device
+ * and performs a simple string comparison.
*/
public class ConfirmationPrompt {
private static final String TAG = "ConfirmationPrompt";
@@ -92,6 +94,14 @@
private Context mContext;
private final KeyStore mKeyStore = KeyStore.getInstance();
+ private AndroidProtectedConfirmation mProtectedConfirmation;
+
+ private AndroidProtectedConfirmation getService() {
+ if (mProtectedConfirmation == null) {
+ mProtectedConfirmation = new AndroidProtectedConfirmation();
+ }
+ return mProtectedConfirmation;
+ }
private void doCallback(int responseCode, byte[] dataThatWasConfirmed,
ConfirmationCallback callback) {
@@ -119,6 +129,32 @@
}
}
+ private void doCallback2(int responseCode, byte[] dataThatWasConfirmed,
+ ConfirmationCallback callback) {
+ switch (responseCode) {
+ case AndroidProtectedConfirmation.ERROR_OK:
+ callback.onConfirmed(dataThatWasConfirmed);
+ break;
+
+ case AndroidProtectedConfirmation.ERROR_CANCELED:
+ callback.onDismissed();
+ break;
+
+ case AndroidProtectedConfirmation.ERROR_ABORTED:
+ callback.onCanceled();
+ break;
+
+ case AndroidProtectedConfirmation.ERROR_SYSTEM_ERROR:
+ callback.onError(new Exception("System error returned by ConfirmationUI."));
+ break;
+
+ default:
+ callback.onError(new Exception("Unexpected responseCode=" + responseCode
+ + " from onConfirmtionPromptCompleted() callback."));
+ break;
+ }
+ }
+
private final android.os.IBinder mCallbackBinder =
new android.security.IConfirmationPromptCallback.Stub() {
@Override
@@ -144,6 +180,29 @@
}
};
+ private final android.security.apc.IConfirmationCallback mConfirmationCallback =
+ new android.security.apc.IConfirmationCallback.Stub() {
+ @Override
+ public void onCompleted(int result, byte[] dataThatWasConfirmed)
+ throws android.os.RemoteException {
+ if (mCallback != null) {
+ ConfirmationCallback callback = mCallback;
+ Executor executor = mExecutor;
+ mCallback = null;
+ mExecutor = null;
+ if (executor == null) {
+ doCallback2(result, dataThatWasConfirmed, callback);
+ } else {
+ executor.execute(new Runnable() {
+ @Override public void run() {
+ doCallback2(result, dataThatWasConfirmed, callback);
+ }
+ });
+ }
+ }
+ }
+ };
+
/**
* A builder that collects arguments, to be shown on the system-provided confirmation prompt.
*/
@@ -211,6 +270,9 @@
private static final int UI_OPTION_ACCESSIBILITY_MAGNIFIED_FLAG = 1 << 1;
private int getUiOptionsAsFlags() {
+ if (AndroidKeyStoreProvider.isKeystore2Enabled()) {
+ return getUiOptionsAsFlags2();
+ }
int uiOptionsAsFlags = 0;
ContentResolver contentResolver = mContext.getContentResolver();
int inversionEnabled = Settings.Secure.getInt(contentResolver,
@@ -226,6 +288,22 @@
return uiOptionsAsFlags;
}
+ private int getUiOptionsAsFlags2() {
+ int uiOptionsAsFlags = 0;
+ ContentResolver contentResolver = mContext.getContentResolver();
+ int inversionEnabled = Settings.Secure.getInt(contentResolver,
+ Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, 0);
+ if (inversionEnabled == 1) {
+ uiOptionsAsFlags |= AndroidProtectedConfirmation.FLAG_UI_OPTION_INVERTED;
+ }
+ float fontScale = Settings.System.getFloat(contentResolver,
+ Settings.System.FONT_SCALE, (float) 1.0);
+ if (fontScale > 1.0) {
+ uiOptionsAsFlags |= AndroidProtectedConfirmation.FLAG_UI_OPTION_MAGNIFIED;
+ }
+ return uiOptionsAsFlags;
+ }
+
private static boolean isAccessibilityServiceRunning(Context context) {
boolean serviceRunning = false;
try {
@@ -270,29 +348,53 @@
mCallback = callback;
mExecutor = executor;
- int uiOptionsAsFlags = getUiOptionsAsFlags();
String locale = Locale.getDefault().toLanguageTag();
- int responseCode = mKeyStore.presentConfirmationPrompt(
- mCallbackBinder, mPromptText.toString(), mExtraData, locale, uiOptionsAsFlags);
- switch (responseCode) {
- case KeyStore.CONFIRMATIONUI_OK:
- return;
+ if (AndroidKeyStoreProvider.isKeystore2Enabled()) {
+ int uiOptionsAsFlags = getUiOptionsAsFlags2();
+ int responseCode = getService().presentConfirmationPrompt(
+ mConfirmationCallback, mPromptText.toString(), mExtraData, locale,
+ uiOptionsAsFlags);
+ switch (responseCode) {
+ case AndroidProtectedConfirmation.ERROR_OK:
+ return;
- case KeyStore.CONFIRMATIONUI_OPERATION_PENDING:
- throw new ConfirmationAlreadyPresentingException();
+ case AndroidProtectedConfirmation.ERROR_OPERATION_PENDING:
+ throw new ConfirmationAlreadyPresentingException();
- case KeyStore.CONFIRMATIONUI_UNIMPLEMENTED:
- throw new ConfirmationNotAvailableException();
+ case AndroidProtectedConfirmation.ERROR_UNIMPLEMENTED:
+ throw new ConfirmationNotAvailableException();
- case KeyStore.CONFIRMATIONUI_UIERROR:
- throw new IllegalArgumentException();
+ default:
+ // Unexpected error code.
+ Log.w(TAG,
+ "Unexpected responseCode=" + responseCode
+ + " from presentConfirmationPrompt() call.");
+ throw new IllegalArgumentException();
+ }
+ } else {
+ int uiOptionsAsFlags = getUiOptionsAsFlags();
+ int responseCode = mKeyStore.presentConfirmationPrompt(
+ mCallbackBinder, mPromptText.toString(), mExtraData, locale, uiOptionsAsFlags);
+ switch (responseCode) {
+ case KeyStore.CONFIRMATIONUI_OK:
+ return;
- default:
- // Unexpected error code.
- Log.w(TAG,
- "Unexpected responseCode=" + responseCode
- + " from presentConfirmationPrompt() call.");
- throw new IllegalArgumentException();
+ case KeyStore.CONFIRMATIONUI_OPERATION_PENDING:
+ throw new ConfirmationAlreadyPresentingException();
+
+ case KeyStore.CONFIRMATIONUI_UNIMPLEMENTED:
+ throw new ConfirmationNotAvailableException();
+
+ case KeyStore.CONFIRMATIONUI_UIERROR:
+ throw new IllegalArgumentException();
+
+ default:
+ // Unexpected error code.
+ Log.w(TAG,
+ "Unexpected responseCode=" + responseCode
+ + " from presentConfirmationPrompt() call.");
+ throw new IllegalArgumentException();
+ }
}
}
@@ -306,17 +408,33 @@
* @throws IllegalStateException if no prompt is currently being presented.
*/
public void cancelPrompt() {
- int responseCode = mKeyStore.cancelConfirmationPrompt(mCallbackBinder);
- if (responseCode == KeyStore.CONFIRMATIONUI_OK) {
- return;
- } else if (responseCode == KeyStore.CONFIRMATIONUI_OPERATION_PENDING) {
- throw new IllegalStateException();
+ if (AndroidKeyStoreProvider.isKeystore2Enabled()) {
+ int responseCode =
+ getService().cancelConfirmationPrompt(mConfirmationCallback);
+ if (responseCode == AndroidProtectedConfirmation.ERROR_OK) {
+ return;
+ } else if (responseCode == AndroidProtectedConfirmation.ERROR_OPERATION_PENDING) {
+ throw new IllegalStateException();
+ } else {
+ // Unexpected error code.
+ Log.w(TAG,
+ "Unexpected responseCode=" + responseCode
+ + " from cancelConfirmationPrompt() call.");
+ throw new IllegalStateException();
+ }
} else {
- // Unexpected error code.
- Log.w(TAG,
- "Unexpected responseCode=" + responseCode
- + " from cancelConfirmationPrompt() call.");
- throw new IllegalStateException();
+ int responseCode = mKeyStore.cancelConfirmationPrompt(mCallbackBinder);
+ if (responseCode == KeyStore.CONFIRMATIONUI_OK) {
+ return;
+ } else if (responseCode == KeyStore.CONFIRMATIONUI_OPERATION_PENDING) {
+ throw new IllegalStateException();
+ } else {
+ // Unexpected error code.
+ Log.w(TAG,
+ "Unexpected responseCode=" + responseCode
+ + " from cancelConfirmationPrompt() call.");
+ throw new IllegalStateException();
+ }
}
}
@@ -330,6 +448,9 @@
if (isAccessibilityServiceRunning(context)) {
return false;
}
+ if (AndroidKeyStoreProvider.isKeystore2Enabled()) {
+ return new AndroidProtectedConfirmation().isConfirmationPromptSupported();
+ }
return KeyStore.getInstance().isConfirmationPromptSupported();
}
}
diff --git a/core/java/android/service/timezone/OWNERS b/core/java/android/service/timezone/OWNERS
new file mode 100644
index 0000000..28aff18
--- /dev/null
+++ b/core/java/android/service/timezone/OWNERS
@@ -0,0 +1,3 @@
+# Bug component: 847766
+nfuller@google.com
+include /core/java/android/app/timedetector/OWNERS
diff --git a/core/java/android/util/Patterns.java b/core/java/android/util/Patterns.java
index 7ad16ff..ece069f 100644
--- a/core/java/android/util/Patterns.java
+++ b/core/java/android/util/Patterns.java
@@ -248,6 +248,13 @@
+ "[0-9]|[0-1][0-9]{2}|[1-9][0-9]|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|[0-1]"
+ "[0-9]{2}|[1-9][0-9]|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}"
+ "|[1-9][0-9]|[0-9]))";
+
+ /**
+ * Kept for backward compatibility reasons. It does not match IPv6 addresses.
+ *
+ * @deprecated Please use {@link android.net.InetAddresses#isNumericAddress(String)} instead.
+ */
+ @Deprecated
public static final Pattern IP_ADDRESS = Pattern.compile(IP_ADDRESS_STRING);
/**
diff --git a/core/java/android/view/OWNERS b/core/java/android/view/OWNERS
index bae6ee8..e66b17a 100644
--- a/core/java/android/view/OWNERS
+++ b/core/java/android/view/OWNERS
@@ -33,6 +33,9 @@
per-file InputWindowHandle.java = file:/services/core/java/com/android/server/input/OWNERS
per-file InputWindowHandle.java = file:/services/core/java/com/android/server/wm/OWNERS
+# Notifications
+per-file Notification*.java = file:/services/core/java/com/android/server/notification/OWNERS
+
# Surface
per-file Surface.java = file:/graphics/java/android/graphics/OWNERS
per-file Surface.java = file:/services/core/java/com/android/server/wm/OWNERS
diff --git a/core/java/android/widget/ListView.java b/core/java/android/widget/ListView.java
index cf0e0d1..5e74381 100644
--- a/core/java/android/widget/ListView.java
+++ b/core/java/android/widget/ListView.java
@@ -73,7 +73,7 @@
/**
* <p>Displays a vertically-scrollable collection of views, where each view is positioned
* immediatelybelow the previous view in the list. For a more modern, flexible, and performant
- * approach to displaying lists, use {@link android.support.v7.widget.RecyclerView}.</p>
+ * approach to displaying lists, use {@link androidx.recyclerview.widget.RecyclerView}.</p>
*
* <p>To display a list, you can include a list view in your layout XML file:</p>
*
diff --git a/core/java/com/android/internal/app/OWNERS b/core/java/com/android/internal/app/OWNERS
index 382b49e..c5a956a 100644
--- a/core/java/com/android/internal/app/OWNERS
+++ b/core/java/com/android/internal/app/OWNERS
@@ -2,3 +2,4 @@
per-file *Resolver* = file:/packages/SystemUI/OWNERS
per-file *Chooser* = file:/packages/SystemUI/OWNERS
per-file SimpleIconFactory.java = file:/packages/SystemUI/OWNERS
+per-file NetInitiatedActivity.java = file:/location/java/android/location/OWNERS
diff --git a/core/java/com/android/internal/compat/OverrideAllowedState.java b/core/java/com/android/internal/compat/OverrideAllowedState.java
index 9a78ad2..c0bbe50 100644
--- a/core/java/com/android/internal/compat/OverrideAllowedState.java
+++ b/core/java/com/android/internal/compat/OverrideAllowedState.java
@@ -33,7 +33,7 @@
DISABLED_NOT_DEBUGGABLE,
DISABLED_NON_TARGET_SDK,
DISABLED_TARGET_SDK_TOO_HIGH,
- PACKAGE_DOES_NOT_EXIST,
+ DEFERRED_VERIFICATION,
LOGGING_ONLY_CHANGE
})
@Retention(RetentionPolicy.SOURCE)
@@ -57,10 +57,10 @@
* Change cannot be overridden, due to the app's targetSdk being above the change's targetSdk.
*/
public static final int DISABLED_TARGET_SDK_TOO_HIGH = 3;
- /**
- * Package does not exist.
+ /**
+ * Change override decision is currently being deferred, due to the app not being installed yet.
*/
- public static final int PACKAGE_DOES_NOT_EXIST = 4;
+ public static final int DEFERRED_VERIFICATION = 4;
/**
* Change is marked as logging only, and cannot be toggled.
*/
@@ -106,6 +106,7 @@
throws SecurityException {
switch (state) {
case ALLOWED:
+ case DEFERRED_VERIFICATION:
return;
case DISABLED_NOT_DEBUGGABLE:
throw new SecurityException(
@@ -118,11 +119,6 @@
"Cannot override %1$d for %2$s because the app's targetSdk (%3$d) is "
+ "above the change's targetSdk threshold (%4$d)",
changeId, packageName, appTargetSdk, changeIdTargetSdk));
- case PACKAGE_DOES_NOT_EXIST:
- throw new SecurityException(String.format(
- "Cannot override %1$d for %2$s because the package does not exist, and "
- + "the change is targetSdk gated.",
- changeId, packageName));
case LOGGING_ONLY_CHANGE:
throw new SecurityException(String.format(
"Cannot override %1$d because it is marked as a logging-only change.",
@@ -170,8 +166,8 @@
return "DISABLED_NON_TARGET_SDK";
case DISABLED_TARGET_SDK_TOO_HIGH:
return "DISABLED_TARGET_SDK_TOO_HIGH";
- case PACKAGE_DOES_NOT_EXIST:
- return "PACKAGE_DOES_NOT_EXIST";
+ case DEFERRED_VERIFICATION:
+ return "DEFERRED_VERIFICATION";
case LOGGING_ONLY_CHANGE:
return "LOGGING_ONLY_CHANGE";
}
diff --git a/core/java/com/android/internal/os/KernelCpuUidTimeReader.java b/core/java/com/android/internal/os/KernelCpuUidTimeReader.java
index f7fad2c..2dd51b4 100644
--- a/core/java/com/android/internal/os/KernelCpuUidTimeReader.java
+++ b/core/java/com/android/internal/os/KernelCpuUidTimeReader.java
@@ -143,6 +143,10 @@
*/
public void removeUid(int uid) {
mLastTimes.delete(uid);
+
+ if (mBpfTimesAvailable) {
+ mBpfReader.removeUidsInRange(uid, uid);
+ }
}
/**
diff --git a/core/java/com/android/internal/os/KernelWakelockReader.java b/core/java/com/android/internal/os/KernelWakelockReader.java
index c416814..e644274 100644
--- a/core/java/com/android/internal/os/KernelWakelockReader.java
+++ b/core/java/com/android/internal/os/KernelWakelockReader.java
@@ -190,7 +190,6 @@
try {
wlStats = mSuspendControlService.getWakeLockStats();
- Slog.i(TAG, "Number of wakelock obtained from SystemSuspend: " + wlStats.length);
updateWakelockStats(wlStats, staleStats);
} catch (RemoteException e) {
Slog.wtf(TAG, "Failed to obtain wakelock stats from ISuspendControlService", e);
diff --git a/core/jni/OWNERS b/core/jni/OWNERS
index 54b0340..2279d57 100644
--- a/core/jni/OWNERS
+++ b/core/jni/OWNERS
@@ -27,6 +27,18 @@
per-file android_util_XmlBlock* = file:/core/java/android/content/res/OWNERS
per-file com_android_internal_content_om_OverlayConfig* = file:/core/java/android/content/res/OWNERS
+# Binder related things
+per-file android_os_Parcel* = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file android_os_ServiceManager* = file:platform/frameworks/native:/libs/binder/OWNERS
+per-file android_util_Binder* = file:platform/frameworks/native:/libs/binder/OWNERS
+
+# HwBinder related things
+per-file android_os_HwBinder* = file:platform/system/libhwbinder:/OWNERS
+per-file android_os_HwBlob* = file:platform/system/libhwbinder:/OWNERS
+per-file android_os_HwParcel* = file:platform/system/libhwbinder:/OWNERS
+per-file android_os_HwRemoteBinder* = file:platform/system/libhwbinder:/OWNERS
+per-file EphemeralStorage* = file:platform/system/libhwbinder:/OWNERS
+
per-file *Zygote* = file:/ZYGOTE_OWNERS
per-file Android.bp = file:platform/build/soong:/OWNERS
per-file android_animation_* = file:/core/java/android/animation/OWNERS
diff --git a/core/jni/android_os_Debug.cpp b/core/jni/android_os_Debug.cpp
index 5a859aa..28fc8ed 100644
--- a/core/jni/android_os_Debug.cpp
+++ b/core/jni/android_os_Debug.cpp
@@ -844,6 +844,17 @@
return ionPss;
}
+static jlong android_os_Debug_getGpuTotalUsageKb(JNIEnv* env, jobject clazz) {
+ jlong sizeKb = -1;
+ uint64_t size;
+
+ if (meminfo::ReadGpuTotalUsageKb(&size)) {
+ sizeKb = size;
+ }
+
+ return sizeKb;
+}
+
static jboolean android_os_Debug_isVmapStack(JNIEnv *env, jobject clazz)
{
static enum {
@@ -912,6 +923,8 @@
(void*)android_os_Debug_getIonPoolsSizeKb },
{ "getIonMappedSizeKb", "()J",
(void*)android_os_Debug_getIonMappedSizeKb },
+ { "getGpuTotalUsageKb", "()J",
+ (void*)android_os_Debug_getGpuTotalUsageKb },
{ "isVmapStack", "()Z",
(void*)android_os_Debug_isVmapStack },
};
diff --git a/core/proto/android/app/OWNERS b/core/proto/android/app/OWNERS
new file mode 100644
index 0000000..296abd1
--- /dev/null
+++ b/core/proto/android/app/OWNERS
@@ -0,0 +1 @@
+per-file location_time_zone_manager.proto = nfuller@google.com, mingaleev@google.com
diff --git a/core/proto/android/app/location_time_zone_manager.proto b/core/proto/android/app/location_time_zone_manager.proto
new file mode 100644
index 0000000..f44d549
--- /dev/null
+++ b/core/proto/android/app/location_time_zone_manager.proto
@@ -0,0 +1,59 @@
+/*
+ * Copyright (C) 2020 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+syntax = "proto2";
+package android.app.time;
+
+import "frameworks/base/core/proto/android/privacy.proto";
+
+option java_multiple_files = true;
+option java_outer_classname = "LocationTimeZoneManagerProto";
+
+// Represents the state of the LocationTimeZoneManagerService for use in tests.
+message LocationTimeZoneManagerServiceStateProto {
+ option (android.msg_privacy).dest = DEST_AUTOMATIC;
+
+ optional GeolocationTimeZoneSuggestionProto last_suggestion = 1;
+ repeated TimeZoneProviderStateProto primary_provider_states = 2;
+ repeated TimeZoneProviderStateProto secondary_provider_states = 3;
+}
+
+// Represents a GeolocationTimeZoneSuggestion that can be / has been passed to the time zone
+// detector.
+message GeolocationTimeZoneSuggestionProto {
+ option (android.msg_privacy).dest = DEST_AUTOMATIC;
+
+ repeated string zone_ids = 1;
+ repeated string debug_info = 2;
+}
+
+// The state tracked for a LocationTimeZoneProvider.
+message TimeZoneProviderStateProto {
+ option (android.msg_privacy).dest = DEST_AUTOMATIC;
+
+ optional TimeZoneProviderStateEnum state = 1;
+}
+
+// The state enum for LocationTimeZoneProviders.
+enum TimeZoneProviderStateEnum {
+ TIME_ZONE_PROVIDER_STATE_UNKNOWN = 0;
+ TIME_ZONE_PROVIDER_STATE_INITIALIZING = 1;
+ TIME_ZONE_PROVIDER_STATE_CERTAIN = 2;
+ TIME_ZONE_PROVIDER_STATE_UNCERTAIN = 3;
+ TIME_ZONE_PROVIDER_STATE_DISABLED = 4;
+ TIME_ZONE_PROVIDER_STATE_PERM_FAILED = 5;
+ TIME_ZONE_PROVIDER_STATE_DESTROYED = 6;
+}
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
index a9fe5d5..714a09d 100644
--- a/core/res/AndroidManifest.xml
+++ b/core/res/AndroidManifest.xml
@@ -2206,7 +2206,9 @@
<!-- Allows to query ongoing call details and manage ongoing calls
<p>Protection level: signature|appop -->
<permission android:name="android.permission.MANAGE_ONGOING_CALLS"
- android:protectionLevel="signature|appop" />
+ android:protectionLevel="signature|appop"
+ android:label="@string/permlab_manageOngoingCalls"
+ android:description="@string/permdesc_manageOngoingCalls" />
<!-- Allows the app to request network scans from telephony.
<p>Not for use by third-party applications.
diff --git a/core/res/res/values-iw/strings.xml b/core/res/res/values-iw/strings.xml
index 1389753..00e3d60 100644
--- a/core/res/res/values-iw/strings.xml
+++ b/core/res/res/values-iw/strings.xml
@@ -853,7 +853,7 @@
<string name="lockscreen_transport_prev_description" msgid="2879469521751181478">"הרצועה הקודמת"</string>
<string name="lockscreen_transport_next_description" msgid="2931509904881099919">"הרצועה הבאה"</string>
<string name="lockscreen_transport_pause_description" msgid="6705284702135372494">"השהה"</string>
- <string name="lockscreen_transport_play_description" msgid="106868788691652733">"הפעל"</string>
+ <string name="lockscreen_transport_play_description" msgid="106868788691652733">"הפעלה"</string>
<string name="lockscreen_transport_stop_description" msgid="1449552232598355348">"הפסק"</string>
<string name="lockscreen_transport_rew_description" msgid="7680106856221622779">"הרץ אחורה"</string>
<string name="lockscreen_transport_ffw_description" msgid="4763794746640196772">"הרץ קדימה"</string>
@@ -1842,7 +1842,7 @@
<string name="battery_saver_description" msgid="6794188153647295212">"כדי להאריך את חיי הסוללה, התכונה \'חיסכון בסוללה\':\n\n• מפעילה עיצוב כהה\n• מכבה או מגבילה פעילות ברקע, חלק מהאפקטים החזותיים ותכונות אחרות כמו Ok Google"</string>
<string name="data_saver_description" msgid="4995164271550590517">"כדי לסייע בהפחתת השימוש בנתונים, חוסך הנתונים (Data Saver) מונע מאפליקציות מסוימות שליחה או קבלה של נתונים ברקע. אפליקציה שבה נעשה שימוש כרגע יכולה לגשת לנתונים, אבל בתדירות נמוכה יותר. המשמעות היא, למשל, שתמונות יוצגו רק לאחר שמקישים עליהן."</string>
<string name="data_saver_enable_title" msgid="7080620065745260137">"להפעיל את חוסך הנתונים?"</string>
- <string name="data_saver_enable_button" msgid="4399405762586419726">"הפעל"</string>
+ <string name="data_saver_enable_button" msgid="4399405762586419726">"הפעלה"</string>
<plurals name="zen_mode_duration_minutes_summary" formatted="false" msgid="2877101784123058273">
<item quantity="two">למשך %d דקות (עד <xliff:g id="FORMATTEDTIME_1">%2$s</xliff:g>)</item>
<item quantity="many">למשך %1$d דקות (עד <xliff:g id="FORMATTEDTIME_1">%2$s</xliff:g>)</item>
@@ -1952,7 +1952,7 @@
<string name="app_suspended_unsuspend_message" msgid="1665438589450555459">"ביטול ההשהיה של האפליקציה"</string>
<string name="work_mode_off_title" msgid="5503291976647976560">"להפעיל את פרופיל העבודה?"</string>
<string name="work_mode_off_message" msgid="8417484421098563803">"אפליקציות העבודה, התראות, נתונים ותכונות נוספות של פרופיל העבודה יופעלו"</string>
- <string name="work_mode_turn_on" msgid="3662561662475962285">"הפעל"</string>
+ <string name="work_mode_turn_on" msgid="3662561662475962285">"הפעלה"</string>
<string name="app_blocked_title" msgid="7353262160455028160">"האפליקציה לא זמינה"</string>
<string name="app_blocked_message" msgid="542972921087873023">"האפליקציה <xliff:g id="APP_NAME">%1$s</xliff:g> לא זמינה בשלב זה."</string>
<string name="deprecated_target_sdk_message" msgid="5203207875657579953">"האפליקציה הזו עוצבה לגרסה ישנה יותר של Android וייתכן שלא תפעל כראוי. ניתן לבדוק אם יש עדכונים או ליצור קשר עם המפתח."</string>
diff --git a/core/res/res/values-pl/strings.xml b/core/res/res/values-pl/strings.xml
index ef599a1..c206b12 100644
--- a/core/res/res/values-pl/strings.xml
+++ b/core/res/res/values-pl/strings.xml
@@ -1838,8 +1838,8 @@
<string name="package_updated_device_owner" msgid="7560272363805506941">"Zaktualizowany przez administratora"</string>
<string name="package_deleted_device_owner" msgid="2292335928930293023">"Usunięty przez administratora"</string>
<string name="confirm_battery_saver" msgid="5247976246208245754">"OK"</string>
- <string name="battery_saver_description_with_learn_more" msgid="4424488535318105801">"Aby wydłużyć czas pracy na baterii, funkcja Oszczędzanie baterii:\n\n• włącza tryb ciemny,\n• wyłącza lub ogranicza aktywność w tle, niektóre efekty wizualne oraz inne funkcje, np. „OK Google”.\n\n"<annotation id="url">"Więcej informacji"</annotation></string>
- <string name="battery_saver_description" msgid="6794188153647295212">"Aby wydłużyć czas pracy na baterii, Oszczędzanie baterii:\n\n• włącza tryb ciemny,\n• wyłącza lub ogranicza aktywność w tle, niektóre efekty wizualne oraz inne funkcje, np. „OK Google”."</string>
+ <string name="battery_saver_description_with_learn_more" msgid="4424488535318105801">"Aby wydłużyć czas pracy na baterii, funkcja Oszczędzanie baterii:\n\n• włącza ciemny motyw,\n• wyłącza lub ogranicza aktywność w tle, niektóre efekty wizualne oraz inne funkcje, np. „OK Google”.\n\n"<annotation id="url">"Więcej informacji"</annotation></string>
+ <string name="battery_saver_description" msgid="6794188153647295212">"Aby wydłużyć czas pracy na baterii, Oszczędzanie baterii:\n\n• włącza ciemny motyw,\n• wyłącza lub ogranicza aktywność w tle, niektóre efekty wizualne oraz inne funkcje, np. „OK Google”."</string>
<string name="data_saver_description" msgid="4995164271550590517">"Oszczędzanie danych uniemożliwia niektórym aplikacjom wysyłanie i odbieranie danych w tle, zmniejszając w ten sposób ich użycie. Aplikacja, z której w tej chwili korzystasz, może uzyskiwać dostęp do danych, ale rzadziej. Może to powodować, że obrazy będą się wyświetlać dopiero po kliknięciu."</string>
<string name="data_saver_enable_title" msgid="7080620065745260137">"Włączyć Oszczędzanie danych?"</string>
<string name="data_saver_enable_button" msgid="4399405762586419726">"Włącz"</string>
diff --git a/core/res/res/values-sq/strings.xml b/core/res/res/values-sq/strings.xml
index d84b019..8742a67 100644
--- a/core/res/res/values-sq/strings.xml
+++ b/core/res/res/values-sq/strings.xml
@@ -1306,8 +1306,8 @@
<string name="usb_power_notification_message" msgid="7284765627437897702">"Pajisja e lidhur po karikohet. Trokit për opsione të tjera."</string>
<string name="usb_unsupported_audio_accessory_title" msgid="2335775548086533065">"U zbulua aksesor i audios analoge"</string>
<string name="usb_unsupported_audio_accessory_message" msgid="1300168007129796621">"Pajisja e bashkuar nuk është e pajtueshme me këtë telefon. Trokit për të mësuar më shumë."</string>
- <string name="adb_active_notification_title" msgid="408390247354560331">"Korrigjuesi i USB-së është i lidhur"</string>
- <string name="adb_active_notification_message" msgid="5617264033476778211">"Trokit për të çaktivizuar korrigjimin e USB-së"</string>
+ <string name="adb_active_notification_title" msgid="408390247354560331">"Korrigjimi përmes USB-së është i lidhur"</string>
+ <string name="adb_active_notification_message" msgid="5617264033476778211">"Trokit për të çaktivizuar korrigjimin përmes USB-së"</string>
<string name="adb_active_notification_message" product="tv" msgid="6624498401272780855">"Përzgjidhe për të çaktivizuar korrigjimin e gabimeve të USB-së"</string>
<string name="adbwifi_active_notification_title" msgid="6147343659168302473">"Korrigjimi përmes Wi-Fi është lidhur"</string>
<string name="adbwifi_active_notification_message" msgid="930987922852867972">"Trokit për të çaktivizuar korrigjimin përmes Wi-Fi"</string>
@@ -1920,7 +1920,7 @@
<string name="app_category_maps" msgid="6395725487922533156">"Harta dhe navigim"</string>
<string name="app_category_productivity" msgid="1844422703029557883">"Produktivitet"</string>
<string name="device_storage_monitor_notification_channel" msgid="5164244565844470758">"Hapësira ruajtëse e pajisjes"</string>
- <string name="adb_debugging_notification_channel_tv" msgid="4764046459631031496">"Korrigjimi i USB-së"</string>
+ <string name="adb_debugging_notification_channel_tv" msgid="4764046459631031496">"Korrigjimi përmes USB-së"</string>
<string name="time_picker_hour_label" msgid="4208590187662336864">"orë"</string>
<string name="time_picker_minute_label" msgid="8307452311269824553">"minutë"</string>
<string name="time_picker_header_text" msgid="9073802285051516688">"Vendos orën"</string>
diff --git a/core/res/res/values-ta/strings.xml b/core/res/res/values-ta/strings.xml
index c39e1aa..0c5f964 100644
--- a/core/res/res/values-ta/strings.xml
+++ b/core/res/res/values-ta/strings.xml
@@ -267,7 +267,7 @@
<string name="global_action_lockdown" msgid="2475471405907902963">"பூட்டு"</string>
<string name="status_bar_notification_info_overflow" msgid="3330152558746563475">"999+"</string>
<string name="notification_hidden_text" msgid="2835519769868187223">"புதிய அறிவிப்பு"</string>
- <string name="notification_channel_virtual_keyboard" msgid="6465975799223304567">"விர்ச்சுவல் கீபோர்ட்"</string>
+ <string name="notification_channel_virtual_keyboard" msgid="6465975799223304567">"விர்ச்சுவல் கீபோர்டு"</string>
<string name="notification_channel_physical_keyboard" msgid="5417306456125988096">"கைமுறை விசைப்பலகை"</string>
<string name="notification_channel_security" msgid="8516754650348238057">"பாதுகாப்பு"</string>
<string name="notification_channel_car_mode" msgid="2123919247040988436">"கார் பயன்முறை"</string>
diff --git a/core/res/res/values-th/strings.xml b/core/res/res/values-th/strings.xml
index 92dd924..4c6be82 100644
--- a/core/res/res/values-th/strings.xml
+++ b/core/res/res/values-th/strings.xml
@@ -310,7 +310,7 @@
<string name="permgrouplab_camera" msgid="9090413408963547706">"กล้องถ่ายรูป"</string>
<string name="permgroupdesc_camera" msgid="7585150538459320326">"ถ่ายภาพและบันทึกวิดีโอ"</string>
<string name="permgrouplab_calllog" msgid="7926834372073550288">"ประวัติการโทร"</string>
- <string name="permgroupdesc_calllog" msgid="2026996642917801803">"อ่านและเขียนประวัติการโทรของโทรศัพท์"</string>
+ <string name="permgroupdesc_calllog" msgid="2026996642917801803">"อ่านและเขียนบันทึกการโทรของโทรศัพท์"</string>
<string name="permgrouplab_phone" msgid="570318944091926620">"โทรศัพท์"</string>
<string name="permgroupdesc_phone" msgid="270048070781478204">"โทรและจัดการการโทร"</string>
<string name="permgrouplab_sensors" msgid="9134046949784064495">"เซ็นเซอร์ร่างกาย"</string>
@@ -403,12 +403,12 @@
<string name="permdesc_writeContacts" product="tablet" msgid="6422419281427826181">"อนุญาตให้แอปแก้ไขข้อมูลเกี่ยวกับรายชื่อติดต่อที่จัดเก็บไว้ในแท็บเล็ต สิทธิ์นี้ทำให้แอปลบข้อมูลรายชื่อติดต่อได้"</string>
<string name="permdesc_writeContacts" product="tv" msgid="6488872735379978935">"อนุญาตให้แอปแก้ไขข้อมูลเกี่ยวกับรายชื่อติดต่อที่จัดเก็บไว้ในอุปกรณ์ Android TV สิทธิ์นี้ทำให้แอปลบข้อมูลรายชื่อติดต่อได้"</string>
<string name="permdesc_writeContacts" product="default" msgid="8304795696237065281">"อนุญาตให้แอปแก้ไขข้อมูลเกี่ยวกับรายชื่อติดต่อที่จัดเก็บไว้ในโทรศัพท์ สิทธิ์นี้ทำให้แอปลบข้อมูลรายชื่อติดต่อได้"</string>
- <string name="permlab_readCallLog" msgid="1739990210293505948">"อ่านประวัติการโทร"</string>
+ <string name="permlab_readCallLog" msgid="1739990210293505948">"อ่านบันทึกการโทร"</string>
<string name="permdesc_readCallLog" msgid="8964770895425873433">"แอปนี้สามารถอ่านประวัติการโทรของคุณได้"</string>
- <string name="permlab_writeCallLog" msgid="670292975137658895">"เขียนประวัติการโทร"</string>
- <string name="permdesc_writeCallLog" product="tablet" msgid="2657525794731690397">"อนุญาตให้แอปแก้ไขประวัติการโทรจากแท็บเล็ตของคุณ รวมถึงข้อมูลเกี่ยวกับสายเรียกเข้าและการโทรออก แอปที่เป็นอันตรายอาจใช้สิ่งนี้เพื่อลบหรือแก้ไขประวัติการโทรของคุณ"</string>
- <string name="permdesc_writeCallLog" product="tv" msgid="3934939195095317432">"อนุญาตให้แอปแก้ไขประวัติการโทรจากอุปกรณ์ Android TV รวมถึงข้อมูลเกี่ยวกับสายเรียกเข้าและสายโทรออก แอปที่เป็นอันตรายอาจใช้สิทธิ์นี้เพื่อลบหรือแก้ไขประวัติการโทรได้"</string>
- <string name="permdesc_writeCallLog" product="default" msgid="5903033505665134802">"อนุญาตให้แอปแก้ไขประวัติการโทรจากโทรศัพท์ของคุณ รวมถึงข้อมูลเกี่ยวกับสายเรียกเข้าและการโทรออก แอปที่เป็นอันตรายอาจใช้สิ่งนี้เพื่อลบหรือแก้ไขประวัติการโทรของคุณ"</string>
+ <string name="permlab_writeCallLog" msgid="670292975137658895">"เขียนบันทึกการโทร"</string>
+ <string name="permdesc_writeCallLog" product="tablet" msgid="2657525794731690397">"อนุญาตให้แอปแก้ไขบันทึกการโทรจากแท็บเล็ตของคุณ รวมถึงข้อมูลเกี่ยวกับสายเรียกเข้าและการโทรออก แอปที่เป็นอันตรายอาจใช้สิ่งนี้เพื่อลบหรือแก้ไขบันทึกการโทรของคุณ"</string>
+ <string name="permdesc_writeCallLog" product="tv" msgid="3934939195095317432">"อนุญาตให้แอปแก้ไขบันทึกการโทรจากอุปกรณ์ Android TV รวมถึงข้อมูลเกี่ยวกับสายเรียกเข้าและสายโทรออก แอปที่เป็นอันตรายอาจใช้สิทธิ์นี้เพื่อลบหรือแก้ไขบันทึกการโทรได้"</string>
+ <string name="permdesc_writeCallLog" product="default" msgid="5903033505665134802">"อนุญาตให้แอปแก้ไขบันทึกการโทรจากโทรศัพท์ของคุณ รวมถึงข้อมูลเกี่ยวกับสายเรียกเข้าและการโทรออก แอปที่เป็นอันตรายอาจใช้สิ่งนี้เพื่อลบหรือแก้ไขบันทึกการโทรของคุณ"</string>
<string name="permlab_bodySensors" msgid="3411035315357380862">"เข้าถึงเซ็นเซอร์ร่างกาย (เช่น ตัววัดอัตราการเต้นของหัวใจ)"</string>
<string name="permdesc_bodySensors" product="default" msgid="2365357960407973997">"อนุญาตให้แอปเข้าถึงข้อมูลจากเซ็นเซอร์ที่ตรวจสอบสภาพทางกายภาพ เช่น อัตราการเต้นของหัวใจ"</string>
<string name="permlab_readCalendar" msgid="6408654259475396200">"อ่านกิจกรรมในปฏิทินและรายละเอียด"</string>
diff --git a/core/res/res/values-ur/strings.xml b/core/res/res/values-ur/strings.xml
index cdc132e..0480053 100644
--- a/core/res/res/values-ur/strings.xml
+++ b/core/res/res/values-ur/strings.xml
@@ -818,7 +818,7 @@
<string name="keyguard_password_enter_puk_code" msgid="3112256684547584093">"PUK اور نیا PIN کوڈ ٹائپ کریں"</string>
<string name="keyguard_password_enter_puk_prompt" msgid="2825313071899938305">"PUK کوڈ"</string>
<string name="keyguard_password_enter_pin_prompt" msgid="5505434724229581207">"نیا PIN کوڈ"</string>
- <string name="keyguard_password_entry_touch_hint" msgid="4032288032993261520"><font size="17">"پاسورڈ ٹائپ کرنے کیلئے تھپتھپائیں"</font></string>
+ <string name="keyguard_password_entry_touch_hint" msgid="4032288032993261520"><font size="17">"پاس ورڈ ٹائپ کرنے کیلئے تھپتھپائیں"</font></string>
<string name="keyguard_password_enter_password_code" msgid="2751130557661643482">"غیر مقفل کرنے کیلئے پاس ورڈ ٹائپ کریں"</string>
<string name="keyguard_password_enter_pin_password_code" msgid="7792964196473964340">"غیر مقفل کرنے کیلئے PIN ٹائپ کریں"</string>
<string name="keyguard_password_wrong_pin_code" msgid="8583732939138432793">"غلط PIN کوڈ۔"</string>
diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
index c1f3028..1143467 100644
--- a/core/res/res/values/strings.xml
+++ b/core/res/res/values/strings.xml
@@ -914,6 +914,15 @@
interfere with the performance or operation of your device when an
emergency cell broadcast is received.</string>
+ <!-- Title for an application which grants an app the ability to see and manage calls on
+ the user's device. Usually reserved for apps associated with wearable devices that
+ can show information about calls. -->
+ <string name="permlab_manageOngoingCalls">Manage ongoing calls</string>
+ <!-- Description of an application permission, listed so the user can choose whether they
+ want to allow the application to do this. -->
+ <string name="permdesc_manageOngoingCalls">Allows an app to see details about ongoing calls
+ on your device and to control these calls.</string>
+
<!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
<string name="permlab_readCellBroadcasts">read cell broadcast messages</string>
<!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
diff --git a/core/tests/coretests/src/android/app/assist/OWNERS b/core/tests/coretests/src/android/app/assist/OWNERS
new file mode 100644
index 0000000..43ad108
--- /dev/null
+++ b/core/tests/coretests/src/android/app/assist/OWNERS
@@ -0,0 +1 @@
+file:/core/java/android/app/assist/OWNERS
diff --git a/core/tests/coretests/src/android/content/OWNERS b/core/tests/coretests/src/android/content/OWNERS
index 911efb2..912db1e 100644
--- a/core/tests/coretests/src/android/content/OWNERS
+++ b/core/tests/coretests/src/android/content/OWNERS
@@ -1 +1,3 @@
per-file ContextTest.java = file:/services/core/java/com/android/server/wm/OWNERS
+per-file *Shortcut* = file:/core/java/android/content/pm/SHORTCUT_OWNERS
+per-file *Launcher* = file:/core/java/android/content/pm/LAUNCHER_OWNERS
diff --git a/core/tests/coretests/src/android/service/notification/OWNERS b/core/tests/coretests/src/android/service/notification/OWNERS
new file mode 100644
index 0000000..1502b60
--- /dev/null
+++ b/core/tests/coretests/src/android/service/notification/OWNERS
@@ -0,0 +1,2 @@
+include platform/frameworks/base:/services/core/java/com/android/server/notification/OWNERS
+
diff --git a/core/tests/coretests/src/android/view/OWNERS b/core/tests/coretests/src/android/view/OWNERS
index a3a3e7c..5031ff9 100644
--- a/core/tests/coretests/src/android/view/OWNERS
+++ b/core/tests/coretests/src/android/view/OWNERS
@@ -2,3 +2,10 @@
per-file *MotionEventTest.* = michaelwr@google.com, svv@google.com
per-file *KeyEventTest.* = michaelwr@google.com, svv@google.com
per-file VelocityTest.java = michaelwr@google.com, svv@google.com
+
+# WindowManager
+per-file *Display* = file:/services/core/java/com/android/server/wm/OWNERS
+per-file *Focus* = file:/services/core/java/com/android/server/wm/OWNERS
+per-file *Insets* = file:/services/core/java/com/android/server/wm/OWNERS
+per-file *View* = file:/services/core/java/com/android/server/wm/OWNERS
+per-file *Visibility* = file:/services/core/java/com/android/server/wm/OWNERS
diff --git a/core/tests/coretests/src/android/view/inputmethod/OWNERS b/core/tests/coretests/src/android/view/inputmethod/OWNERS
new file mode 100644
index 0000000..eb06b78
--- /dev/null
+++ b/core/tests/coretests/src/android/view/inputmethod/OWNERS
@@ -0,0 +1,3 @@
+# Bug component: 34867
+
+include /core/java/android/view/inputmethod/OWNERS
diff --git a/core/tests/overlaytests/device/Android.bp b/core/tests/overlaytests/device/Android.bp
index 12a2b08..f86ac9c 100644
--- a/core/tests/overlaytests/device/Android.bp
+++ b/core/tests/overlaytests/device/Android.bp
@@ -16,7 +16,11 @@
name: "OverlayDeviceTests",
srcs: ["src/**/*.java"],
platform_apis: true,
- static_libs: ["androidx.test.rules"],
+ certificate: "platform",
+ static_libs: [
+ "androidx.test.rules",
+ "testng",
+ ],
test_suites: ["device-tests"],
data: [
":OverlayDeviceTests_AppOverlayOne",
diff --git a/core/tests/overlaytests/device/AndroidManifest.xml b/core/tests/overlaytests/device/AndroidManifest.xml
index 4881636..a69911f 100644
--- a/core/tests/overlaytests/device/AndroidManifest.xml
+++ b/core/tests/overlaytests/device/AndroidManifest.xml
@@ -19,6 +19,8 @@
<uses-sdk android:minSdkVersion="21" />
+ <uses-permission android:name="android.permission.CHANGE_OVERLAY_PACKAGES" />
+
<application>
<uses-library android:name="android.test.runner"/>
</application>
diff --git a/core/tests/overlaytests/device/AndroidTest.xml b/core/tests/overlaytests/device/AndroidTest.xml
index 6507839..db45750 100644
--- a/core/tests/overlaytests/device/AndroidTest.xml
+++ b/core/tests/overlaytests/device/AndroidTest.xml
@@ -19,9 +19,20 @@
<option name="test-suite-tag" value="apct" />
<option name="test-suite-tag" value="apct-instrumentation" />
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
+ <option name="cleanup" value="true" />
+ <option name="remount-system" value="true" />
+ <option name="push" value="OverlayDeviceTests.apk->/system/app/OverlayDeviceTests.apk" />
+ </target_preparer>
+
+ <!-- Reboot to have the test APK scanned by PM and reboot after to remove the test APK. -->
+ <target_preparer class="com.android.tradefed.targetprep.RebootTargetPreparer">
+ <option name="pre-reboot" value="true" />
+ <option name="post-reboot" value="true" />
+ </target_preparer>
+
<target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
<option name="cleanup-apks" value="true" />
- <option name="test-file-name" value="OverlayDeviceTests.apk" />
<option name="test-file-name" value="OverlayDeviceTests_AppOverlayOne.apk" />
<option name="test-file-name" value="OverlayDeviceTests_AppOverlayTwo.apk" />
<option name="test-file-name" value="OverlayDeviceTests_FrameworkOverlay.apk" />
diff --git a/core/tests/overlaytests/device/TEST_MAPPING b/core/tests/overlaytests/device/TEST_MAPPING
new file mode 100644
index 0000000..43ee00f
--- /dev/null
+++ b/core/tests/overlaytests/device/TEST_MAPPING
@@ -0,0 +1,7 @@
+{
+ "presubmit": [
+ {
+ "name" : "OverlayDeviceTests"
+ }
+ ]
+}
diff --git a/core/tests/overlaytests/device/src/com/android/overlaytest/LocalOverlayManager.java b/core/tests/overlaytests/device/src/com/android/overlaytest/LocalOverlayManager.java
index 390bb76..76c01a7 100644
--- a/core/tests/overlaytests/device/src/com/android/overlaytest/LocalOverlayManager.java
+++ b/core/tests/overlaytests/device/src/com/android/overlaytest/LocalOverlayManager.java
@@ -18,60 +18,76 @@
import static java.util.concurrent.TimeUnit.SECONDS;
-import android.app.UiAutomation;
-import android.content.res.Resources;
-import android.os.ParcelFileDescriptor;
+import android.annotation.NonNull;
+import android.content.Context;
+import android.content.om.OverlayManager;
+import android.content.om.OverlayManagerTransaction;
+import android.os.UserHandle;
import androidx.test.InstrumentationRegistry;
-import java.io.BufferedReader;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.nio.charset.StandardCharsets;
-import java.util.Arrays;
import java.util.concurrent.Executor;
import java.util.concurrent.FutureTask;
class LocalOverlayManager {
private static final long TIMEOUT = 30;
- public static void setEnabledAndWait(Executor executor, final String packageName,
- boolean enable) throws Exception {
- final String pattern = (enable ? "[x]" : "[ ]") + " " + packageName;
- if (executeShellCommand("cmd overlay list").contains(pattern)) {
- // nothing to do, overlay already in the requested state
- return;
+ public static void toggleOverlaysAndWait(@NonNull final String[] overlaysToEnable,
+ @NonNull final String[] overlaysToDisable) throws Exception {
+ final int userId = UserHandle.myUserId();
+ OverlayManagerTransaction.Builder builder = new OverlayManagerTransaction.Builder();
+ for (String pkg : overlaysToEnable) {
+ builder.setEnabled(pkg, true, userId);
}
+ for (String pkg : overlaysToDisable) {
+ builder.setEnabled(pkg, false, userId);
+ }
+ OverlayManagerTransaction transaction = builder.build();
- final Resources res = InstrumentationRegistry.getContext().getResources();
- final String[] oldApkPaths = res.getAssets().getApkPaths();
+ final Context ctx = InstrumentationRegistry.getTargetContext();
FutureTask<Boolean> task = new FutureTask<>(() -> {
while (true) {
- if (!Arrays.equals(oldApkPaths, res.getAssets().getApkPaths())) {
+ final String[] paths = ctx.getResources().getAssets().getApkPaths();
+ if (arrayTailContains(paths, overlaysToEnable)
+ && arrayDoesNotContain(paths, overlaysToDisable)) {
return true;
}
Thread.sleep(10);
}
});
+
+ OverlayManager om = ctx.getSystemService(OverlayManager.class);
+ om.commit(transaction);
+
+ Executor executor = (cmd) -> new Thread(cmd).start();
executor.execute(task);
- executeShellCommand("cmd overlay " + (enable ? "enable " : "disable ") + packageName);
task.get(TIMEOUT, SECONDS);
}
- private static String executeShellCommand(final String command)
- throws Exception {
- final UiAutomation uiAutomation =
- InstrumentationRegistry.getInstrumentation().getUiAutomation();
- final ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(command);
- try (InputStream in = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) {
- final BufferedReader reader = new BufferedReader(
- new InputStreamReader(in, StandardCharsets.UTF_8));
- StringBuilder str = new StringBuilder();
- String line;
- while ((line = reader.readLine()) != null) {
- str.append(line);
- }
- return str.toString();
+ private static boolean arrayTailContains(@NonNull final String[] array,
+ @NonNull final String[] substrings) {
+ if (array.length < substrings.length) {
+ return false;
}
+ for (int i = 0; i < substrings.length; i++) {
+ String a = array[array.length - substrings.length + i];
+ String s = substrings[i];
+ if (!a.contains(s)) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ private static boolean arrayDoesNotContain(@NonNull final String[] array,
+ @NonNull final String[] substrings) {
+ for (String s : substrings) {
+ for (String a : array) {
+ if (a.contains(s)) {
+ return false;
+ }
+ }
+ }
+ return true;
}
}
diff --git a/core/tests/overlaytests/device/src/com/android/overlaytest/TransactionTest.java b/core/tests/overlaytests/device/src/com/android/overlaytest/TransactionTest.java
new file mode 100644
index 0000000..0b4f5e2
--- /dev/null
+++ b/core/tests/overlaytests/device/src/com/android/overlaytest/TransactionTest.java
@@ -0,0 +1,133 @@
+/*
+ * Copyright (C) 2019 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.overlaytest;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.testng.Assert.assertThrows;
+
+import android.content.Context;
+import android.content.om.OverlayInfo;
+import android.content.om.OverlayManager;
+import android.content.om.OverlayManagerTransaction;
+import android.content.res.Resources;
+import android.os.UserHandle;
+
+import androidx.test.InstrumentationRegistry;
+import androidx.test.filters.MediumTest;
+
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
+
+import java.util.List;
+
+@RunWith(JUnit4.class)
+@MediumTest
+public class TransactionTest {
+ static final String APP_OVERLAY_ONE_PKG = "com.android.overlaytest.app_overlay_one";
+ static final String APP_OVERLAY_TWO_PKG = "com.android.overlaytest.app_overlay_two";
+
+ private Context mContext;
+ private Resources mResources;
+ private OverlayManager mOverlayManager;
+ private int mUserId;
+ private UserHandle mUserHandle;
+
+ @Before
+ public void setUp() throws Exception {
+ mContext = InstrumentationRegistry.getContext();
+ mResources = mContext.getResources();
+ mOverlayManager = mContext.getSystemService(OverlayManager.class);
+ mUserId = UserHandle.myUserId();
+ mUserHandle = UserHandle.of(mUserId);
+
+ LocalOverlayManager.toggleOverlaysAndWait(
+ new String[]{},
+ new String[]{APP_OVERLAY_ONE_PKG, APP_OVERLAY_TWO_PKG});
+ }
+
+ @Test
+ public void testValidTransaction() throws Exception {
+ assertOverlayIsEnabled(APP_OVERLAY_ONE_PKG, false, mUserId);
+ assertOverlayIsEnabled(APP_OVERLAY_TWO_PKG, false, mUserId);
+
+ OverlayManagerTransaction t = new OverlayManagerTransaction.Builder()
+ .setEnabled(APP_OVERLAY_ONE_PKG, true)
+ .setEnabled(APP_OVERLAY_TWO_PKG, true)
+ .build();
+ mOverlayManager.commit(t);
+
+ assertOverlayIsEnabled(APP_OVERLAY_ONE_PKG, true, mUserId);
+ assertOverlayIsEnabled(APP_OVERLAY_TWO_PKG, true, mUserId);
+ List<OverlayInfo> ois =
+ mOverlayManager.getOverlayInfosForTarget("com.android.overlaytest", mUserHandle);
+ assertEquals(ois.size(), 2);
+ assertEquals(ois.get(0).packageName, APP_OVERLAY_ONE_PKG);
+ assertEquals(ois.get(1).packageName, APP_OVERLAY_TWO_PKG);
+
+ OverlayManagerTransaction t2 = new OverlayManagerTransaction.Builder()
+ .setEnabled(APP_OVERLAY_TWO_PKG, true)
+ .setEnabled(APP_OVERLAY_ONE_PKG, true)
+ .build();
+ mOverlayManager.commit(t2);
+
+ assertOverlayIsEnabled(APP_OVERLAY_ONE_PKG, true, mUserId);
+ assertOverlayIsEnabled(APP_OVERLAY_TWO_PKG, true, mUserId);
+ List<OverlayInfo> ois2 =
+ mOverlayManager.getOverlayInfosForTarget("com.android.overlaytest", mUserHandle);
+ assertEquals(ois2.size(), 2);
+ assertEquals(ois2.get(0).packageName, APP_OVERLAY_TWO_PKG);
+ assertEquals(ois2.get(1).packageName, APP_OVERLAY_ONE_PKG);
+
+ OverlayManagerTransaction t3 = new OverlayManagerTransaction.Builder()
+ .setEnabled(APP_OVERLAY_TWO_PKG, false)
+ .build();
+ mOverlayManager.commit(t3);
+
+ assertOverlayIsEnabled(APP_OVERLAY_ONE_PKG, true, mUserId);
+ assertOverlayIsEnabled(APP_OVERLAY_TWO_PKG, false, mUserId);
+ List<OverlayInfo> ois3 =
+ mOverlayManager.getOverlayInfosForTarget("com.android.overlaytest", mUserHandle);
+ assertEquals(ois3.size(), 2);
+ assertEquals(ois3.get(0).packageName, APP_OVERLAY_TWO_PKG);
+ assertEquals(ois3.get(1).packageName, APP_OVERLAY_ONE_PKG);
+ }
+
+ @Test
+ public void testInvalidRequestHasNoEffect() {
+ assertOverlayIsEnabled(APP_OVERLAY_ONE_PKG, false, mUserId);
+ assertOverlayIsEnabled(APP_OVERLAY_TWO_PKG, false, mUserId);
+
+ OverlayManagerTransaction t = new OverlayManagerTransaction.Builder()
+ .setEnabled(APP_OVERLAY_ONE_PKG, true)
+ .setEnabled("does-not-exist", true)
+ .setEnabled(APP_OVERLAY_TWO_PKG, true)
+ .build();
+ assertThrows(SecurityException.class, () -> mOverlayManager.commit(t));
+
+ assertOverlayIsEnabled(APP_OVERLAY_ONE_PKG, false, mUserId);
+ assertOverlayIsEnabled(APP_OVERLAY_TWO_PKG, false, mUserId);
+ }
+
+ private void assertOverlayIsEnabled(final String packageName, boolean enabled, int userId) {
+ final OverlayInfo oi = mOverlayManager.getOverlayInfo(packageName, UserHandle.of(userId));
+ assertNotNull(oi);
+ assertEquals(oi.isEnabled(), enabled);
+ }
+}
diff --git a/core/tests/overlaytests/device/src/com/android/overlaytest/WithMultipleOverlaysTest.java b/core/tests/overlaytests/device/src/com/android/overlaytest/WithMultipleOverlaysTest.java
index d28c47d..420f755 100644
--- a/core/tests/overlaytests/device/src/com/android/overlaytest/WithMultipleOverlaysTest.java
+++ b/core/tests/overlaytests/device/src/com/android/overlaytest/WithMultipleOverlaysTest.java
@@ -22,8 +22,6 @@
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
-import java.util.concurrent.Executor;
-
@RunWith(JUnit4.class)
@MediumTest
public class WithMultipleOverlaysTest extends OverlayBaseTest {
@@ -33,9 +31,8 @@
@BeforeClass
public static void enableOverlay() throws Exception {
- Executor executor = (cmd) -> new Thread(cmd).start();
- LocalOverlayManager.setEnabledAndWait(executor, APP_OVERLAY_ONE_PKG, true);
- LocalOverlayManager.setEnabledAndWait(executor, APP_OVERLAY_TWO_PKG, true);
- LocalOverlayManager.setEnabledAndWait(executor, FRAMEWORK_OVERLAY_PKG, true);
+ LocalOverlayManager.toggleOverlaysAndWait(
+ new String[]{FRAMEWORK_OVERLAY_PKG, APP_OVERLAY_ONE_PKG, APP_OVERLAY_TWO_PKG},
+ new String[]{});
}
}
diff --git a/core/tests/overlaytests/device/src/com/android/overlaytest/WithOverlayTest.java b/core/tests/overlaytests/device/src/com/android/overlaytest/WithOverlayTest.java
index 6566ad3..a86255e 100644
--- a/core/tests/overlaytests/device/src/com/android/overlaytest/WithOverlayTest.java
+++ b/core/tests/overlaytests/device/src/com/android/overlaytest/WithOverlayTest.java
@@ -22,8 +22,6 @@
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
-import java.util.concurrent.Executor;
-
@RunWith(JUnit4.class)
@MediumTest
public class WithOverlayTest extends OverlayBaseTest {
@@ -32,10 +30,9 @@
}
@BeforeClass
- public static void enableOverlay() throws Exception {
- Executor executor = (cmd) -> new Thread(cmd).start();
- LocalOverlayManager.setEnabledAndWait(executor, APP_OVERLAY_ONE_PKG, true);
- LocalOverlayManager.setEnabledAndWait(executor, APP_OVERLAY_TWO_PKG, false);
- LocalOverlayManager.setEnabledAndWait(executor, FRAMEWORK_OVERLAY_PKG, true);
+ public static void enableOverlays() throws Exception {
+ LocalOverlayManager.toggleOverlaysAndWait(
+ new String[]{FRAMEWORK_OVERLAY_PKG, APP_OVERLAY_ONE_PKG},
+ new String[]{APP_OVERLAY_TWO_PKG});
}
}
diff --git a/core/tests/overlaytests/device/src/com/android/overlaytest/WithoutOverlayTest.java b/core/tests/overlaytests/device/src/com/android/overlaytest/WithoutOverlayTest.java
index 48cfeab..51c4118 100644
--- a/core/tests/overlaytests/device/src/com/android/overlaytest/WithoutOverlayTest.java
+++ b/core/tests/overlaytests/device/src/com/android/overlaytest/WithoutOverlayTest.java
@@ -22,8 +22,6 @@
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
-import java.util.concurrent.Executor;
-
@RunWith(JUnit4.class)
@MediumTest
public class WithoutOverlayTest extends OverlayBaseTest {
@@ -33,9 +31,8 @@
@BeforeClass
public static void disableOverlays() throws Exception {
- Executor executor = (cmd) -> new Thread(cmd).start();
- LocalOverlayManager.setEnabledAndWait(executor, APP_OVERLAY_ONE_PKG, false);
- LocalOverlayManager.setEnabledAndWait(executor, APP_OVERLAY_TWO_PKG, false);
- LocalOverlayManager.setEnabledAndWait(executor, FRAMEWORK_OVERLAY_PKG, false);
+ LocalOverlayManager.toggleOverlaysAndWait(
+ new String[]{},
+ new String[]{FRAMEWORK_OVERLAY_PKG, APP_OVERLAY_ONE_PKG, APP_OVERLAY_TWO_PKG});
}
}
diff --git a/core/tests/overlaytests/device/test-apps/AppOverlayOne/Android.bp b/core/tests/overlaytests/device/test-apps/AppOverlayOne/Android.bp
index da3aa00..847b491 100644
--- a/core/tests/overlaytests/device/test-apps/AppOverlayOne/Android.bp
+++ b/core/tests/overlaytests/device/test-apps/AppOverlayOne/Android.bp
@@ -15,6 +15,6 @@
android_test {
name: "OverlayDeviceTests_AppOverlayOne",
sdk_version: "current",
-
+ certificate: "platform",
aaptflags: ["--no-resource-removal"],
}
diff --git a/core/tests/overlaytests/device/test-apps/AppOverlayTwo/Android.bp b/core/tests/overlaytests/device/test-apps/AppOverlayTwo/Android.bp
index 215b66da3..7d5f82a 100644
--- a/core/tests/overlaytests/device/test-apps/AppOverlayTwo/Android.bp
+++ b/core/tests/overlaytests/device/test-apps/AppOverlayTwo/Android.bp
@@ -15,6 +15,6 @@
android_test {
name: "OverlayDeviceTests_AppOverlayTwo",
sdk_version: "current",
-
+ certificate: "platform",
aaptflags: ["--no-resource-removal"],
}
diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml
index 057c012..a185da1 100644
--- a/data/etc/privapp-permissions-platform.xml
+++ b/data/etc/privapp-permissions-platform.xml
@@ -343,6 +343,8 @@
<permission name="android.permission.MOUNT_FORMAT_FILESYSTEMS"/>
<permission name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
<permission name="android.permission.MOVE_PACKAGE"/>
+ <!-- Needed for test only -->
+ <permission name="android.permission.NETWORK_AIRPLANE_MODE"/>
<permission name="android.permission.OBSERVE_APP_USAGE"/>
<permission name="android.permission.NETWORK_SCAN"/>
<permission name="android.permission.PACKAGE_USAGE_STATS" />
@@ -438,6 +440,9 @@
<permission name="android.permission.MANAGE_TIME_AND_ZONE_DETECTION" />
<!-- Permissions required for CTS test - CtsHdmiCecHostTestCases -->
<permission name="android.permission.HDMI_CEC"/>
+ <!-- Permission needed for CTS test - WifiManagerTest -->
+ <permission name="android.permission.WIFI_ACCESS_COEX_UNSAFE_CHANNELS" />
+ <permission name="android.permission.WIFI_UPDATE_COEX_UNSAFE_CHANNELS" />
</privapp-permissions>
<privapp-permissions package="com.android.statementservice">
@@ -447,6 +452,8 @@
<privapp-permissions package="com.android.traceur">
<!-- Permissions required to receive BUGREPORT_STARTED intent -->
<permission name="android.permission.DUMP"/>
+ <!-- Permissions required to start/stop tracing -->
+ <permission name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND"/>
<!-- Permissions required for quick settings tile -->
<permission name="android.permission.STATUS_BAR"/>
</privapp-permissions>
diff --git a/data/keyboards/Vendor_0957_Product_0001.idc b/data/keyboards/Vendor_0957_Product_0001.idc
new file mode 100644
index 0000000..e1f4346
--- /dev/null
+++ b/data/keyboards/Vendor_0957_Product_0001.idc
@@ -0,0 +1,23 @@
+# Copyright (C) 2021 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# Input Device Configuration file for Google Reference RCU Remote.
+#
+#
+
+# Basic Parameters
+keyboard.layout = Vendor_0957_Product_0001
+keyboard.characterMap = Vendor_0957_Product_0001
+audio.mic = 1
\ No newline at end of file
diff --git a/data/keyboards/Vendor_0957_Product_0001.kl b/data/keyboards/Vendor_0957_Product_0001.kl
new file mode 100644
index 0000000..e9f4f28
--- /dev/null
+++ b/data/keyboards/Vendor_0957_Product_0001.kl
@@ -0,0 +1,72 @@
+# Copyright (C) 2021 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# Key Layout file for Google Reference RCU Remote.
+#
+
+key 116 POWER WAKE
+key 217 ASSIST WAKE
+
+key 103 DPAD_UP
+key 108 DPAD_DOWN
+key 105 DPAD_LEFT
+key 106 DPAD_RIGHT
+key 353 DPAD_CENTER
+
+key 158 BACK
+key 172 HOME WAKE
+
+key 113 VOLUME_MUTE
+key 114 VOLUME_DOWN
+key 115 VOLUME_UP
+
+key 2 1
+key 3 2
+key 4 3
+key 5 4
+key 6 5
+key 7 6
+key 8 7
+key 9 8
+key 10 9
+key 11 0
+
+# custom keys
+key usage 0x000c01BB TV_INPUT
+key usage 0x000c022A BOOKMARK
+key usage 0x000c0096 SETTINGS
+key usage 0x000c0097 NOTIFICATION
+key usage 0x000c008D GUIDE
+key usage 0x000c0089 TV
+key usage 0x000c009C CHANNEL_UP
+key usage 0x000c009D CHANNEL_DOWN
+key usage 0x000c00CD MEDIA_PLAY_PAUSE
+key usage 0x000c00B4 MEDIA_SKIP_BACKWARD
+key usage 0x000c00B3 MEDIA_SKIP_FORWARD
+key usage 0x000c0226 MEDIA_STOP
+
+key usage 0x000c0077 BUTTON_3 WAKE #YouTube
+key usage 0x000c0078 BUTTON_4 WAKE #Netflix
+key usage 0x000c0079 BUTTON_6 WAKE #Disney+
+key usage 0x000c007A BUTTON_7 WAKE #HBOmax
+
+key usage 0x000c01BD INFO
+key usage 0x000c0061 CAPTIONS
+key usage 0x000c0185 TV_TELETEXT
+
+key usage 0x000c0069 PROG_RED
+key usage 0x000c006A PROG_GREEN
+key usage 0x000c006B PROG_BLUE
+key usage 0x000c006C PROG_YELLOW
\ No newline at end of file
diff --git a/framework-jarjar-rules.txt b/framework-jarjar-rules.txt
index d8af726..52ee63a 100644
--- a/framework-jarjar-rules.txt
+++ b/framework-jarjar-rules.txt
@@ -1,2 +1,3 @@
rule android.hidl.** android.internal.hidl.@1
rule android.net.wifi.WifiAnnotations* android.internal.wifi.WifiAnnotations@1
+rule com.android.server.vcn.util.** com.android.server.vcn.repackaged.util.@1
diff --git a/graphics/OWNERS b/graphics/OWNERS
index a6d1bc3..5851cbb 100644
--- a/graphics/OWNERS
+++ b/graphics/OWNERS
@@ -1 +1 @@
-include /core/java/android/graphics/OWNERS
+include /graphics/java/android/graphics/OWNERS
\ No newline at end of file
diff --git a/graphics/java/android/graphics/SurfaceTexture.java b/graphics/java/android/graphics/SurfaceTexture.java
index 7a2e584..9b2effc 100644
--- a/graphics/java/android/graphics/SurfaceTexture.java
+++ b/graphics/java/android/graphics/SurfaceTexture.java
@@ -76,9 +76,9 @@
/**
* These fields are used by native code, do not access or modify.
*/
- @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
+ @UnsupportedAppUsage(trackingBug = 176388660)
private long mSurfaceTexture;
- @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
+ @UnsupportedAppUsage(trackingBug = 176388660)
private long mProducer;
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
private long mFrameAvailableListener;
diff --git a/graphics/java/android/graphics/drawable/RippleDrawable.java b/graphics/java/android/graphics/drawable/RippleDrawable.java
index 635f6c6..b3c3355 100644
--- a/graphics/java/android/graphics/drawable/RippleDrawable.java
+++ b/graphics/java/android/graphics/drawable/RippleDrawable.java
@@ -122,7 +122,7 @@
private final Rect mDirtyBounds = new Rect();
/** Mirrors mLayerState with some extra information. */
- @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
+ @UnsupportedAppUsage(trackingBug = 175939224)
private RippleState mState;
/** The masking layer, e.g. the layer with id R.id.mask. */
diff --git a/keystore/java/android/security/AndroidProtectedConfirmation.java b/keystore/java/android/security/AndroidProtectedConfirmation.java
new file mode 100644
index 0000000..dfe485a
--- /dev/null
+++ b/keystore/java/android/security/AndroidProtectedConfirmation.java
@@ -0,0 +1,118 @@
+/*
+ * Copyright (C) 2020 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.security;
+
+import android.os.RemoteException;
+import android.os.ServiceManager;
+import android.os.ServiceSpecificException;
+import android.security.apc.IConfirmationCallback;
+import android.security.apc.IProtectedConfirmation;
+import android.security.apc.ResponseCode;
+import android.util.Log;
+
+/**
+ * @hide
+ */
+public class AndroidProtectedConfirmation {
+ private static final String TAG = "AndroidProtectedConfirmation";
+
+ public static final int ERROR_OK = ResponseCode.OK;
+ public static final int ERROR_CANCELED = ResponseCode.CANCELLED;
+ public static final int ERROR_ABORTED = ResponseCode.ABORTED;
+ public static final int ERROR_OPERATION_PENDING = ResponseCode.OPERATION_PENDING;
+ public static final int ERROR_IGNORED = ResponseCode.IGNORED;
+ public static final int ERROR_SYSTEM_ERROR = ResponseCode.SYSTEM_ERROR;
+ public static final int ERROR_UNIMPLEMENTED = ResponseCode.UNIMPLEMENTED;
+
+ public static final int FLAG_UI_OPTION_INVERTED =
+ IProtectedConfirmation.FLAG_UI_OPTION_INVERTED;
+ public static final int FLAG_UI_OPTION_MAGNIFIED =
+ IProtectedConfirmation.FLAG_UI_OPTION_MAGNIFIED;
+
+ private IProtectedConfirmation mProtectedConfirmation;
+
+ public AndroidProtectedConfirmation() {
+ mProtectedConfirmation = null;
+ }
+
+ private synchronized IProtectedConfirmation getService() {
+ if (mProtectedConfirmation == null) {
+ mProtectedConfirmation = IProtectedConfirmation.Stub.asInterface(ServiceManager
+ .getService("android.security.apc"));
+ }
+ return mProtectedConfirmation;
+ }
+
+ /**
+ * Requests keystore call into the confirmationui HAL to display a prompt.
+ *
+ * @param listener the binder to use for callbacks.
+ * @param promptText the prompt to display.
+ * @param extraData extra data / nonce from application.
+ * @param locale the locale as a BCP 47 language tag.
+ * @param uiOptionsAsFlags the UI options to use, as flags.
+ * @return one of the {@code CONFIRMATIONUI_*} constants, for
+ * example {@code KeyStore.CONFIRMATIONUI_OK}.
+ */
+ public int presentConfirmationPrompt(IConfirmationCallback listener, String promptText,
+ byte[] extraData, String locale, int uiOptionsAsFlags) {
+ try {
+ getService().presentPrompt(listener, promptText, extraData, locale,
+ uiOptionsAsFlags);
+ return ERROR_OK;
+ } catch (RemoteException e) {
+ Log.w(TAG, "Cannot connect to keystore", e);
+ return ERROR_SYSTEM_ERROR;
+ } catch (ServiceSpecificException e) {
+ return e.errorCode;
+ }
+ }
+
+ /**
+ * Requests keystore call into the confirmationui HAL to cancel displaying a prompt.
+ *
+ * @param listener the binder passed to the {@link #presentConfirmationPrompt} method.
+ * @return one of the {@code CONFIRMATIONUI_*} constants, for
+ * example {@code KeyStore.CONFIRMATIONUI_OK}.
+ */
+ public int cancelConfirmationPrompt(IConfirmationCallback listener) {
+ try {
+ getService().cancelPrompt(listener);
+ return ERROR_OK;
+ } catch (RemoteException e) {
+ Log.w(TAG, "Cannot connect to keystore", e);
+ return ERROR_SYSTEM_ERROR;
+ } catch (ServiceSpecificException e) {
+ return e.errorCode;
+ }
+ }
+
+ /**
+ * Requests keystore to check if the confirmationui HAL is available.
+ *
+ * @return whether the confirmationUI HAL is available.
+ */
+ public boolean isConfirmationPromptSupported() {
+ try {
+ return getService().isSupported();
+ } catch (RemoteException e) {
+ Log.w(TAG, "Cannot connect to keystore", e);
+ return false;
+ }
+ }
+
+}
diff --git a/keystore/java/android/security/keystore2/KeyStoreCryptoOperationUtils.java b/keystore/java/android/security/keystore2/KeyStoreCryptoOperationUtils.java
index f87a3d2..9924542 100644
--- a/keystore/java/android/security/keystore2/KeyStoreCryptoOperationUtils.java
+++ b/keystore/java/android/security/keystore2/KeyStoreCryptoOperationUtils.java
@@ -120,6 +120,7 @@
return new KeyPermanentlyInvalidatedException();
case ResponseCode.LOCKED:
case ResponseCode.UNINITIALIZED:
+ case KeymasterDefs.KM_ERROR_KEY_USER_NOT_AUTHENTICATED:
// TODO b/173111727 remove response codes LOCKED and UNINITIALIZED
return new UserNotAuthenticatedException();
default:
diff --git a/media/java/android/media/tv/TvContract.java b/media/java/android/media/tv/TvContract.java
index 433c622..30a14c8 100644
--- a/media/java/android/media/tv/TvContract.java
+++ b/media/java/android/media/tv/TvContract.java
@@ -2450,6 +2450,71 @@
*/
public static final String COLUMN_GLOBAL_CONTENT_ID = "global_content_id";
+ /**
+ * The remote control key preset number that is assigned to this channel.
+ *
+ * <p> This can be used for one-touch-tuning, tuning to the channel with
+ * pressing the preset button.
+ *
+ * <p> Type: INTEGER (remote control key preset number)
+ */
+ public static final String COLUMN_REMOTE_CONTROL_KEY_PRESET_NUMBER =
+ "remote_control_key_preset_number";
+
+ /**
+ * The flag indicating whether this TV channel is scrambled or not.
+ *
+ * <p>Use the same coding for scrambled in the underlying broadcast standard
+ * if {@code free_ca_mode} in SDT is defined there (e.g. ETSI EN 300 468).
+ *
+ * <p>Type: INTEGER (boolean)
+ */
+ public static final String COLUMN_SCRAMBLED = "scrambled";
+
+ /**
+ * The typical video resolution.
+ *
+ * <p>This is primarily used to filter out channels based on video resolution
+ * by applications. The value is from SDT if defined there. (e.g. ETSI EN 300 468)
+ * The value should match one of the followings: {@link #VIDEO_RESOLUTION_SD},
+ * {@link #VIDEO_RESOLUTION_HD}, {@link #VIDEO_RESOLUTION_UHD}.
+ *
+ * <p>Type: TEXT
+ *
+ */
+ public static final String COLUMN_VIDEO_RESOLUTION = "video_resolution";
+
+ /**
+ * The channel list ID of this TV channel.
+ *
+ * <p>It is used to identify the channel list constructed from broadcast SI based on the
+ * underlying broadcast standard or country/operator profile, if applicable. Otherwise,
+ * leave empty.
+ *
+ * <p>The ID can be defined by individual TV input services. For example, one may assign a
+ * service operator name for the service operator channel list constructed from broadcast
+ * SI or one may assign the {@code profile_name} of the operator_info() APDU defined in CI
+ * Plus 1.3 for the dedicated CICAM operator profile channel list constructed
+ * from CICAM NIT.
+ *
+ * <p>Type: TEXT
+ */
+ public static final String COLUMN_CHANNEL_LIST_ID = "channel_list_id";
+
+ /**
+ * The comma-separated genre string of this TV channel.
+ *
+ * <p>Use the same language appeared in the underlying broadcast standard, if applicable.
+ * Otherwise, leave empty. Use
+ * {@link Genres#encode Genres.encode()} to create a text that can be stored in this column.
+ * Use {@link Genres#decode Genres.decode()} to get the broadcast genre strings from the
+ * text stored in the column.
+ *
+ * <p>Type: TEXT
+ * @see Programs#COLUMN_BROADCAST_GENRE
+ */
+ public static final String COLUMN_BROADCAST_GENRE = Programs.COLUMN_BROADCAST_GENRE;
+
private Channels() {}
/**
diff --git a/media/java/android/media/tv/tuner/Tuner.java b/media/java/android/media/tv/tuner/Tuner.java
index 8bf688d..b743a95 100644
--- a/media/java/android/media/tv/tuner/Tuner.java
+++ b/media/java/android/media/tv/tuner/Tuner.java
@@ -60,6 +60,7 @@
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
+import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@@ -210,6 +211,7 @@
@Nullable
private FrontendInfo mFrontendInfo;
private Integer mFrontendHandle;
+ private Boolean mIsSharedFrontend = false;
private int mFrontendType = FrontendSettings.TYPE_UNDEFINED;
private int mUserId;
private Lnb mLnb;
@@ -228,8 +230,8 @@
private Executor mOnResourceLostListenerExecutor;
private Integer mDemuxHandle;
- private Map<Integer, Descrambler> mDescramblers = new HashMap<>();
- private List<Filter> mFilters = new ArrayList<>();
+ private Map<Integer, WeakReference<Descrambler>> mDescramblers = new HashMap<>();
+ private List<WeakReference<Filter>> mFilters = new ArrayList<WeakReference<Filter>>();
private final TunerResourceManager.ResourcesReclaimListener mResourceListener =
new TunerResourceManager.ResourcesReclaimListener() {
@@ -240,6 +242,7 @@
.write(FrameworkStatsLog.TV_TUNER_STATE_CHANGED, mUserId,
FrameworkStatsLog.TV_TUNER_STATE_CHANGED__STATE__UNKNOWN);
}
+ releaseAll();
mHandler.sendMessage(mHandler.obtainMessage(MSG_RESOURCE_LOST));
}
};
@@ -336,8 +339,11 @@
*/
public void shareFrontendFromTuner(@NonNull Tuner tuner) {
mTunerResourceManager.shareFrontend(mClientId, tuner.mClientId);
- mFrontendHandle = tuner.mFrontendHandle;
- mFrontend = nativeOpenFrontendByHandle(mFrontendHandle);
+ synchronized (mIsSharedFrontend) {
+ mFrontendHandle = tuner.mFrontendHandle;
+ mFrontend = tuner.mFrontend;
+ mIsSharedFrontend = true;
+ }
}
/**
@@ -362,33 +368,53 @@
*/
@Override
public void close() {
+ releaseAll();
+ TunerUtils.throwExceptionForResult(nativeClose(), "failed to close tuner");
+ }
+
+ private void releaseAll() {
if (mFrontendHandle != null) {
- int res = nativeCloseFrontend(mFrontendHandle);
- if (res != Tuner.RESULT_SUCCESS) {
- TunerUtils.throwExceptionForResult(res, "failed to close frontend");
+ synchronized (mIsSharedFrontend) {
+ if (!mIsSharedFrontend) {
+ int res = nativeCloseFrontend(mFrontendHandle);
+ if (res != Tuner.RESULT_SUCCESS) {
+ TunerUtils.throwExceptionForResult(res, "failed to close frontend");
+ }
+ }
+ mIsSharedFrontend = false;
}
mTunerResourceManager.releaseFrontend(mFrontendHandle, mClientId);
FrameworkStatsLog
.write(FrameworkStatsLog.TV_TUNER_STATE_CHANGED, mUserId,
- FrameworkStatsLog.TV_TUNER_STATE_CHANGED__STATE__UNKNOWN);
+ FrameworkStatsLog.TV_TUNER_STATE_CHANGED__STATE__UNKNOWN);
mFrontendHandle = null;
mFrontend = null;
}
if (mLnb != null) {
mLnb.close();
}
- if (!mDescramblers.isEmpty()) {
- for (Map.Entry<Integer, Descrambler> d : mDescramblers.entrySet()) {
- d.getValue().close();
- mTunerResourceManager.releaseDescrambler(d.getKey(), mClientId);
+ synchronized (mDescramblers) {
+ if (!mDescramblers.isEmpty()) {
+ for (Map.Entry<Integer, WeakReference<Descrambler>> d : mDescramblers.entrySet()) {
+ Descrambler descrambler = d.getValue().get();
+ if (descrambler != null) {
+ descrambler.close();
+ }
+ mTunerResourceManager.releaseDescrambler(d.getKey(), mClientId);
+ }
+ mDescramblers.clear();
}
- mDescramblers.clear();
}
- if (!mFilters.isEmpty()) {
- for (Filter f : mFilters) {
- f.close();
+ synchronized (mFilters) {
+ if (!mFilters.isEmpty()) {
+ for (WeakReference<Filter> weakFilter : mFilters) {
+ Filter filter = weakFilter.get();
+ if (filter != null) {
+ filter.close();
+ }
+ }
+ mFilters.clear();
}
- mFilters.clear();
}
if (mDemuxHandle != null) {
int res = nativeCloseDemux(mDemuxHandle);
@@ -396,9 +422,9 @@
TunerUtils.throwExceptionForResult(res, "failed to close demux");
}
mTunerResourceManager.releaseDemux(mDemuxHandle, mClientId);
- mFrontendHandle = null;
+ mDemuxHandle = null;
}
- TunerUtils.throwExceptionForResult(nativeClose(), "failed to close tuner");
+
}
/**
@@ -610,10 +636,14 @@
@Result
public int scan(@NonNull FrontendSettings settings, @ScanType int scanType,
@NonNull @CallbackExecutor Executor executor, @NonNull ScanCallback scanCallback) {
- if (mScanCallback != null || mScanCallbackExecutor != null) {
+ /**
+ * Scan can be called again for blink scan if scanCallback and executor are same as before.
+ */
+ if (((mScanCallback != null) && (mScanCallback != scanCallback))
+ || ((mScanCallbackExecutor != null) && (mScanCallbackExecutor != executor))) {
throw new IllegalStateException(
- "Scan already in progress. stopScan must be called before a new scan can be "
- + "started.");
+ "Different Scan session already in progress. stopScan must be called "
+ + "before a new scan session can be " + "started.");
}
mFrontendType = settings.getType();
if (checkResource(TunerResourceManager.TUNER_RESOURCE_TYPE_FRONTEND)) {
@@ -944,7 +974,10 @@
if (mHandler == null) {
mHandler = createEventHandler();
}
- mFilters.add(filter);
+ synchronized (mFilters) {
+ WeakReference<Filter> weakFilter = new WeakReference<Filter>(filter);
+ mFilters.add(weakFilter);
+ }
}
return filter;
}
@@ -1112,7 +1145,10 @@
int handle = descramblerHandle[0];
Descrambler descrambler = nativeOpenDescramblerByHandle(handle);
if (descrambler != null) {
- mDescramblers.put(handle, descrambler);
+ synchronized (mDescramblers) {
+ WeakReference weakDescrambler = new WeakReference<Descrambler>(descrambler);
+ mDescramblers.put(handle, weakDescrambler);
+ }
} else {
mTunerResourceManager.releaseDescrambler(handle, mClientId);
}
diff --git a/media/java/android/mtp/MtpStorageManager.java b/media/java/android/mtp/MtpStorageManager.java
index c0eb5e8..0bede0d 100644
--- a/media/java/android/mtp/MtpStorageManager.java
+++ b/media/java/android/mtp/MtpStorageManager.java
@@ -958,7 +958,7 @@
MtpObject parent = obj.getParent();
MtpObject oldObj = parent.getChild(oldName);
if (!success) {
- // If the rename failed, we want oldObj to be the original and obj to be the dummy.
+ // If the rename failed, we want oldObj to be the original and obj to be the stand-in.
// Switch the objects, except for their name and state.
MtpObject temp = oldObj;
MtpObjectState oldState = oldObj.getState();
@@ -1034,7 +1034,7 @@
return generalBeginRemoveObject(obj, MtpOperation.RENAME)
&& generalBeginCopyObject(newObj, false);
}
- // Move obj to new parent, create a dummy object in the old parent.
+ // Move obj to new parent, create a fake object in the old parent.
MtpObject oldObj = obj.copy(false);
obj.setParent(newParent);
oldObj.getParent().addChild(oldObj);
@@ -1063,7 +1063,7 @@
return generalEndCopyObject(newObj, success, true) && ret;
}
if (!success) {
- // If the rename failed, we want oldObj to be the original and obj to be the dummy.
+ // If the rename failed, we want oldObj to be the original and obj to be the stand-in.
// Switch the objects, except for their parent and state.
MtpObject temp = oldObj;
MtpObjectState oldState = oldObj.getState();
diff --git a/media/jni/android_media_tv_Tuner.cpp b/media/jni/android_media_tv_Tuner.cpp
index 515d610..5daf8b0 100644
--- a/media/jni/android_media_tv_Tuner.cpp
+++ b/media/jni/android_media_tv_Tuner.cpp
@@ -171,6 +171,12 @@
void DestroyCallback(const C2Buffer * /* buf */, void *arg) {
android::sp<android::MediaEvent> event = (android::MediaEvent *)arg;
+ if (event->mLinearBlockObj != NULL) {
+ JNIEnv *env = android::AndroidRuntime::getJNIEnv();
+ env->DeleteWeakGlobalRef(event->mLinearBlockObj);
+ event->mLinearBlockObj = NULL;
+ }
+
event->mAvHandleRefCnt--;
event->finalize();
}
@@ -182,6 +188,12 @@
mLnb = env->NewWeakGlobalRef(lnbObj);
}
+LnbCallback::~LnbCallback() {
+ JNIEnv *env = AndroidRuntime::getJNIEnv();
+ env->DeleteWeakGlobalRef(mLnb);
+ mLnb = NULL;
+}
+
Return<void> LnbCallback::onEvent(LnbEventType lnbEventType) {
ALOGD("LnbCallback::onEvent, type=%d", lnbEventType);
JNIEnv *env = AndroidRuntime::getJNIEnv();
@@ -291,8 +303,9 @@
C2DataIdInfo::C2DataIdInfo(uint32_t index, uint64_t value) : C2Param(kParamSize, index) {
CHECK(isGlobal());
CHECK_EQ(C2Param::INFO, kind());
- DummyInfo info{value};
- memcpy(this + 1, static_cast<C2Param *>(&info) + 1, kParamSize - sizeof(C2Param));
+ mInfo = StubInfo(value);
+ memcpy(static_cast<C2Param *>(this) + 1, static_cast<C2Param *>(&mInfo) + 1,
+ kParamSize - sizeof(C2Param));
}
/////////////// MediaEvent ///////////////////////
@@ -304,6 +317,7 @@
JNIEnv *env = AndroidRuntime::getJNIEnv();
mMediaEventObj = env->NewWeakGlobalRef(obj);
mAvHandle = native_handle_clone(avHandle.getNativeHandle());
+ mLinearBlockObj = NULL;
}
MediaEvent::~MediaEvent() {
@@ -337,33 +351,44 @@
}
mIonHandle = new C2HandleIon(dup(mAvHandle->data[0]), mDataLength);
std::shared_ptr<C2LinearBlock> block = _C2BlockFactory::CreateLinearBlock(mIonHandle);
-
- JNIEnv *env = AndroidRuntime::getJNIEnv();
- std::unique_ptr<JMediaCodecLinearBlock> context{new JMediaCodecLinearBlock};
- context->mBlock = block;
- std::shared_ptr<C2Buffer> pC2Buffer = context->toC2Buffer(0, mDataLength);
- context->mBuffer = pC2Buffer;
- mC2Buffer = pC2Buffer;
- if (mAvHandle->numInts > 0) {
- // use first int in the native_handle as the index
- int index = mAvHandle->data[mAvHandle->numFds];
- std::shared_ptr<C2Param> c2param = std::make_shared<C2DataIdInfo>(index, mDataId);
- std::shared_ptr<C2Info> info(std::static_pointer_cast<C2Info>(c2param));
- pC2Buffer->setInfo(info);
+ if (block != nullptr) {
+ // CreateLinearBlock delete mIonHandle after it create block successfully.
+ // ToDo: coordinate who is response to delete mIonHandle
+ mIonHandle = NULL;
+ JNIEnv *env = AndroidRuntime::getJNIEnv();
+ std::unique_ptr<JMediaCodecLinearBlock> context{new JMediaCodecLinearBlock};
+ context->mBlock = block;
+ std::shared_ptr<C2Buffer> pC2Buffer = context->toC2Buffer(0, mDataLength);
+ context->mBuffer = pC2Buffer;
+ mC2Buffer = pC2Buffer;
+ if (mAvHandle->numInts > 0) {
+ // use first int in the native_handle as the index
+ int index = mAvHandle->data[mAvHandle->numFds];
+ std::shared_ptr<C2Param> c2param = std::make_shared<C2DataIdInfo>(index, mDataId);
+ std::shared_ptr<C2Info> info(std::static_pointer_cast<C2Info>(c2param));
+ pC2Buffer->setInfo(info);
+ }
+ pC2Buffer->registerOnDestroyNotify(&DestroyCallback, this);
+ jobject linearBlock =
+ env->NewObject(
+ env->FindClass("android/media/MediaCodec$LinearBlock"),
+ gFields.linearBlockInitID);
+ env->CallVoidMethod(
+ linearBlock,
+ gFields.linearBlockSetInternalStateID,
+ (jlong)context.release(),
+ true);
+ mLinearBlockObj = env->NewWeakGlobalRef(linearBlock);
+ mAvHandleRefCnt++;
+ return linearBlock;
+ } else {
+ native_handle_close(const_cast<native_handle_t*>(
+ reinterpret_cast<const native_handle_t*>(mIonHandle)));
+ native_handle_delete(const_cast<native_handle_t*>(
+ reinterpret_cast<const native_handle_t*>(mIonHandle)));
+ mIonHandle = NULL;
+ return NULL;
}
- pC2Buffer->registerOnDestroyNotify(&DestroyCallback, this);
- jobject linearBlock =
- env->NewObject(
- env->FindClass("android/media/MediaCodec$LinearBlock"),
- gFields.linearBlockInitID);
- env->CallVoidMethod(
- linearBlock,
- gFields.linearBlockSetInternalStateID,
- (jlong)context.release(),
- true);
- mLinearBlockObj = env->NewWeakGlobalRef(linearBlock);
- mAvHandleRefCnt++;
- return mLinearBlockObj;
}
uint64_t MediaEvent::getAudioHandle() {
@@ -447,7 +472,7 @@
if (mediaEvent.avMemory.getNativeHandle() != NULL || mediaEvent.avDataId != 0) {
sp<MediaEvent> mediaEventSp =
new MediaEvent(mIFilter, mediaEvent.avMemory,
- mediaEvent.avDataId, dataLength, obj);
+ mediaEvent.avDataId, dataLength + offset, obj);
mediaEventSp->mAvHandleRefCnt++;
env->SetLongField(obj, eventContext, (jlong) mediaEventSp.get());
mediaEventSp->incStrong(obj);
@@ -2048,7 +2073,7 @@
env->GetIntField(settings, env->GetFieldID(clazz, "mModulation", "I")));
FrontendInnerFec innerFec =
static_cast<FrontendInnerFec>(
- env->GetLongField(settings, env->GetFieldID(clazz, "mFec", "J")));
+ env->GetLongField(settings, env->GetFieldID(clazz, "mInnerFec", "J")));
uint32_t symbolRate =
static_cast<uint32_t>(
env->GetIntField(settings, env->GetFieldID(clazz, "mSymbolRate", "I")));
@@ -2057,7 +2082,7 @@
env->GetIntField(settings, env->GetFieldID(clazz, "mOuterFec", "I")));
FrontendDvbcAnnex annex =
static_cast<FrontendDvbcAnnex>(
- env->GetByteField(settings, env->GetFieldID(clazz, "mAnnex", "B")));
+ env->GetIntField(settings, env->GetFieldID(clazz, "mAnnex", "I")));
FrontendDvbcSpectralInversion spectralInversion =
static_cast<FrontendDvbcSpectralInversion>(
env->GetIntField(
@@ -3497,6 +3522,10 @@
} else {
ALOGE("dvrMq.beginWrite failed");
}
+
+ if (ret > 0) {
+ dvrSp->mDvrMQEventFlag->wake(static_cast<uint32_t>(DemuxQueueNotifyBits::DATA_READY));
+ }
return (jlong) ret;
}
@@ -3524,7 +3553,7 @@
if (dvrSp->mDvrMQ->write(reinterpret_cast<unsigned char*>(src) + offset, size)) {
env->ReleaseByteArrayElements(buffer, src, 0);
- dvrSp->mDvrMQEventFlag->wake(static_cast<uint32_t>(DemuxQueueNotifyBits::DATA_CONSUMED));
+ dvrSp->mDvrMQEventFlag->wake(static_cast<uint32_t>(DemuxQueueNotifyBits::DATA_READY));
} else {
ALOGD("Failed to write FMQ");
env->ReleaseByteArrayElements(buffer, src, 0);
@@ -3585,6 +3614,9 @@
} else {
ALOGE("dvrMq.beginRead failed");
}
+ if (ret > 0) {
+ dvrSp->mDvrMQEventFlag->wake(static_cast<uint32_t>(DemuxQueueNotifyBits::DATA_CONSUMED));
+ }
return (jlong) ret;
}
diff --git a/media/jni/android_media_tv_Tuner.h b/media/jni/android_media_tv_Tuner.h
index 83e9db7..c4deeaf 100644
--- a/media/jni/android_media_tv_Tuner.h
+++ b/media/jni/android_media_tv_Tuner.h
@@ -73,6 +73,7 @@
struct LnbCallback : public ILnbCallback {
LnbCallback(jweak tunerObj, LnbId id);
+ ~LnbCallback();
virtual Return<void> onEvent(LnbEventType lnbEventType);
virtual Return<void> onDiseqcMessage(const hidl_vec<uint8_t>& diseqcMessage);
jweak mLnb;
@@ -250,8 +251,9 @@
public:
C2DataIdInfo(uint32_t index, uint64_t value);
private:
- typedef C2GlobalParam<C2Info, C2Int64Value, 0> DummyInfo;
- static const size_t kParamSize = sizeof(DummyInfo);
+ typedef C2GlobalParam<C2Info, C2Int64Value, 0> StubInfo;
+ StubInfo mInfo;
+ static const size_t kParamSize = sizeof(StubInfo);
};
} // namespace android
diff --git a/native/graphics/OWNERS b/native/graphics/OWNERS
index a6d1bc3..d81ea2c 100644
--- a/native/graphics/OWNERS
+++ b/native/graphics/OWNERS
@@ -1 +1 @@
-include /core/java/android/graphics/OWNERS
+include /graphics/java/android/graphics/OWNERS
diff --git a/packages/DynamicSystemInstallationService/OWNERS b/packages/DynamicSystemInstallationService/OWNERS
new file mode 100644
index 0000000..c1b7ec4
--- /dev/null
+++ b/packages/DynamicSystemInstallationService/OWNERS
@@ -0,0 +1,3 @@
+howardsoc@google.com
+pchsueh@google.com
+yochiang@google.com
diff --git a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java
index ac27580..7f19662 100644
--- a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java
+++ b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java
@@ -74,7 +74,7 @@
public class DynamicSystemInstallationService extends Service
implements InstallationAsyncTask.ProgressListener {
- private static final String TAG = "DynSystemInstallationService";
+ private static final String TAG = "DynamicSystemInstallationService";
// TODO (b/131866826): This is currently for test only. Will move this to System API.
static final String KEY_ENABLE_WHEN_COMPLETED = "KEY_ENABLE_WHEN_COMPLETED";
@@ -211,10 +211,10 @@
@Override
public void onProgressUpdate(InstallationAsyncTask.Progress progress) {
- mCurrentPartitionName = progress.mPartitionName;
- mCurrentPartitionSize = progress.mPartitionSize;
- mCurrentPartitionInstalledSize = progress.mInstalledSize;
- mNumInstalledPartitions = progress.mNumInstalledPartitions;
+ mCurrentPartitionName = progress.partitionName;
+ mCurrentPartitionSize = progress.partitionSize;
+ mCurrentPartitionInstalledSize = progress.installedSize;
+ mNumInstalledPartitions = progress.numInstalledPartitions;
postStatus(STATUS_IN_PROGRESS, CAUSE_NOT_SPECIFIED, null);
}
diff --git a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/InstallationAsyncTask.java b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/InstallationAsyncTask.java
index 4d31ce9..4ef5e2b 100644
--- a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/InstallationAsyncTask.java
+++ b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/InstallationAsyncTask.java
@@ -20,6 +20,7 @@
import android.gsi.AvbPublicKey;
import android.net.Uri;
import android.os.AsyncTask;
+import android.os.Build;
import android.os.MemoryFile;
import android.os.ParcelFileDescriptor;
import android.os.image.DynamicSystemManager;
@@ -51,7 +52,8 @@
private static final long MIN_PROGRESS_TO_PUBLISH = 1 << 27;
private static final List<String> UNSUPPORTED_PARTITIONS =
- Arrays.asList("vbmeta", "boot", "userdata", "dtbo", "super_empty", "system_other");
+ Arrays.asList(
+ "vbmeta", "boot", "userdata", "dtbo", "super_empty", "system_other", "scratch");
private class UnsupportedUrlException extends Exception {
private UnsupportedUrlException(String message) {
@@ -102,20 +104,16 @@
static final int RESULT_ERROR_UNSUPPORTED_FORMAT = 5;
static final int RESULT_ERROR_EXCEPTION = 6;
- class Progress {
- String mPartitionName;
- long mPartitionSize;
- long mInstalledSize;
+ static class Progress {
+ public final String partitionName;
+ public final long partitionSize;
+ public final int numInstalledPartitions;
+ public long installedSize;
- int mNumInstalledPartitions;
-
- Progress(String partitionName, long partitionSize, long installedSize,
- int numInstalled) {
- mPartitionName = partitionName;
- mPartitionSize = partitionSize;
- mInstalledSize = installedSize;
-
- mNumInstalledPartitions = numInstalled;
+ Progress(String partitionName, long partitionSize, int numInstalledPartitions) {
+ this.partitionName = partitionName;
+ this.partitionSize = partitionSize;
+ this.numInstalledPartitions = numInstalledPartitions;
}
}
@@ -141,6 +139,8 @@
private boolean mIsZip;
private boolean mIsCompleted;
+ private int mNumInstalledPartitions;
+
private InputStream mStream;
private ZipFile mZipFile;
@@ -198,6 +198,22 @@
return null;
}
+ if (Build.IS_DEBUGGABLE) {
+ // If host is debuggable, then install a scratch partition so that we can do
+ // adb remount in the guest system.
+ try {
+ installScratch();
+ } catch (IOException e) {
+ // Failing to install overlayFS scratch shouldn't be fatal.
+ // Just ignore the error and skip installing the scratch partition.
+ Log.w(TAG, e.toString(), e);
+ }
+ if (isCancelled()) {
+ mDynSystem.remove();
+ return null;
+ }
+ }
+
mDynSystem.finishInstallation();
} catch (Exception e) {
Log.e(TAG, e.toString(), e);
@@ -304,30 +320,70 @@
}
}
- private void installUserdata() throws Exception {
- Thread thread = new Thread(() -> {
- mInstallationSession = mDynSystem.createPartition("userdata", mUserdataSize, false);
- });
+ private void installScratch() throws IOException, InterruptedException {
+ final long scratchSize = mDynSystem.suggestScratchSize();
+ Thread thread = new Thread() {
+ @Override
+ public void run() {
+ mInstallationSession =
+ mDynSystem.createPartition("scratch", scratchSize, /* readOnly= */ false);
+ }
+ };
- Log.d(TAG, "Creating partition: userdata");
+ Log.d(TAG, "Creating partition: scratch, size = " + scratchSize);
thread.start();
- long installedSize = 0;
- Progress progress = new Progress("userdata", mUserdataSize, installedSize, 0);
+ Progress progress = new Progress("scratch", scratchSize, mNumInstalledPartitions++);
while (thread.isAlive()) {
if (isCancelled()) {
return;
}
- installedSize = mDynSystem.getInstallationProgress().bytes_processed;
+ final long installedSize = mDynSystem.getInstallationProgress().bytes_processed;
- if (installedSize > progress.mInstalledSize + MIN_PROGRESS_TO_PUBLISH) {
- progress.mInstalledSize = installedSize;
+ if (installedSize > progress.installedSize + MIN_PROGRESS_TO_PUBLISH) {
+ progress.installedSize = installedSize;
publishProgress(progress);
}
- Thread.sleep(10);
+ Thread.sleep(100);
+ }
+
+ if (mInstallationSession == null) {
+ throw new IOException(
+ "Failed to start installation with requested size: " + scratchSize);
+ }
+ // Reset installation session and verify that installation completes successfully.
+ mInstallationSession = null;
+ if (!mDynSystem.closePartition()) {
+ throw new IOException("Failed to complete partition installation: scratch");
+ }
+ }
+
+ private void installUserdata() throws IOException, InterruptedException {
+ Thread thread = new Thread(() -> {
+ mInstallationSession = mDynSystem.createPartition("userdata", mUserdataSize, false);
+ });
+
+ Log.d(TAG, "Creating partition: userdata, size = " + mUserdataSize);
+ thread.start();
+
+ Progress progress = new Progress("userdata", mUserdataSize, mNumInstalledPartitions++);
+
+ while (thread.isAlive()) {
+ if (isCancelled()) {
+ return;
+ }
+
+ final long installedSize = mDynSystem.getInstallationProgress().bytes_processed;
+
+ if (installedSize > progress.installedSize + MIN_PROGRESS_TO_PUBLISH) {
+ progress.installedSize = installedSize;
+ publishProgress(progress);
+ }
+
+ Thread.sleep(100);
}
if (mInstallationSession == null) {
@@ -357,7 +413,7 @@
private void installStreamingGzUpdate()
throws IOException, InterruptedException, ImageValidationException {
Log.d(TAG, "To install a streaming GZ update");
- installImage("system", mSystemSize, new GZIPInputStream(mStream), 1);
+ installImage("system", mSystemSize, new GZIPInputStream(mStream));
}
private void installStreamingZipUpdate()
@@ -367,12 +423,8 @@
ZipInputStream zis = new ZipInputStream(mStream);
ZipEntry zipEntry = null;
- int numInstalledPartitions = 1;
-
while ((zipEntry = zis.getNextEntry()) != null) {
- if (installImageFromAnEntry(zipEntry, zis, numInstalledPartitions)) {
- numInstalledPartitions++;
- }
+ installImageFromAnEntry(zipEntry, zis);
if (isCancelled()) {
break;
@@ -385,14 +437,10 @@
Log.d(TAG, "To install a local ZIP update");
Enumeration<? extends ZipEntry> entries = mZipFile.entries();
- int numInstalledPartitions = 1;
while (entries.hasMoreElements()) {
ZipEntry entry = entries.nextElement();
- if (installImageFromAnEntry(
- entry, mZipFile.getInputStream(entry), numInstalledPartitions)) {
- numInstalledPartitions++;
- }
+ installImageFromAnEntry(entry, mZipFile.getInputStream(entry));
if (isCancelled()) {
break;
@@ -400,8 +448,7 @@
}
}
- private boolean installImageFromAnEntry(
- ZipEntry entry, InputStream is, int numInstalledPartitions)
+ private boolean installImageFromAnEntry(ZipEntry entry, InputStream is)
throws IOException, InterruptedException, ImageValidationException {
String name = entry.getName();
@@ -420,13 +467,12 @@
long uncompressedSize = entry.getSize();
- installImage(partitionName, uncompressedSize, is, numInstalledPartitions);
+ installImage(partitionName, uncompressedSize, is);
return true;
}
- private void installImage(
- String partitionName, long uncompressedSize, InputStream is, int numInstalledPartitions)
+ private void installImage(String partitionName, long uncompressedSize, InputStream is)
throws IOException, InterruptedException, ImageValidationException {
SparseInputStream sis = new SparseInputStream(new BufferedInputStream(is));
@@ -458,7 +504,7 @@
return;
}
- Thread.sleep(10);
+ Thread.sleep(100);
}
if (mInstallationSession == null) {
@@ -473,10 +519,9 @@
mInstallationSession.setAshmem(pfd, READ_BUFFER_SIZE);
- long installedSize = 0;
- Progress progress = new Progress(
- partitionName, partitionSize, installedSize, numInstalledPartitions);
+ Progress progress = new Progress(partitionName, partitionSize, mNumInstalledPartitions++);
+ long installedSize = 0;
byte[] bytes = new byte[READ_BUFFER_SIZE];
int numBytesRead;
@@ -493,8 +538,8 @@
installedSize += numBytesRead;
- if (installedSize > progress.mInstalledSize + MIN_PROGRESS_TO_PUBLISH) {
- progress.mInstalledSize = installedSize;
+ if (installedSize > progress.installedSize + MIN_PROGRESS_TO_PUBLISH) {
+ progress.installedSize = installedSize;
publishProgress(progress);
}
}
diff --git a/packages/PackageInstaller/src/com/android/packageinstaller/UninstallerActivity.java b/packages/PackageInstaller/src/com/android/packageinstaller/UninstallerActivity.java
index be778e9..94829b5 100755
--- a/packages/PackageInstaller/src/com/android/packageinstaller/UninstallerActivity.java
+++ b/packages/PackageInstaller/src/com/android/packageinstaller/UninstallerActivity.java
@@ -17,6 +17,7 @@
package com.android.packageinstaller;
import static android.app.AppOpsManager.MODE_ALLOWED;
+import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;
import static com.android.packageinstaller.PackageUtil.getMaxTargetSdkVersionForUid;
@@ -87,6 +88,8 @@
@Override
public void onCreate(Bundle icicle) {
+ getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
+
// Never restore any state, esp. never create any fragments. The data in the fragment might
// be stale, if e.g. the app was uninstalled while the activity was destroyed.
super.onCreate(null);
diff --git a/packages/SettingsLib/HelpUtils/res/values-uz/strings.xml b/packages/SettingsLib/HelpUtils/res/values-uz/strings.xml
index 81d0dd9..cb56912 100644
--- a/packages/SettingsLib/HelpUtils/res/values-uz/strings.xml
+++ b/packages/SettingsLib/HelpUtils/res/values-uz/strings.xml
@@ -17,5 +17,5 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
- <string name="help_feedback_label" msgid="7106780063063027882">"Yordam va fikr-mulohaza"</string>
+ <string name="help_feedback_label" msgid="7106780063063027882">"Yordam/fikr-mulohaza"</string>
</resources>
diff --git a/packages/SettingsLib/res/values-ca/strings.xml b/packages/SettingsLib/res/values-ca/strings.xml
index b040958..c45255c 100644
--- a/packages/SettingsLib/res/values-ca/strings.xml
+++ b/packages/SettingsLib/res/values-ca/strings.xml
@@ -409,7 +409,7 @@
<string name="convert_to_file_encryption_done" msgid="8965831011811180627">"El fitxer ja està encriptat"</string>
<string name="title_convert_fbe" msgid="5780013350366495149">"S\'està convertint en l\'encriptació basada en fitxers"</string>
<string name="convert_to_fbe_warning" msgid="34294381569282109">"Converteix la partició de dades en una encriptació basada en fitxers.\n Advertiment: s\'esborraran totes les teves dades.\n Aquesta funció és alfa i és possible que no funcioni correctament.\n Per continuar, prem Esborra i converteix…"</string>
- <string name="button_convert_fbe" msgid="1159861795137727671">"Esborra i converteix…"</string>
+ <string name="button_convert_fbe" msgid="1159861795137727671">"Neteja i converteix…"</string>
<string name="picture_color_mode" msgid="1013807330552931903">"Mode de color de la imatge"</string>
<string name="picture_color_mode_desc" msgid="151780973768136200">"Utilitza sRGB"</string>
<string name="daltonizer_mode_disabled" msgid="403424372812399228">"Desactivat"</string>
diff --git a/packages/SettingsLib/res/values-fi/strings.xml b/packages/SettingsLib/res/values-fi/strings.xml
index 3d28f1d..0854e8d 100644
--- a/packages/SettingsLib/res/values-fi/strings.xml
+++ b/packages/SettingsLib/res/values-fi/strings.xml
@@ -487,8 +487,8 @@
<string name="status_unavailable" msgid="5279036186589861608">"Ei käytettävissä"</string>
<string name="wifi_status_mac_randomized" msgid="466382542497832189">"MAC-osoite satunnaistetaan"</string>
<plurals name="wifi_tether_connected_summary" formatted="false" msgid="6317236306047306139">
- <item quantity="other">%1$d laitetta liitetty</item>
- <item quantity="one">%1$d laite liitetty</item>
+ <item quantity="other">%1$d laitetta yhdistettynä</item>
+ <item quantity="one">%1$d laite yhdistettynä</item>
</plurals>
<string name="accessibility_manual_zen_more_time" msgid="5141801092071134235">"Enemmän aikaa"</string>
<string name="accessibility_manual_zen_less_time" msgid="6828877595848229965">"Vähemmän aikaa"</string>
diff --git a/packages/SettingsLib/res/values-iw/strings.xml b/packages/SettingsLib/res/values-iw/strings.xml
index fff881c..a65fc19 100644
--- a/packages/SettingsLib/res/values-iw/strings.xml
+++ b/packages/SettingsLib/res/values-iw/strings.xml
@@ -212,9 +212,9 @@
<string name="adb_wireless_settings" msgid="2295017847215680229">"ניפוי באגים אלחוטי"</string>
<string name="adb_wireless_list_empty_off" msgid="1713707973837255490">"כדי להציג את המכשירים הזמינים ולהשתמש בהם, יש להפעיל ניפוי באגים אלחוטי"</string>
<string name="adb_pair_method_qrcode_title" msgid="6982904096137468634">"התאמת מכשיר באמצעות קוד QR"</string>
- <string name="adb_pair_method_qrcode_summary" msgid="7130694277228970888">"התאמת מכשירים חדשים באמצעות סורק של קודי QR"</string>
+ <string name="adb_pair_method_qrcode_summary" msgid="7130694277228970888">"התאמת מכשירים חדשים באמצעות סורק קודי QR"</string>
<string name="adb_pair_method_code_title" msgid="1122590300445142904">"התאמת מכשיר באמצעות קוד התאמה"</string>
- <string name="adb_pair_method_code_summary" msgid="6370414511333685185">"התאמת מכשירים חדשים באמצעות קוד בן שש ספרות"</string>
+ <string name="adb_pair_method_code_summary" msgid="6370414511333685185">"התאמת מכשירים חדשים באמצעות קוד בן 6 ספרות"</string>
<string name="adb_paired_devices_title" msgid="5268997341526217362">"מכשירים מותאמים"</string>
<string name="adb_wireless_device_connected_summary" msgid="3039660790249148713">"מחובר עכשיו"</string>
<string name="adb_wireless_device_details_title" msgid="7129369670526565786">"פרטי מכשיר"</string>
@@ -226,12 +226,12 @@
<string name="adb_pairing_device_dialog_pairing_code_label" msgid="3639239786669722731">"קוד התאמה של Wi-Fi"</string>
<string name="adb_pairing_device_dialog_failed_title" msgid="3426758947882091735">"ההתאמה נכשלה"</string>
<string name="adb_pairing_device_dialog_failed_msg" msgid="6611097519661997148">"יש לוודא שהמכשיר מחובר לאותה רשת."</string>
- <string name="adb_wireless_qrcode_summary" msgid="8051414549011801917">"יש לסרוק קוד QR כדי להתאים מכשיר באמצעות Wi‑Fi"</string>
+ <string name="adb_wireless_qrcode_summary" msgid="8051414549011801917">"כדי להתאים מכשיר דרך Wi‑Fi, יש לסרוק קוד QR"</string>
<string name="adb_wireless_verifying_qrcode_text" msgid="6123192424916029207">"המכשיר בתהליך התאמה…"</string>
<string name="adb_qrcode_pairing_device_failed_msg" msgid="6936292092592914132">"התאמת המכשיר נכשלה. קוד ה-QR היה שגוי או שהמכשיר לא מחובר לאותה רשת."</string>
<string name="adb_wireless_ip_addr_preference_title" msgid="8335132107715311730">"יציאה וכתובת IP"</string>
<string name="adb_wireless_qrcode_pairing_title" msgid="1906409667944674707">"סריקת קוד QR"</string>
- <string name="adb_wireless_qrcode_pairing_description" msgid="6014121407143607851">"יש לסרוק קוד QR כדי להתאים מכשיר באמצעות Wi‑Fi"</string>
+ <string name="adb_wireless_qrcode_pairing_description" msgid="6014121407143607851">"כדי להתאים מכשיר דרך Wi‑Fi, יש לסרוק קוד QR"</string>
<string name="adb_wireless_no_network_msg" msgid="2365795244718494658">"יש להתחבר לרשת Wi-Fi"</string>
<string name="keywords_adb_wireless" msgid="6507505581882171240">"adb, ניפוי באגים, פיתוח"</string>
<string name="bugreport_in_power" msgid="8664089072534638709">"קיצור של דוח באגים"</string>
diff --git a/packages/SettingsLib/res/values-ml/strings.xml b/packages/SettingsLib/res/values-ml/strings.xml
index 3c281c8..11506a4 100644
--- a/packages/SettingsLib/res/values-ml/strings.xml
+++ b/packages/SettingsLib/res/values-ml/strings.xml
@@ -145,7 +145,7 @@
<string name="data_usage_ota" msgid="7984667793701597001">"സിസ്റ്റം അപ്ഡേറ്റുകൾ"</string>
<string name="tether_settings_title_usb" msgid="3728686573430917722">"USB ടെതറിംഗ്"</string>
<string name="tether_settings_title_wifi" msgid="4803402057533895526">"പോർട്ടബിൾ ഹോട്ട്സ്പോട്ട്"</string>
- <string name="tether_settings_title_bluetooth" msgid="916519902721399656">"ബ്ലൂടൂത്ത് ടെതറിംഗ്"</string>
+ <string name="tether_settings_title_bluetooth" msgid="916519902721399656">"Bluetooth ടെതറിംഗ്"</string>
<string name="tether_settings_title_usb_bluetooth" msgid="1727111807207577322">"ടെതറിംഗ്"</string>
<string name="tether_settings_title_all" msgid="8910259483383010470">"ടെതറിംഗും പോർട്ടബിൾ ഹോട്ട്സ്പോട്ടും"</string>
<string name="managed_user_title" msgid="449081789742645723">"എല്ലാ ഔദ്യോഗിക ആപ്സും"</string>
diff --git a/packages/SettingsLib/res/values-sq/strings.xml b/packages/SettingsLib/res/values-sq/strings.xml
index 002c7fc..9ebab4d 100644
--- a/packages/SettingsLib/res/values-sq/strings.xml
+++ b/packages/SettingsLib/res/values-sq/strings.xml
@@ -203,9 +203,9 @@
<string name="vpn_settings_not_available" msgid="2894137119965668920">"Cilësimet e VPN-së nuk ofrohen për këtë përdorues"</string>
<string name="tethering_settings_not_available" msgid="266821736434699780">"Cilësimet e ndarjes nuk ofrohen për këtë përdorues"</string>
<string name="apn_settings_not_available" msgid="1147111671403342300">"Cilësimet e \"Emrit të pikës së qasjes\" nuk mund të përdoren për këtë përdorues"</string>
- <string name="enable_adb" msgid="8072776357237289039">"Korrigjimi i USB-së"</string>
+ <string name="enable_adb" msgid="8072776357237289039">"Korrigjimi përmes USB-së"</string>
<string name="enable_adb_summary" msgid="3711526030096574316">"Korrigjo gabimet e modalitetit kur UBS-ja është e lidhur"</string>
- <string name="clear_adb_keys" msgid="3010148733140369917">"Anulo autorizimet e korrigjimeve të gabimeve të USB-së"</string>
+ <string name="clear_adb_keys" msgid="3010148733140369917">"Anulo autorizimet e korrigjimeve përmes USB-së"</string>
<string name="enable_adb_wireless" msgid="6973226350963971018">"Korrigjimi përmes Wi-Fi"</string>
<string name="enable_adb_wireless_summary" msgid="7344391423657093011">"Modaliteti i korrigjimit kur Wi‑Fi është i lidhur"</string>
<string name="adb_wireless_error" msgid="721958772149779856">"Gabim"</string>
@@ -225,7 +225,7 @@
<string name="adb_pairing_device_dialog_title" msgid="7141739231018530210">"Çifto me pajisjen"</string>
<string name="adb_pairing_device_dialog_pairing_code_label" msgid="3639239786669722731">"Kodi i çiftimit të Wi‑Fi"</string>
<string name="adb_pairing_device_dialog_failed_title" msgid="3426758947882091735">"Çiftimi ishte i pasuksesshëm"</string>
- <string name="adb_pairing_device_dialog_failed_msg" msgid="6611097519661997148">"Sigurohu që pajisja të jetë e lidhur me të njëjtin rrjet"</string>
+ <string name="adb_pairing_device_dialog_failed_msg" msgid="6611097519661997148">"Sigurohu që pajisja të jetë e lidhur me të njëjtin rrjet."</string>
<string name="adb_wireless_qrcode_summary" msgid="8051414549011801917">"Çifto pajisjen përmes Wi‑Fi duke skanuar një kod QR"</string>
<string name="adb_wireless_verifying_qrcode_text" msgid="6123192424916029207">"Po çifton pajisjen…"</string>
<string name="adb_qrcode_pairing_device_failed_msg" msgid="6936292092592914132">"Çiftimi i pajisjes dështoi. Ose kodi QR nuk ishte i saktë, ose pajisja nuk është e lidhur me të njëjtin rrjet."</string>
@@ -299,11 +299,11 @@
<string name="debug_view_attributes" msgid="3539609843984208216">"Aktivizo shikimin e inspektimit të atributeve"</string>
<string name="mobile_data_always_on_summary" msgid="1112156365594371019">"Mbaji të dhënat celulare gjithmonë aktive edhe kur Wi‑Fi është aktiv (për ndërrim të shpejtë të rrjetit)."</string>
<string name="tethering_hardware_offload_summary" msgid="7801345335142803029">"Përdor përshpejtimin e harduerit për ndarjen e lidhjes (internet) nëse është i disponueshëm"</string>
- <string name="adb_warning_title" msgid="7708653449506485728">"Të lejohet korrigjimi i USB-së?"</string>
- <string name="adb_warning_message" msgid="8145270656419669221">"Korrigjuesi i USB-së është vetëm për qëllime zhvillimore. Përdore për të kopjuar të dhëna mes kompjuterit dhe pajisjes tënde, për të instaluar aplikacione në pajisjen tënde pa asnjë njoftim si dhe për të lexuar të dhënat e ditarit."</string>
+ <string name="adb_warning_title" msgid="7708653449506485728">"Të lejohet korrigjimi përmes USB-së?"</string>
+ <string name="adb_warning_message" msgid="8145270656419669221">"Korrigjuesi përmes USB-së është vetëm për qëllime zhvillimore. Përdore për të kopjuar të dhëna mes kompjuterit dhe pajisjes tënde, për të instaluar aplikacione në pajisjen tënde pa asnjë njoftim si dhe për të lexuar të dhënat e evidencave."</string>
<string name="adbwifi_warning_title" msgid="727104571653031865">"Të lejohet korrigjimi përmes Wi-Fi?"</string>
<string name="adbwifi_warning_message" msgid="8005936574322702388">"Korrigjimin përmes Wi-Fi është vetëm për qëllime zhvillimore. Përdore për të kopjuar të dhëna mes kompjuterit dhe pajisjes sate, për të instaluar aplikacione në pajisjen tënde pa asnjë njoftim si dhe për të lexuar të dhënat e regjistrit."</string>
- <string name="adb_keys_warning_message" msgid="2968555274488101220">"Të bllokohet qasja për korrigjim të USB-së nga të gjithë kompjuterët që ke autorizuar më parë?"</string>
+ <string name="adb_keys_warning_message" msgid="2968555274488101220">"Të bllokohet qasja për korrigjim përmes USB-së nga të gjithë kompjuterët që ke autorizuar më parë?"</string>
<string name="dev_settings_warning_title" msgid="8251234890169074553">"Të lejohen cilësimet e zhvillimit?"</string>
<string name="dev_settings_warning_message" msgid="37741686486073668">"Këto cilësime janë të projektuara vetëm për përdorim në programim. Ato mund të shkaktojnë që pajisja dhe aplikacionet në të, të mos punojnë ose të veprojnë në mënyrë të gabuar."</string>
<string name="verify_apps_over_usb_title" msgid="6031809675604442636">"Verifiko apl. përmes USB-së"</string>
diff --git a/packages/SettingsLib/res/values-sw/strings.xml b/packages/SettingsLib/res/values-sw/strings.xml
index e944c64..5a3b872 100644
--- a/packages/SettingsLib/res/values-sw/strings.xml
+++ b/packages/SettingsLib/res/values-sw/strings.xml
@@ -210,7 +210,7 @@
<string name="enable_adb_wireless_summary" msgid="7344391423657093011">"Hali ya utatuzi wakati Wi-Fi imeunganishwa"</string>
<string name="adb_wireless_error" msgid="721958772149779856">"Hitilafu"</string>
<string name="adb_wireless_settings" msgid="2295017847215680229">"Utatuzi usiotumia waya"</string>
- <string name="adb_wireless_list_empty_off" msgid="1713707973837255490">"Ili kungalia na kutumia vifaa vinavyopatikana, washa utatuzi usiotumia waya"</string>
+ <string name="adb_wireless_list_empty_off" msgid="1713707973837255490">"Ili kuangalia na kutumia vifaa vinavyopatikana, washa utatuzi usiotumia waya"</string>
<string name="adb_pair_method_qrcode_title" msgid="6982904096137468634">"Oanisha kifaa ukitumia msimbo wa QR"</string>
<string name="adb_pair_method_qrcode_summary" msgid="7130694277228970888">"Oanisha vifaa vipya ukitumia kichanganuzi cha Msimbo wa QR"</string>
<string name="adb_pair_method_code_title" msgid="1122590300445142904">"Oanisha kifaa ukitumia msimbo wa kuoanisha"</string>
@@ -487,8 +487,8 @@
<string name="status_unavailable" msgid="5279036186589861608">"Hamna"</string>
<string name="wifi_status_mac_randomized" msgid="466382542497832189">"Imechagua anwani ya MAC kwa nasibu"</string>
<plurals name="wifi_tether_connected_summary" formatted="false" msgid="6317236306047306139">
- <item quantity="other">Imeunganisha vifaa %1$d</item>
- <item quantity="one">Imeunganisha kifaa %1$d</item>
+ <item quantity="other">Vifaa %1$d vimeunganishwa</item>
+ <item quantity="one">Kifaa %1$d kimeunganishwa</item>
</plurals>
<string name="accessibility_manual_zen_more_time" msgid="5141801092071134235">"Muda zaidi."</string>
<string name="accessibility_manual_zen_less_time" msgid="6828877595848229965">"Muda kidogo."</string>
diff --git a/packages/SettingsLib/res/values-th/strings.xml b/packages/SettingsLib/res/values-th/strings.xml
index 7468d04..4ba1c7a 100644
--- a/packages/SettingsLib/res/values-th/strings.xml
+++ b/packages/SettingsLib/res/values-th/strings.xml
@@ -284,7 +284,7 @@
<string name="wifi_verbose_logging_summary" msgid="4993823188807767892">"เพิ่มระดับการบันทึก Wi‑Fi แสดงต่อ SSID RSSI ในตัวเลือก Wi‑Fi"</string>
<string name="wifi_scan_throttling_summary" msgid="2577105472017362814">"ลดการเปลืองแบตเตอรี่และเพิ่มประสิทธิภาพเครือข่าย"</string>
<string name="wifi_enhanced_mac_randomization_summary" msgid="1210663439867489931">"เมื่อเปิดใช้โหมดนี้ ที่อยู่ MAC ของอุปกรณ์นี้อาจเปลี่ยนทุกครั้งที่เชื่อมต่อกับเครือข่ายที่มีการเปิดใช้การสุ่ม MAC"</string>
- <string name="wifi_metered_label" msgid="8737187690304098638">"มีการวัดปริมาณอินเทอร์เน็ต"</string>
+ <string name="wifi_metered_label" msgid="8737187690304098638">"แบบจำกัดปริมาณอินเทอร์เน็ต"</string>
<string name="wifi_unmetered_label" msgid="6174142840934095093">"ไม่มีการวัดปริมาณอินเทอร์เน็ต"</string>
<string name="select_logd_size_title" msgid="1604578195914595173">"ขนาดบัฟเฟอร์ของตัวบันทึก"</string>
<string name="select_logd_size_dialog_title" msgid="2105401994681013578">"เลือกขนาด Logger ต่อบัฟเฟอร์ไฟล์บันทึก"</string>
diff --git a/packages/SettingsLib/res/values-ur/strings.xml b/packages/SettingsLib/res/values-ur/strings.xml
index de90c9a..b14049a 100644
--- a/packages/SettingsLib/res/values-ur/strings.xml
+++ b/packages/SettingsLib/res/values-ur/strings.xml
@@ -31,7 +31,7 @@
<string name="wifi_disabled_password_failure" msgid="6892387079613226738">"توثیق کا مسئلہ"</string>
<string name="wifi_cant_connect" msgid="5718417542623056783">"منسلک نہیں ہو سکتا ہے"</string>
<string name="wifi_cant_connect_to_ap" msgid="3099667989279700135">"\'<xliff:g id="AP_NAME">%1$s</xliff:g>\' سے منسلک نہیں ہو سکتا ہے"</string>
- <string name="wifi_check_password_try_again" msgid="8817789642851605628">"پاسورڈ چیک کر کے دوبارہ کوشش کریں"</string>
+ <string name="wifi_check_password_try_again" msgid="8817789642851605628">"پاس ورڈ چیک کر کے دوبارہ کوشش کریں"</string>
<string name="wifi_not_in_range" msgid="1541760821805777772">"رینج میں نہیں ہے"</string>
<string name="wifi_no_internet_no_reconnect" msgid="821591791066497347">"خودکار طور پر منسلک نہیں ہو گا"</string>
<string name="wifi_no_internet" msgid="1774198889176926299">"انٹرنیٹ تک کوئی رسائی نہیں"</string>
diff --git a/packages/SettingsLib/res/values-uz/strings.xml b/packages/SettingsLib/res/values-uz/strings.xml
index 2325efd..1347cdd 100644
--- a/packages/SettingsLib/res/values-uz/strings.xml
+++ b/packages/SettingsLib/res/values-uz/strings.xml
@@ -423,12 +423,12 @@
<string name="power_remaining_settings_home_page" msgid="4885165789445462557">"<xliff:g id="PERCENTAGE">%1$s</xliff:g> – <xliff:g id="TIME_STRING">%2$s</xliff:g>"</string>
<string name="power_remaining_duration_only" msgid="8264199158671531431">"Taxminan <xliff:g id="TIME_REMAINING">%1$s</xliff:g> qoldi"</string>
<string name="power_discharging_duration" msgid="1076561255466053220">"Taxminan <xliff:g id="TIME_REMAINING">%1$s</xliff:g> qoldi (<xliff:g id="LEVEL">%2$s</xliff:g>)"</string>
- <string name="power_remaining_duration_only_enhanced" msgid="2527842780666073218">"Joriy holatda taxminan <xliff:g id="TIME_REMAINING">%1$s</xliff:g> qoldi"</string>
- <string name="power_discharging_duration_enhanced" msgid="1800465736237672323">"Joriy holatda taxminan <xliff:g id="TIME_REMAINING">%1$s</xliff:g> qoldi (<xliff:g id="LEVEL">%2$s</xliff:g>)"</string>
+ <string name="power_remaining_duration_only_enhanced" msgid="2527842780666073218">"Quvvati tugashiga taxminan <xliff:g id="TIME_REMAINING">%1$s</xliff:g> qoldi"</string>
+ <string name="power_discharging_duration_enhanced" msgid="1800465736237672323">"Quvvati tugahsiga taxminan <xliff:g id="TIME_REMAINING">%1$s</xliff:g> qoldi (<xliff:g id="LEVEL">%2$s</xliff:g>)"</string>
<!-- no translation found for power_remaining_duration_only_short (7438846066602840588) -->
<skip />
- <string name="power_discharge_by_enhanced" msgid="563438403581662942">"Joriy holatda taxminan <xliff:g id="TIME">%1$s</xliff:g> gacha davom etadi (<xliff:g id="LEVEL">%2$s</xliff:g>)"</string>
- <string name="power_discharge_by_only_enhanced" msgid="3268796172652988877">"Joriy holatda taxminan <xliff:g id="TIME">%1$s</xliff:g> gacha davom etadi"</string>
+ <string name="power_discharge_by_enhanced" msgid="563438403581662942">"Shunday ishlatishda taxminan <xliff:g id="TIME">%1$s</xliff:g> gacha yetadi (<xliff:g id="LEVEL">%2$s</xliff:g>)"</string>
+ <string name="power_discharge_by_only_enhanced" msgid="3268796172652988877">"Quvvati tugashiga taxminan <xliff:g id="TIME">%1$s</xliff:g> qoldi"</string>
<string name="power_discharge_by" msgid="4113180890060388350">"Taxminan <xliff:g id="TIME">%1$s</xliff:g> gacha yetadi (<xliff:g id="LEVEL">%2$s</xliff:g>)"</string>
<string name="power_discharge_by_only" msgid="92545648425937000">"Taxminan <xliff:g id="TIME">%1$s</xliff:g> gacha yetadi"</string>
<string name="power_discharge_by_only_short" msgid="5883041507426914446">"<xliff:g id="TIME">%1$s</xliff:g> gacha"</string>
@@ -510,7 +510,7 @@
<string name="media_transfer_this_device_name" msgid="2716555073132169240">"Telefon karnayi"</string>
<string name="profile_connect_timeout_subtext" msgid="4043408193005851761">"Ulanishda muammo yuz berdi. Qurilmani oʻchiring va yoqing"</string>
<string name="media_transfer_wired_device_name" msgid="4447880899964056007">"Simli audio qurilma"</string>
- <string name="help_label" msgid="3528360748637781274">"Yordam va fikr-mulohaza"</string>
+ <string name="help_label" msgid="3528360748637781274">"Yordam/fikr-mulohaza"</string>
<string name="storage_category" msgid="2287342585424631813">"Xotira"</string>
<string name="shared_data_title" msgid="1017034836800864953">"Umumiy maʼlumotlar"</string>
<string name="shared_data_summary" msgid="5516326713822885652">"Umumiy maʼlumotlarni ochish va oʻzgartirish"</string>
diff --git a/packages/SettingsLib/src/com/android/settingslib/connectivity/OWNERS b/packages/SettingsLib/src/com/android/settingslib/connectivity/OWNERS
new file mode 100644
index 0000000..e7a20b3
--- /dev/null
+++ b/packages/SettingsLib/src/com/android/settingslib/connectivity/OWNERS
@@ -0,0 +1,8 @@
+# Default reviewers for this and subdirectories.
+andychou@google.com
+arcwang@google.com
+goldmanj@google.com
+qal@google.com
+wengsu@google.com
+
+# Emergency approvers in case the above are not available
diff --git a/packages/SettingsProvider/res/values-iw/strings.xml b/packages/SettingsProvider/res/values-iw/strings.xml
index 8d8594d..10765fe 100644
--- a/packages/SettingsProvider/res/values-iw/strings.xml
+++ b/packages/SettingsProvider/res/values-iw/strings.xml
@@ -20,6 +20,6 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="app_label" msgid="4567566098528588863">"אחסון הגדרות"</string>
- <string name="wifi_softap_config_change" msgid="5688373762357941645">"ההגדרות של הנקודה לשיתוף אינטרנט השתנו"</string>
+ <string name="wifi_softap_config_change" msgid="5688373762357941645">"הגדרות נקודת האינטרנט (hotspot) השתנו"</string>
<string name="wifi_softap_config_change_summary" msgid="8946397286141531087">"יש להקיש להצגת פרטים"</string>
</resources>
diff --git a/packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java b/packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java
index e90bb36..5ecb1710 100644
--- a/packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java
+++ b/packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java
@@ -300,6 +300,7 @@
Settings.Global.HDMI_SYSTEM_AUDIO_CONTROL_ENABLED,
Settings.Global.HEADS_UP_NOTIFICATIONS_ENABLED,
Settings.Global.HIDDEN_API_POLICY,
+ Settings.Global.FORCE_NON_DEBUGGABLE_FINAL_BUILD_FOR_COMPAT,
Settings.Global.HIDE_ERROR_DIALOGS,
Settings.Global.HTTP_PROXY,
HYBRID_SYSUI_BATTERY_WARNING_FLAGS,
diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml
index 0fdb282..88eef6a 100644
--- a/packages/Shell/AndroidManifest.xml
+++ b/packages/Shell/AndroidManifest.xml
@@ -291,6 +291,9 @@
<uses-permission android:name="android.permission.UPGRADE_RUNTIME_PERMISSIONS" />
<!-- Permission needed to read wifi network credentials for CtsNetTestCases -->
+ <uses-permission android:name="android.permission.NETWORK_AIRPLANE_MODE" />
+
+ <!-- Permission needed to read wifi network credentials for CtsNetTestCases -->
<uses-permission android:name="android.permission.READ_WIFI_CREDENTIAL" />
<!-- Permission needed to use wifi usability API's for CtsNetTestCases -->
@@ -337,6 +340,10 @@
<!-- Permission needed for CTS test - CtsHdmiCecHostTestCases -->
<uses-permission android:name="android.permission.HDMI_CEC" />
+ <!-- Permission needed for CTS test - WifiManagerTest -->
+ <uses-permission android:name="android.permission.WIFI_ACCESS_COEX_UNSAFE_CHANNELS" />
+ <uses-permission android:name="android.permission.WIFI_UPDATE_COEX_UNSAFE_CHANNELS" />
+
<application android:label="@string/app_label"
android:theme="@android:style/Theme.DeviceDefault.DayNight"
android:defaultToDeviceProtectedStorage="true"
diff --git a/packages/Shell/src/com/android/shell/BugreportProgressService.java b/packages/Shell/src/com/android/shell/BugreportProgressService.java
index 63b9bb3..7b4cf0f 100644
--- a/packages/Shell/src/com/android/shell/BugreportProgressService.java
+++ b/packages/Shell/src/com/android/shell/BugreportProgressService.java
@@ -47,6 +47,7 @@
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.AsyncTask;
+import android.os.Binder;
import android.os.BugreportManager;
import android.os.BugreportManager.BugreportCallback;
import android.os.BugreportManager.BugreportCallback.BugreportErrorCode;
@@ -186,7 +187,7 @@
static final int SCREENSHOT_DELAY_SECONDS = 3;
/** System property where dumpstate stores last triggered bugreport id */
- private static final String PROPERTY_LAST_ID = "dumpstate.last_id";
+ static final String PROPERTY_LAST_ID = "dumpstate.last_id";
private static final String BUGREPORT_SERVICE = "bugreport";
@@ -233,7 +234,7 @@
private File mBugreportsDir;
- private BugreportManager mBugreportManager;
+ @VisibleForTesting BugreportManager mBugreportManager;
/**
* id of the notification used to set service on foreground.
@@ -248,6 +249,11 @@
*/
private boolean mTakingScreenshot;
+ /**
+ * The delay timeout before taking a screenshot.
+ */
+ @VisibleForTesting int mScreenshotDelaySec = SCREENSHOT_DELAY_SECONDS;
+
@GuardedBy("sNotificationBundle")
private static final Bundle sNotificationBundle = new Bundle();
@@ -282,6 +288,7 @@
mContext.getString(R.string.bugreport_notification_channel),
isTv(this) ? NotificationManager.IMPORTANCE_DEFAULT
: NotificationManager.IMPORTANCE_LOW));
+ mBugreportManager = mContext.getSystemService(BugreportManager.class);
}
@Override
@@ -305,7 +312,7 @@
@Override
public IBinder onBind(Intent intent) {
- return null;
+ return new LocalBinder();
}
@Override
@@ -373,8 +380,14 @@
public void onFinished() {
mInfo.renameBugreportFile();
mInfo.renameScreenshots();
+ if (mInfo.bugreportFile.length() == 0) {
+ Log.e(TAG, "Bugreport file empty. File path = " + mInfo.bugreportFile);
+ onError(BUGREPORT_ERROR_RUNTIME);
+ return;
+ }
synchronized (mLock) {
sendBugreportFinishedBroadcastLocked();
+ mMainThreadHandler.post(() -> mInfoDialog.onBugreportFinished(mInfo));
}
}
@@ -400,10 +413,6 @@
@GuardedBy("mLock")
private void sendBugreportFinishedBroadcastLocked() {
final String bugreportFilePath = mInfo.bugreportFile.getAbsolutePath();
- if (mInfo.bugreportFile.length() == 0) {
- Log.e(TAG, "Bugreport file empty. File path = " + bugreportFilePath);
- return;
- }
if (mInfo.type == BugreportParams.BUGREPORT_MODE_REMOTE) {
sendRemoteBugreportFinishedBroadcast(mContext, bugreportFilePath,
mInfo.bugreportFile);
@@ -609,12 +618,21 @@
BugreportInfo info = new BugreportInfo(mContext, baseName, name,
shareTitle, shareDescription, bugreportType, mBugreportsDir);
+ synchronized (mLock) {
+ if (info.bugreportFile.exists()) {
+ Log.e(TAG, "Failed to start bugreport generation, the requested bugreport file "
+ + info.bugreportFile + " already exists");
+ return;
+ }
+ info.createBugreportFile();
+ }
ParcelFileDescriptor bugreportFd = info.getBugreportFd();
if (bugreportFd == null) {
Log.e(TAG, "Failed to start bugreport generation as "
+ " bugreport parcel file descriptor is null.");
return;
}
+ info.createScreenshotFile(mBugreportsDir);
ParcelFileDescriptor screenshotFd = null;
if (isDefaultScreenshotRequired(bugreportType, /* hasScreenshotButton= */ !mIsTv)) {
screenshotFd = info.getDefaultScreenshotFd();
@@ -627,8 +645,6 @@
}
}
- mBugreportManager = (BugreportManager) mContext.getSystemService(
- Context.BUGREPORT_SERVICE);
final Executor executor = ActivityThread.currentActivityThread().getExecutor();
Log.i(TAG, "bugreport type = " + bugreportType
@@ -888,12 +904,12 @@
collapseNotificationBar();
final String msg = mContext.getResources()
.getQuantityString(com.android.internal.R.plurals.bugreport_countdown,
- SCREENSHOT_DELAY_SECONDS, SCREENSHOT_DELAY_SECONDS);
+ mScreenshotDelaySec, mScreenshotDelaySec);
Log.i(TAG, msg);
// Show a toast just once, otherwise it might be captured in the screenshot.
Toast.makeText(mContext, msg, Toast.LENGTH_SHORT).show();
- takeScreenshot(id, SCREENSHOT_DELAY_SECONDS);
+ takeScreenshot(id, mScreenshotDelaySec);
}
/**
@@ -1248,6 +1264,7 @@
.setContentText(content)
.setContentIntent(PendingIntent.getService(mContext, info.id, shareIntent,
PendingIntent.FLAG_UPDATE_CURRENT))
+ .setOnlyAlertOnce(false)
.setDeleteIntent(newCancelIntent(mContext, info));
if (!TextUtils.isEmpty(info.getName())) {
@@ -1287,6 +1304,7 @@
.setLocalOnly(true)
.setColor(context.getColor(
com.android.internal.R.color.system_notification_accent_color))
+ .setOnlyAlertOnce(true)
.extend(new Notification.TvExtender());
}
@@ -1621,6 +1639,16 @@
}
/**
+ * A local binder with interface to return an instance of BugreportProgressService for the
+ * purpose of testing.
+ */
+ final class LocalBinder extends Binder {
+ @VisibleForTesting BugreportProgressService getService() {
+ return BugreportProgressService.this;
+ }
+ }
+
+ /**
* Helper class encapsulating the UI elements and logic used to display a dialog where user
* can change the details of a bugreport.
*/
@@ -1749,6 +1777,22 @@
}
}
+ /**
+ * Notifies the dialog that the bugreport has finished so it disables the {@code name}
+ * field.
+ * <p>Once the bugreport is finished dumpstate has already generated the final files, so
+ * changing the name would have no effect.
+ */
+ void onBugreportFinished(BugreportInfo info) {
+ if (mId == info.id && mInfoName != null) {
+ mInfoName.setEnabled(false);
+ mInfoName.setText(null);
+ if (!TextUtils.isEmpty(info.getName())) {
+ mInfoName.setText(info.getName());
+ }
+ }
+ }
+
void cancel() {
if (mDialog != null) {
mDialog.cancel();
@@ -1883,12 +1927,10 @@
this.shareDescription = shareDescription == null ? "" : shareDescription;
this.type = type;
this.baseName = baseName;
- createBugreportFile(bugreportsDir);
- createScreenshotFile(bugreportsDir);
+ this.bugreportFile = new File(bugreportsDir, getFileName(this, ".zip"));
}
- void createBugreportFile(File bugreportsDir) {
- bugreportFile = new File(bugreportsDir, getFileName(this, ".zip"));
+ void createBugreportFile() {
createReadWriteFile(bugreportFile);
}
@@ -1993,12 +2035,21 @@
Log.i(TAG, "Deleting empty bugreport file: " + bugreportFile);
bugreportFile.delete();
}
- for (File file : screenshotFiles) {
- if (file.length() == 0) {
+ deleteEmptyScreenshots();
+ }
+
+ /**
+ * Deletes empty screenshot files.
+ */
+ private void deleteEmptyScreenshots() {
+ screenshotFiles.removeIf(file -> {
+ final long length = file.length();
+ if (length == 0) {
Log.i(TAG, "Deleting empty screenshot file: " + file);
file.delete();
}
- }
+ return length == 0;
+ });
}
/**
@@ -2006,7 +2057,8 @@
* {@code initialName} if user has changed it.
*/
void renameScreenshots() {
- if (TextUtils.isEmpty(name)) {
+ deleteEmptyScreenshots();
+ if (TextUtils.isEmpty(name) || screenshotFiles.isEmpty()) {
return;
}
final List<File> renamedFiles = new ArrayList<>(screenshotFiles.size());
@@ -2025,7 +2077,7 @@
if (newFile.length() > 0) {
renamedFiles.add(newFile);
} else if (newFile.delete()) {
- Log.d(TAG, "screenshot file: " + newFile + "deleted successfully.");
+ Log.d(TAG, "screenshot file: " + newFile + " deleted successfully.");
}
}
screenshotFiles = renamedFiles;
@@ -2094,8 +2146,10 @@
name = in.readString();
initialName = in.readString();
title = in.readString();
+ shareTitle = in.readString();
description = in.readString();
progress.set(in.readInt());
+ lastProgress.set(in.readInt());
lastUpdate.set(in.readLong());
formattedLastUpdate = in.readString();
bugreportFile = readFile(in);
@@ -2106,9 +2160,10 @@
}
finished.set(in.readInt() == 1);
+ addingDetailsToZip = in.readBoolean();
+ addedDetailsToZip = in.readBoolean();
screenshotCounter = in.readInt();
shareDescription = in.readString();
- shareTitle = in.readString();
type = in.readInt();
}
@@ -2119,8 +2174,10 @@
dest.writeString(name);
dest.writeString(initialName);
dest.writeString(title);
+ dest.writeString(shareTitle);
dest.writeString(description);
dest.writeInt(progress.intValue());
+ dest.writeInt(lastProgress.intValue());
dest.writeLong(lastUpdate.longValue());
dest.writeString(getFormattedLastUpdate());
writeFile(dest, bugreportFile);
@@ -2131,9 +2188,10 @@
}
dest.writeInt(finished.get() ? 1 : 0);
+ dest.writeBoolean(addingDetailsToZip);
+ dest.writeBoolean(addedDetailsToZip);
dest.writeInt(screenshotCounter);
dest.writeString(shareDescription);
- dest.writeString(shareTitle);
dest.writeInt(type);
}
diff --git a/packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java b/packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java
index b8cfa1e..9476912 100644
--- a/packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java
+++ b/packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java
@@ -25,19 +25,23 @@
import static com.android.shell.BugreportPrefs.STATE_UNKNOWN;
import static com.android.shell.BugreportPrefs.getWarningState;
import static com.android.shell.BugreportPrefs.setWarningState;
-import static com.android.shell.BugreportProgressService.EXTRA_BUGREPORT;
-import static com.android.shell.BugreportProgressService.EXTRA_ID;
-import static com.android.shell.BugreportProgressService.EXTRA_NAME;
-import static com.android.shell.BugreportProgressService.EXTRA_SCREENSHOT;
-import static com.android.shell.BugreportProgressService.INTENT_BUGREPORT_FINISHED;
+import static com.android.shell.BugreportProgressService.INTENT_BUGREPORT_REQUESTED;
+import static com.android.shell.BugreportProgressService.PROPERTY_LAST_ID;
import static com.android.shell.BugreportProgressService.SCREENSHOT_DELAY_SECONDS;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.anyBoolean;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.timeout;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
import android.app.ActivityManager;
import android.app.ActivityManager.RunningServiceInfo;
@@ -46,13 +50,18 @@
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
+import android.os.BugreportManager;
import android.os.Build;
import android.os.Bundle;
+import android.os.IDumpstate;
+import android.os.IDumpstateListener;
+import android.os.ParcelFileDescriptor;
import android.os.SystemClock;
import android.os.SystemProperties;
import android.service.notification.StatusBarNotification;
import android.support.test.uiautomator.UiDevice;
import android.support.test.uiautomator.UiObject;
+import android.support.test.uiautomator.UiObject2;
import android.support.test.uiautomator.UiObjectNotFoundException;
import android.text.TextUtils;
import android.text.format.DateUtils;
@@ -60,10 +69,12 @@
import androidx.test.InstrumentationRegistry;
import androidx.test.filters.LargeTest;
+import androidx.test.rule.ServiceTestRule;
import androidx.test.runner.AndroidJUnit4;
import com.android.shell.ActionSendMultipleConsumerActivity.CustomActionSendMultipleListener;
+import libcore.io.IoUtils;
import libcore.io.Streams;
import org.junit.After;
@@ -72,17 +83,19 @@
import org.junit.Test;
import org.junit.rules.TestName;
import org.junit.runner.RunWith;
+import org.mockito.ArgumentCaptor;
+import org.mockito.Mock;
+import org.mockito.Mockito;
+import org.mockito.MockitoAnnotations;
import java.io.BufferedOutputStream;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
-import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
-import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.SortedSet;
@@ -92,10 +105,10 @@
import java.util.zip.ZipOutputStream;
/**
- * Integration tests for {@link BugreportReceiver}.
+ * Integration tests for {@link BugreportProgressService}.
* <p>
- * These tests don't mock any component and rely on external UI components (like the notification
- * bar and activity chooser), which can make them unreliable and slow.
+ * These tests rely on external UI components (like the notificatio bar and activity chooser),
+ * which can make them unreliable and slow.
* <p>
* The general workflow is:
* <ul>
@@ -115,63 +128,48 @@
// Timeout for UI operations, in milliseconds.
private static final int TIMEOUT = (int) (5 * DateUtils.SECOND_IN_MILLIS);
+ // The default timeout is too short to verify the notification button state. Using a longer
+ // timeout in the tests.
+ private static final int SCREENSHOT_DELAY_SECONDS = 5;
+
// Timeout for when waiting for a screenshot to finish.
private static final int SAFE_SCREENSHOT_DELAY = SCREENSHOT_DELAY_SECONDS + 10;
- private static final String BUGREPORTS_DIR = "bugreports";
private static final String BUGREPORT_FILE = "test_bugreport.txt";
- private static final String ZIP_FILE = "test_bugreport.zip";
- private static final String ZIP_FILE2 = "test_bugreport2.zip";
private static final String SCREENSHOT_FILE = "test_screenshot.png";
-
private static final String BUGREPORT_CONTENT = "Dump, might as well dump!\n";
private static final String SCREENSHOT_CONTENT = "A picture is worth a thousand words!\n";
- private static final int PID = 42;
- private static final int PID2 = 24;
- private static final int ID = 108;
- private static final int ID2 = 801;
- private static final String PROGRESS_PROPERTY = "dumpstate." + PID + ".progress";
- private static final String MAX_PROPERTY = "dumpstate." + PID + ".max";
- private static final String NAME_PROPERTY = "dumpstate." + PID + ".name";
private static final String NAME = "BUG, Y U NO REPORT?";
- private static final String NAME2 = "A bugreport's life";
private static final String NEW_NAME = "Bug_Forrest_Bug";
- private static final String NEW_NAME2 = "BugsyReportsy";
private static final String TITLE = "Wimbugdom Champion 2015";
- private static final String TITLE2 = "Master of the Universe";
- private static final String DESCRIPTION = "One's description...";
- private static final String DESCRIPTION2 = "...is another's treasure.";
- // TODO(b/143130523): Fix (update) tests and add to presubmit
- private static final String EXTRA_MAX = "android.intent.extra.MAX";
- private static final String EXTRA_PID = "android.intent.extra.PID";
- private static final String INTENT_BUGREPORT_STARTED =
- "com.android.internal.intent.action.BUGREPORT_STARTED";
private static final String NO_DESCRIPTION = null;
private static final String NO_NAME = null;
private static final String NO_SCREENSHOT = null;
private static final String NO_TITLE = null;
- private static final int NO_ID = 0;
- private static final boolean RENAMED_SCREENSHOTS = true;
- private static final boolean DIDNT_RENAME_SCREENSHOTS = false;
private String mDescription;
-
- private String mPlainTextPath;
- private String mZipPath;
- private String mZipPath2;
- private String mScreenshotPath;
+ private String mProgressTitle;
+ private int mBugreportId;
private Context mContext;
private UiBot mUiBot;
private CustomActionSendMultipleListener mListener;
+ private BugreportProgressService mService;
+ private IDumpstateListener mIDumpstateListener;
+ private ParcelFileDescriptor mBugreportFd;
+ private ParcelFileDescriptor mScreenshotFd;
+
+ @Mock private IDumpstate mMockIDumpstate;
@Rule public TestName mName = new TestName();
+ @Rule public ServiceTestRule mServiceRule = new ServiceTestRule();
@Before
public void setUp() throws Exception {
Log.i(TAG, getName() + ".setup()");
+ MockitoAnnotations.initMocks(this);
Instrumentation instrumentation = getInstrumentation();
mContext = instrumentation.getTargetContext();
mUiBot = new UiBot(instrumentation, TIMEOUT);
@@ -179,15 +177,8 @@
cancelExistingNotifications();
- mPlainTextPath = getPath(BUGREPORT_FILE);
- mZipPath = getPath(ZIP_FILE);
- mZipPath2 = getPath(ZIP_FILE2);
- mScreenshotPath = getPath(SCREENSHOT_FILE);
- createTextFile(mPlainTextPath, BUGREPORT_CONTENT);
- createTextFile(mScreenshotPath, SCREENSHOT_CONTENT);
- createZipFile(mZipPath, BUGREPORT_FILE, BUGREPORT_CONTENT);
- createZipFile(mZipPath2, BUGREPORT_FILE, BUGREPORT_CONTENT);
-
+ mBugreportId = getBugreportId();
+ mProgressTitle = getBugreportInProgress(mBugreportId);
// Creates a multi-line description.
StringBuilder sb = new StringBuilder();
for (int i = 1; i <= 20; i++) {
@@ -195,6 +186,22 @@
}
mDescription = sb.toString();
+ // Mocks BugreportManager and updates tests value to the service
+ mService = ((BugreportProgressService.LocalBinder) mServiceRule.bindService(
+ new Intent(mContext, BugreportProgressService.class))).getService();
+ mService.mBugreportManager = new BugreportManager(mContext, mMockIDumpstate);
+ mService.mScreenshotDelaySec = SCREENSHOT_DELAY_SECONDS;
+ // Dup the fds which are passing to startBugreport function.
+ Mockito.doAnswer(invocation -> {
+ final boolean isScreenshotRequested = invocation.getArgument(6);
+ if (isScreenshotRequested) {
+ mScreenshotFd = ParcelFileDescriptor.dup(invocation.getArgument(3));
+ }
+ mBugreportFd = ParcelFileDescriptor.dup(invocation.getArgument(2));
+ return null;
+ }).when(mMockIDumpstate).startBugreport(anyInt(), any(), any(), any(), anyInt(), any(),
+ anyBoolean());
+
setWarningState(mContext, STATE_HIDE);
mUiBot.turnScreenOn();
@@ -203,6 +210,13 @@
@After
public void tearDown() throws Exception {
Log.i(TAG, getName() + ".tearDown()");
+ if (mBugreportFd != null) {
+ IoUtils.closeQuietly(mBugreportFd);
+ }
+ if (mScreenshotFd != null) {
+ IoUtils.closeQuietly(mScreenshotFd);
+ }
+ mContext.sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
try {
cancelExistingNotifications();
} finally {
@@ -219,131 +233,90 @@
*/
@Test
public void testProgress() throws Exception {
- resetProperties();
- sendBugreportStarted(1000);
+ sendBugreportStarted();
waitForScreenshotButtonEnabled(true);
+ assertProgressNotification(mProgressTitle, 0f);
- assertProgressNotification(NAME, 0f);
+ mIDumpstateListener.onProgress(10);
+ assertProgressNotification(mProgressTitle, 10);
- SystemProperties.set(PROGRESS_PROPERTY, "108");
- assertProgressNotification(NAME, 10.80f);
-
- assertProgressNotification(NAME, 50.00f);
-
- SystemProperties.set(PROGRESS_PROPERTY, "950");
- assertProgressNotification(NAME, 95.00f);
-
- // Make sure progress never goes back...
- SystemProperties.set(MAX_PROPERTY, "2000");
- assertProgressNotification(NAME, 95.00f);
-
- SystemProperties.set(PROGRESS_PROPERTY, "1000");
- assertProgressNotification(NAME, 95.00f);
-
- // ...only forward...
- SystemProperties.set(PROGRESS_PROPERTY, "1902");
- assertProgressNotification(NAME, 95.10f);
-
- SystemProperties.set(PROGRESS_PROPERTY, "1960");
- assertProgressNotification(NAME, 98.00f);
+ mIDumpstateListener.onProgress(95);
+ assertProgressNotification(mProgressTitle, 95.00f);
// ...but never more than the capped value.
- SystemProperties.set(PROGRESS_PROPERTY, "2000");
- assertProgressNotification(NAME, 99.00f);
+ mIDumpstateListener.onProgress(200);
+ assertProgressNotification(mProgressTitle, 99);
- SystemProperties.set(PROGRESS_PROPERTY, "3000");
- assertProgressNotification(NAME, 99.00f);
+ mIDumpstateListener.onProgress(300);
+ assertProgressNotification(mProgressTitle, 99);
- Bundle extras =
- sendBugreportFinishedAndGetSharedIntent(ID, mPlainTextPath, mScreenshotPath);
- assertActionSendMultiple(extras, BUGREPORT_CONTENT, SCREENSHOT_CONTENT, ID, PID, ZIP_FILE,
- NAME, NO_TITLE, NO_DESCRIPTION, 0, RENAMED_SCREENSHOTS);
+ Bundle extras = sendBugreportFinishedAndGetSharedIntent(mBugreportId);
+ assertActionSendMultiple(extras);
assertServiceNotRunning();
}
@Test
public void testProgress_cancel() throws Exception {
- resetProperties();
- sendBugreportStarted(1000);
+ sendBugreportStarted();
waitForScreenshotButtonEnabled(true);
- final NumberFormat nf = NumberFormat.getPercentInstance();
- nf.setMinimumFractionDigits(2);
- nf.setMaximumFractionDigits(2);
+ assertProgressNotification(mProgressTitle, 00.00f);
- assertProgressNotification(NAME, 00.00f);
+ cancelFromNotification(mProgressTitle);
- cancelFromNotification();
-
- waitForService(false);
+ assertServiceNotRunning();
}
@Test
public void testProgress_takeExtraScreenshot() throws Exception {
- resetProperties();
- sendBugreportStarted(1000);
+ sendBugreportStarted();
waitForScreenshotButtonEnabled(true);
takeScreenshot();
assertScreenshotButtonEnabled(false);
waitForScreenshotButtonEnabled(true);
- sendBugreportFinished(ID, mPlainTextPath, mScreenshotPath);
-
- Bundle extras = acceptBugreportAndGetSharedIntent(ID);
- assertActionSendMultiple(extras, BUGREPORT_CONTENT, SCREENSHOT_CONTENT, ID, PID, ZIP_FILE,
- NAME, NO_TITLE, NO_DESCRIPTION, 1, RENAMED_SCREENSHOTS);
+ Bundle extras = sendBugreportFinishedAndGetSharedIntent(mBugreportId);
+ assertActionSendMultiple(extras, NO_NAME, NO_TITLE, NO_DESCRIPTION, 1);
assertServiceNotRunning();
}
@Test
public void testScreenshotFinishesAfterBugreport() throws Exception {
- resetProperties();
-
- sendBugreportStarted(1000);
+ sendBugreportStarted();
waitForScreenshotButtonEnabled(true);
takeScreenshot();
- sendBugreportFinished(ID, mPlainTextPath, NO_SCREENSHOT);
- waitShareNotification(ID);
+ sendBugreportFinished();
+ waitShareNotification(mBugreportId);
// There's no indication in the UI about the screenshot finish, so just sleep like a baby...
sleep(SAFE_SCREENSHOT_DELAY * DateUtils.SECOND_IN_MILLIS);
- Bundle extras = acceptBugreportAndGetSharedIntent(ID);
- assertActionSendMultiple(extras, BUGREPORT_CONTENT, NO_SCREENSHOT, ID, PID, ZIP_FILE,
- NAME, NO_TITLE, NO_DESCRIPTION, 1, RENAMED_SCREENSHOTS);
+ Bundle extras = acceptBugreportAndGetSharedIntent(mBugreportId);
+ assertActionSendMultiple(extras, NO_NAME, NO_TITLE, NO_DESCRIPTION, 1);
assertServiceNotRunning();
}
@Test
public void testProgress_changeDetailsInvalidInput() throws Exception {
- resetProperties();
- sendBugreportStarted(1000);
+ sendBugreportStarted();
waitForScreenshotButtonEnabled(true);
- DetailsUi detailsUi = new DetailsUi(mUiBot, ID, NAME);
+ DetailsUi detailsUi = new DetailsUi(mBugreportId);
- // Check initial name.
- detailsUi.assertName(NAME);
-
- // Change name - it should have changed system property once focus is changed.
+ // Change name
detailsUi.focusOnName();
detailsUi.nameField.setText(NEW_NAME);
detailsUi.focusAwayFromName();
- assertPropertyValue(NAME_PROPERTY, NEW_NAME);
-
- // Cancel the dialog to make sure property was restored.
- detailsUi.clickCancel();
- assertPropertyValue(NAME_PROPERTY, NAME);
+ detailsUi.clickOk();
// Now try to set an invalid name.
- detailsUi.reOpen(NAME);
+ detailsUi.reOpen(NEW_NAME);
detailsUi.nameField.setText("/etc/passwd");
detailsUi.clickOk();
- assertPropertyValue(NAME_PROPERTY, "_etc_passwd");
// Finally, make the real changes.
detailsUi.reOpen("_etc_passwd");
@@ -353,27 +326,20 @@
detailsUi.clickOk();
- assertPropertyValue(NAME_PROPERTY, NEW_NAME);
assertProgressNotification(NEW_NAME, 00.00f);
- Bundle extras = sendBugreportFinishedAndGetSharedIntent(ID, mPlainTextPath,
- mScreenshotPath, TITLE);
- assertActionSendMultiple(extras, BUGREPORT_CONTENT, SCREENSHOT_CONTENT, ID, PID, TITLE,
- NEW_NAME, TITLE, mDescription, 0, RENAMED_SCREENSHOTS);
+ Bundle extras = sendBugreportFinishedAndGetSharedIntent(TITLE);
+ assertActionSendMultiple(extras, NEW_NAME, TITLE, mDescription, 0);
assertServiceNotRunning();
}
@Test
public void testProgress_cancelBugClosesDetailsDialog() throws Exception {
- resetProperties();
- sendBugreportStarted(1000);
+ sendBugreportStarted();
waitForScreenshotButtonEnabled(true);
- DetailsUi detailsUi = new DetailsUi(mUiBot, ID, NAME);
- detailsUi.assertName(NAME); // Sanity check
-
- cancelFromNotification();
+ cancelFromNotification(mProgressTitle);
mUiBot.collapseStatusBar();
assertDetailsUiClosed();
@@ -381,40 +347,24 @@
}
@Test
- public void testProgress_changeDetailsPlainBugreport() throws Exception {
- changeDetailsTest(true);
- }
-
- @Test
- public void testProgress_changeDetailsZippedBugreport() throws Exception {
- changeDetailsTest(false);
- }
-
- private void changeDetailsTest(boolean plainText) throws Exception {
- resetProperties();
- sendBugreportStarted(1000);
+ public void testProgress_changeDetailsTest() throws Exception {
+ sendBugreportStarted();
waitForScreenshotButtonEnabled(true);
- DetailsUi detailsUi = new DetailsUi(mUiBot, ID, NAME);
-
- // Check initial name.
- detailsUi.assertName(NAME);
+ DetailsUi detailsUi = new DetailsUi(mBugreportId);
// Change fields.
- detailsUi.reOpen(NAME);
+ detailsUi.reOpen(mProgressTitle);
detailsUi.nameField.setText(NEW_NAME);
detailsUi.titleField.setText(TITLE);
detailsUi.descField.setText(mDescription);
detailsUi.clickOk();
- assertPropertyValue(NAME_PROPERTY, NEW_NAME);
assertProgressNotification(NEW_NAME, 00.00f);
- Bundle extras = sendBugreportFinishedAndGetSharedIntent(ID,
- plainText? mPlainTextPath : mZipPath, mScreenshotPath, TITLE);
- assertActionSendMultiple(extras, BUGREPORT_CONTENT, SCREENSHOT_CONTENT, ID, PID, TITLE,
- NEW_NAME, TITLE, mDescription, 0, RENAMED_SCREENSHOTS);
+ Bundle extras = sendBugreportFinishedAndGetSharedIntent(TITLE);
+ assertActionSendMultiple(extras, NEW_NAME, TITLE, mDescription, 0);
assertServiceNotRunning();
}
@@ -430,60 +380,18 @@
}
private void changeJustDetailsTest(boolean touchDetails) throws Exception {
- resetProperties();
- sendBugreportStarted(1000);
+ sendBugreportStarted();
waitForScreenshotButtonEnabled(true);
- DetailsUi detailsUi = new DetailsUi(mUiBot, ID, NAME, touchDetails);
+ DetailsUi detailsUi = new DetailsUi(mBugreportId, touchDetails);
detailsUi.nameField.setText("");
detailsUi.titleField.setText("");
detailsUi.descField.setText(mDescription);
detailsUi.clickOk();
- Bundle extras = sendBugreportFinishedAndGetSharedIntent(ID, mZipPath, mScreenshotPath);
- assertActionSendMultiple(extras, BUGREPORT_CONTENT, SCREENSHOT_CONTENT, ID, PID, ZIP_FILE,
- NO_NAME, NO_TITLE, mDescription, 0, DIDNT_RENAME_SCREENSHOTS);
-
- assertServiceNotRunning();
- }
-
- @Test
- public void testProgress_changeJustDetailsIsClearedOnSecondBugreport() throws Exception {
- resetProperties();
- sendBugreportStarted(ID, PID, NAME, 1000);
- waitForScreenshotButtonEnabled(true);
-
- DetailsUi detailsUi = new DetailsUi(mUiBot, ID, NAME);
- detailsUi.assertName(NAME);
- detailsUi.assertTitle("");
- detailsUi.assertDescription("");
- assertTrue("didn't enable name on UI", detailsUi.nameField.isEnabled());
- detailsUi.nameField.setText(NEW_NAME);
- detailsUi.titleField.setText(TITLE);
- detailsUi.descField.setText(DESCRIPTION);
- detailsUi.clickOk();
-
- sendBugreportStarted(ID2, PID2, NAME2, 1000);
-
- sendBugreportFinished(ID, mZipPath, mScreenshotPath);
- Bundle extras = acceptBugreportAndGetSharedIntent(TITLE);
-
- detailsUi = new DetailsUi(mUiBot, ID2, NAME2);
- detailsUi.assertName(NAME2);
- detailsUi.assertTitle("");
- detailsUi.assertDescription("");
- assertTrue("didn't enable name on UI", detailsUi.nameField.isEnabled());
- detailsUi.nameField.setText(NEW_NAME2);
- detailsUi.titleField.setText(TITLE2);
- detailsUi.descField.setText(DESCRIPTION2);
- detailsUi.clickOk();
-
- // Must use a different zip file otherwise it will fail because zip already contains
- // title.txt and description.txt entries.
- extras = sendBugreportFinishedAndGetSharedIntent(ID2, mZipPath2, NO_SCREENSHOT, TITLE2);
- assertActionSendMultiple(extras, BUGREPORT_CONTENT, NO_SCREENSHOT, ID2, PID2, TITLE2,
- NEW_NAME2, TITLE2, DESCRIPTION2, 0, RENAMED_SCREENSHOTS);
+ Bundle extras = sendBugreportFinishedAndGetSharedIntent(mBugreportId);
+ assertActionSendMultiple(extras, NO_NAME, NO_TITLE, mDescription, 0);
assertServiceNotRunning();
}
@@ -507,26 +415,25 @@
}
private void bugreportFinishedWhileChangingDetailsTest(boolean waitScreenshot) throws Exception {
- resetProperties();
- sendBugreportStarted(1000);
+ sendBugreportStarted();
if (waitScreenshot) {
waitForScreenshotButtonEnabled(true);
}
- DetailsUi detailsUi = new DetailsUi(mUiBot, ID, NAME);
+ DetailsUi detailsUi = new DetailsUi(mBugreportId);
// Finish the bugreport while user's still typing the name.
detailsUi.nameField.setText(NEW_NAME);
- sendBugreportFinished(ID, mPlainTextPath, mScreenshotPath);
+ sendBugreportFinished();
// Wait until the share notification is received...
- waitShareNotification(ID);
+ waitShareNotification(mBugreportId);
// ...then close notification bar.
mContext.sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
// Make sure UI was updated properly.
assertFalse("didn't disable name on UI", detailsUi.nameField.isEnabled());
- assertEquals("didn't revert name on UI", NAME, detailsUi.nameField.getText().toString());
+ assertNotEquals("didn't revert name on UI", NAME, detailsUi.nameField.getText());
// Finish changing other fields.
detailsUi.titleField.setText(TITLE);
@@ -534,9 +441,8 @@
detailsUi.clickOk();
// Finally, share bugreport.
- Bundle extras = acceptBugreportAndGetSharedIntent(ID);
- assertActionSendMultiple(extras, BUGREPORT_CONTENT, SCREENSHOT_CONTENT, ID, PID, TITLE,
- NAME, TITLE, mDescription, 0, RENAMED_SCREENSHOTS);
+ Bundle extras = acceptBugreportAndGetSharedIntent(mBugreportId);
+ assertActionSendMultiple(extras, NO_NAME, TITLE, mDescription, 0);
assertServiceNotRunning();
}
@@ -569,11 +475,14 @@
}
// Send notification and click on share.
- sendBugreportFinished(NO_ID, mPlainTextPath, null);
- mUiBot.clickOnNotification(mContext.getString(R.string.bugreport_finished_title, NO_ID));
+ sendBugreportStarted();
+ waitForScreenshotButtonEnabled(true);
+ sendBugreportFinished();
+ mUiBot.clickOnNotification(mContext.getString(
+ R.string.bugreport_finished_title, mBugreportId));
// Handle the warning
- mUiBot.getVisibleObject(mContext.getString(R.string.bugreport_confirm));
+ mUiBot.getObject(mContext.getString(R.string.bugreport_confirm));
// TODO: get ok and dontShowAgain from the dialog reference above
UiObject dontShowAgain =
mUiBot.getVisibleObject(mContext.getString(R.string.bugreport_confirm_dont_repeat));
@@ -597,7 +506,7 @@
// Share the bugreport.
mUiBot.chooseActivity(UI_NAME);
Bundle extras = mListener.getExtras();
- assertActionSendMultiple(extras, BUGREPORT_CONTENT, NO_SCREENSHOT);
+ assertActionSendMultiple(extras);
// Make sure it's hidden now.
int newState = getWarningState(mContext, STATE_UNKNOWN);
@@ -605,35 +514,37 @@
}
@Test
+ public void testBugreportFinished_withEmptyBugreportFile() throws Exception {
+ sendBugreportStarted();
+
+ IoUtils.closeQuietly(mBugreportFd);
+ mBugreportFd = null;
+ sendBugreportFinished();
+
+ assertServiceNotRunning();
+ }
+
+ @Test
public void testShareBugreportAfterServiceDies() throws Exception {
- sendBugreportFinished(NO_ID, mPlainTextPath, NO_SCREENSHOT);
- waitForService(false);
- Bundle extras = acceptBugreportAndGetSharedIntent(NO_ID);
- assertActionSendMultiple(extras, BUGREPORT_CONTENT, NO_SCREENSHOT);
+ sendBugreportStarted();
+ waitForScreenshotButtonEnabled(true);
+ sendBugreportFinished();
+ killService();
+ assertServiceNotRunning();
+ Bundle extras = acceptBugreportAndGetSharedIntent(mBugreportId);
+ assertActionSendMultiple(extras);
}
@Test
- public void testBugreportFinished_plainBugreportAndScreenshot() throws Exception {
- Bundle extras = sendBugreportFinishedAndGetSharedIntent(mPlainTextPath, mScreenshotPath);
- assertActionSendMultiple(extras, BUGREPORT_CONTENT, SCREENSHOT_CONTENT);
- }
+ public void testBugreportRequestTwice_oneStartBugreportInvoked() throws Exception {
+ sendBugreportStarted();
+ new BugreportRequestedReceiver().onReceive(mContext,
+ new Intent(INTENT_BUGREPORT_REQUESTED));
+ getInstrumentation().waitForIdleSync();
- @Test
- public void testBugreportFinished_zippedBugreportAndScreenshot() throws Exception {
- Bundle extras = sendBugreportFinishedAndGetSharedIntent(mZipPath, mScreenshotPath);
- assertActionSendMultiple(extras, BUGREPORT_CONTENT, SCREENSHOT_CONTENT);
- }
-
- @Test
- public void testBugreportFinished_plainBugreportAndNoScreenshot() throws Exception {
- Bundle extras = sendBugreportFinishedAndGetSharedIntent(mPlainTextPath, NO_SCREENSHOT);
- assertActionSendMultiple(extras, BUGREPORT_CONTENT, NO_SCREENSHOT);
- }
-
- @Test
- public void testBugreportFinished_zippedBugreportAndNoScreenshot() throws Exception {
- Bundle extras = sendBugreportFinishedAndGetSharedIntent(mZipPath, NO_SCREENSHOT);
- assertActionSendMultiple(extras, BUGREPORT_CONTENT, NO_SCREENSHOT);
+ verify(mMockIDumpstate, times(1)).startBugreport(anyInt(), any(), any(), any(),
+ anyInt(), any(), anyBoolean());
+ sendBugreportFinished();
}
private void cancelExistingNotifications() {
@@ -664,10 +575,10 @@
assertEquals("old notifications were not cancelled", 0, nm.getActiveNotifications().length);
}
- private void cancelFromNotification() {
- openProgressNotification(NAME);
- UiObject cancelButton = mUiBot.getVisibleObject(mContext.getString(
- com.android.internal.R.string.cancel).toUpperCase());
+ private void cancelFromNotification(String name) {
+ openProgressNotification(name);
+ UiObject cancelButton = mUiBot.getObject(mContext.getString(
+ com.android.internal.R.string.cancel));
mUiBot.click(cancelButton, "cancel_button");
}
@@ -676,67 +587,60 @@
// TODO: need a way to get the ProgresBar from the "android:id/progress" UIObject...
}
- private UiObject openProgressNotification(String bugreportName) {
- Log.v(TAG, "Looking for progress notification for '" + bugreportName + "'");
- return mUiBot.getNotification(bugreportName);
- }
-
- void resetProperties() {
- // TODO: call method to remove property instead
- SystemProperties.set(PROGRESS_PROPERTY, "Reset");
- SystemProperties.set(MAX_PROPERTY, "Reset");
- SystemProperties.set(NAME_PROPERTY, "Reset");
+ private void openProgressNotification(String title) {
+ Log.v(TAG, "Looking for progress notification for '" + title + "'");
+ UiObject2 notification = mUiBot.getNotification2(title);
+ if (notification != null) {
+ mUiBot.expandNotification(notification);
+ }
}
/**
- * Sends a "bugreport started" intent with the default values.
+ * Sends a "bugreport requested" intent with the default values.
*/
- private void sendBugreportStarted(int max) throws Exception {
- sendBugreportStarted(ID, PID, NAME, max);
- }
+ private void sendBugreportStarted() throws Exception {
+ Intent intent = new Intent(INTENT_BUGREPORT_REQUESTED);
+ // Ideally, we should invoke BugreportRequestedReceiver by sending
+ // INTENT_BUGREPORT_REQUESTED. But the intent has been protected broadcast by the system
+ // starting from S.
+ new BugreportRequestedReceiver().onReceive(mContext, intent);
- private void sendBugreportStarted(int id, int pid, String name, int max) throws Exception {
- Intent intent = new Intent(INTENT_BUGREPORT_STARTED);
- intent.setPackage("com.android.shell");
- intent.setFlags(Intent.FLAG_RECEIVER_FOREGROUND);
- intent.putExtra(EXTRA_ID, id);
- intent.putExtra(EXTRA_PID, pid);
- intent.putExtra(EXTRA_NAME, name);
- intent.putExtra(EXTRA_MAX, max);
- mContext.sendBroadcast(intent);
+ ArgumentCaptor<IDumpstateListener> listenerCap = ArgumentCaptor.forClass(
+ IDumpstateListener.class);
+ verify(mMockIDumpstate, timeout(TIMEOUT)).startBugreport(anyInt(), any(), any(), any(),
+ anyInt(), listenerCap.capture(), anyBoolean());
+ mIDumpstateListener = listenerCap.getValue();
+ assertNotNull("Dumpstate listener should not be null", mIDumpstateListener);
+ mIDumpstateListener.onProgress(0);
}
/**
- * Sends a "bugreport finished" intent and waits for the result.
+ * Sends a "bugreport finished" event and waits for the result.
*
+ * @param id The bugreport id for finished notification string title substitution.
* @return extras sent in the shared intent.
*/
- private Bundle sendBugreportFinishedAndGetSharedIntent(String bugreportPath,
- String screenshotPath) {
- return sendBugreportFinishedAndGetSharedIntent(NO_ID, bugreportPath, screenshotPath);
- }
-
- /**
- * Sends a "bugreport finished" intent and waits for the result.
- *
- * @return extras sent in the shared intent.
- */
- private Bundle sendBugreportFinishedAndGetSharedIntent(int id, String bugreportPath,
- String screenshotPath) {
- sendBugreportFinished(id, bugreportPath, screenshotPath);
+ private Bundle sendBugreportFinishedAndGetSharedIntent(int id) throws Exception {
+ sendBugreportFinished();
return acceptBugreportAndGetSharedIntent(id);
}
- // TODO: document / merge these 3 sendBugreportFinishedAndGetSharedIntent methods
- private Bundle sendBugreportFinishedAndGetSharedIntent(int id, String bugreportPath,
- String screenshotPath, String notificationTitle) {
- sendBugreportFinished(id, bugreportPath, screenshotPath);
+ /**
+ * Sends a "bugreport finished" event and waits for the result.
+ *
+ * @param notificationTitle The title of finished notification.
+ * @return extras sent in the shared intent.
+ */
+ private Bundle sendBugreportFinishedAndGetSharedIntent(String notificationTitle)
+ throws Exception {
+ sendBugreportFinished();
return acceptBugreportAndGetSharedIntent(notificationTitle);
}
/**
* Accepts the notification to share the finished bugreport and waits for the result.
*
+ * @param id The bugreport id for finished notification string title substitution.
* @return extras sent in the shared intent.
*/
private Bundle acceptBugreportAndGetSharedIntent(int id) {
@@ -744,7 +648,12 @@
return acceptBugreportAndGetSharedIntent(notificationTitle);
}
- // TODO: document and/or merge these 2 acceptBugreportAndGetSharedIntent methods
+ /**
+ * Accepts the notification to share the finished bugreport and waits for the result.
+ *
+ * @param notificationTitle The title of finished notification.
+ * @return extras sent in the shared intent.
+ */
private Bundle acceptBugreportAndGetSharedIntent(String notificationTitle) {
mUiBot.clickOnNotification(notificationTitle);
mUiBot.chooseActivity(UI_NAME);
@@ -759,53 +668,38 @@
}
/**
- * Sends a "bugreport finished" intent.
+ * Callbacks to service to finish the bugreport.
*/
- private void sendBugreportFinished(int id, String bugreportPath, String screenshotPath) {
- Intent intent = new Intent(INTENT_BUGREPORT_FINISHED);
- intent.setPackage("com.android.shell");
- intent.setFlags(Intent.FLAG_RECEIVER_FOREGROUND);
- if (id != NO_ID) {
- intent.putExtra(EXTRA_ID, id);
+ private void sendBugreportFinished() throws Exception {
+ if (mBugreportFd != null) {
+ writeZipFile(mBugreportFd, BUGREPORT_FILE, BUGREPORT_CONTENT);
}
- if (bugreportPath != null) {
- intent.putExtra(EXTRA_BUGREPORT, bugreportPath);
+ if (mScreenshotFd != null) {
+ writeScreenshotFile(mScreenshotFd, SCREENSHOT_CONTENT);
}
- if (screenshotPath != null) {
- intent.putExtra(EXTRA_SCREENSHOT, screenshotPath);
- }
-
- mContext.sendBroadcast(intent);
+ mIDumpstateListener.onFinished();
+ getInstrumentation().waitForIdleSync();
}
/**
* Asserts the proper {@link Intent#ACTION_SEND_MULTIPLE} intent was sent.
*/
- private void assertActionSendMultiple(Bundle extras, String bugreportContent,
- String screenshotContent) throws IOException {
- assertActionSendMultiple(extras, bugreportContent, screenshotContent, ID, PID, ZIP_FILE,
- NO_NAME, NO_TITLE, NO_DESCRIPTION, 0, DIDNT_RENAME_SCREENSHOTS);
+ private void assertActionSendMultiple(Bundle extras) throws IOException {
+ assertActionSendMultiple(extras, NO_NAME, NO_TITLE, NO_DESCRIPTION, 0);
}
/**
* Asserts the proper {@link Intent#ACTION_SEND_MULTIPLE} intent was sent.
*
* @param extras extras received in the intent
- * @param bugreportContent expected content in the bugreport file
- * @param screenshotContent expected content in the screenshot file (sent by dumpstate), if any
- * @param id emulated dumpstate id
- * @param pid emulated dumpstate pid
- * @param name expected subject
* @param name bugreport name as provided by the user (or received by dumpstate)
* @param title bugreport name as provided by the user
* @param description bugreport description as provided by the user
* @param numberScreenshots expected number of screenshots taken by Shell.
- * @param renamedScreenshots whether the screenshots are expected to be renamed
*/
- private void assertActionSendMultiple(Bundle extras, String bugreportContent,
- String screenshotContent, int id, int pid, String subject,
- String name, String title, String description,
- int numberScreenshots, boolean renamedScreenshots) throws IOException {
+ private void assertActionSendMultiple(Bundle extras, String name, String title,
+ String description, int numberScreenshots)
+ throws IOException {
String body = extras.getString(Intent.EXTRA_TEXT);
assertContainsRegex("missing build info",
SystemProperties.get("ro.build.description"), body);
@@ -815,11 +709,21 @@
assertContainsRegex("missing description", description, body);
}
- assertEquals("wrong subject", subject, extras.getString(Intent.EXTRA_SUBJECT));
+ final String extrasSubject = extras.getString(Intent.EXTRA_SUBJECT);
+ if (title != null) {
+ assertEquals("wrong subject", title, extrasSubject);
+ } else {
+ if (name != null) {
+ assertEquals("wrong subject", getBugreportName(name), extrasSubject);
+ } else {
+ assertTrue("wrong subject", extrasSubject.startsWith(
+ getBugreportPrefixName()));
+ }
+ }
List<Uri> attachments = extras.getParcelableArrayList(Intent.EXTRA_STREAM);
int expectedNumberScreenshots = numberScreenshots;
- if (screenshotContent != null) {
+ if (getScreenshotContent() != null) {
expectedNumberScreenshots ++; // Add screenshot received by dumpstate
}
int expectedSize = expectedNumberScreenshots + 1; // All screenshots plus the bugreport file
@@ -858,7 +762,7 @@
}
}
// Check external screenshot
- if (screenshotContent != null) {
+ if (getScreenshotContent() != null) {
assertNotNull("did not get .png attachment for external screenshot",
externalScreenshotUri);
assertContent(externalScreenshotUri, SCREENSHOT_CONTENT);
@@ -866,17 +770,18 @@
assertNull("should not have .png attachment for external screenshot",
externalScreenshotUri);
}
- // Check internal screenshots.
- SortedSet<String> expectedNames = new TreeSet<>();
- for (int i = 1 ; i <= numberScreenshots; i++) {
- String prefix = renamedScreenshots ? name : Integer.toString(pid);
- String expectedName = "screenshot-" + prefix + "-" + i + ".png";
- expectedNames.add(expectedName);
+ // Check internal screenshots' file names.
+ if (name != null) {
+ SortedSet<String> expectedNames = new TreeSet<>();
+ for (int i = 1; i <= numberScreenshots; i++) {
+ String expectedName = "screenshot-" + name + "-" + i + ".png";
+ expectedNames.add(expectedName);
+ }
+ // Ideally we should use MoreAsserts, but the error message in case of failure is not
+ // really useful.
+ assertEquals("wrong names for internal screenshots",
+ expectedNames, internalScreenshotNames);
}
- // Ideally we should use MoreAsserts, but the error message in case of failure is not
- // really useful.
- assertEquals("wrong names for internal screenshots",
- expectedNames, internalScreenshotNames);
}
private void assertContent(Uri uri, String expectedContent) throws IOException {
@@ -909,28 +814,9 @@
fail("Did not find entry '" + entryName + "' on file '" + uri + "'");
}
- private void assertPropertyValue(String key, String expectedValue) {
- // Since the property is set in a different thread by BugreportProgressService, we need to
- // poll it a couple times...
-
- for (int i = 1; i <= 5; i++) {
- String actualValue = SystemProperties.get(key);
- if (expectedValue.equals(actualValue)) {
- return;
- }
- Log.d(TAG, "Value of property " + key + " (" + actualValue
- + ") does not match expected value (" + expectedValue
- + ") on attempt " + i + ". Sleeping before next attempt...");
- sleep(1000);
- }
- // Final try...
- String actualValue = SystemProperties.get(key);
- assertEquals("Wrong value for property '" + key + "'", expectedValue, actualValue);
- }
-
private void assertServiceNotRunning() {
- String service = BugreportProgressService.class.getName();
- assertFalse("Service '" + service + "' is still running", isServiceRunning(service));
+ mServiceRule.unbindService();
+ waitForService(false);
}
private boolean isServiceRunning(String name) {
@@ -962,7 +848,7 @@
private void killService() {
String service = BugreportProgressService.class.getName();
-
+ mServiceRule.unbindService();
if (!isServiceRunning(service)) return;
Log.w(TAG, "Service '" + service + "' is still running, killing it");
@@ -980,18 +866,19 @@
}
}
- private void createTextFile(String path, String content) throws IOException {
- Log.v(TAG, "createFile(" + path + ")");
+ private void writeScreenshotFile(ParcelFileDescriptor fd, String content) throws IOException {
+ Log.v(TAG, "writeScreenshotFile(" + fd + ")");
try (Writer writer = new BufferedWriter(new OutputStreamWriter(
- new FileOutputStream(path)))) {
+ new FileOutputStream(fd.getFileDescriptor())))) {
writer.write(content);
}
}
- private void createZipFile(String path, String entryName, String content) throws IOException {
- Log.v(TAG, "createZipFile(" + path + ", " + entryName + ")");
+ private void writeZipFile(ParcelFileDescriptor fd, String entryName, String content)
+ throws IOException {
+ Log.v(TAG, "writeZipFile(" + fd + ", " + entryName + ")");
try (ZipOutputStream zos = new ZipOutputStream(
- new BufferedOutputStream(new FileOutputStream(path)))) {
+ new BufferedOutputStream(new FileOutputStream(fd.getFileDescriptor())))) {
ZipEntry entry = new ZipEntry(entryName);
zos.putNextEntry(entry);
byte[] data = content.getBytes();
@@ -1000,25 +887,13 @@
}
}
- private String getPath(String file) {
- final File rootDir = mContext.getFilesDir();
- final File dir = new File(rootDir, BUGREPORTS_DIR);
- if (!dir.exists()) {
- Log.i(TAG, "Creating directory " + dir);
- assertTrue("Could not create directory " + dir, dir.mkdir());
- }
- String path = new File(dir, file).getAbsolutePath();
- Log.v(TAG, "Path for '" + file + "': " + path);
- return path;
- }
-
/**
* Gets the notification button used to take a screenshot.
*/
private UiObject getScreenshotButton() {
- openProgressNotification(NAME);
- return mUiBot.getVisibleObject(
- mContext.getString(R.string.bugreport_screenshot_action).toUpperCase());
+ openProgressNotification(mProgressTitle);
+ return mUiBot.getObject(
+ mContext.getString(R.string.bugreport_screenshot_action));
}
/**
@@ -1072,12 +947,36 @@
Log.d(TAG, "woke up");
}
+ private int getBugreportId() {
+ return SystemProperties.getInt(PROPERTY_LAST_ID, 1);
+ }
+
+ private String getBugreportInProgress(int bugreportId) {
+ return mContext.getString(R.string.bugreport_in_progress_title, bugreportId);
+ }
+
+ private String getBugreportPrefixName() {
+ String buildId = SystemProperties.get("ro.build.id", "UNKNOWN_BUILD");
+ String deviceName = SystemProperties.get("ro.product.name", "UNKNOWN_DEVICE");
+ return String.format("bugreport-%s-%s", deviceName, buildId);
+ }
+
+ private String getBugreportName(String name) {
+ return String.format("%s-%s.zip", getBugreportPrefixName(), name);
+ }
+
+ private String getScreenshotContent() {
+ if (mScreenshotFd == null) {
+ return NO_SCREENSHOT;
+ }
+ return SCREENSHOT_CONTENT;
+ }
+
/**
* Helper class containing the UiObjects present in the bugreport info dialog.
*/
private final class DetailsUi {
- final UiObject detailsButton;
final UiObject nameField;
final UiObject titleField;
final UiObject descField;
@@ -1088,10 +987,9 @@
* Gets the UI objects by opening the progress notification and clicking on DETAILS.
*
* @param id bugreport id
- * @param id bugreport name
*/
- DetailsUi(UiBot uiBot, int id, String name) throws UiObjectNotFoundException {
- this(uiBot, id, name, true);
+ DetailsUi(int id) throws UiObjectNotFoundException {
+ this(id, true);
}
/**
@@ -1099,13 +997,12 @@
* the notification itself.
*
* @param id bugreport id
- * @param id bugreport name
*/
- DetailsUi(UiBot uiBot, int id, String name, boolean clickDetails)
- throws UiObjectNotFoundException {
- final UiObject notification = openProgressNotification(name);
- detailsButton = mUiBot.getVisibleObject(mContext.getString(
- R.string.bugreport_info_action).toUpperCase());
+ DetailsUi(int id, boolean clickDetails) throws UiObjectNotFoundException {
+ openProgressNotification(mProgressTitle);
+ final UiObject notification = mUiBot.getObject(mProgressTitle);
+ final UiObject detailsButton = mUiBot.getObject(mContext.getString(
+ R.string.bugreport_info_action));
if (clickDetails) {
mUiBot.click(detailsButton, "details_button");
@@ -1123,24 +1020,6 @@
cancelButton = mUiBot.getObjectById("android:id/button2");
}
- private void assertField(String name, UiObject field, String expected)
- throws UiObjectNotFoundException {
- String actual = field.getText().toString();
- assertEquals("Wrong value on field '" + name + "'", expected, actual);
- }
-
- void assertName(String expected) throws UiObjectNotFoundException {
- assertField("name", nameField, expected);
- }
-
- void assertTitle(String expected) throws UiObjectNotFoundException {
- assertField("title", titleField, expected);
- }
-
- void assertDescription(String expected) throws UiObjectNotFoundException {
- assertField("description", descField, expected);
- }
-
/**
* Set focus on the name field so it can be validated once focus is lost.
*/
@@ -1159,6 +1038,8 @@
void reOpen(String name) {
openProgressNotification(name);
+ final UiObject detailsButton = mUiBot.getObject(mContext.getString(
+ R.string.bugreport_info_action));
mUiBot.click(detailsButton, "details_button");
}
diff --git a/packages/Shell/tests/src/com/android/shell/UiBot.java b/packages/Shell/tests/src/com/android/shell/UiBot.java
index e839765..53b124f 100644
--- a/packages/Shell/tests/src/com/android/shell/UiBot.java
+++ b/packages/Shell/tests/src/com/android/shell/UiBot.java
@@ -18,17 +18,23 @@
import android.app.Instrumentation;
import android.app.StatusBarManager;
+import android.os.SystemClock;
import android.support.test.uiautomator.By;
import android.support.test.uiautomator.UiDevice;
import android.support.test.uiautomator.UiObject;
+import android.support.test.uiautomator.UiObject2;
import android.support.test.uiautomator.UiObjectNotFoundException;
import android.support.test.uiautomator.UiSelector;
import android.support.test.uiautomator.Until;
+import android.text.format.DateUtils;
import android.util.Log;
import static junit.framework.Assert.assertFalse;
+import static junit.framework.Assert.assertNotNull;
import static junit.framework.Assert.assertTrue;
+import java.util.List;
+
/**
* A helper class for UI-related testing tasks.
*/
@@ -36,6 +42,9 @@
private static final String TAG = "UiBot";
private static final String SYSTEMUI_PACKAGE = "com.android.systemui";
+ private static final String ANDROID_PACKAGE = "android";
+
+ private static final long SHORT_UI_TIMEOUT_MS = (3 * DateUtils.SECOND_IN_MILLIS);
private final Instrumentation mInstrumentation;
private final UiDevice mDevice;
@@ -48,9 +57,9 @@
}
/**
- * Opens the system notification and gets a given notification.
+ * Opens the system notification and gets a UiObject with the text.
*
- * @param text Notificaton's text as displayed by the UI.
+ * @param text Notification's text as displayed by the UI.
* @return notification object.
*/
public UiObject getNotification(String text) {
@@ -62,6 +71,43 @@
return getObject(text);
}
+ /**
+ * Opens the system notification and gets a notification containing the text.
+ *
+ * @param text Notification's text as displayed by the UI.
+ * @return notification object.
+ */
+ public UiObject2 getNotification2(String text) {
+ boolean opened = mDevice.openNotification();
+ Log.v(TAG, "openNotification(): " + opened);
+ final UiObject2 notificationScroller = mDevice.wait(Until.findObject(
+ By.res(SYSTEMUI_PACKAGE, "notification_stack_scroller")), mTimeout);
+ assertNotNull("could not get notification stack scroller", notificationScroller);
+ final List<UiObject2> notificationList = notificationScroller.getChildren();
+ for (UiObject2 notification: notificationList) {
+ final UiObject2 notificationText = notification.findObject(By.textContains(text));
+ if (notificationText != null) {
+ return notification;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Expands the notification.
+ *
+ * @param notification The notification object returned by {@link #getNotification2(String)}.
+ */
+ public void expandNotification(UiObject2 notification) {
+ final UiObject2 expandBtn = notification.findObject(
+ By.res(ANDROID_PACKAGE, "expand_button"));
+ if (expandBtn.getContentDescription().equals("Collapse")) {
+ return;
+ }
+ expandBtn.click();
+ mDevice.waitForIdle();
+ }
+
public void collapseStatusBar() throws Exception {
// TODO: mDevice should provide such method..
StatusBarManager sbm =
@@ -162,6 +208,12 @@
*/
public void chooseActivity(String name) {
// It uses an intent chooser now, so just getting the activity by text is enough...
+ final String share = mInstrumentation.getContext().getString(
+ com.android.internal.R.string.share);
+ boolean gotIt = mDevice.wait(Until.hasObject(By.text(share)), mTimeout);
+ assertTrue("could not get share activity (" + share + ")", gotIt);
+ swipeUp();
+ SystemClock.sleep(SHORT_UI_TIMEOUT_MS);
UiObject activity = getObject(name);
click(activity, name);
}
@@ -173,6 +225,11 @@
public void turnScreenOn() throws Exception {
mDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP");
mDevice.executeShellCommand("wm dismiss-keyguard");
+ mDevice.waitForIdle();
}
+ public void swipeUp() {
+ mDevice.swipe(mDevice.getDisplayWidth() / 2, mDevice.getDisplayHeight() * 3 / 4,
+ mDevice.getDisplayWidth() / 2, 0, 30);
+ }
}
diff --git a/packages/SystemUI/res-keyguard/values-ur/strings.xml b/packages/SystemUI/res-keyguard/values-ur/strings.xml
index 0fd5e17..7f8d160 100644
--- a/packages/SystemUI/res-keyguard/values-ur/strings.xml
+++ b/packages/SystemUI/res-keyguard/values-ur/strings.xml
@@ -25,7 +25,7 @@
<string name="keyguard_password_enter_puk_code" msgid="3813154965969758868">"SIM PUK اور نیا PIN کوڈ ٹائپ کریں"</string>
<string name="keyguard_password_enter_puk_prompt" msgid="3529260761374385243">"SIM PUK کوڈ"</string>
<string name="keyguard_password_enter_pin_prompt" msgid="2304037870481240781">"نیا SIM PIN کوڈ"</string>
- <string name="keyguard_password_entry_touch_hint" msgid="6180028658339706333"><font size="17">"پاسورڈ ٹائپ کرنے کیلئے ٹچ کریں"</font></string>
+ <string name="keyguard_password_entry_touch_hint" msgid="6180028658339706333"><font size="17">"پاس ورڈ ٹائپ کرنے کیلئے ٹچ کریں"</font></string>
<string name="keyguard_password_enter_password_code" msgid="7393393239623946777">"غیر مقفل کرنے کیلئے پاس ورڈ ٹائپ کریں"</string>
<string name="keyguard_password_enter_pin_password_code" msgid="3692259677395250509">"غیر مقفل کرنے کیلئے PIN ٹائپ کریں"</string>
<string name="keyguard_enter_your_pin" msgid="5429932527814874032">"اپنا PIN درج کریں"</string>
@@ -72,7 +72,7 @@
<string name="kg_sim_pin_instructions_multi" msgid="3639863309953109649">"\"<xliff:g id="CARRIER">%1$s</xliff:g>\" کیلئے SIM PIN درج کریں۔"</string>
<string name="kg_sim_lock_esim_instructions" msgid="5577169988158738030">"<xliff:g id="PREVIOUS_MSG">%1$s</xliff:g> موبائل سروس کے بغیر آلہ کا استعمال کرنے کیلئے eSIM غیر فعال کریں۔"</string>
<string name="kg_pin_instructions" msgid="822353548385014361">"PIN درج کریں"</string>
- <string name="kg_password_instructions" msgid="324455062831719903">"پاسورڈ درج کریں"</string>
+ <string name="kg_password_instructions" msgid="324455062831719903">"پاس ورڈ درج کریں"</string>
<string name="kg_puk_enter_puk_hint" msgid="3005288372875367017">"SIM اب غیر فعال ہوگیا ہے۔ جاری رکھنے کیلئے PUK کوڈ درج کریں۔ تفصیلات کیلئے کیریئر سے رابطہ کریں۔"</string>
<string name="kg_puk_enter_puk_hint_multi" msgid="4876780689904862943">"SIM \"<xliff:g id="CARRIER">%1$s</xliff:g>\" اب غیر فعال ہے۔ جاری رکھنے کیلئے PUK کوڈ درج کریں۔ تفصیلات کیلئے کیریئر سے رابطہ کریں۔"</string>
<string name="kg_puk_enter_pin_hint" msgid="6028432138916150399">"پسندیدہ PIN کوڈ درج کریں"</string>
@@ -83,7 +83,7 @@
<string name="kg_invalid_puk" msgid="1774337070084931186">"صحیح PUK کوڈ دوبارہ درج کریں۔ بار بار کی کوششیں SIM کو مستقل طور پر غیر فعال کر دیں گی۔"</string>
<string name="kg_login_too_many_attempts" msgid="4519957179182578690">"پیٹرن کی بہت ساری کوششیں"</string>
<string name="kg_too_many_failed_pin_attempts_dialog_message" msgid="544687656831558971">"آپ نے اپنا PIN <xliff:g id="NUMBER_0">%1$d</xliff:g> بار غلط طریقے سے ٹائپ کیا ہے۔ \n\n <xliff:g id="NUMBER_1">%2$d</xliff:g> سیکنڈ میں دوبارہ کوشش کریں۔"</string>
- <string name="kg_too_many_failed_password_attempts_dialog_message" msgid="190984061975729494">"آپ نے اپنا پاسورڈ <xliff:g id="NUMBER_0">%1$d</xliff:g> بار غلط طریقے سے ٹائپ کیا ہے۔ \n\n <xliff:g id="NUMBER_1">%2$d</xliff:g> سیکنڈ میں دوبارہ کوشش کریں۔"</string>
+ <string name="kg_too_many_failed_password_attempts_dialog_message" msgid="190984061975729494">"آپ نے اپنا پاس ورڈ <xliff:g id="NUMBER_0">%1$d</xliff:g> بار غلط طریقے سے ٹائپ کیا ہے۔ \n\n <xliff:g id="NUMBER_1">%2$d</xliff:g> سیکنڈ میں دوبارہ کوشش کریں۔"</string>
<string name="kg_too_many_failed_pattern_attempts_dialog_message" msgid="4252405904570284368">"آپ نے اپنا غیر مقفل کرنے کا پیٹرن <xliff:g id="NUMBER_0">%1$d</xliff:g> بار غلط طریقے سے ڈرا کیا ہے۔ \n\n <xliff:g id="NUMBER_1">%2$d</xliff:g> سیکنڈ میں دوبارہ کوشش کریں۔"</string>
<string name="kg_password_wrong_pin_code_pukked" msgid="8047350661459040581">"غلط SIM PIN کوڈ، اب آپ کو اپنا آلہ غیر مقفل کرنے کیلئے اپنے کیریئر سے رابطہ کرنا ہوگا۔"</string>
<plurals name="kg_password_wrong_pin_code" formatted="false" msgid="7030584350995485026">
@@ -103,13 +103,13 @@
<string name="airplane_mode" msgid="2528005343938497866">"ہوائی جہاز وضع"</string>
<string name="kg_prompt_reason_restart_pattern" msgid="4720554342633852066">"آلہ دوبارہ چالو ہونے کے بعد پیٹرن درکار ہوتا ہے"</string>
<string name="kg_prompt_reason_restart_pin" msgid="1587671566498057656">"آلہ دوبارہ چالو ہونے کے بعد PIN درکار ہوتا ہے"</string>
- <string name="kg_prompt_reason_restart_password" msgid="8061279087240952002">"آلہ دوبارہ چالو ہونے کے بعد پاسورڈ درکار ہوتا ہے"</string>
+ <string name="kg_prompt_reason_restart_password" msgid="8061279087240952002">"آلہ دوبارہ چالو ہونے کے بعد پاس ورڈ درکار ہوتا ہے"</string>
<string name="kg_prompt_reason_timeout_pattern" msgid="9170360502528959889">"اضافی سیکیورٹی کیلئے پیٹرن درکار ہے"</string>
<string name="kg_prompt_reason_timeout_pin" msgid="5945186097160029201">"اضافی سیکیورٹی کیلئے PIN درکار ہے"</string>
- <string name="kg_prompt_reason_timeout_password" msgid="2258263949430384278">"اضافی سیکیورٹی کیلئے پاسورڈ درکار ہے"</string>
+ <string name="kg_prompt_reason_timeout_password" msgid="2258263949430384278">"اضافی سیکیورٹی کیلئے پاس ورڈ درکار ہے"</string>
<string name="kg_prompt_reason_switch_profiles_pattern" msgid="1922016914701991230">"جب آپ پروفائل سوئچ کرتے ہیں تو پیٹرن درکار ہوتا ہے"</string>
<string name="kg_prompt_reason_switch_profiles_pin" msgid="6490434826361055400">"جب آپ پروفائل سوئچ کرتے ہیں تو PIN درکار ہوتا ہے"</string>
- <string name="kg_prompt_reason_switch_profiles_password" msgid="1680374696393804441">"جب آپ پروفائل سوئچ کرتے ہیں تو پاسورڈ درکار ہوتا ہے"</string>
+ <string name="kg_prompt_reason_switch_profiles_password" msgid="1680374696393804441">"جب آپ پروفائل سوئچ کرتے ہیں تو پاس ورڈ درکار ہوتا ہے"</string>
<string name="kg_prompt_reason_device_admin" msgid="6961159596224055685">"آلہ منتظم کی جانب سے مقفل ہے"</string>
<string name="kg_prompt_reason_user_request" msgid="6015774877733717904">"آلہ کو دستی طور پر مقفل کیا گیا تھا"</string>
<plurals name="kg_prompt_reason_time_pattern" formatted="false" msgid="1337428979661197957">
@@ -121,8 +121,8 @@
<item quantity="one">آلہ <xliff:g id="NUMBER_0">%d</xliff:g> گھنٹہ سے غیر مقفل نہیں کیا گیا۔ PIN کی توثیق کریں۔</item>
</plurals>
<plurals name="kg_prompt_reason_time_password" formatted="false" msgid="5343961527665116914">
- <item quantity="other">آلہ <xliff:g id="NUMBER_1">%d</xliff:g> گھنٹوں سے غیر مقفل نہیں کیا گيا۔ پاسورڈ کی توثیق کریں۔</item>
- <item quantity="one">آلہ <xliff:g id="NUMBER_0">%d</xliff:g> گھنٹہ سے غیر مقفل نہیں کیا گیا۔ پاسورڈ کی توثیق کریں۔</item>
+ <item quantity="other">آلہ <xliff:g id="NUMBER_1">%d</xliff:g> گھنٹوں سے غیر مقفل نہیں کیا گيا۔ پاس ورڈ کی توثیق کریں۔</item>
+ <item quantity="one">آلہ <xliff:g id="NUMBER_0">%d</xliff:g> گھنٹہ سے غیر مقفل نہیں کیا گیا۔ پاس ورڈ کی توثیق کریں۔</item>
</plurals>
<string name="kg_fingerprint_not_recognized" msgid="5982606907039479545">"تسلیم شدہ نہیں ہے"</string>
<string name="kg_face_not_recognized" msgid="7903950626744419160">"تسلیم شدہ نہیں ہے"</string>
diff --git a/packages/SystemUI/res/values-iw/strings.xml b/packages/SystemUI/res/values-iw/strings.xml
index 87233dc..88bb88c 100644
--- a/packages/SystemUI/res/values-iw/strings.xml
+++ b/packages/SystemUI/res/values-iw/strings.xml
@@ -35,7 +35,7 @@
<string name="battery_low_why" msgid="2056750982959359863">"הגדרות"</string>
<string name="battery_saver_confirmation_title" msgid="1234998463717398453">"להפעיל את תכונת החיסכון בסוללה?"</string>
<string name="battery_saver_confirmation_title_generic" msgid="2299231884234959849">"מידע על מצב החיסכון בסוללה"</string>
- <string name="battery_saver_confirmation_ok" msgid="5042136476802816494">"הפעל"</string>
+ <string name="battery_saver_confirmation_ok" msgid="5042136476802816494">"הפעלה"</string>
<string name="battery_saver_start_action" msgid="4553256017945469937">"הפעלת תכונת החיסכון בסוללה"</string>
<string name="status_bar_settings_settings_button" msgid="534331565185171556">"הגדרות"</string>
<string name="status_bar_settings_wifi_button" msgid="7243072479837270946">"Wi-Fi"</string>
@@ -298,8 +298,8 @@
<string name="accessibility_quick_settings_flashlight_changed_on" msgid="4747870681508334200">"הפנס הופעל."</string>
<string name="accessibility_quick_settings_color_inversion_changed_off" msgid="7548045840282925393">"היפוך צבעים כבוי."</string>
<string name="accessibility_quick_settings_color_inversion_changed_on" msgid="4711141858364404084">"היפוך צבעים מופעל."</string>
- <string name="accessibility_quick_settings_hotspot_changed_off" msgid="7002061268910095176">"נקודה לשיתוף אינטרנט בנייד כבויה."</string>
- <string name="accessibility_quick_settings_hotspot_changed_on" msgid="2576895346762408840">"נקודה לשיתוף אינטרנט בנייד מופעלת."</string>
+ <string name="accessibility_quick_settings_hotspot_changed_off" msgid="7002061268910095176">"נקודת האינטרנט (hotspot) כבויה."</string>
+ <string name="accessibility_quick_settings_hotspot_changed_on" msgid="2576895346762408840">"נקודת האינטרנט (hotspot) מופעלת."</string>
<string name="accessibility_casting_turned_off" msgid="1387906158563374962">"העברת המסך הופסקה."</string>
<string name="accessibility_quick_settings_work_mode_off" msgid="562749867895549696">"מצב עבודה כבוי."</string>
<string name="accessibility_quick_settings_work_mode_on" msgid="2779253456042059110">"מצב עבודה מופעל."</string>
@@ -397,7 +397,7 @@
<string name="quick_settings_connected_battery_level" msgid="1322075669498906959">"מחובר, הסוללה ב-<xliff:g id="BATTERY_LEVEL_AS_PERCENTAGE">%1$s</xliff:g>"</string>
<string name="quick_settings_connecting" msgid="2381969772953268809">"מתחבר..."</string>
<string name="quick_settings_tethering_label" msgid="5257299852322475780">"שיתוף אינטרנט בין ניידים"</string>
- <string name="quick_settings_hotspot_label" msgid="1199196300038363424">"נקודה לשיתוף אינטרנט"</string>
+ <string name="quick_settings_hotspot_label" msgid="1199196300038363424">"נקודת אינטרנט (hotspot)"</string>
<string name="quick_settings_hotspot_secondary_label_transient" msgid="7585604088079160564">"ההפעלה מתבצעת…"</string>
<string name="quick_settings_hotspot_secondary_label_data_saver_enabled" msgid="1280433136266439372">"חוסך הנתונים פועל"</string>
<plurals name="quick_settings_hotspot_secondary_label_num_devices" formatted="false" msgid="3142308865165871976">
@@ -666,7 +666,7 @@
<string name="alarm_template" msgid="2234991538018805736">"בשעה <xliff:g id="WHEN">%1$s</xliff:g>"</string>
<string name="alarm_template_far" msgid="3561752195856839456">"ב-<xliff:g id="WHEN">%1$s</xliff:g>"</string>
<string name="accessibility_quick_settings_detail" msgid="544463655956179791">"הגדרות מהירות, <xliff:g id="TITLE">%s</xliff:g>."</string>
- <string name="accessibility_status_bar_hotspot" msgid="2888479317489131669">"נקודה לשיתוף אינטרנט"</string>
+ <string name="accessibility_status_bar_hotspot" msgid="2888479317489131669">"נקודת אינטרנט (hotspot)"</string>
<string name="accessibility_managed_profile" msgid="4703836746209377356">"פרופיל עבודה"</string>
<string name="tuner_warning_title" msgid="7721976098452135267">"מהנה בשביל חלק מהאנשים, אבל לא בשביל כולם"</string>
<string name="tuner_warning" msgid="1861736288458481650">"System UI Tuner מספק לך דרכים נוספות להתאים אישית את ממשק המשתמש של Android. התכונות הניסיוניות האלה עשויות להשתנות, להתקלקל או להיעלם בגרסאות עתידיות. המשך בזהירות."</string>
@@ -683,7 +683,7 @@
<string name="experimental" msgid="3549865454812314826">"ניסיוני"</string>
<string name="enable_bluetooth_title" msgid="866883307336662596">"האם להפעיל את ה-Bluetooth?"</string>
<string name="enable_bluetooth_message" msgid="6740938333772779717">"כדי לחבר את המקלדת לטאבלט, תחילה עליך להפעיל את ה-Bluetooth."</string>
- <string name="enable_bluetooth_confirmation_ok" msgid="2866408183324184876">"הפעל"</string>
+ <string name="enable_bluetooth_confirmation_ok" msgid="2866408183324184876">"הפעלה"</string>
<string name="show_silently" msgid="5629369640872236299">"הצגת התראות בלי להשמיע צליל"</string>
<string name="block" msgid="188483833983476566">"חסימת כל ההתראות"</string>
<string name="do_not_silence" msgid="4982217934250511227">"לא להשתיק"</string>
diff --git a/packages/SystemUI/res/values-mr/strings.xml b/packages/SystemUI/res/values-mr/strings.xml
index caab00f..30ecf7a 100644
--- a/packages/SystemUI/res/values-mr/strings.xml
+++ b/packages/SystemUI/res/values-mr/strings.xml
@@ -63,7 +63,7 @@
<string name="usb_debugging_allow" msgid="1722643858015321328">"अनुमती द्या"</string>
<string name="usb_debugging_secondary_user_title" msgid="7843050591380107998">"USB डीबग करण्यास अनुमती नाही"</string>
<string name="usb_debugging_secondary_user_message" msgid="3740347841470403244">"सध्या या डीव्हाइसमध्ये साइन इन केलेला वापरकर्ता USB डीबग करणे सुरू करू शकत नाही. हे वैशिष्ट्य वापरण्यासाठी, प्राथमिक वापरकर्त्यावर स्विच करा."</string>
- <string name="wifi_debugging_title" msgid="7300007687492186076">"या नेटवर्कवर वायरलेस डीबगिंग करण्याला अनुमती द्यायची का?"</string>
+ <string name="wifi_debugging_title" msgid="7300007687492186076">"या नेटवर्कवर वायरलेस डीबगिंग करण्यासाठी अनुमती द्यायची का?"</string>
<string name="wifi_debugging_message" msgid="5461204211731802995">"नेटवर्कचे नाव (SSID)\n<xliff:g id="SSID_0">%1$s</xliff:g>\n\nवाय-फाय ॲड्रेस (BSSID)\n<xliff:g id="BSSID_1">%2$s</xliff:g>"</string>
<string name="wifi_debugging_always" msgid="2968383799517975155">"या नेटवर्कवर नेहमी अनुमती द्या"</string>
<string name="wifi_debugging_allow" msgid="4573224609684957886">"अनुमती द्या"</string>
diff --git a/packages/SystemUI/res/values-pl/strings.xml b/packages/SystemUI/res/values-pl/strings.xml
index 9aae6ce..d304098 100644
--- a/packages/SystemUI/res/values-pl/strings.xml
+++ b/packages/SystemUI/res/values-pl/strings.xml
@@ -422,7 +422,7 @@
<string name="quick_settings_night_secondary_label_until_sunrise" msgid="4063448287758262485">"Do wschodu słońca"</string>
<string name="quick_settings_night_secondary_label_on_at" msgid="3584738542293528235">"Włącz o <xliff:g id="TIME">%s</xliff:g>"</string>
<string name="quick_settings_secondary_label_until" msgid="1883981263191927372">"Do <xliff:g id="TIME">%s</xliff:g>"</string>
- <string name="quick_settings_ui_mode_night_label" msgid="1398928270610780470">"Tryb ciemny"</string>
+ <string name="quick_settings_ui_mode_night_label" msgid="1398928270610780470">"Ciemny motyw"</string>
<string name="quick_settings_dark_mode_secondary_label_battery_saver" msgid="4990712734503013251">"Oszczędzanie baterii"</string>
<string name="quick_settings_dark_mode_secondary_label_on_at_sunset" msgid="6017379738102015710">"Włącz o zachodzie"</string>
<string name="quick_settings_dark_mode_secondary_label_until_sunrise" msgid="4404885070316716472">"Do wschodu słońca"</string>
diff --git a/packages/SystemUI/res/values-sq/strings.xml b/packages/SystemUI/res/values-sq/strings.xml
index 912b25e..5b186fa 100644
--- a/packages/SystemUI/res/values-sq/strings.xml
+++ b/packages/SystemUI/res/values-sq/strings.xml
@@ -57,15 +57,15 @@
<string name="label_view" msgid="6815442985276363364">"Pamje"</string>
<string name="always_use_device" msgid="210535878779644679">"Hap gjithmonë <xliff:g id="APPLICATION">%1$s</xliff:g> kur lidhet <xliff:g id="USB_DEVICE">%2$s</xliff:g>"</string>
<string name="always_use_accessory" msgid="1977225429341838444">"Hap gjithmonë <xliff:g id="APPLICATION">%1$s</xliff:g> kur lidhet <xliff:g id="USB_ACCESSORY">%2$s</xliff:g>"</string>
- <string name="usb_debugging_title" msgid="8274884945238642726">"Të lejohet korrigjimi i USB-së?"</string>
+ <string name="usb_debugging_title" msgid="8274884945238642726">"Të lejohet korrigjimi përmes USB-së?"</string>
<string name="usb_debugging_message" msgid="5794616114463921773">"Gjurma e gishtit të tastit \"RSA\" së kompjuterit është:\n<xliff:g id="FINGERPRINT">%1$s</xliff:g>"</string>
<string name="usb_debugging_always" msgid="4003121804294739548">"Lejo gjithmonë nga ky kompjuter"</string>
<string name="usb_debugging_allow" msgid="1722643858015321328">"Lejo"</string>
- <string name="usb_debugging_secondary_user_title" msgid="7843050591380107998">"Korrigjimi i USB-së nuk lejohet"</string>
- <string name="usb_debugging_secondary_user_message" msgid="3740347841470403244">"Përdoruesi i identifikuar aktualisht në këtë pajisje nuk mund ta aktivizojë korrigjimin e USB-së. Për ta përdorur këtë funksion, kalo te përdoruesi parësor."</string>
+ <string name="usb_debugging_secondary_user_title" msgid="7843050591380107998">"Korrigjimi përmes USB-së nuk lejohet"</string>
+ <string name="usb_debugging_secondary_user_message" msgid="3740347841470403244">"Përdoruesi i identifikuar aktualisht në këtë pajisje nuk mund ta aktivizojë korrigjimin përmes USB-së. Për ta përdorur këtë veçori, kalo te përdoruesi parësor."</string>
<string name="wifi_debugging_title" msgid="7300007687492186076">"Do ta lejosh korrigjimin përmes Wi-Fi në këtë rrjet?"</string>
<string name="wifi_debugging_message" msgid="5461204211731802995">"Emri i rrjetit (SSID)\n<xliff:g id="SSID_0">%1$s</xliff:g>\n\nAdresa Wi‑Fi (BSSID)\n<xliff:g id="BSSID_1">%2$s</xliff:g>"</string>
- <string name="wifi_debugging_always" msgid="2968383799517975155">"Shfaq gjithmonë në këtë rrjet"</string>
+ <string name="wifi_debugging_always" msgid="2968383799517975155">"Lejo gjithmonë në këtë rrjet"</string>
<string name="wifi_debugging_allow" msgid="4573224609684957886">"Lejo"</string>
<string name="wifi_debugging_secondary_user_title" msgid="2493201475880517725">"Korrigjimi përmes Wi-Fi nuk lejohet"</string>
<string name="wifi_debugging_secondary_user_message" msgid="4492383073970079751">"Përdoruesi i identifikuar aktualisht në këtë pajisje nuk mund ta aktivizojë korrigjimin përmes Wi-Fi. Për ta përdorur këtë veçori, kalo te përdoruesi parësor."</string>
diff --git a/packages/SystemUI/res/values-uz/strings.xml b/packages/SystemUI/res/values-uz/strings.xml
index 51124aa..06eeb0d 100644
--- a/packages/SystemUI/res/values-uz/strings.xml
+++ b/packages/SystemUI/res/values-uz/strings.xml
@@ -26,7 +26,7 @@
<string name="status_bar_latest_events_title" msgid="202755896454005436">"Eslatmalar"</string>
<string name="battery_low_title" msgid="6891106956328275225">"Batareya tez orada tugaydi"</string>
<string name="battery_low_percent_format" msgid="4276661262843170964">"<xliff:g id="PERCENTAGE">%s</xliff:g> qoldi"</string>
- <string name="battery_low_percent_format_hybrid" msgid="3985614339605686167">"<xliff:g id="PERCENTAGE">%1$s</xliff:g> (joriy holatda taxminan <xliff:g id="TIME">%2$s</xliff:g> qoldi)"</string>
+ <string name="battery_low_percent_format_hybrid" msgid="3985614339605686167">"Batareya qivvati – <xliff:g id="PERCENTAGE">%1$s</xliff:g>, tugashiga taxminan <xliff:g id="TIME">%2$s</xliff:g> qoldi"</string>
<string name="battery_low_percent_format_hybrid_short" msgid="5917433188456218857">"<xliff:g id="PERCENTAGE">%1$s</xliff:g> (taxminan <xliff:g id="TIME">%2$s</xliff:g> qoldi)"</string>
<string name="battery_low_percent_format_saver_started" msgid="4968468824040940688">"<xliff:g id="PERCENTAGE">%s</xliff:g> qoldi. Quvvat tejash rejimi yoniq."</string>
<string name="invalid_charger" msgid="4370074072117767416">"USB orqali quvvatlash imkonsiz. Qurilmangiz bilan kelgan quvvatlash moslamasidan foydalaning."</string>
@@ -700,13 +700,13 @@
<string name="inline_block_button" msgid="479892866568378793">"Bloklash"</string>
<string name="inline_keep_button" msgid="299631874103662170">"Ha"</string>
<string name="inline_minimize_button" msgid="1474436209299333445">"Kichraytirish"</string>
- <string name="inline_silent_button_silent" msgid="525243786649275816">"Tovushsiz"</string>
+ <string name="inline_silent_button_silent" msgid="525243786649275816">"Sokin"</string>
<string name="inline_silent_button_stay_silent" msgid="2129254868305468743">"Ovozsiz qolsin"</string>
<string name="inline_silent_button_alert" msgid="5705343216858250354">"Ogohlantirish"</string>
<string name="inline_silent_button_keep_alerting" msgid="6577845442184724992">"Signal berishda davom etilsin"</string>
<string name="inline_turn_off_notifications" msgid="8543989584403106071">"Bildirishnoma kelmasin"</string>
<string name="inline_keep_showing_app" msgid="4393429060390649757">"Bu ilovadan keladigan bildirishnomalar chiqaversinmi?"</string>
- <string name="notification_silence_title" msgid="8608090968400832335">"Tovushsiz"</string>
+ <string name="notification_silence_title" msgid="8608090968400832335">"Sokin"</string>
<string name="notification_alert_title" msgid="3656229781017543655">"Standart"</string>
<string name="notification_bubble_title" msgid="8330481035191903164">"Pufaklar"</string>
<string name="notification_channel_summary_low" msgid="4860617986908931158">"Tovush yoki tebranishsiz"</string>
@@ -718,8 +718,8 @@
<string name="notification_conversation_channel_settings" msgid="2409977688430606835">"Sozlamalar"</string>
<string name="notification_priority_title" msgid="2079708866333537093">"Muhim"</string>
<string name="no_shortcut" msgid="8257177117568230126">"<xliff:g id="APP_NAME">%1$s</xliff:g> ilovasida suhbat funksiyalari ishlamaydi"</string>
- <string name="bubble_overflow_empty_title" msgid="3120029421991510842">"Avvalgi bulutchalar topilmadi"</string>
- <string name="bubble_overflow_empty_subtitle" msgid="2030874469510497397">"Bu yerda oxirgi va yopilgan bulutcha shaklidagi bildirishnomalar chiqadi"</string>
+ <string name="bubble_overflow_empty_title" msgid="3120029421991510842">"Hech qanday bulutcha topilmadi"</string>
+ <string name="bubble_overflow_empty_subtitle" msgid="2030874469510497397">"Eng oxirgi va yopilgan bulutchali chatlar shu yerda chiqadi"</string>
<string name="notification_unblockable_desc" msgid="2073030886006190804">"Bu bildirishnomalarni tahrirlash imkonsiz."</string>
<string name="notification_multichannel_desc" msgid="7414593090056236179">"Ushbu bildirishnomalar guruhi bu yerda sozlanmaydi"</string>
<string name="notification_delegate_header" msgid="1264510071031479920">"Ishonchli bildirishnoma"</string>
diff --git a/packages/SystemUI/src/com/android/systemui/SlicePermissionActivity.java b/packages/SystemUI/src/com/android/systemui/SlicePermissionActivity.java
index 449ed8c..57e6568 100644
--- a/packages/SystemUI/src/com/android/systemui/SlicePermissionActivity.java
+++ b/packages/SystemUI/src/com/android/systemui/SlicePermissionActivity.java
@@ -16,6 +16,7 @@
import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;
+import android.annotation.Nullable;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.slice.SliceManager;
@@ -29,6 +30,7 @@
import android.net.Uri;
import android.os.Bundle;
import android.text.BidiFormatter;
+import android.util.EventLog;
import android.util.Log;
import android.widget.CheckBox;
import android.widget.TextView;
@@ -50,10 +52,12 @@
mUri = getIntent().getParcelableExtra(SliceProvider.EXTRA_BIND_URI);
mCallingPkg = getIntent().getStringExtra(SliceProvider.EXTRA_PKG);
- mProviderPkg = getIntent().getStringExtra(SliceProvider.EXTRA_PROVIDER_PKG);
try {
PackageManager pm = getPackageManager();
+ mProviderPkg = pm.resolveContentProvider(mUri.getAuthority(),
+ PackageManager.GET_META_DATA).applicationInfo.packageName;
+ verifyCallingPkg();
CharSequence app1 = BidiFormatter.getInstance().unicodeWrap(pm.getApplicationInfo(
mCallingPkg, 0).loadSafeLabel(pm, PackageItemInfo.DEFAULT_MAX_LABEL_SIZE_PX,
PackageItemInfo.SAFE_LABEL_FLAG_TRIM
@@ -97,4 +101,27 @@
public void onDismiss(DialogInterface dialog) {
finish();
}
+
+ private void verifyCallingPkg() {
+ final String providerPkg = getIntent().getStringExtra(SliceProvider.EXTRA_PROVIDER_PKG);
+ if (providerPkg == null || mProviderPkg.equals(providerPkg)) return;
+ final String callingPkg = getCallingPkg();
+ EventLog.writeEvent(0x534e4554, "159145361", getUid(callingPkg));
+ }
+
+ @Nullable
+ private String getCallingPkg() {
+ final Uri referrer = getReferrer();
+ if (referrer == null) return null;
+ return referrer.getHost();
+ }
+
+ private int getUid(@Nullable final String pkg) {
+ if (pkg == null) return -1;
+ try {
+ return getPackageManager().getApplicationInfo(pkg, 0).uid;
+ } catch (NameNotFoundException e) {
+ }
+ return -1;
+ }
}
diff --git a/services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java b/services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java
index a704c58..66bbf66 100644
--- a/services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java
+++ b/services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java
@@ -372,7 +372,10 @@
checkArgument(getCallingUserId() == userId,
"Must be called by either same user or system");
- mAppOpsManager.checkPackage(Binder.getCallingUid(), pkg);
+ int callingUid = Binder.getCallingUid();
+ if (mAppOpsManager.checkPackage(callingUid, pkg) != AppOpsManager.MODE_ALLOWED) {
+ throw new SecurityException(pkg + " doesn't belong to uid " + callingUid);
+ }
}
@Override
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java
index fe116d9..397eeb2 100644
--- a/services/core/java/com/android/server/ConnectivityService.java
+++ b/services/core/java/com/android/server/ConnectivityService.java
@@ -74,7 +74,6 @@
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
-import android.content.res.Configuration;
import android.database.ContentObserver;
import android.net.CaptivePortal;
import android.net.CaptivePortalData;
@@ -83,18 +82,17 @@
import android.net.ConnectivityDiagnosticsManager.DataStallReport;
import android.net.ConnectivityManager;
import android.net.DataStallReportParcelable;
+import android.net.DnsResolverServiceManager;
import android.net.ICaptivePortal;
import android.net.IConnectivityDiagnosticsCallback;
import android.net.IConnectivityManager;
import android.net.IDnsResolver;
import android.net.IIpConnectivityMetrics;
import android.net.INetd;
-import android.net.INetdEventCallback;
import android.net.INetworkManagementEventObserver;
import android.net.INetworkMonitor;
import android.net.INetworkMonitorCallbacks;
import android.net.INetworkPolicyListener;
-import android.net.INetworkPolicyManager;
import android.net.INetworkStatsService;
import android.net.ISocketKeepaliveCallback;
import android.net.InetAddresses;
@@ -132,6 +130,7 @@
import android.net.Uri;
import android.net.VpnManager;
import android.net.VpnService;
+import android.net.metrics.INetdEventListener;
import android.net.metrics.IpConnectivityLog;
import android.net.metrics.NetworkEvent;
import android.net.netlink.InetDiagMessage;
@@ -172,8 +171,8 @@
import android.util.Pair;
import android.util.SparseArray;
import android.util.SparseIntArray;
-import android.util.Xml;
+import com.android.connectivity.aidl.INetworkAgent;
import com.android.internal.R;
import com.android.internal.annotations.GuardedBy;
import com.android.internal.annotations.VisibleForTesting;
@@ -188,7 +187,6 @@
import com.android.internal.util.IndentingPrintWriter;
import com.android.internal.util.LocationPermissionChecker;
import com.android.internal.util.MessageUtils;
-import com.android.internal.util.XmlUtils;
import com.android.modules.utils.BasicShellCommandHandler;
import com.android.net.module.util.LinkPropertiesUtils.CompareOrUpdateResult;
import com.android.net.module.util.LinkPropertiesUtils.CompareResult;
@@ -209,7 +207,6 @@
import com.android.server.connectivity.PermissionMonitor;
import com.android.server.connectivity.ProxyTracker;
import com.android.server.connectivity.Vpn;
-import com.android.server.net.BaseNetdEventCallback;
import com.android.server.net.BaseNetworkObserver;
import com.android.server.net.LockdownVpnTracker;
import com.android.server.net.NetworkPolicyManagerInternal;
@@ -219,14 +216,7 @@
import libcore.io.IoUtils;
-import org.xmlpull.v1.XmlPullParser;
-import org.xmlpull.v1.XmlPullParserException;
-
-import java.io.File;
import java.io.FileDescriptor;
-import java.io.FileNotFoundException;
-import java.io.FileReader;
-import java.io.IOException;
import java.io.PrintWriter;
import java.net.Inet4Address;
import java.net.InetAddress;
@@ -335,7 +325,7 @@
@VisibleForTesting
protected INetd mNetd;
private INetworkStatsService mStatsService;
- private INetworkPolicyManager mPolicyManager;
+ private NetworkPolicyManager mPolicyManager;
private NetworkPolicyManagerInternal mPolicyManagerInternal;
/**
@@ -556,6 +546,13 @@
private static final int EVENT_CAPPORT_DATA_CHANGED = 46;
/**
+ * Used by setRequireVpnForUids.
+ * arg1 = whether the specified UID ranges are required to use a VPN.
+ * obj = Array of UidRange objects.
+ */
+ private static final int EVENT_SET_REQUIRE_VPN_FOR_UIDS = 47;
+
+ /**
* Argument for {@link #EVENT_PROVISIONING_NOTIFICATION} to indicate that the notification
* should be shown.
*/
@@ -571,9 +568,8 @@
return sMagicDecoderRing.get(what, Integer.toString(what));
}
- private static IDnsResolver getDnsResolver() {
- return IDnsResolver.Stub
- .asInterface(ServiceManager.getService("dnsresolver"));
+ private static IDnsResolver getDnsResolver(Context context) {
+ return IDnsResolver.Stub.asInterface(DnsResolverServiceManager.getService(context));
}
/** Handler thread used for all of the handlers below. */
@@ -945,15 +941,15 @@
}
public ConnectivityService(Context context, INetworkManagementService netManager,
- INetworkStatsService statsService, INetworkPolicyManager policyManager) {
- this(context, netManager, statsService, policyManager, getDnsResolver(),
- new IpConnectivityLog(), NetdService.getInstance(), new Dependencies());
+ INetworkStatsService statsService) {
+ this(context, netManager, statsService, getDnsResolver(context), new IpConnectivityLog(),
+ NetdService.getInstance(), new Dependencies());
}
@VisibleForTesting
protected ConnectivityService(Context context, INetworkManagementService netManager,
- INetworkStatsService statsService, INetworkPolicyManager policyManager,
- IDnsResolver dnsresolver, IpConnectivityLog logger, INetd netd, Dependencies deps) {
+ INetworkStatsService statsService, IDnsResolver dnsresolver, IpConnectivityLog logger,
+ INetd netd, Dependencies deps) {
if (DBG) log("ConnectivityService starting up");
mDeps = Objects.requireNonNull(deps, "missing Dependencies");
@@ -991,7 +987,7 @@
mNMS = Objects.requireNonNull(netManager, "missing INetworkManagementService");
mStatsService = Objects.requireNonNull(statsService, "missing INetworkStatsService");
- mPolicyManager = Objects.requireNonNull(policyManager, "missing INetworkPolicyManager");
+ mPolicyManager = mContext.getSystemService(NetworkPolicyManager.class);
mPolicyManagerInternal = Objects.requireNonNull(
LocalServices.getService(NetworkPolicyManagerInternal.class),
"missing NetworkPolicyManagerInternal");
@@ -1007,12 +1003,7 @@
// To ensure uid rules are synchronized with Network Policy, register for
// NetworkPolicyManagerService events must happen prior to NetworkPolicyManagerService
// reading existing policy from disk.
- try {
- mPolicyManager.registerListener(mPolicyListener);
- } catch (RemoteException e) {
- // ouch, no rules updates means some processes may never get network
- loge("unable to register INetworkPolicyListener" + e);
- }
+ mPolicyManager.registerListener(mPolicyListener);
final PowerManager powerManager = (PowerManager) context.getSystemService(
Context.POWER_SERVICE);
@@ -1289,19 +1280,28 @@
}
}
- private Network[] getVpnUnderlyingNetworks(int uid) {
- synchronized (mVpns) {
- if (!mLockdownEnabled) {
- int user = UserHandle.getUserId(uid);
- Vpn vpn = mVpns.get(user);
- if (vpn != null && vpn.appliesToUid(uid)) {
- return vpn.getUnderlyingNetworks();
+ // TODO: determine what to do when more than one VPN applies to |uid|.
+ private NetworkAgentInfo getVpnForUid(int uid) {
+ synchronized (mNetworkForNetId) {
+ for (int i = 0; i < mNetworkForNetId.size(); i++) {
+ final NetworkAgentInfo nai = mNetworkForNetId.valueAt(i);
+ if (nai.isVPN() && nai.everConnected && nai.networkCapabilities.appliesToUid(uid)) {
+ return nai;
}
}
}
return null;
}
+ private Network[] getVpnUnderlyingNetworks(int uid) {
+ synchronized (mVpns) {
+ if (mLockdownEnabled) return null;
+ }
+ final NetworkAgentInfo nai = getVpnForUid(uid);
+ if (nai != null) return nai.declaredUnderlyingNetworks;
+ return null;
+ }
+
private NetworkState getUnfilteredActiveNetworkState(int uid) {
NetworkAgentInfo nai = getDefaultNetwork();
@@ -1327,7 +1327,7 @@
}
/**
- * Check if UID should be blocked from using the network with the given LinkProperties.
+ * Check if UID should be blocked from using the specified network.
*/
private boolean isNetworkWithLinkPropertiesBlocked(LinkProperties lp, int uid,
boolean ignoreBlocked) {
@@ -1335,12 +1335,7 @@
if (ignoreBlocked) {
return false;
}
- synchronized (mVpns) {
- final Vpn vpn = mVpns.get(UserHandle.getUserId(uid));
- if (vpn != null && vpn.getLockdown() && vpn.isBlockingUid(uid)) {
- return true;
- }
- }
+ if (isUidBlockedByVpn(uid, mVpnBlockedUidRanges)) return true;
final String iface = (lp == null ? "" : lp.getInterfaceName());
return mPolicyManagerInternal.isUidNetworkingBlocked(uid, iface);
}
@@ -1566,22 +1561,14 @@
nc, mDeps.getCallingUid(), callingPackageName));
}
- synchronized (mVpns) {
- if (!mLockdownEnabled) {
- Vpn vpn = mVpns.get(userId);
- if (vpn != null) {
- Network[] networks = vpn.getUnderlyingNetworks();
- if (networks != null) {
- for (Network network : networks) {
- nc = getNetworkCapabilitiesInternal(network);
- if (nc != null) {
- result.put(
- network,
- maybeSanitizeLocationInfoForCaller(
- nc, mDeps.getCallingUid(), callingPackageName));
- }
- }
- }
+ // No need to check mLockdownEnabled. If it's true, getVpnUnderlyingNetworks returns null.
+ final Network[] networks = getVpnUnderlyingNetworks(Binder.getCallingUid());
+ if (networks != null) {
+ for (Network network : networks) {
+ nc = getNetworkCapabilitiesInternal(network);
+ if (nc != null) {
+ result.put(network, maybeSanitizeLocationInfoForCaller(
+ nc, mDeps.getCallingUid(), callingPackageName));
}
}
}
@@ -1919,8 +1906,7 @@
return true;
}
- @VisibleForTesting
- protected final INetdEventCallback mNetdEventCallback = new BaseNetdEventCallback() {
+ private class NetdEventCallback extends INetdEventListener.Stub {
@Override
public void onPrivateDnsValidationEvent(int netId, String ipAddress,
String hostname, boolean validated) {
@@ -1936,8 +1922,8 @@
}
@Override
- public void onDnsEvent(int netId, int eventType, int returnCode, String hostname,
- String[] ipAddresses, int ipAddressesCount, long timestamp, int uid) {
+ public void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs,
+ String hostname, String[] ipAddresses, int ipAddressesCount, int uid) {
NetworkAgentInfo nai = getNetworkAgentInfoForNetId(netId);
// Netd event only allow registrants from system. Each NetworkMonitor thread is under
// the caller thread of registerNetworkAgent. Thus, it's not allowed to register netd
@@ -1956,21 +1942,42 @@
String prefixString, int prefixLength) {
mHandler.post(() -> handleNat64PrefixEvent(netId, added, prefixString, prefixLength));
}
- };
- private void registerNetdEventCallback() {
- final IIpConnectivityMetrics ipConnectivityMetrics = mDeps.getIpConnectivityMetrics();
- if (ipConnectivityMetrics == null) {
- Log.wtf(TAG, "Missing IIpConnectivityMetrics");
- return;
+ @Override
+ public void onConnectEvent(int netId, int error, int latencyMs, String ipAddr, int port,
+ int uid) {
}
+ @Override
+ public void onWakeupEvent(String prefix, int uid, int ethertype, int ipNextHeader,
+ byte[] dstHw, String srcIp, String dstIp, int srcPort, int dstPort,
+ long timestampNs) {
+ }
+
+ @Override
+ public void onTcpSocketStatsEvent(int[] networkIds, int[] sentPackets, int[] lostPackets,
+ int[] rttsUs, int[] sentAckDiffsMs) {
+ }
+
+ @Override
+ public int getInterfaceVersion() throws RemoteException {
+ return this.VERSION;
+ }
+
+ @Override
+ public String getInterfaceHash() {
+ return this.HASH;
+ }
+ };
+
+ @VisibleForTesting
+ protected final INetdEventListener mNetdEventCallback = new NetdEventCallback();
+
+ private void registerNetdEventCallback() {
try {
- ipConnectivityMetrics.addNetdEventCallback(
- INetdEventCallback.CALLBACK_CALLER_CONNECTIVITY_SERVICE,
- mNetdEventCallback);
+ mDnsResolver.registerEventListener(mNetdEventCallback);
} catch (Exception e) {
- loge("Error registering netd callback: " + e);
+ loge("Error registering DnsResolver callback: " + e);
}
}
@@ -2007,29 +2014,18 @@
void handleRestrictBackgroundChanged(boolean restrictBackground) {
if (mRestrictBackground == restrictBackground) return;
- for (final NetworkAgentInfo nai : mNetworkAgentInfos.values()) {
+ final List<UidRange> blockedRanges = mVpnBlockedUidRanges;
+ for (final NetworkAgentInfo nai : mNetworkAgentInfos) {
final boolean curMetered = nai.networkCapabilities.isMetered();
maybeNotifyNetworkBlocked(nai, curMetered, curMetered, mRestrictBackground,
- restrictBackground);
+ restrictBackground, blockedRanges, blockedRanges);
}
mRestrictBackground = restrictBackground;
}
- private boolean isUidNetworkingWithVpnBlocked(int uid, int uidRules, boolean isNetworkMetered,
+ private boolean isUidBlockedByRules(int uid, int uidRules, boolean isNetworkMetered,
boolean isBackgroundRestricted) {
- synchronized (mVpns) {
- final Vpn vpn = mVpns.get(UserHandle.getUserId(uid));
- // Because the return value of this function depends on the list of UIDs the
- // always-on VPN blocks when in lockdown mode, when the always-on VPN changes that
- // list all state depending on the return value of this function has to be recomputed.
- // TODO: add a trigger when the always-on VPN sets its blocked UIDs to reevaluate and
- // send the necessary onBlockedStatusChanged callbacks.
- if (vpn != null && vpn.getLockdown() && vpn.isBlockingUid(uid)) {
- return true;
- }
- }
-
return NetworkPolicyManagerInternal.isUidNetworkingBlocked(uid, uidRules,
isNetworkMetered, isBackgroundRestricted);
}
@@ -2715,7 +2711,7 @@
*/
private NetworkAgentInfo[] networksSortedById() {
NetworkAgentInfo[] networks = new NetworkAgentInfo[0];
- networks = mNetworkAgentInfos.values().toArray(networks);
+ networks = mNetworkAgentInfos.toArray(networks);
Arrays.sort(networks, Comparator.comparingInt(nai -> nai.network.getNetId()));
return networks;
}
@@ -2761,11 +2757,6 @@
handleAsyncChannelHalfConnect(msg);
break;
}
- case AsyncChannel.CMD_CHANNEL_DISCONNECT: {
- NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo);
- if (nai != null) nai.asyncChannel.disconnect();
- break;
- }
case AsyncChannel.CMD_CHANNEL_DISCONNECTED: {
handleAsyncChannelDisconnected(msg);
break;
@@ -2775,8 +2766,9 @@
}
private void maybeHandleNetworkAgentMessage(Message msg) {
- NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo);
- if (nai == null) {
+ final Pair<NetworkAgentInfo, Object> arg = (Pair<NetworkAgentInfo, Object>) msg.obj;
+ final NetworkAgentInfo nai = arg.first;
+ if (!mNetworkAgentInfos.contains(nai)) {
if (VDBG) {
log(String.format("%s from unknown NetworkAgent", eventName(msg.what)));
}
@@ -2785,7 +2777,7 @@
switch (msg.what) {
case NetworkAgent.EVENT_NETWORK_CAPABILITIES_CHANGED: {
- NetworkCapabilities networkCapabilities = (NetworkCapabilities) msg.obj;
+ NetworkCapabilities networkCapabilities = (NetworkCapabilities) arg.second;
if (networkCapabilities.hasConnectivityManagedCapability()) {
Log.wtf(TAG, "BUG: " + nai + " has CS-managed capability.");
}
@@ -2802,13 +2794,13 @@
break;
}
case NetworkAgent.EVENT_NETWORK_PROPERTIES_CHANGED: {
- LinkProperties newLp = (LinkProperties) msg.obj;
+ LinkProperties newLp = (LinkProperties) arg.second;
processLinkPropertiesFromAgent(nai, newLp);
handleUpdateLinkProperties(nai, newLp);
break;
}
case NetworkAgent.EVENT_NETWORK_INFO_CHANGED: {
- NetworkInfo info = (NetworkInfo) msg.obj;
+ NetworkInfo info = (NetworkInfo) arg.second;
updateNetworkInfo(nai, info);
break;
}
@@ -2833,7 +2825,7 @@
break;
}
case NetworkAgent.EVENT_SOCKET_KEEPALIVE: {
- mKeepaliveTracker.handleEventSocketKeepalive(nai, msg);
+ mKeepaliveTracker.handleEventSocketKeepalive(nai, msg.arg1, msg.arg2);
break;
}
case NetworkAgent.EVENT_UNDERLYING_NETWORKS_CHANGED: {
@@ -2844,7 +2836,7 @@
}
final ArrayList<Network> underlying;
try {
- underlying = ((Bundle) msg.obj).getParcelableArrayList(
+ underlying = ((Bundle) arg.second).getParcelableArrayList(
NetworkAgent.UNDERLYING_NETWORKS_KEY);
} catch (NullPointerException | ClassCastException e) {
break;
@@ -2923,8 +2915,7 @@
if (nai.lastCaptivePortalDetected &&
Settings.Global.CAPTIVE_PORTAL_MODE_AVOID == getCaptivePortalMode()) {
if (DBG) log("Avoiding captive portal network: " + nai.toShortString());
- nai.asyncChannel.sendMessage(
- NetworkAgent.CMD_PREVENT_AUTOMATIC_RECONNECT);
+ nai.onPreventAutomaticReconnect();
teardownUnneededNetwork(nai);
break;
}
@@ -3016,13 +3007,10 @@
}
updateInetCondition(nai);
// Let the NetworkAgent know the state of its network
- Bundle redirectUrlBundle = new Bundle();
- redirectUrlBundle.putString(NetworkAgent.REDIRECT_URL_KEY, redirectUrl);
// TODO: Evaluate to update partial connectivity to status to NetworkAgent.
- nai.asyncChannel.sendMessage(
- NetworkAgent.CMD_REPORT_NETWORK_STATUS,
- (valid ? NetworkAgent.VALID_NETWORK : NetworkAgent.INVALID_NETWORK),
- 0, redirectUrlBundle);
+ nai.onValidationStatusChanged(
+ valid ? NetworkAgent.VALID_NETWORK : NetworkAgent.INVALID_NETWORK,
+ redirectUrl);
// If NetworkMonitor detects partial connectivity before
// EVENT_PROMPT_UNVALIDATED arrives, show the partial connectivity notification
@@ -3056,6 +3044,14 @@
}
break;
}
+ case NetworkAgentInfo.EVENT_AGENT_REGISTERED: {
+ handleNetworkAgentRegistered(msg);
+ break;
+ }
+ case NetworkAgentInfo.EVENT_AGENT_DISCONNECTED: {
+ handleNetworkAgentDisconnected(msg);
+ break;
+ }
}
return true;
}
@@ -3232,7 +3228,7 @@
private void handlePrivateDnsSettingsChanged() {
final PrivateDnsConfig cfg = mDnsManager.getPrivateDnsConfig();
- for (NetworkAgentInfo nai : mNetworkAgentInfos.values()) {
+ for (NetworkAgentInfo nai : mNetworkAgentInfos) {
handlePerNetworkPrivateDnsConfig(nai, cfg);
if (networkRequiresPrivateDnsValidation(nai)) {
handleUpdateLinkProperties(nai, new LinkProperties(nai.linkProperties));
@@ -3330,7 +3326,6 @@
private void handleAsyncChannelHalfConnect(Message msg) {
ensureRunningOnConnectivityServiceThread();
- final AsyncChannel ac = (AsyncChannel) msg.obj;
if (mNetworkProviderInfos.containsKey(msg.replyTo)) {
if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) {
if (VDBG) log("NetworkFactory connected");
@@ -3342,39 +3337,45 @@
loge("Error connecting NetworkFactory");
mNetworkProviderInfos.remove(msg.obj);
}
- } else if (mNetworkAgentInfos.containsKey(msg.replyTo)) {
- if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) {
- if (VDBG) log("NetworkAgent connected");
- // A network agent has requested a connection. Establish the connection.
- mNetworkAgentInfos.get(msg.replyTo).asyncChannel.
- sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION);
- } else {
- loge("Error connecting NetworkAgent");
- NetworkAgentInfo nai = mNetworkAgentInfos.remove(msg.replyTo);
- if (nai != null) {
- final boolean wasDefault = isDefaultNetwork(nai);
- synchronized (mNetworkForNetId) {
- mNetworkForNetId.remove(nai.network.getNetId());
- }
- mNetIdManager.releaseNetId(nai.network.getNetId());
- // Just in case.
- mLegacyTypeTracker.remove(nai, wasDefault);
+ }
+ }
+
+ private void handleNetworkAgentRegistered(Message msg) {
+ final NetworkAgentInfo nai = (NetworkAgentInfo) msg.obj;
+ if (!mNetworkAgentInfos.contains(nai)) {
+ return;
+ }
+
+ if (msg.arg1 == NetworkAgentInfo.ARG_AGENT_SUCCESS) {
+ if (VDBG) log("NetworkAgent registered");
+ } else {
+ loge("Error connecting NetworkAgent");
+ mNetworkAgentInfos.remove(nai);
+ if (nai != null) {
+ final boolean wasDefault = isDefaultNetwork(nai);
+ synchronized (mNetworkForNetId) {
+ mNetworkForNetId.remove(nai.network.getNetId());
}
+ mNetIdManager.releaseNetId(nai.network.getNetId());
+ // Just in case.
+ mLegacyTypeTracker.remove(nai, wasDefault);
}
}
}
- // This is a no-op if it's called with a message designating a network that has
+ private void handleNetworkAgentDisconnected(Message msg) {
+ NetworkAgentInfo nai = (NetworkAgentInfo) msg.obj;
+ if (mNetworkAgentInfos.contains(nai)) {
+ disconnectAndDestroyNetwork(nai);
+ }
+ }
+
+ // This is a no-op if it's called with a message designating a provider that has
// already been destroyed, because its reference will not be found in the relevant
// maps.
private void handleAsyncChannelDisconnected(Message msg) {
- NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo);
- if (nai != null) {
- disconnectAndDestroyNetwork(nai);
- } else {
- NetworkProviderInfo npi = mNetworkProviderInfos.remove(msg.replyTo);
- if (DBG && npi != null) log("unregisterNetworkFactory for " + npi.name);
- }
+ NetworkProviderInfo npi = mNetworkProviderInfos.remove(msg.replyTo);
+ if (DBG && npi != null) log("unregisterNetworkFactory for " + npi.name);
}
// Destroys a network, remove references to it from the internal state managed by
@@ -3418,7 +3419,7 @@
wakeupModifyInterface(iface, nai.networkCapabilities, false);
}
nai.networkMonitor().notifyNetworkDisconnected();
- mNetworkAgentInfos.remove(nai.messenger);
+ mNetworkAgentInfos.remove(nai);
nai.clatd.update();
synchronized (mNetworkForNetId) {
// Remove the NetworkAgent, but don't mark the netId as
@@ -3526,7 +3527,7 @@
mNetworkRequests.put(nri.request, nri);
mNetworkRequestInfoLogs.log("REGISTER " + nri);
if (nri.request.isListen()) {
- for (NetworkAgentInfo network : mNetworkAgentInfos.values()) {
+ for (NetworkAgentInfo network : mNetworkAgentInfos) {
if (nri.request.networkCapabilities.hasSignalStrength() &&
network.satisfiesImmutableCapabilitiesOf(nri.request)) {
updateSignalStrengthThresholds(network, "REGISTER", nri.request);
@@ -3591,8 +3592,8 @@
private boolean isNetworkPotentialSatisfier(
@NonNull final NetworkAgentInfo candidate, @NonNull final NetworkRequestInfo nri) {
// listen requests won't keep up a network satisfying it. If this is not a multilayer
- // request, we can return immediately. For multilayer requests, we have to check to see if
- // any of the multilayer requests may have a potential satisfier.
+ // request, return immediately. For multilayer requests, check to see if any of the
+ // multilayer requests may have a potential satisfier.
if (!nri.isMultilayerRequest() && nri.mRequests.get(0).isListen()) {
return false;
}
@@ -3742,7 +3743,7 @@
} else {
// listens don't have a singular affectedNetwork. Check all networks to see
// if this listen request applies and remove it.
- for (NetworkAgentInfo nai : mNetworkAgentInfos.values()) {
+ for (NetworkAgentInfo nai : mNetworkAgentInfos) {
nai.removeRequest(nri.request.requestId);
if (nri.request.networkCapabilities.hasSignalStrength() &&
nai.satisfiesImmutableCapabilitiesOf(nri.request)) {
@@ -3815,13 +3816,12 @@
}
if (always) {
- nai.asyncChannel.sendMessage(
- NetworkAgent.CMD_SAVE_ACCEPT_UNVALIDATED, encodeBool(accept));
+ nai.onSaveAcceptUnvalidated(accept);
}
if (!accept) {
// Tell the NetworkAgent to not automatically reconnect to the network.
- nai.asyncChannel.sendMessage(NetworkAgent.CMD_PREVENT_AUTOMATIC_RECONNECT);
+ nai.onPreventAutomaticReconnect();
// Teardown the network.
teardownUnneededNetwork(nai);
}
@@ -3852,13 +3852,12 @@
// TODO: Use the current design or save the user choice into IpMemoryStore.
if (always) {
- nai.asyncChannel.sendMessage(
- NetworkAgent.CMD_SAVE_ACCEPT_UNVALIDATED, encodeBool(accept));
+ nai.onSaveAcceptUnvalidated(accept);
}
if (!accept) {
// Tell the NetworkAgent to not automatically reconnect to the network.
- nai.asyncChannel.sendMessage(NetworkAgent.CMD_PREVENT_AUTOMATIC_RECONNECT);
+ nai.onPreventAutomaticReconnect();
// Tear down the network.
teardownUnneededNetwork(nai);
} else {
@@ -3996,7 +3995,7 @@
private void rematchForAvoidBadWifiUpdate() {
rematchAllNetworksAndRequests();
- for (NetworkAgentInfo nai: mNetworkAgentInfos.values()) {
+ for (NetworkAgentInfo nai: mNetworkAgentInfos) {
if (nai.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) {
sendUpdatedScoreToFactories(nai);
}
@@ -4139,7 +4138,7 @@
// to a network that provides no or limited connectivity is not useful, because the user
// cannot use that network except through the notification shown by this method, and the
// notification is only shown if the network is explicitly selected by the user.
- nai.asyncChannel.sendMessage(NetworkAgent.CMD_PREVENT_AUTOMATIC_RECONNECT);
+ nai.onPreventAutomaticReconnect();
// TODO: Evaluate if it's needed to wait 8 seconds for triggering notification when
// NetworkMonitor detects the network is partial connectivity. Need to change the design to
@@ -4301,6 +4300,9 @@
case EVENT_DATA_SAVER_CHANGED:
handleRestrictBackgroundChanged(toBool(msg.arg1));
break;
+ case EVENT_SET_REQUIRE_VPN_FOR_UIDS:
+ handleSetRequireVpnForUids(toBool(msg.arg1), (UidRange[]) msg.obj);
+ break;
}
}
}
@@ -4469,8 +4471,7 @@
if (!nai.everConnected) {
return;
}
- LinkProperties lp = getLinkProperties(nai);
- if (isNetworkWithLinkPropertiesBlocked(lp, uid, false)) {
+ if (isNetworkWithLinkPropertiesBlocked(nai.linkProperties, uid, false)) {
return;
}
nai.networkMonitor().forceReevaluation(uid);
@@ -4789,7 +4790,7 @@
return new VpnInfo[0];
}
List<VpnInfo> infoList = new ArrayList<>();
- for (NetworkAgentInfo nai : mNetworkAgentInfos.values()) {
+ for (NetworkAgentInfo nai : mNetworkAgentInfos) {
VpnInfo info = createVpnInfo(nai);
if (info != null) {
infoList.add(info);
@@ -4890,13 +4891,63 @@
*/
private void propagateUnderlyingNetworkCapabilities(Network updatedNetwork) {
ensureRunningOnConnectivityServiceThread();
- for (NetworkAgentInfo nai : mNetworkAgentInfos.values()) {
+ for (NetworkAgentInfo nai : mNetworkAgentInfos) {
if (updatedNetwork == null || hasUnderlyingNetwork(nai, updatedNetwork)) {
updateCapabilitiesForNetwork(nai);
}
}
}
+ private boolean isUidBlockedByVpn(int uid, List<UidRange> blockedUidRanges) {
+ // Determine whether this UID is blocked because of always-on VPN lockdown. If a VPN applies
+ // to the UID, then the UID is not blocked because always-on VPN lockdown applies only when
+ // a VPN is not up.
+ final NetworkAgentInfo vpnNai = getVpnForUid(uid);
+ if (vpnNai != null && !vpnNai.networkAgentConfig.allowBypass) return false;
+ for (UidRange range : blockedUidRanges) {
+ if (range.contains(uid)) return true;
+ }
+ return false;
+ }
+
+ @Override
+ public void setRequireVpnForUids(boolean requireVpn, UidRange[] ranges) {
+ NetworkStack.checkNetworkStackPermission(mContext);
+ mHandler.sendMessage(mHandler.obtainMessage(EVENT_SET_REQUIRE_VPN_FOR_UIDS,
+ encodeBool(requireVpn), 0 /* arg2 */, ranges));
+ }
+
+ private void handleSetRequireVpnForUids(boolean requireVpn, UidRange[] ranges) {
+ if (DBG) {
+ Log.d(TAG, "Setting VPN " + (requireVpn ? "" : "not ") + "required for UIDs: "
+ + Arrays.toString(ranges));
+ }
+ // Cannot use a Set since the list of UID ranges might contain duplicates.
+ final List<UidRange> newVpnBlockedUidRanges = new ArrayList(mVpnBlockedUidRanges);
+ for (int i = 0; i < ranges.length; i++) {
+ if (requireVpn) {
+ newVpnBlockedUidRanges.add(ranges[i]);
+ } else {
+ newVpnBlockedUidRanges.remove(ranges[i]);
+ }
+ }
+
+ try {
+ mNetd.networkRejectNonSecureVpn(requireVpn, toUidRangeStableParcels(ranges));
+ } catch (RemoteException | ServiceSpecificException e) {
+ Log.e(TAG, "setRequireVpnForUids(" + requireVpn + ", "
+ + Arrays.toString(ranges) + "): netd command failed: " + e);
+ }
+
+ for (final NetworkAgentInfo nai : mNetworkAgentInfos) {
+ final boolean curMetered = nai.networkCapabilities.isMetered();
+ maybeNotifyNetworkBlocked(nai, curMetered, curMetered, mRestrictBackground,
+ mRestrictBackground, mVpnBlockedUidRanges, newVpnBlockedUidRanges);
+ }
+
+ mVpnBlockedUidRanges = newVpnBlockedUidRanges;
+ }
+
@Override
public boolean updateLockdownVpn() {
if (mDeps.getCallingUid() != Process.SYSTEM_UID) {
@@ -5081,101 +5132,6 @@
}
@Override
- public int checkMobileProvisioning(int suggestedTimeOutMs) {
- // TODO: Remove? Any reason to trigger a provisioning check?
- return -1;
- }
-
- /** Location to an updatable file listing carrier provisioning urls.
- * An example:
- *
- * <?xml version="1.0" encoding="utf-8"?>
- * <provisioningUrls>
- * <provisioningUrl mcc="310" mnc="4">http://myserver.com/foo?mdn=%3$s&iccid=%1$s&imei=%2$s</provisioningUrl>
- * </provisioningUrls>
- */
- private static final String PROVISIONING_URL_PATH =
- "/data/misc/radio/provisioning_urls.xml";
- private final File mProvisioningUrlFile = new File(PROVISIONING_URL_PATH);
-
- /** XML tag for root element. */
- private static final String TAG_PROVISIONING_URLS = "provisioningUrls";
- /** XML tag for individual url */
- private static final String TAG_PROVISIONING_URL = "provisioningUrl";
- /** XML attribute for mcc */
- private static final String ATTR_MCC = "mcc";
- /** XML attribute for mnc */
- private static final String ATTR_MNC = "mnc";
-
- private String getProvisioningUrlBaseFromFile() {
- XmlPullParser parser;
- Configuration config = mContext.getResources().getConfiguration();
-
- try (FileReader fileReader = new FileReader(mProvisioningUrlFile)) {
- parser = Xml.newPullParser();
- parser.setInput(fileReader);
- XmlUtils.beginDocument(parser, TAG_PROVISIONING_URLS);
-
- while (true) {
- XmlUtils.nextElement(parser);
-
- String element = parser.getName();
- if (element == null) break;
-
- if (element.equals(TAG_PROVISIONING_URL)) {
- String mcc = parser.getAttributeValue(null, ATTR_MCC);
- try {
- if (mcc != null && Integer.parseInt(mcc) == config.mcc) {
- String mnc = parser.getAttributeValue(null, ATTR_MNC);
- if (mnc != null && Integer.parseInt(mnc) == config.mnc) {
- parser.next();
- if (parser.getEventType() == XmlPullParser.TEXT) {
- return parser.getText();
- }
- }
- }
- } catch (NumberFormatException e) {
- loge("NumberFormatException in getProvisioningUrlBaseFromFile: " + e);
- }
- }
- }
- return null;
- } catch (FileNotFoundException e) {
- loge("Carrier Provisioning Urls file not found");
- } catch (XmlPullParserException e) {
- loge("Xml parser exception reading Carrier Provisioning Urls file: " + e);
- } catch (IOException e) {
- loge("I/O exception reading Carrier Provisioning Urls file: " + e);
- }
- return null;
- }
-
- @Override
- public String getMobileProvisioningUrl() {
- enforceSettingsPermission();
- String url = getProvisioningUrlBaseFromFile();
- if (TextUtils.isEmpty(url)) {
- url = mContext.getResources().getString(R.string.mobile_provisioning_url);
- log("getMobileProvisioningUrl: mobile_provisioining_url from resource =" + url);
- } else {
- log("getMobileProvisioningUrl: mobile_provisioning_url from File =" + url);
- }
- // populate the iccid, imei and phone number in the provisioning url.
- if (!TextUtils.isEmpty(url)) {
- String phoneNumber = mTelephonyManager.getLine1Number();
- if (TextUtils.isEmpty(phoneNumber)) {
- phoneNumber = "0000000000";
- }
- url = String.format(url,
- mTelephonyManager.getSimSerialNumber() /* ICCID */,
- mTelephonyManager.getDeviceId() /* IMEI */,
- phoneNumber /* Phone number */);
- }
-
- return url;
- }
-
- @Override
public void setProvisioningNotificationVisible(boolean visible, int networkType,
String action) {
enforceSettingsPermission();
@@ -5591,7 +5547,7 @@
mAppOpsManager.checkPackage(callerUid, callerPackageName);
}
- private ArrayList<Integer> getSignalStrengthThresholds(@NonNull final NetworkAgentInfo nai) {
+ private int[] getSignalStrengthThresholds(@NonNull final NetworkAgentInfo nai) {
final SortedSet<Integer> thresholds = new TreeSet<>();
synchronized (nai) {
for (final NetworkRequestInfo nri : mNetworkRequests.values()) {
@@ -5603,14 +5559,13 @@
}
}
}
- return new ArrayList<>(thresholds);
+ // TODO: use NetworkStackUtils.convertToIntArray after moving it
+ return ArrayUtils.convertToIntArray(new ArrayList<>(thresholds));
}
private void updateSignalStrengthThresholds(
NetworkAgentInfo nai, String reason, NetworkRequest request) {
- ArrayList<Integer> thresholdsArray = getSignalStrengthThresholds(nai);
- Bundle thresholds = new Bundle();
- thresholds.putIntegerArrayList("thresholds", thresholdsArray);
+ final int[] thresholdsArray = getSignalStrengthThresholds(nai);
if (VDBG || (DBG && !"CONNECT".equals(reason))) {
String detail;
@@ -5620,12 +5575,10 @@
detail = reason;
}
log(String.format("updateSignalStrengthThresholds: %s, sending %s to %s",
- detail, Arrays.toString(thresholdsArray.toArray()), nai.toShortString()));
+ detail, Arrays.toString(thresholdsArray), nai.toShortString()));
}
- nai.asyncChannel.sendMessage(
- android.net.NetworkAgent.CMD_SET_SIGNAL_STRENGTH_THRESHOLDS,
- 0, 0, thresholds);
+ nai.onSignalStrengthThresholdsUpdated(thresholdsArray);
}
private void ensureValidNetworkSpecifier(NetworkCapabilities nc) {
@@ -5735,7 +5688,7 @@
nai = mNetworkForNetId.get(network.getNetId());
}
if (nai != null) {
- nai.asyncChannel.sendMessage(android.net.NetworkAgent.CMD_REQUEST_BANDWIDTH_UPDATE);
+ nai.onBandwidthUpdateRequested();
synchronized (mBandwidthRequests) {
final int uid = mDeps.getCallingUid();
Integer uidReqs = mBandwidthRequests.get(uid);
@@ -5978,7 +5931,13 @@
// NetworkAgentInfo keyed off its connecting messenger
// TODO - eval if we can reduce the number of lists/hashmaps/sparsearrays
// NOTE: Only should be accessed on ConnectivityServiceThread, except dump().
- private final HashMap<Messenger, NetworkAgentInfo> mNetworkAgentInfos = new HashMap<>();
+ private final ArraySet<NetworkAgentInfo> mNetworkAgentInfos = new ArraySet<>();
+
+ // UID ranges for users that are currently blocked by VPNs.
+ // This array is accessed and iterated on multiple threads without holding locks, so its
+ // contents must never be mutated. When the ranges change, the array is replaced with a new one
+ // (on the handler thread).
+ private volatile List<UidRange> mVpnBlockedUidRanges = new ArrayList<>();
@GuardedBy("mBlockedAppUids")
private final HashSet<Integer> mBlockedAppUids = new HashSet<>();
@@ -6026,17 +5985,17 @@
/**
* Register a new agent. {@see #registerNetworkAgent} below.
*/
- public Network registerNetworkAgent(Messenger messenger, NetworkInfo networkInfo,
+ public Network registerNetworkAgent(INetworkAgent na, NetworkInfo networkInfo,
LinkProperties linkProperties, NetworkCapabilities networkCapabilities,
int currentScore, NetworkAgentConfig networkAgentConfig) {
- return registerNetworkAgent(messenger, networkInfo, linkProperties, networkCapabilities,
+ return registerNetworkAgent(na, networkInfo, linkProperties, networkCapabilities,
currentScore, networkAgentConfig, NetworkProvider.ID_NONE);
}
/**
* Register a new agent with ConnectivityService to handle a network.
*
- * @param messenger a messenger for ConnectivityService to contact the agent asynchronously.
+ * @param na a reference for ConnectivityService to contact the agent asynchronously.
* @param networkInfo the initial info associated with this network. It can be updated later :
* see {@link #updateNetworkInfo}.
* @param linkProperties the initial link properties of this network. They can be updated
@@ -6049,7 +6008,7 @@
* @param providerId the ID of the provider owning this NetworkAgent.
* @return the network created for this agent.
*/
- public Network registerNetworkAgent(Messenger messenger, NetworkInfo networkInfo,
+ public Network registerNetworkAgent(INetworkAgent na, NetworkInfo networkInfo,
LinkProperties linkProperties, NetworkCapabilities networkCapabilities,
int currentScore, NetworkAgentConfig networkAgentConfig, int providerId) {
if (networkCapabilities.hasTransport(TRANSPORT_TEST)) {
@@ -6061,14 +6020,14 @@
final int uid = mDeps.getCallingUid();
final long token = Binder.clearCallingIdentity();
try {
- return registerNetworkAgentInternal(messenger, networkInfo, linkProperties,
+ return registerNetworkAgentInternal(na, networkInfo, linkProperties,
networkCapabilities, currentScore, networkAgentConfig, providerId, uid);
} finally {
Binder.restoreCallingIdentity(token);
}
}
- private Network registerNetworkAgentInternal(Messenger messenger, NetworkInfo networkInfo,
+ private Network registerNetworkAgentInternal(INetworkAgent na, NetworkInfo networkInfo,
LinkProperties linkProperties, NetworkCapabilities networkCapabilities,
int currentScore, NetworkAgentConfig networkAgentConfig, int providerId, int uid) {
if (networkCapabilities.hasTransport(TRANSPORT_TEST)) {
@@ -6084,7 +6043,7 @@
// TODO: Instead of passing mDefaultRequest, provide an API to determine whether a Network
// satisfies mDefaultRequest.
final NetworkCapabilities nc = new NetworkCapabilities(networkCapabilities);
- final NetworkAgentInfo nai = new NetworkAgentInfo(messenger, new AsyncChannel(),
+ final NetworkAgentInfo nai = new NetworkAgentInfo(na,
new Network(mNetIdManager.reserveNetId()), new NetworkInfo(networkInfo), lp, nc,
currentScore, mContext, mTrackerHandler, new NetworkAgentConfig(networkAgentConfig),
this, mNetd, mDnsResolver, mNMS, providerId, uid);
@@ -6102,7 +6061,7 @@
nai.network, name, new NetworkMonitorCallbacks(nai));
// NetworkAgentInfo registration will finish when the NetworkMonitor is created.
// If the network disconnects or sends any other event before that, messages are deferred by
- // NetworkAgent until nai.asyncChannel.connect(), which will be called when finalizing the
+ // NetworkAgent until nai.connect(), which will be called when finalizing the
// registration.
return nai.network;
}
@@ -6110,7 +6069,7 @@
private void handleRegisterNetworkAgent(NetworkAgentInfo nai, INetworkMonitor networkMonitor) {
nai.onNetworkMonitorCreated(networkMonitor);
if (VDBG) log("Got NetworkAgent Messenger");
- mNetworkAgentInfos.put(nai.messenger, nai);
+ mNetworkAgentInfos.add(nai);
synchronized (mNetworkForNetId) {
mNetworkForNetId.put(nai.network.getNetId(), nai);
}
@@ -6120,7 +6079,7 @@
} catch (RemoteException e) {
e.rethrowAsRuntimeException();
}
- nai.asyncChannel.connect(mContext, mTrackerHandler, nai.messenger);
+ nai.notifyRegistered();
NetworkInfo networkInfo = nai.networkInfo;
updateNetworkInfo(nai, networkInfo);
updateUids(nai, null, nai.networkCapabilities);
@@ -6634,7 +6593,7 @@
if (meteredChanged) {
maybeNotifyNetworkBlocked(nai, oldMetered, newMetered, mRestrictBackground,
- mRestrictBackground);
+ mRestrictBackground, mVpnBlockedUidRanges, mVpnBlockedUidRanges);
}
final boolean roamingChanged = prevNc.hasCapability(NET_CAPABILITY_NOT_ROAMING) !=
@@ -6699,6 +6658,15 @@
return stableRanges;
}
+ private static UidRangeParcel[] toUidRangeStableParcels(UidRange[] ranges) {
+ final UidRangeParcel[] stableRanges = new UidRangeParcel[ranges.length];
+ for (int i = 0; i < ranges.length; i++) {
+ stableRanges[i] = new UidRangeParcel(ranges[i].start, ranges[i].stop);
+ }
+ return stableRanges;
+ }
+
+
private void updateUids(NetworkAgentInfo nai, NetworkCapabilities prevNc,
NetworkCapabilities newNc) {
Set<UidRange> prevRanges = null == prevNc ? null : prevNc.getUids();
@@ -6933,7 +6901,7 @@
break;
}
}
- nai.asyncChannel.disconnect();
+ nai.disconnect();
}
private void handleLingerComplete(NetworkAgentInfo oldNetwork) {
@@ -7123,7 +7091,7 @@
// Gather the list of all relevant agents and sort them by score.
final ArrayList<NetworkAgentInfo> nais = new ArrayList<>();
- for (final NetworkAgentInfo nai : mNetworkAgentInfos.values()) {
+ for (final NetworkAgentInfo nai : mNetworkAgentInfos) {
if (!nai.everConnected) continue;
nais.add(nai);
}
@@ -7158,7 +7126,7 @@
private void applyNetworkReassignment(@NonNull final NetworkReassignment changes,
final long now) {
- final Collection<NetworkAgentInfo> nais = mNetworkAgentInfos.values();
+ final Collection<NetworkAgentInfo> nais = mNetworkAgentInfos;
// Since most of the time there are only 0 or 1 background networks, it would probably
// be more efficient to just use an ArrayList here. TODO : measure performance
@@ -7251,7 +7219,7 @@
updateLegacyTypeTrackerAndVpnLockdownForRematch(oldDefaultNetwork, newDefaultNetwork, nais);
// Tear down all unneeded networks.
- for (NetworkAgentInfo nai : mNetworkAgentInfos.values()) {
+ for (NetworkAgentInfo nai : mNetworkAgentInfos) {
if (unneeded(nai, UnneededFor.TEARDOWN)) {
if (nai.getLingerExpiry() > 0) {
// This network has active linger timers and no requests, but is not
@@ -7488,7 +7456,7 @@
// This has to happen after matching the requests, because callbacks are just requests.
notifyNetworkCallbacks(networkAgent, ConnectivityManager.CALLBACK_PRECHECK);
} else if (state == NetworkInfo.State.DISCONNECTED) {
- networkAgent.asyncChannel.disconnect();
+ networkAgent.disconnect();
if (networkAgent.isVPN()) {
updateUids(networkAgent, networkAgent.networkCapabilities, null);
}
@@ -7526,7 +7494,9 @@
}
final boolean metered = nai.networkCapabilities.isMetered();
- final boolean blocked = isUidNetworkingWithVpnBlocked(nri.mUid, mUidRules.get(nri.mUid),
+ boolean blocked;
+ blocked = isUidBlockedByVpn(nri.mUid, mVpnBlockedUidRanges);
+ blocked |= isUidBlockedByRules(nri.mUid, mUidRules.get(nri.mUid),
metered, mRestrictBackground);
callCallbackForRequest(nri, nai, ConnectivityManager.CALLBACK_AVAILABLE, blocked ? 1 : 0);
}
@@ -7548,21 +7518,25 @@
* @param newRestrictBackground True if data saver is enabled.
*/
private void maybeNotifyNetworkBlocked(NetworkAgentInfo nai, boolean oldMetered,
- boolean newMetered, boolean oldRestrictBackground, boolean newRestrictBackground) {
+ boolean newMetered, boolean oldRestrictBackground, boolean newRestrictBackground,
+ List<UidRange> oldBlockedUidRanges, List<UidRange> newBlockedUidRanges) {
for (int i = 0; i < nai.numNetworkRequests(); i++) {
NetworkRequest nr = nai.requestAt(i);
NetworkRequestInfo nri = mNetworkRequests.get(nr);
final int uidRules = mUidRules.get(nri.mUid);
- final boolean oldBlocked, newBlocked;
- // mVpns lock needs to be hold here to ensure that the active VPN cannot be changed
- // between these two calls.
- synchronized (mVpns) {
- oldBlocked = isUidNetworkingWithVpnBlocked(nri.mUid, uidRules, oldMetered,
- oldRestrictBackground);
- newBlocked = isUidNetworkingWithVpnBlocked(nri.mUid, uidRules, newMetered,
- newRestrictBackground);
- }
+ final boolean oldBlocked, newBlocked, oldVpnBlocked, newVpnBlocked;
+
+ oldVpnBlocked = isUidBlockedByVpn(nri.mUid, oldBlockedUidRanges);
+ newVpnBlocked = (oldBlockedUidRanges != newBlockedUidRanges)
+ ? isUidBlockedByVpn(nri.mUid, newBlockedUidRanges)
+ : oldVpnBlocked;
+
+ oldBlocked = oldVpnBlocked || isUidBlockedByRules(nri.mUid, uidRules, oldMetered,
+ oldRestrictBackground);
+ newBlocked = newVpnBlocked || isUidBlockedByRules(nri.mUid, uidRules, newMetered,
+ newRestrictBackground);
+
if (oldBlocked != newBlocked) {
callCallbackForRequest(nri, nai, ConnectivityManager.CALLBACK_BLK_CHANGED,
encodeBool(newBlocked));
@@ -7576,19 +7550,14 @@
* @param newRules The new rules to apply.
*/
private void maybeNotifyNetworkBlockedForNewUidRules(int uid, int newRules) {
- for (final NetworkAgentInfo nai : mNetworkAgentInfos.values()) {
+ for (final NetworkAgentInfo nai : mNetworkAgentInfos) {
final boolean metered = nai.networkCapabilities.isMetered();
+ final boolean vpnBlocked = isUidBlockedByVpn(uid, mVpnBlockedUidRanges);
final boolean oldBlocked, newBlocked;
- // TODO: Consider that doze mode or turn on/off battery saver would deliver lots of uid
- // rules changed event. And this function actually loop through all connected nai and
- // its requests. It seems that mVpns lock will be grabbed frequently in this case.
- // Reduce the number of locking or optimize the use of lock are likely needed in future.
- synchronized (mVpns) {
- oldBlocked = isUidNetworkingWithVpnBlocked(
- uid, mUidRules.get(uid), metered, mRestrictBackground);
- newBlocked = isUidNetworkingWithVpnBlocked(
- uid, newRules, metered, mRestrictBackground);
- }
+ oldBlocked = vpnBlocked || isUidBlockedByRules(
+ uid, mUidRules.get(uid), metered, mRestrictBackground);
+ newBlocked = vpnBlocked || isUidBlockedByRules(
+ uid, newRules, metered, mRestrictBackground);
if (oldBlocked == newBlocked) {
continue;
}
@@ -7682,7 +7651,7 @@
ensureRunningOnConnectivityServiceThread();
ArrayList<Network> defaultNetworks = new ArrayList<>();
NetworkAgentInfo defaultNetwork = getDefaultNetwork();
- for (NetworkAgentInfo nai : mNetworkAgentInfos.values()) {
+ for (NetworkAgentInfo nai : mNetworkAgentInfos) {
if (nai.everConnected && (nai == defaultNetwork || nai.isVPN())) {
defaultNetworks.add(nai.network);
}
@@ -8233,6 +8202,13 @@
final IBinder iCb = cb.asBinder();
final NetworkRequestInfo nri = cbInfo.mRequestInfo;
+ // Connectivity Diagnostics are meant to be used with a single network request. It would be
+ // confusing for these networks to change when an NRI is satisfied in another layer.
+ if (nri.isMultilayerRequest()) {
+ throw new IllegalArgumentException("Connectivity Diagnostics do not support multilayer "
+ + "network requests.");
+ }
+
// This means that the client registered the same callback multiple times. Do
// not override the previous entry, and exit silently.
if (mConnectivityDiagnosticsCallbacks.containsKey(iCb)) {
@@ -8259,7 +8235,8 @@
synchronized (mNetworkForNetId) {
for (int i = 0; i < mNetworkForNetId.size(); i++) {
final NetworkAgentInfo nai = mNetworkForNetId.valueAt(i);
- if (nai.satisfies(nri.request)) {
+ // Connectivity Diagnostics rejects multilayer requests at registration hence get(0)
+ if (nai.satisfies(nri.mRequests.get(0))) {
matchingNetworks.add(nai);
}
}
@@ -8387,7 +8364,8 @@
mConnectivityDiagnosticsCallbacks.entrySet()) {
final ConnectivityDiagnosticsCallbackInfo cbInfo = entry.getValue();
final NetworkRequestInfo nri = cbInfo.mRequestInfo;
- if (nai.satisfies(nri.request)) {
+ // Connectivity Diagnostics rejects multilayer requests at registration hence get(0).
+ if (nai.satisfies(nri.mRequests.get(0))) {
if (checkConnectivityDiagnosticsPermissions(
nri.mPid, nri.mUid, nai, cbInfo.mCallingPackageName)) {
results.add(entry.getValue().mCb);
@@ -8416,7 +8394,7 @@
return false;
}
- for (NetworkAgentInfo virtual : mNetworkAgentInfos.values()) {
+ for (NetworkAgentInfo virtual : mNetworkAgentInfos) {
if (virtual.supportsUnderlyingNetworks()
&& virtual.networkCapabilities.getOwnerUid() == callbackUid
&& ArrayUtils.contains(virtual.declaredUnderlyingNetworks, nai.network)) {
diff --git a/services/core/java/com/android/server/ConnectivityServiceInitializer.java b/services/core/java/com/android/server/ConnectivityServiceInitializer.java
index 2bc8925..f701688 100644
--- a/services/core/java/com/android/server/ConnectivityServiceInitializer.java
+++ b/services/core/java/com/android/server/ConnectivityServiceInitializer.java
@@ -20,7 +20,6 @@
import static android.os.IServiceManager.DUMP_FLAG_PRIORITY_NORMAL;
import android.content.Context;
-import android.net.INetworkPolicyManager;
import android.net.INetworkStatsService;
import android.os.INetworkManagementService;
import android.os.ServiceManager;
@@ -38,7 +37,7 @@
super(context);
// TODO: Define formal APIs to get the needed services.
mConnectivity = new ConnectivityService(context, getNetworkManagementService(),
- getNetworkStatsService(), getNetworkPolicyManager());
+ getNetworkStatsService());
}
@Override
@@ -57,10 +56,4 @@
return INetworkStatsService.Stub.asInterface(
ServiceManager.getService(Context.NETWORK_STATS_SERVICE));
}
-
- private INetworkPolicyManager getNetworkPolicyManager() {
- return INetworkPolicyManager.Stub.asInterface(
- ServiceManager.getService(Context.NETWORK_POLICY_SERVICE));
- }
-
}
diff --git a/services/core/java/com/android/server/DynamicSystemService.java b/services/core/java/com/android/server/DynamicSystemService.java
index 500e768..f2b63a6 100644
--- a/services/core/java/com/android/server/DynamicSystemService.java
+++ b/services/core/java/com/android/server/DynamicSystemService.java
@@ -236,4 +236,9 @@
throw new RuntimeException(e.toString());
}
}
+
+ @Override
+ public long suggestScratchSize() throws RemoteException {
+ return getGsiService().suggestScratchSize();
+ }
}
diff --git a/services/core/java/com/android/server/OWNERS b/services/core/java/com/android/server/OWNERS
index 85523f7..f6b72d6 100644
--- a/services/core/java/com/android/server/OWNERS
+++ b/services/core/java/com/android/server/OWNERS
@@ -1,5 +1,5 @@
# Connectivity / Networking
-per-file ConnectivityService.java,NetworkManagementService.java,NsdService.java = codewiz@google.com, ek@google.com, jchalard@google.com, junyulai@google.com, lorenzo@google.com, reminv@google.com, satk@google.com
+per-file ConnectivityService.java,ConnectivityServiceInitializer.java,NetworkManagementService.java,NsdService.java = file:/services/core/java/com/android/server/net/OWNERS
# Vibrator / Threads
per-file VibratorService.java, DisplayThread.java = michaelwr@google.com
@@ -14,6 +14,9 @@
# Sensor Privacy
per-file SensorPrivacyService.java = file:platform/frameworks/native:/libs/sensorprivacy/OWNERS
+# ServiceWatcher
+per-file ServiceWatcher.java = sooniln@google.com
+
per-file *Alarm* = file:/apex/jobscheduler/OWNERS
per-file *AppOp* = file:/core/java/android/permission/OWNERS
per-file *Bluetooth* = file:/core/java/android/bluetooth/OWNERS
@@ -22,7 +25,7 @@
per-file *Network* = file:/services/core/java/com/android/server/net/OWNERS
per-file *Storage* = file:/core/java/android/os/storage/OWNERS
per-file *TimeUpdate* = file:/core/java/android/app/timezone/OWNERS
-per-file ConnectivityService.java = file:/services/core/java/com/android/server/net/OWNERS
+per-file DynamicSystemService.java = file:/packages/DynamicSystemInstallationService/OWNERS
per-file GestureLauncherService.java = file:platform/packages/apps/EmergencyInfo:/OWNERS
per-file IpSecService.java = file:/services/core/java/com/android/server/net/OWNERS
per-file MmsServiceBroker.java = file:/telephony/OWNERS
diff --git a/services/core/java/com/android/server/StorageManagerService.java b/services/core/java/com/android/server/StorageManagerService.java
index dd497a6..c8d457d 100644
--- a/services/core/java/com/android/server/StorageManagerService.java
+++ b/services/core/java/com/android/server/StorageManagerService.java
@@ -3298,6 +3298,9 @@
try {
mVold.unlockUserKey(userId, serialNumber, encodeBytes(token),
encodeBytes(secret));
+ } catch (ServiceSpecificException sse) {
+ Slog.d(TAG, "Expected if the user has not unlocked the device.", sse);
+ return;
} catch (Exception e) {
Slog.wtf(TAG, e);
return;
diff --git a/services/core/java/com/android/server/TelephonyRegistry.java b/services/core/java/com/android/server/TelephonyRegistry.java
index eb1123e..5f6e8df 100644
--- a/services/core/java/com/android/server/TelephonyRegistry.java
+++ b/services/core/java/com/android/server/TelephonyRegistry.java
@@ -304,7 +304,7 @@
private final LocalLog mLocalLog = new LocalLog(200);
- private final LocalLog mListenLog = new LocalLog(00);
+ private final LocalLog mListenLog = new LocalLog(200);
/**
* Per-phone map of precise data connection state. The key of the map is the pair of transport
@@ -2316,7 +2316,9 @@
pw.println("local logs:");
pw.increaseIndent();
mLocalLog.dump(fd, pw, args);
+ pw.decreaseIndent();
pw.println("listen logs:");
+ pw.increaseIndent();
mListenLog.dump(fd, pw, args);
pw.decreaseIndent();
pw.println("registrations: count=" + recordCount);
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java
index e4cdfe9..928ddab 100644
--- a/services/core/java/com/android/server/am/ActivityManagerService.java
+++ b/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -9481,6 +9481,7 @@
final long waitForNetworkTimeoutMs = Settings.Global.getLong(resolver,
NETWORK_ACCESS_TIMEOUT_MS, NETWORK_ACCESS_TIMEOUT_DEFAULT_MS);
mHiddenApiBlacklist.registerObserver();
+ mPlatformCompat.registerContentObserver();
final long pssDeferralMs = DeviceConfig.getLong(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER,
ACTIVITY_START_PSS_DEFER_CONFIG, 0L);
@@ -10459,12 +10460,10 @@
} finally {
Binder.restoreCallingIdentity(identity);
}
- if (uid == Process.INVALID_UID) {
- return Process.INVALID_UID;
- }
+ // If the uid is Process.INVALID_UID, the below 'if' check will be always true
if (UserHandle.getAppId(uid) != UserHandle.getAppId(callingUid)) {
// Requires the DUMP permission if the target package doesn't belong
- // to the caller.
+ // to the caller or it doesn't exist.
enforceCallingPermission(android.Manifest.permission.DUMP, function);
}
return uid;
@@ -13744,6 +13743,10 @@
// set on ION VMAs, therefore consider the entire ION heap as used kernel memory
kernelUsed += ionHeap;
}
+ final long gpuUsage = Debug.getGpuTotalUsageKb();
+ if (gpuUsage >= 0) {
+ pw.print(" GPU: "); pw.println(stringifyKBSize(gpuUsage));
+ }
final long lostRAM = memInfo.getTotalSizeKb() - (totalPss - totalSwapPss)
- memInfo.getFreeSizeKb() - memInfo.getCachedSizeKb()
- kernelUsed - memInfo.getZramTotalSizeKb();
@@ -14552,6 +14555,12 @@
// set on ION VMAs, therefore consider the entire ION heap as used kernel memory
kernelUsed += ionHeap;
}
+ final long gpuUsage = Debug.getGpuTotalUsageKb();
+ if (gpuUsage >= 0) {
+ memInfoBuilder.append(" GPU: ");
+ memInfoBuilder.append(stringifyKBSize(gpuUsage));
+ memInfoBuilder.append("\n");
+ }
memInfoBuilder.append(" Used RAM: ");
memInfoBuilder.append(stringifyKBSize(
totalPss - cachedPss + kernelUsed));
diff --git a/services/core/java/com/android/server/am/OomAdjuster.java b/services/core/java/com/android/server/am/OomAdjuster.java
index a2e8216..58f3894 100644
--- a/services/core/java/com/android/server/am/OomAdjuster.java
+++ b/services/core/java/com/android/server/am/OomAdjuster.java
@@ -387,7 +387,7 @@
ActiveUids uids = mTmpUidRecords;
uids.clear();
uids.put(uidRec.uid, uidRec);
- updateUidsLocked(uids, now);
+ updateUidsLocked(uids, SystemClock.elapsedRealtime());
mProcessList.incrementProcStateSeqAndNotifyAppsLocked(uids);
}
}
diff --git a/services/core/java/com/android/server/biometrics/AuthenticationClient.java b/services/core/java/com/android/server/biometrics/AuthenticationClient.java
index ef1b574..b4d74e0 100644
--- a/services/core/java/com/android/server/biometrics/AuthenticationClient.java
+++ b/services/core/java/com/android/server/biometrics/AuthenticationClient.java
@@ -16,16 +16,22 @@
package com.android.server.biometrics;
+import android.app.ActivityManager;
+import android.app.ActivityTaskManager;
+import android.content.ComponentName;
import android.content.Context;
+import android.content.pm.ApplicationInfo;
import android.hardware.biometrics.BiometricAuthenticator;
import android.hardware.biometrics.BiometricConstants;
import android.hardware.biometrics.BiometricsProtoEnums;
import android.os.IBinder;
import android.os.RemoteException;
import android.security.KeyStore;
+import android.util.EventLog;
import android.util.Slog;
import java.util.ArrayList;
+import java.util.List;
/**
* A class to keep track of the authentication state for a given client.
@@ -148,7 +154,54 @@
+ ", requireConfirmation: " + mRequireConfirmation
+ ", user: " + getTargetUserId());
+ // Ensure authentication only succeeds if the client activity is on top or is keyguard.
+ boolean isBackgroundAuth = false;
+ if (authenticated && !Utils.isKeyguard(getContext(), getOwnerString())) {
+ try {
+ final List<ActivityManager.RunningTaskInfo> tasks =
+ ActivityTaskManager.getService().getTasks(1);
+ if (tasks == null || tasks.isEmpty()) {
+ Slog.e(TAG, "No running tasks reported");
+ isBackgroundAuth = true;
+ } else {
+ final ComponentName topActivity = tasks.get(0).topActivity;
+ if (topActivity == null) {
+ Slog.e(TAG, "Unable to get top activity");
+ isBackgroundAuth = true;
+ } else {
+ final String topPackage = topActivity.getPackageName();
+ if (!topPackage.contentEquals(getOwnerString())) {
+ Slog.e(TAG, "Background authentication detected, top: " + topPackage
+ + ", client: " + this);
+ isBackgroundAuth = true;
+ }
+ }
+ }
+ } catch (RemoteException e) {
+ Slog.e(TAG, "Unable to get running tasks", e);
+ isBackgroundAuth = true;
+ }
+ }
+
+ // Fail authentication if we can't confirm the client activity is on top.
+ if (isBackgroundAuth) {
+ Slog.e(TAG, "Failing possible background authentication");
+ authenticated = false;
+
+ // SafetyNet logging for exploitation attempts of b/159249069.
+ final ApplicationInfo appInfo = getContext().getApplicationInfo();
+ EventLog.writeEvent(0x534e4554, "159249069", appInfo != null ? appInfo.uid : -1,
+ "Attempted background authentication");
+ }
+
if (authenticated) {
+ // SafetyNet logging for b/159249069 if constraint is violated.
+ if (isBackgroundAuth) {
+ final ApplicationInfo appInfo = getContext().getApplicationInfo();
+ EventLog.writeEvent(0x534e4554, "159249069", appInfo != null ? appInfo.uid : -1,
+ "Successful background authentication!");
+ }
+
mAlreadyDone = true;
if (listener != null) {
diff --git a/services/core/java/com/android/server/compat/CompatChange.java b/services/core/java/com/android/server/compat/CompatChange.java
index a8aa9aa..c4ff99b 100644
--- a/services/core/java/com/android/server/compat/CompatChange.java
+++ b/services/core/java/com/android/server/compat/CompatChange.java
@@ -61,6 +61,7 @@
ChangeListener mListener = null;
private Map<String, Boolean> mPackageOverrides;
+ private Map<String, Boolean> mDeferredOverrides;
public CompatChange(long changeId) {
this(changeId, null, -1, -1, false, false, null);
@@ -121,6 +122,56 @@
}
/**
+ * Tentatively set the state of this change for a given package name.
+ * The override will only take effect after that package is installed, if applicable.
+ *
+ * <p>Note, this method is not thread safe so callers must ensure thread safety.
+ *
+ * @param packageName Package name to tentatively enable the change for.
+ * @param enabled Whether or not to enable the change.
+ */
+ void addPackageDeferredOverride(String packageName, boolean enabled) {
+ if (getLoggingOnly()) {
+ throw new IllegalArgumentException(
+ "Can't add overrides for a logging only change " + toString());
+ }
+ if (mDeferredOverrides == null) {
+ mDeferredOverrides = new HashMap<>();
+ }
+ mDeferredOverrides.put(packageName, enabled);
+ }
+
+ /**
+ * Rechecks an existing (and possibly deferred) override.
+ *
+ * <p>For deferred overrides, check if they can be promoted to a regular override. For regular
+ * overrides, check if they need to be demoted to deferred.</p>
+ *
+ * @param packageName Package name to apply deferred overrides for.
+ * @param allowed Whether the override is allowed.
+ *
+ * @return {@code true} if the recheck yielded a result that requires invalidating caches
+ * (a deferred override was consolidated or a regular override was removed).
+ */
+ boolean recheckOverride(String packageName, boolean allowed) {
+ // A deferred override now is allowed by the policy, so promote it to a regular override.
+ if (hasDeferredOverride(packageName) && allowed) {
+ boolean overrideValue = mDeferredOverrides.remove(packageName);
+ addPackageOverride(packageName, overrideValue);
+ return true;
+ }
+ // A previously set override is no longer allowed by the policy, so make it deferred.
+ if (hasOverride(packageName) && !allowed) {
+ boolean overrideValue = mPackageOverrides.remove(packageName);
+ addPackageDeferredOverride(packageName, overrideValue);
+ // Notify because the override was removed.
+ notifyListener(packageName);
+ return true;
+ }
+ return false;
+ }
+
+ /**
* Remove any package override for the given package name, restoring the default behaviour.
*
* <p>Note, this method is not thread safe so callers must ensure thread safety.
@@ -133,6 +184,9 @@
notifyListener(pname);
}
}
+ if (mDeferredOverrides != null) {
+ mDeferredOverrides.remove(pname);
+ }
}
/**
@@ -176,6 +230,15 @@
return mPackageOverrides != null && mPackageOverrides.containsKey(packageName);
}
+ /**
+ * Checks whether a change has a deferred override for a package.
+ * @param packageName name of the package
+ * @return true if there is such a deferred override
+ */
+ boolean hasDeferredOverride(String packageName) {
+ return mDeferredOverrides != null && mDeferredOverrides.containsKey(packageName);
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder("ChangeId(")
@@ -195,6 +258,9 @@
if (mPackageOverrides != null && mPackageOverrides.size() > 0) {
sb.append("; packageOverrides=").append(mPackageOverrides);
}
+ if (mDeferredOverrides != null && mDeferredOverrides.size() > 0) {
+ sb.append("; deferredOverrides=").append(mDeferredOverrides);
+ }
return sb.append(")").toString();
}
diff --git a/services/core/java/com/android/server/compat/CompatConfig.java b/services/core/java/com/android/server/compat/CompatConfig.java
index 8511118..f03a608 100644
--- a/services/core/java/com/android/server/compat/CompatConfig.java
+++ b/services/core/java/com/android/server/compat/CompatConfig.java
@@ -65,7 +65,7 @@
@GuardedBy("mChanges")
private final LongSparseArray<CompatChange> mChanges = new LongSparseArray<>();
- private IOverrideValidator mOverrideValidator;
+ private OverrideValidatorImpl mOverrideValidator;
@VisibleForTesting
CompatConfig(AndroidBuildClassifier androidBuildClassifier, Context context) {
@@ -161,7 +161,7 @@
* @return {@code true} if the change existed before adding the override.
*/
boolean addOverride(long changeId, String packageName, boolean enabled)
- throws RemoteException, SecurityException {
+ throws SecurityException {
boolean alreadyKnown = true;
OverrideAllowedState allowedState =
mOverrideValidator.getOverrideAllowedState(changeId, packageName);
@@ -173,7 +173,17 @@
c = new CompatChange(changeId);
addChange(c);
}
- c.addPackageOverride(packageName, enabled);
+ switch (allowedState.state) {
+ case OverrideAllowedState.ALLOWED:
+ c.addPackageOverride(packageName, enabled);
+ break;
+ case OverrideAllowedState.DEFERRED_VERIFICATION:
+ c.addPackageDeferredOverride(packageName, enabled);
+ break;
+ default:
+ throw new IllegalStateException("Should only be able to override changes that "
+ + "are allowed or can be deferred.");
+ }
invalidateCache();
}
return alreadyKnown;
@@ -244,26 +254,26 @@
* @return {@code true} if an override existed;
*/
boolean removeOverride(long changeId, String packageName)
- throws RemoteException, SecurityException {
+ throws SecurityException {
boolean overrideExists = false;
synchronized (mChanges) {
CompatChange c = mChanges.get(changeId);
- try {
- if (c != null) {
- overrideExists = c.hasOverride(packageName);
- if (overrideExists) {
- OverrideAllowedState allowedState =
- mOverrideValidator.getOverrideAllowedState(changeId, packageName);
- allowedState.enforce(changeId, packageName);
- c.removePackageOverride(packageName);
- }
+ if (c != null) {
+ // Always allow removing a deferred override.
+ if (c.hasDeferredOverride(packageName)) {
+ c.removePackageOverride(packageName);
+ overrideExists = true;
+ } else if (c.hasOverride(packageName)) {
+ // Regular overrides need to pass the policy.
+ overrideExists = true;
+ OverrideAllowedState allowedState =
+ mOverrideValidator.getOverrideAllowedState(changeId, packageName);
+ allowedState.enforce(changeId, packageName);
+ c.removePackageOverride(packageName);
}
- } catch (RemoteException e) {
- // Should never occur, since validator is in the same process.
- throw new RuntimeException("Unable to call override validator!", e);
}
- invalidateCache();
}
+ invalidateCache();
return overrideExists;
}
@@ -293,29 +303,15 @@
* Removes all overrides previously added via {@link #addOverride(long, String, boolean)} or
* {@link #addOverrides(CompatibilityChangeConfig, String)} for a certain package.
*
- * <p>This restores the default behaviour for the given change and app, once any app
- * processes have been restarted.
+ * <p>This restores the default behaviour for the given app.
*
* @param packageName The package for which the overrides should be purged.
*/
- void removePackageOverrides(String packageName) throws RemoteException, SecurityException {
+ void removePackageOverrides(String packageName) throws SecurityException {
synchronized (mChanges) {
for (int i = 0; i < mChanges.size(); ++i) {
- try {
- CompatChange change = mChanges.valueAt(i);
- if (change.hasOverride(packageName)) {
- OverrideAllowedState allowedState =
- mOverrideValidator.getOverrideAllowedState(change.getId(),
- packageName);
- allowedState.enforce(change.getId(), packageName);
- if (change != null) {
- mChanges.valueAt(i).removePackageOverride(packageName);
- }
- }
- } catch (RemoteException e) {
- // Should never occur, since validator is in the same process.
- throw new RuntimeException("Unable to call override validator!", e);
- }
+ CompatChange change = mChanges.valueAt(i);
+ removeOverride(change.getId(), packageName);
}
invalidateCache();
}
@@ -327,20 +323,15 @@
LongArray allowed = new LongArray();
synchronized (mChanges) {
for (int i = 0; i < mChanges.size(); ++i) {
- try {
- CompatChange change = mChanges.valueAt(i);
- if (change.getEnableSinceTargetSdk() != targetSdkVersion) {
- continue;
- }
- OverrideAllowedState allowedState =
- mOverrideValidator.getOverrideAllowedState(change.getId(),
- packageName);
- if (allowedState.state == OverrideAllowedState.ALLOWED) {
- allowed.add(change.getId());
- }
- } catch (RemoteException e) {
- // Should never occur, since validator is in the same process.
- throw new RuntimeException("Unable to call override validator!", e);
+ CompatChange change = mChanges.valueAt(i);
+ if (change.getEnableSinceTargetSdk() != targetSdkVersion) {
+ continue;
+ }
+ OverrideAllowedState allowedState =
+ mOverrideValidator.getOverrideAllowedState(change.getId(),
+ packageName);
+ if (allowedState.state == OverrideAllowedState.ALLOWED) {
+ allowed.add(change.getId());
}
}
}
@@ -401,6 +392,11 @@
}
@VisibleForTesting
+ void forceNonDebuggableFinalForTest(boolean value) {
+ mOverrideValidator.forceNonDebuggableFinalForTest(value);
+ }
+
+ @VisibleForTesting
void clearChanges() {
synchronized (mChanges) {
mChanges.clear();
@@ -511,4 +507,26 @@
private void invalidateCache() {
ChangeIdStateCache.invalidate();
}
+ /**
+ * Rechecks all the existing overrides for a package.
+ */
+ void recheckOverrides(String packageName) {
+ synchronized (mChanges) {
+ boolean shouldInvalidateCache = false;
+ for (int idx = 0; idx < mChanges.size(); ++idx) {
+ CompatChange c = mChanges.valueAt(idx);
+ OverrideAllowedState allowedState =
+ mOverrideValidator.getOverrideAllowedState(c.getId(), packageName);
+ boolean allowedOverride = (allowedState.state == OverrideAllowedState.ALLOWED);
+ shouldInvalidateCache |= c.recheckOverride(packageName, allowedOverride);
+ }
+ if (shouldInvalidateCache) {
+ invalidateCache();
+ }
+ }
+ }
+
+ void registerContentObserver() {
+ mOverrideValidator.registerContentObserver();
+ }
}
diff --git a/services/core/java/com/android/server/compat/OverrideValidatorImpl.java b/services/core/java/com/android/server/compat/OverrideValidatorImpl.java
index 79a13ca..fe5b4a9 100644
--- a/services/core/java/com/android/server/compat/OverrideValidatorImpl.java
+++ b/services/core/java/com/android/server/compat/OverrideValidatorImpl.java
@@ -17,16 +17,19 @@
package com.android.server.compat;
import static com.android.internal.compat.OverrideAllowedState.ALLOWED;
+import static com.android.internal.compat.OverrideAllowedState.DEFERRED_VERIFICATION;
import static com.android.internal.compat.OverrideAllowedState.DISABLED_NON_TARGET_SDK;
import static com.android.internal.compat.OverrideAllowedState.DISABLED_NOT_DEBUGGABLE;
import static com.android.internal.compat.OverrideAllowedState.DISABLED_TARGET_SDK_TOO_HIGH;
import static com.android.internal.compat.OverrideAllowedState.LOGGING_ONLY_CHANGE;
-import static com.android.internal.compat.OverrideAllowedState.PACKAGE_DOES_NOT_EXIST;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
+import android.database.ContentObserver;
+import android.os.Handler;
+import android.provider.Settings;
import com.android.internal.annotations.VisibleForTesting;
import com.android.internal.compat.AndroidBuildClassifier;
@@ -41,6 +44,20 @@
private AndroidBuildClassifier mAndroidBuildClassifier;
private Context mContext;
private CompatConfig mCompatConfig;
+ private boolean mForceNonDebuggableFinalBuild;
+
+ private class SettingsObserver extends ContentObserver {
+ SettingsObserver() {
+ super(new Handler());
+ }
+ @Override
+ public void onChange(boolean selfChange) {
+ mForceNonDebuggableFinalBuild = Settings.Global.getInt(
+ mContext.getContentResolver(),
+ Settings.Global.FORCE_NON_DEBUGGABLE_FINAL_BUILD_FOR_COMPAT,
+ 0) == 1;
+ }
+ }
@VisibleForTesting
OverrideValidatorImpl(AndroidBuildClassifier androidBuildClassifier,
@@ -48,6 +65,7 @@
mAndroidBuildClassifier = androidBuildClassifier;
mContext = context;
mCompatConfig = config;
+ mForceNonDebuggableFinalBuild = false;
}
@Override
@@ -56,8 +74,10 @@
return new OverrideAllowedState(LOGGING_ONLY_CHANGE, -1, -1);
}
- boolean debuggableBuild = mAndroidBuildClassifier.isDebuggableBuild();
- boolean finalBuild = mAndroidBuildClassifier.isFinalBuild();
+ boolean debuggableBuild = mAndroidBuildClassifier.isDebuggableBuild()
+ && !mForceNonDebuggableFinalBuild;
+ boolean finalBuild = mAndroidBuildClassifier.isFinalBuild()
+ || mForceNonDebuggableFinalBuild;
int maxTargetSdk = mCompatConfig.maxTargetSdkForChangeIdOptIn(changeId);
boolean disabled = mCompatConfig.isDisabled(changeId);
@@ -73,7 +93,7 @@
try {
applicationInfo = packageManager.getApplicationInfo(packageName, 0);
} catch (NameNotFoundException e) {
- return new OverrideAllowedState(PACKAGE_DOES_NOT_EXIST, -1, -1);
+ return new OverrideAllowedState(DEFERRED_VERIFICATION, -1, -1);
}
int appTargetSdk = applicationInfo.targetSdkVersion;
// Only allow overriding debuggable apps.
@@ -94,4 +114,17 @@
}
return new OverrideAllowedState(DISABLED_TARGET_SDK_TOO_HIGH, appTargetSdk, maxTargetSdk);
}
+
+ void registerContentObserver() {
+ mContext.getContentResolver().registerContentObserver(
+ Settings.Global.getUriFor(
+ Settings.Global.FORCE_NON_DEBUGGABLE_FINAL_BUILD_FOR_COMPAT),
+ false,
+ new SettingsObserver());
+ }
+
+ void forceNonDebuggableFinalForTest(boolean value) {
+ mForceNonDebuggableFinalBuild = value;
+ }
+
}
diff --git a/services/core/java/com/android/server/compat/PlatformCompat.java b/services/core/java/com/android/server/compat/PlatformCompat.java
index aa85f7f..283dba7 100644
--- a/services/core/java/com/android/server/compat/PlatformCompat.java
+++ b/services/core/java/com/android/server/compat/PlatformCompat.java
@@ -25,9 +25,13 @@
import android.annotation.UserIdInt;
import android.app.ActivityManager;
import android.app.IActivityManager;
+import android.content.BroadcastReceiver;
import android.content.Context;
+import android.content.Intent;
+import android.content.IntentFilter;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManagerInternal;
+import android.net.Uri;
import android.os.Binder;
import android.os.Build;
import android.os.RemoteException;
@@ -74,6 +78,7 @@
mChangeReporter = new ChangeReporter(
ChangeReporter.SOURCE_SYSTEM_SERVER);
mCompatConfig = compatConfig;
+ registerPackageReceiver(context);
}
@Override
@@ -389,4 +394,42 @@
}
return true;
}
+
+ /**
+ * Registers a broadcast receiver that listens for package install, replace or remove.
+ * @param context the context where the receiver should be registered.
+ */
+ public void registerPackageReceiver(Context context) {
+ final BroadcastReceiver receiver = new BroadcastReceiver() {
+ @Override
+ public void onReceive(Context context, Intent intent) {
+ if (intent == null) {
+ return;
+ }
+ final Uri packageData = intent.getData();
+ if (packageData == null) {
+ return;
+ }
+ final String packageName = packageData.getSchemeSpecificPart();
+ if (packageName == null) {
+ return;
+ }
+ mCompatConfig.recheckOverrides(packageName);
+ }
+ };
+ IntentFilter filter = new IntentFilter();
+ filter.addAction(Intent.ACTION_PACKAGE_ADDED);
+ filter.addAction(Intent.ACTION_PACKAGE_REPLACED);
+ filter.addAction(Intent.ACTION_PACKAGE_REMOVED);
+ filter.addDataScheme("package");
+ context.registerReceiver(receiver, filter);
+ }
+
+ /**
+ * Register the observer for
+ * {@link android.provider.Settings.Global#FORCE_NON_DEBUGGABLE_FINAL_BUILD_FOR_COMPAT}
+ */
+ public void registerContentObserver() {
+ mCompatConfig.registerContentObserver();
+ }
}
diff --git a/services/core/java/com/android/server/connectivity/KeepaliveTracker.java b/services/core/java/com/android/server/connectivity/KeepaliveTracker.java
index 96cbfde..34d9ccc 100644
--- a/services/core/java/com/android/server/connectivity/KeepaliveTracker.java
+++ b/services/core/java/com/android/server/connectivity/KeepaliveTracker.java
@@ -18,10 +18,7 @@
import static android.content.pm.PackageManager.PERMISSION_GRANTED;
import static android.net.NattSocketKeepalive.NATT_PORT;
-import static android.net.NetworkAgent.CMD_ADD_KEEPALIVE_PACKET_FILTER;
-import static android.net.NetworkAgent.CMD_REMOVE_KEEPALIVE_PACKET_FILTER;
import static android.net.NetworkAgent.CMD_START_SOCKET_KEEPALIVE;
-import static android.net.NetworkAgent.CMD_STOP_SOCKET_KEEPALIVE;
import static android.net.SocketKeepalive.BINDER_DIED;
import static android.net.SocketKeepalive.DATA_RECEIVED;
import static android.net.SocketKeepalive.ERROR_INSUFFICIENT_RESOURCES;
@@ -330,10 +327,9 @@
Log.d(TAG, "Starting keepalive " + mSlot + " on " + mNai.toShortString());
switch (mType) {
case TYPE_NATT:
- mNai.asyncChannel.sendMessage(
- CMD_ADD_KEEPALIVE_PACKET_FILTER, slot, 0 /* Unused */, mPacket);
- mNai.asyncChannel
- .sendMessage(CMD_START_SOCKET_KEEPALIVE, slot, mInterval, mPacket);
+ final NattKeepalivePacketData nattData = (NattKeepalivePacketData) mPacket;
+ mNai.onAddNattKeepalivePacketFilter(slot, nattData);
+ mNai.onStartNattSocketKeepalive(slot, mInterval, nattData);
break;
case TYPE_TCP:
try {
@@ -342,11 +338,10 @@
handleStopKeepalive(mNai, mSlot, ERROR_INVALID_SOCKET);
return;
}
- mNai.asyncChannel.sendMessage(
- CMD_ADD_KEEPALIVE_PACKET_FILTER, slot, 0 /* Unused */, mPacket);
+ final TcpKeepalivePacketData tcpData = (TcpKeepalivePacketData) mPacket;
+ mNai.onAddTcpKeepalivePacketFilter(slot, tcpData);
// TODO: check result from apf and notify of failure as needed.
- mNai.asyncChannel
- .sendMessage(CMD_START_SOCKET_KEEPALIVE, slot, mInterval, mPacket);
+ mNai.onStartTcpSocketKeepalive(slot, mInterval, tcpData);
break;
default:
Log.wtf(TAG, "Starting keepalive with unknown type: " + mType);
@@ -394,9 +389,8 @@
mTcpController.stopSocketMonitor(mSlot);
// fall through
case TYPE_NATT:
- mNai.asyncChannel.sendMessage(CMD_STOP_SOCKET_KEEPALIVE, mSlot);
- mNai.asyncChannel.sendMessage(CMD_REMOVE_KEEPALIVE_PACKET_FILTER,
- mSlot);
+ mNai.onStopSocketKeepalive(mSlot);
+ mNai.onRemoveKeepalivePacketFilter(mSlot);
break;
default:
Log.wtf(TAG, "Stopping keepalive with unknown type: " + mType);
@@ -548,17 +542,13 @@
}
/** Handle keepalive events from lower layer. */
- public void handleEventSocketKeepalive(@NonNull NetworkAgentInfo nai,
- @NonNull Message message) {
- int slot = message.arg1;
- int reason = message.arg2;
-
+ public void handleEventSocketKeepalive(@NonNull NetworkAgentInfo nai, int slot, int reason) {
KeepaliveInfo ki = null;
try {
ki = mKeepalives.get(nai).get(slot);
} catch(NullPointerException e) {}
if (ki == null) {
- Log.e(TAG, "Event " + message.what + "," + slot + "," + reason
+ Log.e(TAG, "Event " + NetworkAgent.EVENT_SOCKET_KEEPALIVE + "," + slot + "," + reason
+ " for unknown keepalive " + slot + " on " + nai.toShortString());
return;
}
@@ -601,7 +591,7 @@
ki.mStartedState = KeepaliveInfo.NOT_STARTED;
cleanupStoppedKeepalive(nai, slot);
} else {
- Log.wtf(TAG, "Event " + message.what + "," + slot + "," + reason
+ Log.wtf(TAG, "Event " + NetworkAgent.EVENT_SOCKET_KEEPALIVE + "," + slot + "," + reason
+ " for keepalive in wrong state: " + ki.toString());
}
}
diff --git a/services/core/java/com/android/server/connectivity/NetworkAgentInfo.java b/services/core/java/com/android/server/connectivity/NetworkAgentInfo.java
index 52b9f5c..7bde4d5 100644
--- a/services/core/java/com/android/server/connectivity/NetworkAgentInfo.java
+++ b/services/core/java/com/android/server/connectivity/NetworkAgentInfo.java
@@ -27,25 +27,35 @@
import android.net.INetd;
import android.net.INetworkMonitor;
import android.net.LinkProperties;
+import android.net.NattKeepalivePacketData;
import android.net.Network;
+import android.net.NetworkAgent;
import android.net.NetworkAgentConfig;
import android.net.NetworkCapabilities;
import android.net.NetworkInfo;
import android.net.NetworkMonitorManager;
import android.net.NetworkRequest;
import android.net.NetworkState;
+import android.net.TcpKeepalivePacketData;
+import android.os.Bundle;
import android.os.Handler;
+import android.os.IBinder;
import android.os.INetworkManagementService;
-import android.os.Messenger;
+import android.os.RemoteException;
import android.os.SystemClock;
import android.util.Log;
+import android.util.Pair;
import android.util.SparseArray;
-import com.android.internal.util.AsyncChannel;
+import com.android.connectivity.aidl.INetworkAgent;
+import com.android.connectivity.aidl.INetworkAgentRegistry;
import com.android.internal.util.WakeupMessage;
import com.android.server.ConnectivityService;
import java.io.PrintWriter;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.NoSuchElementException;
import java.util.Objects;
import java.util.SortedSet;
import java.util.TreeSet;
@@ -136,7 +146,11 @@
// Underlying networks declared by the agent. Only set if supportsUnderlyingNetworks is true.
// The networks in this list might be declared by a VPN app using setUnderlyingNetworks and are
// not guaranteed to be current or correct, or even to exist.
- public @Nullable Network[] declaredUnderlyingNetworks;
+ //
+ // This array is read and iterated on multiple threads with no locking so its contents must
+ // never be modified. When the list of networks changes, replace with a new array, on the
+ // handler thread.
+ public @Nullable volatile Network[] declaredUnderlyingNetworks;
// The capabilities originally announced by the NetworkAgent, regardless of any capabilities
// that were added or removed due to this network's underlying networks.
@@ -221,6 +235,31 @@
*/
public static final int EVENT_NETWORK_LINGER_COMPLETE = 1001;
+ /**
+ * Inform ConnectivityService that the agent is half-connected.
+ * arg1 = ARG_AGENT_SUCCESS or ARG_AGENT_FAILURE
+ * obj = NetworkAgentInfo
+ * @hide
+ */
+ public static final int EVENT_AGENT_REGISTERED = 1002;
+
+ /**
+ * Inform ConnectivityService that the agent was disconnected.
+ * obj = NetworkAgentInfo
+ * @hide
+ */
+ public static final int EVENT_AGENT_DISCONNECTED = 1003;
+
+ /**
+ * Argument for EVENT_AGENT_HALF_CONNECTED indicating failure.
+ */
+ public static final int ARG_AGENT_FAILURE = 0;
+
+ /**
+ * Argument for EVENT_AGENT_HALF_CONNECTED indicating success.
+ */
+ public static final int ARG_AGENT_SUCCESS = 1;
+
// All linger timers for this network, sorted by expiry time. A linger timer is added whenever
// a request is moved to a network with a better score, regardless of whether the network is or
// was lingering or not.
@@ -262,8 +301,9 @@
// report is generated. Once non-null, it will never be null again.
@Nullable private ConnectivityReport mConnectivityReport;
- public final Messenger messenger;
- public final AsyncChannel asyncChannel;
+ public final INetworkAgent networkAgent;
+ // Only accessed from ConnectivityService handler thread
+ private final AgentDeathMonitor mDeathMonitor = new AgentDeathMonitor();
public final int factorySerialNumber;
@@ -279,13 +319,12 @@
private final Context mContext;
private final Handler mHandler;
- public NetworkAgentInfo(Messenger messenger, AsyncChannel ac, Network net, NetworkInfo info,
+ public NetworkAgentInfo(INetworkAgent na, Network net, NetworkInfo info,
LinkProperties lp, NetworkCapabilities nc, int score, Context context,
Handler handler, NetworkAgentConfig config, ConnectivityService connService, INetd netd,
IDnsResolver dnsResolver, INetworkManagementService nms, int factorySerialNumber,
int creatorUid) {
- this.messenger = messenger;
- asyncChannel = ac;
+ networkAgent = na;
network = net;
networkInfo = info;
linkProperties = lp;
@@ -300,6 +339,249 @@
this.creatorUid = creatorUid;
}
+ private class AgentDeathMonitor implements IBinder.DeathRecipient {
+ @Override
+ public void binderDied() {
+ notifyDisconnected();
+ }
+ }
+
+ /**
+ * Notify the NetworkAgent that it was registered, and should be unregistered if it dies.
+ *
+ * Must be called from the ConnectivityService handler thread. A NetworkAgent can only be
+ * registered once.
+ */
+ public void notifyRegistered() {
+ try {
+ networkAgent.asBinder().linkToDeath(mDeathMonitor, 0);
+ networkAgent.onRegistered(new NetworkAgentMessageHandler(mHandler));
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error registering NetworkAgent", e);
+ maybeUnlinkDeathMonitor();
+ mHandler.obtainMessage(EVENT_AGENT_REGISTERED, ARG_AGENT_FAILURE, 0, this)
+ .sendToTarget();
+ return;
+ }
+
+ mHandler.obtainMessage(EVENT_AGENT_REGISTERED, ARG_AGENT_SUCCESS, 0, this).sendToTarget();
+ }
+
+ /**
+ * Disconnect the NetworkAgent. Must be called from the ConnectivityService handler thread.
+ */
+ public void disconnect() {
+ try {
+ networkAgent.onDisconnected();
+ } catch (RemoteException e) {
+ Log.i(TAG, "Error disconnecting NetworkAgent", e);
+ // Fall through: it's fine if the remote has died
+ }
+
+ notifyDisconnected();
+ maybeUnlinkDeathMonitor();
+ }
+
+ private void maybeUnlinkDeathMonitor() {
+ try {
+ networkAgent.asBinder().unlinkToDeath(mDeathMonitor, 0);
+ } catch (NoSuchElementException e) {
+ // Was not linked: ignore
+ }
+ }
+
+ private void notifyDisconnected() {
+ // Note this may be called multiple times if ConnectivityService disconnects while the
+ // NetworkAgent also dies. ConnectivityService ignores disconnects of already disconnected
+ // agents.
+ mHandler.obtainMessage(EVENT_AGENT_DISCONNECTED, this).sendToTarget();
+ }
+
+ /**
+ * Notify the NetworkAgent that bandwidth update was requested.
+ */
+ public void onBandwidthUpdateRequested() {
+ try {
+ networkAgent.onBandwidthUpdateRequested();
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error sending bandwidth update request event", e);
+ }
+ }
+
+ /**
+ * Notify the NetworkAgent that validation status has changed.
+ */
+ public void onValidationStatusChanged(int validationStatus, @Nullable String captivePortalUrl) {
+ try {
+ networkAgent.onValidationStatusChanged(validationStatus, captivePortalUrl);
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error sending validation status change event", e);
+ }
+ }
+
+ /**
+ * Notify the NetworkAgent that the acceptUnvalidated setting should be saved.
+ */
+ public void onSaveAcceptUnvalidated(boolean acceptUnvalidated) {
+ try {
+ networkAgent.onSaveAcceptUnvalidated(acceptUnvalidated);
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error sending accept unvalidated event", e);
+ }
+ }
+
+ /**
+ * Notify the NetworkAgent that NATT socket keepalive should be started.
+ */
+ public void onStartNattSocketKeepalive(int slot, int intervalDurationMs,
+ @NonNull NattKeepalivePacketData packetData) {
+ try {
+ networkAgent.onStartNattSocketKeepalive(slot, intervalDurationMs, packetData);
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error sending NATT socket keepalive start event", e);
+ }
+ }
+
+ /**
+ * Notify the NetworkAgent that TCP socket keepalive should be started.
+ */
+ public void onStartTcpSocketKeepalive(int slot, int intervalDurationMs,
+ @NonNull TcpKeepalivePacketData packetData) {
+ try {
+ networkAgent.onStartTcpSocketKeepalive(slot, intervalDurationMs, packetData);
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error sending TCP socket keepalive start event", e);
+ }
+ }
+
+ /**
+ * Notify the NetworkAgent that socket keepalive should be stopped.
+ */
+ public void onStopSocketKeepalive(int slot) {
+ try {
+ networkAgent.onStopSocketKeepalive(slot);
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error sending TCP socket keepalive stop event", e);
+ }
+ }
+
+ /**
+ * Notify the NetworkAgent that signal strength thresholds should be updated.
+ */
+ public void onSignalStrengthThresholdsUpdated(@NonNull int[] thresholds) {
+ try {
+ networkAgent.onSignalStrengthThresholdsUpdated(thresholds);
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error sending signal strength thresholds event", e);
+ }
+ }
+
+ /**
+ * Notify the NetworkAgent that automatic reconnect should be prevented.
+ */
+ public void onPreventAutomaticReconnect() {
+ try {
+ networkAgent.onPreventAutomaticReconnect();
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error sending prevent automatic reconnect event", e);
+ }
+ }
+
+ /**
+ * Notify the NetworkAgent that a NATT keepalive packet filter should be added.
+ */
+ public void onAddNattKeepalivePacketFilter(int slot,
+ @NonNull NattKeepalivePacketData packetData) {
+ try {
+ networkAgent.onAddNattKeepalivePacketFilter(slot, packetData);
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error sending add NATT keepalive packet filter event", e);
+ }
+ }
+
+ /**
+ * Notify the NetworkAgent that a TCP keepalive packet filter should be added.
+ */
+ public void onAddTcpKeepalivePacketFilter(int slot,
+ @NonNull TcpKeepalivePacketData packetData) {
+ try {
+ networkAgent.onAddTcpKeepalivePacketFilter(slot, packetData);
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error sending add TCP keepalive packet filter event", e);
+ }
+ }
+
+ /**
+ * Notify the NetworkAgent that a keepalive packet filter should be removed.
+ */
+ public void onRemoveKeepalivePacketFilter(int slot) {
+ try {
+ networkAgent.onRemoveKeepalivePacketFilter(slot);
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error sending remove keepalive packet filter event", e);
+ }
+ }
+
+ // TODO: consider moving out of NetworkAgentInfo into its own class
+ private class NetworkAgentMessageHandler extends INetworkAgentRegistry.Stub {
+ private final Handler mHandler;
+
+ private NetworkAgentMessageHandler(Handler handler) {
+ mHandler = handler;
+ }
+
+ @Override
+ public void sendNetworkCapabilities(NetworkCapabilities nc) {
+ mHandler.obtainMessage(NetworkAgent.EVENT_NETWORK_CAPABILITIES_CHANGED,
+ new Pair<>(NetworkAgentInfo.this, nc)).sendToTarget();
+ }
+
+ @Override
+ public void sendLinkProperties(LinkProperties lp) {
+ mHandler.obtainMessage(NetworkAgent.EVENT_NETWORK_PROPERTIES_CHANGED,
+ new Pair<>(NetworkAgentInfo.this, lp)).sendToTarget();
+ }
+
+ @Override
+ public void sendNetworkInfo(NetworkInfo info) {
+ mHandler.obtainMessage(NetworkAgent.EVENT_NETWORK_INFO_CHANGED,
+ new Pair<>(NetworkAgentInfo.this, info)).sendToTarget();
+ }
+
+ @Override
+ public void sendScore(int score) {
+ mHandler.obtainMessage(NetworkAgent.EVENT_NETWORK_SCORE_CHANGED, score, 0,
+ new Pair<>(NetworkAgentInfo.this, null)).sendToTarget();
+ }
+
+ @Override
+ public void sendExplicitlySelected(boolean explicitlySelected, boolean acceptPartial) {
+ mHandler.obtainMessage(NetworkAgent.EVENT_SET_EXPLICITLY_SELECTED,
+ explicitlySelected ? 1 : 0, acceptPartial ? 1 : 0,
+ new Pair<>(NetworkAgentInfo.this, null)).sendToTarget();
+ }
+
+ @Override
+ public void sendSocketKeepaliveEvent(int slot, int reason) {
+ mHandler.obtainMessage(NetworkAgent.EVENT_SOCKET_KEEPALIVE,
+ slot, reason, new Pair<>(NetworkAgentInfo.this, null)).sendToTarget();
+ }
+
+ @Override
+ public void sendUnderlyingNetworks(@Nullable List<Network> networks) {
+ final Bundle args = new Bundle();
+ if (networks instanceof ArrayList<?>) {
+ args.putParcelableArrayList(NetworkAgent.UNDERLYING_NETWORKS_KEY,
+ (ArrayList<Network>) networks);
+ } else {
+ args.putParcelableArrayList(NetworkAgent.UNDERLYING_NETWORKS_KEY,
+ networks == null ? null : new ArrayList<>(networks));
+ }
+ mHandler.obtainMessage(NetworkAgent.EVENT_UNDERLYING_NETWORKS_CHANGED,
+ new Pair<>(NetworkAgentInfo.this, args)).sendToTarget();
+ }
+ }
+
/**
* Inform NetworkAgentInfo that a new NetworkMonitor was created.
*/
diff --git a/services/core/java/com/android/server/connectivity/Vpn.java b/services/core/java/com/android/server/connectivity/Vpn.java
index 228ad588..07a4b89 100644
--- a/services/core/java/com/android/server/connectivity/Vpn.java
+++ b/services/core/java/com/android/server/connectivity/Vpn.java
@@ -101,6 +101,7 @@
import android.text.TextUtils;
import android.util.ArraySet;
import android.util.Log;
+import android.util.Range;
import com.android.internal.R;
import com.android.internal.annotations.GuardedBy;
@@ -223,7 +224,7 @@
private @NonNull List<String> mLockdownAllowlist = Collections.emptyList();
/**
- * A memory of what UIDs this class told netd to block for the lockdown feature.
+ * A memory of what UIDs this class told ConnectivityService to block for the lockdown feature.
*
* Netd maintains ranges of UIDs for which network should be restricted to using only the VPN
* for the lockdown feature. This class manages these UIDs and sends this information to netd.
@@ -237,7 +238,7 @@
* @see mLockdown
*/
@GuardedBy("this")
- private final Set<UidRangeParcel> mBlockedUidsAsToldToNetd = new ArraySet<>();
+ private final Set<UidRangeParcel> mBlockedUidsAsToldToConnectivity = new ArraySet<>();
// The user id of initiating VPN.
private final int mUserId;
@@ -1588,7 +1589,7 @@
* {@link Vpn} goes through a VPN connection or is blocked until one is
* available, {@code false} to lift the requirement.
*
- * @see #mBlockedUidsAsToldToNetd
+ * @see #mBlockedUidsAsToldToConnectivity
*/
@GuardedBy("this")
private void setVpnForcedLocked(boolean enforce) {
@@ -1599,10 +1600,8 @@
exemptedPackages = new ArrayList<>(mLockdownAllowlist);
exemptedPackages.add(mPackage);
}
- final Set<UidRangeParcel> rangesToTellNetdToRemove =
- new ArraySet<>(mBlockedUidsAsToldToNetd);
-
- final Set<UidRangeParcel> rangesToTellNetdToAdd;
+ final Set<UidRangeParcel> rangesToRemove = new ArraySet<>(mBlockedUidsAsToldToConnectivity);
+ final Set<UidRangeParcel> rangesToAdd;
if (enforce) {
final Set<UidRange> restrictedProfilesRanges =
createUserAndRestrictedProfilesRanges(mUserId,
@@ -1621,26 +1620,27 @@
}
}
- rangesToTellNetdToRemove.removeAll(rangesThatShouldBeBlocked);
- rangesToTellNetdToAdd = rangesThatShouldBeBlocked;
- // The ranges to tell netd to add are the ones that should be blocked minus the
- // ones it already knows to block. Note that this will change the contents of
+ rangesToRemove.removeAll(rangesThatShouldBeBlocked);
+ rangesToAdd = rangesThatShouldBeBlocked;
+ // The ranges to tell ConnectivityService to add are the ones that should be blocked
+ // minus the ones it already knows to block. Note that this will change the contents of
// rangesThatShouldBeBlocked, but the list of ranges that should be blocked is
// not used after this so it's fine to destroy it.
- rangesToTellNetdToAdd.removeAll(mBlockedUidsAsToldToNetd);
+ rangesToAdd.removeAll(mBlockedUidsAsToldToConnectivity);
} else {
- rangesToTellNetdToAdd = Collections.emptySet();
+ rangesToAdd = Collections.emptySet();
}
// If mBlockedUidsAsToldToNetd used to be empty, this will always be a no-op.
- setAllowOnlyVpnForUids(false, rangesToTellNetdToRemove);
+ setAllowOnlyVpnForUids(false, rangesToRemove);
// If nothing should be blocked now, this will now be a no-op.
- setAllowOnlyVpnForUids(true, rangesToTellNetdToAdd);
+ setAllowOnlyVpnForUids(true, rangesToAdd);
}
/**
- * Tell netd to add or remove a list of {@link UidRange}s to the list of UIDs that are only
- * allowed to make connections through sockets that have had {@code protect()} called on them.
+ * Tell ConnectivityService to add or remove a list of {@link UidRange}s to the list of UIDs
+ * that are only allowed to make connections through sockets that have had {@code protect()}
+ * called on them.
*
* @param enforce {@code true} to add to the denylist, {@code false} to remove.
* @param ranges {@link Collection} of {@link UidRange}s to add (if {@param enforce} is
@@ -1653,18 +1653,22 @@
if (ranges.size() == 0) {
return true;
}
- final UidRangeParcel[] stableRanges = ranges.toArray(new UidRangeParcel[ranges.size()]);
+ // Convert to Collection<Range> which is what the ConnectivityManager API takes.
+ ArrayList<Range<Integer>> integerRanges = new ArrayList<>(ranges.size());
+ for (UidRangeParcel uidRange : ranges) {
+ integerRanges.add(new Range<>(uidRange.start, uidRange.stop));
+ }
try {
- mNetd.networkRejectNonSecureVpn(enforce, stableRanges);
- } catch (RemoteException | RuntimeException e) {
+ mConnectivityManager.setRequireVpnForUids(enforce, integerRanges);
+ } catch (RuntimeException e) {
Log.e(TAG, "Updating blocked=" + enforce
+ " for UIDs " + Arrays.toString(ranges.toArray()) + " failed", e);
return false;
}
if (enforce) {
- mBlockedUidsAsToldToNetd.addAll(ranges);
+ mBlockedUidsAsToldToConnectivity.addAll(ranges);
} else {
- mBlockedUidsAsToldToNetd.removeAll(ranges);
+ mBlockedUidsAsToldToConnectivity.removeAll(ranges);
}
return true;
}
@@ -1783,9 +1787,6 @@
/**
* Updates underlying network set.
- *
- * <p>Note: Does not updates capabilities. Call {@link #updateCapabilities} from
- * ConnectivityService thread to get updated capabilities.
*/
public synchronized boolean setUnderlyingNetworks(Network[] networks) {
if (!isCallerEstablishedOwnerLocked()) {
@@ -1808,13 +1809,6 @@
return true;
}
- public synchronized Network[] getUnderlyingNetworks() {
- if (!isRunningLocked()) {
- return null;
- }
- return mConfig.underlyingNetworks;
- }
-
/**
* This method should only be called by ConnectivityService because it doesn't
* have enough data to fill VpnInfo.primaryUnderlyingIface field.
@@ -1864,13 +1858,13 @@
* the {@code uid}.
*
* @apiNote This method don't check VPN lockdown status.
- * @see #mBlockedUidsAsToldToNetd
+ * @see #mBlockedUidsAsToldToConnectivity
*/
public synchronized boolean isBlockingUid(int uid) {
if (mNetworkInfo.isConnected()) {
return !appliesToUid(uid);
} else {
- return containsUid(mBlockedUidsAsToldToNetd, uid);
+ return containsUid(mBlockedUidsAsToldToConnectivity, uid);
}
}
diff --git a/services/core/java/com/android/server/location/timezone/OWNERS b/services/core/java/com/android/server/location/timezone/OWNERS
new file mode 100644
index 0000000..28aff18
--- /dev/null
+++ b/services/core/java/com/android/server/location/timezone/OWNERS
@@ -0,0 +1,3 @@
+# Bug component: 847766
+nfuller@google.com
+include /core/java/android/app/timedetector/OWNERS
diff --git a/services/core/java/com/android/server/om/OverlayManagerService.java b/services/core/java/com/android/server/om/OverlayManagerService.java
index 0f8c9c7..7a6792c 100644
--- a/services/core/java/com/android/server/om/OverlayManagerService.java
+++ b/services/core/java/com/android/server/om/OverlayManagerService.java
@@ -24,11 +24,15 @@
import static android.content.Intent.ACTION_USER_ADDED;
import static android.content.Intent.ACTION_USER_REMOVED;
import static android.content.Intent.EXTRA_REASON;
+import static android.content.om.OverlayManagerTransaction.Request.TYPE_SET_DISABLED;
+import static android.content.om.OverlayManagerTransaction.Request.TYPE_SET_ENABLED;
import static android.content.pm.PackageManager.SIGNATURE_MATCH;
import static android.os.Trace.TRACE_TAG_RRO;
import static android.os.Trace.traceBegin;
import static android.os.Trace.traceEnd;
+import static com.android.server.om.OverlayManagerServiceImpl.OperationFailedException;
+
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.app.ActivityManager;
@@ -39,6 +43,7 @@
import android.content.IntentFilter;
import android.content.om.IOverlayManager;
import android.content.om.OverlayInfo;
+import android.content.om.OverlayManagerTransaction;
import android.content.om.OverlayableInfo;
import android.content.pm.IPackageManager;
import android.content.pm.PackageInfo;
@@ -48,6 +53,7 @@
import android.net.Uri;
import android.os.Binder;
import android.os.Environment;
+import android.os.HandlerThread;
import android.os.IBinder;
import android.os.RemoteException;
import android.os.ResultReceiver;
@@ -64,7 +70,6 @@
import com.android.internal.content.om.OverlayConfig;
import com.android.server.FgThread;
-import com.android.server.IoThread;
import com.android.server.LocalServices;
import com.android.server.SystemConfig;
import com.android.server.SystemService;
@@ -82,12 +87,15 @@
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
-import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Consumer;
/**
* Service to manage asset overlays.
@@ -236,7 +244,14 @@
private final OverlayActorEnforcer mActorEnforcer;
- private final AtomicBoolean mPersistSettingsScheduled = new AtomicBoolean(false);
+ private final Consumer<PackageAndUser> mPropagateOverlayChange = (pair) -> {
+ persistSettings();
+ FgThread.getHandler().post(() -> {
+ List<String> affectedTargets = updatePackageManager(pair.packageName, pair.userId);
+ updateActivityManager(affectedTargets, pair.userId);
+ broadcastActionOverlayChanged(affectedTargets, pair.userId);
+ });
+ };
public OverlayManagerService(@NonNull final Context context) {
super(context);
@@ -249,17 +264,19 @@
IdmapManager im = new IdmapManager(IdmapDaemon.getInstance(), mPackageManager);
mSettings = new OverlayManagerSettings();
mImpl = new OverlayManagerServiceImpl(mPackageManager, im, mSettings,
- OverlayConfig.getSystemInstance(), getDefaultOverlayPackages(),
- new OverlayChangeListener());
+ OverlayConfig.getSystemInstance(), getDefaultOverlayPackages());
mActorEnforcer = new OverlayActorEnforcer(mPackageManager);
+ HandlerThread packageReceiverThread = new HandlerThread(TAG);
+ packageReceiverThread.start();
+
final IntentFilter packageFilter = new IntentFilter();
packageFilter.addAction(ACTION_PACKAGE_ADDED);
packageFilter.addAction(ACTION_PACKAGE_CHANGED);
packageFilter.addAction(ACTION_PACKAGE_REMOVED);
packageFilter.addDataScheme("package");
getContext().registerReceiverAsUser(new PackageReceiver(), UserHandle.ALL,
- packageFilter, null, null);
+ packageFilter, null, packageReceiverThread.getThreadHandler());
final IntentFilter userFilter = new IntentFilter();
userFilter.addAction(ACTION_USER_ADDED);
@@ -292,11 +309,11 @@
for (int i = 0; i < userCount; i++) {
final UserInfo userInfo = users.get(i);
if (!userInfo.supportsSwitchTo() && userInfo.id != UserHandle.USER_SYSTEM) {
- // Initialize any users that can't be switched to, as there state would
+ // Initialize any users that can't be switched to, as their state would
// never be setup in onSwitchUser(). We will switch to the system user right
// after this, and its state will be setup there.
final List<String> targets = mImpl.updateOverlaysForUser(users.get(i).id);
- updateOverlayPaths(users.get(i).id, targets);
+ updatePackageManager(targets, users.get(i).id);
}
}
}
@@ -310,9 +327,10 @@
// any asset changes to the rest of the system
synchronized (mLock) {
final List<String> targets = mImpl.updateOverlaysForUser(newUserId);
- updateAssets(newUserId, targets);
+ final List<String> affectedTargets = updatePackageManager(targets, newUserId);
+ updateActivityManager(affectedTargets, newUserId);
}
- schedulePersistSettings();
+ persistSettings();
} finally {
traceEnd(TRACE_TAG_RRO);
}
@@ -396,10 +414,17 @@
false);
if (pi != null && !pi.applicationInfo.isInstantApp()) {
mPackageManager.cachePackageInfo(packageName, userId, pi);
- if (pi.isOverlayPackage()) {
- mImpl.onOverlayPackageAdded(packageName, userId);
- } else {
- mImpl.onTargetPackageAdded(packageName, userId);
+
+ try {
+ if (pi.isOverlayPackage()) {
+ mImpl.onOverlayPackageAdded(packageName, userId)
+ .ifPresent(mPropagateOverlayChange);
+ } else {
+ mImpl.onTargetPackageAdded(packageName, userId)
+ .ifPresent(mPropagateOverlayChange);
+ }
+ } catch (OperationFailedException e) {
+ Slog.e(TAG, "onPackageAdded internal error", e);
}
}
}
@@ -419,10 +444,17 @@
false);
if (pi != null && pi.applicationInfo.isInstantApp()) {
mPackageManager.cachePackageInfo(packageName, userId, pi);
- if (pi.isOverlayPackage()) {
- mImpl.onOverlayPackageChanged(packageName, userId);
- } else {
- mImpl.onTargetPackageChanged(packageName, userId);
+
+ try {
+ if (pi.isOverlayPackage()) {
+ mImpl.onOverlayPackageChanged(packageName, userId)
+ .ifPresent(mPropagateOverlayChange);
+ } else {
+ mImpl.onTargetPackageChanged(packageName, userId)
+ .ifPresent(mPropagateOverlayChange);
+ }
+ } catch (OperationFailedException e) {
+ Slog.e(TAG, "onPackageChanged internal error", e);
}
}
}
@@ -441,7 +473,12 @@
mPackageManager.forgetPackageInfo(packageName, userId);
final OverlayInfo oi = mImpl.getOverlayInfo(packageName, userId);
if (oi != null) {
- mImpl.onOverlayPackageReplacing(packageName, userId);
+ try {
+ mImpl.onOverlayPackageReplacing(packageName, userId)
+ .ifPresent(mPropagateOverlayChange);
+ } catch (OperationFailedException e) {
+ Slog.e(TAG, "onPackageReplacing internal error", e);
+ }
}
}
}
@@ -460,10 +497,16 @@
false);
if (pi != null && !pi.applicationInfo.isInstantApp()) {
mPackageManager.cachePackageInfo(packageName, userId, pi);
- if (pi.isOverlayPackage()) {
- mImpl.onOverlayPackageReplaced(packageName, userId);
- } else {
- mImpl.onTargetPackageReplaced(packageName, userId);
+ try {
+ if (pi.isOverlayPackage()) {
+ mImpl.onOverlayPackageReplaced(packageName, userId)
+ .ifPresent(mPropagateOverlayChange);
+ } else {
+ mImpl.onTargetPackageReplaced(packageName, userId)
+ .ifPresent(mPropagateOverlayChange);
+ }
+ } catch (OperationFailedException e) {
+ Slog.e(TAG, "onPackageReplaced internal error", e);
}
}
}
@@ -481,10 +524,17 @@
synchronized (mLock) {
mPackageManager.forgetPackageInfo(packageName, userId);
final OverlayInfo oi = mImpl.getOverlayInfo(packageName, userId);
- if (oi != null) {
- mImpl.onOverlayPackageRemoved(packageName, userId);
- } else {
- mImpl.onTargetPackageRemoved(packageName, userId);
+
+ try {
+ if (oi != null) {
+ mImpl.onOverlayPackageRemoved(packageName, userId)
+ .ifPresent(mPropagateOverlayChange);
+ } else {
+ mImpl.onTargetPackageRemoved(packageName, userId)
+ .ifPresent(mPropagateOverlayChange);
+ }
+ } catch (OperationFailedException e) {
+ Slog.e(TAG, "onPackageRemoved internal error", e);
}
}
}
@@ -507,7 +557,7 @@
synchronized (mLock) {
targets = mImpl.updateOverlaysForUser(userId);
}
- updateOverlayPaths(userId, targets);
+ updatePackageManager(targets, userId);
} finally {
traceEnd(TRACE_TAG_RRO);
}
@@ -602,7 +652,13 @@
final long ident = Binder.clearCallingIdentity();
try {
synchronized (mLock) {
- return mImpl.setEnabled(packageName, enable, realUserId);
+ try {
+ mImpl.setEnabled(packageName, enable, realUserId)
+ .ifPresent(mPropagateOverlayChange);
+ return true;
+ } catch (OperationFailedException e) {
+ return false;
+ }
}
} finally {
Binder.restoreCallingIdentity(ident);
@@ -627,8 +683,14 @@
final long ident = Binder.clearCallingIdentity();
try {
synchronized (mLock) {
- return mImpl.setEnabledExclusive(packageName, false /* withinCategory */,
- realUserId);
+ try {
+ mImpl.setEnabledExclusive(packageName,
+ false /* withinCategory */, realUserId)
+ .ifPresent(mPropagateOverlayChange);
+ return true;
+ } catch (OperationFailedException e) {
+ return false;
+ }
}
} finally {
Binder.restoreCallingIdentity(ident);
@@ -654,8 +716,14 @@
final long ident = Binder.clearCallingIdentity();
try {
synchronized (mLock) {
- return mImpl.setEnabledExclusive(packageName, true /* withinCategory */,
- realUserId);
+ try {
+ mImpl.setEnabledExclusive(packageName,
+ true /* withinCategory */, realUserId)
+ .ifPresent(mPropagateOverlayChange);
+ return true;
+ } catch (OperationFailedException e) {
+ return false;
+ }
}
} finally {
Binder.restoreCallingIdentity(ident);
@@ -681,7 +749,13 @@
final long ident = Binder.clearCallingIdentity();
try {
synchronized (mLock) {
- return mImpl.setPriority(packageName, parentPackageName, realUserId);
+ try {
+ mImpl.setPriority(packageName, parentPackageName, realUserId)
+ .ifPresent(mPropagateOverlayChange);
+ return true;
+ } catch (OperationFailedException e) {
+ return false;
+ }
}
} finally {
Binder.restoreCallingIdentity(ident);
@@ -705,7 +779,13 @@
final long ident = Binder.clearCallingIdentity();
try {
synchronized (mLock) {
- return mImpl.setHighestPriority(packageName, realUserId);
+ try {
+ mImpl.setHighestPriority(packageName, realUserId)
+ .ifPresent(mPropagateOverlayChange);
+ return true;
+ } catch (OperationFailedException e) {
+ return false;
+ }
}
} finally {
Binder.restoreCallingIdentity(ident);
@@ -729,7 +809,13 @@
final long ident = Binder.clearCallingIdentity();
try {
synchronized (mLock) {
- return mImpl.setLowestPriority(packageName, realUserId);
+ try {
+ mImpl.setLowestPriority(packageName, realUserId)
+ .ifPresent(mPropagateOverlayChange);
+ return true;
+ } catch (OperationFailedException e) {
+ return false;
+ }
}
} finally {
Binder.restoreCallingIdentity(ident);
@@ -778,6 +864,120 @@
}
@Override
+ public void commit(@NonNull final OverlayManagerTransaction transaction)
+ throws RemoteException {
+ try {
+ traceBegin(TRACE_TAG_RRO, "OMS#commit " + transaction);
+ try {
+ executeAllRequests(transaction);
+ } catch (Exception e) {
+ final long ident = Binder.clearCallingIdentity();
+ try {
+ restoreSettings();
+ } finally {
+ Binder.restoreCallingIdentity(ident);
+ }
+ Slog.d(TAG, "commit failed: " + e.getMessage(), e);
+ throw new SecurityException("commit failed"
+ + (DEBUG ? ": " + e.getMessage() : ""));
+ }
+ } finally {
+ traceEnd(TRACE_TAG_RRO);
+ }
+ }
+
+ private Optional<PackageAndUser> executeRequest(
+ @NonNull final OverlayManagerTransaction.Request request) throws Exception {
+ final int realUserId = handleIncomingUser(request.userId, request.typeToString());
+ enforceActor(request.packageName, request.typeToString(), realUserId);
+
+ final long ident = Binder.clearCallingIdentity();
+ try {
+ switch (request.type) {
+ case TYPE_SET_ENABLED:
+ Optional<PackageAndUser> opt1 =
+ mImpl.setEnabled(request.packageName, true, request.userId);
+ Optional<PackageAndUser> opt2 =
+ mImpl.setHighestPriority(request.packageName, request.userId);
+ // Both setEnabled and setHighestPriority affected the same
+ // target package and user: if both return non-empty
+ // Optionals, they are identical
+ return opt1.isPresent() ? opt1 : opt2;
+ case TYPE_SET_DISABLED:
+ return mImpl.setEnabled(request.packageName, false, request.userId);
+ default:
+ throw new IllegalArgumentException("unsupported request: " + request);
+ }
+ } finally {
+ Binder.restoreCallingIdentity(ident);
+ }
+ }
+
+ private void executeAllRequests(@NonNull final OverlayManagerTransaction transaction)
+ throws Exception {
+ if (DEBUG) {
+ Slog.d(TAG, "commit " + transaction);
+ }
+ if (transaction == null) {
+ throw new IllegalArgumentException("null transaction");
+ }
+
+ // map: userId -> list<targetPackageName>
+ SparseArray<List<String>> affectedTargetsToUpdate = new SparseArray<>();
+
+ synchronized (mLock) {
+ // map: userId -> set<targetPackageName>
+ SparseArray<Set<String>> targetsToUpdate = new SparseArray<>();
+
+ // execute the requests (as calling user)
+ for (final OverlayManagerTransaction.Request request : transaction) {
+ executeRequest(request).ifPresent(target -> {
+ Set<String> userTargets = targetsToUpdate.get(target.userId);
+ if (userTargets == null) {
+ userTargets = new ArraySet<String>();
+ targetsToUpdate.put(target.userId, userTargets);
+ }
+ userTargets.add(target.packageName);
+ });
+ }
+
+ // past the point of no return: the entire transaction has been
+ // processed successfully, we can no longer fail: continue as
+ // system_server
+ final long ident = Binder.clearCallingIdentity();
+ try {
+ persistSettings();
+
+ // inform the package manager about the new paths
+ for (int index = 0; index < targetsToUpdate.size(); index++) {
+ final int userId = targetsToUpdate.keyAt(index);
+ final List<String> affectedTargets =
+ updatePackageManager(targetsToUpdate.valueAt(index), userId);
+ affectedTargetsToUpdate.put(userId, affectedTargets);
+ }
+ } finally {
+ Binder.restoreCallingIdentity(ident);
+ }
+ } // synchronized (mLock)
+
+ FgThread.getHandler().post(() -> {
+ final long ident = Binder.clearCallingIdentity();
+ try {
+ // schedule apps to refresh + broadcast the ACTION_OVERLAY_CHANGED intents
+ for (int index = 0; index < affectedTargetsToUpdate.size(); index++) {
+ final int userId = affectedTargetsToUpdate.keyAt(index);
+ final List<String> packageNames = affectedTargetsToUpdate.valueAt(index);
+
+ updateActivityManager(packageNames, userId);
+ broadcastActionOverlayChanged(packageNames, userId);
+ }
+ } finally {
+ Binder.restoreCallingIdentity(ident);
+ }
+ });
+ }
+
+ @Override
public void onShellCommand(@NonNull final FileDescriptor in,
@NonNull final FileDescriptor out, @NonNull final FileDescriptor err,
@NonNull final String[] args, @NonNull final ShellCallback callback,
@@ -898,162 +1098,7 @@
}
};
- private final class OverlayChangeListener
- implements OverlayManagerServiceImpl.OverlayChangeListener {
- @Override
- public void onOverlaysChanged(@NonNull final String targetPackageName, final int userId) {
- schedulePersistSettings();
- FgThread.getHandler().post(() -> {
- updateAssets(userId, targetPackageName);
-
- final Intent intent = new Intent(ACTION_OVERLAY_CHANGED,
- Uri.fromParts("package", targetPackageName, null));
- intent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
-
- if (DEBUG) {
- Slog.d(TAG, "send broadcast " + intent);
- }
-
- try {
- ActivityManager.getService().broadcastIntentWithFeature(null, null, intent,
- null, null, 0, null, null, null, android.app.AppOpsManager.OP_NONE,
- null, false, false, userId);
- } catch (RemoteException e) {
- // Intentionally left empty.
- }
- });
- }
- }
-
- /**
- * Updates the target packages' set of enabled overlays in PackageManager.
- */
- private ArrayList<String> updateOverlayPaths(int userId, List<String> targetPackageNames) {
- try {
- traceBegin(TRACE_TAG_RRO, "OMS#updateOverlayPaths " + targetPackageNames);
- if (DEBUG) {
- Slog.d(TAG, "Updating overlay assets");
- }
- final PackageManagerInternal pm =
- LocalServices.getService(PackageManagerInternal.class);
- final boolean updateFrameworkRes = targetPackageNames.contains("android");
- if (updateFrameworkRes) {
- targetPackageNames = pm.getTargetPackageNames(userId);
- }
-
- final Map<String, List<String>> pendingChanges =
- new ArrayMap<>(targetPackageNames.size());
- synchronized (mLock) {
- final List<String> frameworkOverlays =
- mImpl.getEnabledOverlayPackageNames("android", userId);
- final int n = targetPackageNames.size();
- for (int i = 0; i < n; i++) {
- final String targetPackageName = targetPackageNames.get(i);
- List<String> list = new ArrayList<>();
- if (!"android".equals(targetPackageName)) {
- list.addAll(frameworkOverlays);
- }
- list.addAll(mImpl.getEnabledOverlayPackageNames(targetPackageName, userId));
- pendingChanges.put(targetPackageName, list);
- }
- }
-
- final HashSet<String> updatedPackages = new HashSet<>();
- final int n = targetPackageNames.size();
- for (int i = 0; i < n; i++) {
- final String targetPackageName = targetPackageNames.get(i);
- if (DEBUG) {
- Slog.d(TAG, "-> Updating overlay: target=" + targetPackageName + " overlays=["
- + TextUtils.join(",", pendingChanges.get(targetPackageName))
- + "] userId=" + userId);
- }
-
- if (!pm.setEnabledOverlayPackages(
- userId, targetPackageName, pendingChanges.get(targetPackageName),
- updatedPackages)) {
- Slog.e(TAG, String.format("Failed to change enabled overlays for %s user %d",
- targetPackageName, userId));
- }
- }
- return new ArrayList<>(updatedPackages);
- } finally {
- traceEnd(TRACE_TAG_RRO);
- }
- }
-
- private void updateAssets(final int userId, final String targetPackageName) {
- updateAssets(userId, Collections.singletonList(targetPackageName));
- }
-
- private void updateAssets(final int userId, List<String> targetPackageNames) {
- final IActivityManager am = ActivityManager.getService();
- try {
- final ArrayList<String> updatedPaths = updateOverlayPaths(userId, targetPackageNames);
- am.scheduleApplicationInfoChanged(updatedPaths, userId);
- } catch (RemoteException e) {
- // Intentionally left empty.
- }
- }
-
- private void schedulePersistSettings() {
- if (mPersistSettingsScheduled.getAndSet(true)) {
- return;
- }
- IoThread.getHandler().post(() -> {
- mPersistSettingsScheduled.set(false);
- if (DEBUG) {
- Slog.d(TAG, "Writing overlay settings");
- }
- synchronized (mLock) {
- FileOutputStream stream = null;
- try {
- stream = mSettingsFile.startWrite();
- mSettings.persist(stream);
- mSettingsFile.finishWrite(stream);
- } catch (IOException | XmlPullParserException e) {
- mSettingsFile.failWrite(stream);
- Slog.e(TAG, "failed to persist overlay state", e);
- }
- }
- });
- }
-
- private void restoreSettings() {
- try {
- traceBegin(TRACE_TAG_RRO, "OMS#restoreSettings");
- synchronized (mLock) {
- if (!mSettingsFile.getBaseFile().exists()) {
- return;
- }
- try (FileInputStream stream = mSettingsFile.openRead()) {
- mSettings.restore(stream);
-
- // We might have data for dying users if the device was
- // restarted before we received USER_REMOVED. Remove data for
- // users that will not exist after the system is ready.
-
- final List<UserInfo> liveUsers = mUserManager.getUsers(true /*excludeDying*/);
- final int[] liveUserIds = new int[liveUsers.size()];
- for (int i = 0; i < liveUsers.size(); i++) {
- liveUserIds[i] = liveUsers.get(i).getUserHandle().getIdentifier();
- }
- Arrays.sort(liveUserIds);
-
- for (int userId : mSettings.getUsers()) {
- if (Arrays.binarySearch(liveUserIds, userId) < 0) {
- mSettings.removeUser(userId);
- }
- }
- } catch (IOException | XmlPullParserException e) {
- Slog.e(TAG, "failed to restore overlay state", e);
- }
- }
- } finally {
- traceEnd(TRACE_TAG_RRO);
- }
- }
-
- private static final class PackageManagerHelperImpl implements PackageManagerHelper {
+ private static final class PackageManagerHelperImpl implements PackageManagerHelper {
private final Context mContext;
private final IPackageManager mPackageManager;
@@ -1263,4 +1308,151 @@
}
}
}
+
+ // Helper methods to update other parts of the system or read/write
+ // settings: these methods should never call into each other!
+
+ private void broadcastActionOverlayChanged(@NonNull final Collection<String> packageNames,
+ final int userId) {
+ for (final String packageName : packageNames) {
+ broadcastActionOverlayChanged(packageName, userId);
+ }
+ }
+
+ private void broadcastActionOverlayChanged(@NonNull final String targetPackageName,
+ final int userId) {
+ final Intent intent = new Intent(ACTION_OVERLAY_CHANGED,
+ Uri.fromParts("package", targetPackageName, null));
+ intent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
+ try {
+ ActivityManager.getService().broadcastIntent(null, intent, null, null, 0, null, null,
+ null, android.app.AppOpsManager.OP_NONE, null, false, false, userId);
+ } catch (RemoteException e) {
+ // Intentionally left empty.
+ }
+ }
+
+ /**
+ * Tell the activity manager to tell a set of packages to reload their
+ * resources.
+ */
+ private void updateActivityManager(List<String> targetPackageNames, final int userId) {
+ final IActivityManager am = ActivityManager.getService();
+ try {
+ am.scheduleApplicationInfoChanged(targetPackageNames, userId);
+ } catch (RemoteException e) {
+ // Intentionally left empty.
+ }
+ }
+
+ private ArrayList<String> updatePackageManager(String targetPackageNames, final int userId) {
+ return updatePackageManager(Collections.singletonList(targetPackageNames), userId);
+ }
+
+ /**
+ * Updates the target packages' set of enabled overlays in PackageManager.
+ * @return the package names of affected targets (a superset of
+ * targetPackageNames: the target themserlves and shared libraries)
+ */
+ private ArrayList<String> updatePackageManager(@NonNull Collection<String> targetPackageNames,
+ final int userId) {
+ try {
+ traceBegin(TRACE_TAG_RRO, "OMS#updatePackageManager " + targetPackageNames);
+ if (DEBUG) {
+ Slog.d(TAG, "Update package manager about changed overlays");
+ }
+ final PackageManagerInternal pm =
+ LocalServices.getService(PackageManagerInternal.class);
+ final boolean updateFrameworkRes = targetPackageNames.contains("android");
+ if (updateFrameworkRes) {
+ targetPackageNames = pm.getTargetPackageNames(userId);
+ }
+
+ final Map<String, List<String>> pendingChanges =
+ new ArrayMap<>(targetPackageNames.size());
+ synchronized (mLock) {
+ final List<String> frameworkOverlays =
+ mImpl.getEnabledOverlayPackageNames("android", userId);
+ for (final String targetPackageName : targetPackageNames) {
+ List<String> list = new ArrayList<>();
+ if (!"android".equals(targetPackageName)) {
+ list.addAll(frameworkOverlays);
+ }
+ list.addAll(mImpl.getEnabledOverlayPackageNames(targetPackageName, userId));
+ pendingChanges.put(targetPackageName, list);
+ }
+ }
+
+ final HashSet<String> updatedPackages = new HashSet<>();
+ for (final String targetPackageName : targetPackageNames) {
+ if (DEBUG) {
+ Slog.d(TAG, "-> Updating overlay: target=" + targetPackageName + " overlays=["
+ + TextUtils.join(",", pendingChanges.get(targetPackageName))
+ + "] userId=" + userId);
+ }
+
+ if (!pm.setEnabledOverlayPackages(
+ userId, targetPackageName, pendingChanges.get(targetPackageName),
+ updatedPackages)) {
+ Slog.e(TAG, String.format("Failed to change enabled overlays for %s user %d",
+ targetPackageName, userId));
+ }
+ }
+ return new ArrayList<>(updatedPackages);
+ } finally {
+ traceEnd(TRACE_TAG_RRO);
+ }
+ }
+
+ private void persistSettings() {
+ if (DEBUG) {
+ Slog.d(TAG, "Writing overlay settings");
+ }
+ synchronized (mLock) {
+ FileOutputStream stream = null;
+ try {
+ stream = mSettingsFile.startWrite();
+ mSettings.persist(stream);
+ mSettingsFile.finishWrite(stream);
+ } catch (IOException | XmlPullParserException e) {
+ mSettingsFile.failWrite(stream);
+ Slog.e(TAG, "failed to persist overlay state", e);
+ }
+ }
+ }
+
+ private void restoreSettings() {
+ try {
+ traceBegin(TRACE_TAG_RRO, "OMS#restoreSettings");
+ synchronized (mLock) {
+ if (!mSettingsFile.getBaseFile().exists()) {
+ return;
+ }
+ try (FileInputStream stream = mSettingsFile.openRead()) {
+ mSettings.restore(stream);
+
+ // We might have data for dying users if the device was
+ // restarted before we received USER_REMOVED. Remove data for
+ // users that will not exist after the system is ready.
+
+ final List<UserInfo> liveUsers = mUserManager.getUsers(true /*excludeDying*/);
+ final int[] liveUserIds = new int[liveUsers.size()];
+ for (int i = 0; i < liveUsers.size(); i++) {
+ liveUserIds[i] = liveUsers.get(i).getUserHandle().getIdentifier();
+ }
+ Arrays.sort(liveUserIds);
+
+ for (int userId : mSettings.getUsers()) {
+ if (Arrays.binarySearch(liveUserIds, userId) < 0) {
+ mSettings.removeUser(userId);
+ }
+ }
+ } catch (IOException | XmlPullParserException e) {
+ Slog.e(TAG, "failed to restore overlay state", e);
+ }
+ }
+ } finally {
+ traceEnd(TRACE_TAG_RRO);
+ }
+ }
}
diff --git a/services/core/java/com/android/server/om/OverlayManagerServiceImpl.java b/services/core/java/com/android/server/om/OverlayManagerServiceImpl.java
index 05a4a38..e60411bb 100644
--- a/services/core/java/com/android/server/om/OverlayManagerServiceImpl.java
+++ b/services/core/java/com/android/server/om/OverlayManagerServiceImpl.java
@@ -45,6 +45,7 @@
import java.util.List;
import java.util.Map;
import java.util.Objects;
+import java.util.Optional;
import java.util.Set;
/**
@@ -71,7 +72,6 @@
private final OverlayManagerSettings mSettings;
private final OverlayConfig mOverlayConfig;
private final String[] mDefaultOverlays;
- private final OverlayChangeListener mListener;
/**
* Helper method to merge the overlay manager's (as read from overlays.xml)
@@ -114,14 +114,12 @@
@NonNull final IdmapManager idmapManager,
@NonNull final OverlayManagerSettings settings,
@NonNull final OverlayConfig overlayConfig,
- @NonNull final String[] defaultOverlays,
- @NonNull final OverlayChangeListener listener) {
+ @NonNull final String[] defaultOverlays) {
mPackageManager = packageManager;
mIdmapManager = idmapManager;
mSettings = settings;
mOverlayConfig = overlayConfig;
mDefaultOverlays = defaultOverlays;
- mListener = listener;
}
/**
@@ -259,52 +257,58 @@
mSettings.removeUser(userId);
}
- void onTargetPackageAdded(@NonNull final String packageName, final int userId) {
+ Optional<PackageAndUser> onTargetPackageAdded(@NonNull final String packageName,
+ final int userId) throws OperationFailedException {
if (DEBUG) {
Slog.d(TAG, "onTargetPackageAdded packageName=" + packageName + " userId=" + userId);
}
- updateAndRefreshOverlaysForTarget(packageName, userId, 0);
+ return updateAndRefreshOverlaysForTarget(packageName, userId, 0);
}
- void onTargetPackageChanged(@NonNull final String packageName, final int userId) {
+ Optional<PackageAndUser> onTargetPackageChanged(@NonNull final String packageName,
+ final int userId) throws OperationFailedException {
if (DEBUG) {
Slog.d(TAG, "onTargetPackageChanged packageName=" + packageName + " userId=" + userId);
}
- updateAndRefreshOverlaysForTarget(packageName, userId, 0);
+ return updateAndRefreshOverlaysForTarget(packageName, userId, 0);
}
- void onTargetPackageReplacing(@NonNull final String packageName, final int userId) {
+ Optional<PackageAndUser> onTargetPackageReplacing(@NonNull final String packageName,
+ final int userId) throws OperationFailedException {
if (DEBUG) {
Slog.d(TAG, "onTargetPackageReplacing packageName=" + packageName + " userId="
+ userId);
}
- updateAndRefreshOverlaysForTarget(packageName, userId, 0);
+ return updateAndRefreshOverlaysForTarget(packageName, userId, 0);
}
- void onTargetPackageReplaced(@NonNull final String packageName, final int userId) {
+ Optional<PackageAndUser> onTargetPackageReplaced(@NonNull final String packageName,
+ final int userId) throws OperationFailedException {
if (DEBUG) {
Slog.d(TAG, "onTargetPackageReplaced packageName=" + packageName + " userId=" + userId);
}
- updateAndRefreshOverlaysForTarget(packageName, userId, 0);
+ return updateAndRefreshOverlaysForTarget(packageName, userId, 0);
}
- void onTargetPackageRemoved(@NonNull final String packageName, final int userId) {
+ Optional<PackageAndUser> onTargetPackageRemoved(@NonNull final String packageName,
+ final int userId) throws OperationFailedException {
if (DEBUG) {
Slog.d(TAG, "onTargetPackageRemoved packageName=" + packageName + " userId=" + userId);
}
- updateAndRefreshOverlaysForTarget(packageName, userId, 0);
+ return updateAndRefreshOverlaysForTarget(packageName, userId, 0);
}
/**
* Update the state of any overlays for this target.
*/
- private void updateAndRefreshOverlaysForTarget(@NonNull final String targetPackageName,
- final int userId, final int flags) {
+ private Optional<PackageAndUser> updateAndRefreshOverlaysForTarget(
+ @NonNull final String targetPackageName, final int userId, final int flags)
+ throws OperationFailedException {
final List<OverlayInfo> targetOverlays = mSettings.getOverlaysForTarget(targetPackageName,
userId);
@@ -364,11 +368,13 @@
}
if (modified) {
- mListener.onOverlaysChanged(targetPackageName, userId);
+ return Optional.of(new PackageAndUser(targetPackageName, userId));
}
+ return Optional.empty();
}
- void onOverlayPackageAdded(@NonNull final String packageName, final int userId) {
+ Optional<PackageAndUser> onOverlayPackageAdded(@NonNull final String packageName,
+ final int userId) throws OperationFailedException {
if (DEBUG) {
Slog.d(TAG, "onOverlayPackageAdded packageName=" + packageName + " userId=" + userId);
}
@@ -376,8 +382,7 @@
final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId);
if (overlayPackage == null) {
Slog.w(TAG, "overlay package " + packageName + " was added, but couldn't be found");
- onOverlayPackageRemoved(packageName, userId);
- return;
+ return onOverlayPackageRemoved(packageName, userId);
}
mSettings.init(packageName, userId, overlayPackage.overlayTarget,
@@ -389,15 +394,17 @@
overlayPackage.overlayCategory);
try {
if (updateState(overlayPackage.overlayTarget, packageName, userId, 0)) {
- mListener.onOverlaysChanged(overlayPackage.overlayTarget, userId);
+ return Optional.of(new PackageAndUser(overlayPackage.overlayTarget, userId));
}
+ return Optional.empty();
} catch (OverlayManagerSettings.BadKeyException e) {
- Slog.e(TAG, "failed to update settings", e);
mSettings.remove(packageName, userId);
+ throw new OperationFailedException("failed to update settings", e);
}
}
- void onOverlayPackageChanged(@NonNull final String packageName, final int userId) {
+ Optional<PackageAndUser> onOverlayPackageChanged(@NonNull final String packageName,
+ final int userId) throws OperationFailedException {
if (DEBUG) {
Slog.d(TAG, "onOverlayPackageChanged packageName=" + packageName + " userId=" + userId);
}
@@ -405,14 +412,16 @@
try {
final OverlayInfo oi = mSettings.getOverlayInfo(packageName, userId);
if (updateState(oi.targetPackageName, packageName, userId, 0)) {
- mListener.onOverlaysChanged(oi.targetPackageName, userId);
+ return Optional.of(new PackageAndUser(oi.targetPackageName, userId));
}
+ return Optional.empty();
} catch (OverlayManagerSettings.BadKeyException e) {
- Slog.e(TAG, "failed to update settings", e);
+ throw new OperationFailedException("failed to update settings", e);
}
}
- void onOverlayPackageReplacing(@NonNull final String packageName, final int userId) {
+ Optional<PackageAndUser> onOverlayPackageReplacing(@NonNull final String packageName,
+ final int userId) throws OperationFailedException {
if (DEBUG) {
Slog.d(TAG, "onOverlayPackageReplacing packageName=" + packageName + " userId="
+ userId);
@@ -423,14 +432,16 @@
if (updateState(oi.targetPackageName, packageName, userId,
FLAG_OVERLAY_IS_BEING_REPLACED)) {
removeIdmapIfPossible(oi);
- mListener.onOverlaysChanged(oi.targetPackageName, userId);
+ return Optional.of(new PackageAndUser(oi.targetPackageName, userId));
}
+ return Optional.empty();
} catch (OverlayManagerSettings.BadKeyException e) {
- Slog.e(TAG, "failed to update settings", e);
+ throw new OperationFailedException("failed to update settings", e);
}
}
- void onOverlayPackageReplaced(@NonNull final String packageName, final int userId) {
+ Optional<PackageAndUser> onOverlayPackageReplaced(@NonNull final String packageName,
+ final int userId) throws OperationFailedException {
if (DEBUG) {
Slog.d(TAG, "onOverlayPackageReplaced packageName=" + packageName + " userId="
+ userId);
@@ -439,16 +450,12 @@
final PackageInfo pkg = mPackageManager.getPackageInfo(packageName, userId);
if (pkg == null) {
Slog.w(TAG, "overlay package " + packageName + " was replaced, but couldn't be found");
- onOverlayPackageRemoved(packageName, userId);
- return;
+ return onOverlayPackageRemoved(packageName, userId);
}
try {
final OverlayInfo oldOi = mSettings.getOverlayInfo(packageName, userId);
if (mustReinitializeOverlay(pkg, oldOi)) {
- if (oldOi != null && !oldOi.targetPackageName.equals(pkg.overlayTarget)) {
- mListener.onOverlaysChanged(pkg.overlayTarget, userId);
- }
mSettings.init(packageName, userId, pkg.overlayTarget, pkg.targetOverlayableName,
pkg.applicationInfo.getBaseCodePath(),
isPackageConfiguredMutable(pkg.packageName),
@@ -457,22 +464,25 @@
}
if (updateState(pkg.overlayTarget, packageName, userId, 0)) {
- mListener.onOverlaysChanged(pkg.overlayTarget, userId);
+ return Optional.of(new PackageAndUser(pkg.overlayTarget, userId));
}
+ return Optional.empty();
} catch (OverlayManagerSettings.BadKeyException e) {
- Slog.e(TAG, "failed to update settings", e);
+ throw new OperationFailedException("failed to update settings", e);
}
}
- void onOverlayPackageRemoved(@NonNull final String packageName, final int userId) {
+ Optional<PackageAndUser> onOverlayPackageRemoved(@NonNull final String packageName,
+ final int userId) throws OperationFailedException {
try {
final OverlayInfo overlayInfo = mSettings.getOverlayInfo(packageName, userId);
if (mSettings.remove(packageName, userId)) {
removeIdmapIfPossible(overlayInfo);
- mListener.onOverlaysChanged(overlayInfo.targetPackageName, userId);
+ return Optional.of(new PackageAndUser(overlayInfo.targetPackageName, userId));
}
+ return Optional.empty();
} catch (OverlayManagerSettings.BadKeyException e) {
- Slog.e(TAG, "failed to remove overlay", e);
+ throw new OperationFailedException("failed to remove overlay", e);
}
}
@@ -493,8 +503,8 @@
return mSettings.getOverlaysForUser(userId);
}
- boolean setEnabled(@NonNull final String packageName, final boolean enable,
- final int userId) {
+ Optional<PackageAndUser> setEnabled(@NonNull final String packageName, final boolean enable,
+ final int userId) throws OperationFailedException {
if (DEBUG) {
Slog.d(TAG, String.format("setEnabled packageName=%s enable=%s userId=%d",
packageName, enable, userId));
@@ -502,30 +512,33 @@
final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId);
if (overlayPackage == null) {
- return false;
+ throw new OperationFailedException(
+ String.format("failed to find overlay package %s for user %d",
+ packageName, userId));
}
try {
final OverlayInfo oi = mSettings.getOverlayInfo(packageName, userId);
if (!oi.isMutable) {
// Ignore immutable overlays.
- return false;
+ throw new OperationFailedException(
+ "cannot enable immutable overlay packages in runtime");
}
boolean modified = mSettings.setEnabled(packageName, userId, enable);
modified |= updateState(oi.targetPackageName, oi.packageName, userId, 0);
if (modified) {
- mListener.onOverlaysChanged(oi.targetPackageName, userId);
+ return Optional.of(new PackageAndUser(oi.targetPackageName, userId));
}
- return true;
+ return Optional.empty();
} catch (OverlayManagerSettings.BadKeyException e) {
- return false;
+ throw new OperationFailedException("failed to update settings", e);
}
}
- boolean setEnabledExclusive(@NonNull final String packageName, boolean withinCategory,
- final int userId) {
+ Optional<PackageAndUser> setEnabledExclusive(@NonNull final String packageName,
+ boolean withinCategory, final int userId) throws OperationFailedException {
if (DEBUG) {
Slog.d(TAG, String.format("setEnabledExclusive packageName=%s"
+ " withinCategory=%s userId=%d", packageName, withinCategory, userId));
@@ -533,7 +546,8 @@
final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId);
if (overlayPackage == null) {
- return false;
+ throw new OperationFailedException(String.format(
+ "failed to find overlay package %s for user %d", packageName, userId));
}
try {
@@ -576,11 +590,11 @@
modified |= updateState(targetPackageName, packageName, userId, 0);
if (modified) {
- mListener.onOverlaysChanged(targetPackageName, userId);
+ return Optional.of(new PackageAndUser(targetPackageName, userId));
}
- return true;
+ return Optional.empty();
} catch (OverlayManagerSettings.BadKeyException e) {
- return false;
+ throw new OperationFailedException("failed to update settings", e);
}
}
@@ -596,66 +610,75 @@
return mOverlayConfig.isEnabled(packageName);
}
- boolean setPriority(@NonNull final String packageName,
- @NonNull final String newParentPackageName, final int userId) {
+ Optional<PackageAndUser> setPriority(@NonNull final String packageName,
+ @NonNull final String newParentPackageName, final int userId)
+ throws OperationFailedException {
if (DEBUG) {
Slog.d(TAG, "setPriority packageName=" + packageName + " newParentPackageName="
+ newParentPackageName + " userId=" + userId);
}
if (!isPackageConfiguredMutable(packageName)) {
- return false;
+ throw new OperationFailedException(String.format(
+ "overlay package %s user %d is not updatable", packageName, userId));
}
final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId);
if (overlayPackage == null) {
- return false;
+ throw new OperationFailedException(String.format(
+ "failed to find overlay package %s for user %d", packageName, userId));
}
if (mSettings.setPriority(packageName, newParentPackageName, userId)) {
- mListener.onOverlaysChanged(overlayPackage.overlayTarget, userId);
+ return Optional.of(new PackageAndUser(overlayPackage.overlayTarget, userId));
}
- return true;
+ return Optional.empty();
}
- boolean setHighestPriority(@NonNull final String packageName, final int userId) {
+ Optional<PackageAndUser> setHighestPriority(@NonNull final String packageName,
+ final int userId) throws OperationFailedException {
if (DEBUG) {
Slog.d(TAG, "setHighestPriority packageName=" + packageName + " userId=" + userId);
}
if (!isPackageConfiguredMutable(packageName)) {
- return false;
+ throw new OperationFailedException(String.format(
+ "overlay package %s user %d is not updatable", packageName, userId));
}
final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId);
if (overlayPackage == null) {
- return false;
+ throw new OperationFailedException(String.format(
+ "failed to find overlay package %s for user %d", packageName, userId));
}
if (mSettings.setHighestPriority(packageName, userId)) {
- mListener.onOverlaysChanged(overlayPackage.overlayTarget, userId);
+ return Optional.of(new PackageAndUser(overlayPackage.overlayTarget, userId));
}
- return true;
+ return Optional.empty();
}
- boolean setLowestPriority(@NonNull final String packageName, final int userId) {
+ Optional<PackageAndUser> setLowestPriority(@NonNull final String packageName, final int userId)
+ throws OperationFailedException {
if (DEBUG) {
Slog.d(TAG, "setLowestPriority packageName=" + packageName + " userId=" + userId);
}
if (!isPackageConfiguredMutable(packageName)) {
- return false;
+ throw new OperationFailedException(String.format(
+ "overlay package %s user %d is not updatable", packageName, userId));
}
final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId);
if (overlayPackage == null) {
- return false;
+ throw new OperationFailedException(String.format(
+ "failed to find overlay package %s for user %d", packageName, userId));
}
if (mSettings.setLowestPriority(packageName, userId)) {
- mListener.onOverlaysChanged(overlayPackage.overlayTarget, userId);
+ return Optional.of(new PackageAndUser(overlayPackage.overlayTarget, userId));
}
- return true;
+ return Optional.empty();
}
void dump(@NonNull final PrintWriter pw, @NonNull DumpState dumpState) {
@@ -797,12 +820,13 @@
mIdmapManager.removeIdmap(oi, oi.userId);
}
- interface OverlayChangeListener {
+ static final class OperationFailedException extends Exception {
+ OperationFailedException(@NonNull final String message) {
+ super(message);
+ }
- /**
- * An event triggered by changes made to overlay state or settings as well as changes that
- * add or remove target packages of overlays.
- **/
- void onOverlaysChanged(@NonNull String targetPackage, int userId);
+ OperationFailedException(@NonNull final String message, @NonNull Throwable cause) {
+ super(message, cause);
+ }
}
}
diff --git a/services/core/java/com/android/server/om/PackageAndUser.java b/services/core/java/com/android/server/om/PackageAndUser.java
new file mode 100644
index 0000000..5c38ba7
--- /dev/null
+++ b/services/core/java/com/android/server/om/PackageAndUser.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright (C) 2020 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.server.om;
+
+import android.annotation.NonNull;
+import android.annotation.Nullable;
+import android.annotation.UserIdInt;
+
+final class PackageAndUser {
+ public final @NonNull String packageName;
+ public final @UserIdInt int userId;
+
+ PackageAndUser(@NonNull String packageName, @UserIdInt int userId) {
+ this.packageName = packageName;
+ this.userId = userId;
+ }
+
+ @Override
+ public boolean equals(@Nullable Object obj) {
+ if (this == obj) {
+ return true;
+ }
+ if (!(obj instanceof PackageAndUser)) {
+ return false;
+ }
+ PackageAndUser other = (PackageAndUser) obj;
+ return packageName.equals(other.packageName) && userId == other.userId;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + packageName.hashCode();
+ result = prime * result + userId;
+ return result;
+ }
+
+ @Override
+ public String toString() {
+ return String.format("PackageAndUser{packageName=%s, userId=%d}", packageName, userId);
+ }
+}
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
index c121d24..a7b9622 100644
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
@@ -331,6 +331,7 @@
import com.android.internal.os.Zygote;
import com.android.internal.telephony.CarrierAppUtils;
import com.android.internal.util.ArrayUtils;
+import com.android.internal.util.CollectionUtils;
import com.android.internal.util.ConcurrentUtils;
import com.android.internal.util.DumpUtils;
import com.android.internal.util.FastXmlSerializer;
@@ -12455,12 +12456,17 @@
mPermissionManager.addAllPermissionGroups(pkg, chatty);
}
+ // If a permission has had its defining app changed, or it has had its protection
+ // upgraded, we need to revoke apps that hold it
+ final List<String> permissionsWithChangedDefinition;
// Don't allow ephemeral applications to define new permissions.
if ((scanFlags & SCAN_AS_INSTANT_APP) != 0) {
+ permissionsWithChangedDefinition = null;
Slog.w(TAG, "Permissions from package " + pkg.getPackageName()
+ " ignored: instant apps cannot define new permissions.");
} else {
- mPermissionManager.addAllPermissions(pkg, chatty);
+ permissionsWithChangedDefinition =
+ mPermissionManager.addAllPermissions(pkg, chatty);
}
int collectionSize = ArrayUtils.size(pkg.getInstrumentations());
@@ -12489,7 +12495,10 @@
}
}
- if (oldPkg != null) {
+ boolean hasOldPkg = oldPkg != null;
+ boolean hasPermissionDefinitionChanges =
+ !CollectionUtils.isEmpty(permissionsWithChangedDefinition);
+ if (hasOldPkg || hasPermissionDefinitionChanges) {
// We need to call revokeRuntimePermissionsIfGroupChanged async as permission
// revoke callbacks from this method might need to kill apps which need the
// mPackages lock on a different thread. This would dead lock.
@@ -12500,9 +12509,16 @@
// won't be granted yet, hence new packages are no problem.
final ArrayList<String> allPackageNames = new ArrayList<>(mPackages.keySet());
- AsyncTask.execute(() ->
+ AsyncTask.execute(() -> {
+ if (hasOldPkg) {
mPermissionManager.revokeRuntimePermissionsIfGroupChanged(pkg, oldPkg,
- allPackageNames));
+ allPackageNames);
+ }
+ if (hasPermissionDefinitionChanges) {
+ mPermissionManager.revokeRuntimePermissionsIfPermissionDefinitionChanged(
+ permissionsWithChangedDefinition, allPackageNames);
+ }
+ });
}
}
diff --git a/services/core/java/com/android/server/pm/UserManagerService.java b/services/core/java/com/android/server/pm/UserManagerService.java
index f5d7d9e..9aa47a6 100644
--- a/services/core/java/com/android/server/pm/UserManagerService.java
+++ b/services/core/java/com/android/server/pm/UserManagerService.java
@@ -3724,7 +3724,7 @@
UserData putUserInfo(UserInfo userInfo) {
final UserData userData = new UserData();
userData.info = userInfo;
- synchronized (mUsers) {
+ synchronized (mUsersLock) {
mUsers.put(userInfo.id, userData);
}
return userData;
@@ -3732,7 +3732,7 @@
@VisibleForTesting
void removeUserInfo(@UserIdInt int userId) {
- synchronized (mUsers) {
+ synchronized (mUsersLock) {
mUsers.remove(userId);
}
}
@@ -4052,7 +4052,7 @@
userFile.delete();
updateUserIds();
if (RELEASE_DELETED_USER_ID) {
- synchronized (mUsers) {
+ synchronized (mUsersLock) {
mRemovingUserIds.delete(userId);
}
}
@@ -5183,6 +5183,9 @@
debugMsg + " for another profile "
+ targetUserId + " from " + callingUserId);
}
+ Slog.w(LOG_TAG, debugMsg + " for another profile "
+ + targetUserId + " from " + callingUserId);
+ return false;
}
UserInfo targetUserInfo = getUserInfoLU(targetUserId);
diff --git a/services/core/java/com/android/server/pm/permission/BasePermission.java b/services/core/java/com/android/server/pm/permission/BasePermission.java
index cfa0449..5e04171 100644
--- a/services/core/java/com/android/server/pm/permission/BasePermission.java
+++ b/services/core/java/com/android/server/pm/permission/BasePermission.java
@@ -83,6 +83,8 @@
final @PermissionType int type;
+ private boolean mPermissionDefinitionChanged;
+
String sourcePackageName;
int protectionLevel;
@@ -126,6 +128,11 @@
public String getSourcePackageName() {
return sourcePackageName;
}
+
+ public boolean isPermissionDefinitionChanged() {
+ return mPermissionDefinitionChanged;
+ }
+
public int getType() {
return type;
}
@@ -140,6 +147,10 @@
this.perm = perm;
}
+ public void setPermissionDefinitionChanged(boolean shouldOverride) {
+ mPermissionDefinitionChanged = shouldOverride;
+ }
+
public int[] computeGids(int userId) {
if (perUser) {
final int[] userGids = new int[gids.length];
@@ -322,6 +333,7 @@
final PackageSettingBase pkgSetting =
(PackageSettingBase) packageManagerInternal.getPackageSetting(pkg.getPackageName());
// Allow system apps to redefine non-system permissions
+ boolean ownerChanged = false;
if (bp != null && !Objects.equals(bp.sourcePackageName, p.getPackageName())) {
final boolean currentOwnerIsSystem;
if (bp.perm == null) {
@@ -347,6 +359,7 @@
String msg = "New decl " + pkg + " of permission "
+ p.getName() + " is system; overriding " + bp.sourcePackageName;
PackageManagerService.reportSettingsProblem(Log.WARN, msg);
+ ownerChanged = true;
bp = null;
}
}
@@ -354,6 +367,7 @@
if (bp == null) {
bp = new BasePermission(p.getName(), p.getPackageName(), TYPE_NORMAL);
}
+ boolean wasNonRuntime = !bp.isRuntime();
StringBuilder r = null;
if (bp.perm == null) {
if (bp.sourcePackageName == null
@@ -397,6 +411,11 @@
&& Objects.equals(bp.perm.getName(), p.getName())) {
bp.protectionLevel = p.getProtectionLevel();
}
+ if (bp.isRuntime() && (ownerChanged || wasNonRuntime)) {
+ // If this is a runtime permission and the owner has changed, or this was a normal
+ // permission, then permission state should be cleaned up
+ bp.mPermissionDefinitionChanged = true;
+ }
if (PackageManagerService.DEBUG_PACKAGE_SCANNING && r != null) {
Log.d(TAG, " Permissions: " + r);
}
diff --git a/services/core/java/com/android/server/pm/permission/PermissionManagerService.java b/services/core/java/com/android/server/pm/permission/PermissionManagerService.java
index 66d8b59..3ffca02 100644
--- a/services/core/java/com/android/server/pm/permission/PermissionManagerService.java
+++ b/services/core/java/com/android/server/pm/permission/PermissionManagerService.java
@@ -2344,8 +2344,74 @@
}
}
- private void addAllPermissions(AndroidPackage pkg, boolean chatty) {
+ /**
+ * If permissions are upgraded to runtime, or their owner changes to the system, then any
+ * granted permissions must be revoked.
+ *
+ * @param permissionsToRevoke A list of permission names to revoke
+ * @param allPackageNames All package names
+ * @param permissionCallback Callback for permission changed
+ */
+ private void revokeRuntimePermissionsIfPermissionDefinitionChanged(
+ @NonNull List<String> permissionsToRevoke,
+ @NonNull ArrayList<String> allPackageNames,
+ @NonNull PermissionCallback permissionCallback) {
+
+ final int[] userIds = mUserManagerInt.getUserIds();
+ final int numPermissions = permissionsToRevoke.size();
+ final int numUserIds = userIds.length;
+ final int numPackages = allPackageNames.size();
+ final int callingUid = Binder.getCallingUid();
+
+ for (int permNum = 0; permNum < numPermissions; permNum++) {
+ String permName = permissionsToRevoke.get(permNum);
+ BasePermission bp = mSettings.getPermission(permName);
+ if (bp == null || !bp.isRuntime()) {
+ continue;
+ }
+ for (int userIdNum = 0; userIdNum < numUserIds; userIdNum++) {
+ final int userId = userIds[userIdNum];
+ for (int packageNum = 0; packageNum < numPackages; packageNum++) {
+ final String packageName = allPackageNames.get(packageNum);
+ final int uid = mPackageManagerInt.getPackageUid(packageName, 0, userId);
+ if (uid < Process.FIRST_APPLICATION_UID) {
+ // do not revoke from system apps
+ continue;
+ }
+ final int permissionState = checkPermissionImpl(permName, packageName,
+ userId);
+ final int flags = getPermissionFlags(permName, packageName, userId);
+ final int flagMask = FLAG_PERMISSION_SYSTEM_FIXED
+ | FLAG_PERMISSION_POLICY_FIXED
+ | FLAG_PERMISSION_GRANTED_BY_DEFAULT
+ | FLAG_PERMISSION_GRANTED_BY_ROLE;
+ if (permissionState == PackageManager.PERMISSION_GRANTED
+ && (flags & flagMask) == 0) {
+ EventLog.writeEvent(0x534e4554, "154505240", uid,
+ "Revoking permission " + permName + " from package "
+ + packageName + " due to definition change");
+ EventLog.writeEvent(0x534e4554, "168319670", uid,
+ "Revoking permission " + permName + " from package "
+ + packageName + " due to definition change");
+ Slog.e(TAG, "Revoking permission " + permName + " from package "
+ + packageName + " due to definition change");
+ try {
+ revokeRuntimePermissionInternal(permName, packageName,
+ false, callingUid, userId, null, permissionCallback);
+ } catch (Exception e) {
+ Slog.e(TAG, "Could not revoke " + permName + " from "
+ + packageName, e);
+ }
+ }
+ }
+ }
+ bp.setPermissionDefinitionChanged(false);
+ }
+ }
+
+ private List<String> addAllPermissions(AndroidPackage pkg, boolean chatty) {
final int N = ArrayUtils.size(pkg.getPermissions());
+ ArrayList<String> definitionChangedPermissions = new ArrayList<>();
for (int i=0; i<N; i++) {
ParsedPermission p = pkg.getPermissions().get(i);
@@ -2367,21 +2433,26 @@
}
}
+ final BasePermission bp;
if (p.isTree()) {
- final BasePermission bp = BasePermission.createOrUpdate(
+ bp = BasePermission.createOrUpdate(
mPackageManagerInt,
mSettings.getPermissionTreeLocked(p.getName()), p, pkg,
mSettings.getAllPermissionTreesLocked(), chatty);
mSettings.putPermissionTreeLocked(p.getName(), bp);
} else {
- final BasePermission bp = BasePermission.createOrUpdate(
+ bp = BasePermission.createOrUpdate(
mPackageManagerInt,
mSettings.getPermissionLocked(p.getName()),
p, pkg, mSettings.getAllPermissionTreesLocked(), chatty);
mSettings.putPermissionLocked(p.getName(), bp);
}
+ if (bp.isPermissionDefinitionChanged()) {
+ definitionChangedPermissions.add(p.getName());
+ }
}
}
+ return definitionChangedPermissions;
}
private void addAllPermissionGroups(AndroidPackage pkg, boolean chatty) {
@@ -4672,9 +4743,18 @@
PermissionManagerService.this.revokeRuntimePermissionsIfGroupChanged(newPackage,
oldPackage, allPackageNames, mDefaultPermissionCallback);
}
+
@Override
- public void addAllPermissions(AndroidPackage pkg, boolean chatty) {
- PermissionManagerService.this.addAllPermissions(pkg, chatty);
+ public void revokeRuntimePermissionsIfPermissionDefinitionChanged(
+ @NonNull List<String> permissionsToRevoke,
+ @NonNull ArrayList<String> allPackageNames) {
+ PermissionManagerService.this.revokeRuntimePermissionsIfPermissionDefinitionChanged(
+ permissionsToRevoke, allPackageNames, mDefaultPermissionCallback);
+ }
+
+ @Override
+ public List<String> addAllPermissions(AndroidPackage pkg, boolean chatty) {
+ return PermissionManagerService.this.addAllPermissions(pkg, chatty);
}
@Override
public void addAllPermissionGroups(AndroidPackage pkg, boolean chatty) {
diff --git a/services/core/java/com/android/server/pm/permission/PermissionManagerServiceInternal.java b/services/core/java/com/android/server/pm/permission/PermissionManagerServiceInternal.java
index 37f4059..393e852 100644
--- a/services/core/java/com/android/server/pm/permission/PermissionManagerServiceInternal.java
+++ b/services/core/java/com/android/server/pm/permission/PermissionManagerServiceInternal.java
@@ -254,12 +254,26 @@
@NonNull ArrayList<String> allPackageNames);
/**
+ * Some permissions might have been owned by a non-system package, and the system then defined
+ * said permission. Some other permissions may one have been install permissions, but are now
+ * runtime or higher. These permissions should be revoked.
+ *
+ * @param permissionsToRevoke A list of permission names to revoke
+ * @param allPackageNames All packages
+ */
+ public abstract void revokeRuntimePermissionsIfPermissionDefinitionChanged(
+ @NonNull List<String> permissionsToRevoke,
+ @NonNull ArrayList<String> allPackageNames);
+
+ /**
* Add all permissions in the given package.
* <p>
* NOTE: argument {@code groupTEMP} is temporary until mPermissionGroups is moved to
* the permission settings.
+ *
+ * @return A list of BasePermissions that were updated, and need to be revoked from packages
*/
- public abstract void addAllPermissions(@NonNull AndroidPackage pkg, boolean chatty);
+ public abstract List<String> addAllPermissions(@NonNull AndroidPackage pkg, boolean chatty);
public abstract void addAllPermissionGroups(@NonNull AndroidPackage pkg, boolean chatty);
public abstract void removeAllPermissions(@NonNull AndroidPackage pkg, boolean chatty);
diff --git a/services/core/java/com/android/server/rollback/RollbackManagerServiceImpl.java b/services/core/java/com/android/server/rollback/RollbackManagerServiceImpl.java
index ca382c4..81878e7 100644
--- a/services/core/java/com/android/server/rollback/RollbackManagerServiceImpl.java
+++ b/services/core/java/com/android/server/rollback/RollbackManagerServiceImpl.java
@@ -1292,7 +1292,7 @@
private SparseIntArray getExtensionVersions() {
// This list must be updated whenever the current API level is increased, or should be
// replaced when we have another way of determining the relevant SDK versions.
- final int[] relevantSdkVersions = { Build.VERSION_CODES.R };
+ final int[] relevantSdkVersions = { Build.VERSION_CODES.R, Build.VERSION_CODES.S };
SparseIntArray result = new SparseIntArray(relevantSdkVersions.length);
for (int i = 0; i < relevantSdkVersions.length; i++) {
diff --git a/services/core/java/com/android/server/tv/TvInputManagerService.java b/services/core/java/com/android/server/tv/TvInputManagerService.java
index bedcf9c..6cd0258 100755
--- a/services/core/java/com/android/server/tv/TvInputManagerService.java
+++ b/services/core/java/com/android/server/tv/TvInputManagerService.java
@@ -97,6 +97,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
+import java.util.UUID;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -1176,7 +1177,8 @@
final int resolvedUserId = resolveCallingUserId(callingPid, callingUid,
userId, "createSession");
final long identity = Binder.clearCallingIdentity();
- StringBuilder sessionId = new StringBuilder();
+ // Generate a unique session id with a random UUID.
+ String uniqueSessionId = UUID.randomUUID().toString();
try {
synchronized (mLock) {
if (userId != mCurrentUserId && !isRecordingSession) {
@@ -1205,20 +1207,17 @@
return;
}
- // Create a unique session id with pid, uid and resolved user id
- sessionId.append(callingUid).append(callingPid).append(resolvedUserId);
-
// Create a new session token and a session state.
IBinder sessionToken = new Binder();
SessionState sessionState = new SessionState(sessionToken, info.getId(),
info.getComponent(), isRecordingSession, client, seq, callingUid,
- callingPid, resolvedUserId, sessionId.toString());
+ callingPid, resolvedUserId, uniqueSessionId);
// Add them to the global session state map of the current user.
userState.sessionStateMap.put(sessionToken, sessionState);
// Map the session id to the sessionStateMap in the user state
- mSessionIdToSessionStateMap.put(sessionId.toString(), sessionState);
+ mSessionIdToSessionStateMap.put(uniqueSessionId, sessionState);
// Also, add them to the session state map of the current service.
serviceState.sessionTokens.add(sessionToken);
diff --git a/services/core/java/com/android/server/tv/tunerresourcemanager/ClientProfile.java b/services/core/java/com/android/server/tv/tunerresourcemanager/ClientProfile.java
index 2b0fe8a..2fc17fe 100644
--- a/services/core/java/com/android/server/tv/tunerresourcemanager/ClientProfile.java
+++ b/services/core/java/com/android/server/tv/tunerresourcemanager/ClientProfile.java
@@ -68,6 +68,11 @@
private Set<Integer> mUsingFrontendIds = new HashSet<>();
/**
+ * List of the client ids that share frontend with the current client.
+ */
+ private Set<Integer> mShareFeClientIds = new HashSet<>();
+
+ /**
* List of the Lnb ids that are used by the current client.
*/
private Set<Integer> mUsingLnbIds = new HashSet<>();
@@ -113,11 +118,7 @@
}
public int getPriority() {
- return mPriority;
- }
-
- public int getNiceValue() {
- return mNiceValue;
+ return mPriority - mNiceValue;
}
public void setGroupId(int groupId) {
@@ -141,17 +142,38 @@
mUsingFrontendIds.add(frontendId);
}
+ /**
+ * Update the set of client that share frontend with the current client.
+ *
+ * @param clientId the client to share the fe with the current client.
+ */
+ public void shareFrontend(int clientId) {
+ mShareFeClientIds.add(clientId);
+ }
+
+ /**
+ * Remove the given client id from the share frontend client id set.
+ *
+ * @param clientId the client to stop sharing the fe with the current client.
+ */
+ public void stopSharingFrontend(int clientId) {
+ mShareFeClientIds.remove(clientId);
+ }
+
public Set<Integer> getInUseFrontendIds() {
return mUsingFrontendIds;
}
+ public Set<Integer> getShareFeClientIds() {
+ return mShareFeClientIds;
+ }
+
/**
* Called when the client released a frontend.
- *
- * @param frontendId being released.
*/
- public void releaseFrontend(int frontendId) {
- mUsingFrontendIds.remove(frontendId);
+ public void releaseFrontend() {
+ mUsingFrontendIds.clear();
+ mShareFeClientIds.clear();
}
/**
@@ -201,6 +223,7 @@
*/
public void reclaimAllResources() {
mUsingFrontendIds.clear();
+ mShareFeClientIds.clear();
mUsingLnbIds.clear();
mUsingCasSystemId = INVALID_RESOURCE_ID;
}
diff --git a/services/core/java/com/android/server/tv/tunerresourcemanager/TunerResourceManagerService.java b/services/core/java/com/android/server/tv/tunerresourcemanager/TunerResourceManagerService.java
index 7cb59dc..fb2347e8 100644
--- a/services/core/java/com/android/server/tv/tunerresourcemanager/TunerResourceManagerService.java
+++ b/services/core/java/com/android/server/tv/tunerresourcemanager/TunerResourceManagerService.java
@@ -210,19 +210,36 @@
}
synchronized (mLock) {
if (!checkClientExists(request.getClientId())) {
- throw new RemoteException("Request frontend from unregistered client:"
+ throw new RemoteException("Request frontend from unregistered client: "
+ request.getClientId());
}
+ // If the request client is holding or sharing a frontend, throw an exception.
+ if (!getClientProfile(request.getClientId()).getInUseFrontendIds().isEmpty()) {
+ throw new RemoteException("Release frontend before requesting another one. "
+ + "Client id: " + request.getClientId());
+ }
return requestFrontendInternal(request, frontendHandle);
}
}
@Override
- public void shareFrontend(int selfClientId, int targetClientId) {
+ public void shareFrontend(int selfClientId, int targetClientId) throws RemoteException {
enforceTunerAccessPermission("shareFrontend");
enforceTrmAccessPermission("shareFrontend");
- if (DEBUG) {
- Slog.d(TAG, "shareFrontend from " + selfClientId + " with " + targetClientId);
+ synchronized (mLock) {
+ if (!checkClientExists(selfClientId)) {
+ throw new RemoteException("Share frontend request from an unregistered client:"
+ + selfClientId);
+ }
+ if (!checkClientExists(targetClientId)) {
+ throw new RemoteException("Request to share frontend with an unregistered "
+ + "client:" + targetClientId);
+ }
+ if (getClientProfile(targetClientId).getInUseFrontendIds().isEmpty()) {
+ throw new RemoteException("Request to share frontend with a client that has no "
+ + "frontend resources. Target client id:" + targetClientId);
+ }
+ shareFrontendInternal(selfClientId, targetClientId);
}
}
@@ -315,7 +332,7 @@
throw new RemoteException(
"Client is not the current owner of the releasing fe.");
}
- releaseFrontendInternal(fe);
+ releaseFrontendInternal(fe, clientId);
}
}
@@ -649,6 +666,17 @@
}
@VisibleForTesting
+ protected void shareFrontendInternal(int selfClientId, int targetClientId) {
+ if (DEBUG) {
+ Slog.d(TAG, "shareFrontend from " + selfClientId + " with " + targetClientId);
+ }
+ for (int feId : getClientProfile(targetClientId).getInUseFrontendIds()) {
+ getClientProfile(selfClientId).useFrontend(feId);
+ }
+ getClientProfile(targetClientId).shareFrontend(selfClientId);
+ }
+
+ @VisibleForTesting
protected boolean requestLnbInternal(TunerLnbRequest request, int[] lnbHandle) {
if (DEBUG) {
Slog.d(TAG, "requestLnb(request=" + request + ")");
@@ -777,11 +805,17 @@
}
@VisibleForTesting
- protected void releaseFrontendInternal(FrontendResource fe) {
+ protected void releaseFrontendInternal(FrontendResource fe, int clientId) {
if (DEBUG) {
- Slog.d(TAG, "releaseFrontend(id=" + fe.getId() + ")");
+ Slog.d(TAG, "releaseFrontend(id=" + fe.getId() + ", clientId=" + clientId + " )");
}
- updateFrontendClientMappingOnRelease(fe);
+ if (clientId == fe.getOwnerClientId()) {
+ ClientProfile ownerClient = getClientProfile(fe.getOwnerClientId());
+ for (int shareOwnerId : ownerClient.getShareFeClientIds()) {
+ clearFrontendAndClientMapping(getClientProfile(shareOwnerId));
+ }
+ }
+ clearFrontendAndClientMapping(getClientProfile(clientId));
}
@VisibleForTesting
@@ -882,8 +916,21 @@
Slog.e(TAG, "Failed to reclaim resources on client " + reclaimingClientId, e);
return false;
}
+
+ // Reclaim all the resources of the share owners of the frontend that is used by the current
+ // resource reclaimed client.
ClientProfile profile = getClientProfile(reclaimingClientId);
- reclaimingResourcesFromClient(profile);
+ Set<Integer> shareFeClientIds = profile.getShareFeClientIds();
+ for (int clientId : shareFeClientIds) {
+ try {
+ mListeners.get(clientId).getListener().onReclaimResources();
+ } catch (RemoteException e) {
+ Slog.e(TAG, "Failed to reclaim resources on client " + clientId, e);
+ return false;
+ }
+ clearAllResourcesAndClientMapping(getClientProfile(clientId));
+ }
+ clearAllResourcesAndClientMapping(profile);
return true;
}
@@ -929,16 +976,6 @@
}
}
- private void updateFrontendClientMappingOnRelease(@NonNull FrontendResource releasingFrontend) {
- ClientProfile ownerProfile = getClientProfile(releasingFrontend.getOwnerClientId());
- releasingFrontend.removeOwner();
- ownerProfile.releaseFrontend(releasingFrontend.getId());
- for (int exclusiveGroupMember : releasingFrontend.getExclusiveGroupMemberFeIds()) {
- getFrontendResource(exclusiveGroupMember).removeOwner();
- ownerProfile.releaseFrontend(exclusiveGroupMember);
- }
- }
-
private void updateLnbClientMappingOnNewGrant(int grantingId, int ownerClientId) {
LnbResource grantingLnb = getLnbResource(grantingId);
ClientProfile ownerProfile = getClientProfile(ownerClientId);
@@ -967,10 +1004,10 @@
}
/**
- * Get the owner client's priority from the resource id.
+ * Get the owner client's priority.
*
* @param clientId the owner client id.
- * @return the priority of the owner client of the resource.
+ * @return the priority of the owner client.
*/
private int getOwnerClientPriority(int clientId) {
return getClientProfile(clientId).getPriority();
@@ -1011,7 +1048,11 @@
return;
}
if (fe.isInUse()) {
- releaseFrontendInternal(fe);
+ ClientProfile ownerClient = getClientProfile(fe.getOwnerClientId());
+ for (int shareOwnerId : ownerClient.getShareFeClientIds()) {
+ clearFrontendAndClientMapping(getClientProfile(shareOwnerId));
+ }
+ clearFrontendAndClientMapping(ownerClient);
}
for (int excGroupmemberFeId : fe.getExclusiveGroupMemberFeIds()) {
getFrontendResource(excGroupmemberFeId)
@@ -1093,21 +1134,37 @@
}
private void removeClientProfile(int clientId) {
- reclaimingResourcesFromClient(getClientProfile(clientId));
+ for (int shareOwnerId : getClientProfile(clientId).getShareFeClientIds()) {
+ clearFrontendAndClientMapping(getClientProfile(shareOwnerId));
+ }
+ clearAllResourcesAndClientMapping(getClientProfile(clientId));
mClientProfiles.remove(clientId);
mListeners.remove(clientId);
}
- private void reclaimingResourcesFromClient(ClientProfile profile) {
+ private void clearFrontendAndClientMapping(ClientProfile profile) {
for (Integer feId : profile.getInUseFrontendIds()) {
- getFrontendResource(feId).removeOwner();
+ FrontendResource fe = getFrontendResource(feId);
+ if (fe.getOwnerClientId() == profile.getId()) {
+ fe.removeOwner();
+ continue;
+ }
+ getClientProfile(fe.getOwnerClientId()).stopSharingFrontend(profile.getId());
}
+ profile.releaseFrontend();
+ }
+
+ private void clearAllResourcesAndClientMapping(ClientProfile profile) {
+ // Clear Lnb
for (Integer lnbId : profile.getInUseLnbIds()) {
getLnbResource(lnbId).removeOwner();
}
+ // Clear Cas
if (profile.getInUseCasSystemId() != ClientProfile.INVALID_RESOURCE_ID) {
getCasResource(profile.getInUseCasSystemId()).removeOwner(profile.getId());
}
+ // Clear Frontend
+ clearFrontendAndClientMapping(profile);
profile.reclaimAllResources();
}
diff --git a/services/core/jni/com_android_server_am_BatteryStatsService.cpp b/services/core/jni/com_android_server_am_BatteryStatsService.cpp
index 0034286..f076ca9 100644
--- a/services/core/jni/com_android_server_am_BatteryStatsService.cpp
+++ b/services/core/jni/com_android_server_am_BatteryStatsService.cpp
@@ -46,6 +46,8 @@
#include <utils/misc.h>
#include <utils/Log.h>
+#include <android-base/strings.h>
+
using android::hardware::hidl_vec;
using android::hardware::Return;
using android::hardware::Void;
@@ -200,67 +202,13 @@
return 0;
}
- char* mergedreasonpos = mergedreason;
- int i = 0;
- for (auto wakeupReason : wakeupReasons) {
- auto reasonline = const_cast<char*>(wakeupReason.c_str());
- char* pos = reasonline;
- char* endPos;
- int len;
- // First field is the index or 'Abort'.
- int irq = (int)strtol(pos, &endPos, 10);
- if (pos != endPos) {
- // Write the irq number to the merged reason string.
- len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "%d" : ":%d", irq);
- } else {
- // The first field is not an irq, it may be the word Abort.
- const size_t abortPrefixLen = strlen("Abort:");
- if (strncmp(pos, "Abort:", abortPrefixLen) != 0) {
- // Ooops.
- ALOGE("Bad reason line: %s", reasonline);
- continue;
- }
+ std::string mergedReasonStr = ::android::base::Join(wakeupReasons, ":");
+ strncpy(mergedreason, mergedReasonStr.c_str(), remainreasonlen);
+ mergedreason[remainreasonlen - 1] = '\0';
- // Write 'Abort' to the merged reason string.
- len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "Abort" : ":Abort");
- endPos = pos + abortPrefixLen;
- }
- pos = endPos;
+ ALOGV("Got %d reasons", (int)wakeupReasons.size());
- if (len >= 0 && len < remainreasonlen) {
- mergedreasonpos += len;
- remainreasonlen -= len;
- }
-
- // Skip whitespace; rest of the buffer is the reason string.
- while (*pos == ' ') {
- pos++;
- }
-
- // Chop newline at end.
- char* endpos = pos;
- while (*endpos != 0) {
- if (*endpos == '\n') {
- *endpos = 0;
- break;
- }
- endpos++;
- }
-
- len = snprintf(mergedreasonpos, remainreasonlen, ":%s", pos);
- if (len >= 0 && len < remainreasonlen) {
- mergedreasonpos += len;
- remainreasonlen -= len;
- }
- i++;
- }
-
- ALOGV("Got %d reasons", i);
- if (i > 0) {
- *mergedreasonpos = 0;
- }
-
- return mergedreasonpos - mergedreason;
+ return strlen(mergedreason);
}
// The caller must be holding gPowerHalMutex.
diff --git a/services/incremental/IncrementalService.cpp b/services/incremental/IncrementalService.cpp
index f3940e6..d07e70c 100644
--- a/services/incremental/IncrementalService.cpp
+++ b/services/incremental/IncrementalService.cpp
@@ -476,6 +476,9 @@
if (!mkdirOrLog(path::join(backing, ".index"), 0777)) {
return kInvalidStorageId;
}
+ if (!mkdirOrLog(path::join(backing, ".incomplete"), 0777)) {
+ return kInvalidStorageId;
+ }
auto status = mVold->mountIncFs(backing, mountTarget, 0, &controlParcel);
if (!status.isOk()) {
LOG(ERROR) << "Vold::mountIncFs() failed: " << status.toString8();
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index b5c5bb5..59b24f8 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -910,6 +910,9 @@
mActivityManagerService.setSystemProcess();
t.traceEnd();
+ // The package receiver depends on the activity service in order to get registered.
+ platformCompat.registerPackageReceiver(mSystemContext);
+
// Complete the watchdog setup with an ActivityManager instance and listen for reboots
// Do this only after the ActivityManagerService is properly started as a system process
t.traceBegin("InitWatchdog");
diff --git a/services/net/Android.bp b/services/net/Android.bp
index ae9bd41..eaf177e 100644
--- a/services/net/Android.bp
+++ b/services/net/Android.bp
@@ -57,6 +57,8 @@
visibility: [
"//frameworks/opt/net/wifi/service",
"//frameworks/opt/net/wifi/tests/wifitests",
+ "//packages/modules/Wifi/service",
+ "//packages/modules/Wifi/service/tests/wifitests",
],
}
diff --git a/services/tests/servicestests/src/com/android/internal/location/timezone/OWNERS b/services/tests/servicestests/src/com/android/internal/location/timezone/OWNERS
new file mode 100644
index 0000000..28aff18
--- /dev/null
+++ b/services/tests/servicestests/src/com/android/internal/location/timezone/OWNERS
@@ -0,0 +1,3 @@
+# Bug component: 847766
+nfuller@google.com
+include /core/java/android/app/timedetector/OWNERS
diff --git a/services/tests/servicestests/src/com/android/server/compat/CompatConfigBuilder.java b/services/tests/servicestests/src/com/android/server/compat/CompatConfigBuilder.java
index 870fe4a..4f4aa3f 100644
--- a/services/tests/servicestests/src/com/android/server/compat/CompatConfigBuilder.java
+++ b/services/tests/servicestests/src/com/android/server/compat/CompatConfigBuilder.java
@@ -117,6 +117,7 @@
CompatConfig build() {
CompatConfig config = new CompatConfig(mBuildClassifier, mContext);
+ config.forceNonDebuggableFinalForTest(false);
for (CompatChange change : mChanges) {
config.addChange(change);
}
diff --git a/services/tests/servicestests/src/com/android/server/compat/CompatConfigTest.java b/services/tests/servicestests/src/com/android/server/compat/CompatConfigTest.java
index 8c63bfc..ac8dc34 100644
--- a/services/tests/servicestests/src/com/android/server/compat/CompatConfigTest.java
+++ b/services/tests/servicestests/src/com/android/server/compat/CompatConfigTest.java
@@ -28,6 +28,7 @@
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
+import android.content.pm.PackageManager.NameNotFoundException;
import androidx.test.runner.AndroidJUnit4;
@@ -81,6 +82,8 @@
@Test
public void testUnknownChangeEnabled() throws Exception {
CompatConfig compatConfig = new CompatConfig(mBuildClassifier, mContext);
+ compatConfig.forceNonDebuggableFinalForTest(false);
+
assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build()))
.isTrue();
}
@@ -180,6 +183,8 @@
@Test
public void testPackageOverrideUnknownPackage() throws Exception {
CompatConfig compatConfig = new CompatConfig(mBuildClassifier, mContext);
+ compatConfig.forceNonDebuggableFinalForTest(false);
+
compatConfig.addOverride(1234L, "com.some.package", false);
@@ -230,6 +235,83 @@
}
@Test
+ public void testApplyDeferredOverridesAfterInstallingApp() throws Exception {
+ ApplicationInfo applicationInfo = ApplicationInfoBuilder.create()
+ .withPackageName("com.notinstalled.foo")
+ .debuggable().build();
+ when(mPackageManager.getApplicationInfo(eq("com.notinstalled.foo"), anyInt()))
+ .thenThrow(new NameNotFoundException());
+ CompatConfig compatConfig = CompatConfigBuilder.create(mBuildClassifier, mContext)
+ .addDisabledChangeWithId(1234L).build();
+ when(mBuildClassifier.isDebuggableBuild()).thenReturn(false);
+ when(mBuildClassifier.isFinalBuild()).thenReturn(true);
+
+ // Add override before the app is available.
+ compatConfig.addOverride(1234L, "com.notinstalled.foo", true);
+ assertThat(compatConfig.isChangeEnabled(1234L, applicationInfo)).isFalse();
+
+ // Pretend the app is now installed.
+ when(mPackageManager.getApplicationInfo(eq("com.notinstalled.foo"), anyInt()))
+ .thenReturn(applicationInfo);
+
+ compatConfig.recheckOverrides("com.notinstalled.foo");
+ assertThat(compatConfig.isChangeEnabled(1234L, applicationInfo)).isTrue();
+ }
+
+ @Test
+ public void testApplyDeferredOverrideClearsOverrideAfterUninstall() throws Exception {
+ ApplicationInfo applicationInfo = ApplicationInfoBuilder.create()
+ .withPackageName("com.installedapp.foo")
+ .debuggable().build();
+ when(mPackageManager.getApplicationInfo(eq("com.installedapp.foo"), anyInt()))
+ .thenReturn(applicationInfo);
+
+ CompatConfig compatConfig = CompatConfigBuilder.create(mBuildClassifier, mContext)
+ .addDisabledChangeWithId(1234L).build();
+ when(mBuildClassifier.isDebuggableBuild()).thenReturn(false);
+ when(mBuildClassifier.isFinalBuild()).thenReturn(true);
+
+ // Add override when app is installed.
+ compatConfig.addOverride(1234L, "com.installedapp.foo", true);
+ assertThat(compatConfig.isChangeEnabled(1234L, applicationInfo)).isTrue();
+
+ // Pretend the app is now uninstalled.
+ when(mPackageManager.getApplicationInfo(eq("com.installedapp.foo"), anyInt()))
+ .thenThrow(new NameNotFoundException());
+
+ compatConfig.recheckOverrides("com.installedapp.foo");
+ assertThat(compatConfig.isChangeEnabled(1234L, applicationInfo)).isFalse();
+ }
+
+ @Test
+ public void testApplyDeferredOverrideClearsOverrideAfterChange() throws Exception {
+ ApplicationInfo debuggableApp = ApplicationInfoBuilder.create()
+ .withPackageName("com.installedapp.foo")
+ .debuggable().build();
+ ApplicationInfo releaseApp = ApplicationInfoBuilder.create()
+ .withPackageName("com.installedapp.foo")
+ .build();
+ when(mPackageManager.getApplicationInfo(eq("com.installedapp.foo"), anyInt()))
+ .thenReturn(debuggableApp);
+
+ CompatConfig compatConfig = CompatConfigBuilder.create(mBuildClassifier, mContext)
+ .addDisabledChangeWithId(1234L).build();
+ when(mBuildClassifier.isDebuggableBuild()).thenReturn(false);
+ when(mBuildClassifier.isFinalBuild()).thenReturn(true);
+
+ // Add override for debuggable app.
+ compatConfig.addOverride(1234L, "com.installedapp.foo", true);
+ assertThat(compatConfig.isChangeEnabled(1234L, debuggableApp)).isTrue();
+
+ // Pretend the app now is no longer debuggable, but has the same package.
+ when(mPackageManager.getApplicationInfo(eq("com.installedapp.foo"), anyInt()))
+ .thenReturn(releaseApp);
+
+ compatConfig.recheckOverrides("com.installedapp.foo");
+ assertThat(compatConfig.isChangeEnabled(1234L, releaseApp)).isFalse();
+ }
+
+ @Test
public void testLoggingOnlyChangePreventAddOverride() throws Exception {
CompatConfig compatConfig = CompatConfigBuilder.create(mBuildClassifier, mContext)
.addLoggingOnlyChangeWithId(1234L)
@@ -259,7 +341,7 @@
// Reject all override attempts.
// Force the validator to prevent overriding the change by using a user build.
when(mBuildClassifier.isDebuggableBuild()).thenReturn(false);
- when(mBuildClassifier.isFinalBuild()).thenReturn(true);
+ when(mBuildClassifier.isFinalBuild()).thenReturn(false);
// Try to turn off change, but validator prevents it.
assertThrows(SecurityException.class,
() -> compatConfig.removeOverride(1234L, "com.some.package"));
@@ -360,6 +442,8 @@
@Test
public void testLookupChangeIdNotPresent() throws Exception {
CompatConfig compatConfig = new CompatConfig(mBuildClassifier, mContext);
+ compatConfig.forceNonDebuggableFinalForTest(false);
+
assertThat(compatConfig.lookupChangeId("MY_CHANGE")).isEqualTo(-1L);
}
@@ -374,6 +458,8 @@
File dir = createTempDir();
writeToFile(dir, "platform_compat_config.xml", configXml);
CompatConfig compatConfig = new CompatConfig(mBuildClassifier, mContext);
+ compatConfig.forceNonDebuggableFinalForTest(false);
+
compatConfig.initConfigFromLib(dir);
assertThat(compatConfig.isChangeEnabled(1234L,
@@ -400,6 +486,8 @@
writeToFile(dir, "libcore_platform_compat_config.xml", configXml1);
writeToFile(dir, "frameworks_platform_compat_config.xml", configXml2);
CompatConfig compatConfig = new CompatConfig(mBuildClassifier, mContext);
+ compatConfig.forceNonDebuggableFinalForTest(false);
+
compatConfig.initConfigFromLib(dir);
assertThat(compatConfig.isChangeEnabled(1234L,
diff --git a/services/tests/servicestests/src/com/android/server/compat/OverrideValidatorImplTest.java b/services/tests/servicestests/src/com/android/server/compat/OverrideValidatorImplTest.java
index c53b29a..0fd6445 100644
--- a/services/tests/servicestests/src/com/android/server/compat/OverrideValidatorImplTest.java
+++ b/services/tests/servicestests/src/com/android/server/compat/OverrideValidatorImplTest.java
@@ -17,6 +17,7 @@
package com.android.server.compat;
import static com.android.internal.compat.OverrideAllowedState.ALLOWED;
+import static com.android.internal.compat.OverrideAllowedState.DEFERRED_VERIFICATION;
import static com.android.internal.compat.OverrideAllowedState.DISABLED_NON_TARGET_SDK;
import static com.android.internal.compat.OverrideAllowedState.DISABLED_NOT_DEBUGGABLE;
import static com.android.internal.compat.OverrideAllowedState.DISABLED_TARGET_SDK_TOO_HIGH;
@@ -31,6 +32,7 @@
import android.content.Context;
import android.content.pm.PackageManager;
+import android.content.pm.PackageManager.NameNotFoundException;
import androidx.test.runner.AndroidJUnit4;
@@ -409,4 +411,216 @@
assertThat(stateDLoggingOnlyChange)
.isEqualTo(new OverrideAllowedState(LOGGING_ONLY_CHANGE, -1, -1));
}
+ @Test
+ public void getOverrideAllowedState_finalBuildAnyChangeNotInstalledApp_deferOverride()
+ throws Exception {
+ CompatConfig config = CompatConfigBuilder.create(finalBuild(), mContext)
+ .addEnableAfterSdkChangeWithId(TARGET_SDK_BEFORE, 1)
+ .addEnableAfterSdkChangeWithId(TARGET_SDK, 2)
+ .addEnableAfterSdkChangeWithId(TARGET_SDK_AFTER, 3)
+ .addEnabledChangeWithId(4)
+ .addDisabledChangeWithId(5)
+ .addLoggingOnlyChangeWithId(6).build();
+ IOverrideValidator overrideValidator = config.getOverrideValidator();
+ when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt()))
+ .thenThrow(new NameNotFoundException());
+
+ OverrideAllowedState stateTargetSdkLessChange =
+ overrideValidator.getOverrideAllowedState(1, PACKAGE_NAME);
+ OverrideAllowedState stateTargetSdkEqualChange =
+ overrideValidator.getOverrideAllowedState(2, PACKAGE_NAME);
+ OverrideAllowedState stateTargetSdkAfterChange =
+ overrideValidator.getOverrideAllowedState(3, PACKAGE_NAME);
+ OverrideAllowedState stateEnabledChange =
+ overrideValidator.getOverrideAllowedState(4, PACKAGE_NAME);
+ OverrideAllowedState stateDisabledChange =
+ overrideValidator.getOverrideAllowedState(5, PACKAGE_NAME);
+ OverrideAllowedState stateDLoggingOnlyChange =
+ overrideValidator.getOverrideAllowedState(6, PACKAGE_NAME);
+
+ assertThat(stateTargetSdkLessChange)
+ .isEqualTo(new OverrideAllowedState(DEFERRED_VERIFICATION, -1, -1));
+ assertThat(stateTargetSdkEqualChange)
+ .isEqualTo(new OverrideAllowedState(DEFERRED_VERIFICATION, -1, -1));
+ assertThat(stateTargetSdkAfterChange)
+ .isEqualTo(new OverrideAllowedState(DEFERRED_VERIFICATION, -1, -1));
+ assertThat(stateEnabledChange)
+ .isEqualTo(new OverrideAllowedState(DEFERRED_VERIFICATION, -1, -1));
+ assertThat(stateDisabledChange)
+ .isEqualTo(new OverrideAllowedState(DEFERRED_VERIFICATION, -1, -1));
+ assertThat(stateDLoggingOnlyChange)
+ .isEqualTo(new OverrideAllowedState(LOGGING_ONLY_CHANGE, -1, -1));
+ }
+
+ @Test
+ public void getOverrideAllowedState_forceFinalBuildTargetSdkChangeDebugAppOptin_allowOverride()
+ throws Exception {
+ CompatConfig config = CompatConfigBuilder.create(debuggableBuild(), mContext)
+ .addEnableAfterSdkChangeWithId(TARGET_SDK_AFTER, 1)
+ .addEnableAfterSdkChangeWithId(TARGET_SDK, 2).build();
+ config.forceNonDebuggableFinalForTest(true);
+ IOverrideValidator overrideValidator = config.getOverrideValidator();
+ when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt()))
+ .thenReturn(ApplicationInfoBuilder.create()
+ .debuggable()
+ .withTargetSdk(TARGET_SDK)
+ .withPackageName(PACKAGE_NAME).build());
+
+ OverrideAllowedState stateTargetSdkGreaterChange =
+ overrideValidator.getOverrideAllowedState(1, PACKAGE_NAME);
+ OverrideAllowedState stateTargetSdkEqualChange =
+ overrideValidator.getOverrideAllowedState(2, PACKAGE_NAME);
+
+ assertThat(stateTargetSdkGreaterChange)
+ .isEqualTo(new OverrideAllowedState(ALLOWED, TARGET_SDK, TARGET_SDK_AFTER));
+
+ assertThat(stateTargetSdkEqualChange)
+ .isEqualTo(new OverrideAllowedState(ALLOWED, TARGET_SDK, TARGET_SDK));
+ }
+
+ @Test
+ public void getOverrideAllowedState_forceFinalBldTargetSdkChangeDebugAppOptout_rejectOverride()
+ throws Exception {
+ CompatConfig config = CompatConfigBuilder.create(debuggableBuild(), mContext)
+ .addEnableAfterSdkChangeWithId(TARGET_SDK_BEFORE, 1).build();
+ config.forceNonDebuggableFinalForTest(true);
+ IOverrideValidator overrideValidator = config.getOverrideValidator();
+ when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt()))
+ .thenReturn(ApplicationInfoBuilder.create()
+ .withPackageName(PACKAGE_NAME)
+ .withTargetSdk(TARGET_SDK)
+ .debuggable()
+ .build());
+
+ OverrideAllowedState stateTargetSdkLessChange =
+ overrideValidator.getOverrideAllowedState(1, PACKAGE_NAME);
+
+ assertThat(stateTargetSdkLessChange).isEqualTo(
+ new OverrideAllowedState(DISABLED_TARGET_SDK_TOO_HIGH, TARGET_SDK,
+ TARGET_SDK_BEFORE));
+ }
+
+ @Test
+ public void getOverrideAllowedState_forceFinalBuildEnabledChangeDebugApp_rejectOverride()
+ throws Exception {
+ CompatConfig config = CompatConfigBuilder.create(debuggableBuild(), mContext)
+ .addEnabledChangeWithId(1).build();
+ config.forceNonDebuggableFinalForTest(true);
+ IOverrideValidator overrideValidator = config.getOverrideValidator();
+ when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt()))
+ .thenReturn(ApplicationInfoBuilder.create()
+ .withPackageName(PACKAGE_NAME)
+ .debuggable().build());
+
+ OverrideAllowedState allowedState =
+ overrideValidator.getOverrideAllowedState(1, PACKAGE_NAME);
+
+ assertThat(allowedState)
+ .isEqualTo(new OverrideAllowedState(DISABLED_NON_TARGET_SDK, -1, -1));
+ }
+
+ @Test
+ public void getOverrideAllowedState_forceFinalBuildDisabledChangeDebugApp_allowOverride()
+ throws Exception {
+ CompatConfig config = CompatConfigBuilder.create(debuggableBuild(), mContext)
+ .addDisabledChangeWithId(1).build();
+ config.forceNonDebuggableFinalForTest(true);
+ IOverrideValidator overrideValidator = config.getOverrideValidator();
+ when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt()))
+ .thenReturn(ApplicationInfoBuilder.create()
+ .withPackageName(PACKAGE_NAME)
+ .withTargetSdk(TARGET_SDK)
+ .debuggable().build());
+
+ OverrideAllowedState allowedState =
+ overrideValidator.getOverrideAllowedState(1, PACKAGE_NAME);
+
+ assertThat(allowedState)
+ .isEqualTo(new OverrideAllowedState(ALLOWED, TARGET_SDK, -1));
+ }
+
+ @Test
+ public void getOverrideAllowedState_forceFinalBuildAnyChangeReleaseApp_rejectOverride()
+ throws Exception {
+ CompatConfig config = CompatConfigBuilder.create(debuggableBuild(), mContext)
+ .addEnableAfterSdkChangeWithId(TARGET_SDK_BEFORE, 1)
+ .addEnableAfterSdkChangeWithId(TARGET_SDK, 2)
+ .addEnableAfterSdkChangeWithId(TARGET_SDK_AFTER, 3)
+ .addEnabledChangeWithId(4)
+ .addDisabledChangeWithId(5)
+ .addLoggingOnlyChangeWithId(6).build();
+ config.forceNonDebuggableFinalForTest(true);
+ IOverrideValidator overrideValidator = config.getOverrideValidator();
+ when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt()))
+ .thenReturn(ApplicationInfoBuilder.create()
+ .withPackageName(PACKAGE_NAME)
+ .withTargetSdk(TARGET_SDK).build());
+
+ OverrideAllowedState stateTargetSdkLessChange =
+ overrideValidator.getOverrideAllowedState(1, PACKAGE_NAME);
+ OverrideAllowedState stateTargetSdkEqualChange =
+ overrideValidator.getOverrideAllowedState(2, PACKAGE_NAME);
+ OverrideAllowedState stateTargetSdkAfterChange =
+ overrideValidator.getOverrideAllowedState(3, PACKAGE_NAME);
+ OverrideAllowedState stateEnabledChange =
+ overrideValidator.getOverrideAllowedState(4, PACKAGE_NAME);
+ OverrideAllowedState stateDisabledChange =
+ overrideValidator.getOverrideAllowedState(5, PACKAGE_NAME);
+ OverrideAllowedState stateDLoggingOnlyChange =
+ overrideValidator.getOverrideAllowedState(6, PACKAGE_NAME);
+
+ assertThat(stateTargetSdkLessChange)
+ .isEqualTo(new OverrideAllowedState(DISABLED_NOT_DEBUGGABLE, -1, -1));
+ assertThat(stateTargetSdkEqualChange)
+ .isEqualTo(new OverrideAllowedState(DISABLED_NOT_DEBUGGABLE, -1, -1));
+ assertThat(stateTargetSdkAfterChange)
+ .isEqualTo(new OverrideAllowedState(DISABLED_NOT_DEBUGGABLE, -1, -1));
+ assertThat(stateEnabledChange)
+ .isEqualTo(new OverrideAllowedState(DISABLED_NOT_DEBUGGABLE, -1, -1));
+ assertThat(stateDisabledChange)
+ .isEqualTo(new OverrideAllowedState(DISABLED_NOT_DEBUGGABLE, -1, -1));
+ assertThat(stateDLoggingOnlyChange)
+ .isEqualTo(new OverrideAllowedState(LOGGING_ONLY_CHANGE, -1, -1));
+ }
+ @Test
+ public void getOverrideAllowedState_forceFinalBuildAnyChangeNotInstalledApp_deferOverride()
+ throws Exception {
+ CompatConfig config = CompatConfigBuilder.create(debuggableBuild(), mContext)
+ .addEnableAfterSdkChangeWithId(TARGET_SDK_BEFORE, 1)
+ .addEnableAfterSdkChangeWithId(TARGET_SDK, 2)
+ .addEnableAfterSdkChangeWithId(TARGET_SDK_AFTER, 3)
+ .addEnabledChangeWithId(4)
+ .addDisabledChangeWithId(5)
+ .addLoggingOnlyChangeWithId(6).build();
+ config.forceNonDebuggableFinalForTest(true);
+ IOverrideValidator overrideValidator = config.getOverrideValidator();
+ when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt()))
+ .thenThrow(new NameNotFoundException());
+
+ OverrideAllowedState stateTargetSdkLessChange =
+ overrideValidator.getOverrideAllowedState(1, PACKAGE_NAME);
+ OverrideAllowedState stateTargetSdkEqualChange =
+ overrideValidator.getOverrideAllowedState(2, PACKAGE_NAME);
+ OverrideAllowedState stateTargetSdkAfterChange =
+ overrideValidator.getOverrideAllowedState(3, PACKAGE_NAME);
+ OverrideAllowedState stateEnabledChange =
+ overrideValidator.getOverrideAllowedState(4, PACKAGE_NAME);
+ OverrideAllowedState stateDisabledChange =
+ overrideValidator.getOverrideAllowedState(5, PACKAGE_NAME);
+ OverrideAllowedState stateDLoggingOnlyChange =
+ overrideValidator.getOverrideAllowedState(6, PACKAGE_NAME);
+
+ assertThat(stateTargetSdkLessChange)
+ .isEqualTo(new OverrideAllowedState(DEFERRED_VERIFICATION, -1, -1));
+ assertThat(stateTargetSdkEqualChange)
+ .isEqualTo(new OverrideAllowedState(DEFERRED_VERIFICATION, -1, -1));
+ assertThat(stateTargetSdkAfterChange)
+ .isEqualTo(new OverrideAllowedState(DEFERRED_VERIFICATION, -1, -1));
+ assertThat(stateEnabledChange)
+ .isEqualTo(new OverrideAllowedState(DEFERRED_VERIFICATION, -1, -1));
+ assertThat(stateDisabledChange)
+ .isEqualTo(new OverrideAllowedState(DEFERRED_VERIFICATION, -1, -1));
+ assertThat(stateDLoggingOnlyChange)
+ .isEqualTo(new OverrideAllowedState(LOGGING_ONLY_CHANGE, -1, -1));
+ }
}
diff --git a/services/tests/servicestests/src/com/android/server/compat/PlatformCompatTest.java b/services/tests/servicestests/src/com/android/server/compat/PlatformCompatTest.java
index 1d3b643..3f65a46 100644
--- a/services/tests/servicestests/src/com/android/server/compat/PlatformCompatTest.java
+++ b/services/tests/servicestests/src/com/android/server/compat/PlatformCompatTest.java
@@ -73,6 +73,7 @@
mCompatConfig = new CompatConfig(mBuildClassifier, mContext);
mPlatformCompat = new PlatformCompat(mContext, mCompatConfig);
// Assume userdebug/eng non-final build
+ mCompatConfig.forceNonDebuggableFinalForTest(false);
when(mBuildClassifier.isDebuggableBuild()).thenReturn(true);
when(mBuildClassifier.isFinalBuild()).thenReturn(false);
LocalServices.removeServiceForTest(PackageManagerInternal.class);
diff --git a/services/tests/servicestests/src/com/android/server/location/timezone/OWNERS b/services/tests/servicestests/src/com/android/server/location/timezone/OWNERS
new file mode 100644
index 0000000..28aff18
--- /dev/null
+++ b/services/tests/servicestests/src/com/android/server/location/timezone/OWNERS
@@ -0,0 +1,3 @@
+# Bug component: 847766
+nfuller@google.com
+include /core/java/android/app/timedetector/OWNERS
diff --git a/services/tests/servicestests/src/com/android/server/om/OverlayManagerServiceImplRebootTests.java b/services/tests/servicestests/src/com/android/server/om/OverlayManagerServiceImplRebootTests.java
index 391611b..5468fba 100644
--- a/services/tests/servicestests/src/com/android/server/om/OverlayManagerServiceImplRebootTests.java
+++ b/services/tests/servicestests/src/com/android/server/om/OverlayManagerServiceImplRebootTests.java
@@ -78,7 +78,7 @@
}
@Test
- public void testImmutableEnabledChange() {
+ public void testImmutableEnabledChange() throws Exception {
final OverlayManagerServiceImpl impl = getImpl();
installNewPackage(target(TARGET), USER);
installNewPackage(overlay(OVERLAY, TARGET), USER);
@@ -106,7 +106,7 @@
}
@Test
- public void testMutableEnabledChangeHasNoEffect() {
+ public void testMutableEnabledChangeHasNoEffect() throws Exception {
final OverlayManagerServiceImpl impl = getImpl();
installNewPackage(target(TARGET), USER);
installNewPackage(overlay(OVERLAY, TARGET), USER);
@@ -134,7 +134,7 @@
}
@Test
- public void testMutableEnabledToImmutableEnabled() {
+ public void testMutableEnabledToImmutableEnabled() throws Exception {
final OverlayManagerServiceImpl impl = getImpl();
installNewPackage(target(TARGET), USER);
installNewPackage(overlay(OVERLAY, TARGET), USER);
@@ -178,7 +178,7 @@
}
@Test
- public void testMutablePriorityChange() {
+ public void testMutablePriorityChange() throws Exception {
final OverlayManagerServiceImpl impl = getImpl();
installNewPackage(target(TARGET), USER);
installNewPackage(overlay(OVERLAY, TARGET), USER);
@@ -218,7 +218,7 @@
}
@Test
- public void testImmutablePriorityChange() {
+ public void testImmutablePriorityChange() throws Exception {
final OverlayManagerServiceImpl impl = getImpl();
installNewPackage(target(TARGET), USER);
installNewPackage(overlay(OVERLAY, TARGET), USER);
diff --git a/services/tests/servicestests/src/com/android/server/om/OverlayManagerServiceImplTests.java b/services/tests/servicestests/src/com/android/server/om/OverlayManagerServiceImplTests.java
index 4f882ce..33dbcc0 100644
--- a/services/tests/servicestests/src/com/android/server/om/OverlayManagerServiceImplTests.java
+++ b/services/tests/servicestests/src/com/android/server/om/OverlayManagerServiceImplTests.java
@@ -22,11 +22,14 @@
import static android.os.OverlayablePolicy.CONFIG_SIGNATURE;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
+import static org.testng.Assert.assertThrows;
import android.content.om.OverlayInfo;
+import android.util.Pair;
import androidx.test.runner.AndroidJUnit4;
@@ -35,6 +38,7 @@
import java.util.List;
import java.util.Map;
+import java.util.Optional;
@RunWith(AndroidJUnit4.class)
public class OverlayManagerServiceImplTests extends OverlayManagerServiceImplTestsBase {
@@ -55,7 +59,7 @@
private static final String CERT_CONFIG_NOK = "config_certificate_nok";
@Test
- public void testGetOverlayInfo() {
+ public void testGetOverlayInfo() throws Exception {
installNewPackage(overlay(OVERLAY, TARGET), USER);
final OverlayManagerServiceImpl impl = getImpl();
@@ -67,7 +71,7 @@
}
@Test
- public void testGetOverlayInfosForTarget() {
+ public void testGetOverlayInfosForTarget() throws Exception {
installNewPackage(overlay(OVERLAY, TARGET), USER);
installNewPackage(overlay(OVERLAY2, TARGET), USER);
installNewPackage(overlay(OVERLAY3, TARGET), USER2);
@@ -92,7 +96,7 @@
}
@Test
- public void testGetOverlayInfosForUser() {
+ public void testGetOverlayInfosForUser() throws Exception {
installNewPackage(target(TARGET), USER);
installNewPackage(overlay(OVERLAY, TARGET), USER);
installNewPackage(overlay(OVERLAY2, TARGET), USER);
@@ -119,7 +123,7 @@
}
@Test
- public void testPriority() {
+ public void testPriority() throws Exception {
installNewPackage(overlay(OVERLAY, TARGET), USER);
installNewPackage(overlay(OVERLAY2, TARGET), USER);
installNewPackage(overlay(OVERLAY3, TARGET), USER);
@@ -131,18 +135,21 @@
assertOverlayInfoForTarget(TARGET, USER, o1, o2, o3);
- assertTrue(impl.setLowestPriority(OVERLAY3, USER));
+ assertEquals(impl.setLowestPriority(OVERLAY3, USER),
+ Optional.of(new PackageAndUser(TARGET, USER)));
assertOverlayInfoForTarget(TARGET, USER, o3, o1, o2);
- assertTrue(impl.setHighestPriority(OVERLAY3, USER));
+ assertEquals(impl.setHighestPriority(OVERLAY3, USER),
+ Optional.of(new PackageAndUser(TARGET, USER)));
assertOverlayInfoForTarget(TARGET, USER, o1, o2, o3);
- assertTrue(impl.setPriority(OVERLAY, OVERLAY2, USER));
+ assertEquals(impl.setPriority(OVERLAY, OVERLAY2, USER),
+ Optional.of(new PackageAndUser(TARGET, USER)));
assertOverlayInfoForTarget(TARGET, USER, o2, o1, o3);
}
@Test
- public void testOverlayInfoStateTransitions() {
+ public void testOverlayInfoStateTransitions() throws Exception {
final OverlayManagerServiceImpl impl = getImpl();
assertNull(impl.getOverlayInfo(OVERLAY, USER));
@@ -153,7 +160,8 @@
installNewPackage(target, USER);
assertState(STATE_DISABLED, OVERLAY, USER);
- impl.setEnabled(OVERLAY, true, USER);
+ assertEquals(impl.setEnabled(OVERLAY, true, USER),
+ Optional.of(new PackageAndUser(TARGET, USER)));
assertState(STATE_ENABLED, OVERLAY, USER);
// target upgrades do not change the state of the overlay
@@ -168,50 +176,40 @@
}
@Test
- public void testOnOverlayPackageUpgraded() {
- final FakeListener listener = getListener();
+ public void testOnOverlayPackageUpgraded() throws Exception {
final FakeDeviceState.PackageBuilder target = target(TARGET);
final FakeDeviceState.PackageBuilder overlay = overlay(OVERLAY, TARGET);
installNewPackage(target, USER);
installNewPackage(overlay, USER);
- listener.count = 0;
upgradePackage(overlay, USER);
- assertEquals(2, listener.count);
// upgrade to a version where the overlay has changed its target
- // expect once for the old target package, once for the new target package
- listener.count = 0;
final FakeDeviceState.PackageBuilder overlay2 = overlay(OVERLAY, "some.other.target");
- upgradePackage(overlay2, USER);
- assertEquals(3, listener.count);
-
- listener.count = 0;
- upgradePackage(overlay2, USER);
- assertEquals(2, listener.count);
+ final Pair<Optional<PackageAndUser>, Optional<PackageAndUser>> pair =
+ upgradePackage(overlay2, USER);
+ assertEquals(pair.first, Optional.of(new PackageAndUser(TARGET, USER)));
+ assertEquals(pair.second, Optional.of(new PackageAndUser("some.other.target", USER)));
}
@Test
- public void testListener() {
+ public void testSetEnabledAtVariousConditions() throws Exception {
final OverlayManagerServiceImpl impl = getImpl();
- final FakeListener listener = getListener();
- installNewPackage(overlay(OVERLAY, TARGET), USER);
- assertEquals(1, listener.count);
- listener.count = 0;
+ assertThrows(OverlayManagerServiceImpl.OperationFailedException.class,
+ () -> impl.setEnabled(OVERLAY, true, USER));
+ // request succeeded, and there was a change that needs to be
+ // propagated to the rest of the system
installNewPackage(target(TARGET), USER);
- assertEquals(1, listener.count);
- listener.count = 0;
+ installNewPackage(overlay(OVERLAY, TARGET), USER);
+ assertEquals(impl.setEnabled(OVERLAY, true, USER),
+ Optional.of(new PackageAndUser(TARGET, USER)));
- impl.setEnabled(OVERLAY, true, USER);
- assertEquals(1, listener.count);
- listener.count = 0;
-
- impl.setEnabled(OVERLAY, true, USER);
- assertEquals(0, listener.count);
+ // request succeeded, but nothing changed
+ assertFalse(impl.setEnabled(OVERLAY, true, USER).isPresent());
}
@Test
- public void testConfigSignaturePolicyOk() {
+ public void testConfigSignaturePolicyOk() throws Exception {
setConfigSignaturePackageName(CONFIG_SIGNATURE_REFERENCE_PKG);
reinitializeImpl();
@@ -229,7 +227,7 @@
}
@Test
- public void testConfigSignaturePolicyCertNok() {
+ public void testConfigSignaturePolicyCertNok() throws Exception {
setConfigSignaturePackageName(CONFIG_SIGNATURE_REFERENCE_PKG);
reinitializeImpl();
@@ -247,7 +245,7 @@
}
@Test
- public void testConfigSignaturePolicyNoConfig() {
+ public void testConfigSignaturePolicyNoConfig() throws Exception {
addPackage(target(CONFIG_SIGNATURE_REFERENCE_PKG).setCertificate(CERT_CONFIG_OK), USER);
installNewPackage(target(TARGET), USER);
installNewPackage(overlay(OVERLAY, TARGET).setCertificate(CERT_CONFIG_NOK), USER);
@@ -262,7 +260,7 @@
}
@Test
- public void testConfigSignaturePolicyNoRefPkg() {
+ public void testConfigSignaturePolicyNoRefPkg() throws Exception {
installNewPackage(target(TARGET), USER);
installNewPackage(overlay(OVERLAY, TARGET).setCertificate(CERT_CONFIG_NOK), USER);
@@ -276,7 +274,7 @@
}
@Test
- public void testConfigSignaturePolicyRefPkgNotSystem() {
+ public void testConfigSignaturePolicyRefPkgNotSystem() throws Exception {
setConfigSignaturePackageName(CONFIG_SIGNATURE_REFERENCE_PKG);
reinitializeImpl();
diff --git a/services/tests/servicestests/src/com/android/server/om/OverlayManagerServiceImplTestsBase.java b/services/tests/servicestests/src/com/android/server/om/OverlayManagerServiceImplTestsBase.java
index 006dda0..2c477c8 100644
--- a/services/tests/servicestests/src/com/android/server/om/OverlayManagerServiceImplTestsBase.java
+++ b/services/tests/servicestests/src/com/android/server/om/OverlayManagerServiceImplTestsBase.java
@@ -16,6 +16,8 @@
package com.android.server.om;
+import static com.android.server.om.OverlayManagerServiceImpl.OperationFailedException;
+
import static org.junit.Assert.assertEquals;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
@@ -30,6 +32,7 @@
import android.text.TextUtils;
import android.util.ArrayMap;
import android.util.ArraySet;
+import android.util.Pair;
import androidx.annotation.Nullable;
@@ -43,13 +46,13 @@
import java.util.Collections;
import java.util.List;
import java.util.Map;
+import java.util.Optional;
import java.util.stream.Collectors;
/** Base class for creating {@link OverlayManagerServiceImplTests} tests. */
class OverlayManagerServiceImplTestsBase {
private OverlayManagerServiceImpl mImpl;
private FakeDeviceState mState;
- private FakeListener mListener;
private FakePackageManagerHelper mPackageManager;
private FakeIdmapDaemon mIdmapDaemon;
private OverlayConfig mOverlayConfig;
@@ -58,7 +61,6 @@
@Before
public void setUp() {
mState = new FakeDeviceState();
- mListener = new FakeListener();
mPackageManager = new FakePackageManagerHelper(mState);
mIdmapDaemon = new FakeIdmapDaemon(mState);
mOverlayConfig = mock(OverlayConfig.class);
@@ -73,18 +75,13 @@
new IdmapManager(mIdmapDaemon, mPackageManager),
new OverlayManagerSettings(),
mOverlayConfig,
- new String[0],
- mListener);
+ new String[0]);
}
OverlayManagerServiceImpl getImpl() {
return mImpl;
}
- FakeListener getListener() {
- return mListener;
- }
-
FakeIdmapDaemon getIdmapd() {
return mIdmapDaemon;
}
@@ -155,7 +152,8 @@
*
* @throws IllegalStateException if the package is currently installed
*/
- void installNewPackage(FakeDeviceState.PackageBuilder pkg, int userId) {
+ void installNewPackage(FakeDeviceState.PackageBuilder pkg, int userId)
+ throws OperationFailedException {
if (mState.select(pkg.packageName, userId) != null) {
throw new IllegalStateException("package " + pkg.packageName + " already installed");
}
@@ -176,23 +174,30 @@
* {@link android.content.Intent#ACTION_PACKAGE_ADDED} broadcast with the
* {@link android.content.Intent#EXTRA_REPLACING} extra.
*
+ * @return the two Optional<PackageAndUser> objects from starting and finishing the upgrade
+ *
* @throws IllegalStateException if the package is not currently installed
*/
- void upgradePackage(FakeDeviceState.PackageBuilder pkg, int userId) {
+ Pair<Optional<PackageAndUser>, Optional<PackageAndUser>> upgradePackage(
+ FakeDeviceState.PackageBuilder pkg, int userId) throws OperationFailedException {
final FakeDeviceState.Package replacedPackage = mState.select(pkg.packageName, userId);
if (replacedPackage == null) {
throw new IllegalStateException("package " + pkg.packageName + " not installed");
}
+ Optional<PackageAndUser> opt1 = Optional.empty();
if (replacedPackage.targetPackageName != null) {
- mImpl.onOverlayPackageReplacing(pkg.packageName, userId);
+ opt1 = mImpl.onOverlayPackageReplacing(pkg.packageName, userId);
}
mState.add(pkg, userId);
+ Optional<PackageAndUser> opt2;
if (pkg.targetPackage == null) {
- mImpl.onTargetPackageReplaced(pkg.packageName, userId);
+ opt2 = mImpl.onTargetPackageReplaced(pkg.packageName, userId);
} else {
- mImpl.onOverlayPackageReplaced(pkg.packageName, userId);
+ opt2 = mImpl.onOverlayPackageReplaced(pkg.packageName, userId);
}
+
+ return Pair.create(opt1, opt2);
}
/**
@@ -203,7 +208,7 @@
*
* @throws IllegalStateException if the package is not currently installed
*/
- void uninstallPackage(String packageName, int userId) {
+ void uninstallPackage(String packageName, int userId) throws OperationFailedException {
final FakeDeviceState.Package pkg = mState.select(packageName, userId);
if (pkg == null) {
throw new IllegalStateException("package " + packageName+ " not installed");
@@ -485,12 +490,4 @@
}
}
}
-
- static class FakeListener implements OverlayManagerServiceImpl.OverlayChangeListener {
- public int count;
-
- public void onOverlaysChanged(@NonNull String targetPackage, int userId) {
- count++;
- }
- }
}
diff --git a/services/tests/servicestests/src/com/android/server/tv/tunerresourcemanager/TunerResourceManagerServiceTest.java b/services/tests/servicestests/src/com/android/server/tv/tunerresourcemanager/TunerResourceManagerServiceTest.java
index 2372dd2..1055069 100644
--- a/services/tests/servicestests/src/com/android/server/tv/tunerresourcemanager/TunerResourceManagerServiceTest.java
+++ b/services/tests/servicestests/src/com/android/server/tv/tunerresourcemanager/TunerResourceManagerServiceTest.java
@@ -74,7 +74,7 @@
mReclaimed = true;
}
- public boolean isRelaimed() {
+ public boolean isReclaimed() {
return mReclaimed;
}
}
@@ -379,13 +379,13 @@
new TunerFrontendRequest(clientId1[0] /*clientId*/, FrontendSettings.TYPE_DVBT);
assertThat(mTunerResourceManagerService
.requestFrontendInternal(request, frontendHandle)).isFalse();
- assertThat(listener.isRelaimed()).isFalse();
+ assertThat(listener.isReclaimed()).isFalse();
request =
new TunerFrontendRequest(clientId1[0] /*clientId*/, FrontendSettings.TYPE_DVBS);
assertThat(mTunerResourceManagerService
.requestFrontendInternal(request, frontendHandle)).isFalse();
- assertThat(listener.isRelaimed()).isFalse();
+ assertThat(listener.isReclaimed()).isFalse();
}
@Test
@@ -444,7 +444,7 @@
.getOwnerClientId()).isEqualTo(clientId1[0]);
assertThat(mTunerResourceManagerService.getFrontendResource(infos[1].getId())
.getOwnerClientId()).isEqualTo(clientId1[0]);
- assertThat(listener.isRelaimed()).isTrue();
+ assertThat(listener.isReclaimed()).isTrue();
}
@Test
@@ -478,7 +478,7 @@
// Release frontend
mTunerResourceManagerService.releaseFrontendInternal(mTunerResourceManagerService
- .getFrontendResource(frontendId));
+ .getFrontendResource(frontendId), clientId[0]);
assertThat(mTunerResourceManagerService
.getFrontendResource(frontendId).isInUse()).isFalse();
assertThat(mTunerResourceManagerService
@@ -540,7 +540,7 @@
assertThat(mTunerResourceManagerService.getCasResource(1)
.getOwnerClientIds()).isEqualTo(new HashSet<Integer>(Arrays.asList(clientId1[0])));
assertThat(mTunerResourceManagerService.getCasResource(1).isFullyUsed()).isFalse();
- assertThat(listener.isRelaimed()).isTrue();
+ assertThat(listener.isReclaimed()).isTrue();
}
@Test
@@ -625,7 +625,7 @@
.isInUse()).isTrue();
assertThat(mTunerResourceManagerService.getLnbResource(lnbIds[0])
.getOwnerClientId()).isEqualTo(clientId1[0]);
- assertThat(listener.isRelaimed()).isTrue();
+ assertThat(listener.isReclaimed()).isTrue();
assertThat(mTunerResourceManagerService.getClientProfile(clientId0[0])
.getInUseLnbIds().size()).isEqualTo(0);
}
@@ -753,4 +753,293 @@
backgroundRecordProfile)).isEqualTo(
(backgroundPlaybackPriority > backgroundRecordPriority));
}
+
+ @Test
+ public void shareFrontendTest_FrontendWithExclusiveGroupReadyToShare() {
+ /**** Register Clients and Set Priority ****/
+
+ // Int array to save the returned client ids
+ int[] ownerClientId0 = new int[1];
+ int[] ownerClientId1 = new int[1];
+ int[] shareClientId0 = new int[1];
+ int[] shareClientId1 = new int[1];
+
+ // Predefined client profiles
+ ResourceClientProfile[] ownerProfiles = new ResourceClientProfile[2];
+ ResourceClientProfile[] shareProfiles = new ResourceClientProfile[2];
+ ownerProfiles[0] = new ResourceClientProfile(
+ "0" /*sessionId*/,
+ TvInputService.PRIORITY_HINT_USE_CASE_TYPE_LIVE);
+ ownerProfiles[1] = new ResourceClientProfile(
+ "1" /*sessionId*/,
+ TvInputService.PRIORITY_HINT_USE_CASE_TYPE_LIVE);
+ shareProfiles[0] = new ResourceClientProfile(
+ "2" /*sessionId*/,
+ TvInputService.PRIORITY_HINT_USE_CASE_TYPE_RECORD);
+ shareProfiles[1] = new ResourceClientProfile(
+ "3" /*sessionId*/,
+ TvInputService.PRIORITY_HINT_USE_CASE_TYPE_RECORD);
+
+ // Predefined client reclaim listeners
+ TestResourcesReclaimListener ownerListener0 = new TestResourcesReclaimListener();
+ TestResourcesReclaimListener shareListener0 = new TestResourcesReclaimListener();
+ TestResourcesReclaimListener ownerListener1 = new TestResourcesReclaimListener();
+ TestResourcesReclaimListener shareListener1 = new TestResourcesReclaimListener();
+ // Register clients and validate the returned client ids
+ mTunerResourceManagerService
+ .registerClientProfileInternal(ownerProfiles[0], ownerListener0, ownerClientId0);
+ mTunerResourceManagerService
+ .registerClientProfileInternal(shareProfiles[0], shareListener0, shareClientId0);
+ mTunerResourceManagerService
+ .registerClientProfileInternal(ownerProfiles[1], ownerListener1, ownerClientId1);
+ mTunerResourceManagerService
+ .registerClientProfileInternal(shareProfiles[1], shareListener1, shareClientId1);
+ assertThat(ownerClientId0[0]).isNotEqualTo(TunerResourceManagerService.INVALID_CLIENT_ID);
+ assertThat(shareClientId0[0]).isNotEqualTo(TunerResourceManagerService.INVALID_CLIENT_ID);
+ assertThat(ownerClientId1[0]).isNotEqualTo(TunerResourceManagerService.INVALID_CLIENT_ID);
+ assertThat(shareClientId1[0]).isNotEqualTo(TunerResourceManagerService.INVALID_CLIENT_ID);
+
+ mTunerResourceManagerService.updateClientPriorityInternal(
+ ownerClientId0[0],
+ 100/*priority*/,
+ 0/*niceValue*/);
+ mTunerResourceManagerService.updateClientPriorityInternal(
+ shareClientId0[0],
+ 200/*priority*/,
+ 0/*niceValue*/);
+ mTunerResourceManagerService.updateClientPriorityInternal(
+ ownerClientId1[0],
+ 300/*priority*/,
+ 0/*niceValue*/);
+ mTunerResourceManagerService.updateClientPriorityInternal(
+ shareClientId1[0],
+ 400/*priority*/,
+ 0/*niceValue*/);
+
+ /**** Init Frontend Resources ****/
+
+ // Predefined frontend info
+ TunerFrontendInfo[] infos = new TunerFrontendInfo[2];
+ infos[0] = new TunerFrontendInfo(
+ 0 /*id*/,
+ FrontendSettings.TYPE_DVBT,
+ 1 /*exclusiveGroupId*/);
+ infos[1] = new TunerFrontendInfo(
+ 1 /*id*/,
+ FrontendSettings.TYPE_DVBS,
+ 1 /*exclusiveGroupId*/);
+
+ /**** Init Lnb Resources ****/
+ int[] lnbIds = {1};
+ mTunerResourceManagerService.setLnbInfoListInternal(lnbIds);
+
+ // Update frontend list in TRM
+ mTunerResourceManagerService.setFrontendInfoListInternal(infos);
+
+ /**** Request Frontend ****/
+
+ // Predefined frontend request and array to save returned frontend handle
+ int[] frontendHandle = new int[1];
+ TunerFrontendRequest request = new TunerFrontendRequest(
+ ownerClientId0[0] /*clientId*/,
+ FrontendSettings.TYPE_DVBT);
+
+ // Request call and validate granted resource and internal mapping
+ assertThat(mTunerResourceManagerService
+ .requestFrontendInternal(request, frontendHandle))
+ .isTrue();
+ assertThat(mTunerResourceManagerService
+ .getResourceIdFromHandle(frontendHandle[0]))
+ .isEqualTo(infos[0].getId());
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(ownerClientId0[0])
+ .getInUseFrontendIds())
+ .isEqualTo(new HashSet<Integer>(Arrays.asList(
+ infos[0].getId(),
+ infos[1].getId())));
+
+ /**** Share Frontend ****/
+
+ // Share frontend call and validate the internal mapping
+ mTunerResourceManagerService.shareFrontendInternal(
+ shareClientId0[0]/*selfClientId*/,
+ ownerClientId0[0]/*targetClientId*/);
+ mTunerResourceManagerService.shareFrontendInternal(
+ shareClientId1[0]/*selfClientId*/,
+ ownerClientId0[0]/*targetClientId*/);
+ // Verify fe in use status
+ assertThat(mTunerResourceManagerService.getFrontendResource(infos[0].getId())
+ .isInUse()).isTrue();
+ assertThat(mTunerResourceManagerService.getFrontendResource(infos[1].getId())
+ .isInUse()).isTrue();
+ // Verify fe owner status
+ assertThat(mTunerResourceManagerService.getFrontendResource(infos[0].getId())
+ .getOwnerClientId()).isEqualTo(ownerClientId0[0]);
+ assertThat(mTunerResourceManagerService.getFrontendResource(infos[1].getId())
+ .getOwnerClientId()).isEqualTo(ownerClientId0[0]);
+ // Verify share fe client status in the primary owner client
+ assertThat(mTunerResourceManagerService.getClientProfile(ownerClientId0[0])
+ .getShareFeClientIds())
+ .isEqualTo(new HashSet<Integer>(Arrays.asList(
+ shareClientId0[0],
+ shareClientId1[0])));
+ // Verify in use frontend list in all the primary owner and share owner clients
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(ownerClientId0[0])
+ .getInUseFrontendIds())
+ .isEqualTo(new HashSet<Integer>(Arrays.asList(
+ infos[0].getId(),
+ infos[1].getId())));
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(shareClientId0[0])
+ .getInUseFrontendIds())
+ .isEqualTo(new HashSet<Integer>(Arrays.asList(
+ infos[0].getId(),
+ infos[1].getId())));
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(shareClientId1[0])
+ .getInUseFrontendIds())
+ .isEqualTo(new HashSet<Integer>(Arrays.asList(
+ infos[0].getId(),
+ infos[1].getId())));
+
+ /**** Remove Frontend Share Owner ****/
+
+ // Unregister the second share fe client
+ mTunerResourceManagerService.unregisterClientProfileInternal(shareClientId1[0]);
+
+ // Validate the internal mapping
+ assertThat(mTunerResourceManagerService.getClientProfile(ownerClientId0[0])
+ .getShareFeClientIds())
+ .isEqualTo(new HashSet<Integer>(Arrays.asList(
+ shareClientId0[0])));
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(ownerClientId0[0])
+ .getInUseFrontendIds())
+ .isEqualTo(new HashSet<Integer>(Arrays.asList(
+ infos[0].getId(),
+ infos[1].getId())));
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(shareClientId0[0])
+ .getInUseFrontendIds())
+ .isEqualTo(new HashSet<Integer>(Arrays.asList(
+ infos[0].getId(),
+ infos[1].getId())));
+
+ /**** Request Shared Frontend with Higher Priority Client ****/
+
+ // Predefined second frontend request
+ request = new TunerFrontendRequest(
+ ownerClientId1[0] /*clientId*/,
+ FrontendSettings.TYPE_DVBT);
+
+ // Second request call
+ assertThat(mTunerResourceManagerService
+ .requestFrontendInternal(request, frontendHandle))
+ .isTrue();
+
+ // Validate granted resource and internal mapping
+ assertThat(mTunerResourceManagerService
+ .getResourceIdFromHandle(frontendHandle[0]))
+ .isEqualTo(infos[0].getId());
+ assertThat(mTunerResourceManagerService.getFrontendResource(infos[0].getId())
+ .getOwnerClientId()).isEqualTo(ownerClientId1[0]);
+ assertThat(mTunerResourceManagerService.getFrontendResource(infos[1].getId())
+ .getOwnerClientId()).isEqualTo(ownerClientId1[0]);
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(ownerClientId1[0])
+ .getInUseFrontendIds())
+ .isEqualTo(new HashSet<Integer>(Arrays.asList(
+ infos[0].getId(),
+ infos[1].getId())));
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(ownerClientId0[0])
+ .getInUseFrontendIds()
+ .isEmpty())
+ .isTrue();
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(shareClientId0[0])
+ .getInUseFrontendIds()
+ .isEmpty())
+ .isTrue();
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(ownerClientId0[0])
+ .getShareFeClientIds()
+ .isEmpty())
+ .isTrue();
+ assertThat(ownerListener0.isReclaimed()).isTrue();
+ assertThat(shareListener0.isReclaimed()).isTrue();
+
+ /**** Release Frontend Resource From Primary Owner ****/
+
+ // Reshare the frontend
+ mTunerResourceManagerService.shareFrontendInternal(
+ shareClientId0[0]/*selfClientId*/,
+ ownerClientId1[0]/*targetClientId*/);
+
+ // Release the frontend resource from the primary owner
+ mTunerResourceManagerService.releaseFrontendInternal(mTunerResourceManagerService
+ .getFrontendResource(infos[0].getId()), ownerClientId1[0]);
+
+ // Validate the internal mapping
+ assertThat(mTunerResourceManagerService.getFrontendResource(infos[0].getId())
+ .isInUse()).isFalse();
+ assertThat(mTunerResourceManagerService.getFrontendResource(infos[1].getId())
+ .isInUse()).isFalse();
+ // Verify client status
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(ownerClientId1[0])
+ .getInUseFrontendIds()
+ .isEmpty())
+ .isTrue();
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(shareClientId0[0])
+ .getInUseFrontendIds()
+ .isEmpty())
+ .isTrue();
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(ownerClientId1[0])
+ .getShareFeClientIds()
+ .isEmpty())
+ .isTrue();
+
+ /**** Unregister Primary Owner when the Share owner owns an Lnb ****/
+
+ // Predefined Lnb request and handle array
+ TunerLnbRequest requestLnb = new TunerLnbRequest(shareClientId0[0]);
+ int[] lnbHandle = new int[1];
+
+ // Request for an Lnb
+ assertThat(mTunerResourceManagerService
+ .requestLnbInternal(requestLnb, lnbHandle))
+ .isTrue();
+
+ // Request and share the frontend resource again
+ assertThat(mTunerResourceManagerService
+ .requestFrontendInternal(request, frontendHandle))
+ .isTrue();
+ mTunerResourceManagerService.shareFrontendInternal(
+ shareClientId0[0]/*selfClientId*/,
+ ownerClientId1[0]/*targetClientId*/);
+
+ // Unregister the primary owner of the shared frontend
+ mTunerResourceManagerService.unregisterClientProfileInternal(ownerClientId1[0]);
+
+ // Validate the internal mapping
+ assertThat(mTunerResourceManagerService.getFrontendResource(infos[0].getId())
+ .isInUse()).isFalse();
+ assertThat(mTunerResourceManagerService.getFrontendResource(infos[1].getId())
+ .isInUse()).isFalse();
+ // Verify client status
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(shareClientId0[0])
+ .getInUseFrontendIds()
+ .isEmpty())
+ .isTrue();
+ assertThat(mTunerResourceManagerService
+ .getClientProfile(shareClientId0[0])
+ .getInUseLnbIds())
+ .isEqualTo(new HashSet<Integer>(Arrays.asList(
+ lnbIds[0])));
+ }
}
diff --git a/telecomm/java/android/telecom/PhoneAccount.java b/telecomm/java/android/telecom/PhoneAccount.java
index 5024ae2..835ecaa 100644
--- a/telecomm/java/android/telecom/PhoneAccount.java
+++ b/telecomm/java/android/telecom/PhoneAccount.java
@@ -361,7 +361,13 @@
*/
public static final int CAPABILITY_ADHOC_CONFERENCE_CALLING = 0x4000;
- /* NEXT CAPABILITY: 0x8000 */
+ /**
+ * Flag indicating whether this {@link PhoneAccount} is capable of supporting the call composer
+ * functionality for enriched calls.
+ */
+ public static final int CAPABILITY_CALL_COMPOSER = 0x8000;
+
+ /* NEXT CAPABILITY: 0x10000 */
/**
* URI scheme for telephone number URIs.
@@ -1088,6 +1094,9 @@
if (hasCapabilities(CAPABILITY_ADHOC_CONFERENCE_CALLING)) {
sb.append("AdhocConf");
}
+ if (hasCapabilities(CAPABILITY_CALL_COMPOSER)) {
+ sb.append("CallComposer ");
+ }
return sb.toString();
}
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java
index da2d4d8..3f8b683 100644
--- a/telecomm/java/android/telecom/TelecomManager.java
+++ b/telecomm/java/android/telecom/TelecomManager.java
@@ -266,10 +266,69 @@
/**
* Optional extra for {@link android.content.Intent#ACTION_CALL} containing a string call
* subject which will be associated with an outgoing call. Should only be specified if the
- * {@link PhoneAccount} supports the capability {@link PhoneAccount#CAPABILITY_CALL_SUBJECT}.
+ * {@link PhoneAccount} supports the capability {@link PhoneAccount#CAPABILITY_CALL_SUBJECT}
+ * or {@link PhoneAccount#CAPABILITY_CALL_COMPOSER}.
*/
public static final String EXTRA_CALL_SUBJECT = "android.telecom.extra.CALL_SUBJECT";
+ // Values for EXTRA_PRIORITY
+ /**
+ * Indicates the call composer call priority is normal.
+ *
+ * Reference: RCC.20 Section 2.4.4.2
+ */
+ public static final int PRIORITY_NORMAL = 0;
+
+ /**
+ * Indicates the call composer call priority is urgent.
+ *
+ * Reference: RCC.20 Section 2.4.4.2
+ */
+ public static final int PRIORITY_URGENT = 1;
+
+ /**
+ * Extra for the call composer call priority, either {@link #PRIORITY_NORMAL} or
+ * {@link #PRIORITY_URGENT}.
+ *
+ * Reference: RCC.20 Section 2.4.4.2
+ */
+ public static final String EXTRA_PRIORITY = "android.telecom.extra.PRIORITY";
+
+ /**
+ * Extra for the call composer call location, an {@link android.location.Location} parcelable
+ * class to represent the geolocation as a latitude and longitude pair.
+ *
+ * Reference: RCC.20 Section 2.4.3.2
+ */
+ public static final String EXTRA_LOCATION = "android.telecom.extra.LOCATION";
+
+ /**
+ * A boolean extra set on incoming calls to indicate that the call has a picture specified.
+ * Given that image download could take a (short) time, the EXTRA is set immediately upon
+ * adding the call to the Dialer app, this allows the Dialer app to reserve space for an image
+ * if one is expected. The EXTRA may be unset if the image download ends up failing for some
+ * reason.
+ */
+ public static final String EXTRA_HAS_PICTURE = "android.telecom.extra.HAS_PICTURE";
+
+ /**
+ * A URI representing the picture that was downloaded when a call is received.
+ * This is a content URI within the call log provider which can be used to open a file
+ * descriptor. This could be set a short time after a call is added to the Dialer app if the
+ * download is delayed for some reason. The Dialer app will receive a callback via
+ * {@link Call.Callback#onDetailsChanged} when this value has changed.
+ *
+ * Reference: RCC.20 Section 2.4.3.2
+ */
+ public static final String EXTRA_INCOMING_PICTURE = "android.telecom.extra.INCOMING_PICTURE";
+
+ // TODO(hallliu), This UUID is obtained from TelephonyManager#uploadCallComposerPicture.
+ /**
+ * A ParcelUuid used as a token to represent a picture that was uploaded prior to the call
+ * being placed.
+ */
+ public static final String EXTRA_OUTGOING_PICTURE = "android.telecom.extra.OUTGOING_PICTURE";
+
/**
* The extra used by a {@link ConnectionService} to provide the handle of the caller that
* has initiated a new incoming call.
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java
index 4e9e6a8..74b2aad 100644
--- a/telephony/java/android/telephony/CarrierConfigManager.java
+++ b/telephony/java/android/telephony/CarrierConfigManager.java
@@ -4056,6 +4056,17 @@
"default_preferred_apn_name_string";
/**
+ * Indicates if the carrier supports call composer.
+ */
+ public static final String KEY_SUPPORTS_CALL_COMPOSER_BOOL = "supports_call_composer_bool";
+
+ /**
+ * Indicates the carrier server url that serves the call composer picture.
+ */
+ public static final String KEY_CALL_COMPOSER_PICTURE_SERVER_URL_STRING =
+ "call_composer_picture_server_url_string";
+
+ /**
* For Android 11, provide a temporary solution for OEMs to use the lower of the two MTU values
* for IPv4 and IPv6 if both are sent.
* TODO: remove in later release
@@ -4613,6 +4624,8 @@
sDefaults.putStringArray(KEY_MISSED_INCOMING_CALL_SMS_PATTERN_STRING_ARRAY, new String[0]);
sDefaults.putBoolean(KEY_DISABLE_DUN_APN_WHILE_ROAMING_WITH_PRESET_APN_BOOL, false);
sDefaults.putString(KEY_DEFAULT_PREFERRED_APN_NAME_STRING, "");
+ sDefaults.putBoolean(KEY_SUPPORTS_CALL_COMPOSER_BOOL, false);
+ sDefaults.putString(KEY_CALL_COMPOSER_PICTURE_SERVER_URL_STRING, "");
sDefaults.putBoolean(KEY_USE_LOWER_MTU_VALUE_IF_BOTH_RECEIVED, false);
sDefaults.putBoolean(KEY_USE_ACS_FOR_RCS_BOOL, false);
}
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 0e06444..c05e90b 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -8679,6 +8679,77 @@
return Collections.EMPTY_LIST;
}
+ /**
+ * Call composer status OFF from user setting.
+ */
+ public static final int CALL_COMPOSER_STATUS_OFF = 0;
+
+ /**
+ * Call composer status ON from user setting.
+ */
+ public static final int CALL_COMPOSER_STATUS_ON = 1;
+
+ /** @hide */
+ @IntDef(prefix = {"CALL_COMPOSER_STATUS_"},
+ value = {
+ CALL_COMPOSER_STATUS_ON,
+ CALL_COMPOSER_STATUS_OFF,
+ })
+ public @interface CallComposerStatus {}
+
+ /**
+ * Set the user-set status for enriched calling with call composer.
+ *
+ * @param status user-set status for enriched calling with call composer;
+ * it must be a value of either {@link #CALL_COMPOSER_STATUS_ON}
+ * or {@link #CALL_COMPOSER_STATUS_OFF}.
+ *
+ * <p>If this object has been created with {@link #createForSubscriptionId}, applies to the
+ * given subId. Otherwise, applies to {@link SubscriptionManager#getDefaultSubscriptionId()}
+ *
+ * @throws IllegalArgumentException if requested state is invalid.
+ * @throws SecurityException if the caller does not have the permission.
+ */
+ @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
+ public void setCallComposerStatus(@CallComposerStatus int status) {
+ if (status != CALL_COMPOSER_STATUS_ON && status != CALL_COMPOSER_STATUS_OFF) {
+ throw new IllegalArgumentException("requested status is invalid");
+ }
+ try {
+ ITelephony telephony = getITelephony();
+ if (telephony != null) {
+ telephony.setCallComposerStatus(getSubId(), status);
+ }
+ } catch (RemoteException ex) {
+ Log.e(TAG, "Error calling ITelephony#setCallComposerStatus", ex);
+ ex.rethrowFromSystemServer();
+ }
+ }
+
+ /**
+ * Get the user-set status for enriched calling with call composer.
+ *
+ * <p>If this object has been created with {@link #createForSubscriptionId}, applies to the
+ * given subId. Otherwise, applies to {@link SubscriptionManager#getDefaultSubscriptionId()}
+ *
+ * @throws SecurityException if the caller does not have the permission.
+ *
+ * @return the user-set status for enriched calling with call composer either
+ * {@link #CALL_COMPOSER_STATUS_ON} or {@link #CALL_COMPOSER_STATUS_OFF}.
+ */
+ @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
+ public @CallComposerStatus int getCallComposerStatus() {
+ try {
+ ITelephony telephony = getITelephony();
+ if (telephony != null) {
+ return telephony.getCallComposerStatus(getSubId());
+ }
+ } catch (RemoteException ex) {
+ Log.e(TAG, "Error calling ITelephony#getCallComposerStatus", ex);
+ ex.rethrowFromSystemServer();
+ }
+ return CALL_COMPOSER_STATUS_OFF;
+ }
/** @hide */
@SystemApi
@@ -9275,6 +9346,35 @@
}
/**
+ * Get the mobile provisioning url that is used to launch a browser to allow users to manage
+ * their mobile plan.
+ *
+ * <p>Requires Permission:
+ * {@link android.Manifest.permission#READ_PRIVILEGED_PHONE_STATE}.
+ *
+ * TODO: The legacy design only supports single sim design. Ideally, this should support
+ * multi-sim design in current world.
+ *
+ * {@hide}
+ */
+ @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
+ public @Nullable String getMobileProvisioningUrl() {
+ try {
+ final ITelephony service = getITelephony();
+ if (service != null) {
+ return service.getMobileProvisioningUrl();
+ } else {
+ throw new IllegalStateException("telephony service is null.");
+ }
+ } catch (RemoteException ex) {
+ if (!isSystemProcess()) {
+ ex.rethrowAsRuntimeException();
+ }
+ }
+ return null;
+ }
+
+ /**
* Turns mobile data on or off.
* If this object has been created with {@link #createForSubscriptionId}, applies to the given
* subId. Otherwise, applies to {@link SubscriptionManager#getDefaultDataSubscriptionId()}
diff --git a/telephony/java/android/telephony/data/ApnThrottleStatus.aidl b/telephony/java/android/telephony/data/ApnThrottleStatus.aidl
new file mode 100644
index 0000000..46bc4ab
--- /dev/null
+++ b/telephony/java/android/telephony/data/ApnThrottleStatus.aidl
@@ -0,0 +1,20 @@
+/*
+ * Copyright 2020 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/** @hide */
+package android.telephony.data;
+
+parcelable ApnThrottleStatus;
diff --git a/telephony/java/android/telephony/data/ApnThrottleStatus.java b/telephony/java/android/telephony/data/ApnThrottleStatus.java
new file mode 100644
index 0000000..51461d1
--- /dev/null
+++ b/telephony/java/android/telephony/data/ApnThrottleStatus.java
@@ -0,0 +1,383 @@
+/*
+ * Copyright (C) 2020 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.telephony.data;
+
+import android.annotation.ElapsedRealtimeLong;
+import android.annotation.IntDef;
+import android.annotation.NonNull;
+import android.annotation.SuppressLint;
+import android.annotation.SystemApi;
+import android.os.Parcel;
+import android.os.Parcelable;
+import android.os.SystemClock;
+import android.telephony.AccessNetworkConstants;
+import android.telephony.Annotation;
+
+import java.util.Objects;
+
+/**
+ * Status information regarding the throttle status of an APN type.
+ *
+ * @hide
+ */
+@SystemApi
+public final class ApnThrottleStatus implements Parcelable {
+ /**
+ * The APN type is not throttled.
+ */
+ public static final int THROTTLE_TYPE_NONE = 1;
+
+ /**
+ * The APN type is throttled until {@link android.os.SystemClock#elapsedRealtime()}
+ * has reached {@link ApnThrottleStatus#getThrottleExpiryTimeMillis}
+ */
+ public static final int THROTTLE_TYPE_ELAPSED_TIME = 2;
+
+ /** {@hide} */
+ @IntDef(flag = true, prefix = {"THROTTLE_TYPE_"}, value = {
+ ApnThrottleStatus.THROTTLE_TYPE_NONE,
+ ApnThrottleStatus.THROTTLE_TYPE_ELAPSED_TIME,
+ })
+ public @interface ThrottleType {
+ }
+
+ /**
+ * The framework will not retry the APN type.
+ */
+ public static final int RETRY_TYPE_NONE = 1;
+
+ /**
+ * The next time the framework retries, it will attempt to establish a new connection.
+ */
+ public static final int RETRY_TYPE_NEW_CONNECTION = 2;
+
+ /**
+ * The next time the framework retires, it will retry to handover.
+ */
+ public static final int RETRY_TYPE_HANDOVER = 3;
+
+ /** {@hide} */
+ @IntDef(flag = true, prefix = {"RETRY_TYPE_"}, value = {
+ ApnThrottleStatus.RETRY_TYPE_NONE,
+ ApnThrottleStatus.RETRY_TYPE_NEW_CONNECTION,
+ ApnThrottleStatus.RETRY_TYPE_HANDOVER,
+ })
+ public @interface RetryType {
+ }
+
+ private final int mSlotIndex;
+ private final @AccessNetworkConstants.TransportType int mTransportType;
+ private final @Annotation.ApnType int mApnType;
+ private final long mThrottleExpiryTimeMillis;
+ private final @RetryType int mRetryType;
+ private final @ThrottleType int mThrottleType;
+
+ /**
+ * The slot index that the status applies to.
+ *
+ * @return the slot index
+ */
+ public int getSlotIndex() {
+ return mSlotIndex;
+ }
+
+ /**
+ * The type of transport that the status applies to.
+ *
+ * @return the transport type
+ */
+ @AccessNetworkConstants.TransportType
+ public int getTransportType() {
+ return mTransportType;
+ }
+
+ /**
+ * The APN type that the status applies to.
+ *
+ * @return the apn type
+ */
+ @Annotation.ApnType
+ public int getApnType() {
+ return mApnType;
+ }
+
+ /**
+ * The type of throttle applied to the APN type.
+ *
+ * @return the throttle type
+ */
+ @ThrottleType
+ public int getThrottleType() {
+ return mThrottleType;
+ }
+
+ /**
+ * Indicates the type of request that the framework will make the next time it retries
+ * to call {@link IDataService#setupDataCall}.
+ *
+ * @return the retry type
+ */
+ @RetryType
+ public int getRetryType() {
+ return mRetryType;
+ }
+
+ /**
+ * Gets the time at which the throttle expires. The value is based off of
+ * {@link SystemClock#elapsedRealtime}.
+ *
+ * This value only applies when the throttle type is set to
+ * {@link ApnThrottleStatus#THROTTLE_TYPE_ELAPSED_TIME}.
+ *
+ * A value of {@link Long#MAX_VALUE} implies that the APN type is throttled indefinitely.
+ *
+ * @return the time at which the throttle expires
+ */
+ @ElapsedRealtimeLong
+ public long getThrottleExpiryTimeMillis() {
+ return mThrottleExpiryTimeMillis;
+ }
+
+ private ApnThrottleStatus(int slotIndex,
+ @AccessNetworkConstants.TransportType int transportType,
+ @Annotation.ApnType int apnTypes,
+ @ThrottleType int throttleType,
+ long throttleExpiryTimeMillis,
+ @RetryType int retryType) {
+ mSlotIndex = slotIndex;
+ mTransportType = transportType;
+ mApnType = apnTypes;
+ mThrottleType = throttleType;
+ mThrottleExpiryTimeMillis = throttleExpiryTimeMillis;
+ mRetryType = retryType;
+ }
+
+ private ApnThrottleStatus(@NonNull Parcel source) {
+ mSlotIndex = source.readInt();
+ mTransportType = source.readInt();
+ mApnType = source.readInt();
+ mThrottleExpiryTimeMillis = source.readLong();
+ mRetryType = source.readInt();
+ mThrottleType = source.readInt();
+ }
+
+ @Override
+ public void writeToParcel(@NonNull Parcel dest, int flags) {
+ dest.writeInt(mSlotIndex);
+ dest.writeInt(mTransportType);
+ dest.writeInt(mApnType);
+ dest.writeLong(mThrottleExpiryTimeMillis);
+ dest.writeInt(mRetryType);
+ dest.writeInt(mThrottleType);
+ }
+
+ public static final @NonNull Parcelable.Creator<ApnThrottleStatus> CREATOR =
+ new Parcelable.Creator<ApnThrottleStatus>() {
+ @Override
+ public ApnThrottleStatus createFromParcel(@NonNull Parcel source) {
+ return new ApnThrottleStatus(source);
+ }
+
+ @Override
+ public ApnThrottleStatus[] newArray(int size) {
+ return new ApnThrottleStatus[size];
+ }
+ };
+
+ @Override
+ public int describeContents() {
+ return 0;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(mSlotIndex, mApnType, mRetryType, mThrottleType,
+ mThrottleExpiryTimeMillis, mTransportType);
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (obj == null) {
+ return false;
+ } else if (obj instanceof ApnThrottleStatus) {
+ ApnThrottleStatus other = (ApnThrottleStatus) obj;
+ return this.mSlotIndex == other.mSlotIndex
+ && this.mApnType == other.mApnType
+ && this.mRetryType == other.mRetryType
+ && this.mThrottleType == other.mThrottleType
+ && this.mThrottleExpiryTimeMillis == other.mThrottleExpiryTimeMillis
+ && this.mTransportType == other.mTransportType;
+ } else {
+ return false;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "ApnThrottleStatus{"
+ + "mSlotIndex=" + mSlotIndex
+ + ", mTransportType=" + mTransportType
+ + ", mApnType=" + ApnSetting.getApnTypeString(mApnType)
+ + ", mThrottleExpiryTimeMillis=" + mThrottleExpiryTimeMillis
+ + ", mRetryType=" + mRetryType
+ + ", mThrottleType=" + mThrottleType
+ + '}';
+ }
+
+ /**
+ * Provides a convenient way to set the fields of an {@link ApnThrottleStatus} when creating a
+ * new instance.
+ *
+ * <p>The example below shows how you might create a new {@code ApnThrottleStatus}:
+ *
+ * <pre><code>
+ *
+ * DataCallResponseApnThrottleStatus = new ApnThrottleStatus.Builder()
+ * .setSlotIndex(1)
+ * .setApnType({@link ApnSetting#TYPE_EMERGENCY})
+ * .setNoThrottle()
+ * .setRetryType({@link ApnThrottleStatus#RETRY_TYPE_NEW_CONNECTION})
+ * .build();
+ * </code></pre>
+ */
+ public static final class Builder {
+ private int mSlotIndex;
+ private @AccessNetworkConstants.TransportType int mTransportType;
+ private @Annotation.ApnType int mApnType;
+ private long mThrottleExpiryTimeMillis;
+ private @RetryType int mRetryType;
+ private @ThrottleType int mThrottleType;
+ public static final long NO_THROTTLE_EXPIRY_TIME =
+ DataCallResponse.RETRY_DURATION_UNDEFINED;
+
+ /**
+ * Default constructor for the Builder.
+ */
+ public Builder() {
+ }
+
+ /**
+ * Set the slot index.
+ *
+ * @param slotIndex the slot index.
+ * @return The same instance of the builder.
+ */
+ @NonNull
+ public Builder setSlotIndex(int slotIndex) {
+ this.mSlotIndex = slotIndex;
+ return this;
+ }
+
+ /**
+ * Set the transport type.
+ *
+ * @param transportType the transport type.
+ * @return The same instance of the builder.
+ */
+ @NonNull
+ public Builder setTransportType(@AccessNetworkConstants.TransportType
+ int transportType) {
+ this.mTransportType = transportType;
+ return this;
+ }
+
+ /**
+ * Set the APN type.
+ *
+ * @param apnType the APN type.
+ * @return The same instance of the builder.
+ */
+ @NonNull
+ public Builder setApnType(@Annotation.ApnType int apnType) {
+ this.mApnType = apnType;
+ return this;
+ }
+
+ /**
+ * Sets the time at which the throttle will expire. The value is based off of
+ * {@link SystemClock#elapsedRealtime}.
+ *
+ * When setting this value, the throttle type is set to
+ * {@link ApnThrottleStatus#THROTTLE_TYPE_ELAPSED_TIME}.
+ *
+ * A value of {@link Long#MAX_VALUE} implies that the APN type is throttled indefinitely.
+ *
+ * @param throttleExpiryTimeMillis The elapsed time at which the throttle expires.
+ * Throws {@link IllegalArgumentException} for values less
+ * than 0.
+ * @return The same instance of the builder.
+ */
+ @NonNull
+ public Builder setThrottleExpiryTimeMillis(
+ @ElapsedRealtimeLong long throttleExpiryTimeMillis) {
+ if (throttleExpiryTimeMillis >= 0) {
+ this.mThrottleExpiryTimeMillis = throttleExpiryTimeMillis;
+ this.mThrottleType = THROTTLE_TYPE_ELAPSED_TIME;
+ } else {
+ throw new IllegalArgumentException("throttleExpiryTimeMillis must be greater than "
+ + "or equal to 0");
+ }
+ return this;
+ }
+
+ /**
+ * Sets the status of the APN type as not being throttled.
+ *
+ * When setting this value, the throttle type is set to
+ * {@link ApnThrottleStatus#THROTTLE_TYPE_NONE} and the expiry time is set to
+ * {@link Builder#NO_THROTTLE_EXPIRY_TIME}.
+ *
+ * @return The same instance of the builder.
+ */
+ @SuppressLint("MissingGetterMatchingBuilder")
+ @NonNull
+ public Builder setNoThrottle() {
+ mThrottleType = THROTTLE_TYPE_NONE;
+ mThrottleExpiryTimeMillis = NO_THROTTLE_EXPIRY_TIME;
+ return this;
+ }
+
+ /**
+ * Set the type of request that the framework will make the next time it retries
+ * to call {@link IDataService#setupDataCall}.
+ *
+ * @param retryType the type of request
+ * @return The same instance of the builder.
+ */
+ @NonNull
+ public Builder setRetryType(@RetryType int retryType) {
+ this.mRetryType = retryType;
+ return this;
+ }
+
+ /**
+ * Build the {@link ApnThrottleStatus}
+ *
+ * @return the {@link ApnThrottleStatus} object
+ */
+ @NonNull
+ public ApnThrottleStatus build() {
+ return new ApnThrottleStatus(
+ mSlotIndex,
+ mTransportType,
+ mApnType,
+ mThrottleType,
+ mThrottleExpiryTimeMillis,
+ mRetryType);
+ }
+ }
+}
diff --git a/telephony/java/android/telephony/data/DataCallResponse.java b/telephony/java/android/telephony/data/DataCallResponse.java
index f0088b9..8348502 100644
--- a/telephony/java/android/telephony/data/DataCallResponse.java
+++ b/telephony/java/android/telephony/data/DataCallResponse.java
@@ -109,10 +109,10 @@
public static final int HANDOVER_FAILURE_MODE_NO_FALLBACK_RETRY_SETUP_NORMAL = 3;
/**
- * Indicates that data retry interval is not specified. Platform can determine when to
+ * Indicates that data retry duration is not specified. Platform can determine when to
* perform data setup appropriately.
*/
- public static final int RETRY_INTERVAL_UNDEFINED = -1;
+ public static final int RETRY_DURATION_UNDEFINED = -1;
/**
* Indicates that the pdu session id is not set.
@@ -254,19 +254,26 @@
/**
* @return The suggested data retry time in milliseconds.
*
- * @deprecated Use {@link #getRetryIntervalMillis()} instead.
+ * @deprecated Use {@link #getRetryDurationMillis()} instead.
*/
@Deprecated
public int getSuggestedRetryTime() {
+
+ // To match the pre-deprecated getSuggestedRetryTime() behavior.
+ if (mSuggestedRetryTime == RETRY_DURATION_UNDEFINED) {
+ return 0;
+ } else if (mSuggestedRetryTime > Integer.MAX_VALUE) {
+ return Integer.MAX_VALUE;
+ }
return (int) mSuggestedRetryTime;
}
/**
- * @return The network suggested data retry interval in milliseconds. {@code Long.MAX_VALUE}
- * indicates data retry should not occur. {@link #RETRY_INTERVAL_UNDEFINED} indicates network
- * did not suggest any retry interval.
+ * @return The network suggested data retry duration in milliseconds. {@code Long.MAX_VALUE}
+ * indicates data retry should not occur. {@link #RETRY_DURATION_UNDEFINED} indicates network
+ * did not suggest any retry duration.
*/
- public long getRetryIntervalMillis() {
+ public long getRetryDurationMillis() {
return mSuggestedRetryTime;
}
@@ -537,7 +544,7 @@
public static final class Builder {
private @DataFailureCause int mCause;
- private long mSuggestedRetryTime = RETRY_INTERVAL_UNDEFINED;
+ private long mSuggestedRetryTime = RETRY_DURATION_UNDEFINED;
private int mId;
@@ -592,7 +599,7 @@
* @param suggestedRetryTime The suggested data retry time in milliseconds.
* @return The same instance of the builder.
*
- * @deprecated Use {@link #setRetryIntervalMillis(long)} instead.
+ * @deprecated Use {@link #setRetryDurationMillis(long)} instead.
*/
@Deprecated
public @NonNull Builder setSuggestedRetryTime(int suggestedRetryTime) {
@@ -601,13 +608,13 @@
}
/**
- * Set the network suggested data retry interval.
+ * Set the network suggested data retry duration.
*
- * @param retryIntervalMillis The suggested data retry interval in milliseconds.
+ * @param retryDurationMillis The suggested data retry duration in milliseconds.
* @return The same instance of the builder.
*/
- public @NonNull Builder setRetryIntervalMillis(long retryIntervalMillis) {
- mSuggestedRetryTime = retryIntervalMillis;
+ public @NonNull Builder setRetryDurationMillis(long retryDurationMillis) {
+ mSuggestedRetryTime = retryDurationMillis;
return this;
}
diff --git a/telephony/java/android/telephony/data/DataService.java b/telephony/java/android/telephony/data/DataService.java
index 7768597..2ec9651 100644
--- a/telephony/java/android/telephony/data/DataService.java
+++ b/telephony/java/android/telephony/data/DataService.java
@@ -107,6 +107,9 @@
private static final int DATA_SERVICE_INDICATION_DATA_CALL_LIST_CHANGED = 11;
private static final int DATA_SERVICE_REQUEST_START_HANDOVER = 12;
private static final int DATA_SERVICE_REQUEST_CANCEL_HANDOVER = 13;
+ private static final int DATA_SERVICE_REQUEST_REGISTER_APN_UNTHROTTLED = 14;
+ private static final int DATA_SERVICE_REQUEST_UNREGISTER_APN_UNTHROTTLED = 15;
+ private static final int DATA_SERVICE_INDICATION_APN_UNTHROTTLED = 16;
private final HandlerThread mHandlerThread;
@@ -129,6 +132,8 @@
private final List<IDataServiceCallback> mDataCallListChangedCallbacks = new ArrayList<>();
+ private final List<IDataServiceCallback> mApnUnthrottledCallbacks = new ArrayList<>();
+
/**
* Constructor
* @param slotIndex SIM slot index the data service provider associated with.
@@ -326,6 +331,19 @@
}
}
+ private void registerForApnUnthrottled(IDataServiceCallback callback) {
+ synchronized (mApnUnthrottledCallbacks) {
+ mApnUnthrottledCallbacks.add(callback);
+ }
+ }
+
+ private void unregisterForApnUnthrottled(IDataServiceCallback callback) {
+ synchronized (mApnUnthrottledCallbacks) {
+ mApnUnthrottledCallbacks.remove(callback);
+ }
+ }
+
+
/**
* Notify the system that current data call list changed. Data service must invoke this
* method whenever there is any data call status changed.
@@ -343,6 +361,21 @@
}
/**
+ * Notify the system that a given APN was unthrottled.
+ *
+ * @param apn Access Point Name defined by the carrier.
+ */
+ public final void notifyApnUnthrottled(@NonNull String apn) {
+ synchronized (mApnUnthrottledCallbacks) {
+ for (IDataServiceCallback callback : mApnUnthrottledCallbacks) {
+ mHandler.obtainMessage(DATA_SERVICE_INDICATION_APN_UNTHROTTLED,
+ mSlotIndex, 0, new ApnUnthrottledIndication(apn,
+ callback)).sendToTarget();
+ }
+ }
+ }
+
+ /**
* Called when the instance of data service is destroyed (e.g. got unbind or binder died)
* or when the data service provider is removed. The extended class should implement this
* method to perform cleanup works.
@@ -429,6 +462,16 @@
}
}
+ private static final class ApnUnthrottledIndication {
+ public final String apn;
+ public final IDataServiceCallback callback;
+ ApnUnthrottledIndication(String apn,
+ IDataServiceCallback callback) {
+ this.apn = apn;
+ this.callback = callback;
+ }
+ }
+
private class DataServiceHandler extends Handler {
DataServiceHandler(Looper looper) {
@@ -544,6 +587,26 @@
(cReq.callback != null)
? new DataServiceCallback(cReq.callback) : null);
break;
+ case DATA_SERVICE_REQUEST_REGISTER_APN_UNTHROTTLED:
+ if (serviceProvider == null) break;
+ serviceProvider.registerForApnUnthrottled((IDataServiceCallback) message.obj);
+ break;
+ case DATA_SERVICE_REQUEST_UNREGISTER_APN_UNTHROTTLED:
+ if (serviceProvider == null) break;
+ callback = (IDataServiceCallback) message.obj;
+ serviceProvider.unregisterForApnUnthrottled(callback);
+ break;
+ case DATA_SERVICE_INDICATION_APN_UNTHROTTLED:
+ if (serviceProvider == null) break;
+ ApnUnthrottledIndication apnUnthrottledIndication =
+ (ApnUnthrottledIndication) message.obj;
+ try {
+ apnUnthrottledIndication.callback
+ .onApnUnthrottled(apnUnthrottledIndication.apn);
+ } catch (RemoteException e) {
+ loge("Failed to call onApnUnthrottled. " + e);
+ }
+ break;
}
}
}
@@ -695,6 +758,26 @@
mHandler.obtainMessage(DATA_SERVICE_REQUEST_CANCEL_HANDOVER,
slotIndex, 0, req).sendToTarget();
}
+
+ @Override
+ public void registerForUnthrottleApn(int slotIndex, IDataServiceCallback callback) {
+ if (callback == null) {
+ loge("registerForUnthrottleApn: callback is null");
+ return;
+ }
+ mHandler.obtainMessage(DATA_SERVICE_REQUEST_REGISTER_APN_UNTHROTTLED, slotIndex,
+ 0, callback).sendToTarget();
+ }
+
+ @Override
+ public void unregisterForUnthrottleApn(int slotIndex, IDataServiceCallback callback) {
+ if (callback == null) {
+ loge("uregisterForUnthrottleApn: callback is null");
+ return;
+ }
+ mHandler.obtainMessage(DATA_SERVICE_REQUEST_UNREGISTER_APN_UNTHROTTLED,
+ slotIndex, 0, callback).sendToTarget();
+ }
}
private void log(String s) {
diff --git a/telephony/java/android/telephony/data/DataServiceCallback.java b/telephony/java/android/telephony/data/DataServiceCallback.java
index eef0e01..52bf15f 100644
--- a/telephony/java/android/telephony/data/DataServiceCallback.java
+++ b/telephony/java/android/telephony/data/DataServiceCallback.java
@@ -233,7 +233,7 @@
*/
@NonNull
public static String resultCodeToString(@DataServiceCallback.ResultCode int resultCode) {
- switch(resultCode) {
+ switch (resultCode) {
case RESULT_SUCCESS:
return "RESULT_SUCCESS";
case RESULT_ERROR_UNSUPPORTED:
@@ -248,4 +248,22 @@
return "Missing case for result code=" + resultCode;
}
}
+
+ /**
+ * Indicates that the specified APN is no longer throttled.
+ *
+ * @param apn Access Point Name defined by the carrier.
+ */
+ public void onApnUnthrottled(@NonNull String apn) {
+ if (mCallback != null) {
+ try {
+ if (DBG) Rlog.d(TAG, "onApnUnthrottled");
+ mCallback.onApnUnthrottled(apn);
+ } catch (RemoteException e) {
+ Rlog.e(TAG, "onApnUnthrottled: remote exception", e);
+ }
+ } else {
+ Rlog.e(TAG, "onApnUnthrottled: callback is null!");
+ }
+ }
}
diff --git a/telephony/java/android/telephony/data/IDataService.aidl b/telephony/java/android/telephony/data/IDataService.aidl
index 33226fe..3f1f033 100644
--- a/telephony/java/android/telephony/data/IDataService.aidl
+++ b/telephony/java/android/telephony/data/IDataService.aidl
@@ -40,4 +40,6 @@
void unregisterForDataCallListChanged(int slotId, IDataServiceCallback callback);
void startHandover(int slotId, int cid, IDataServiceCallback callback);
void cancelHandover(int slotId, int cid, IDataServiceCallback callback);
+ void registerForUnthrottleApn(int slotIndex, IDataServiceCallback callback);
+ void unregisterForUnthrottleApn(int slotIndex, IDataServiceCallback callback);
}
diff --git a/telephony/java/android/telephony/data/IDataServiceCallback.aidl b/telephony/java/android/telephony/data/IDataServiceCallback.aidl
index d296e7b..9cc2fea 100644
--- a/telephony/java/android/telephony/data/IDataServiceCallback.aidl
+++ b/telephony/java/android/telephony/data/IDataServiceCallback.aidl
@@ -32,4 +32,5 @@
void onDataCallListChanged(in List<DataCallResponse> dataCallList);
void onHandoverStarted(int result);
void onHandoverCancelled(int result);
+ void onApnUnthrottled(in String apn);
}
diff --git a/telephony/java/android/telephony/data/IQualifiedNetworksService.aidl b/telephony/java/android/telephony/data/IQualifiedNetworksService.aidl
index 3bf09bc..2904082 100644
--- a/telephony/java/android/telephony/data/IQualifiedNetworksService.aidl
+++ b/telephony/java/android/telephony/data/IQualifiedNetworksService.aidl
@@ -17,6 +17,7 @@
package android.telephony.data;
import android.telephony.data.IQualifiedNetworksServiceCallback;
+import android.telephony.data.ApnThrottleStatus;
/**
* {@hide}
@@ -25,4 +26,5 @@
{
oneway void createNetworkAvailabilityProvider(int slotId, IQualifiedNetworksServiceCallback callback);
oneway void removeNetworkAvailabilityProvider(int slotId);
+ oneway void reportApnThrottleStatusChanged(int slotId, in List<ApnThrottleStatus> statuses);
}
diff --git a/telephony/java/android/telephony/data/QualifiedNetworksService.java b/telephony/java/android/telephony/data/QualifiedNetworksService.java
index 05971c4..4af63b4 100644
--- a/telephony/java/android/telephony/data/QualifiedNetworksService.java
+++ b/telephony/java/android/telephony/data/QualifiedNetworksService.java
@@ -28,6 +28,7 @@
import android.os.RemoteException;
import android.telephony.AccessNetworkConstants.AccessNetworkType;
import android.telephony.Annotation.ApnType;
+import android.util.Log;
import android.util.SparseArray;
import com.android.internal.annotations.VisibleForTesting;
@@ -65,6 +66,7 @@
private static final int QNS_REMOVE_NETWORK_AVAILABILITY_PROVIDER = 2;
private static final int QNS_REMOVE_ALL_NETWORK_AVAILABILITY_PROVIDERS = 3;
private static final int QNS_UPDATE_QUALIFIED_NETWORKS = 4;
+ private static final int QNS_APN_THROTTLE_STATUS_CHANGED = 5;
private final HandlerThread mHandlerThread;
@@ -160,6 +162,17 @@
}
/**
+ * The framework calls this method when the throttle status of an APN changes.
+ *
+ * This method is meant to be overridden.
+ *
+ * @param statuses the statuses that have changed
+ */
+ public void reportApnThrottleStatusChanged(@NonNull List<ApnThrottleStatus> statuses) {
+ Log.d(TAG, "reportApnThrottleStatusChanged: statuses size=" + statuses.size());
+ }
+
+ /**
* Called when the qualified networks provider is removed. The extended class should
* implement this method to perform cleanup works.
*/
@@ -197,6 +210,12 @@
+ slotIndex);
}
break;
+ case QNS_APN_THROTTLE_STATUS_CHANGED:
+ if (provider != null) {
+ List<ApnThrottleStatus> statuses = (List<ApnThrottleStatus>) message.obj;
+ provider.reportApnThrottleStatusChanged(statuses);
+ }
+ break;
case QNS_REMOVE_NETWORK_AVAILABILITY_PROVIDER:
if (provider != null) {
@@ -286,6 +305,13 @@
mHandler.obtainMessage(QNS_REMOVE_NETWORK_AVAILABILITY_PROVIDER, slotIndex, 0)
.sendToTarget();
}
+
+ @Override
+ public void reportApnThrottleStatusChanged(int slotIndex,
+ List<ApnThrottleStatus> statuses) {
+ mHandler.obtainMessage(QNS_APN_THROTTLE_STATUS_CHANGED, slotIndex, 0, statuses)
+ .sendToTarget();
+ }
}
private void log(String s) {
diff --git a/telephony/java/android/telephony/ims/ImsCallProfile.java b/telephony/java/android/telephony/ims/ImsCallProfile.java
index 1b51936..aaa68d6 100644
--- a/telephony/java/android/telephony/ims/ImsCallProfile.java
+++ b/telephony/java/android/telephony/ims/ImsCallProfile.java
@@ -18,6 +18,7 @@
import android.annotation.IntDef;
import android.annotation.NonNull;
+import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.annotation.TestApi;
import android.compat.annotation.UnsupportedAppUsage;
@@ -207,6 +208,42 @@
"android.telephony.ims.extra.RETRY_CALL_FAIL_NETWORKTYPE";
/**
+ * Extra for the call composer call priority, either {@link ImsCallProfile#PRIORITY_NORMAL} or
+ * {@link ImsCallProfile#PRIORITY_URGENT}. It can be set via
+ * {@link #setCallExtraInt(String, int)}.
+ *
+ * Reference: RCC.20 Section 2.4.4.2
+ */
+ public static final String EXTRA_PRIORITY = "android.telephony.ims.extra.PRIORITY";
+
+ // TODO(hallliu) remove the reference to the maximum length and update it later.
+ /**
+ * Extra for the call composer call subject, a string of maximum length 60 characters.
+ * It can be set via {@link #setCallExtra(String, String)}.
+ *
+ * Reference: RCC.20 Section 2.4.3.2
+ */
+ public static final String EXTRA_CALL_SUBJECT = "android.telephony.ims.extra.CALL_SUBJECT";
+
+ /**
+ * Extra for the call composer call location, an {@Link android.location.Location} parcelable
+ * class to represent the geolocation as a latitude and longitude pair. It can be set via
+ * {@link #setCallExtraParcelable(String, Parcelable)}.
+ *
+ * Reference: RCC.20 Section 2.4.3.2
+ */
+ public static final String EXTRA_LOCATION = "android.telephony.ims.extra.LOCATION";
+
+ /**
+ * Extra for the call composer picture URL, a String that indicates the URL on the carrier’s
+ * server infrastructure to get the picture. It can be set via
+ * {@link #setCallExtra(String, String)}.
+ *
+ * Reference: RCC.20 Section 2.4.3.2
+ */
+ public static final String EXTRA_PICTURE_URL = "android.telephony.ims.extra.PICTURE_URL";
+
+ /**
* Values for EXTRA_OIR / EXTRA_CNAP
*/
/**
@@ -244,6 +281,21 @@
*/
public static final int DIALSTRING_USSD = 2;
+ // Values for EXTRA_PRIORITY
+ /**
+ * Indicates the call composer call priority is normal.
+ *
+ * Reference: RCC.20 Section 2.4.4.2
+ */
+ public static final int PRIORITY_NORMAL = 0;
+
+ /**
+ * Indicates the call composer call priority is urgent.
+ *
+ * Reference: RCC.20 Section 2.4.4.2
+ */
+ public static final int PRIORITY_URGENT = 1;
+
/**
* Call is not restricted on peer side and High Definition media is supported
*/
@@ -588,6 +640,19 @@
return mCallExtras.getInt(name, defaultValue);
}
+ /**
+ * Get the call extras (Parcelable), given the extra name.
+ * @param name call extra name
+ * @return the corresponding call extra Parcelable or null if not applicable
+ */
+ @Nullable
+ public <T extends Parcelable> T getCallExtraParcelable(@Nullable String name) {
+ if (mCallExtras != null) {
+ return mCallExtras.getParcelable(name);
+ }
+ return null;
+ }
+
public void setCallExtra(String name, String value) {
if (mCallExtras != null) {
mCallExtras.putString(name, value);
@@ -607,6 +672,17 @@
}
/**
+ * Set the call extra value (Parcelable), given the call extra name.
+ * @param name call extra name
+ * @param parcelable call extra value
+ */
+ public void setCallExtraParcelable(@NonNull String name, @NonNull Parcelable parcelable) {
+ if (mCallExtras != null) {
+ mCallExtras.putParcelable(name, parcelable);
+ }
+ }
+
+ /**
* Set the call restrict cause, which provides the reason why a call has been restricted from
* using High Definition media.
*/
diff --git a/telephony/java/android/telephony/ims/ImsCallSession.java b/telephony/java/android/telephony/ims/ImsCallSession.java
index a3efb79..0aff997 100755
--- a/telephony/java/android/telephony/ims/ImsCallSession.java
+++ b/telephony/java/android/telephony/ims/ImsCallSession.java
@@ -101,10 +101,29 @@
*/
public static class Listener {
/**
- * Called when a request is sent out to initiate a new session
- * and 1xx response is received from the network.
+ * Called when the session is initiating.
*
- * @param session the session object that carries out the IMS session
+ * see: {@link ImsCallSessionListener#callSessionInitiating(ImsCallProfile)}
+ */
+ public void callSessionInitiating(ImsCallSession session,
+ ImsCallProfile profile) {
+ // no-op
+ }
+
+ /**
+ * Called when the session failed before initiating was called.
+ *
+ * see: {@link ImsCallSessionListener#callSessionInitiatingFailed(ImsReasonInfo)}
+ */
+ public void callSessionInitiatingFailed(ImsCallSession session,
+ ImsReasonInfo reasonInfo) {
+ // no-op
+ }
+
+ /**
+ * Called when the session is progressing.
+ *
+ * see: {@link ImsCallSessionListener#callSessionProgressing(ImsStreamMediaProfile)}
*/
public void callSessionProgressing(ImsCallSession session,
ImsStreamMediaProfile profile) {
@@ -1179,6 +1198,13 @@
* Notifies the result of the basic session operation (setup / terminate).
*/
@Override
+ public void callSessionInitiating(ImsCallProfile profile) {
+ if (mListener != null) {
+ mListener.callSessionInitiating(ImsCallSession.this, profile);
+ }
+ }
+
+ @Override
public void callSessionProgressing(ImsStreamMediaProfile profile) {
if (mListener != null) {
mListener.callSessionProgressing(ImsCallSession.this, profile);
@@ -1193,6 +1219,13 @@
}
@Override
+ public void callSessionInitiatingFailed(ImsReasonInfo reasonInfo) {
+ if (mListener != null) {
+ mListener.callSessionStartFailed(ImsCallSession.this, reasonInfo);
+ }
+ }
+
+ @Override
public void callSessionInitiatedFailed(ImsReasonInfo reasonInfo) {
if (mListener != null) {
mListener.callSessionStartFailed(ImsCallSession.this, reasonInfo);
diff --git a/telephony/java/android/telephony/ims/ImsCallSessionListener.java b/telephony/java/android/telephony/ims/ImsCallSessionListener.java
index 86bb5d9..db99acf 100644
--- a/telephony/java/android/telephony/ims/ImsCallSessionListener.java
+++ b/telephony/java/android/telephony/ims/ImsCallSessionListener.java
@@ -53,8 +53,45 @@
}
/**
- * A request has been sent out to initiate a new IMS call session and a 1xx response has been
- * received from the network.
+ * Called when the network first begins to establish the call session and is now connecting
+ * to the remote party. This must be called once after {@link ImsCallSessionImplBase#start} and
+ * before any other method on this listener. After this is called,
+ * {@link #callSessionProgressing(ImsStreamMediaProfile)} must be called to communicate any
+ * further updates.
+ * <p/>
+ * Once this is called, {@link #callSessionTerminated} must be called
+ * to end the call session. In the event that the session failed before the remote party
+ * was contacted, {@link #callSessionInitiatingFailed} must be called.
+ *
+ * @param profile the associated {@link ImsCallProfile}.
+ */
+ public void callSessionInitiating(@NonNull ImsCallProfile profile) {
+ try {
+ mListener.callSessionInitiating(profile);
+ } catch (RemoteException e) {
+ e.rethrowFromSystemServer();
+ }
+ }
+
+ /**
+ * The IMS call session establishment has failed while initiating.
+ *
+ * @param reasonInfo {@link ImsReasonInfo} detailing the reason of the IMS call session
+ * establishment failure.
+ */
+ public void callSessionInitiatingFailed(@NonNull ImsReasonInfo reasonInfo) {
+ try {
+ mListener.callSessionInitiatingFailed(reasonInfo);
+ } catch (RemoteException e) {
+ e.rethrowFromSystemServer();
+ }
+ }
+
+ /**
+ * Called after the network has contacted the remote party and the call state should move to
+ * ALERTING.
+ *
+ * @param profile the associated {@link ImsCallProfile}.
*/
public void callSessionProgressing(ImsStreamMediaProfile profile) {
try {
@@ -65,7 +102,8 @@
}
/**
- * The IMS call session has been initiated.
+ * Called once the outgoing IMS call session has been begun between the local and remote party.
+ * The call state should move to ACTIVE.
*
* @param profile the associated {@link ImsCallProfile}.
*/
@@ -82,7 +120,12 @@
*
* @param reasonInfo {@link ImsReasonInfo} detailing the reason of the IMS call session
* establishment failure.
+ * @deprecated {@link #callSessionInitiated(ImsCallProfile)} is called immediately after
+ * the session is first started which meant that there was no time in which a call to this
+ * method was technically valid. This method is replaced starting Android S in favor of
+ * {@link #callSessionInitiatingFailed(ImsReasonInfo)}.
*/
+ @Deprecated
public void callSessionInitiatedFailed(ImsReasonInfo reasonInfo) {
try {
mListener.callSessionInitiatedFailed(reasonInfo);
diff --git a/telephony/java/android/telephony/ims/aidl/IImsCallSessionListener.aidl b/telephony/java/android/telephony/ims/aidl/IImsCallSessionListener.aidl
index ed895b7..ed03752 100644
--- a/telephony/java/android/telephony/ims/aidl/IImsCallSessionListener.aidl
+++ b/telephony/java/android/telephony/ims/aidl/IImsCallSessionListener.aidl
@@ -37,6 +37,8 @@
/**
* Notifies the result of the basic session operation (setup / terminate).
*/
+ void callSessionInitiating(in ImsCallProfile profile);
+ void callSessionInitiatingFailed(in ImsReasonInfo reasonInfo);
void callSessionProgressing(in ImsStreamMediaProfile profile);
void callSessionInitiated(in ImsCallProfile profile);
void callSessionInitiatedFailed(in ImsReasonInfo reasonInfo);
diff --git a/telephony/java/android/telephony/ims/feature/MmTelFeature.java b/telephony/java/android/telephony/ims/feature/MmTelFeature.java
index e570fb6..0b2c6d9 100644
--- a/telephony/java/android/telephony/ims/feature/MmTelFeature.java
+++ b/telephony/java/android/telephony/ims/feature/MmTelFeature.java
@@ -231,8 +231,9 @@
* The capabilities that are used in MmTelFeature are defined as
* {@link MmTelCapabilities#CAPABILITY_TYPE_VOICE},
* {@link MmTelCapabilities#CAPABILITY_TYPE_VIDEO},
- * {@link MmTelCapabilities#CAPABILITY_TYPE_UT}, and
- * {@link MmTelCapabilities#CAPABILITY_TYPE_SMS}.
+ * {@link MmTelCapabilities#CAPABILITY_TYPE_UT},
+ * {@link MmTelCapabilities#CAPABILITY_TYPE_SMS}, and
+ * {@link MmTelCapabilities#CAPABILITY_TYPE_CALL_COMPOSER}.
*
* The capabilities of this MmTelFeature will be set by the framework.
*/
@@ -275,7 +276,8 @@
CAPABILITY_TYPE_VOICE,
CAPABILITY_TYPE_VIDEO,
CAPABILITY_TYPE_UT,
- CAPABILITY_TYPE_SMS
+ CAPABILITY_TYPE_SMS,
+ CAPABILITY_TYPE_CALL_COMPOSER
})
@Retention(RetentionPolicy.SOURCE)
public @interface MmTelCapability {}
@@ -301,6 +303,11 @@
public static final int CAPABILITY_TYPE_SMS = 1 << 3;
/**
+ * This MmTelFeature supports Call Composer (section 2.4 of RC.20)
+ */
+ public static final int CAPABILITY_TYPE_CALL_COMPOSER = 1 << 4;
+
+ /**
* @hide
*/
@Override
@@ -343,6 +350,8 @@
builder.append(isCapable(CAPABILITY_TYPE_UT));
builder.append(" SMS: ");
builder.append(isCapable(CAPABILITY_TYPE_SMS));
+ builder.append(" CALL_COMPOSER: ");
+ builder.append(isCapable(CAPABILITY_TYPE_CALL_COMPOSER));
builder.append("]");
return builder.toString();
}
diff --git a/telephony/java/com/android/internal/telephony/DctConstants.java b/telephony/java/com/android/internal/telephony/DctConstants.java
index 76fc4f7..6fbde50 100644
--- a/telephony/java/com/android/internal/telephony/DctConstants.java
+++ b/telephony/java/com/android/internal/telephony/DctConstants.java
@@ -113,6 +113,7 @@
public static final int EVENT_NR_TIMER_WATCHDOG = BASE + 53;
public static final int EVENT_CARRIER_CONFIG_CHANGED = BASE + 54;
public static final int EVENT_SIM_STATE_UPDATED = BASE + 55;
+ public static final int EVENT_APN_UNTHROTTLED = BASE + 56;
/***** Constants *****/
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl
index 7c5047c..c60a44c 100644
--- a/telephony/java/com/android/internal/telephony/ITelephony.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl
@@ -128,6 +128,15 @@
*/
boolean isRadioOnForSubscriberWithFeature(int subId, String callingPackage, String callingFeatureId);
+ /**
+ * Set the user-set status for enriched calling with call composer.
+ */
+ void setCallComposerStatus(int subId, int status);
+
+ /**
+ * Get the user-set status for enriched calling with call composer.
+ */
+ int getCallComposerStatus(int subId);
/**
* Supply a pin to unlock the SIM for particular subId.
@@ -2352,4 +2361,10 @@
* Gets the config of RCS VoLTE single registration enabled for the carrier/subscription.
*/
boolean getCarrierSingleRegistrationEnabled(int subId);
+
+ /**
+ * Return the mobile provisioning url that is used to launch a browser to allow users to manage
+ * their mobile plan.
+ */
+ String getMobileProvisioningUrl();
}
diff --git a/tests/net/integration/src/com/android/server/net/integrationtests/ConnectivityServiceIntegrationTest.kt b/tests/net/integration/src/com/android/server/net/integrationtests/ConnectivityServiceIntegrationTest.kt
index 70f6386..8e18751 100644
--- a/tests/net/integration/src/com/android/server/net/integrationtests/ConnectivityServiceIntegrationTest.kt
+++ b/tests/net/integration/src/com/android/server/net/integrationtests/ConnectivityServiceIntegrationTest.kt
@@ -25,7 +25,6 @@
import android.net.ConnectivityManager
import android.net.IDnsResolver
import android.net.INetd
-import android.net.INetworkPolicyManager
import android.net.INetworkStatsService
import android.net.LinkProperties
import android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL
@@ -88,8 +87,6 @@
@Mock
private lateinit var statsService: INetworkStatsService
@Mock
- private lateinit var policyManager: INetworkPolicyManager
- @Mock
private lateinit var log: IpConnectivityLog
@Mock
private lateinit var netd: INetd
@@ -171,7 +168,7 @@
}
private inner class TestConnectivityService(deps: Dependencies) : ConnectivityService(
- context, netManager, statsService, policyManager, dnsResolver, log, netd, deps)
+ context, netManager, statsService, dnsResolver, log, netd, deps)
private fun makeDependencies(): ConnectivityService.Dependencies {
val deps = spy(ConnectivityService.Dependencies())
diff --git a/tests/net/java/com/android/server/ConnectivityServiceTest.java b/tests/net/java/com/android/server/ConnectivityServiceTest.java
index a613e5e..9421acd 100644
--- a/tests/net/java/com/android/server/ConnectivityServiceTest.java
+++ b/tests/net/java/com/android/server/ConnectivityServiceTest.java
@@ -166,7 +166,6 @@
import android.net.INetworkMonitor;
import android.net.INetworkMonitorCallbacks;
import android.net.INetworkPolicyListener;
-import android.net.INetworkPolicyManager;
import android.net.INetworkStatsService;
import android.net.InetAddresses;
import android.net.InterfaceConfigurationParcel;
@@ -183,6 +182,7 @@
import android.net.NetworkFactory;
import android.net.NetworkInfo;
import android.net.NetworkInfo.DetailedState;
+import android.net.NetworkPolicyManager;
import android.net.NetworkRequest;
import android.net.NetworkSpecifier;
import android.net.NetworkStack;
@@ -299,6 +299,7 @@
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.Predicate;
import java.util.function.Supplier;
+import java.util.stream.Collectors;
import kotlin.reflect.KClass;
@@ -365,7 +366,6 @@
@Mock INetworkManagementService mNetworkManagementService;
@Mock INetworkStatsService mStatsService;
@Mock IBatteryStats mBatteryStatsService;
- @Mock INetworkPolicyManager mNpm;
@Mock IDnsResolver mMockDnsResolver;
@Mock INetd mMockNetd;
@Mock NetworkStackClient mNetworkStack;
@@ -380,6 +380,7 @@
@Mock TelephonyManager mTelephonyManager;
@Mock MockableSystemProperties mSystemProperties;
@Mock EthernetManager mEthernetManager;
+ @Mock NetworkPolicyManager mNetworkPolicyManager;
private ArgumentCaptor<ResolverParamsParcel> mResolverParamsParcelCaptor =
ArgumentCaptor.forClass(ResolverParamsParcel.class);
@@ -412,6 +413,7 @@
@Spy private Resources mResources;
private final LinkedBlockingQueue<Intent> mStartedActivities = new LinkedBlockingQueue<>();
+
// Map of permission name -> PermissionManager.Permission_{GRANTED|DENIED} constant
private final HashMap<String, Integer> mMockedPermissions = new HashMap<>();
@@ -477,6 +479,7 @@
if (Context.APP_OPS_SERVICE.equals(name)) return mAppOpsManager;
if (Context.TELEPHONY_SERVICE.equals(name)) return mTelephonyManager;
if (Context.ETHERNET_SERVICE.equals(name)) return mEthernetManager;
+ if (Context.NETWORK_POLICY_SERVICE.equals(name)) return mNetworkPolicyManager;
return super.getSystemService(name);
}
@@ -1326,7 +1329,6 @@
mService = new ConnectivityService(mServiceContext,
mNetworkManagementService,
mStatsService,
- mNpm,
mMockDnsResolver,
mock(IpConnectivityLog.class),
mMockNetd,
@@ -1336,7 +1338,7 @@
final ArgumentCaptor<INetworkPolicyListener> policyListenerCaptor =
ArgumentCaptor.forClass(INetworkPolicyListener.class);
- verify(mNpm).registerListener(policyListenerCaptor.capture());
+ verify(mNetworkPolicyManager).registerListener(policyListenerCaptor.capture());
mPolicyListener = policyListenerCaptor.getValue();
// Create local CM before sending system ready so that we can answer
@@ -6509,6 +6511,26 @@
checkNetworkInfo(mCm.getNetworkInfo(type), type, state);
}
+ // Checks that each of the |agents| receive a blocked status change callback with the specified
+ // |blocked| value, in any order. This is needed because when an event affects multiple
+ // networks, ConnectivityService does not guarantee the order in which callbacks are fired.
+ private void assertBlockedCallbackInAnyOrder(TestNetworkCallback callback, boolean blocked,
+ TestNetworkAgentWrapper... agents) {
+ final List<Network> expectedNetworks = Arrays.asList(agents).stream()
+ .map((agent) -> agent.getNetwork())
+ .collect(Collectors.toList());
+
+ // Expect exactly one blocked callback for each agent.
+ for (int i = 0; i < agents.length; i++) {
+ CallbackEntry e = callback.expectCallbackThat(TIMEOUT_MS, (c) ->
+ c instanceof CallbackEntry.BlockedStatus
+ && ((CallbackEntry.BlockedStatus) c).getBlocked() == blocked);
+ Network network = e.getNetwork();
+ assertTrue("Received unexpected blocked callback for network " + network,
+ expectedNetworks.remove(network));
+ }
+ }
+
@Test
public void testNetworkBlockedStatusAlwaysOnVpn() throws Exception {
mServiceContext.setPermission(
@@ -6555,9 +6577,10 @@
assertNetworkInfo(TYPE_WIFI, DetailedState.BLOCKED);
// Disable lockdown, expect to see the network unblocked.
- // There are no callbacks because they are not implemented yet.
mService.setAlwaysOnVpnPackage(userId, null, false /* lockdown */, allowList);
expectNetworkRejectNonSecureVpn(inOrder, false, firstHalf, secondHalf);
+ callback.expectBlockedStatusCallback(false, mWiFiNetworkAgent);
+ defaultCallback.expectBlockedStatusCallback(false, mWiFiNetworkAgent);
vpnUidCallback.assertNoCallback();
assertEquals(mWiFiNetworkAgent.getNetwork(), mCm.getActiveNetworkForUid(VPN_UID));
assertEquals(mWiFiNetworkAgent.getNetwork(), mCm.getActiveNetwork());
@@ -6605,6 +6628,8 @@
allowList.clear();
mService.setAlwaysOnVpnPackage(userId, ALWAYS_ON_PACKAGE, true /* lockdown */, allowList);
expectNetworkRejectNonSecureVpn(inOrder, true, firstHalf, secondHalf);
+ defaultCallback.expectBlockedStatusCallback(true, mWiFiNetworkAgent);
+ assertBlockedCallbackInAnyOrder(callback, true, mWiFiNetworkAgent, mCellNetworkAgent);
vpnUidCallback.assertNoCallback();
assertEquals(mWiFiNetworkAgent.getNetwork(), mCm.getActiveNetworkForUid(VPN_UID));
assertNull(mCm.getActiveNetwork());
@@ -6614,6 +6639,8 @@
// Disable lockdown. Everything is unblocked.
mService.setAlwaysOnVpnPackage(userId, null, false /* lockdown */, allowList);
+ defaultCallback.expectBlockedStatusCallback(false, mWiFiNetworkAgent);
+ assertBlockedCallbackInAnyOrder(callback, false, mWiFiNetworkAgent, mCellNetworkAgent);
vpnUidCallback.assertNoCallback();
assertEquals(mWiFiNetworkAgent.getNetwork(), mCm.getActiveNetworkForUid(VPN_UID));
assertEquals(mWiFiNetworkAgent.getNetwork(), mCm.getActiveNetwork());
@@ -6647,6 +6674,8 @@
// Enable lockdown and connect a VPN. The VPN is not blocked.
mService.setAlwaysOnVpnPackage(userId, ALWAYS_ON_PACKAGE, true /* lockdown */, allowList);
+ defaultCallback.expectBlockedStatusCallback(true, mWiFiNetworkAgent);
+ assertBlockedCallbackInAnyOrder(callback, true, mWiFiNetworkAgent, mCellNetworkAgent);
vpnUidCallback.assertNoCallback();
assertEquals(mWiFiNetworkAgent.getNetwork(), mCm.getActiveNetworkForUid(VPN_UID));
assertNull(mCm.getActiveNetwork());
@@ -6658,7 +6687,7 @@
defaultCallback.expectAvailableThenValidatedCallbacks(mMockVpn);
vpnUidCallback.assertNoCallback(); // vpnUidCallback has NOT_VPN capability.
assertEquals(mMockVpn.getNetwork(), mCm.getActiveNetwork());
- assertEquals(null, mCm.getActiveNetworkForUid(VPN_UID)); // BUG?
+ assertEquals(mWiFiNetworkAgent.getNetwork(), mCm.getActiveNetworkForUid(VPN_UID));
assertActiveNetworkInfo(TYPE_WIFI, DetailedState.CONNECTED);
assertNetworkInfo(TYPE_MOBILE, DetailedState.DISCONNECTED);
assertNetworkInfo(TYPE_VPN, DetailedState.CONNECTED);
@@ -7810,8 +7839,7 @@
@Test
public void testCheckConnectivityDiagnosticsPermissionsNetworkStack() throws Exception {
final NetworkAgentInfo naiWithoutUid =
- new NetworkAgentInfo(
- null, null, null, null, null, new NetworkCapabilities(), 0,
+ new NetworkAgentInfo(null, null, null, null, new NetworkCapabilities(), 0,
mServiceContext, null, null, mService, null, null, null, 0, INVALID_UID);
mServiceContext.setPermission(
@@ -7826,8 +7854,7 @@
@Test
public void testCheckConnectivityDiagnosticsPermissionsWrongUidPackageName() throws Exception {
final NetworkAgentInfo naiWithoutUid =
- new NetworkAgentInfo(
- null, null, null, null, null, new NetworkCapabilities(), 0,
+ new NetworkAgentInfo(null, null, null, null, new NetworkCapabilities(), 0,
mServiceContext, null, null, mService, null, null, null, 0, INVALID_UID);
mServiceContext.setPermission(android.Manifest.permission.NETWORK_STACK, PERMISSION_DENIED);
@@ -7842,8 +7869,7 @@
@Test
public void testCheckConnectivityDiagnosticsPermissionsNoLocationPermission() throws Exception {
final NetworkAgentInfo naiWithoutUid =
- new NetworkAgentInfo(
- null, null, null, null, null, new NetworkCapabilities(), 0,
+ new NetworkAgentInfo(null, null, null, null, new NetworkCapabilities(), 0,
mServiceContext, null, null, mService, null, null, null, 0, INVALID_UID);
mServiceContext.setPermission(android.Manifest.permission.NETWORK_STACK, PERMISSION_DENIED);
@@ -7859,8 +7885,7 @@
public void testCheckConnectivityDiagnosticsPermissionsActiveVpn() throws Exception {
final Network network = new Network(NET_ID);
final NetworkAgentInfo naiWithoutUid =
- new NetworkAgentInfo(
- null, null, network, null, null, new NetworkCapabilities(), 0,
+ new NetworkAgentInfo(null, network, null, null, new NetworkCapabilities(), 0,
mServiceContext, null, null, mService, null, null, null, 0, INVALID_UID);
setupLocationPermissions(Build.VERSION_CODES.Q, true, AppOpsManager.OPSTR_FINE_LOCATION,
@@ -7894,8 +7919,7 @@
final NetworkCapabilities nc = new NetworkCapabilities();
nc.setAdministratorUids(new int[] {Process.myUid()});
final NetworkAgentInfo naiWithUid =
- new NetworkAgentInfo(
- null, null, null, null, null, nc, 0, mServiceContext, null, null,
+ new NetworkAgentInfo(null, null, null, null, nc, 0, mServiceContext, null, null,
mService, null, null, null, 0, INVALID_UID);
setupLocationPermissions(Build.VERSION_CODES.Q, true, AppOpsManager.OPSTR_FINE_LOCATION,
@@ -7914,8 +7938,7 @@
nc.setOwnerUid(Process.myUid());
nc.setAdministratorUids(new int[] {Process.myUid()});
final NetworkAgentInfo naiWithUid =
- new NetworkAgentInfo(
- null, null, null, null, null, nc, 0, mServiceContext, null, null,
+ new NetworkAgentInfo(null, null, null, null, nc, 0, mServiceContext, null, null,
mService, null, null, null, 0, INVALID_UID);
setupLocationPermissions(Build.VERSION_CODES.Q, true, AppOpsManager.OPSTR_FINE_LOCATION,
diff --git a/tests/net/java/com/android/server/connectivity/LingerMonitorTest.java b/tests/net/java/com/android/server/connectivity/LingerMonitorTest.java
index aafa18a..96c56e3 100644
--- a/tests/net/java/com/android/server/connectivity/LingerMonitorTest.java
+++ b/tests/net/java/com/android/server/connectivity/LingerMonitorTest.java
@@ -353,7 +353,7 @@
NetworkCapabilities caps = new NetworkCapabilities();
caps.addCapability(0);
caps.addTransportType(transport);
- NetworkAgentInfo nai = new NetworkAgentInfo(null, null, new Network(netId), info, null,
+ NetworkAgentInfo nai = new NetworkAgentInfo(null, new Network(netId), info, null,
caps, 50, mCtx, null, null /* config */, mConnService, mNetd, mDnsResolver, mNMS,
NetworkProvider.ID_NONE, Binder.getCallingUid());
nai.everValidated = true;
diff --git a/tests/net/java/com/android/server/connectivity/VpnTest.java b/tests/net/java/com/android/server/connectivity/VpnTest.java
index cc47317..3648c4d 100644
--- a/tests/net/java/com/android/server/connectivity/VpnTest.java
+++ b/tests/net/java/com/android/server/connectivity/VpnTest.java
@@ -27,7 +27,6 @@
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
-import static org.mockito.AdditionalMatchers.aryEq;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyBoolean;
import static org.mockito.ArgumentMatchers.anyInt;
@@ -89,6 +88,7 @@
import android.security.KeyStore;
import android.util.ArrayMap;
import android.util.ArraySet;
+import android.util.Range;
import androidx.test.filters.SmallTest;
import androidx.test.runner.AndroidJUnit4;
@@ -350,7 +350,7 @@
// Set always-on with lockdown.
assertTrue(vpn.setAlwaysOnPackage(PKGS[1], true, null, mKeyStore));
- verify(mNetd).networkRejectNonSecureVpn(eq(true), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(true, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start, user.start + PKG_UIDS[1] - 1),
new UidRangeParcel(user.start + PKG_UIDS[1] + 1, user.stop)
}));
@@ -361,12 +361,11 @@
// Switch to another app.
assertTrue(vpn.setAlwaysOnPackage(PKGS[3], true, null, mKeyStore));
- verify(mNetd).networkRejectNonSecureVpn(eq(false), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(false, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start, user.start + PKG_UIDS[1] - 1),
new UidRangeParcel(user.start + PKG_UIDS[1] + 1, user.stop)
}));
-
- verify(mNetd).networkRejectNonSecureVpn(eq(true), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(true, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start, user.start + PKG_UIDS[3] - 1),
new UidRangeParcel(user.start + PKG_UIDS[3] + 1, user.stop)
}));
@@ -383,7 +382,7 @@
// Set always-on with lockdown and allow app PKGS[2] from lockdown.
assertTrue(vpn.setAlwaysOnPackage(
PKGS[1], true, Collections.singletonList(PKGS[2]), mKeyStore));
- verify(mNetd).networkRejectNonSecureVpn(eq(true), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(true, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start, user.start + PKG_UIDS[1] - 1),
new UidRangeParcel(user.start + PKG_UIDS[2] + 1, user.stop)
}));
@@ -392,10 +391,10 @@
// Change allowed app list to PKGS[3].
assertTrue(vpn.setAlwaysOnPackage(
PKGS[1], true, Collections.singletonList(PKGS[3]), mKeyStore));
- verify(mNetd).networkRejectNonSecureVpn(eq(false), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(false, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start + PKG_UIDS[2] + 1, user.stop)
}));
- verify(mNetd).networkRejectNonSecureVpn(eq(true), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(true, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start + PKG_UIDS[1] + 1, user.start + PKG_UIDS[3] - 1),
new UidRangeParcel(user.start + PKG_UIDS[3] + 1, user.stop)
}));
@@ -405,11 +404,11 @@
// Change the VPN app.
assertTrue(vpn.setAlwaysOnPackage(
PKGS[0], true, Collections.singletonList(PKGS[3]), mKeyStore));
- verify(mNetd).networkRejectNonSecureVpn(eq(false), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(false, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start, user.start + PKG_UIDS[1] - 1),
new UidRangeParcel(user.start + PKG_UIDS[1] + 1, user.start + PKG_UIDS[3] - 1)
}));
- verify(mNetd).networkRejectNonSecureVpn(eq(true), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(true, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start, user.start + PKG_UIDS[0] - 1),
new UidRangeParcel(user.start + PKG_UIDS[0] + 1, user.start + PKG_UIDS[3] - 1)
}));
@@ -418,11 +417,11 @@
// Remove the list of allowed packages.
assertTrue(vpn.setAlwaysOnPackage(PKGS[0], true, null, mKeyStore));
- verify(mNetd).networkRejectNonSecureVpn(eq(false), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(false, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start + PKG_UIDS[0] + 1, user.start + PKG_UIDS[3] - 1),
new UidRangeParcel(user.start + PKG_UIDS[3] + 1, user.stop)
}));
- verify(mNetd).networkRejectNonSecureVpn(eq(true), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(true, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start + PKG_UIDS[0] + 1, user.stop),
}));
assertBlocked(vpn, user.start + PKG_UIDS[1], user.start + PKG_UIDS[2],
@@ -432,10 +431,10 @@
// Add the list of allowed packages.
assertTrue(vpn.setAlwaysOnPackage(
PKGS[0], true, Collections.singletonList(PKGS[1]), mKeyStore));
- verify(mNetd).networkRejectNonSecureVpn(eq(false), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(false, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start + PKG_UIDS[0] + 1, user.stop)
}));
- verify(mNetd).networkRejectNonSecureVpn(eq(true), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(true, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start + PKG_UIDS[0] + 1, user.start + PKG_UIDS[1] - 1),
new UidRangeParcel(user.start + PKG_UIDS[1] + 1, user.stop)
}));
@@ -450,11 +449,11 @@
// allowed package should change from PGKS[1] to PKGS[2].
assertTrue(vpn.setAlwaysOnPackage(
PKGS[0], true, Arrays.asList("com.foo.app", PKGS[2], "com.bar.app"), mKeyStore));
- verify(mNetd).networkRejectNonSecureVpn(eq(false), aryEq(new UidRangeParcel[]{
+ verify(mConnectivityManager).setRequireVpnForUids(false, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start + PKG_UIDS[0] + 1, user.start + PKG_UIDS[1] - 1),
new UidRangeParcel(user.start + PKG_UIDS[1] + 1, user.stop)
}));
- verify(mNetd).networkRejectNonSecureVpn(eq(true), aryEq(new UidRangeParcel[]{
+ verify(mConnectivityManager).setRequireVpnForUids(true, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start + PKG_UIDS[0] + 1, user.start + PKG_UIDS[2] - 1),
new UidRangeParcel(user.start + PKG_UIDS[2] + 1, user.stop)
}));
@@ -475,7 +474,7 @@
// Set lockdown.
assertTrue(vpn.setAlwaysOnPackage(PKGS[3], true, null, mKeyStore));
- verify(mNetd).networkRejectNonSecureVpn(eq(true), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(true, toRanges(new UidRangeParcel[] {
new UidRangeParcel(user.start, user.start + PKG_UIDS[3] - 1),
new UidRangeParcel(user.start + PKG_UIDS[3] + 1, user.stop)
}));
@@ -485,7 +484,7 @@
// Add the restricted user.
setMockedUsers(primaryUser, tempProfile);
vpn.onUserAdded(tempProfile.id);
- verify(mNetd).networkRejectNonSecureVpn(eq(true), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(true, toRanges(new UidRangeParcel[] {
new UidRangeParcel(profile.start, profile.start + PKG_UIDS[3] - 1),
new UidRangeParcel(profile.start + PKG_UIDS[3] + 1, profile.stop)
}));
@@ -493,7 +492,7 @@
// Remove the restricted user.
tempProfile.partial = true;
vpn.onUserRemoved(tempProfile.id);
- verify(mNetd).networkRejectNonSecureVpn(eq(false), aryEq(new UidRangeParcel[] {
+ verify(mConnectivityManager).setRequireVpnForUids(false, toRanges(new UidRangeParcel[] {
new UidRangeParcel(profile.start, profile.start + PKG_UIDS[3] - 1),
new UidRangeParcel(profile.start + PKG_UIDS[3] + 1, profile.stop)
}));
@@ -506,22 +505,29 @@
new UidRangeParcel(PRI_USER_RANGE.start, PRI_USER_RANGE.stop)};
// Given legacy lockdown is already enabled,
vpn.setLockdown(true);
-
- verify(mNetd).networkRejectNonSecureVpn(eq(true), aryEq(primaryUserRangeParcel));
+ verify(mConnectivityManager, times(1)).setRequireVpnForUids(true,
+ toRanges(primaryUserRangeParcel));
// Enabling legacy lockdown twice should do nothing.
vpn.setLockdown(true);
- verify(mNetd, times(1))
- .networkRejectNonSecureVpn(anyBoolean(), any(UidRangeParcel[].class));
+ verify(mConnectivityManager, times(1)).setRequireVpnForUids(anyBoolean(), any());
// And disabling should remove the rules exactly once.
vpn.setLockdown(false);
- verify(mNetd).networkRejectNonSecureVpn(eq(false), aryEq(primaryUserRangeParcel));
+ verify(mConnectivityManager, times(1)).setRequireVpnForUids(false,
+ toRanges(primaryUserRangeParcel));
// Removing the lockdown again should have no effect.
vpn.setLockdown(false);
- verify(mNetd, times(2)).networkRejectNonSecureVpn(
- anyBoolean(), any(UidRangeParcel[].class));
+ verify(mConnectivityManager, times(2)).setRequireVpnForUids(anyBoolean(), any());
+ }
+
+ private ArrayList<Range<Integer>> toRanges(UidRangeParcel[] ranges) {
+ ArrayList<Range<Integer>> rangesArray = new ArrayList<>(ranges.length);
+ for (int i = 0; i < ranges.length; i++) {
+ rangesArray.add(new Range<>(ranges[i].start, ranges[i].stop));
+ }
+ return rangesArray;
}
@Test
@@ -535,21 +541,21 @@
new UidRangeParcel(entireUser[0].start + PKG_UIDS[0] + 1, entireUser[0].stop)
};
- final InOrder order = inOrder(mNetd);
+ final InOrder order = inOrder(mConnectivityManager);
// Given lockdown is enabled with no package (legacy VPN),
vpn.setLockdown(true);
- order.verify(mNetd).networkRejectNonSecureVpn(eq(true), aryEq(entireUser));
+ order.verify(mConnectivityManager).setRequireVpnForUids(true, toRanges(entireUser));
// When a new VPN package is set the rules should change to cover that package.
vpn.prepare(null, PKGS[0], VpnManager.TYPE_VPN_SERVICE);
- order.verify(mNetd).networkRejectNonSecureVpn(eq(false), aryEq(entireUser));
- order.verify(mNetd).networkRejectNonSecureVpn(eq(true), aryEq(exceptPkg0));
+ order.verify(mConnectivityManager).setRequireVpnForUids(false, toRanges(entireUser));
+ order.verify(mConnectivityManager).setRequireVpnForUids(true, toRanges(exceptPkg0));
// When that VPN package is unset, everything should be undone again in reverse.
vpn.prepare(null, VpnConfig.LEGACY_VPN, VpnManager.TYPE_VPN_SERVICE);
- order.verify(mNetd).networkRejectNonSecureVpn(eq(false), aryEq(exceptPkg0));
- order.verify(mNetd).networkRejectNonSecureVpn(eq(true), aryEq(entireUser));
+ order.verify(mConnectivityManager).setRequireVpnForUids(false, toRanges(exceptPkg0));
+ order.verify(mConnectivityManager).setRequireVpnForUids(true, toRanges(entireUser));
}
@Test
diff --git a/tests/net/java/com/android/server/net/NetworkStatsServiceTest.java b/tests/net/java/com/android/server/net/NetworkStatsServiceTest.java
index cd9406c..c783629 100644
--- a/tests/net/java/com/android/server/net/NetworkStatsServiceTest.java
+++ b/tests/net/java/com/android/server/net/NetworkStatsServiceTest.java
@@ -23,6 +23,7 @@
import static android.net.ConnectivityManager.TYPE_WIFI;
import static android.net.ConnectivityManager.TYPE_WIMAX;
import static android.net.NetworkStats.DEFAULT_NETWORK_ALL;
+import static android.net.NetworkStats.DEFAULT_NETWORK_NO;
import static android.net.NetworkStats.DEFAULT_NETWORK_YES;
import static android.net.NetworkStats.IFACE_ALL;
import static android.net.NetworkStats.INTERFACES_ALL;
@@ -917,7 +918,8 @@
public void testMetered() throws Exception {
// pretend that network comes online
expectDefaultSettings();
- NetworkState[] states = new NetworkState[] {buildWifiState(true /* isMetered */)};
+ NetworkState[] states =
+ new NetworkState[] {buildWifiState(true /* isMetered */, TEST_IFACE)};
expectNetworkStatsSummary(buildEmptyStats());
expectNetworkStatsUidDetail(buildEmptyStats());
@@ -1146,7 +1148,8 @@
public void testStatsProviderUpdateStats() throws Exception {
// Pretend that network comes online.
expectDefaultSettings();
- final NetworkState[] states = new NetworkState[]{buildWifiState(true /* isMetered */)};
+ final NetworkState[] states =
+ new NetworkState[]{buildWifiState(true /* isMetered */, TEST_IFACE)};
expectNetworkStatsSummary(buildEmptyStats());
expectNetworkStatsUidDetail(buildEmptyStats());
@@ -1206,7 +1209,8 @@
public void testStatsProviderSetAlert() throws Exception {
// Pretend that network comes online.
expectDefaultSettings();
- NetworkState[] states = new NetworkState[]{buildWifiState(true /* isMetered */)};
+ NetworkState[] states =
+ new NetworkState[]{buildWifiState(true /* isMetered */, TEST_IFACE)};
mService.forceUpdateIfaces(NETWORKS_WIFI, states, getActiveIface(states), new VpnInfo[0]);
// Register custom provider and retrieve callback.
@@ -1319,6 +1323,47 @@
assertUidTotal(templateAll, UID_RED, 22L + 35L, 26L + 29L, 19L + 7L, 5L + 11L, 1);
}
+ @Test
+ public void testOperationCount_nonDefault_traffic() throws Exception {
+ // Pretend mobile network comes online, but wifi is the default network.
+ expectDefaultSettings();
+ NetworkState[] states = new NetworkState[]{
+ buildWifiState(true /*isMetered*/, TEST_IFACE2), buildMobile3gState(IMSI_1)};
+ expectNetworkStatsUidDetail(buildEmptyStats());
+ mService.forceUpdateIfaces(NETWORKS_WIFI, states, getActiveIface(states), new VpnInfo[0]);
+
+ // Create some traffic on mobile network.
+ incrementCurrentTime(HOUR_IN_MILLIS);
+ expectNetworkStatsUidDetail(new NetworkStats(getElapsedRealtime(), 4)
+ .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO,
+ DEFAULT_NETWORK_NO, 2L, 1L, 3L, 4L, 0L)
+ .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO,
+ DEFAULT_NETWORK_YES, 1L, 3L, 2L, 1L, 0L)
+ .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, 0xF00D, 5L, 4L, 1L, 4L, 0L));
+ // Increment operation count, which must have a specific tag.
+ mService.incrementOperationCount(UID_RED, 0xF00D, 2);
+ forcePollAndWaitForIdle();
+
+ // Verify mobile summary is not changed by the operation count.
+ final NetworkTemplate templateMobile =
+ buildTemplateMobileWithRatType(null, NETWORK_TYPE_ALL);
+ final NetworkStats statsMobile = mSession.getSummaryForAllUid(
+ templateMobile, Long.MIN_VALUE, Long.MAX_VALUE, true);
+ assertValues(statsMobile, IFACE_ALL, UID_RED, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL,
+ DEFAULT_NETWORK_ALL, 3L, 4L, 5L, 5L, 0);
+ assertValues(statsMobile, IFACE_ALL, UID_RED, SET_ALL, 0xF00D, METERED_ALL, ROAMING_ALL,
+ DEFAULT_NETWORK_ALL, 5L, 4L, 1L, 4L, 0);
+
+ // Verify the operation count is blamed onto the default network.
+ // TODO: Blame onto the default network is not very reasonable. Consider blame onto the
+ // network that generates the traffic.
+ final NetworkTemplate templateWifi = buildTemplateWifiWildcard();
+ final NetworkStats statsWifi = mSession.getSummaryForAllUid(
+ templateWifi, Long.MIN_VALUE, Long.MAX_VALUE, true);
+ assertValues(statsWifi, IFACE_ALL, UID_RED, SET_ALL, 0xF00D, METERED_ALL, ROAMING_ALL,
+ DEFAULT_NETWORK_ALL, 0L, 0L, 0L, 0L, 2);
+ }
+
private static File getBaseDir(File statsDir) {
File baseDir = new File(statsDir, "netstats");
baseDir.mkdirs();
@@ -1446,14 +1491,14 @@
}
private static NetworkState buildWifiState() {
- return buildWifiState(false);
+ return buildWifiState(false, TEST_IFACE);
}
- private static NetworkState buildWifiState(boolean isMetered) {
+ private static NetworkState buildWifiState(boolean isMetered, @NonNull String iface) {
final NetworkInfo info = new NetworkInfo(TYPE_WIFI, 0, null, null);
info.setDetailedState(DetailedState.CONNECTED, null, null);
final LinkProperties prop = new LinkProperties();
- prop.setInterfaceName(TEST_IFACE);
+ prop.setInterfaceName(iface);
final NetworkCapabilities capabilities = new NetworkCapabilities();
capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !isMetered);
capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, true);
diff --git a/wifi/MOVED.txt b/wifi/MOVED.txt
new file mode 100644
index 0000000..6ffb23c
--- /dev/null
+++ b/wifi/MOVED.txt
@@ -0,0 +1,8 @@
+Source code and tests for Wifi module APIs have moved to
+packages/modules/Wifi/framework.
+
+- frameworks/base/wifi/java -> packages/modules/Wifi/framework/java
+- frameworks/base/wifi/tests -> packages/modules/Wifi/framework/tests
+
+What remains in frameworks/base/wifi are Wifi APIs that
+are not part of the Wifi module.
diff --git a/wifi/TEST_MAPPING b/wifi/TEST_MAPPING
new file mode 100644
index 0000000..94e4f4d
--- /dev/null
+++ b/wifi/TEST_MAPPING
@@ -0,0 +1,7 @@
+{
+ "presubmit": [
+ {
+ "name": "FrameworksWifiNonUpdatableApiTests"
+ }
+ ]
+}
diff --git a/wifi/non-updatable/java/Android.bp b/wifi/java/Android.bp
similarity index 100%
rename from wifi/non-updatable/java/Android.bp
rename to wifi/java/Android.bp
diff --git a/wifi/non-updatable/java/src/android/net/wifi/SoftApConfToXmlMigrationUtil.java b/wifi/java/src/android/net/wifi/SoftApConfToXmlMigrationUtil.java
similarity index 100%
rename from wifi/non-updatable/java/src/android/net/wifi/SoftApConfToXmlMigrationUtil.java
rename to wifi/java/src/android/net/wifi/SoftApConfToXmlMigrationUtil.java
diff --git a/wifi/non-updatable/java/src/android/net/wifi/WifiMigration.java b/wifi/java/src/android/net/wifi/WifiMigration.java
similarity index 100%
rename from wifi/non-updatable/java/src/android/net/wifi/WifiMigration.java
rename to wifi/java/src/android/net/wifi/WifiMigration.java
diff --git a/wifi/non-updatable/java/src/android/net/wifi/WifiNetworkScoreCache.java b/wifi/java/src/android/net/wifi/WifiNetworkScoreCache.java
similarity index 100%
rename from wifi/non-updatable/java/src/android/net/wifi/WifiNetworkScoreCache.java
rename to wifi/java/src/android/net/wifi/WifiNetworkScoreCache.java
diff --git a/wifi/non-updatable/java/src/android/net/wifi/nl80211/ChannelSettings.java b/wifi/java/src/android/net/wifi/nl80211/ChannelSettings.java
similarity index 100%
rename from wifi/non-updatable/java/src/android/net/wifi/nl80211/ChannelSettings.java
rename to wifi/java/src/android/net/wifi/nl80211/ChannelSettings.java
diff --git a/wifi/non-updatable/java/src/android/net/wifi/nl80211/DeviceWiphyCapabilities.java b/wifi/java/src/android/net/wifi/nl80211/DeviceWiphyCapabilities.java
similarity index 100%
rename from wifi/non-updatable/java/src/android/net/wifi/nl80211/DeviceWiphyCapabilities.java
rename to wifi/java/src/android/net/wifi/nl80211/DeviceWiphyCapabilities.java
diff --git a/wifi/non-updatable/java/src/android/net/wifi/nl80211/HiddenNetwork.java b/wifi/java/src/android/net/wifi/nl80211/HiddenNetwork.java
similarity index 100%
rename from wifi/non-updatable/java/src/android/net/wifi/nl80211/HiddenNetwork.java
rename to wifi/java/src/android/net/wifi/nl80211/HiddenNetwork.java
diff --git a/wifi/non-updatable/java/src/android/net/wifi/nl80211/NativeScanResult.java b/wifi/java/src/android/net/wifi/nl80211/NativeScanResult.java
similarity index 100%
rename from wifi/non-updatable/java/src/android/net/wifi/nl80211/NativeScanResult.java
rename to wifi/java/src/android/net/wifi/nl80211/NativeScanResult.java
diff --git a/wifi/non-updatable/java/src/android/net/wifi/nl80211/NativeWifiClient.java b/wifi/java/src/android/net/wifi/nl80211/NativeWifiClient.java
similarity index 100%
rename from wifi/non-updatable/java/src/android/net/wifi/nl80211/NativeWifiClient.java
rename to wifi/java/src/android/net/wifi/nl80211/NativeWifiClient.java
diff --git a/wifi/non-updatable/java/src/android/net/wifi/nl80211/PnoNetwork.java b/wifi/java/src/android/net/wifi/nl80211/PnoNetwork.java
similarity index 100%
rename from wifi/non-updatable/java/src/android/net/wifi/nl80211/PnoNetwork.java
rename to wifi/java/src/android/net/wifi/nl80211/PnoNetwork.java
diff --git a/wifi/non-updatable/java/src/android/net/wifi/nl80211/PnoSettings.java b/wifi/java/src/android/net/wifi/nl80211/PnoSettings.java
similarity index 100%
rename from wifi/non-updatable/java/src/android/net/wifi/nl80211/PnoSettings.java
rename to wifi/java/src/android/net/wifi/nl80211/PnoSettings.java
diff --git a/wifi/non-updatable/java/src/android/net/wifi/nl80211/RadioChainInfo.java b/wifi/java/src/android/net/wifi/nl80211/RadioChainInfo.java
similarity index 100%
rename from wifi/non-updatable/java/src/android/net/wifi/nl80211/RadioChainInfo.java
rename to wifi/java/src/android/net/wifi/nl80211/RadioChainInfo.java
diff --git a/wifi/non-updatable/java/src/android/net/wifi/nl80211/SingleScanSettings.java b/wifi/java/src/android/net/wifi/nl80211/SingleScanSettings.java
similarity index 100%
rename from wifi/non-updatable/java/src/android/net/wifi/nl80211/SingleScanSettings.java
rename to wifi/java/src/android/net/wifi/nl80211/SingleScanSettings.java
diff --git a/wifi/non-updatable/java/src/android/net/wifi/nl80211/WifiNl80211Manager.java b/wifi/java/src/android/net/wifi/nl80211/WifiNl80211Manager.java
similarity index 100%
rename from wifi/non-updatable/java/src/android/net/wifi/nl80211/WifiNl80211Manager.java
rename to wifi/java/src/android/net/wifi/nl80211/WifiNl80211Manager.java
diff --git a/wifi/non-updatable/migration_samples/README.txt b/wifi/migration_samples/README.txt
similarity index 100%
rename from wifi/non-updatable/migration_samples/README.txt
rename to wifi/migration_samples/README.txt
diff --git a/wifi/non-updatable/migration_samples/Shared_WifiConfigStore.xml b/wifi/migration_samples/Shared_WifiConfigStore.xml
similarity index 100%
rename from wifi/non-updatable/migration_samples/Shared_WifiConfigStore.xml
rename to wifi/migration_samples/Shared_WifiConfigStore.xml
diff --git a/wifi/non-updatable/migration_samples/Shared_WifiConfigStoreSoftAp.xml b/wifi/migration_samples/Shared_WifiConfigStoreSoftAp.xml
similarity index 100%
rename from wifi/non-updatable/migration_samples/Shared_WifiConfigStoreSoftAp.xml
rename to wifi/migration_samples/Shared_WifiConfigStoreSoftAp.xml
diff --git a/wifi/non-updatable/migration_samples/User_WifiConfigStore.xml b/wifi/migration_samples/User_WifiConfigStore.xml
similarity index 100%
rename from wifi/non-updatable/migration_samples/User_WifiConfigStore.xml
rename to wifi/migration_samples/User_WifiConfigStore.xml
diff --git a/wifi/non-updatable/migration_samples/User_WifiConfigStoreNetworkSuggestions.xml b/wifi/migration_samples/User_WifiConfigStoreNetworkSuggestions.xml
similarity index 100%
rename from wifi/non-updatable/migration_samples/User_WifiConfigStoreNetworkSuggestions.xml
rename to wifi/migration_samples/User_WifiConfigStoreNetworkSuggestions.xml
diff --git a/wifi/non-updatable/tests/Android.bp b/wifi/tests/Android.bp
similarity index 100%
rename from wifi/non-updatable/tests/Android.bp
rename to wifi/tests/Android.bp
diff --git a/wifi/non-updatable/tests/AndroidManifest.xml b/wifi/tests/AndroidManifest.xml
similarity index 100%
rename from wifi/non-updatable/tests/AndroidManifest.xml
rename to wifi/tests/AndroidManifest.xml
diff --git a/wifi/non-updatable/tests/AndroidTest.xml b/wifi/tests/AndroidTest.xml
similarity index 100%
rename from wifi/non-updatable/tests/AndroidTest.xml
rename to wifi/tests/AndroidTest.xml
diff --git a/wifi/non-updatable/tests/README.md b/wifi/tests/README.md
similarity index 100%
rename from wifi/non-updatable/tests/README.md
rename to wifi/tests/README.md
diff --git a/wifi/non-updatable/tests/src/android/net/wifi/SoftApConfToXmlMigrationUtilTest.java b/wifi/tests/src/android/net/wifi/SoftApConfToXmlMigrationUtilTest.java
similarity index 100%
rename from wifi/non-updatable/tests/src/android/net/wifi/SoftApConfToXmlMigrationUtilTest.java
rename to wifi/tests/src/android/net/wifi/SoftApConfToXmlMigrationUtilTest.java
diff --git a/wifi/non-updatable/tests/src/android/net/wifi/WifiNetworkScoreCacheTest.java b/wifi/tests/src/android/net/wifi/WifiNetworkScoreCacheTest.java
similarity index 100%
rename from wifi/non-updatable/tests/src/android/net/wifi/WifiNetworkScoreCacheTest.java
rename to wifi/tests/src/android/net/wifi/WifiNetworkScoreCacheTest.java
diff --git a/wifi/non-updatable/tests/src/android/net/wifi/nl80211/DeviceWiphyCapabilitiesTest.java b/wifi/tests/src/android/net/wifi/nl80211/DeviceWiphyCapabilitiesTest.java
similarity index 100%
rename from wifi/non-updatable/tests/src/android/net/wifi/nl80211/DeviceWiphyCapabilitiesTest.java
rename to wifi/tests/src/android/net/wifi/nl80211/DeviceWiphyCapabilitiesTest.java
diff --git a/wifi/non-updatable/tests/src/android/net/wifi/nl80211/NativeScanResultTest.java b/wifi/tests/src/android/net/wifi/nl80211/NativeScanResultTest.java
similarity index 100%
rename from wifi/non-updatable/tests/src/android/net/wifi/nl80211/NativeScanResultTest.java
rename to wifi/tests/src/android/net/wifi/nl80211/NativeScanResultTest.java
diff --git a/wifi/non-updatable/tests/src/android/net/wifi/nl80211/PnoSettingsTest.java b/wifi/tests/src/android/net/wifi/nl80211/PnoSettingsTest.java
similarity index 100%
rename from wifi/non-updatable/tests/src/android/net/wifi/nl80211/PnoSettingsTest.java
rename to wifi/tests/src/android/net/wifi/nl80211/PnoSettingsTest.java
diff --git a/wifi/non-updatable/tests/src/android/net/wifi/nl80211/SingleScanSettingsTest.java b/wifi/tests/src/android/net/wifi/nl80211/SingleScanSettingsTest.java
similarity index 100%
rename from wifi/non-updatable/tests/src/android/net/wifi/nl80211/SingleScanSettingsTest.java
rename to wifi/tests/src/android/net/wifi/nl80211/SingleScanSettingsTest.java
diff --git a/wifi/non-updatable/tests/src/android/net/wifi/nl80211/WifiNl80211ManagerTest.java b/wifi/tests/src/android/net/wifi/nl80211/WifiNl80211ManagerTest.java
similarity index 100%
rename from wifi/non-updatable/tests/src/android/net/wifi/nl80211/WifiNl80211ManagerTest.java
rename to wifi/tests/src/android/net/wifi/nl80211/WifiNl80211ManagerTest.java