xref: /aosp_15_r20/prebuilts/sdk/32/module-lib/api/android.txt (revision 344a7f5ef16c479e7a7f54ee6567a9d112f9e72b)
1*344a7f5eSAndroid Build Coastguard Worker// Signature format: 2.0
2*344a7f5eSAndroid Build Coastguard Workerpackage android {
3*344a7f5eSAndroid Build Coastguard Worker
4*344a7f5eSAndroid Build Coastguard Worker  public static final class Manifest.permission {
5*344a7f5eSAndroid Build Coastguard Worker    field public static final String GET_INTENT_SENDER_INTENT = "android.permission.GET_INTENT_SENDER_INTENT";
6*344a7f5eSAndroid Build Coastguard Worker  }
7*344a7f5eSAndroid Build Coastguard Worker
8*344a7f5eSAndroid Build Coastguard Worker}
9*344a7f5eSAndroid Build Coastguard Worker
10*344a7f5eSAndroid Build Coastguard Workerpackage android.app {
11*344a7f5eSAndroid Build Coastguard Worker
12*344a7f5eSAndroid Build Coastguard Worker  public class ActivityManager {
13*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER) public void addHomeVisibilityListener(@NonNull java.util.concurrent.Executor, @NonNull android.app.HomeVisibilityListener);
14*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER) public void removeHomeVisibilityListener(@NonNull android.app.HomeVisibilityListener);
15*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.CHANGE_CONFIGURATION) public boolean updateMccMncConfiguration(@NonNull String, @NonNull String);
16*344a7f5eSAndroid Build Coastguard Worker  }
17*344a7f5eSAndroid Build Coastguard Worker
18*344a7f5eSAndroid Build Coastguard Worker  public class AppOpsManager {
19*344a7f5eSAndroid Build Coastguard Worker    field public static final String OPSTR_NO_ISOLATED_STORAGE = "android:no_isolated_storage";
20*344a7f5eSAndroid Build Coastguard Worker  }
21*344a7f5eSAndroid Build Coastguard Worker
22*344a7f5eSAndroid Build Coastguard Worker  public class BroadcastOptions {
23*344a7f5eSAndroid Build Coastguard Worker    method public int getMaxManifestReceiverApiLevel();
24*344a7f5eSAndroid Build Coastguard Worker    method public void setMaxManifestReceiverApiLevel(int);
25*344a7f5eSAndroid Build Coastguard Worker  }
26*344a7f5eSAndroid Build Coastguard Worker
27*344a7f5eSAndroid Build Coastguard Worker  public abstract class HomeVisibilityListener {
28*344a7f5eSAndroid Build Coastguard Worker    ctor public HomeVisibilityListener();
29*344a7f5eSAndroid Build Coastguard Worker    method public abstract void onHomeVisibilityChanged(boolean);
30*344a7f5eSAndroid Build Coastguard Worker  }
31*344a7f5eSAndroid Build Coastguard Worker
32*344a7f5eSAndroid Build Coastguard Worker  public class NotificationManager {
33*344a7f5eSAndroid Build Coastguard Worker    method public boolean hasEnabledNotificationListener(@NonNull String, @NonNull android.os.UserHandle);
34*344a7f5eSAndroid Build Coastguard Worker    field public static final String ACTION_NOTIFICATION_LISTENER_ENABLED_CHANGED = "android.app.action.NOTIFICATION_LISTENER_ENABLED_CHANGED";
35*344a7f5eSAndroid Build Coastguard Worker  }
36*344a7f5eSAndroid Build Coastguard Worker
37*344a7f5eSAndroid Build Coastguard Worker  public final class PendingIntent implements android.os.Parcelable {
38*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.GET_INTENT_SENDER_INTENT) public boolean intentFilterEquals(@Nullable android.app.PendingIntent);
39*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @RequiresPermission(android.Manifest.permission.GET_INTENT_SENDER_INTENT) public java.util.List<android.content.pm.ResolveInfo> queryIntentComponents(int);
40*344a7f5eSAndroid Build Coastguard Worker  }
41*344a7f5eSAndroid Build Coastguard Worker
42*344a7f5eSAndroid Build Coastguard Worker  public class StatusBarManager {
43*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void setExpansionDisabledForSimNetworkLock(boolean);
44*344a7f5eSAndroid Build Coastguard Worker  }
45*344a7f5eSAndroid Build Coastguard Worker
46*344a7f5eSAndroid Build Coastguard Worker}
47*344a7f5eSAndroid Build Coastguard Worker
48*344a7f5eSAndroid Build Coastguard Workerpackage android.app.role {
49*344a7f5eSAndroid Build Coastguard Worker
50*344a7f5eSAndroid Build Coastguard Worker  public class RoleFrameworkInitializer {
51*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
52*344a7f5eSAndroid Build Coastguard Worker  }
53*344a7f5eSAndroid Build Coastguard Worker
54*344a7f5eSAndroid Build Coastguard Worker  public final class RoleManager {
55*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getBrowserRoleHolder(int);
56*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getSmsRoleHolder(int);
57*344a7f5eSAndroid Build Coastguard Worker    method @Nullable @RequiresPermission(android.Manifest.permission.SET_PREFERRED_APPLICATIONS) public boolean setBrowserRoleHolder(@Nullable String, int);
58*344a7f5eSAndroid Build Coastguard Worker  }
59*344a7f5eSAndroid Build Coastguard Worker
60*344a7f5eSAndroid Build Coastguard Worker}
61*344a7f5eSAndroid Build Coastguard Worker
62*344a7f5eSAndroid Build Coastguard Workerpackage android.app.usage {
63*344a7f5eSAndroid Build Coastguard Worker
64*344a7f5eSAndroid Build Coastguard Worker  public class NetworkStatsManager {
65*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void notifyNetworkStatus(@NonNull java.util.List<android.net.Network>, @NonNull java.util.List<android.net.NetworkStateSnapshot>, @Nullable String, @NonNull java.util.List<android.net.UnderlyingNetworkInfo>);
66*344a7f5eSAndroid Build Coastguard Worker  }
67*344a7f5eSAndroid Build Coastguard Worker
68*344a7f5eSAndroid Build Coastguard Worker}
69*344a7f5eSAndroid Build Coastguard Worker
70*344a7f5eSAndroid Build Coastguard Workerpackage android.compat {
71*344a7f5eSAndroid Build Coastguard Worker
72*344a7f5eSAndroid Build Coastguard Worker  public final class Compatibility {
73*344a7f5eSAndroid Build Coastguard Worker    method public static void clearBehaviorChangeDelegate();
74*344a7f5eSAndroid Build Coastguard Worker    method public static void clearOverrides();
75*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isChangeEnabled(long);
76*344a7f5eSAndroid Build Coastguard Worker    method public static void reportUnconditionalChange(long);
77*344a7f5eSAndroid Build Coastguard Worker    method public static void setBehaviorChangeDelegate(android.compat.Compatibility.BehaviorChangeDelegate);
78*344a7f5eSAndroid Build Coastguard Worker    method public static void setOverrides(android.compat.Compatibility.ChangeConfig);
79*344a7f5eSAndroid Build Coastguard Worker  }
80*344a7f5eSAndroid Build Coastguard Worker
81*344a7f5eSAndroid Build Coastguard Worker  public static interface Compatibility.BehaviorChangeDelegate {
82*344a7f5eSAndroid Build Coastguard Worker    method public default boolean isChangeEnabled(long);
83*344a7f5eSAndroid Build Coastguard Worker    method public default void onChangeReported(long);
84*344a7f5eSAndroid Build Coastguard Worker  }
85*344a7f5eSAndroid Build Coastguard Worker
86*344a7f5eSAndroid Build Coastguard Worker  public static final class Compatibility.ChangeConfig {
87*344a7f5eSAndroid Build Coastguard Worker    ctor public Compatibility.ChangeConfig(@NonNull java.util.Set<java.lang.Long>, @NonNull java.util.Set<java.lang.Long>);
88*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public long[] getDisabledChangesArray();
89*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Set<java.lang.Long> getDisabledSet();
90*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public long[] getEnabledChangesArray();
91*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Set<java.lang.Long> getEnabledSet();
92*344a7f5eSAndroid Build Coastguard Worker    method public boolean isEmpty();
93*344a7f5eSAndroid Build Coastguard Worker    method public boolean isForceDisabled(long);
94*344a7f5eSAndroid Build Coastguard Worker    method public boolean isForceEnabled(long);
95*344a7f5eSAndroid Build Coastguard Worker  }
96*344a7f5eSAndroid Build Coastguard Worker
97*344a7f5eSAndroid Build Coastguard Worker}
98*344a7f5eSAndroid Build Coastguard Worker
99*344a7f5eSAndroid Build Coastguard Workerpackage android.content {
100*344a7f5eSAndroid Build Coastguard Worker
101*344a7f5eSAndroid Build Coastguard Worker  public abstract class ContentProvider implements android.content.ComponentCallbacks2 {
102*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static android.net.Uri createContentUriForUser(@NonNull android.net.Uri, @NonNull android.os.UserHandle);
103*344a7f5eSAndroid Build Coastguard Worker  }
104*344a7f5eSAndroid Build Coastguard Worker
105*344a7f5eSAndroid Build Coastguard Worker  public abstract class Context {
106*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.os.UserHandle getUser();
107*344a7f5eSAndroid Build Coastguard Worker    field public static final String PAC_PROXY_SERVICE = "pac_proxy";
108*344a7f5eSAndroid Build Coastguard Worker    field public static final String TEST_NETWORK_SERVICE = "test_network";
109*344a7f5eSAndroid Build Coastguard Worker  }
110*344a7f5eSAndroid Build Coastguard Worker
111*344a7f5eSAndroid Build Coastguard Worker}
112*344a7f5eSAndroid Build Coastguard Worker
113*344a7f5eSAndroid Build Coastguard Workerpackage android.content.pm {
114*344a7f5eSAndroid Build Coastguard Worker
115*344a7f5eSAndroid Build Coastguard Worker  public abstract class PackageManager {
116*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String getPermissionControllerPackageName();
117*344a7f5eSAndroid Build Coastguard Worker  }
118*344a7f5eSAndroid Build Coastguard Worker
119*344a7f5eSAndroid Build Coastguard Worker}
120*344a7f5eSAndroid Build Coastguard Worker
121*344a7f5eSAndroid Build Coastguard Workerpackage android.hardware.usb {
122*344a7f5eSAndroid Build Coastguard Worker
123*344a7f5eSAndroid Build Coastguard Worker  public class UsbManager {
124*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getGadgetHalVersion();
125*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getUsbBandwidthMbps();
126*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getUsbHalVersion();
127*344a7f5eSAndroid Build Coastguard Worker    field public static final int GADGET_HAL_NOT_SUPPORTED = -1; // 0xffffffff
128*344a7f5eSAndroid Build Coastguard Worker    field public static final int GADGET_HAL_V1_0 = 10; // 0xa
129*344a7f5eSAndroid Build Coastguard Worker    field public static final int GADGET_HAL_V1_1 = 11; // 0xb
130*344a7f5eSAndroid Build Coastguard Worker    field public static final int GADGET_HAL_V1_2 = 12; // 0xc
131*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_10G = 10240; // 0x2800
132*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_20G = 20480; // 0x5000
133*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_40G = 40960; // 0xa000
134*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_5G = 5120; // 0x1400
135*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_FULL_SPEED = 12; // 0xc
136*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_HIGH_SPEED = 480; // 0x1e0
137*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_LOW_SPEED = 2; // 0x2
138*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_UNKNOWN = -1; // 0xffffffff
139*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_HAL_NOT_SUPPORTED = -1; // 0xffffffff
140*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_HAL_V1_0 = 10; // 0xa
141*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_HAL_V1_1 = 11; // 0xb
142*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_HAL_V1_2 = 12; // 0xc
143*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_HAL_V1_3 = 13; // 0xd
144*344a7f5eSAndroid Build Coastguard Worker  }
145*344a7f5eSAndroid Build Coastguard Worker
146*344a7f5eSAndroid Build Coastguard Worker}
147*344a7f5eSAndroid Build Coastguard Worker
148*344a7f5eSAndroid Build Coastguard Workerpackage android.media {
149*344a7f5eSAndroid Build Coastguard Worker
150*344a7f5eSAndroid Build Coastguard Worker  public class AudioManager {
151*344a7f5eSAndroid Build Coastguard Worker    method public void adjustStreamVolumeForUid(int, int, int, @NonNull String, int, int, int);
152*344a7f5eSAndroid Build Coastguard Worker    method public void adjustSuggestedStreamVolumeForUid(int, int, int, @NonNull String, int, int, int);
153*344a7f5eSAndroid Build Coastguard Worker    method public void setStreamVolumeForUid(int, int, int, @NonNull String, int, int, int);
154*344a7f5eSAndroid Build Coastguard Worker    field public static final int FLAG_FROM_KEY = 4096; // 0x1000
155*344a7f5eSAndroid Build Coastguard Worker  }
156*344a7f5eSAndroid Build Coastguard Worker
157*344a7f5eSAndroid Build Coastguard Worker  public class MediaCommunicationManager {
158*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.MEDIA_CONTENT_CONTROL) public void registerSessionCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.MediaCommunicationManager.SessionCallback);
159*344a7f5eSAndroid Build Coastguard Worker    method public void unregisterSessionCallback(@NonNull android.media.MediaCommunicationManager.SessionCallback);
160*344a7f5eSAndroid Build Coastguard Worker  }
161*344a7f5eSAndroid Build Coastguard Worker
162*344a7f5eSAndroid Build Coastguard Worker  public static interface MediaCommunicationManager.SessionCallback {
163*344a7f5eSAndroid Build Coastguard Worker    method public default void onSession2TokenCreated(@NonNull android.media.Session2Token);
164*344a7f5eSAndroid Build Coastguard Worker    method public default void onSession2TokensChanged(@NonNull java.util.List<android.media.Session2Token>);
165*344a7f5eSAndroid Build Coastguard Worker  }
166*344a7f5eSAndroid Build Coastguard Worker
167*344a7f5eSAndroid Build Coastguard Worker  public class MediaFrameworkInitializer {
168*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
169*344a7f5eSAndroid Build Coastguard Worker    method public static void setMediaServiceManager(@NonNull android.media.MediaServiceManager);
170*344a7f5eSAndroid Build Coastguard Worker  }
171*344a7f5eSAndroid Build Coastguard Worker
172*344a7f5eSAndroid Build Coastguard Worker  public class MediaMetadataRetriever implements java.lang.AutoCloseable {
173*344a7f5eSAndroid Build Coastguard Worker    field public static final int METADATA_KEY_VIDEO_CODEC_MIME_TYPE = 40; // 0x28
174*344a7f5eSAndroid Build Coastguard Worker  }
175*344a7f5eSAndroid Build Coastguard Worker
176*344a7f5eSAndroid Build Coastguard Worker  @Deprecated public final class MediaParceledListSlice<T extends android.os.Parcelable> implements android.os.Parcelable {
177*344a7f5eSAndroid Build Coastguard Worker    ctor @Deprecated public MediaParceledListSlice(@NonNull java.util.List<T>);
178*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public int describeContents();
179*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public static <T extends android.os.Parcelable> android.media.MediaParceledListSlice<T> emptyList();
180*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public java.util.List<T> getList();
181*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public void setInlineCountLimit(int);
182*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public void writeToParcel(android.os.Parcel, int);
183*344a7f5eSAndroid Build Coastguard Worker    field @Deprecated @NonNull public static final android.os.Parcelable.ClassLoaderCreator<android.media.MediaParceledListSlice> CREATOR;
184*344a7f5eSAndroid Build Coastguard Worker  }
185*344a7f5eSAndroid Build Coastguard Worker
186*344a7f5eSAndroid Build Coastguard Worker  public class MediaServiceManager {
187*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaCommunicationServiceRegisterer();
188*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaSessionServiceRegisterer();
189*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaTranscodingServiceRegisterer();
190*344a7f5eSAndroid Build Coastguard Worker  }
191*344a7f5eSAndroid Build Coastguard Worker
192*344a7f5eSAndroid Build Coastguard Worker  public static final class MediaServiceManager.ServiceRegisterer {
193*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.os.IBinder get();
194*344a7f5eSAndroid Build Coastguard Worker  }
195*344a7f5eSAndroid Build Coastguard Worker
196*344a7f5eSAndroid Build Coastguard Worker}
197*344a7f5eSAndroid Build Coastguard Worker
198*344a7f5eSAndroid Build Coastguard Workerpackage android.media.session {
199*344a7f5eSAndroid Build Coastguard Worker
200*344a7f5eSAndroid Build Coastguard Worker  public static final class MediaController.PlaybackInfo implements android.os.Parcelable {
201*344a7f5eSAndroid Build Coastguard Worker    ctor public MediaController.PlaybackInfo(int, int, @IntRange(from=0) int, @IntRange(from=0) int, @NonNull android.media.AudioAttributes, @Nullable String);
202*344a7f5eSAndroid Build Coastguard Worker  }
203*344a7f5eSAndroid Build Coastguard Worker
204*344a7f5eSAndroid Build Coastguard Worker  public final class MediaSession {
205*344a7f5eSAndroid Build Coastguard Worker    field public static final int FLAG_EXCLUSIVE_GLOBAL_PRIORITY = 65536; // 0x10000
206*344a7f5eSAndroid Build Coastguard Worker  }
207*344a7f5eSAndroid Build Coastguard Worker
208*344a7f5eSAndroid Build Coastguard Worker  public static final class MediaSession.Token implements android.os.Parcelable {
209*344a7f5eSAndroid Build Coastguard Worker    method public int getUid();
210*344a7f5eSAndroid Build Coastguard Worker  }
211*344a7f5eSAndroid Build Coastguard Worker
212*344a7f5eSAndroid Build Coastguard Worker  public final class MediaSessionManager {
213*344a7f5eSAndroid Build Coastguard Worker    method public void addOnActiveSessionsChangedListener(@Nullable android.content.ComponentName, @NonNull android.os.UserHandle, @NonNull java.util.concurrent.Executor, @NonNull android.media.session.MediaSessionManager.OnActiveSessionsChangedListener);
214*344a7f5eSAndroid Build Coastguard Worker    method public void dispatchMediaKeyEvent(@NonNull android.view.KeyEvent, boolean);
215*344a7f5eSAndroid Build Coastguard Worker    method public void dispatchMediaKeyEventAsSystemService(@NonNull android.view.KeyEvent);
216*344a7f5eSAndroid Build Coastguard Worker    method public boolean dispatchMediaKeyEventToSessionAsSystemService(@NonNull android.view.KeyEvent, @NonNull android.media.session.MediaSession.Token);
217*344a7f5eSAndroid Build Coastguard Worker    method public void dispatchVolumeKeyEvent(@NonNull android.view.KeyEvent, int, boolean);
218*344a7f5eSAndroid Build Coastguard Worker    method public void dispatchVolumeKeyEventAsSystemService(@NonNull android.view.KeyEvent, int);
219*344a7f5eSAndroid Build Coastguard Worker    method public void dispatchVolumeKeyEventToSessionAsSystemService(@NonNull android.view.KeyEvent, @NonNull android.media.session.MediaSession.Token);
220*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.media.session.MediaController> getActiveSessionsForUser(@Nullable android.content.ComponentName, @NonNull android.os.UserHandle);
221*344a7f5eSAndroid Build Coastguard Worker    method public void registerRemoteSessionCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.session.MediaSessionManager.RemoteSessionCallback);
222*344a7f5eSAndroid Build Coastguard Worker    method public void unregisterRemoteSessionCallback(@NonNull android.media.session.MediaSessionManager.RemoteSessionCallback);
223*344a7f5eSAndroid Build Coastguard Worker    field public static final int RESULT_MEDIA_KEY_HANDLED = 1; // 0x1
224*344a7f5eSAndroid Build Coastguard Worker    field public static final int RESULT_MEDIA_KEY_NOT_HANDLED = 0; // 0x0
225*344a7f5eSAndroid Build Coastguard Worker  }
226*344a7f5eSAndroid Build Coastguard Worker
227*344a7f5eSAndroid Build Coastguard Worker  public static interface MediaSessionManager.RemoteSessionCallback {
228*344a7f5eSAndroid Build Coastguard Worker    method public void onDefaultRemoteSessionChanged(@Nullable android.media.session.MediaSession.Token);
229*344a7f5eSAndroid Build Coastguard Worker    method public void onVolumeChanged(@NonNull android.media.session.MediaSession.Token, int);
230*344a7f5eSAndroid Build Coastguard Worker  }
231*344a7f5eSAndroid Build Coastguard Worker
232*344a7f5eSAndroid Build Coastguard Worker}
233*344a7f5eSAndroid Build Coastguard Worker
234*344a7f5eSAndroid Build Coastguard Workerpackage android.net {
235*344a7f5eSAndroid Build Coastguard Worker
236*344a7f5eSAndroid Build Coastguard Worker  public final class ConnectivityFrameworkInitializer {
237*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
238*344a7f5eSAndroid Build Coastguard Worker  }
239*344a7f5eSAndroid Build Coastguard Worker
240*344a7f5eSAndroid Build Coastguard Worker  public class ConnectivityManager {
241*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void factoryReset();
242*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public java.util.List<android.net.NetworkStateSnapshot> getAllNetworkStateSnapshots();
243*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.net.ProxyInfo getGlobalProxy();
244*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static android.util.Range<java.lang.Integer> getIpSecNetIdRange();
245*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void registerDefaultNetworkCallbackForUid(int, @NonNull android.net.ConnectivityManager.NetworkCallback, @NonNull android.os.Handler);
246*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void registerSystemDefaultNetworkCallback(@NonNull android.net.ConnectivityManager.NetworkCallback, @NonNull android.os.Handler);
247*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void requestBackgroundNetwork(@NonNull android.net.NetworkRequest, @NonNull android.net.ConnectivityManager.NetworkCallback, @NonNull android.os.Handler);
248*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public boolean requestRouteToHostAddress(int, java.net.InetAddress);
249*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void setAcceptPartialConnectivity(@NonNull android.net.Network, boolean, boolean);
250*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void setAcceptUnvalidated(@NonNull android.net.Network, boolean, boolean);
251*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void setAvoidUnvalidated(@NonNull android.net.Network);
252*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public void setGlobalProxy(@Nullable android.net.ProxyInfo);
253*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void setLegacyLockdownVpnEnabled(boolean);
254*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public void setProfileNetworkPreference(@NonNull android.os.UserHandle, int, @Nullable java.util.concurrent.Executor, @Nullable Runnable);
255*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void setRequireVpnForUids(boolean, @NonNull java.util.Collection<android.util.Range<java.lang.Integer>>);
256*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_TEST_NETWORKS, android.Manifest.permission.NETWORK_STACK}) public void simulateDataStall(int, long, @NonNull android.net.Network, @NonNull android.os.PersistableBundle);
257*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void startCaptivePortalApp(@NonNull android.net.Network);
258*344a7f5eSAndroid Build Coastguard Worker    method public void systemReady();
259*344a7f5eSAndroid Build Coastguard Worker    field public static final String ACTION_CLEAR_DNS_CACHE = "android.net.action.CLEAR_DNS_CACHE";
260*344a7f5eSAndroid Build Coastguard Worker    field public static final String ACTION_PROMPT_LOST_VALIDATION = "android.net.action.PROMPT_LOST_VALIDATION";
261*344a7f5eSAndroid Build Coastguard Worker    field public static final String ACTION_PROMPT_PARTIAL_CONNECTIVITY = "android.net.action.PROMPT_PARTIAL_CONNECTIVITY";
262*344a7f5eSAndroid Build Coastguard Worker    field public static final String ACTION_PROMPT_UNVALIDATED = "android.net.action.PROMPT_UNVALIDATED";
263*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_METERED_REASON_ADMIN_DISABLED = 262144; // 0x40000
264*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_METERED_REASON_DATA_SAVER = 65536; // 0x10000
265*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_METERED_REASON_MASK = -65536; // 0xffff0000
266*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_METERED_REASON_USER_RESTRICTED = 131072; // 0x20000
267*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_REASON_APP_STANDBY = 4; // 0x4
268*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_REASON_BATTERY_SAVER = 1; // 0x1
269*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_REASON_DOZE = 2; // 0x2
270*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_REASON_LOCKDOWN_VPN = 16; // 0x10
271*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_REASON_NONE = 0; // 0x0
272*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_REASON_RESTRICTED_MODE = 8; // 0x8
273*344a7f5eSAndroid Build Coastguard Worker    field public static final int PROFILE_NETWORK_PREFERENCE_DEFAULT = 0; // 0x0
274*344a7f5eSAndroid Build Coastguard Worker    field public static final int PROFILE_NETWORK_PREFERENCE_ENTERPRISE = 1; // 0x1
275*344a7f5eSAndroid Build Coastguard Worker  }
276*344a7f5eSAndroid Build Coastguard Worker
277*344a7f5eSAndroid Build Coastguard Worker  public static class ConnectivityManager.NetworkCallback {
278*344a7f5eSAndroid Build Coastguard Worker    method public void onBlockedStatusChanged(@NonNull android.net.Network, int);
279*344a7f5eSAndroid Build Coastguard Worker  }
280*344a7f5eSAndroid Build Coastguard Worker
281*344a7f5eSAndroid Build Coastguard Worker  public class ConnectivitySettingsManager {
282*344a7f5eSAndroid Build Coastguard Worker    method public static void clearGlobalProxy(@NonNull android.content.Context);
283*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static String getCaptivePortalHttpUrl(@NonNull android.content.Context);
284*344a7f5eSAndroid Build Coastguard Worker    method public static int getCaptivePortalMode(@NonNull android.content.Context, int);
285*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.time.Duration getConnectivityKeepPendingIntentDuration(@NonNull android.content.Context, @NonNull java.time.Duration);
286*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static android.util.Range<java.lang.Integer> getDnsResolverSampleRanges(@NonNull android.content.Context);
287*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.time.Duration getDnsResolverSampleValidityDuration(@NonNull android.content.Context, @NonNull java.time.Duration);
288*344a7f5eSAndroid Build Coastguard Worker    method public static int getDnsResolverSuccessThresholdPercent(@NonNull android.content.Context, int);
289*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static android.net.ProxyInfo getGlobalProxy(@NonNull android.content.Context);
290*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.time.Duration getMobileDataActivityTimeout(@NonNull android.content.Context, @NonNull java.time.Duration);
291*344a7f5eSAndroid Build Coastguard Worker    method public static boolean getMobileDataAlwaysOn(@NonNull android.content.Context, boolean);
292*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.util.Set<java.lang.Integer> getMobileDataPreferredUids(@NonNull android.content.Context);
293*344a7f5eSAndroid Build Coastguard Worker    method public static int getNetworkAvoidBadWifi(@NonNull android.content.Context);
294*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static String getNetworkMeteredMultipathPreference(@NonNull android.content.Context);
295*344a7f5eSAndroid Build Coastguard Worker    method public static int getNetworkSwitchNotificationMaximumDailyCount(@NonNull android.content.Context, int);
296*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.time.Duration getNetworkSwitchNotificationRateDuration(@NonNull android.content.Context, @NonNull java.time.Duration);
297*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static String getPrivateDnsDefaultMode(@NonNull android.content.Context);
298*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static String getPrivateDnsHostname(@NonNull android.content.Context);
299*344a7f5eSAndroid Build Coastguard Worker    method public static int getPrivateDnsMode(@NonNull android.content.Context);
300*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.util.Set<java.lang.Integer> getUidsAllowedOnRestrictedNetworks(@NonNull android.content.Context);
301*344a7f5eSAndroid Build Coastguard Worker    method public static boolean getWifiAlwaysRequested(@NonNull android.content.Context, boolean);
302*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.time.Duration getWifiDataActivityTimeout(@NonNull android.content.Context, @NonNull java.time.Duration);
303*344a7f5eSAndroid Build Coastguard Worker    method public static void setCaptivePortalHttpUrl(@NonNull android.content.Context, @Nullable String);
304*344a7f5eSAndroid Build Coastguard Worker    method public static void setCaptivePortalMode(@NonNull android.content.Context, int);
305*344a7f5eSAndroid Build Coastguard Worker    method public static void setConnectivityKeepPendingIntentDuration(@NonNull android.content.Context, @NonNull java.time.Duration);
306*344a7f5eSAndroid Build Coastguard Worker    method public static void setDnsResolverSampleRanges(@NonNull android.content.Context, @NonNull android.util.Range<java.lang.Integer>);
307*344a7f5eSAndroid Build Coastguard Worker    method public static void setDnsResolverSampleValidityDuration(@NonNull android.content.Context, @NonNull java.time.Duration);
308*344a7f5eSAndroid Build Coastguard Worker    method public static void setDnsResolverSuccessThresholdPercent(@NonNull android.content.Context, @IntRange(from=0, to=100) int);
309*344a7f5eSAndroid Build Coastguard Worker    method public static void setGlobalProxy(@NonNull android.content.Context, @NonNull android.net.ProxyInfo);
310*344a7f5eSAndroid Build Coastguard Worker    method public static void setMobileDataActivityTimeout(@NonNull android.content.Context, @NonNull java.time.Duration);
311*344a7f5eSAndroid Build Coastguard Worker    method public static void setMobileDataAlwaysOn(@NonNull android.content.Context, boolean);
312*344a7f5eSAndroid Build Coastguard Worker    method public static void setMobileDataPreferredUids(@NonNull android.content.Context, @NonNull java.util.Set<java.lang.Integer>);
313*344a7f5eSAndroid Build Coastguard Worker    method public static void setNetworkAvoidBadWifi(@NonNull android.content.Context, int);
314*344a7f5eSAndroid Build Coastguard Worker    method public static void setNetworkMeteredMultipathPreference(@NonNull android.content.Context, @NonNull String);
315*344a7f5eSAndroid Build Coastguard Worker    method public static void setNetworkSwitchNotificationMaximumDailyCount(@NonNull android.content.Context, @IntRange(from=0) int);
316*344a7f5eSAndroid Build Coastguard Worker    method public static void setNetworkSwitchNotificationRateDuration(@NonNull android.content.Context, @NonNull java.time.Duration);
317*344a7f5eSAndroid Build Coastguard Worker    method public static void setPrivateDnsDefaultMode(@NonNull android.content.Context, @NonNull int);
318*344a7f5eSAndroid Build Coastguard Worker    method public static void setPrivateDnsHostname(@NonNull android.content.Context, @Nullable String);
319*344a7f5eSAndroid Build Coastguard Worker    method public static void setPrivateDnsMode(@NonNull android.content.Context, int);
320*344a7f5eSAndroid Build Coastguard Worker    method public static void setUidsAllowedOnRestrictedNetworks(@NonNull android.content.Context, @NonNull java.util.Set<java.lang.Integer>);
321*344a7f5eSAndroid Build Coastguard Worker    method public static void setWifiAlwaysRequested(@NonNull android.content.Context, boolean);
322*344a7f5eSAndroid Build Coastguard Worker    method public static void setWifiDataActivityTimeout(@NonNull android.content.Context, @NonNull java.time.Duration);
323*344a7f5eSAndroid Build Coastguard Worker    field public static final int CAPTIVE_PORTAL_MODE_AVOID = 2; // 0x2
324*344a7f5eSAndroid Build Coastguard Worker    field public static final int CAPTIVE_PORTAL_MODE_IGNORE = 0; // 0x0
325*344a7f5eSAndroid Build Coastguard Worker    field public static final int CAPTIVE_PORTAL_MODE_PROMPT = 1; // 0x1
326*344a7f5eSAndroid Build Coastguard Worker    field public static final int NETWORK_AVOID_BAD_WIFI_AVOID = 2; // 0x2
327*344a7f5eSAndroid Build Coastguard Worker    field public static final int NETWORK_AVOID_BAD_WIFI_IGNORE = 0; // 0x0
328*344a7f5eSAndroid Build Coastguard Worker    field public static final int NETWORK_AVOID_BAD_WIFI_PROMPT = 1; // 0x1
329*344a7f5eSAndroid Build Coastguard Worker    field public static final int PRIVATE_DNS_MODE_OFF = 1; // 0x1
330*344a7f5eSAndroid Build Coastguard Worker    field public static final int PRIVATE_DNS_MODE_OPPORTUNISTIC = 2; // 0x2
331*344a7f5eSAndroid Build Coastguard Worker    field public static final int PRIVATE_DNS_MODE_PROVIDER_HOSTNAME = 3; // 0x3
332*344a7f5eSAndroid Build Coastguard Worker  }
333*344a7f5eSAndroid Build Coastguard Worker
334*344a7f5eSAndroid Build Coastguard Worker  public final class EthernetNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable {
335*344a7f5eSAndroid Build Coastguard Worker    ctor public EthernetNetworkSpecifier(@NonNull String);
336*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
337*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getInterfaceName();
338*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
339*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.EthernetNetworkSpecifier> CREATOR;
340*344a7f5eSAndroid Build Coastguard Worker  }
341*344a7f5eSAndroid Build Coastguard Worker
342*344a7f5eSAndroid Build Coastguard Worker  public static final class IpSecManager.UdpEncapsulationSocket implements java.lang.AutoCloseable {
343*344a7f5eSAndroid Build Coastguard Worker    method public int getResourceId();
344*344a7f5eSAndroid Build Coastguard Worker  }
345*344a7f5eSAndroid Build Coastguard Worker
346*344a7f5eSAndroid Build Coastguard Worker  public final class NetworkAgentConfig implements android.os.Parcelable {
347*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getSubscriberId();
348*344a7f5eSAndroid Build Coastguard Worker    method public boolean isBypassableVpn();
349*344a7f5eSAndroid Build Coastguard Worker  }
350*344a7f5eSAndroid Build Coastguard Worker
351*344a7f5eSAndroid Build Coastguard Worker  public static final class NetworkAgentConfig.Builder {
352*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkAgentConfig.Builder setBypassableVpn(boolean);
353*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkAgentConfig.Builder setSubscriberId(@Nullable String);
354*344a7f5eSAndroid Build Coastguard Worker  }
355*344a7f5eSAndroid Build Coastguard Worker
356*344a7f5eSAndroid Build Coastguard Worker  public final class NetworkCapabilities implements android.os.Parcelable {
357*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public java.util.Set<android.util.Range<java.lang.Integer>> getUids();
358*344a7f5eSAndroid Build Coastguard Worker    method public boolean hasForbiddenCapability(int);
359*344a7f5eSAndroid Build Coastguard Worker    field public static final long REDACT_ALL = -1L; // 0xffffffffffffffffL
360*344a7f5eSAndroid Build Coastguard Worker    field public static final long REDACT_FOR_ACCESS_FINE_LOCATION = 1L; // 0x1L
361*344a7f5eSAndroid Build Coastguard Worker    field public static final long REDACT_FOR_LOCAL_MAC_ADDRESS = 2L; // 0x2L
362*344a7f5eSAndroid Build Coastguard Worker    field public static final long REDACT_FOR_NETWORK_SETTINGS = 4L; // 0x4L
363*344a7f5eSAndroid Build Coastguard Worker    field public static final long REDACT_NONE = 0L; // 0x0L
364*344a7f5eSAndroid Build Coastguard Worker    field public static final int TRANSPORT_TEST = 7; // 0x7
365*344a7f5eSAndroid Build Coastguard Worker  }
366*344a7f5eSAndroid Build Coastguard Worker
367*344a7f5eSAndroid Build Coastguard Worker  public static final class NetworkCapabilities.Builder {
368*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkCapabilities.Builder setUids(@Nullable java.util.Set<android.util.Range<java.lang.Integer>>);
369*344a7f5eSAndroid Build Coastguard Worker  }
370*344a7f5eSAndroid Build Coastguard Worker
371*344a7f5eSAndroid Build Coastguard Worker  public class NetworkPolicyManager {
372*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public int getMultipathPreference(@NonNull android.net.Network);
373*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public int getRestrictBackgroundStatus(int);
374*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidNetworkingBlocked(int, boolean);
375*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidRestrictedOnMeteredNetworks(int);
376*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public void registerNetworkPolicyCallback(@Nullable java.util.concurrent.Executor, @NonNull android.net.NetworkPolicyManager.NetworkPolicyCallback);
377*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public void unregisterNetworkPolicyCallback(@NonNull android.net.NetworkPolicyManager.NetworkPolicyCallback);
378*344a7f5eSAndroid Build Coastguard Worker  }
379*344a7f5eSAndroid Build Coastguard Worker
380*344a7f5eSAndroid Build Coastguard Worker  public static interface NetworkPolicyManager.NetworkPolicyCallback {
381*344a7f5eSAndroid Build Coastguard Worker    method public default void onUidBlockedReasonChanged(int, int);
382*344a7f5eSAndroid Build Coastguard Worker  }
383*344a7f5eSAndroid Build Coastguard Worker
384*344a7f5eSAndroid Build Coastguard Worker  public class NetworkRequest implements android.os.Parcelable {
385*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public int[] getForbiddenCapabilities();
386*344a7f5eSAndroid Build Coastguard Worker    method public boolean hasForbiddenCapability(int);
387*344a7f5eSAndroid Build Coastguard Worker  }
388*344a7f5eSAndroid Build Coastguard Worker
389*344a7f5eSAndroid Build Coastguard Worker  public static class NetworkRequest.Builder {
390*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkRequest.Builder addForbiddenCapability(int);
391*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkRequest.Builder removeForbiddenCapability(int);
392*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkRequest.Builder setUids(@Nullable java.util.Set<android.util.Range<java.lang.Integer>>);
393*344a7f5eSAndroid Build Coastguard Worker  }
394*344a7f5eSAndroid Build Coastguard Worker
395*344a7f5eSAndroid Build Coastguard Worker  public final class NetworkStateSnapshot implements android.os.Parcelable {
396*344a7f5eSAndroid Build Coastguard Worker    ctor public NetworkStateSnapshot(@NonNull android.net.Network, @NonNull android.net.NetworkCapabilities, @NonNull android.net.LinkProperties, @Nullable String, int);
397*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
398*344a7f5eSAndroid Build Coastguard Worker    method public int getLegacyType();
399*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.LinkProperties getLinkProperties();
400*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.Network getNetwork();
401*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkCapabilities getNetworkCapabilities();
402*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getSubscriberId();
403*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
404*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkStateSnapshot> CREATOR;
405*344a7f5eSAndroid Build Coastguard Worker  }
406*344a7f5eSAndroid Build Coastguard Worker
407*344a7f5eSAndroid Build Coastguard Worker  public class NetworkWatchlistManager {
408*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public byte[] getWatchlistConfigHash();
409*344a7f5eSAndroid Build Coastguard Worker  }
410*344a7f5eSAndroid Build Coastguard Worker
411*344a7f5eSAndroid Build Coastguard Worker  public class PacProxyManager {
412*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void addPacProxyInstalledListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.PacProxyManager.PacProxyInstalledListener);
413*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void removePacProxyInstalledListener(@NonNull android.net.PacProxyManager.PacProxyInstalledListener);
414*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void setCurrentProxyScriptUrl(@Nullable android.net.ProxyInfo);
415*344a7f5eSAndroid Build Coastguard Worker  }
416*344a7f5eSAndroid Build Coastguard Worker
417*344a7f5eSAndroid Build Coastguard Worker  public static interface PacProxyManager.PacProxyInstalledListener {
418*344a7f5eSAndroid Build Coastguard Worker    method public void onPacProxyInstalled(@Nullable android.net.Network, @NonNull android.net.ProxyInfo);
419*344a7f5eSAndroid Build Coastguard Worker  }
420*344a7f5eSAndroid Build Coastguard Worker
421*344a7f5eSAndroid Build Coastguard Worker  public final class Proxy {
422*344a7f5eSAndroid Build Coastguard Worker    method public static void setHttpProxyConfiguration(@Nullable android.net.ProxyInfo);
423*344a7f5eSAndroid Build Coastguard Worker  }
424*344a7f5eSAndroid Build Coastguard Worker
425*344a7f5eSAndroid Build Coastguard Worker  public final class TestNetworkInterface implements android.os.Parcelable {
426*344a7f5eSAndroid Build Coastguard Worker    ctor public TestNetworkInterface(@NonNull android.os.ParcelFileDescriptor, @NonNull String);
427*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
428*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.os.ParcelFileDescriptor getFileDescriptor();
429*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String getInterfaceName();
430*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
431*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkInterface> CREATOR;
432*344a7f5eSAndroid Build Coastguard Worker  }
433*344a7f5eSAndroid Build Coastguard Worker
434*344a7f5eSAndroid Build Coastguard Worker  public class TestNetworkManager {
435*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_TEST_NETWORKS) public android.net.TestNetworkInterface createTapInterface();
436*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_TEST_NETWORKS) public android.net.TestNetworkInterface createTunInterface(@NonNull java.util.Collection<android.net.LinkAddress>);
437*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.MANAGE_TEST_NETWORKS) public void setupTestNetwork(@NonNull String, @NonNull android.os.IBinder);
438*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.MANAGE_TEST_NETWORKS) public void teardownTestNetwork(@NonNull android.net.Network);
439*344a7f5eSAndroid Build Coastguard Worker    field public static final String TEST_TAP_PREFIX = "testtap";
440*344a7f5eSAndroid Build Coastguard Worker  }
441*344a7f5eSAndroid Build Coastguard Worker
442*344a7f5eSAndroid Build Coastguard Worker  public final class TestNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable {
443*344a7f5eSAndroid Build Coastguard Worker    ctor public TestNetworkSpecifier(@NonNull String);
444*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
445*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getInterfaceName();
446*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
447*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkSpecifier> CREATOR;
448*344a7f5eSAndroid Build Coastguard Worker  }
449*344a7f5eSAndroid Build Coastguard Worker
450*344a7f5eSAndroid Build Coastguard Worker  public final class TetheringConstants {
451*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_ADD_TETHER_TYPE = "extraAddTetherType";
452*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_PROVISION_CALLBACK = "extraProvisionCallback";
453*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_REM_TETHER_TYPE = "extraRemTetherType";
454*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_RUN_PROVISION = "extraRunProvision";
455*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_SET_ALARM = "extraSetAlarm";
456*344a7f5eSAndroid Build Coastguard Worker  }
457*344a7f5eSAndroid Build Coastguard Worker
458*344a7f5eSAndroid Build Coastguard Worker  public class TetheringManager {
459*344a7f5eSAndroid Build Coastguard Worker    ctor public TetheringManager(@NonNull android.content.Context, @NonNull java.util.function.Supplier<android.os.IBinder>);
460*344a7f5eSAndroid Build Coastguard Worker    method public int getLastTetherError(@NonNull String);
461*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String[] getTetherableBluetoothRegexs();
462*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String[] getTetherableIfaces();
463*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String[] getTetherableUsbRegexs();
464*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String[] getTetherableWifiRegexs();
465*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String[] getTetheredIfaces();
466*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String[] getTetheringErroredIfaces();
467*344a7f5eSAndroid Build Coastguard Worker    method public boolean isTetheringSupported();
468*344a7f5eSAndroid Build Coastguard Worker    method public boolean isTetheringSupported(@NonNull String);
469*344a7f5eSAndroid Build Coastguard Worker    method public void requestLatestTetheringEntitlementResult(int, @NonNull android.os.ResultReceiver, boolean);
470*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public int setUsbTethering(boolean);
471*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.TETHER_PRIVILEGED, android.Manifest.permission.WRITE_SETTINGS}) public void startTethering(int, @NonNull java.util.concurrent.Executor, @NonNull android.net.TetheringManager.StartTetheringCallback);
472*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public int tether(@NonNull String);
473*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public int untether(@NonNull String);
474*344a7f5eSAndroid Build Coastguard Worker  }
475*344a7f5eSAndroid Build Coastguard Worker
476*344a7f5eSAndroid Build Coastguard Worker  public static interface TetheringManager.TetheringEventCallback {
477*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public default void onTetherableInterfaceRegexpsChanged(@NonNull android.net.TetheringManager.TetheringInterfaceRegexps);
478*344a7f5eSAndroid Build Coastguard Worker  }
479*344a7f5eSAndroid Build Coastguard Worker
480*344a7f5eSAndroid Build Coastguard Worker  @Deprecated public static class TetheringManager.TetheringInterfaceRegexps {
481*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public java.util.List<java.lang.String> getTetherableBluetoothRegexs();
482*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public java.util.List<java.lang.String> getTetherableUsbRegexs();
483*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public java.util.List<java.lang.String> getTetherableWifiRegexs();
484*344a7f5eSAndroid Build Coastguard Worker  }
485*344a7f5eSAndroid Build Coastguard Worker
486*344a7f5eSAndroid Build Coastguard Worker  public interface TransportInfo {
487*344a7f5eSAndroid Build Coastguard Worker    method public default long getApplicableRedactions();
488*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public default android.net.TransportInfo makeCopy(long);
489*344a7f5eSAndroid Build Coastguard Worker  }
490*344a7f5eSAndroid Build Coastguard Worker
491*344a7f5eSAndroid Build Coastguard Worker  public final class UnderlyingNetworkInfo implements android.os.Parcelable {
492*344a7f5eSAndroid Build Coastguard Worker    ctor public UnderlyingNetworkInfo(int, @NonNull String, @NonNull java.util.List<java.lang.String>);
493*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
494*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String getInterface();
495*344a7f5eSAndroid Build Coastguard Worker    method public int getOwnerUid();
496*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<java.lang.String> getUnderlyingInterfaces();
497*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
498*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.UnderlyingNetworkInfo> CREATOR;
499*344a7f5eSAndroid Build Coastguard Worker  }
500*344a7f5eSAndroid Build Coastguard Worker
501*344a7f5eSAndroid Build Coastguard Worker  public class VpnManager {
502*344a7f5eSAndroid Build Coastguard Worker    field public static final int TYPE_VPN_LEGACY = 3; // 0x3
503*344a7f5eSAndroid Build Coastguard Worker    field public static final int TYPE_VPN_NONE = -1; // 0xffffffff
504*344a7f5eSAndroid Build Coastguard Worker    field public static final int TYPE_VPN_OEM = 4; // 0x4
505*344a7f5eSAndroid Build Coastguard Worker    field public static final int TYPE_VPN_PLATFORM = 2; // 0x2
506*344a7f5eSAndroid Build Coastguard Worker    field public static final int TYPE_VPN_SERVICE = 1; // 0x1
507*344a7f5eSAndroid Build Coastguard Worker  }
508*344a7f5eSAndroid Build Coastguard Worker
509*344a7f5eSAndroid Build Coastguard Worker  public final class VpnTransportInfo implements android.os.Parcelable android.net.TransportInfo {
510*344a7f5eSAndroid Build Coastguard Worker    ctor public VpnTransportInfo(int, @Nullable String);
511*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
512*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getSessionId();
513*344a7f5eSAndroid Build Coastguard Worker    method public int getType();
514*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.VpnTransportInfo makeCopy(long);
515*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
516*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.VpnTransportInfo> CREATOR;
517*344a7f5eSAndroid Build Coastguard Worker  }
518*344a7f5eSAndroid Build Coastguard Worker
519*344a7f5eSAndroid Build Coastguard Worker}
520*344a7f5eSAndroid Build Coastguard Worker
521*344a7f5eSAndroid Build Coastguard Workerpackage android.os {
522*344a7f5eSAndroid Build Coastguard Worker
523*344a7f5eSAndroid Build Coastguard Worker  public final class BatteryStatsManager {
524*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void reportNetworkInterfaceForTransports(@NonNull String, @NonNull int[]) throws java.lang.RuntimeException;
525*344a7f5eSAndroid Build Coastguard Worker  }
526*344a7f5eSAndroid Build Coastguard Worker
527*344a7f5eSAndroid Build Coastguard Worker  public class Binder implements android.os.IBinder {
528*344a7f5eSAndroid Build Coastguard Worker    method public final void markVintfStability();
529*344a7f5eSAndroid Build Coastguard Worker  }
530*344a7f5eSAndroid Build Coastguard Worker
531*344a7f5eSAndroid Build Coastguard Worker  public class Build {
532*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isDebuggable();
533*344a7f5eSAndroid Build Coastguard Worker  }
534*344a7f5eSAndroid Build Coastguard Worker
535*344a7f5eSAndroid Build Coastguard Worker  public static class Build.VERSION {
536*344a7f5eSAndroid Build Coastguard Worker    field public static final int DEVICE_INITIAL_SDK_INT;
537*344a7f5eSAndroid Build Coastguard Worker  }
538*344a7f5eSAndroid Build Coastguard Worker
539*344a7f5eSAndroid Build Coastguard Worker  public interface Parcelable {
540*344a7f5eSAndroid Build Coastguard Worker    method public default int getStability();
541*344a7f5eSAndroid Build Coastguard Worker  }
542*344a7f5eSAndroid Build Coastguard Worker
543*344a7f5eSAndroid Build Coastguard Worker  public class Process {
544*344a7f5eSAndroid Build Coastguard Worker    field public static final int VPN_UID = 1016; // 0x3f8
545*344a7f5eSAndroid Build Coastguard Worker  }
546*344a7f5eSAndroid Build Coastguard Worker
547*344a7f5eSAndroid Build Coastguard Worker  public class StatsFrameworkInitializer {
548*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
549*344a7f5eSAndroid Build Coastguard Worker    method public static void setStatsServiceManager(@NonNull android.os.StatsServiceManager);
550*344a7f5eSAndroid Build Coastguard Worker  }
551*344a7f5eSAndroid Build Coastguard Worker
552*344a7f5eSAndroid Build Coastguard Worker  public class StatsServiceManager {
553*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsCompanionServiceRegisterer();
554*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsManagerServiceRegisterer();
555*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsdServiceRegisterer();
556*344a7f5eSAndroid Build Coastguard Worker  }
557*344a7f5eSAndroid Build Coastguard Worker
558*344a7f5eSAndroid Build Coastguard Worker  public static class StatsServiceManager.ServiceNotFoundException extends java.lang.Exception {
559*344a7f5eSAndroid Build Coastguard Worker    ctor public StatsServiceManager.ServiceNotFoundException(@NonNull String);
560*344a7f5eSAndroid Build Coastguard Worker  }
561*344a7f5eSAndroid Build Coastguard Worker
562*344a7f5eSAndroid Build Coastguard Worker  public static final class StatsServiceManager.ServiceRegisterer {
563*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.os.IBinder get();
564*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.os.IBinder getOrThrow() throws android.os.StatsServiceManager.ServiceNotFoundException;
565*344a7f5eSAndroid Build Coastguard Worker  }
566*344a7f5eSAndroid Build Coastguard Worker
567*344a7f5eSAndroid Build Coastguard Worker}
568*344a7f5eSAndroid Build Coastguard Worker
569*344a7f5eSAndroid Build Coastguard Workerpackage android.os.storage {
570*344a7f5eSAndroid Build Coastguard Worker
571*344a7f5eSAndroid Build Coastguard Worker  public class StorageManager {
572*344a7f5eSAndroid Build Coastguard Worker    method public void notifyAppIoBlocked(@NonNull java.util.UUID, int, int, int);
573*344a7f5eSAndroid Build Coastguard Worker    method public void notifyAppIoResumed(@NonNull java.util.UUID, int, int, int);
574*344a7f5eSAndroid Build Coastguard Worker    field public static final int APP_IO_BLOCKED_REASON_TRANSCODING = 1; // 0x1
575*344a7f5eSAndroid Build Coastguard Worker    field public static final int APP_IO_BLOCKED_REASON_UNKNOWN = 0; // 0x0
576*344a7f5eSAndroid Build Coastguard Worker  }
577*344a7f5eSAndroid Build Coastguard Worker
578*344a7f5eSAndroid Build Coastguard Worker  public final class StorageVolume implements android.os.Parcelable {
579*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.os.UserHandle getOwner();
580*344a7f5eSAndroid Build Coastguard Worker  }
581*344a7f5eSAndroid Build Coastguard Worker
582*344a7f5eSAndroid Build Coastguard Worker}
583*344a7f5eSAndroid Build Coastguard Worker
584*344a7f5eSAndroid Build Coastguard Workerpackage android.provider {
585*344a7f5eSAndroid Build Coastguard Worker
586*344a7f5eSAndroid Build Coastguard Worker  public final class DeviceConfig {
587*344a7f5eSAndroid Build Coastguard Worker    field public static final String NAMESPACE_ALARM_MANAGER = "alarm_manager";
588*344a7f5eSAndroid Build Coastguard Worker    field public static final String NAMESPACE_APP_STANDBY = "app_standby";
589*344a7f5eSAndroid Build Coastguard Worker    field public static final String NAMESPACE_DEVICE_IDLE = "device_idle";
590*344a7f5eSAndroid Build Coastguard Worker  }
591*344a7f5eSAndroid Build Coastguard Worker
592*344a7f5eSAndroid Build Coastguard Worker}
593*344a7f5eSAndroid Build Coastguard Worker
594*344a7f5eSAndroid Build Coastguard Workerpackage android.scheduling {
595*344a7f5eSAndroid Build Coastguard Worker
596*344a7f5eSAndroid Build Coastguard Worker  public class SchedulingFrameworkInitializer {
597*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
598*344a7f5eSAndroid Build Coastguard Worker  }
599*344a7f5eSAndroid Build Coastguard Worker
600*344a7f5eSAndroid Build Coastguard Worker}
601*344a7f5eSAndroid Build Coastguard Worker
602*344a7f5eSAndroid Build Coastguard Workerpackage android.system {
603*344a7f5eSAndroid Build Coastguard Worker
604*344a7f5eSAndroid Build Coastguard Worker  public final class NetlinkSocketAddress extends java.net.SocketAddress {
605*344a7f5eSAndroid Build Coastguard Worker    ctor public NetlinkSocketAddress(int, int);
606*344a7f5eSAndroid Build Coastguard Worker    method public int getGroupsMask();
607*344a7f5eSAndroid Build Coastguard Worker    method public int getPortId();
608*344a7f5eSAndroid Build Coastguard Worker  }
609*344a7f5eSAndroid Build Coastguard Worker
610*344a7f5eSAndroid Build Coastguard Worker  public final class Os {
611*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static android.system.StructCapUserData[] capget(@NonNull android.system.StructCapUserHeader) throws android.system.ErrnoException;
612*344a7f5eSAndroid Build Coastguard Worker    method public static void capset(@NonNull android.system.StructCapUserHeader, @NonNull android.system.StructCapUserData[]) throws android.system.ErrnoException;
613*344a7f5eSAndroid Build Coastguard Worker    method public static int getpgid(int) throws android.system.ErrnoException;
614*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static android.system.StructRlimit getrlimit(int) throws android.system.ErrnoException;
615*344a7f5eSAndroid Build Coastguard Worker    method public static int getsockoptInt(@NonNull java.io.FileDescriptor, int, int) throws android.system.ErrnoException;
616*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static android.system.StructLinger getsockoptLinger(@NonNull java.io.FileDescriptor, int, int) throws android.system.ErrnoException;
617*344a7f5eSAndroid Build Coastguard Worker    method public static int ioctlInt(@NonNull java.io.FileDescriptor, int) throws android.system.ErrnoException;
618*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static java.io.FileDescriptor[] pipe2(int) throws android.system.ErrnoException;
619*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static String realpath(@Nullable String) throws android.system.ErrnoException;
620*344a7f5eSAndroid Build Coastguard Worker    method public static void setpgid(int, int) throws android.system.ErrnoException;
621*344a7f5eSAndroid Build Coastguard Worker    method public static void setregid(int, int) throws android.system.ErrnoException;
622*344a7f5eSAndroid Build Coastguard Worker    method public static void setreuid(int, int) throws android.system.ErrnoException;
623*344a7f5eSAndroid Build Coastguard Worker    method public static void setsockoptIfreq(@NonNull java.io.FileDescriptor, int, int, @Nullable String) throws android.system.ErrnoException;
624*344a7f5eSAndroid Build Coastguard Worker    method public static void setsockoptLinger(@NonNull java.io.FileDescriptor, int, int, @NonNull android.system.StructLinger) throws android.system.ErrnoException;
625*344a7f5eSAndroid Build Coastguard Worker    method public static long splice(@NonNull java.io.FileDescriptor, @Nullable android.system.Int64Ref, @NonNull java.io.FileDescriptor, @Nullable android.system.Int64Ref, long, int) throws android.system.ErrnoException;
626*344a7f5eSAndroid Build Coastguard Worker    method public static void unlink(@Nullable String) throws android.system.ErrnoException;
627*344a7f5eSAndroid Build Coastguard Worker  }
628*344a7f5eSAndroid Build Coastguard Worker
629*344a7f5eSAndroid Build Coastguard Worker  public final class OsConstants {
630*344a7f5eSAndroid Build Coastguard Worker    method public static int CAP_TO_INDEX(int);
631*344a7f5eSAndroid Build Coastguard Worker    method public static int CAP_TO_MASK(int);
632*344a7f5eSAndroid Build Coastguard Worker    field public static final int ARPHRD_LOOPBACK;
633*344a7f5eSAndroid Build Coastguard Worker    field public static final int EUSERS;
634*344a7f5eSAndroid Build Coastguard Worker    field public static final int MAP_POPULATE;
635*344a7f5eSAndroid Build Coastguard Worker    field public static final int O_DIRECT;
636*344a7f5eSAndroid Build Coastguard Worker    field public static final int PR_CAP_AMBIENT;
637*344a7f5eSAndroid Build Coastguard Worker    field public static final int PR_CAP_AMBIENT_RAISE;
638*344a7f5eSAndroid Build Coastguard Worker    field public static final int RLIMIT_NOFILE;
639*344a7f5eSAndroid Build Coastguard Worker    field public static final int RTMGRP_IPV4_IFADDR;
640*344a7f5eSAndroid Build Coastguard Worker    field public static final int SPLICE_F_MORE;
641*344a7f5eSAndroid Build Coastguard Worker    field public static final int SPLICE_F_MOVE;
642*344a7f5eSAndroid Build Coastguard Worker    field public static final int TIOCOUTQ;
643*344a7f5eSAndroid Build Coastguard Worker    field public static final int UDP_ENCAP;
644*344a7f5eSAndroid Build Coastguard Worker    field public static final int UDP_ENCAP_ESPINUDP;
645*344a7f5eSAndroid Build Coastguard Worker    field public static final int XATTR_CREATE;
646*344a7f5eSAndroid Build Coastguard Worker    field public static final int XATTR_REPLACE;
647*344a7f5eSAndroid Build Coastguard Worker    field public static final int _LINUX_CAPABILITY_VERSION_3;
648*344a7f5eSAndroid Build Coastguard Worker  }
649*344a7f5eSAndroid Build Coastguard Worker
650*344a7f5eSAndroid Build Coastguard Worker  public final class PacketSocketAddress extends java.net.SocketAddress {
651*344a7f5eSAndroid Build Coastguard Worker    ctor public PacketSocketAddress(int, int, byte[]);
652*344a7f5eSAndroid Build Coastguard Worker  }
653*344a7f5eSAndroid Build Coastguard Worker
654*344a7f5eSAndroid Build Coastguard Worker  public final class StructCapUserData {
655*344a7f5eSAndroid Build Coastguard Worker    ctor public StructCapUserData(int, int, int);
656*344a7f5eSAndroid Build Coastguard Worker    field public final int effective;
657*344a7f5eSAndroid Build Coastguard Worker    field public final int inheritable;
658*344a7f5eSAndroid Build Coastguard Worker    field public final int permitted;
659*344a7f5eSAndroid Build Coastguard Worker  }
660*344a7f5eSAndroid Build Coastguard Worker
661*344a7f5eSAndroid Build Coastguard Worker  public final class StructCapUserHeader {
662*344a7f5eSAndroid Build Coastguard Worker    ctor public StructCapUserHeader(int, int);
663*344a7f5eSAndroid Build Coastguard Worker  }
664*344a7f5eSAndroid Build Coastguard Worker
665*344a7f5eSAndroid Build Coastguard Worker  public final class StructLinger {
666*344a7f5eSAndroid Build Coastguard Worker    ctor public StructLinger(int, int);
667*344a7f5eSAndroid Build Coastguard Worker    method public boolean isOn();
668*344a7f5eSAndroid Build Coastguard Worker    field public final int l_linger;
669*344a7f5eSAndroid Build Coastguard Worker  }
670*344a7f5eSAndroid Build Coastguard Worker
671*344a7f5eSAndroid Build Coastguard Worker  public final class StructRlimit {
672*344a7f5eSAndroid Build Coastguard Worker    field public final long rlim_cur;
673*344a7f5eSAndroid Build Coastguard Worker  }
674*344a7f5eSAndroid Build Coastguard Worker
675*344a7f5eSAndroid Build Coastguard Worker  public final class UnixSocketAddress extends java.net.SocketAddress {
676*344a7f5eSAndroid Build Coastguard Worker    method public static android.system.UnixSocketAddress createFileSystem(String);
677*344a7f5eSAndroid Build Coastguard Worker  }
678*344a7f5eSAndroid Build Coastguard Worker
679*344a7f5eSAndroid Build Coastguard Worker  public final class VmSocketAddress extends java.net.SocketAddress {
680*344a7f5eSAndroid Build Coastguard Worker    ctor public VmSocketAddress(int, int);
681*344a7f5eSAndroid Build Coastguard Worker    method public int getSvmCid();
682*344a7f5eSAndroid Build Coastguard Worker    method public int getSvmPort();
683*344a7f5eSAndroid Build Coastguard Worker  }
684*344a7f5eSAndroid Build Coastguard Worker
685*344a7f5eSAndroid Build Coastguard Worker}
686*344a7f5eSAndroid Build Coastguard Worker
687*344a7f5eSAndroid Build Coastguard Workerpackage android.telephony {
688*344a7f5eSAndroid Build Coastguard Worker
689*344a7f5eSAndroid Build Coastguard Worker  public abstract class CellSignalStrength {
690*344a7f5eSAndroid Build Coastguard Worker    method public static int getNumSignalStrengthLevels();
691*344a7f5eSAndroid Build Coastguard Worker  }
692*344a7f5eSAndroid Build Coastguard Worker
693*344a7f5eSAndroid Build Coastguard Worker  public class TelephonyManager {
694*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static int[] getAllNetworkTypes();
695*344a7f5eSAndroid Build Coastguard Worker  }
696*344a7f5eSAndroid Build Coastguard Worker
697*344a7f5eSAndroid Build Coastguard Worker}
698*344a7f5eSAndroid Build Coastguard Worker
699*344a7f5eSAndroid Build Coastguard Workerpackage android.util {
700*344a7f5eSAndroid Build Coastguard Worker
701*344a7f5eSAndroid Build Coastguard Worker  public class AtomicFile {
702*344a7f5eSAndroid Build Coastguard Worker    ctor public AtomicFile(@NonNull java.io.File, @Nullable android.util.SystemConfigFileCommitEventLogger);
703*344a7f5eSAndroid Build Coastguard Worker  }
704*344a7f5eSAndroid Build Coastguard Worker
705*344a7f5eSAndroid Build Coastguard Worker  public final class Log {
706*344a7f5eSAndroid Build Coastguard Worker    method public static int logToRadioBuffer(int, @Nullable String, @Nullable String);
707*344a7f5eSAndroid Build Coastguard Worker  }
708*344a7f5eSAndroid Build Coastguard Worker
709*344a7f5eSAndroid Build Coastguard Worker  public class SystemConfigFileCommitEventLogger {
710*344a7f5eSAndroid Build Coastguard Worker    ctor public SystemConfigFileCommitEventLogger(@NonNull String);
711*344a7f5eSAndroid Build Coastguard Worker    method public void setStartTime(long);
712*344a7f5eSAndroid Build Coastguard Worker  }
713*344a7f5eSAndroid Build Coastguard Worker
714*344a7f5eSAndroid Build Coastguard Worker}
715*344a7f5eSAndroid Build Coastguard Worker
716*344a7f5eSAndroid Build Coastguard Workerpackage com.android.okhttp.internalandroidapi {
717*344a7f5eSAndroid Build Coastguard Worker
718*344a7f5eSAndroid Build Coastguard Worker  public final class AndroidResponseCacheAdapter {
719*344a7f5eSAndroid Build Coastguard Worker    ctor public AndroidResponseCacheAdapter(@NonNull com.android.okhttp.internalandroidapi.HasCacheHolder.CacheHolder);
720*344a7f5eSAndroid Build Coastguard Worker    method public void close() throws java.io.IOException;
721*344a7f5eSAndroid Build Coastguard Worker    method public void delete() throws java.io.IOException;
722*344a7f5eSAndroid Build Coastguard Worker    method public void flush() throws java.io.IOException;
723*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public java.net.CacheResponse get(@NonNull java.net.URI, @NonNull String, @Nullable java.util.Map<java.lang.String,java.util.List<java.lang.String>>) throws java.io.IOException;
724*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.okhttp.internalandroidapi.HasCacheHolder.CacheHolder getCacheHolder();
725*344a7f5eSAndroid Build Coastguard Worker    method public int getHitCount();
726*344a7f5eSAndroid Build Coastguard Worker    method public long getMaxSize();
727*344a7f5eSAndroid Build Coastguard Worker    method public int getNetworkCount();
728*344a7f5eSAndroid Build Coastguard Worker    method public int getRequestCount();
729*344a7f5eSAndroid Build Coastguard Worker    method public long getSize() throws java.io.IOException;
730*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public java.net.CacheRequest put(@NonNull java.net.URI, @NonNull java.net.URLConnection) throws java.io.IOException;
731*344a7f5eSAndroid Build Coastguard Worker  }
732*344a7f5eSAndroid Build Coastguard Worker
733*344a7f5eSAndroid Build Coastguard Worker  public interface HasCacheHolder {
734*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.okhttp.internalandroidapi.HasCacheHolder.CacheHolder getCacheHolder();
735*344a7f5eSAndroid Build Coastguard Worker  }
736*344a7f5eSAndroid Build Coastguard Worker
737*344a7f5eSAndroid Build Coastguard Worker  public static final class HasCacheHolder.CacheHolder {
738*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static com.android.okhttp.internalandroidapi.HasCacheHolder.CacheHolder create(@NonNull java.io.File, long);
739*344a7f5eSAndroid Build Coastguard Worker    method public boolean isEquivalent(@NonNull java.io.File, long);
740*344a7f5eSAndroid Build Coastguard Worker  }
741*344a7f5eSAndroid Build Coastguard Worker
742*344a7f5eSAndroid Build Coastguard Worker}
743*344a7f5eSAndroid Build Coastguard Worker
744*344a7f5eSAndroid Build Coastguard Workerpackage dalvik.annotation.codegen {
745*344a7f5eSAndroid Build Coastguard Worker
746*344a7f5eSAndroid Build Coastguard Worker  @java.lang.annotation.Repeatable(CovariantReturnType.CovariantReturnTypes.class) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.CLASS) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD}) public @interface CovariantReturnType {
747*344a7f5eSAndroid Build Coastguard Worker    method public abstract int presentAfter();
748*344a7f5eSAndroid Build Coastguard Worker    method public abstract Class<?> returnType();
749*344a7f5eSAndroid Build Coastguard Worker  }
750*344a7f5eSAndroid Build Coastguard Worker
751*344a7f5eSAndroid Build Coastguard Worker  @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.CLASS) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD}) public static @interface CovariantReturnType.CovariantReturnTypes {
752*344a7f5eSAndroid Build Coastguard Worker    method public abstract dalvik.annotation.codegen.CovariantReturnType[] value();
753*344a7f5eSAndroid Build Coastguard Worker  }
754*344a7f5eSAndroid Build Coastguard Worker
755*344a7f5eSAndroid Build Coastguard Worker}
756*344a7f5eSAndroid Build Coastguard Worker
757*344a7f5eSAndroid Build Coastguard Workerpackage dalvik.annotation.optimization {
758*344a7f5eSAndroid Build Coastguard Worker
759*344a7f5eSAndroid Build Coastguard Worker  @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.CLASS) @java.lang.annotation.Target(java.lang.annotation.ElementType.METHOD) public @interface CriticalNative {
760*344a7f5eSAndroid Build Coastguard Worker  }
761*344a7f5eSAndroid Build Coastguard Worker
762*344a7f5eSAndroid Build Coastguard Worker  @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.CLASS) @java.lang.annotation.Target(java.lang.annotation.ElementType.METHOD) public @interface FastNative {
763*344a7f5eSAndroid Build Coastguard Worker  }
764*344a7f5eSAndroid Build Coastguard Worker
765*344a7f5eSAndroid Build Coastguard Worker}
766*344a7f5eSAndroid Build Coastguard Worker
767*344a7f5eSAndroid Build Coastguard Workerpackage dalvik.system {
768*344a7f5eSAndroid Build Coastguard Worker
769*344a7f5eSAndroid Build Coastguard Worker  public final class AnnotatedStackTraceElement {
770*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public Object getBlockedOn();
771*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public Object[] getHeldLocks();
772*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public StackTraceElement getStackTraceElement();
773*344a7f5eSAndroid Build Coastguard Worker  }
774*344a7f5eSAndroid Build Coastguard Worker
775*344a7f5eSAndroid Build Coastguard Worker  public class AppSpecializationHooks {
776*344a7f5eSAndroid Build Coastguard Worker    method public static void handleCompatChangesBeforeBindingApplication();
777*344a7f5eSAndroid Build Coastguard Worker  }
778*344a7f5eSAndroid Build Coastguard Worker
779*344a7f5eSAndroid Build Coastguard Worker  public class BaseDexClassLoader extends java.lang.ClassLoader {
780*344a7f5eSAndroid Build Coastguard Worker    method public void addDexPath(@Nullable String);
781*344a7f5eSAndroid Build Coastguard Worker    method public void addNativePath(@NonNull java.util.Collection<java.lang.String>);
782*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String getLdLibraryPath();
783*344a7f5eSAndroid Build Coastguard Worker    method public void reportClassLoaderChain();
784*344a7f5eSAndroid Build Coastguard Worker    method public static void setReporter(@Nullable dalvik.system.BaseDexClassLoader.Reporter);
785*344a7f5eSAndroid Build Coastguard Worker  }
786*344a7f5eSAndroid Build Coastguard Worker
787*344a7f5eSAndroid Build Coastguard Worker  public static interface BaseDexClassLoader.Reporter {
788*344a7f5eSAndroid Build Coastguard Worker    method public void report(@NonNull java.util.Map<java.lang.String,java.lang.String>);
789*344a7f5eSAndroid Build Coastguard Worker  }
790*344a7f5eSAndroid Build Coastguard Worker
791*344a7f5eSAndroid Build Coastguard Worker  public final class BlockGuard {
792*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static dalvik.system.BlockGuard.Policy getThreadPolicy();
793*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static dalvik.system.BlockGuard.VmPolicy getVmPolicy();
794*344a7f5eSAndroid Build Coastguard Worker    method public static void setThreadPolicy(@NonNull dalvik.system.BlockGuard.Policy);
795*344a7f5eSAndroid Build Coastguard Worker    method public static void setVmPolicy(@NonNull dalvik.system.BlockGuard.VmPolicy);
796*344a7f5eSAndroid Build Coastguard Worker    field public static final dalvik.system.BlockGuard.Policy LAX_POLICY;
797*344a7f5eSAndroid Build Coastguard Worker    field public static final dalvik.system.BlockGuard.VmPolicy LAX_VM_POLICY;
798*344a7f5eSAndroid Build Coastguard Worker  }
799*344a7f5eSAndroid Build Coastguard Worker
800*344a7f5eSAndroid Build Coastguard Worker  public static interface BlockGuard.Policy {
801*344a7f5eSAndroid Build Coastguard Worker    method public int getPolicyMask();
802*344a7f5eSAndroid Build Coastguard Worker    method public void onReadFromDisk();
803*344a7f5eSAndroid Build Coastguard Worker    method public void onUnbufferedIO();
804*344a7f5eSAndroid Build Coastguard Worker    method public void onWriteToDisk();
805*344a7f5eSAndroid Build Coastguard Worker  }
806*344a7f5eSAndroid Build Coastguard Worker
807*344a7f5eSAndroid Build Coastguard Worker  public static interface BlockGuard.VmPolicy {
808*344a7f5eSAndroid Build Coastguard Worker    method public void onPathAccess(@NonNull String);
809*344a7f5eSAndroid Build Coastguard Worker  }
810*344a7f5eSAndroid Build Coastguard Worker
811*344a7f5eSAndroid Build Coastguard Worker  public final class CloseGuard {
812*344a7f5eSAndroid Build Coastguard Worker    method public void close();
813*344a7f5eSAndroid Build Coastguard Worker    method public static dalvik.system.CloseGuard get();
814*344a7f5eSAndroid Build Coastguard Worker    method public static dalvik.system.CloseGuard.Reporter getReporter();
815*344a7f5eSAndroid Build Coastguard Worker    method public void open(String);
816*344a7f5eSAndroid Build Coastguard Worker    method public void openWithCallSite(String, String);
817*344a7f5eSAndroid Build Coastguard Worker    method public static void setEnabled(boolean);
818*344a7f5eSAndroid Build Coastguard Worker    method public static void setReporter(dalvik.system.CloseGuard.Reporter);
819*344a7f5eSAndroid Build Coastguard Worker    method public void warnIfOpen();
820*344a7f5eSAndroid Build Coastguard Worker  }
821*344a7f5eSAndroid Build Coastguard Worker
822*344a7f5eSAndroid Build Coastguard Worker  public static interface CloseGuard.Reporter {
823*344a7f5eSAndroid Build Coastguard Worker    method public void report(String, Throwable);
824*344a7f5eSAndroid Build Coastguard Worker    method public default void report(String);
825*344a7f5eSAndroid Build Coastguard Worker  }
826*344a7f5eSAndroid Build Coastguard Worker
827*344a7f5eSAndroid Build Coastguard Worker  public final class DelegateLastClassLoader extends dalvik.system.PathClassLoader {
828*344a7f5eSAndroid Build Coastguard Worker    ctor public DelegateLastClassLoader(String, String, ClassLoader, ClassLoader[]);
829*344a7f5eSAndroid Build Coastguard Worker  }
830*344a7f5eSAndroid Build Coastguard Worker
831*344a7f5eSAndroid Build Coastguard Worker  @Deprecated public final class DexFile {
832*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public static dalvik.system.DexFile.OptimizationInfo getDexFileOptimizationInfo(@NonNull String, @NonNull String) throws java.io.FileNotFoundException;
833*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @Nullable public static String[] getDexFileOutputPaths(@NonNull String, @NonNull String) throws java.io.FileNotFoundException;
834*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public static int getDexOptNeeded(@NonNull String, @NonNull String, @NonNull String, @Nullable String, boolean, boolean) throws java.io.FileNotFoundException, java.io.IOException;
835*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public static String getSafeModeCompilerFilter(@NonNull String);
836*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public static boolean isProfileGuidedCompilerFilter(@NonNull String);
837*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public static boolean isValidCompilerFilter(@NonNull String);
838*344a7f5eSAndroid Build Coastguard Worker    field @Deprecated public static final int DEX2OAT_FOR_FILTER = 3; // 0x3
839*344a7f5eSAndroid Build Coastguard Worker    field @Deprecated public static final int NO_DEXOPT_NEEDED = 0; // 0x0
840*344a7f5eSAndroid Build Coastguard Worker  }
841*344a7f5eSAndroid Build Coastguard Worker
842*344a7f5eSAndroid Build Coastguard Worker  @Deprecated public static final class DexFile.OptimizationInfo {
843*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public String getReason();
844*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public String getStatus();
845*344a7f5eSAndroid Build Coastguard Worker  }
846*344a7f5eSAndroid Build Coastguard Worker
847*344a7f5eSAndroid Build Coastguard Worker  public class PathClassLoader extends dalvik.system.BaseDexClassLoader {
848*344a7f5eSAndroid Build Coastguard Worker    ctor public PathClassLoader(@NonNull String, @Nullable String, @Nullable ClassLoader, @Nullable ClassLoader[]);
849*344a7f5eSAndroid Build Coastguard Worker  }
850*344a7f5eSAndroid Build Coastguard Worker
851*344a7f5eSAndroid Build Coastguard Worker  public final class RuntimeHooks {
852*344a7f5eSAndroid Build Coastguard Worker    method public static void setTimeZoneIdSupplier(@NonNull java.util.function.Supplier<java.lang.String>);
853*344a7f5eSAndroid Build Coastguard Worker    method public static void setUncaughtExceptionPreHandler(@Nullable java.lang.Thread.UncaughtExceptionHandler);
854*344a7f5eSAndroid Build Coastguard Worker  }
855*344a7f5eSAndroid Build Coastguard Worker
856*344a7f5eSAndroid Build Coastguard Worker  public abstract class SocketTagger {
857*344a7f5eSAndroid Build Coastguard Worker    ctor public SocketTagger();
858*344a7f5eSAndroid Build Coastguard Worker    method public static dalvik.system.SocketTagger get();
859*344a7f5eSAndroid Build Coastguard Worker    method public static void set(dalvik.system.SocketTagger);
860*344a7f5eSAndroid Build Coastguard Worker    method public abstract void tag(java.io.FileDescriptor) throws java.net.SocketException;
861*344a7f5eSAndroid Build Coastguard Worker    method public final void tag(java.net.Socket) throws java.net.SocketException;
862*344a7f5eSAndroid Build Coastguard Worker    method public final void tag(java.net.DatagramSocket) throws java.net.SocketException;
863*344a7f5eSAndroid Build Coastguard Worker    method public abstract void untag(java.io.FileDescriptor) throws java.net.SocketException;
864*344a7f5eSAndroid Build Coastguard Worker    method public final void untag(java.net.Socket) throws java.net.SocketException;
865*344a7f5eSAndroid Build Coastguard Worker    method public final void untag(java.net.DatagramSocket) throws java.net.SocketException;
866*344a7f5eSAndroid Build Coastguard Worker  }
867*344a7f5eSAndroid Build Coastguard Worker
868*344a7f5eSAndroid Build Coastguard Worker  public final class VMDebug {
869*344a7f5eSAndroid Build Coastguard Worker    method public static void attachAgent(String, ClassLoader) throws java.io.IOException;
870*344a7f5eSAndroid Build Coastguard Worker    method public static long countInstancesOfClass(Class, boolean);
871*344a7f5eSAndroid Build Coastguard Worker    method public static long[] countInstancesOfClasses(Class[], boolean);
872*344a7f5eSAndroid Build Coastguard Worker    method public static void dumpHprofData(String) throws java.io.IOException;
873*344a7f5eSAndroid Build Coastguard Worker    method public static void dumpHprofData(String, java.io.FileDescriptor) throws java.io.IOException;
874*344a7f5eSAndroid Build Coastguard Worker    method public static void dumpHprofDataDdms();
875*344a7f5eSAndroid Build Coastguard Worker    method public static void dumpReferenceTables();
876*344a7f5eSAndroid Build Coastguard Worker    method public static int getAllocCount(int);
877*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public static int getLoadedClassCount();
878*344a7f5eSAndroid Build Coastguard Worker    method public static int getMethodTracingMode();
879*344a7f5eSAndroid Build Coastguard Worker    method public static String getRuntimeStat(String);
880*344a7f5eSAndroid Build Coastguard Worker    method public static java.util.Map<java.lang.String,java.lang.String> getRuntimeStats();
881*344a7f5eSAndroid Build Coastguard Worker    method public static String[] getVmFeatureList();
882*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public static boolean isDebuggerConnected();
883*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public static boolean isDebuggingEnabled();
884*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public static long lastDebuggerActivity();
885*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public static void printLoadedClasses(int);
886*344a7f5eSAndroid Build Coastguard Worker    method public static void resetAllocCount(int);
887*344a7f5eSAndroid Build Coastguard Worker    method public static void setAllocTrackerStackDepth(int);
888*344a7f5eSAndroid Build Coastguard Worker    method public static void startAllocCounting();
889*344a7f5eSAndroid Build Coastguard Worker    method public static void startMethodTracing(String, int, int, boolean, int);
890*344a7f5eSAndroid Build Coastguard Worker    method public static void startMethodTracing(String, java.io.FileDescriptor, int, int, boolean, int, boolean);
891*344a7f5eSAndroid Build Coastguard Worker    method public static void startMethodTracingDdms(int, int, boolean, int);
892*344a7f5eSAndroid Build Coastguard Worker    method public static void stopAllocCounting();
893*344a7f5eSAndroid Build Coastguard Worker    method public static void stopMethodTracing();
894*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public static long threadCpuTimeNanos();
895*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_ALL_COUNTS = -1; // 0xffffffff
896*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_GLOBAL_ALLOCATED_BYTES = 2; // 0x2
897*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_GLOBAL_ALLOCATED_OBJECTS = 1; // 0x1
898*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_GLOBAL_CLASS_INIT_COUNT = 32; // 0x20
899*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_GLOBAL_CLASS_INIT_TIME = 64; // 0x40
900*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_GLOBAL_FREED_BYTES = 8; // 0x8
901*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_GLOBAL_FREED_OBJECTS = 4; // 0x4
902*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_GLOBAL_GC_INVOCATIONS = 16; // 0x10
903*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_THREAD_ALLOCATED_BYTES = 131072; // 0x20000
904*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_THREAD_ALLOCATED_OBJECTS = 65536; // 0x10000
905*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_THREAD_GC_INVOCATIONS = 1048576; // 0x100000
906*344a7f5eSAndroid Build Coastguard Worker    field public static final int TRACE_COUNT_ALLOCS = 1; // 0x1
907*344a7f5eSAndroid Build Coastguard Worker  }
908*344a7f5eSAndroid Build Coastguard Worker
909*344a7f5eSAndroid Build Coastguard Worker  public final class VMRuntime {
910*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public long addressOf(Object);
911*344a7f5eSAndroid Build Coastguard Worker    method public static void bootCompleted();
912*344a7f5eSAndroid Build Coastguard Worker    method public void clampGrowthLimit();
913*344a7f5eSAndroid Build Coastguard Worker    method public void clearGrowthLimit();
914*344a7f5eSAndroid Build Coastguard Worker    method public static String getCurrentInstructionSet();
915*344a7f5eSAndroid Build Coastguard Worker    method public static String getInstructionSet(String);
916*344a7f5eSAndroid Build Coastguard Worker    method public static dalvik.system.VMRuntime getRuntime();
917*344a7f5eSAndroid Build Coastguard Worker    method public int getTargetSdkVersion();
918*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public boolean is64Bit();
919*344a7f5eSAndroid Build Coastguard Worker    method public static boolean is64BitAbi(String);
920*344a7f5eSAndroid Build Coastguard Worker    method public static boolean is64BitInstructionSet(String);
921*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public boolean isCheckJniEnabled();
922*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public boolean isNativeDebuggable();
923*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isValidClassLoaderContext(String);
924*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public Object newNonMovableArray(Class<?>, int);
925*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public Object newUnpaddedArray(Class<?>, int);
926*344a7f5eSAndroid Build Coastguard Worker    method public void notifyStartupCompleted();
927*344a7f5eSAndroid Build Coastguard Worker    method public void preloadDexCaches();
928*344a7f5eSAndroid Build Coastguard Worker    method public static void registerAppInfo(String, String, String, String[], int);
929*344a7f5eSAndroid Build Coastguard Worker    method public void registerNativeAllocation(long);
930*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public void registerNativeAllocation(int);
931*344a7f5eSAndroid Build Coastguard Worker    method public void registerNativeFree(long);
932*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public void registerNativeFree(int);
933*344a7f5eSAndroid Build Coastguard Worker    method public static void registerSensitiveThread();
934*344a7f5eSAndroid Build Coastguard Worker    method public void requestConcurrentGC();
935*344a7f5eSAndroid Build Coastguard Worker    method public static void resetJitCounters();
936*344a7f5eSAndroid Build Coastguard Worker    method public static void setDedupeHiddenApiWarnings(boolean);
937*344a7f5eSAndroid Build Coastguard Worker    method public void setDisabledCompatChanges(long[]);
938*344a7f5eSAndroid Build Coastguard Worker    method public void setHiddenApiAccessLogSamplingRate(int);
939*344a7f5eSAndroid Build Coastguard Worker    method public void setHiddenApiExemptions(String[]);
940*344a7f5eSAndroid Build Coastguard Worker    method public static void setHiddenApiUsageLogger(dalvik.system.VMRuntime.HiddenApiUsageLogger);
941*344a7f5eSAndroid Build Coastguard Worker    method public static void setNonSdkApiUsageConsumer(java.util.function.Consumer<java.lang.String>);
942*344a7f5eSAndroid Build Coastguard Worker    method public static void setProcessDataDirectory(String);
943*344a7f5eSAndroid Build Coastguard Worker    method public static void setProcessPackageName(String);
944*344a7f5eSAndroid Build Coastguard Worker    method public void setTargetSdkVersion(int);
945*344a7f5eSAndroid Build Coastguard Worker    method public void updateProcessState(int);
946*344a7f5eSAndroid Build Coastguard Worker    method public String vmInstructionSet();
947*344a7f5eSAndroid Build Coastguard Worker    method public String vmLibrary();
948*344a7f5eSAndroid Build Coastguard Worker    field public static final int CODE_PATH_TYPE_PRIMARY_APK = 1; // 0x1
949*344a7f5eSAndroid Build Coastguard Worker    field public static final int CODE_PATH_TYPE_SECONDARY_DEX = 4; // 0x4
950*344a7f5eSAndroid Build Coastguard Worker    field public static final int CODE_PATH_TYPE_SPLIT_APK = 2; // 0x2
951*344a7f5eSAndroid Build Coastguard Worker    field public static final int SDK_VERSION_CUR_DEVELOPMENT = 10000; // 0x2710
952*344a7f5eSAndroid Build Coastguard Worker  }
953*344a7f5eSAndroid Build Coastguard Worker
954*344a7f5eSAndroid Build Coastguard Worker  public static interface VMRuntime.HiddenApiUsageLogger {
955*344a7f5eSAndroid Build Coastguard Worker    method public void hiddenApiUsed(int, String, String, int, boolean);
956*344a7f5eSAndroid Build Coastguard Worker    field public static final int ACCESS_METHOD_JNI = 2; // 0x2
957*344a7f5eSAndroid Build Coastguard Worker    field public static final int ACCESS_METHOD_LINKING = 3; // 0x3
958*344a7f5eSAndroid Build Coastguard Worker    field public static final int ACCESS_METHOD_NONE = 0; // 0x0
959*344a7f5eSAndroid Build Coastguard Worker    field public static final int ACCESS_METHOD_REFLECTION = 1; // 0x1
960*344a7f5eSAndroid Build Coastguard Worker  }
961*344a7f5eSAndroid Build Coastguard Worker
962*344a7f5eSAndroid Build Coastguard Worker  public final class VMStack {
963*344a7f5eSAndroid Build Coastguard Worker    method @Nullable @dalvik.annotation.optimization.FastNative public static dalvik.system.AnnotatedStackTraceElement[] getAnnotatedThreadStackTrace(Thread);
964*344a7f5eSAndroid Build Coastguard Worker  }
965*344a7f5eSAndroid Build Coastguard Worker
966*344a7f5eSAndroid Build Coastguard Worker  public final class ZygoteHooks {
967*344a7f5eSAndroid Build Coastguard Worker    method public static void gcAndFinalize();
968*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isIndefiniteThreadSuspensionSafe();
969*344a7f5eSAndroid Build Coastguard Worker    method public static void onBeginPreload();
970*344a7f5eSAndroid Build Coastguard Worker    method public static void onEndPreload();
971*344a7f5eSAndroid Build Coastguard Worker    method public static void postForkChild(int, boolean, boolean, String);
972*344a7f5eSAndroid Build Coastguard Worker    method public static void postForkCommon();
973*344a7f5eSAndroid Build Coastguard Worker    method public static void postForkSystemServer(int);
974*344a7f5eSAndroid Build Coastguard Worker    method public static void preFork();
975*344a7f5eSAndroid Build Coastguard Worker    method public static void startZygoteNoThreadCreation();
976*344a7f5eSAndroid Build Coastguard Worker    method public static void stopZygoteNoThreadCreation();
977*344a7f5eSAndroid Build Coastguard Worker  }
978*344a7f5eSAndroid Build Coastguard Worker
979*344a7f5eSAndroid Build Coastguard Worker}
980*344a7f5eSAndroid Build Coastguard Worker
981*344a7f5eSAndroid Build Coastguard Workerpackage java.io {
982*344a7f5eSAndroid Build Coastguard Worker
983*344a7f5eSAndroid Build Coastguard Worker  public final class FileDescriptor {
984*344a7f5eSAndroid Build Coastguard Worker    method public int getInt$();
985*344a7f5eSAndroid Build Coastguard Worker    method public void setInt$(int);
986*344a7f5eSAndroid Build Coastguard Worker  }
987*344a7f5eSAndroid Build Coastguard Worker
988*344a7f5eSAndroid Build Coastguard Worker  public class FileInputStream extends java.io.InputStream {
989*344a7f5eSAndroid Build Coastguard Worker    ctor public FileInputStream(java.io.FileDescriptor, boolean);
990*344a7f5eSAndroid Build Coastguard Worker  }
991*344a7f5eSAndroid Build Coastguard Worker
992*344a7f5eSAndroid Build Coastguard Worker}
993*344a7f5eSAndroid Build Coastguard Worker
994*344a7f5eSAndroid Build Coastguard Workerpackage java.lang {
995*344a7f5eSAndroid Build Coastguard Worker
996*344a7f5eSAndroid Build Coastguard Worker  public class Thread implements java.lang.Runnable {
997*344a7f5eSAndroid Build Coastguard Worker    method public static java.lang.Thread.UncaughtExceptionHandler getUncaughtExceptionPreHandler();
998*344a7f5eSAndroid Build Coastguard Worker    method public static void setUncaughtExceptionPreHandler(java.lang.Thread.UncaughtExceptionHandler);
999*344a7f5eSAndroid Build Coastguard Worker  }
1000*344a7f5eSAndroid Build Coastguard Worker
1001*344a7f5eSAndroid Build Coastguard Worker}
1002*344a7f5eSAndroid Build Coastguard Worker
1003*344a7f5eSAndroid Build Coastguard Workerpackage java.net {
1004*344a7f5eSAndroid Build Coastguard Worker
1005*344a7f5eSAndroid Build Coastguard Worker  public class DatagramSocket implements java.io.Closeable {
1006*344a7f5eSAndroid Build Coastguard Worker    method public java.io.FileDescriptor getFileDescriptor$();
1007*344a7f5eSAndroid Build Coastguard Worker  }
1008*344a7f5eSAndroid Build Coastguard Worker
1009*344a7f5eSAndroid Build Coastguard Worker  public final class Inet4Address extends java.net.InetAddress {
1010*344a7f5eSAndroid Build Coastguard Worker    field public static final java.net.InetAddress ALL;
1011*344a7f5eSAndroid Build Coastguard Worker    field public static final java.net.InetAddress ANY;
1012*344a7f5eSAndroid Build Coastguard Worker    field public static final java.net.InetAddress LOOPBACK;
1013*344a7f5eSAndroid Build Coastguard Worker  }
1014*344a7f5eSAndroid Build Coastguard Worker
1015*344a7f5eSAndroid Build Coastguard Worker  public final class Inet6Address extends java.net.InetAddress {
1016*344a7f5eSAndroid Build Coastguard Worker    field public static final java.net.InetAddress ANY;
1017*344a7f5eSAndroid Build Coastguard Worker    field public static final java.net.InetAddress LOOPBACK;
1018*344a7f5eSAndroid Build Coastguard Worker  }
1019*344a7f5eSAndroid Build Coastguard Worker
1020*344a7f5eSAndroid Build Coastguard Worker  public class InetAddress implements java.io.Serializable {
1021*344a7f5eSAndroid Build Coastguard Worker    method public static void clearDnsCache();
1022*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.net.InetAddress[] getAllByNameOnNet(@Nullable String, int) throws java.net.UnknownHostException;
1023*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.net.InetAddress getByNameOnNet(@Nullable String, int) throws java.net.UnknownHostException;
1024*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public static boolean isNumeric(String);
1025*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public static java.net.InetAddress parseNumericAddress(String);
1026*344a7f5eSAndroid Build Coastguard Worker  }
1027*344a7f5eSAndroid Build Coastguard Worker
1028*344a7f5eSAndroid Build Coastguard Worker  public class InetSocketAddress extends java.net.SocketAddress {
1029*344a7f5eSAndroid Build Coastguard Worker    ctor public InetSocketAddress();
1030*344a7f5eSAndroid Build Coastguard Worker  }
1031*344a7f5eSAndroid Build Coastguard Worker
1032*344a7f5eSAndroid Build Coastguard Worker  public class ServerSocket implements java.io.Closeable {
1033*344a7f5eSAndroid Build Coastguard Worker    method public java.net.SocketImpl getImpl() throws java.net.SocketException;
1034*344a7f5eSAndroid Build Coastguard Worker  }
1035*344a7f5eSAndroid Build Coastguard Worker
1036*344a7f5eSAndroid Build Coastguard Worker  public class Socket implements java.io.Closeable {
1037*344a7f5eSAndroid Build Coastguard Worker    method public java.io.FileDescriptor getFileDescriptor$();
1038*344a7f5eSAndroid Build Coastguard Worker  }
1039*344a7f5eSAndroid Build Coastguard Worker
1040*344a7f5eSAndroid Build Coastguard Worker  public abstract class SocketImpl implements java.net.SocketOptions {
1041*344a7f5eSAndroid Build Coastguard Worker    method public java.io.FileDescriptor getFD$();
1042*344a7f5eSAndroid Build Coastguard Worker  }
1043*344a7f5eSAndroid Build Coastguard Worker
1044*344a7f5eSAndroid Build Coastguard Worker}
1045*344a7f5eSAndroid Build Coastguard Worker
1046*344a7f5eSAndroid Build Coastguard Workerpackage java.nio {
1047*344a7f5eSAndroid Build Coastguard Worker
1048*344a7f5eSAndroid Build Coastguard Worker  public abstract class ByteBuffer extends java.nio.Buffer implements java.lang.Comparable<java.nio.ByteBuffer> {
1049*344a7f5eSAndroid Build Coastguard Worker    method public void setAccessible(boolean);
1050*344a7f5eSAndroid Build Coastguard Worker  }
1051*344a7f5eSAndroid Build Coastguard Worker
1052*344a7f5eSAndroid Build Coastguard Worker  public class DirectByteBuffer extends java.nio.MappedByteBuffer {
1053*344a7f5eSAndroid Build Coastguard Worker    ctor public DirectByteBuffer(int, long, java.io.FileDescriptor, Runnable, boolean);
1054*344a7f5eSAndroid Build Coastguard Worker    method public final long address();
1055*344a7f5eSAndroid Build Coastguard Worker    method public final void setAccessible(boolean);
1056*344a7f5eSAndroid Build Coastguard Worker  }
1057*344a7f5eSAndroid Build Coastguard Worker
1058*344a7f5eSAndroid Build Coastguard Worker  public final class NIOAccess {
1059*344a7f5eSAndroid Build Coastguard Worker    method public static Object getBaseArray(java.nio.Buffer);
1060*344a7f5eSAndroid Build Coastguard Worker    method public static int getBaseArrayOffset(java.nio.Buffer);
1061*344a7f5eSAndroid Build Coastguard Worker  }
1062*344a7f5eSAndroid Build Coastguard Worker
1063*344a7f5eSAndroid Build Coastguard Worker  public final class NioUtils {
1064*344a7f5eSAndroid Build Coastguard Worker    method public static void freeDirectBuffer(java.nio.ByteBuffer);
1065*344a7f5eSAndroid Build Coastguard Worker    method public static byte[] unsafeArray(java.nio.ByteBuffer);
1066*344a7f5eSAndroid Build Coastguard Worker    method public static int unsafeArrayOffset(java.nio.ByteBuffer);
1067*344a7f5eSAndroid Build Coastguard Worker  }
1068*344a7f5eSAndroid Build Coastguard Worker
1069*344a7f5eSAndroid Build Coastguard Worker}
1070*344a7f5eSAndroid Build Coastguard Worker
1071*344a7f5eSAndroid Build Coastguard Workerpackage java.security {
1072*344a7f5eSAndroid Build Coastguard Worker
1073*344a7f5eSAndroid Build Coastguard Worker  public abstract class Provider extends java.util.Properties {
1074*344a7f5eSAndroid Build Coastguard Worker    method public void warmUpServiceProvision();
1075*344a7f5eSAndroid Build Coastguard Worker  }
1076*344a7f5eSAndroid Build Coastguard Worker
1077*344a7f5eSAndroid Build Coastguard Worker  public abstract class Signature extends java.security.SignatureSpi {
1078*344a7f5eSAndroid Build Coastguard Worker    method public java.security.SignatureSpi getCurrentSpi();
1079*344a7f5eSAndroid Build Coastguard Worker  }
1080*344a7f5eSAndroid Build Coastguard Worker
1081*344a7f5eSAndroid Build Coastguard Worker}
1082*344a7f5eSAndroid Build Coastguard Worker
1083*344a7f5eSAndroid Build Coastguard Workerpackage java.text {
1084*344a7f5eSAndroid Build Coastguard Worker
1085*344a7f5eSAndroid Build Coastguard Worker  public abstract class DateFormat extends java.text.Format {
1086*344a7f5eSAndroid Build Coastguard Worker    method public static final void set24HourTimePref(Boolean);
1087*344a7f5eSAndroid Build Coastguard Worker  }
1088*344a7f5eSAndroid Build Coastguard Worker
1089*344a7f5eSAndroid Build Coastguard Worker}
1090*344a7f5eSAndroid Build Coastguard Worker
1091*344a7f5eSAndroid Build Coastguard Workerpackage java.util {
1092*344a7f5eSAndroid Build Coastguard Worker
1093*344a7f5eSAndroid Build Coastguard Worker  public class LinkedHashMap<K, V> extends java.util.HashMap<K,V> implements java.util.Map<K,V> {
1094*344a7f5eSAndroid Build Coastguard Worker    method public java.util.Map.Entry<K,V> eldest();
1095*344a7f5eSAndroid Build Coastguard Worker  }
1096*344a7f5eSAndroid Build Coastguard Worker
1097*344a7f5eSAndroid Build Coastguard Worker}
1098*344a7f5eSAndroid Build Coastguard Worker
1099*344a7f5eSAndroid Build Coastguard Workerpackage java.util.zip {
1100*344a7f5eSAndroid Build Coastguard Worker
1101*344a7f5eSAndroid Build Coastguard Worker  public class ZipEntry implements java.lang.Cloneable {
1102*344a7f5eSAndroid Build Coastguard Worker    method public long getDataOffset();
1103*344a7f5eSAndroid Build Coastguard Worker  }
1104*344a7f5eSAndroid Build Coastguard Worker
1105*344a7f5eSAndroid Build Coastguard Worker}
1106*344a7f5eSAndroid Build Coastguard Worker
1107*344a7f5eSAndroid Build Coastguard Workerpackage javax.crypto {
1108*344a7f5eSAndroid Build Coastguard Worker
1109*344a7f5eSAndroid Build Coastguard Worker  public class Cipher {
1110*344a7f5eSAndroid Build Coastguard Worker    method public javax.crypto.CipherSpi getCurrentSpi();
1111*344a7f5eSAndroid Build Coastguard Worker  }
1112*344a7f5eSAndroid Build Coastguard Worker
1113*344a7f5eSAndroid Build Coastguard Worker  public class Mac implements java.lang.Cloneable {
1114*344a7f5eSAndroid Build Coastguard Worker    method public javax.crypto.MacSpi getCurrentSpi();
1115*344a7f5eSAndroid Build Coastguard Worker  }
1116*344a7f5eSAndroid Build Coastguard Worker
1117*344a7f5eSAndroid Build Coastguard Worker}
1118*344a7f5eSAndroid Build Coastguard Worker
1119*344a7f5eSAndroid Build Coastguard Workerpackage javax.net.ssl {
1120*344a7f5eSAndroid Build Coastguard Worker
1121*344a7f5eSAndroid Build Coastguard Worker  public abstract class HttpsURLConnection extends java.net.HttpURLConnection {
1122*344a7f5eSAndroid Build Coastguard Worker    method public static javax.net.ssl.HostnameVerifier getStrictHostnameVerifier();
1123*344a7f5eSAndroid Build Coastguard Worker  }
1124*344a7f5eSAndroid Build Coastguard Worker
1125*344a7f5eSAndroid Build Coastguard Worker}
1126*344a7f5eSAndroid Build Coastguard Worker
1127*344a7f5eSAndroid Build Coastguard Workerpackage libcore.content.type {
1128*344a7f5eSAndroid Build Coastguard Worker
1129*344a7f5eSAndroid Build Coastguard Worker  public final class MimeMap {
1130*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public libcore.content.type.MimeMap.Builder buildUpon();
1131*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static libcore.content.type.MimeMap.Builder builder();
1132*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Set<java.lang.String> extensions();
1133*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static libcore.content.type.MimeMap getDefault();
1134*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String guessExtensionFromMimeType(@Nullable String);
1135*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String guessMimeTypeFromExtension(@Nullable String);
1136*344a7f5eSAndroid Build Coastguard Worker    method public boolean hasExtension(@Nullable String);
1137*344a7f5eSAndroid Build Coastguard Worker    method public boolean hasMimeType(@Nullable String);
1138*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Set<java.lang.String> mimeTypes();
1139*344a7f5eSAndroid Build Coastguard Worker    method public static void setDefaultSupplier(@NonNull java.util.function.Supplier<libcore.content.type.MimeMap>);
1140*344a7f5eSAndroid Build Coastguard Worker  }
1141*344a7f5eSAndroid Build Coastguard Worker
1142*344a7f5eSAndroid Build Coastguard Worker  public static final class MimeMap.Builder {
1143*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public libcore.content.type.MimeMap.Builder addMimeMapping(@NonNull String, @NonNull java.util.List<java.lang.String>);
1144*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public libcore.content.type.MimeMap build();
1145*344a7f5eSAndroid Build Coastguard Worker  }
1146*344a7f5eSAndroid Build Coastguard Worker
1147*344a7f5eSAndroid Build Coastguard Worker}
1148*344a7f5eSAndroid Build Coastguard Worker
1149*344a7f5eSAndroid Build Coastguard Workerpackage libcore.io {
1150*344a7f5eSAndroid Build Coastguard Worker
1151*344a7f5eSAndroid Build Coastguard Worker  public class ForwardingOs implements libcore.io.Os {
1152*344a7f5eSAndroid Build Coastguard Worker    ctor protected ForwardingOs(@NonNull libcore.io.Os);
1153*344a7f5eSAndroid Build Coastguard Worker    method public boolean access(@Nullable String, int) throws android.system.ErrnoException;
1154*344a7f5eSAndroid Build Coastguard Worker    method public java.io.FileDescriptor open(@Nullable String, int, int) throws android.system.ErrnoException;
1155*344a7f5eSAndroid Build Coastguard Worker    method public void remove(@Nullable String) throws android.system.ErrnoException;
1156*344a7f5eSAndroid Build Coastguard Worker    method public void rename(@Nullable String, @Nullable String) throws android.system.ErrnoException;
1157*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.system.StructStat stat(@Nullable String) throws android.system.ErrnoException;
1158*344a7f5eSAndroid Build Coastguard Worker    method public void unlink(@Nullable String) throws android.system.ErrnoException;
1159*344a7f5eSAndroid Build Coastguard Worker  }
1160*344a7f5eSAndroid Build Coastguard Worker
1161*344a7f5eSAndroid Build Coastguard Worker  public final class IoBridge {
1162*344a7f5eSAndroid Build Coastguard Worker    method public static void closeAndSignalBlockedThreads(@NonNull java.io.FileDescriptor) throws java.io.IOException;
1163*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.io.FileDescriptor open(@NonNull String, int) throws java.io.FileNotFoundException;
1164*344a7f5eSAndroid Build Coastguard Worker    method public static int read(@NonNull java.io.FileDescriptor, @NonNull byte[], int, int) throws java.io.IOException;
1165*344a7f5eSAndroid Build Coastguard Worker    method public static void write(@NonNull java.io.FileDescriptor, @NonNull byte[], int, int) throws java.io.IOException;
1166*344a7f5eSAndroid Build Coastguard Worker  }
1167*344a7f5eSAndroid Build Coastguard Worker
1168*344a7f5eSAndroid Build Coastguard Worker  public final class IoUtils {
1169*344a7f5eSAndroid Build Coastguard Worker    method public static int acquireRawFd(@NonNull java.io.FileDescriptor);
1170*344a7f5eSAndroid Build Coastguard Worker    method public static void close(@Nullable java.io.FileDescriptor) throws java.io.IOException;
1171*344a7f5eSAndroid Build Coastguard Worker    method public static void closeQuietly(@Nullable AutoCloseable);
1172*344a7f5eSAndroid Build Coastguard Worker    method public static void closeQuietly(@Nullable java.io.FileDescriptor);
1173*344a7f5eSAndroid Build Coastguard Worker    method public static void closeQuietly(@Nullable java.net.Socket);
1174*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static byte[] readFileAsByteArray(@NonNull String) throws java.io.IOException;
1175*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static String readFileAsString(@NonNull String) throws java.io.IOException;
1176*344a7f5eSAndroid Build Coastguard Worker    method public static void setBlocking(@NonNull java.io.FileDescriptor, boolean) throws java.io.IOException;
1177*344a7f5eSAndroid Build Coastguard Worker    method public static void setFdOwner(@NonNull java.io.FileDescriptor, @NonNull Object);
1178*344a7f5eSAndroid Build Coastguard Worker  }
1179*344a7f5eSAndroid Build Coastguard Worker
1180*344a7f5eSAndroid Build Coastguard Worker  public final class Memory {
1181*344a7f5eSAndroid Build Coastguard Worker    method public static void memmove(@NonNull Object, int, @NonNull Object, int, long);
1182*344a7f5eSAndroid Build Coastguard Worker    method public static int peekInt(@NonNull byte[], int, @NonNull java.nio.ByteOrder);
1183*344a7f5eSAndroid Build Coastguard Worker    method public static short peekShort(@NonNull byte[], int, @NonNull java.nio.ByteOrder);
1184*344a7f5eSAndroid Build Coastguard Worker    method public static void pokeInt(@NonNull byte[], int, int, @NonNull java.nio.ByteOrder);
1185*344a7f5eSAndroid Build Coastguard Worker    method public static void pokeLong(@NonNull byte[], int, long, @NonNull java.nio.ByteOrder);
1186*344a7f5eSAndroid Build Coastguard Worker    method public static void pokeShort(@NonNull byte[], int, short, @NonNull java.nio.ByteOrder);
1187*344a7f5eSAndroid Build Coastguard Worker  }
1188*344a7f5eSAndroid Build Coastguard Worker
1189*344a7f5eSAndroid Build Coastguard Worker  public interface Os {
1190*344a7f5eSAndroid Build Coastguard Worker    method public static boolean compareAndSetDefault(libcore.io.Os, libcore.io.Os);
1191*344a7f5eSAndroid Build Coastguard Worker    method public static libcore.io.Os getDefault();
1192*344a7f5eSAndroid Build Coastguard Worker  }
1193*344a7f5eSAndroid Build Coastguard Worker
1194*344a7f5eSAndroid Build Coastguard Worker  public final class Streams {
1195*344a7f5eSAndroid Build Coastguard Worker    method public static int copy(@NonNull java.io.InputStream, @NonNull java.io.OutputStream) throws java.io.IOException;
1196*344a7f5eSAndroid Build Coastguard Worker    method public static void readFully(@NonNull java.io.InputStream, @NonNull byte[]) throws java.io.IOException;
1197*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static byte[] readFully(@NonNull java.io.InputStream) throws java.io.IOException;
1198*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static String readFully(@NonNull java.io.Reader) throws java.io.IOException;
1199*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static byte[] readFullyNoClose(@NonNull java.io.InputStream) throws java.io.IOException;
1200*344a7f5eSAndroid Build Coastguard Worker    method public static int readSingleByte(@NonNull java.io.InputStream) throws java.io.IOException;
1201*344a7f5eSAndroid Build Coastguard Worker    method public static long skipByReading(@NonNull java.io.InputStream, long) throws java.io.IOException;
1202*344a7f5eSAndroid Build Coastguard Worker    method public static void writeSingleByte(@NonNull java.io.OutputStream, int) throws java.io.IOException;
1203*344a7f5eSAndroid Build Coastguard Worker  }
1204*344a7f5eSAndroid Build Coastguard Worker
1205*344a7f5eSAndroid Build Coastguard Worker}
1206*344a7f5eSAndroid Build Coastguard Worker
1207*344a7f5eSAndroid Build Coastguard Workerpackage libcore.net {
1208*344a7f5eSAndroid Build Coastguard Worker
1209*344a7f5eSAndroid Build Coastguard Worker  public class InetAddressUtils {
1210*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isNumericAddress(String);
1211*344a7f5eSAndroid Build Coastguard Worker    method public static java.net.InetAddress parseNumericAddress(String);
1212*344a7f5eSAndroid Build Coastguard Worker  }
1213*344a7f5eSAndroid Build Coastguard Worker
1214*344a7f5eSAndroid Build Coastguard Worker  public abstract class NetworkSecurityPolicy {
1215*344a7f5eSAndroid Build Coastguard Worker    ctor public NetworkSecurityPolicy();
1216*344a7f5eSAndroid Build Coastguard Worker    method public static libcore.net.NetworkSecurityPolicy getInstance();
1217*344a7f5eSAndroid Build Coastguard Worker    method public abstract boolean isCertificateTransparencyVerificationRequired(String);
1218*344a7f5eSAndroid Build Coastguard Worker    method public abstract boolean isCleartextTrafficPermitted();
1219*344a7f5eSAndroid Build Coastguard Worker    method public abstract boolean isCleartextTrafficPermitted(String);
1220*344a7f5eSAndroid Build Coastguard Worker    method public static void setInstance(libcore.net.NetworkSecurityPolicy);
1221*344a7f5eSAndroid Build Coastguard Worker  }
1222*344a7f5eSAndroid Build Coastguard Worker
1223*344a7f5eSAndroid Build Coastguard Worker}
1224*344a7f5eSAndroid Build Coastguard Worker
1225*344a7f5eSAndroid Build Coastguard Workerpackage libcore.net.event {
1226*344a7f5eSAndroid Build Coastguard Worker
1227*344a7f5eSAndroid Build Coastguard Worker  public final class NetworkEventDispatcher {
1228*344a7f5eSAndroid Build Coastguard Worker    method public void dispatchNetworkConfigurationChange();
1229*344a7f5eSAndroid Build Coastguard Worker    method public static libcore.net.event.NetworkEventDispatcher getInstance();
1230*344a7f5eSAndroid Build Coastguard Worker  }
1231*344a7f5eSAndroid Build Coastguard Worker
1232*344a7f5eSAndroid Build Coastguard Worker}
1233*344a7f5eSAndroid Build Coastguard Worker
1234*344a7f5eSAndroid Build Coastguard Workerpackage libcore.net.http {
1235*344a7f5eSAndroid Build Coastguard Worker
1236*344a7f5eSAndroid Build Coastguard Worker  public interface Dns {
1237*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<java.net.InetAddress> lookup(@Nullable String) throws java.net.UnknownHostException;
1238*344a7f5eSAndroid Build Coastguard Worker  }
1239*344a7f5eSAndroid Build Coastguard Worker
1240*344a7f5eSAndroid Build Coastguard Worker  public class HttpURLConnectionFactory {
1241*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static libcore.net.http.HttpURLConnectionFactory createInstance();
1242*344a7f5eSAndroid Build Coastguard Worker    method public java.net.URLConnection openConnection(@NonNull java.net.URL, @NonNull javax.net.SocketFactory, @NonNull java.net.Proxy) throws java.io.IOException;
1243*344a7f5eSAndroid Build Coastguard Worker    method public void setDns(@NonNull libcore.net.http.Dns);
1244*344a7f5eSAndroid Build Coastguard Worker    method public void setNewConnectionPool(int, long, @NonNull java.util.concurrent.TimeUnit);
1245*344a7f5eSAndroid Build Coastguard Worker  }
1246*344a7f5eSAndroid Build Coastguard Worker
1247*344a7f5eSAndroid Build Coastguard Worker}
1248*344a7f5eSAndroid Build Coastguard Worker
1249*344a7f5eSAndroid Build Coastguard Workerpackage libcore.util {
1250*344a7f5eSAndroid Build Coastguard Worker
1251*344a7f5eSAndroid Build Coastguard Worker  public final class EmptyArray {
1252*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final boolean[] BOOLEAN;
1253*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final byte[] BYTE;
1254*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final float[] FLOAT;
1255*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final int[] INT;
1256*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final long[] LONG;
1257*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final Object[] OBJECT;
1258*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final String[] STRING;
1259*344a7f5eSAndroid Build Coastguard Worker  }
1260*344a7f5eSAndroid Build Coastguard Worker
1261*344a7f5eSAndroid Build Coastguard Worker  public final class FP16 {
1262*344a7f5eSAndroid Build Coastguard Worker    method public static short ceil(short);
1263*344a7f5eSAndroid Build Coastguard Worker    method public static int compare(short, short);
1264*344a7f5eSAndroid Build Coastguard Worker    method public static boolean equals(short, short);
1265*344a7f5eSAndroid Build Coastguard Worker    method public static short floor(short);
1266*344a7f5eSAndroid Build Coastguard Worker    method public static boolean greater(short, short);
1267*344a7f5eSAndroid Build Coastguard Worker    method public static boolean greaterEquals(short, short);
1268*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isInfinite(short);
1269*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isNaN(short);
1270*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isNormalized(short);
1271*344a7f5eSAndroid Build Coastguard Worker    method public static boolean less(short, short);
1272*344a7f5eSAndroid Build Coastguard Worker    method public static boolean lessEquals(short, short);
1273*344a7f5eSAndroid Build Coastguard Worker    method public static short max(short, short);
1274*344a7f5eSAndroid Build Coastguard Worker    method public static short min(short, short);
1275*344a7f5eSAndroid Build Coastguard Worker    method public static short rint(short);
1276*344a7f5eSAndroid Build Coastguard Worker    method public static float toFloat(short);
1277*344a7f5eSAndroid Build Coastguard Worker    method public static short toHalf(float);
1278*344a7f5eSAndroid Build Coastguard Worker    method public static String toHexString(short);
1279*344a7f5eSAndroid Build Coastguard Worker    method public static short trunc(short);
1280*344a7f5eSAndroid Build Coastguard Worker    field public static final short EPSILON = 5120; // 0x1400
1281*344a7f5eSAndroid Build Coastguard Worker    field public static final int EXPONENT_BIAS = 15; // 0xf
1282*344a7f5eSAndroid Build Coastguard Worker    field public static final int EXPONENT_SHIFT = 10; // 0xa
1283*344a7f5eSAndroid Build Coastguard Worker    field public static final int EXPONENT_SIGNIFICAND_MASK = 32767; // 0x7fff
1284*344a7f5eSAndroid Build Coastguard Worker    field public static final short LOWEST_VALUE = -1025; // 0xfffffbff
1285*344a7f5eSAndroid Build Coastguard Worker    field public static final int MAX_EXPONENT = 15; // 0xf
1286*344a7f5eSAndroid Build Coastguard Worker    field public static final short MAX_VALUE = 31743; // 0x7bff
1287*344a7f5eSAndroid Build Coastguard Worker    field public static final int MIN_EXPONENT = -14; // 0xfffffff2
1288*344a7f5eSAndroid Build Coastguard Worker    field public static final short MIN_NORMAL = 1024; // 0x400
1289*344a7f5eSAndroid Build Coastguard Worker    field public static final short MIN_VALUE = 1; // 0x1
1290*344a7f5eSAndroid Build Coastguard Worker    field public static final short NEGATIVE_INFINITY = -1024; // 0xfffffc00
1291*344a7f5eSAndroid Build Coastguard Worker    field public static final short NEGATIVE_ZERO = -32768; // 0xffff8000
1292*344a7f5eSAndroid Build Coastguard Worker    field public static final short NaN = 32256; // 0x7e00
1293*344a7f5eSAndroid Build Coastguard Worker    field public static final short POSITIVE_INFINITY = 31744; // 0x7c00
1294*344a7f5eSAndroid Build Coastguard Worker    field public static final short POSITIVE_ZERO = 0; // 0x0
1295*344a7f5eSAndroid Build Coastguard Worker    field public static final int SHIFTED_EXPONENT_MASK = 31; // 0x1f
1296*344a7f5eSAndroid Build Coastguard Worker    field public static final int SIGNIFICAND_MASK = 1023; // 0x3ff
1297*344a7f5eSAndroid Build Coastguard Worker    field public static final int SIGN_MASK = 32768; // 0x8000
1298*344a7f5eSAndroid Build Coastguard Worker    field public static final int SIGN_SHIFT = 15; // 0xf
1299*344a7f5eSAndroid Build Coastguard Worker    field public static final int SIZE = 16; // 0x10
1300*344a7f5eSAndroid Build Coastguard Worker  }
1301*344a7f5eSAndroid Build Coastguard Worker
1302*344a7f5eSAndroid Build Coastguard Worker  public class HexEncoding {
1303*344a7f5eSAndroid Build Coastguard Worker    method public static byte[] decode(String) throws java.lang.IllegalArgumentException;
1304*344a7f5eSAndroid Build Coastguard Worker    method public static byte[] decode(String, boolean) throws java.lang.IllegalArgumentException;
1305*344a7f5eSAndroid Build Coastguard Worker    method public static byte[] decode(char[]) throws java.lang.IllegalArgumentException;
1306*344a7f5eSAndroid Build Coastguard Worker    method public static byte[] decode(char[], boolean) throws java.lang.IllegalArgumentException;
1307*344a7f5eSAndroid Build Coastguard Worker    method public static char[] encode(byte[]);
1308*344a7f5eSAndroid Build Coastguard Worker    method public static char[] encode(byte[], boolean);
1309*344a7f5eSAndroid Build Coastguard Worker    method public static char[] encode(byte[], int, int);
1310*344a7f5eSAndroid Build Coastguard Worker    method public static String encodeToString(byte, boolean);
1311*344a7f5eSAndroid Build Coastguard Worker    method public static String encodeToString(byte[]);
1312*344a7f5eSAndroid Build Coastguard Worker    method public static String encodeToString(byte[], boolean);
1313*344a7f5eSAndroid Build Coastguard Worker  }
1314*344a7f5eSAndroid Build Coastguard Worker
1315*344a7f5eSAndroid Build Coastguard Worker  public class NativeAllocationRegistry {
1316*344a7f5eSAndroid Build Coastguard Worker    ctor public NativeAllocationRegistry(@NonNull ClassLoader, long, long);
1317*344a7f5eSAndroid Build Coastguard Worker    method public static void applyFreeFunction(long, long);
1318*344a7f5eSAndroid Build Coastguard Worker    method public static libcore.util.NativeAllocationRegistry createMalloced(@NonNull ClassLoader, long, long);
1319*344a7f5eSAndroid Build Coastguard Worker    method public static libcore.util.NativeAllocationRegistry createMalloced(@NonNull ClassLoader, long);
1320*344a7f5eSAndroid Build Coastguard Worker    method public static libcore.util.NativeAllocationRegistry createNonmalloced(@NonNull ClassLoader, long, long);
1321*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public Runnable registerNativeAllocation(@NonNull Object, long);
1322*344a7f5eSAndroid Build Coastguard Worker  }
1323*344a7f5eSAndroid Build Coastguard Worker
1324*344a7f5eSAndroid Build Coastguard Worker  public class SneakyThrow {
1325*344a7f5eSAndroid Build Coastguard Worker    method public static void sneakyThrow(@NonNull Throwable);
1326*344a7f5eSAndroid Build Coastguard Worker  }
1327*344a7f5eSAndroid Build Coastguard Worker
1328*344a7f5eSAndroid Build Coastguard Worker  public class XmlObjectFactory {
1329*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static org.xml.sax.XMLReader newXMLReader();
1330*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static org.xmlpull.v1.XmlPullParser newXmlPullParser();
1331*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static org.xmlpull.v1.XmlSerializer newXmlSerializer();
1332*344a7f5eSAndroid Build Coastguard Worker  }
1333*344a7f5eSAndroid Build Coastguard Worker
1334*344a7f5eSAndroid Build Coastguard Worker}
1335*344a7f5eSAndroid Build Coastguard Worker
1336*344a7f5eSAndroid Build Coastguard Workerpackage org.apache.harmony.dalvik.ddmc {
1337*344a7f5eSAndroid Build Coastguard Worker
1338*344a7f5eSAndroid Build Coastguard Worker  public class Chunk {
1339*344a7f5eSAndroid Build Coastguard Worker    ctor public Chunk(int, byte[], int, int);
1340*344a7f5eSAndroid Build Coastguard Worker    ctor public Chunk(int, java.nio.ByteBuffer);
1341*344a7f5eSAndroid Build Coastguard Worker    field public int type;
1342*344a7f5eSAndroid Build Coastguard Worker  }
1343*344a7f5eSAndroid Build Coastguard Worker
1344*344a7f5eSAndroid Build Coastguard Worker  public abstract class ChunkHandler {
1345*344a7f5eSAndroid Build Coastguard Worker    ctor public ChunkHandler();
1346*344a7f5eSAndroid Build Coastguard Worker    method public static org.apache.harmony.dalvik.ddmc.Chunk createFailChunk(int, String);
1347*344a7f5eSAndroid Build Coastguard Worker    method public abstract org.apache.harmony.dalvik.ddmc.Chunk handleChunk(org.apache.harmony.dalvik.ddmc.Chunk);
1348*344a7f5eSAndroid Build Coastguard Worker    method public static String name(int);
1349*344a7f5eSAndroid Build Coastguard Worker    method public abstract void onConnected();
1350*344a7f5eSAndroid Build Coastguard Worker    method public abstract void onDisconnected();
1351*344a7f5eSAndroid Build Coastguard Worker    method public static int type(String);
1352*344a7f5eSAndroid Build Coastguard Worker    method public static java.nio.ByteBuffer wrapChunk(org.apache.harmony.dalvik.ddmc.Chunk);
1353*344a7f5eSAndroid Build Coastguard Worker    field public static final java.nio.ByteOrder CHUNK_ORDER;
1354*344a7f5eSAndroid Build Coastguard Worker  }
1355*344a7f5eSAndroid Build Coastguard Worker
1356*344a7f5eSAndroid Build Coastguard Worker  public final class DdmServer {
1357*344a7f5eSAndroid Build Coastguard Worker    method public static void registerHandler(int, org.apache.harmony.dalvik.ddmc.ChunkHandler);
1358*344a7f5eSAndroid Build Coastguard Worker    method public static void registrationComplete();
1359*344a7f5eSAndroid Build Coastguard Worker    method public static void sendChunk(org.apache.harmony.dalvik.ddmc.Chunk);
1360*344a7f5eSAndroid Build Coastguard Worker    method public static org.apache.harmony.dalvik.ddmc.ChunkHandler unregisterHandler(int);
1361*344a7f5eSAndroid Build Coastguard Worker  }
1362*344a7f5eSAndroid Build Coastguard Worker
1363*344a7f5eSAndroid Build Coastguard Worker  public final class DdmVmInternal {
1364*344a7f5eSAndroid Build Coastguard Worker    method public static void setRecentAllocationsTrackingEnabled(boolean);
1365*344a7f5eSAndroid Build Coastguard Worker    method public static void setThreadNotifyEnabled(boolean);
1366*344a7f5eSAndroid Build Coastguard Worker  }
1367*344a7f5eSAndroid Build Coastguard Worker
1368*344a7f5eSAndroid Build Coastguard Worker}
1369*344a7f5eSAndroid Build Coastguard Worker
1370*344a7f5eSAndroid Build Coastguard Workerpackage org.json {
1371*344a7f5eSAndroid Build Coastguard Worker
1372*344a7f5eSAndroid Build Coastguard Worker  public class JSONObject {
1373*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Set<java.lang.String> keySet();
1374*344a7f5eSAndroid Build Coastguard Worker  }
1375*344a7f5eSAndroid Build Coastguard Worker
1376*344a7f5eSAndroid Build Coastguard Worker}
1377*344a7f5eSAndroid Build Coastguard Worker
1378*344a7f5eSAndroid Build Coastguard Workerpackage sun.misc {
1379*344a7f5eSAndroid Build Coastguard Worker
1380*344a7f5eSAndroid Build Coastguard Worker  public class Cleaner extends java.lang.ref.PhantomReference<java.lang.Object> {
1381*344a7f5eSAndroid Build Coastguard Worker    method public void clean();
1382*344a7f5eSAndroid Build Coastguard Worker    method public static sun.misc.Cleaner create(Object, Runnable);
1383*344a7f5eSAndroid Build Coastguard Worker  }
1384*344a7f5eSAndroid Build Coastguard Worker
1385*344a7f5eSAndroid Build Coastguard Worker  public final class Unsafe {
1386*344a7f5eSAndroid Build Coastguard Worker    method public int arrayBaseOffset(Class);
1387*344a7f5eSAndroid Build Coastguard Worker    method public int arrayIndexScale(Class);
1388*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void copyMemory(long, long, long);
1389*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public boolean getBoolean(Object, long);
1390*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public byte getByte(Object, long);
1391*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public byte getByte(long);
1392*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public double getDouble(Object, long);
1393*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public double getDouble(long);
1394*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public float getFloat(Object, long);
1395*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public float getFloat(long);
1396*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public int getInt(Object, long);
1397*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public int getInt(long);
1398*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public long getLong(Object, long);
1399*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public long getLong(long);
1400*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public Object getObject(Object, long);
1401*344a7f5eSAndroid Build Coastguard Worker    method public static sun.misc.Unsafe getUnsafe();
1402*344a7f5eSAndroid Build Coastguard Worker    method public long objectFieldOffset(java.lang.reflect.Field);
1403*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putBoolean(Object, long, boolean);
1404*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putByte(Object, long, byte);
1405*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putByte(long, byte);
1406*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putDouble(Object, long, double);
1407*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putDouble(long, double);
1408*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putFloat(Object, long, float);
1409*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putFloat(long, float);
1410*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putInt(Object, long, int);
1411*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putInt(long, int);
1412*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putLong(Object, long, long);
1413*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putLong(long, long);
1414*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putObject(Object, long, Object);
1415*344a7f5eSAndroid Build Coastguard Worker  }
1416*344a7f5eSAndroid Build Coastguard Worker
1417*344a7f5eSAndroid Build Coastguard Worker}
1418*344a7f5eSAndroid Build Coastguard Worker
1419*344a7f5eSAndroid Build Coastguard Workerpackage sun.security.jca {
1420*344a7f5eSAndroid Build Coastguard Worker
1421*344a7f5eSAndroid Build Coastguard Worker  public class Providers {
1422*344a7f5eSAndroid Build Coastguard Worker    method public static Object startJarVerification();
1423*344a7f5eSAndroid Build Coastguard Worker    method public static void stopJarVerification(Object);
1424*344a7f5eSAndroid Build Coastguard Worker  }
1425*344a7f5eSAndroid Build Coastguard Worker
1426*344a7f5eSAndroid Build Coastguard Worker}
1427*344a7f5eSAndroid Build Coastguard Worker
1428*344a7f5eSAndroid Build Coastguard Workerpackage sun.security.pkcs {
1429*344a7f5eSAndroid Build Coastguard Worker
1430*344a7f5eSAndroid Build Coastguard Worker  public class PKCS7 {
1431*344a7f5eSAndroid Build Coastguard Worker    ctor public PKCS7(java.io.InputStream) throws java.io.IOException, sun.security.pkcs.ParsingException;
1432*344a7f5eSAndroid Build Coastguard Worker    ctor public PKCS7(byte[]) throws sun.security.pkcs.ParsingException;
1433*344a7f5eSAndroid Build Coastguard Worker    method public java.security.cert.X509Certificate[] getCertificates();
1434*344a7f5eSAndroid Build Coastguard Worker    method public sun.security.pkcs.SignerInfo[] getSignerInfos();
1435*344a7f5eSAndroid Build Coastguard Worker    method public sun.security.pkcs.SignerInfo verify(sun.security.pkcs.SignerInfo, java.io.InputStream) throws java.io.IOException, java.security.NoSuchAlgorithmException, java.security.SignatureException;
1436*344a7f5eSAndroid Build Coastguard Worker    method public sun.security.pkcs.SignerInfo[] verify(byte[]) throws java.security.NoSuchAlgorithmException, java.security.SignatureException;
1437*344a7f5eSAndroid Build Coastguard Worker  }
1438*344a7f5eSAndroid Build Coastguard Worker
1439*344a7f5eSAndroid Build Coastguard Worker  public class ParsingException extends java.io.IOException {
1440*344a7f5eSAndroid Build Coastguard Worker  }
1441*344a7f5eSAndroid Build Coastguard Worker
1442*344a7f5eSAndroid Build Coastguard Worker  public class SignerInfo {
1443*344a7f5eSAndroid Build Coastguard Worker    ctor public SignerInfo();
1444*344a7f5eSAndroid Build Coastguard Worker    method public java.util.ArrayList<java.security.cert.X509Certificate> getCertificateChain(sun.security.pkcs.PKCS7) throws java.io.IOException;
1445*344a7f5eSAndroid Build Coastguard Worker  }
1446*344a7f5eSAndroid Build Coastguard Worker
1447*344a7f5eSAndroid Build Coastguard Worker}
1448*344a7f5eSAndroid Build Coastguard Worker
1449*344a7f5eSAndroid Build Coastguard Workerpackage sun.security.util {
1450*344a7f5eSAndroid Build Coastguard Worker
1451*344a7f5eSAndroid Build Coastguard Worker  public final class ObjectIdentifier implements java.io.Serializable {
1452*344a7f5eSAndroid Build Coastguard Worker    ctor public ObjectIdentifier(String) throws java.io.IOException;
1453*344a7f5eSAndroid Build Coastguard Worker  }
1454*344a7f5eSAndroid Build Coastguard Worker
1455*344a7f5eSAndroid Build Coastguard Worker}
1456*344a7f5eSAndroid Build Coastguard Worker
1457*344a7f5eSAndroid Build Coastguard Workerpackage sun.security.x509 {
1458*344a7f5eSAndroid Build Coastguard Worker
1459*344a7f5eSAndroid Build Coastguard Worker  public class AlgorithmId implements java.io.Serializable {
1460*344a7f5eSAndroid Build Coastguard Worker    ctor public AlgorithmId(sun.security.util.ObjectIdentifier);
1461*344a7f5eSAndroid Build Coastguard Worker    method public String getName();
1462*344a7f5eSAndroid Build Coastguard Worker  }
1463*344a7f5eSAndroid Build Coastguard Worker
1464*344a7f5eSAndroid Build Coastguard Worker}
1465*344a7f5eSAndroid Build Coastguard Worker
1466