xref: /aosp_15_r20/prebuilts/sdk/33/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 CONTROL_AUTOMOTIVE_GNSS = "android.permission.CONTROL_AUTOMOTIVE_GNSS";
6*344a7f5eSAndroid Build Coastguard Worker    field public static final String GET_INTENT_SENDER_INTENT = "android.permission.GET_INTENT_SENDER_INTENT";
7*344a7f5eSAndroid Build Coastguard Worker    field public static final String MAKE_UID_VISIBLE = "android.permission.MAKE_UID_VISIBLE";
8*344a7f5eSAndroid Build Coastguard Worker  }
9*344a7f5eSAndroid Build Coastguard Worker
10*344a7f5eSAndroid Build Coastguard Worker}
11*344a7f5eSAndroid Build Coastguard Worker
12*344a7f5eSAndroid Build Coastguard Workerpackage android.adservices {
13*344a7f5eSAndroid Build Coastguard Worker
14*344a7f5eSAndroid Build Coastguard Worker  public class AdServicesFrameworkInitializer {
15*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
16*344a7f5eSAndroid Build Coastguard Worker  }
17*344a7f5eSAndroid Build Coastguard Worker
18*344a7f5eSAndroid Build Coastguard Worker}
19*344a7f5eSAndroid Build Coastguard Worker
20*344a7f5eSAndroid Build Coastguard Workerpackage android.app {
21*344a7f5eSAndroid Build Coastguard Worker
22*344a7f5eSAndroid Build Coastguard Worker  @UiContext public class Activity extends android.view.ContextThemeWrapper implements android.content.ComponentCallbacks2 android.view.KeyEvent.Callback android.view.LayoutInflater.Factory2 android.view.View.OnCreateContextMenuListener android.view.Window.Callback {
23*344a7f5eSAndroid Build Coastguard Worker    method public final boolean addDumpable(@NonNull android.util.Dumpable);
24*344a7f5eSAndroid Build Coastguard Worker  }
25*344a7f5eSAndroid Build Coastguard Worker
26*344a7f5eSAndroid Build Coastguard Worker  public class ActivityManager {
27*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER) public void addHomeVisibilityListener(@NonNull java.util.concurrent.Executor, @NonNull android.app.HomeVisibilityListener);
28*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER) public void removeHomeVisibilityListener(@NonNull android.app.HomeVisibilityListener);
29*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.CHANGE_CONFIGURATION) public boolean updateMccMncConfiguration(@NonNull String, @NonNull String);
30*344a7f5eSAndroid Build Coastguard Worker  }
31*344a7f5eSAndroid Build Coastguard Worker
32*344a7f5eSAndroid Build Coastguard Worker  public class AppOpsManager {
33*344a7f5eSAndroid Build Coastguard Worker    field public static final String OPSTR_NO_ISOLATED_STORAGE = "android:no_isolated_storage";
34*344a7f5eSAndroid Build Coastguard Worker  }
35*344a7f5eSAndroid Build Coastguard Worker
36*344a7f5eSAndroid Build Coastguard Worker  public class BroadcastOptions {
37*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public int getMaxManifestReceiverApiLevel();
38*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public void setMaxManifestReceiverApiLevel(int);
39*344a7f5eSAndroid Build Coastguard Worker  }
40*344a7f5eSAndroid Build Coastguard Worker
41*344a7f5eSAndroid Build Coastguard Worker  public abstract class HomeVisibilityListener {
42*344a7f5eSAndroid Build Coastguard Worker    ctor public HomeVisibilityListener();
43*344a7f5eSAndroid Build Coastguard Worker    method public abstract void onHomeVisibilityChanged(boolean);
44*344a7f5eSAndroid Build Coastguard Worker  }
45*344a7f5eSAndroid Build Coastguard Worker
46*344a7f5eSAndroid Build Coastguard Worker  public class NotificationManager {
47*344a7f5eSAndroid Build Coastguard Worker    method public boolean hasEnabledNotificationListener(@NonNull String, @NonNull android.os.UserHandle);
48*344a7f5eSAndroid Build Coastguard Worker    field public static final String ACTION_NOTIFICATION_LISTENER_ENABLED_CHANGED = "android.app.action.NOTIFICATION_LISTENER_ENABLED_CHANGED";
49*344a7f5eSAndroid Build Coastguard Worker  }
50*344a7f5eSAndroid Build Coastguard Worker
51*344a7f5eSAndroid Build Coastguard Worker  public final class PendingIntent implements android.os.Parcelable {
52*344a7f5eSAndroid Build Coastguard Worker    method public boolean addCancelListener(@NonNull java.util.concurrent.Executor, @NonNull android.app.PendingIntent.CancelListener);
53*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.GET_INTENT_SENDER_INTENT) public boolean intentFilterEquals(@Nullable android.app.PendingIntent);
54*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @RequiresPermission(android.Manifest.permission.GET_INTENT_SENDER_INTENT) public java.util.List<android.content.pm.ResolveInfo> queryIntentComponents(int);
55*344a7f5eSAndroid Build Coastguard Worker    method public void removeCancelListener(@NonNull android.app.PendingIntent.CancelListener);
56*344a7f5eSAndroid Build Coastguard Worker  }
57*344a7f5eSAndroid Build Coastguard Worker
58*344a7f5eSAndroid Build Coastguard Worker  public static interface PendingIntent.CancelListener {
59*344a7f5eSAndroid Build Coastguard Worker    method public void onCanceled(@NonNull android.app.PendingIntent);
60*344a7f5eSAndroid Build Coastguard Worker  }
61*344a7f5eSAndroid Build Coastguard Worker
62*344a7f5eSAndroid Build Coastguard Worker  public class StatusBarManager {
63*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void setExpansionDisabledForSimNetworkLock(boolean);
64*344a7f5eSAndroid Build Coastguard Worker  }
65*344a7f5eSAndroid Build Coastguard Worker
66*344a7f5eSAndroid Build Coastguard Worker}
67*344a7f5eSAndroid Build Coastguard Worker
68*344a7f5eSAndroid Build Coastguard Workerpackage android.app.admin {
69*344a7f5eSAndroid Build Coastguard Worker
70*344a7f5eSAndroid Build Coastguard Worker  public class DevicePolicyManager {
71*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public void acknowledgeNewUserDisclaimer();
72*344a7f5eSAndroid Build Coastguard Worker    method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public android.os.UserHandle getLogoutUser();
73*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public int logoutUser();
74*344a7f5eSAndroid Build Coastguard Worker    field public static final String ACTION_SHOW_NEW_USER_DISCLAIMER = "android.app.action.SHOW_NEW_USER_DISCLAIMER";
75*344a7f5eSAndroid Build Coastguard Worker  }
76*344a7f5eSAndroid Build Coastguard Worker
77*344a7f5eSAndroid Build Coastguard Worker}
78*344a7f5eSAndroid Build Coastguard Worker
79*344a7f5eSAndroid Build Coastguard Workerpackage android.app.role {
80*344a7f5eSAndroid Build Coastguard Worker
81*344a7f5eSAndroid Build Coastguard Worker  public class RoleFrameworkInitializer {
82*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
83*344a7f5eSAndroid Build Coastguard Worker  }
84*344a7f5eSAndroid Build Coastguard Worker
85*344a7f5eSAndroid Build Coastguard Worker  public final class RoleManager {
86*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getBrowserRoleHolder(int);
87*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getSmsRoleHolder(int);
88*344a7f5eSAndroid Build Coastguard Worker    method @Nullable @RequiresPermission(android.Manifest.permission.SET_PREFERRED_APPLICATIONS) public boolean setBrowserRoleHolder(@Nullable String, int);
89*344a7f5eSAndroid Build Coastguard Worker  }
90*344a7f5eSAndroid Build Coastguard Worker
91*344a7f5eSAndroid Build Coastguard Worker}
92*344a7f5eSAndroid Build Coastguard Worker
93*344a7f5eSAndroid Build Coastguard Workerpackage android.app.sdksandbox {
94*344a7f5eSAndroid Build Coastguard Worker
95*344a7f5eSAndroid Build Coastguard Worker  public class SdkSandboxManagerFrameworkInitializer {
96*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
97*344a7f5eSAndroid Build Coastguard Worker  }
98*344a7f5eSAndroid Build Coastguard Worker
99*344a7f5eSAndroid Build Coastguard Worker}
100*344a7f5eSAndroid Build Coastguard Worker
101*344a7f5eSAndroid Build Coastguard Workerpackage android.app.usage {
102*344a7f5eSAndroid Build Coastguard Worker
103*344a7f5eSAndroid Build Coastguard Worker  public class NetworkStatsManager {
104*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void forceUpdate();
105*344a7f5eSAndroid Build Coastguard Worker    method public static int getCollapsedRatType(int);
106*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public android.net.NetworkStats getMobileUidStats();
107*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public android.net.NetworkStats getWifiUidStats();
108*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void noteUidForeground(int, boolean);
109*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>);
110*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @WorkerThread public android.app.usage.NetworkStats queryDetailsForDevice(@NonNull android.net.NetworkTemplate, long, long);
111*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @WorkerThread public android.app.usage.NetworkStats queryDetailsForUidTagState(@NonNull android.net.NetworkTemplate, long, long, int, int, int) throws java.lang.SecurityException;
112*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @WorkerThread public android.app.usage.NetworkStats querySummary(@NonNull android.net.NetworkTemplate, long, long) throws java.lang.SecurityException;
113*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @WorkerThread public android.app.usage.NetworkStats.Bucket querySummaryForDevice(@NonNull android.net.NetworkTemplate, long, long);
114*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @WorkerThread public android.app.usage.NetworkStats queryTaggedSummary(@NonNull android.net.NetworkTemplate, long, long) throws java.lang.SecurityException;
115*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}, conditional=true) public void registerUsageCallback(@NonNull android.net.NetworkTemplate, long, @NonNull java.util.concurrent.Executor, @NonNull android.app.usage.NetworkStatsManager.UsageCallback);
116*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setDefaultGlobalAlert(long);
117*344a7f5eSAndroid Build Coastguard Worker    method public void setPollForce(boolean);
118*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setPollOnOpen(boolean);
119*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setStatsProviderWarningAndLimitAsync(@NonNull String, long, long);
120*344a7f5eSAndroid Build Coastguard Worker    field public static final int NETWORK_TYPE_5G_NSA = -2; // 0xfffffffe
121*344a7f5eSAndroid Build Coastguard Worker  }
122*344a7f5eSAndroid Build Coastguard Worker
123*344a7f5eSAndroid Build Coastguard Worker  public abstract static class NetworkStatsManager.UsageCallback {
124*344a7f5eSAndroid Build Coastguard Worker    method public void onThresholdReached(@NonNull android.net.NetworkTemplate);
125*344a7f5eSAndroid Build Coastguard Worker  }
126*344a7f5eSAndroid Build Coastguard Worker
127*344a7f5eSAndroid Build Coastguard Worker}
128*344a7f5eSAndroid Build Coastguard Worker
129*344a7f5eSAndroid Build Coastguard Workerpackage android.bluetooth {
130*344a7f5eSAndroid Build Coastguard Worker
131*344a7f5eSAndroid Build Coastguard Worker  public class BluetoothFrameworkInitializer {
132*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
133*344a7f5eSAndroid Build Coastguard Worker    method public static void setBinderCallsStatsInitializer(@NonNull java.util.function.Consumer<android.content.Context>);
134*344a7f5eSAndroid Build Coastguard Worker    method public static void setBluetoothServiceManager(@NonNull android.os.BluetoothServiceManager);
135*344a7f5eSAndroid Build Coastguard Worker  }
136*344a7f5eSAndroid Build Coastguard Worker
137*344a7f5eSAndroid Build Coastguard Worker  public final class BluetoothPan implements android.bluetooth.BluetoothProfile {
138*344a7f5eSAndroid Build Coastguard Worker    method @Nullable @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED, android.Manifest.permission.TETHER_PRIVILEGED}) public android.net.TetheringManager.TetheredInterfaceRequest requestTetheredInterface(@NonNull java.util.concurrent.Executor, @NonNull android.net.TetheringManager.TetheredInterfaceCallback);
139*344a7f5eSAndroid Build Coastguard Worker  }
140*344a7f5eSAndroid Build Coastguard Worker
141*344a7f5eSAndroid Build Coastguard Worker}
142*344a7f5eSAndroid Build Coastguard Worker
143*344a7f5eSAndroid Build Coastguard Workerpackage android.compat {
144*344a7f5eSAndroid Build Coastguard Worker
145*344a7f5eSAndroid Build Coastguard Worker  public final class Compatibility {
146*344a7f5eSAndroid Build Coastguard Worker    method public static void clearBehaviorChangeDelegate();
147*344a7f5eSAndroid Build Coastguard Worker    method public static void clearOverrides();
148*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isChangeEnabled(long);
149*344a7f5eSAndroid Build Coastguard Worker    method public static void reportUnconditionalChange(long);
150*344a7f5eSAndroid Build Coastguard Worker    method public static void setBehaviorChangeDelegate(android.compat.Compatibility.BehaviorChangeDelegate);
151*344a7f5eSAndroid Build Coastguard Worker    method public static void setOverrides(android.compat.Compatibility.ChangeConfig);
152*344a7f5eSAndroid Build Coastguard Worker  }
153*344a7f5eSAndroid Build Coastguard Worker
154*344a7f5eSAndroid Build Coastguard Worker  public static interface Compatibility.BehaviorChangeDelegate {
155*344a7f5eSAndroid Build Coastguard Worker    method public default boolean isChangeEnabled(long);
156*344a7f5eSAndroid Build Coastguard Worker    method public default void onChangeReported(long);
157*344a7f5eSAndroid Build Coastguard Worker  }
158*344a7f5eSAndroid Build Coastguard Worker
159*344a7f5eSAndroid Build Coastguard Worker  public static final class Compatibility.ChangeConfig {
160*344a7f5eSAndroid Build Coastguard Worker    ctor public Compatibility.ChangeConfig(@NonNull java.util.Set<java.lang.Long>, @NonNull java.util.Set<java.lang.Long>);
161*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public long[] getDisabledChangesArray();
162*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Set<java.lang.Long> getDisabledSet();
163*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public long[] getEnabledChangesArray();
164*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Set<java.lang.Long> getEnabledSet();
165*344a7f5eSAndroid Build Coastguard Worker    method public boolean isEmpty();
166*344a7f5eSAndroid Build Coastguard Worker    method public boolean isForceDisabled(long);
167*344a7f5eSAndroid Build Coastguard Worker    method public boolean isForceEnabled(long);
168*344a7f5eSAndroid Build Coastguard Worker  }
169*344a7f5eSAndroid Build Coastguard Worker
170*344a7f5eSAndroid Build Coastguard Worker}
171*344a7f5eSAndroid Build Coastguard Worker
172*344a7f5eSAndroid Build Coastguard Workerpackage android.content {
173*344a7f5eSAndroid Build Coastguard Worker
174*344a7f5eSAndroid Build Coastguard Worker  public abstract class ContentProvider implements android.content.ComponentCallbacks2 {
175*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static android.net.Uri createContentUriForUser(@NonNull android.net.Uri, @NonNull android.os.UserHandle);
176*344a7f5eSAndroid Build Coastguard Worker  }
177*344a7f5eSAndroid Build Coastguard Worker
178*344a7f5eSAndroid Build Coastguard Worker  public abstract class ContentResolver {
179*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(value=android.Manifest.permission.INTERACT_ACROSS_USERS_FULL, conditional=true) public final void registerContentObserverAsUser(@NonNull android.net.Uri, boolean, @NonNull android.database.ContentObserver, @NonNull android.os.UserHandle);
180*344a7f5eSAndroid Build Coastguard Worker  }
181*344a7f5eSAndroid Build Coastguard Worker
182*344a7f5eSAndroid Build Coastguard Worker  public abstract class Context {
183*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.os.UserHandle getUser();
184*344a7f5eSAndroid Build Coastguard Worker    field public static final String PAC_PROXY_SERVICE = "pac_proxy";
185*344a7f5eSAndroid Build Coastguard Worker    field public static final String TEST_NETWORK_SERVICE = "test_network";
186*344a7f5eSAndroid Build Coastguard Worker  }
187*344a7f5eSAndroid Build Coastguard Worker
188*344a7f5eSAndroid Build Coastguard Worker  public class Intent implements java.lang.Cloneable android.os.Parcelable {
189*344a7f5eSAndroid Build Coastguard Worker    field public static final String ACTION_SETTING_RESTORED = "android.os.action.SETTING_RESTORED";
190*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_SETTING_NAME = "setting_name";
191*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_SETTING_NEW_VALUE = "new_value";
192*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_SETTING_PREVIOUS_VALUE = "previous_value";
193*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_SETTING_RESTORED_FROM_SDK_INT = "restored_from_sdk_int";
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.content.pm {
199*344a7f5eSAndroid Build Coastguard Worker
200*344a7f5eSAndroid Build Coastguard Worker  public class ApplicationInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable {
201*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.content.pm.SharedLibraryInfo> getSharedLibraryInfos();
202*344a7f5eSAndroid Build Coastguard Worker  }
203*344a7f5eSAndroid Build Coastguard Worker
204*344a7f5eSAndroid Build Coastguard Worker  public abstract class PackageManager {
205*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String getPermissionControllerPackageName();
206*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String getSdkSandboxPackageName();
207*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.MAKE_UID_VISIBLE) public void makeUidVisible(int, int);
208*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_VERIFICATION_ROOT_HASH = "android.content.pm.extra.VERIFICATION_ROOT_HASH";
209*344a7f5eSAndroid Build Coastguard Worker    field public static final int MATCH_STATIC_SHARED_AND_SDK_LIBRARIES = 67108864; // 0x4000000
210*344a7f5eSAndroid Build Coastguard Worker  }
211*344a7f5eSAndroid Build Coastguard Worker
212*344a7f5eSAndroid Build Coastguard Worker}
213*344a7f5eSAndroid Build Coastguard Worker
214*344a7f5eSAndroid Build Coastguard Workerpackage android.hardware.usb {
215*344a7f5eSAndroid Build Coastguard Worker
216*344a7f5eSAndroid Build Coastguard Worker  public class UsbManager {
217*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getGadgetHalVersion();
218*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getUsbBandwidthMbps();
219*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getUsbHalVersion();
220*344a7f5eSAndroid Build Coastguard Worker    field public static final int GADGET_HAL_NOT_SUPPORTED = -1; // 0xffffffff
221*344a7f5eSAndroid Build Coastguard Worker    field public static final int GADGET_HAL_V1_0 = 10; // 0xa
222*344a7f5eSAndroid Build Coastguard Worker    field public static final int GADGET_HAL_V1_1 = 11; // 0xb
223*344a7f5eSAndroid Build Coastguard Worker    field public static final int GADGET_HAL_V1_2 = 12; // 0xc
224*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_10G = 10240; // 0x2800
225*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_20G = 20480; // 0x5000
226*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_40G = 40960; // 0xa000
227*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_5G = 5120; // 0x1400
228*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_FULL_SPEED = 12; // 0xc
229*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_HIGH_SPEED = 480; // 0x1e0
230*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_LOW_SPEED = 2; // 0x2
231*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_DATA_TRANSFER_RATE_UNKNOWN = -1; // 0xffffffff
232*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_HAL_NOT_SUPPORTED = -1; // 0xffffffff
233*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_HAL_RETRY = -2; // 0xfffffffe
234*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_HAL_V1_0 = 10; // 0xa
235*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_HAL_V1_1 = 11; // 0xb
236*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_HAL_V1_2 = 12; // 0xc
237*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_HAL_V1_3 = 13; // 0xd
238*344a7f5eSAndroid Build Coastguard Worker    field public static final int USB_HAL_V2_0 = 20; // 0x14
239*344a7f5eSAndroid Build Coastguard Worker  }
240*344a7f5eSAndroid Build Coastguard Worker
241*344a7f5eSAndroid Build Coastguard Worker}
242*344a7f5eSAndroid Build Coastguard Worker
243*344a7f5eSAndroid Build Coastguard Workerpackage android.location {
244*344a7f5eSAndroid Build Coastguard Worker
245*344a7f5eSAndroid Build Coastguard Worker  public class LocationManager {
246*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE, android.Manifest.permission.ACCESS_FINE_LOCATION}) public boolean injectLocation(@NonNull android.location.Location);
247*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.CONTROL_AUTOMOTIVE_GNSS) public boolean isAutomotiveGnssSuspended();
248*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.CONTROL_AUTOMOTIVE_GNSS) public void setAutomotiveGnssSuspended(boolean);
249*344a7f5eSAndroid Build Coastguard Worker  }
250*344a7f5eSAndroid Build Coastguard Worker
251*344a7f5eSAndroid Build Coastguard Worker}
252*344a7f5eSAndroid Build Coastguard Worker
253*344a7f5eSAndroid Build Coastguard Workerpackage android.media {
254*344a7f5eSAndroid Build Coastguard Worker
255*344a7f5eSAndroid Build Coastguard Worker  public class AudioManager {
256*344a7f5eSAndroid Build Coastguard Worker    method public void adjustStreamVolumeForUid(int, int, int, @NonNull String, int, int, int);
257*344a7f5eSAndroid Build Coastguard Worker    method public void adjustSuggestedStreamVolumeForUid(int, int, int, @NonNull String, int, int, int);
258*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.bluetooth.BluetoothCodecConfig> getHwOffloadFormatsSupportedForA2dp();
259*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.bluetooth.BluetoothLeAudioCodecConfig> getHwOffloadFormatsSupportedForLeAudio();
260*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void handleBluetoothActiveDeviceChanged(@Nullable android.bluetooth.BluetoothDevice, @Nullable android.bluetooth.BluetoothDevice, @NonNull android.media.BluetoothProfileConnectionInfo);
261*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setA2dpSuspended(boolean);
262*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setBluetoothHeadsetProperties(@NonNull String, boolean, boolean);
263*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setHfpEnabled(boolean);
264*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setHfpSamplingRate(int);
265*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setHfpVolume(int);
266*344a7f5eSAndroid Build Coastguard Worker    method public void setStreamVolumeForUid(int, int, int, @NonNull String, int, int, int);
267*344a7f5eSAndroid Build Coastguard Worker    field public static final int FLAG_FROM_KEY = 4096; // 0x1000
268*344a7f5eSAndroid Build Coastguard Worker  }
269*344a7f5eSAndroid Build Coastguard Worker
270*344a7f5eSAndroid Build Coastguard Worker  public final class BluetoothProfileConnectionInfo implements android.os.Parcelable {
271*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static android.media.BluetoothProfileConnectionInfo createA2dpInfo(boolean, int);
272*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static android.media.BluetoothProfileConnectionInfo createA2dpSinkInfo(int);
273*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static android.media.BluetoothProfileConnectionInfo createHearingAidInfo(boolean);
274*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static android.media.BluetoothProfileConnectionInfo createLeAudioInfo(boolean, boolean);
275*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
276*344a7f5eSAndroid Build Coastguard Worker    method public int getProfile();
277*344a7f5eSAndroid Build Coastguard Worker    method public int getVolume();
278*344a7f5eSAndroid Build Coastguard Worker    method public boolean isLeOutput();
279*344a7f5eSAndroid Build Coastguard Worker    method public boolean isSuppressNoisyIntent();
280*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
281*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.media.BluetoothProfileConnectionInfo> CREATOR;
282*344a7f5eSAndroid Build Coastguard Worker  }
283*344a7f5eSAndroid Build Coastguard Worker
284*344a7f5eSAndroid Build Coastguard Worker  public class MediaCommunicationManager {
285*344a7f5eSAndroid Build Coastguard Worker    method public void dispatchMediaKeyEvent(@NonNull android.view.KeyEvent, boolean);
286*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);
287*344a7f5eSAndroid Build Coastguard Worker    method public void unregisterSessionCallback(@NonNull android.media.MediaCommunicationManager.SessionCallback);
288*344a7f5eSAndroid Build Coastguard Worker  }
289*344a7f5eSAndroid Build Coastguard Worker
290*344a7f5eSAndroid Build Coastguard Worker  public static interface MediaCommunicationManager.SessionCallback {
291*344a7f5eSAndroid Build Coastguard Worker    method public default void onSession2TokenCreated(@NonNull android.media.Session2Token);
292*344a7f5eSAndroid Build Coastguard Worker    method public default void onSession2TokensChanged(@NonNull java.util.List<android.media.Session2Token>);
293*344a7f5eSAndroid Build Coastguard Worker  }
294*344a7f5eSAndroid Build Coastguard Worker
295*344a7f5eSAndroid Build Coastguard Worker  public class MediaFrameworkInitializer {
296*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
297*344a7f5eSAndroid Build Coastguard Worker    method public static void setMediaServiceManager(@NonNull android.media.MediaServiceManager);
298*344a7f5eSAndroid Build Coastguard Worker  }
299*344a7f5eSAndroid Build Coastguard Worker
300*344a7f5eSAndroid Build Coastguard Worker  public class MediaMetadataRetriever implements java.lang.AutoCloseable {
301*344a7f5eSAndroid Build Coastguard Worker    field public static final int METADATA_KEY_VIDEO_CODEC_MIME_TYPE = 40; // 0x28
302*344a7f5eSAndroid Build Coastguard Worker  }
303*344a7f5eSAndroid Build Coastguard Worker
304*344a7f5eSAndroid Build Coastguard Worker  @Deprecated public final class MediaParceledListSlice<T extends android.os.Parcelable> implements android.os.Parcelable {
305*344a7f5eSAndroid Build Coastguard Worker    ctor @Deprecated public MediaParceledListSlice(@NonNull java.util.List<T>);
306*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public int describeContents();
307*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public static <T extends android.os.Parcelable> android.media.MediaParceledListSlice<T> emptyList();
308*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public java.util.List<T> getList();
309*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public void setInlineCountLimit(int);
310*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public void writeToParcel(android.os.Parcel, int);
311*344a7f5eSAndroid Build Coastguard Worker    field @Deprecated @NonNull public static final android.os.Parcelable.ClassLoaderCreator<android.media.MediaParceledListSlice> CREATOR;
312*344a7f5eSAndroid Build Coastguard Worker  }
313*344a7f5eSAndroid Build Coastguard Worker
314*344a7f5eSAndroid Build Coastguard Worker  public class MediaServiceManager {
315*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaCommunicationServiceRegisterer();
316*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaSessionServiceRegisterer();
317*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaTranscodingServiceRegisterer();
318*344a7f5eSAndroid Build Coastguard Worker  }
319*344a7f5eSAndroid Build Coastguard Worker
320*344a7f5eSAndroid Build Coastguard Worker  public static final class MediaServiceManager.ServiceRegisterer {
321*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.os.IBinder get();
322*344a7f5eSAndroid Build Coastguard Worker  }
323*344a7f5eSAndroid Build Coastguard Worker
324*344a7f5eSAndroid Build Coastguard Worker}
325*344a7f5eSAndroid Build Coastguard Worker
326*344a7f5eSAndroid Build Coastguard Workerpackage android.media.session {
327*344a7f5eSAndroid Build Coastguard Worker
328*344a7f5eSAndroid Build Coastguard Worker  public static final class MediaController.PlaybackInfo implements android.os.Parcelable {
329*344a7f5eSAndroid Build Coastguard Worker    ctor public MediaController.PlaybackInfo(int, int, @IntRange(from=0) int, @IntRange(from=0) int, @NonNull android.media.AudioAttributes, @Nullable String);
330*344a7f5eSAndroid Build Coastguard Worker  }
331*344a7f5eSAndroid Build Coastguard Worker
332*344a7f5eSAndroid Build Coastguard Worker  public final class MediaSession {
333*344a7f5eSAndroid Build Coastguard Worker    field public static final int FLAG_EXCLUSIVE_GLOBAL_PRIORITY = 65536; // 0x10000
334*344a7f5eSAndroid Build Coastguard Worker  }
335*344a7f5eSAndroid Build Coastguard Worker
336*344a7f5eSAndroid Build Coastguard Worker  public static final class MediaSession.Token implements android.os.Parcelable {
337*344a7f5eSAndroid Build Coastguard Worker    method public int getUid();
338*344a7f5eSAndroid Build Coastguard Worker  }
339*344a7f5eSAndroid Build Coastguard Worker
340*344a7f5eSAndroid Build Coastguard Worker  public final class MediaSessionManager {
341*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);
342*344a7f5eSAndroid Build Coastguard Worker    method public void dispatchMediaKeyEvent(@NonNull android.view.KeyEvent, boolean);
343*344a7f5eSAndroid Build Coastguard Worker    method public void dispatchMediaKeyEventAsSystemService(@NonNull android.view.KeyEvent);
344*344a7f5eSAndroid Build Coastguard Worker    method public boolean dispatchMediaKeyEventToSessionAsSystemService(@NonNull android.view.KeyEvent, @NonNull android.media.session.MediaSession.Token);
345*344a7f5eSAndroid Build Coastguard Worker    method public void dispatchVolumeKeyEvent(@NonNull android.view.KeyEvent, int, boolean);
346*344a7f5eSAndroid Build Coastguard Worker    method public void dispatchVolumeKeyEventAsSystemService(@NonNull android.view.KeyEvent, int);
347*344a7f5eSAndroid Build Coastguard Worker    method public void dispatchVolumeKeyEventToSessionAsSystemService(@NonNull android.view.KeyEvent, @NonNull android.media.session.MediaSession.Token);
348*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.media.session.MediaController> getActiveSessionsForUser(@Nullable android.content.ComponentName, @NonNull android.os.UserHandle);
349*344a7f5eSAndroid Build Coastguard Worker    method public void registerRemoteSessionCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.session.MediaSessionManager.RemoteSessionCallback);
350*344a7f5eSAndroid Build Coastguard Worker    method public void unregisterRemoteSessionCallback(@NonNull android.media.session.MediaSessionManager.RemoteSessionCallback);
351*344a7f5eSAndroid Build Coastguard Worker    field public static final int RESULT_MEDIA_KEY_HANDLED = 1; // 0x1
352*344a7f5eSAndroid Build Coastguard Worker    field public static final int RESULT_MEDIA_KEY_NOT_HANDLED = 0; // 0x0
353*344a7f5eSAndroid Build Coastguard Worker  }
354*344a7f5eSAndroid Build Coastguard Worker
355*344a7f5eSAndroid Build Coastguard Worker  public static interface MediaSessionManager.RemoteSessionCallback {
356*344a7f5eSAndroid Build Coastguard Worker    method public void onDefaultRemoteSessionChanged(@Nullable android.media.session.MediaSession.Token);
357*344a7f5eSAndroid Build Coastguard Worker    method public void onVolumeChanged(@NonNull android.media.session.MediaSession.Token, int);
358*344a7f5eSAndroid Build Coastguard Worker  }
359*344a7f5eSAndroid Build Coastguard Worker
360*344a7f5eSAndroid Build Coastguard Worker}
361*344a7f5eSAndroid Build Coastguard Worker
362*344a7f5eSAndroid Build Coastguard Workerpackage android.nearby {
363*344a7f5eSAndroid Build Coastguard Worker
364*344a7f5eSAndroid Build Coastguard Worker  public final class NearbyFrameworkInitializer {
365*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
366*344a7f5eSAndroid Build Coastguard Worker  }
367*344a7f5eSAndroid Build Coastguard Worker
368*344a7f5eSAndroid Build Coastguard Worker}
369*344a7f5eSAndroid Build Coastguard Worker
370*344a7f5eSAndroid Build Coastguard Workerpackage android.net {
371*344a7f5eSAndroid Build Coastguard Worker
372*344a7f5eSAndroid Build Coastguard Worker  public final class ConnectivityFrameworkInitializer {
373*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
374*344a7f5eSAndroid Build Coastguard Worker  }
375*344a7f5eSAndroid Build Coastguard Worker
376*344a7f5eSAndroid Build Coastguard Worker  public final class ConnectivityFrameworkInitializerTiramisu {
377*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
378*344a7f5eSAndroid Build Coastguard Worker  }
379*344a7f5eSAndroid Build Coastguard Worker
380*344a7f5eSAndroid Build Coastguard Worker  public class ConnectivityManager {
381*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 addUidToMeteredNetworkAllowList(int);
382*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 addUidToMeteredNetworkDenyList(int);
383*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void factoryReset();
384*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();
385*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.net.ProxyInfo getGlobalProxy();
386*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static android.util.Range<java.lang.Integer> getIpSecNetIdRange();
387*344a7f5eSAndroid Build Coastguard Worker    method @Nullable @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public android.net.LinkProperties getRedactedLinkPropertiesForPackage(@NonNull android.net.LinkProperties, int, @NonNull String);
388*344a7f5eSAndroid Build Coastguard Worker    method @Nullable @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public android.net.NetworkCapabilities getRedactedNetworkCapabilitiesForPackage(@NonNull android.net.NetworkCapabilities, int, @NonNull String);
389*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);
390*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);
391*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 removeUidFromMeteredNetworkAllowList(int);
392*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 removeUidFromMeteredNetworkDenyList(int);
393*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 replaceFirewallChain(int, @NonNull int[]);
394*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);
395*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public boolean requestRouteToHostAddress(int, java.net.InetAddress);
396*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);
397*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);
398*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);
399*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 setFirewallChainEnabled(int, boolean);
400*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public void setGlobalProxy(@Nullable android.net.ProxyInfo);
401*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);
402*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public void setProfileNetworkPreference(@NonNull android.os.UserHandle, int, @Nullable java.util.concurrent.Executor, @Nullable Runnable);
403*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public void setProfileNetworkPreferences(@NonNull android.os.UserHandle, @NonNull java.util.List<android.net.ProfileNetworkPreference>, @Nullable java.util.concurrent.Executor, @Nullable Runnable);
404*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>>);
405*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 setUidFirewallRule(int, int, int);
406*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);
407*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);
408*344a7f5eSAndroid Build Coastguard Worker    method public void systemReady();
409*344a7f5eSAndroid Build Coastguard Worker    field public static final String ACTION_CLEAR_DNS_CACHE = "android.net.action.CLEAR_DNS_CACHE";
410*344a7f5eSAndroid Build Coastguard Worker    field public static final String ACTION_PROMPT_LOST_VALIDATION = "android.net.action.PROMPT_LOST_VALIDATION";
411*344a7f5eSAndroid Build Coastguard Worker    field public static final String ACTION_PROMPT_PARTIAL_CONNECTIVITY = "android.net.action.PROMPT_PARTIAL_CONNECTIVITY";
412*344a7f5eSAndroid Build Coastguard Worker    field public static final String ACTION_PROMPT_UNVALIDATED = "android.net.action.PROMPT_UNVALIDATED";
413*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_METERED_REASON_ADMIN_DISABLED = 262144; // 0x40000
414*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_METERED_REASON_DATA_SAVER = 65536; // 0x10000
415*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_METERED_REASON_MASK = -65536; // 0xffff0000
416*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_METERED_REASON_USER_RESTRICTED = 131072; // 0x20000
417*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_REASON_APP_STANDBY = 4; // 0x4
418*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_REASON_BATTERY_SAVER = 1; // 0x1
419*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_REASON_DOZE = 2; // 0x2
420*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_REASON_LOCKDOWN_VPN = 16; // 0x10
421*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_REASON_LOW_POWER_STANDBY = 32; // 0x20
422*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_REASON_NONE = 0; // 0x0
423*344a7f5eSAndroid Build Coastguard Worker    field public static final int BLOCKED_REASON_RESTRICTED_MODE = 8; // 0x8
424*344a7f5eSAndroid Build Coastguard Worker    field public static final int FIREWALL_CHAIN_DOZABLE = 1; // 0x1
425*344a7f5eSAndroid Build Coastguard Worker    field public static final int FIREWALL_CHAIN_LOW_POWER_STANDBY = 5; // 0x5
426*344a7f5eSAndroid Build Coastguard Worker    field public static final int FIREWALL_CHAIN_POWERSAVE = 3; // 0x3
427*344a7f5eSAndroid Build Coastguard Worker    field public static final int FIREWALL_CHAIN_RESTRICTED = 4; // 0x4
428*344a7f5eSAndroid Build Coastguard Worker    field public static final int FIREWALL_CHAIN_STANDBY = 2; // 0x2
429*344a7f5eSAndroid Build Coastguard Worker    field public static final int FIREWALL_RULE_ALLOW = 1; // 0x1
430*344a7f5eSAndroid Build Coastguard Worker    field public static final int FIREWALL_RULE_DEFAULT = 0; // 0x0
431*344a7f5eSAndroid Build Coastguard Worker    field public static final int FIREWALL_RULE_DENY = 2; // 0x2
432*344a7f5eSAndroid Build Coastguard Worker    field public static final int PROFILE_NETWORK_PREFERENCE_DEFAULT = 0; // 0x0
433*344a7f5eSAndroid Build Coastguard Worker    field public static final int PROFILE_NETWORK_PREFERENCE_ENTERPRISE = 1; // 0x1
434*344a7f5eSAndroid Build Coastguard Worker    field public static final int PROFILE_NETWORK_PREFERENCE_ENTERPRISE_NO_FALLBACK = 2; // 0x2
435*344a7f5eSAndroid Build Coastguard Worker  }
436*344a7f5eSAndroid Build Coastguard Worker
437*344a7f5eSAndroid Build Coastguard Worker  public static class ConnectivityManager.NetworkCallback {
438*344a7f5eSAndroid Build Coastguard Worker    method public void onBlockedStatusChanged(@NonNull android.net.Network, int);
439*344a7f5eSAndroid Build Coastguard Worker  }
440*344a7f5eSAndroid Build Coastguard Worker
441*344a7f5eSAndroid Build Coastguard Worker  public class ConnectivitySettingsManager {
442*344a7f5eSAndroid Build Coastguard Worker    method public static void clearGlobalProxy(@NonNull android.content.Context);
443*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static String getCaptivePortalHttpUrl(@NonNull android.content.Context);
444*344a7f5eSAndroid Build Coastguard Worker    method public static int getCaptivePortalMode(@NonNull android.content.Context, int);
445*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.time.Duration getConnectivityKeepPendingIntentDuration(@NonNull android.content.Context, @NonNull java.time.Duration);
446*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static android.util.Range<java.lang.Integer> getDnsResolverSampleRanges(@NonNull android.content.Context);
447*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.time.Duration getDnsResolverSampleValidityDuration(@NonNull android.content.Context, @NonNull java.time.Duration);
448*344a7f5eSAndroid Build Coastguard Worker    method public static int getDnsResolverSuccessThresholdPercent(@NonNull android.content.Context, int);
449*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static android.net.ProxyInfo getGlobalProxy(@NonNull android.content.Context);
450*344a7f5eSAndroid Build Coastguard Worker    method public static long getIngressRateLimitInBytesPerSecond(@NonNull android.content.Context);
451*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.time.Duration getMobileDataActivityTimeout(@NonNull android.content.Context, @NonNull java.time.Duration);
452*344a7f5eSAndroid Build Coastguard Worker    method public static boolean getMobileDataAlwaysOn(@NonNull android.content.Context, boolean);
453*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.util.Set<java.lang.Integer> getMobileDataPreferredUids(@NonNull android.content.Context);
454*344a7f5eSAndroid Build Coastguard Worker    method public static int getNetworkAvoidBadWifi(@NonNull android.content.Context);
455*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static String getNetworkMeteredMultipathPreference(@NonNull android.content.Context);
456*344a7f5eSAndroid Build Coastguard Worker    method public static int getNetworkSwitchNotificationMaximumDailyCount(@NonNull android.content.Context, int);
457*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.time.Duration getNetworkSwitchNotificationRateDuration(@NonNull android.content.Context, @NonNull java.time.Duration);
458*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static String getPrivateDnsDefaultMode(@NonNull android.content.Context);
459*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static String getPrivateDnsHostname(@NonNull android.content.Context);
460*344a7f5eSAndroid Build Coastguard Worker    method public static int getPrivateDnsMode(@NonNull android.content.Context);
461*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.util.Set<java.lang.Integer> getUidsAllowedOnRestrictedNetworks(@NonNull android.content.Context);
462*344a7f5eSAndroid Build Coastguard Worker    method public static boolean getWifiAlwaysRequested(@NonNull android.content.Context, boolean);
463*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.time.Duration getWifiDataActivityTimeout(@NonNull android.content.Context, @NonNull java.time.Duration);
464*344a7f5eSAndroid Build Coastguard Worker    method public static void setCaptivePortalHttpUrl(@NonNull android.content.Context, @Nullable String);
465*344a7f5eSAndroid Build Coastguard Worker    method public static void setCaptivePortalMode(@NonNull android.content.Context, int);
466*344a7f5eSAndroid Build Coastguard Worker    method public static void setConnectivityKeepPendingIntentDuration(@NonNull android.content.Context, @NonNull java.time.Duration);
467*344a7f5eSAndroid Build Coastguard Worker    method public static void setDnsResolverSampleRanges(@NonNull android.content.Context, @NonNull android.util.Range<java.lang.Integer>);
468*344a7f5eSAndroid Build Coastguard Worker    method public static void setDnsResolverSampleValidityDuration(@NonNull android.content.Context, @NonNull java.time.Duration);
469*344a7f5eSAndroid Build Coastguard Worker    method public static void setDnsResolverSuccessThresholdPercent(@NonNull android.content.Context, @IntRange(from=0, to=100) int);
470*344a7f5eSAndroid Build Coastguard Worker    method public static void setGlobalProxy(@NonNull android.content.Context, @NonNull android.net.ProxyInfo);
471*344a7f5eSAndroid Build Coastguard Worker    method public static void setIngressRateLimitInBytesPerSecond(@NonNull android.content.Context, @IntRange(from=-1L, to=4294967295L) long);
472*344a7f5eSAndroid Build Coastguard Worker    method public static void setMobileDataActivityTimeout(@NonNull android.content.Context, @NonNull java.time.Duration);
473*344a7f5eSAndroid Build Coastguard Worker    method public static void setMobileDataAlwaysOn(@NonNull android.content.Context, boolean);
474*344a7f5eSAndroid Build Coastguard Worker    method public static void setMobileDataPreferredUids(@NonNull android.content.Context, @NonNull java.util.Set<java.lang.Integer>);
475*344a7f5eSAndroid Build Coastguard Worker    method public static void setNetworkAvoidBadWifi(@NonNull android.content.Context, int);
476*344a7f5eSAndroid Build Coastguard Worker    method public static void setNetworkMeteredMultipathPreference(@NonNull android.content.Context, @NonNull String);
477*344a7f5eSAndroid Build Coastguard Worker    method public static void setNetworkSwitchNotificationMaximumDailyCount(@NonNull android.content.Context, @IntRange(from=0) int);
478*344a7f5eSAndroid Build Coastguard Worker    method public static void setNetworkSwitchNotificationRateDuration(@NonNull android.content.Context, @NonNull java.time.Duration);
479*344a7f5eSAndroid Build Coastguard Worker    method public static void setPrivateDnsDefaultMode(@NonNull android.content.Context, @NonNull int);
480*344a7f5eSAndroid Build Coastguard Worker    method public static void setPrivateDnsHostname(@NonNull android.content.Context, @Nullable String);
481*344a7f5eSAndroid Build Coastguard Worker    method public static void setPrivateDnsMode(@NonNull android.content.Context, int);
482*344a7f5eSAndroid Build Coastguard Worker    method public static void setUidsAllowedOnRestrictedNetworks(@NonNull android.content.Context, @NonNull java.util.Set<java.lang.Integer>);
483*344a7f5eSAndroid Build Coastguard Worker    method public static void setWifiAlwaysRequested(@NonNull android.content.Context, boolean);
484*344a7f5eSAndroid Build Coastguard Worker    method public static void setWifiDataActivityTimeout(@NonNull android.content.Context, @NonNull java.time.Duration);
485*344a7f5eSAndroid Build Coastguard Worker    field public static final int CAPTIVE_PORTAL_MODE_AVOID = 2; // 0x2
486*344a7f5eSAndroid Build Coastguard Worker    field public static final int CAPTIVE_PORTAL_MODE_IGNORE = 0; // 0x0
487*344a7f5eSAndroid Build Coastguard Worker    field public static final int CAPTIVE_PORTAL_MODE_PROMPT = 1; // 0x1
488*344a7f5eSAndroid Build Coastguard Worker    field public static final int NETWORK_AVOID_BAD_WIFI_AVOID = 2; // 0x2
489*344a7f5eSAndroid Build Coastguard Worker    field public static final int NETWORK_AVOID_BAD_WIFI_IGNORE = 0; // 0x0
490*344a7f5eSAndroid Build Coastguard Worker    field public static final int NETWORK_AVOID_BAD_WIFI_PROMPT = 1; // 0x1
491*344a7f5eSAndroid Build Coastguard Worker    field public static final int PRIVATE_DNS_MODE_OFF = 1; // 0x1
492*344a7f5eSAndroid Build Coastguard Worker    field public static final int PRIVATE_DNS_MODE_OPPORTUNISTIC = 2; // 0x2
493*344a7f5eSAndroid Build Coastguard Worker    field public static final int PRIVATE_DNS_MODE_PROVIDER_HOSTNAME = 3; // 0x3
494*344a7f5eSAndroid Build Coastguard Worker  }
495*344a7f5eSAndroid Build Coastguard Worker
496*344a7f5eSAndroid Build Coastguard Worker  public final class DhcpOption implements android.os.Parcelable {
497*344a7f5eSAndroid Build Coastguard Worker    ctor public DhcpOption(byte, @Nullable byte[]);
498*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
499*344a7f5eSAndroid Build Coastguard Worker    method public byte getType();
500*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public byte[] getValue();
501*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
502*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.DhcpOption> CREATOR;
503*344a7f5eSAndroid Build Coastguard Worker  }
504*344a7f5eSAndroid Build Coastguard Worker
505*344a7f5eSAndroid Build Coastguard Worker  public class EthernetManager {
506*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public void addEthernetStateListener(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.IntConsumer);
507*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public void addInterfaceStateListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.EthernetManager.InterfaceStateListener);
508*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public java.util.List<java.lang.String> getInterfaceList();
509*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public void removeEthernetStateListener(@NonNull java.util.function.IntConsumer);
510*344a7f5eSAndroid Build Coastguard Worker    method public void removeInterfaceStateListener(@NonNull android.net.EthernetManager.InterfaceStateListener);
511*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 setEthernetEnabled(boolean);
512*344a7f5eSAndroid Build Coastguard Worker    method public void setIncludeTestInterfaces(boolean);
513*344a7f5eSAndroid Build Coastguard Worker    field public static final int ETHERNET_STATE_DISABLED = 0; // 0x0
514*344a7f5eSAndroid Build Coastguard Worker    field public static final int ETHERNET_STATE_ENABLED = 1; // 0x1
515*344a7f5eSAndroid Build Coastguard Worker    field public static final int ROLE_CLIENT = 1; // 0x1
516*344a7f5eSAndroid Build Coastguard Worker    field public static final int ROLE_NONE = 0; // 0x0
517*344a7f5eSAndroid Build Coastguard Worker    field public static final int ROLE_SERVER = 2; // 0x2
518*344a7f5eSAndroid Build Coastguard Worker    field public static final int STATE_ABSENT = 0; // 0x0
519*344a7f5eSAndroid Build Coastguard Worker    field public static final int STATE_LINK_DOWN = 1; // 0x1
520*344a7f5eSAndroid Build Coastguard Worker    field public static final int STATE_LINK_UP = 2; // 0x2
521*344a7f5eSAndroid Build Coastguard Worker  }
522*344a7f5eSAndroid Build Coastguard Worker
523*344a7f5eSAndroid Build Coastguard Worker  public static interface EthernetManager.InterfaceStateListener {
524*344a7f5eSAndroid Build Coastguard Worker    method public void onInterfaceStateChanged(@NonNull String, int, int, @Nullable android.net.IpConfiguration);
525*344a7f5eSAndroid Build Coastguard Worker  }
526*344a7f5eSAndroid Build Coastguard Worker
527*344a7f5eSAndroid Build Coastguard Worker  public class IpSecManager {
528*344a7f5eSAndroid Build Coastguard Worker    field public static final int DIRECTION_FWD = 2; // 0x2
529*344a7f5eSAndroid Build Coastguard Worker  }
530*344a7f5eSAndroid Build Coastguard Worker
531*344a7f5eSAndroid Build Coastguard Worker  public static final class IpSecManager.UdpEncapsulationSocket implements java.lang.AutoCloseable {
532*344a7f5eSAndroid Build Coastguard Worker    method public int getResourceId();
533*344a7f5eSAndroid Build Coastguard Worker  }
534*344a7f5eSAndroid Build Coastguard Worker
535*344a7f5eSAndroid Build Coastguard Worker  public class LocalSocket implements java.io.Closeable {
536*344a7f5eSAndroid Build Coastguard Worker    ctor public LocalSocket(@NonNull java.io.FileDescriptor);
537*344a7f5eSAndroid Build Coastguard Worker  }
538*344a7f5eSAndroid Build Coastguard Worker
539*344a7f5eSAndroid Build Coastguard Worker  public final class NetworkAgentConfig implements android.os.Parcelable {
540*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getSubscriberId();
541*344a7f5eSAndroid Build Coastguard Worker    method public boolean isBypassableVpn();
542*344a7f5eSAndroid Build Coastguard Worker    method public boolean isVpnValidationRequired();
543*344a7f5eSAndroid Build Coastguard Worker  }
544*344a7f5eSAndroid Build Coastguard Worker
545*344a7f5eSAndroid Build Coastguard Worker  public static final class NetworkAgentConfig.Builder {
546*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkAgentConfig.Builder setBypassableVpn(boolean);
547*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkAgentConfig.Builder setLocalRoutesExcludedForVpn(boolean);
548*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkAgentConfig.Builder setSubscriberId(@Nullable String);
549*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkAgentConfig.Builder setVpnRequiresValidation(boolean);
550*344a7f5eSAndroid Build Coastguard Worker  }
551*344a7f5eSAndroid Build Coastguard Worker
552*344a7f5eSAndroid Build Coastguard Worker  public final class NetworkCapabilities implements android.os.Parcelable {
553*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_FACTORY) public java.util.Set<java.lang.Integer> getAllowedUids();
554*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public java.util.Set<android.util.Range<java.lang.Integer>> getUids();
555*344a7f5eSAndroid Build Coastguard Worker    method public boolean hasForbiddenCapability(int);
556*344a7f5eSAndroid Build Coastguard Worker    field public static final long REDACT_ALL = -1L; // 0xffffffffffffffffL
557*344a7f5eSAndroid Build Coastguard Worker    field public static final long REDACT_FOR_ACCESS_FINE_LOCATION = 1L; // 0x1L
558*344a7f5eSAndroid Build Coastguard Worker    field public static final long REDACT_FOR_LOCAL_MAC_ADDRESS = 2L; // 0x2L
559*344a7f5eSAndroid Build Coastguard Worker    field public static final long REDACT_FOR_NETWORK_SETTINGS = 4L; // 0x4L
560*344a7f5eSAndroid Build Coastguard Worker    field public static final long REDACT_NONE = 0L; // 0x0L
561*344a7f5eSAndroid Build Coastguard Worker    field public static final int TRANSPORT_TEST = 7; // 0x7
562*344a7f5eSAndroid Build Coastguard Worker  }
563*344a7f5eSAndroid Build Coastguard Worker
564*344a7f5eSAndroid Build Coastguard Worker  public static final class NetworkCapabilities.Builder {
565*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_FACTORY) public android.net.NetworkCapabilities.Builder setAllowedUids(@NonNull java.util.Set<java.lang.Integer>);
566*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkCapabilities.Builder setUids(@Nullable java.util.Set<android.util.Range<java.lang.Integer>>);
567*344a7f5eSAndroid Build Coastguard Worker  }
568*344a7f5eSAndroid Build Coastguard Worker
569*344a7f5eSAndroid Build Coastguard Worker  public class NetworkIdentity {
570*344a7f5eSAndroid Build Coastguard Worker    method public int getOemManaged();
571*344a7f5eSAndroid Build Coastguard Worker    method public int getRatType();
572*344a7f5eSAndroid Build Coastguard Worker    method public int getSubId();
573*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getSubscriberId();
574*344a7f5eSAndroid Build Coastguard Worker    method public int getType();
575*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getWifiNetworkKey();
576*344a7f5eSAndroid Build Coastguard Worker    method public boolean isDefaultNetwork();
577*344a7f5eSAndroid Build Coastguard Worker    method public boolean isMetered();
578*344a7f5eSAndroid Build Coastguard Worker    method public boolean isRoaming();
579*344a7f5eSAndroid Build Coastguard Worker  }
580*344a7f5eSAndroid Build Coastguard Worker
581*344a7f5eSAndroid Build Coastguard Worker  public static final class NetworkIdentity.Builder {
582*344a7f5eSAndroid Build Coastguard Worker    ctor public NetworkIdentity.Builder();
583*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkIdentity build();
584*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkIdentity.Builder clearRatType();
585*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkIdentity.Builder setDefaultNetwork(boolean);
586*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkIdentity.Builder setMetered(boolean);
587*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkIdentity.Builder setNetworkStateSnapshot(@NonNull android.net.NetworkStateSnapshot);
588*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkIdentity.Builder setOemManaged(int);
589*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkIdentity.Builder setRatType(int);
590*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkIdentity.Builder setRoaming(boolean);
591*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkIdentity.Builder setSubId(int);
592*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkIdentity.Builder setSubscriberId(@Nullable String);
593*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkIdentity.Builder setType(int);
594*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkIdentity.Builder setWifiNetworkKey(@Nullable String);
595*344a7f5eSAndroid Build Coastguard Worker  }
596*344a7f5eSAndroid Build Coastguard Worker
597*344a7f5eSAndroid Build Coastguard Worker  public class NetworkPolicyManager {
598*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public int getMultipathPreference(@NonNull android.net.Network);
599*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public int getRestrictBackgroundStatus(int);
600*344a7f5eSAndroid Build Coastguard Worker    method @Nullable @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public android.telephony.SubscriptionPlan getSubscriptionPlan(@NonNull android.net.NetworkTemplate);
601*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidNetworkingBlocked(int, boolean);
602*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidRestrictedOnMeteredNetworks(int);
603*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void notifyStatsProviderLimitReached();
604*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void notifyStatsProviderWarningReached();
605*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);
606*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public void unregisterNetworkPolicyCallback(@NonNull android.net.NetworkPolicyManager.NetworkPolicyCallback);
607*344a7f5eSAndroid Build Coastguard Worker  }
608*344a7f5eSAndroid Build Coastguard Worker
609*344a7f5eSAndroid Build Coastguard Worker  public static interface NetworkPolicyManager.NetworkPolicyCallback {
610*344a7f5eSAndroid Build Coastguard Worker    method public default void onUidBlockedReasonChanged(int, int);
611*344a7f5eSAndroid Build Coastguard Worker  }
612*344a7f5eSAndroid Build Coastguard Worker
613*344a7f5eSAndroid Build Coastguard Worker  public class NetworkRequest implements android.os.Parcelable {
614*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public int[] getEnterpriseIds();
615*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public int[] getForbiddenCapabilities();
616*344a7f5eSAndroid Build Coastguard Worker    method public boolean hasEnterpriseId(int);
617*344a7f5eSAndroid Build Coastguard Worker    method public boolean hasForbiddenCapability(int);
618*344a7f5eSAndroid Build Coastguard Worker  }
619*344a7f5eSAndroid Build Coastguard Worker
620*344a7f5eSAndroid Build Coastguard Worker  public static class NetworkRequest.Builder {
621*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkRequest.Builder addForbiddenCapability(int);
622*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkRequest.Builder removeForbiddenCapability(int);
623*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkRequest.Builder setUids(@Nullable java.util.Set<android.util.Range<java.lang.Integer>>);
624*344a7f5eSAndroid Build Coastguard Worker  }
625*344a7f5eSAndroid Build Coastguard Worker
626*344a7f5eSAndroid Build Coastguard Worker  public final class NetworkStateSnapshot implements android.os.Parcelable {
627*344a7f5eSAndroid Build Coastguard Worker    ctor public NetworkStateSnapshot(@NonNull android.net.Network, @NonNull android.net.NetworkCapabilities, @NonNull android.net.LinkProperties, @Nullable String, int);
628*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
629*344a7f5eSAndroid Build Coastguard Worker    method public int getLegacyType();
630*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.LinkProperties getLinkProperties();
631*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.Network getNetwork();
632*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkCapabilities getNetworkCapabilities();
633*344a7f5eSAndroid Build Coastguard Worker    method public int getSubId();
634*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @Nullable public String getSubscriberId();
635*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
636*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkStateSnapshot> CREATOR;
637*344a7f5eSAndroid Build Coastguard Worker  }
638*344a7f5eSAndroid Build Coastguard Worker
639*344a7f5eSAndroid Build Coastguard Worker  public class NetworkStatsCollection {
640*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Map<android.net.NetworkStatsCollection.Key,android.net.NetworkStatsHistory> getEntries();
641*344a7f5eSAndroid Build Coastguard Worker  }
642*344a7f5eSAndroid Build Coastguard Worker
643*344a7f5eSAndroid Build Coastguard Worker  public static final class NetworkStatsCollection.Builder {
644*344a7f5eSAndroid Build Coastguard Worker    ctor public NetworkStatsCollection.Builder(long);
645*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkStatsCollection.Builder addEntry(@NonNull android.net.NetworkStatsCollection.Key, @NonNull android.net.NetworkStatsHistory);
646*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkStatsCollection build();
647*344a7f5eSAndroid Build Coastguard Worker  }
648*344a7f5eSAndroid Build Coastguard Worker
649*344a7f5eSAndroid Build Coastguard Worker  public static final class NetworkStatsCollection.Key {
650*344a7f5eSAndroid Build Coastguard Worker    ctor public NetworkStatsCollection.Key(@NonNull java.util.Set<android.net.NetworkIdentity>, int, int, int);
651*344a7f5eSAndroid Build Coastguard Worker  }
652*344a7f5eSAndroid Build Coastguard Worker
653*344a7f5eSAndroid Build Coastguard Worker  public final class NetworkStatsHistory implements android.os.Parcelable {
654*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
655*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.net.NetworkStatsHistory.Entry> getEntries();
656*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
657*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkStatsHistory> CREATOR;
658*344a7f5eSAndroid Build Coastguard Worker  }
659*344a7f5eSAndroid Build Coastguard Worker
660*344a7f5eSAndroid Build Coastguard Worker  public static final class NetworkStatsHistory.Builder {
661*344a7f5eSAndroid Build Coastguard Worker    ctor public NetworkStatsHistory.Builder(long, int);
662*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkStatsHistory.Builder addEntry(@NonNull android.net.NetworkStatsHistory.Entry);
663*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkStatsHistory build();
664*344a7f5eSAndroid Build Coastguard Worker  }
665*344a7f5eSAndroid Build Coastguard Worker
666*344a7f5eSAndroid Build Coastguard Worker  public static final class NetworkStatsHistory.Entry {
667*344a7f5eSAndroid Build Coastguard Worker    ctor public NetworkStatsHistory.Entry(long, long, long, long, long, long, long);
668*344a7f5eSAndroid Build Coastguard Worker    method public long getActiveTime();
669*344a7f5eSAndroid Build Coastguard Worker    method public long getBucketStart();
670*344a7f5eSAndroid Build Coastguard Worker    method public long getOperations();
671*344a7f5eSAndroid Build Coastguard Worker    method public long getRxBytes();
672*344a7f5eSAndroid Build Coastguard Worker    method public long getRxPackets();
673*344a7f5eSAndroid Build Coastguard Worker    method public long getTxBytes();
674*344a7f5eSAndroid Build Coastguard Worker    method public long getTxPackets();
675*344a7f5eSAndroid Build Coastguard Worker  }
676*344a7f5eSAndroid Build Coastguard Worker
677*344a7f5eSAndroid Build Coastguard Worker  public final class NetworkTemplate implements android.os.Parcelable {
678*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
679*344a7f5eSAndroid Build Coastguard Worker    method public int getDefaultNetworkStatus();
680*344a7f5eSAndroid Build Coastguard Worker    method public int getMatchRule();
681*344a7f5eSAndroid Build Coastguard Worker    method public int getMeteredness();
682*344a7f5eSAndroid Build Coastguard Worker    method public int getOemManaged();
683*344a7f5eSAndroid Build Coastguard Worker    method public int getRatType();
684*344a7f5eSAndroid Build Coastguard Worker    method public int getRoaming();
685*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Set<java.lang.String> getSubscriberIds();
686*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Set<java.lang.String> getWifiNetworkKeys();
687*344a7f5eSAndroid Build Coastguard Worker    method public boolean matches(@NonNull android.net.NetworkIdentity);
688*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
689*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkTemplate> CREATOR;
690*344a7f5eSAndroid Build Coastguard Worker    field public static final int MATCH_BLUETOOTH = 8; // 0x8
691*344a7f5eSAndroid Build Coastguard Worker    field public static final int MATCH_CARRIER = 10; // 0xa
692*344a7f5eSAndroid Build Coastguard Worker    field public static final int MATCH_ETHERNET = 5; // 0x5
693*344a7f5eSAndroid Build Coastguard Worker    field public static final int MATCH_MOBILE = 1; // 0x1
694*344a7f5eSAndroid Build Coastguard Worker    field public static final int MATCH_PROXY = 9; // 0x9
695*344a7f5eSAndroid Build Coastguard Worker    field public static final int MATCH_WIFI = 4; // 0x4
696*344a7f5eSAndroid Build Coastguard Worker    field public static final int NETWORK_TYPE_ALL = -1; // 0xffffffff
697*344a7f5eSAndroid Build Coastguard Worker    field public static final int OEM_MANAGED_ALL = -1; // 0xffffffff
698*344a7f5eSAndroid Build Coastguard Worker    field public static final int OEM_MANAGED_NO = 0; // 0x0
699*344a7f5eSAndroid Build Coastguard Worker    field public static final int OEM_MANAGED_PAID = 1; // 0x1
700*344a7f5eSAndroid Build Coastguard Worker    field public static final int OEM_MANAGED_PRIVATE = 2; // 0x2
701*344a7f5eSAndroid Build Coastguard Worker    field public static final int OEM_MANAGED_YES = -2; // 0xfffffffe
702*344a7f5eSAndroid Build Coastguard Worker  }
703*344a7f5eSAndroid Build Coastguard Worker
704*344a7f5eSAndroid Build Coastguard Worker  public static final class NetworkTemplate.Builder {
705*344a7f5eSAndroid Build Coastguard Worker    ctor public NetworkTemplate.Builder(int);
706*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkTemplate build();
707*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkTemplate.Builder setDefaultNetworkStatus(int);
708*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkTemplate.Builder setMeteredness(int);
709*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkTemplate.Builder setOemManaged(int);
710*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkTemplate.Builder setRatType(int);
711*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkTemplate.Builder setRoaming(int);
712*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkTemplate.Builder setSubscriberIds(@NonNull java.util.Set<java.lang.String>);
713*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.NetworkTemplate.Builder setWifiNetworkKeys(@NonNull java.util.Set<java.lang.String>);
714*344a7f5eSAndroid Build Coastguard Worker  }
715*344a7f5eSAndroid Build Coastguard Worker
716*344a7f5eSAndroid Build Coastguard Worker  public class NetworkWatchlistManager {
717*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public byte[] getWatchlistConfigHash();
718*344a7f5eSAndroid Build Coastguard Worker  }
719*344a7f5eSAndroid Build Coastguard Worker
720*344a7f5eSAndroid Build Coastguard Worker  public class PacProxyManager {
721*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);
722*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);
723*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);
724*344a7f5eSAndroid Build Coastguard Worker  }
725*344a7f5eSAndroid Build Coastguard Worker
726*344a7f5eSAndroid Build Coastguard Worker  public static interface PacProxyManager.PacProxyInstalledListener {
727*344a7f5eSAndroid Build Coastguard Worker    method public void onPacProxyInstalled(@Nullable android.net.Network, @NonNull android.net.ProxyInfo);
728*344a7f5eSAndroid Build Coastguard Worker  }
729*344a7f5eSAndroid Build Coastguard Worker
730*344a7f5eSAndroid Build Coastguard Worker  public final class ProfileNetworkPreference implements android.os.Parcelable {
731*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
732*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public int[] getExcludedUids();
733*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public int[] getIncludedUids();
734*344a7f5eSAndroid Build Coastguard Worker    method public int getPreference();
735*344a7f5eSAndroid Build Coastguard Worker    method public int getPreferenceEnterpriseId();
736*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
737*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.ProfileNetworkPreference> CREATOR;
738*344a7f5eSAndroid Build Coastguard Worker  }
739*344a7f5eSAndroid Build Coastguard Worker
740*344a7f5eSAndroid Build Coastguard Worker  public static final class ProfileNetworkPreference.Builder {
741*344a7f5eSAndroid Build Coastguard Worker    ctor public ProfileNetworkPreference.Builder();
742*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ProfileNetworkPreference build();
743*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ProfileNetworkPreference.Builder setExcludedUids(@NonNull int[]);
744*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ProfileNetworkPreference.Builder setIncludedUids(@NonNull int[]);
745*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ProfileNetworkPreference.Builder setPreference(int);
746*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ProfileNetworkPreference.Builder setPreferenceEnterpriseId(int);
747*344a7f5eSAndroid Build Coastguard Worker  }
748*344a7f5eSAndroid Build Coastguard Worker
749*344a7f5eSAndroid Build Coastguard Worker  public final class Proxy {
750*344a7f5eSAndroid Build Coastguard Worker    method public static void setHttpProxyConfiguration(@Nullable android.net.ProxyInfo);
751*344a7f5eSAndroid Build Coastguard Worker  }
752*344a7f5eSAndroid Build Coastguard Worker
753*344a7f5eSAndroid Build Coastguard Worker  public final class TestNetworkInterface implements android.os.Parcelable {
754*344a7f5eSAndroid Build Coastguard Worker    ctor public TestNetworkInterface(@NonNull android.os.ParcelFileDescriptor, @NonNull String);
755*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
756*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.os.ParcelFileDescriptor getFileDescriptor();
757*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String getInterfaceName();
758*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
759*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkInterface> CREATOR;
760*344a7f5eSAndroid Build Coastguard Worker  }
761*344a7f5eSAndroid Build Coastguard Worker
762*344a7f5eSAndroid Build Coastguard Worker  public class TestNetworkManager {
763*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_TEST_NETWORKS) public android.net.TestNetworkInterface createTapInterface();
764*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>);
765*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.MANAGE_TEST_NETWORKS) public void setupTestNetwork(@NonNull String, @NonNull android.os.IBinder);
766*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(android.Manifest.permission.MANAGE_TEST_NETWORKS) public void teardownTestNetwork(@NonNull android.net.Network);
767*344a7f5eSAndroid Build Coastguard Worker    field public static final String TEST_TAP_PREFIX = "testtap";
768*344a7f5eSAndroid Build Coastguard Worker  }
769*344a7f5eSAndroid Build Coastguard Worker
770*344a7f5eSAndroid Build Coastguard Worker  public final class TestNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable {
771*344a7f5eSAndroid Build Coastguard Worker    ctor public TestNetworkSpecifier(@NonNull String);
772*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
773*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getInterfaceName();
774*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
775*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkSpecifier> CREATOR;
776*344a7f5eSAndroid Build Coastguard Worker  }
777*344a7f5eSAndroid Build Coastguard Worker
778*344a7f5eSAndroid Build Coastguard Worker  public final class TetheringConstants {
779*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_ADD_TETHER_TYPE = "extraAddTetherType";
780*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_PROVISION_CALLBACK = "extraProvisionCallback";
781*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_REM_TETHER_TYPE = "extraRemTetherType";
782*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_RUN_PROVISION = "extraRunProvision";
783*344a7f5eSAndroid Build Coastguard Worker    field public static final String EXTRA_SET_ALARM = "extraSetAlarm";
784*344a7f5eSAndroid Build Coastguard Worker  }
785*344a7f5eSAndroid Build Coastguard Worker
786*344a7f5eSAndroid Build Coastguard Worker  public class TetheringManager {
787*344a7f5eSAndroid Build Coastguard Worker    ctor public TetheringManager(@NonNull android.content.Context, @NonNull java.util.function.Supplier<android.os.IBinder>);
788*344a7f5eSAndroid Build Coastguard Worker    method public int getLastTetherError(@NonNull String);
789*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String[] getTetherableBluetoothRegexs();
790*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String[] getTetherableIfaces();
791*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String[] getTetherableUsbRegexs();
792*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String[] getTetherableWifiRegexs();
793*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String[] getTetheredIfaces();
794*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String[] getTetheringErroredIfaces();
795*344a7f5eSAndroid Build Coastguard Worker    method public boolean isTetheringSupported();
796*344a7f5eSAndroid Build Coastguard Worker    method public boolean isTetheringSupported(@NonNull String);
797*344a7f5eSAndroid Build Coastguard Worker    method public void requestLatestTetheringEntitlementResult(int, @NonNull android.os.ResultReceiver, boolean);
798*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public int setUsbTethering(boolean);
799*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);
800*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public int tether(@NonNull String);
801*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public int untether(@NonNull String);
802*344a7f5eSAndroid Build Coastguard Worker  }
803*344a7f5eSAndroid Build Coastguard Worker
804*344a7f5eSAndroid Build Coastguard Worker  public static interface TetheringManager.TetheredInterfaceCallback {
805*344a7f5eSAndroid Build Coastguard Worker    method public void onAvailable(@NonNull String);
806*344a7f5eSAndroid Build Coastguard Worker    method public void onUnavailable();
807*344a7f5eSAndroid Build Coastguard Worker  }
808*344a7f5eSAndroid Build Coastguard Worker
809*344a7f5eSAndroid Build Coastguard Worker  public static interface TetheringManager.TetheredInterfaceRequest {
810*344a7f5eSAndroid Build Coastguard Worker    method public void release();
811*344a7f5eSAndroid Build Coastguard Worker  }
812*344a7f5eSAndroid Build Coastguard Worker
813*344a7f5eSAndroid Build Coastguard Worker  public static interface TetheringManager.TetheringEventCallback {
814*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public default void onTetherableInterfaceRegexpsChanged(@NonNull android.net.TetheringManager.TetheringInterfaceRegexps);
815*344a7f5eSAndroid Build Coastguard Worker  }
816*344a7f5eSAndroid Build Coastguard Worker
817*344a7f5eSAndroid Build Coastguard Worker  @Deprecated public static class TetheringManager.TetheringInterfaceRegexps {
818*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public java.util.List<java.lang.String> getTetherableBluetoothRegexs();
819*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public java.util.List<java.lang.String> getTetherableUsbRegexs();
820*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public java.util.List<java.lang.String> getTetherableWifiRegexs();
821*344a7f5eSAndroid Build Coastguard Worker  }
822*344a7f5eSAndroid Build Coastguard Worker
823*344a7f5eSAndroid Build Coastguard Worker  public class TrafficStats {
824*344a7f5eSAndroid Build Coastguard Worker    method public static void attachSocketTagger();
825*344a7f5eSAndroid Build Coastguard Worker    method public static void init(@NonNull android.content.Context);
826*344a7f5eSAndroid Build Coastguard Worker    method public static void setThreadStatsTagDownload();
827*344a7f5eSAndroid Build Coastguard Worker  }
828*344a7f5eSAndroid Build Coastguard Worker
829*344a7f5eSAndroid Build Coastguard Worker  public interface TransportInfo {
830*344a7f5eSAndroid Build Coastguard Worker    method public default long getApplicableRedactions();
831*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public default android.net.TransportInfo makeCopy(long);
832*344a7f5eSAndroid Build Coastguard Worker  }
833*344a7f5eSAndroid Build Coastguard Worker
834*344a7f5eSAndroid Build Coastguard Worker  public final class UnderlyingNetworkInfo implements android.os.Parcelable {
835*344a7f5eSAndroid Build Coastguard Worker    ctor public UnderlyingNetworkInfo(int, @NonNull String, @NonNull java.util.List<java.lang.String>);
836*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
837*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String getInterface();
838*344a7f5eSAndroid Build Coastguard Worker    method public int getOwnerUid();
839*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<java.lang.String> getUnderlyingInterfaces();
840*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
841*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.UnderlyingNetworkInfo> CREATOR;
842*344a7f5eSAndroid Build Coastguard Worker  }
843*344a7f5eSAndroid Build Coastguard Worker
844*344a7f5eSAndroid Build Coastguard Worker  public class VpnManager {
845*344a7f5eSAndroid Build Coastguard Worker    field public static final int TYPE_VPN_LEGACY = 3; // 0x3
846*344a7f5eSAndroid Build Coastguard Worker    field public static final int TYPE_VPN_NONE = -1; // 0xffffffff
847*344a7f5eSAndroid Build Coastguard Worker    field public static final int TYPE_VPN_OEM = 4; // 0x4
848*344a7f5eSAndroid Build Coastguard Worker    field public static final int TYPE_VPN_PLATFORM = 2; // 0x2
849*344a7f5eSAndroid Build Coastguard Worker    field public static final int TYPE_VPN_SERVICE = 1; // 0x1
850*344a7f5eSAndroid Build Coastguard Worker  }
851*344a7f5eSAndroid Build Coastguard Worker
852*344a7f5eSAndroid Build Coastguard Worker  public final class VpnTransportInfo implements android.os.Parcelable android.net.TransportInfo {
853*344a7f5eSAndroid Build Coastguard Worker    ctor public VpnTransportInfo(int, @Nullable String);
854*344a7f5eSAndroid Build Coastguard Worker    method public int describeContents();
855*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getSessionId();
856*344a7f5eSAndroid Build Coastguard Worker    method public int getType();
857*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.VpnTransportInfo makeCopy(long);
858*344a7f5eSAndroid Build Coastguard Worker    method public void writeToParcel(@NonNull android.os.Parcel, int);
859*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final android.os.Parcelable.Creator<android.net.VpnTransportInfo> CREATOR;
860*344a7f5eSAndroid Build Coastguard Worker  }
861*344a7f5eSAndroid Build Coastguard Worker
862*344a7f5eSAndroid Build Coastguard Worker}
863*344a7f5eSAndroid Build Coastguard Worker
864*344a7f5eSAndroid Build Coastguard Workerpackage android.net.netstats {
865*344a7f5eSAndroid Build Coastguard Worker
866*344a7f5eSAndroid Build Coastguard Worker  public class NetworkStatsDataMigrationUtils {
867*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static android.net.NetworkStatsCollection readPlatformCollection(@NonNull String, long) throws java.io.IOException;
868*344a7f5eSAndroid Build Coastguard Worker    field public static final String PREFIX_UID = "uid";
869*344a7f5eSAndroid Build Coastguard Worker    field public static final String PREFIX_UID_TAG = "uid_tag";
870*344a7f5eSAndroid Build Coastguard Worker    field public static final String PREFIX_XT = "xt";
871*344a7f5eSAndroid Build Coastguard Worker  }
872*344a7f5eSAndroid Build Coastguard Worker
873*344a7f5eSAndroid Build Coastguard Worker}
874*344a7f5eSAndroid Build Coastguard Worker
875*344a7f5eSAndroid Build Coastguard Workerpackage android.net.wifi {
876*344a7f5eSAndroid Build Coastguard Worker
877*344a7f5eSAndroid Build Coastguard Worker  public class WifiManager {
878*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public void addCustomDhcpOptions(@NonNull android.net.wifi.WifiSsid, @NonNull byte[], @NonNull java.util.List<android.net.DhcpOption>);
879*344a7f5eSAndroid Build Coastguard Worker    method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public void removeCustomDhcpOptions(@NonNull android.net.wifi.WifiSsid, @NonNull byte[]);
880*344a7f5eSAndroid Build Coastguard Worker  }
881*344a7f5eSAndroid Build Coastguard Worker
882*344a7f5eSAndroid Build Coastguard Worker}
883*344a7f5eSAndroid Build Coastguard Worker
884*344a7f5eSAndroid Build Coastguard Workerpackage android.ondevicepersonalization {
885*344a7f5eSAndroid Build Coastguard Worker
886*344a7f5eSAndroid Build Coastguard Worker  public class OnDevicePersonalizationFrameworkInitializer {
887*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
888*344a7f5eSAndroid Build Coastguard Worker  }
889*344a7f5eSAndroid Build Coastguard Worker
890*344a7f5eSAndroid Build Coastguard Worker}
891*344a7f5eSAndroid Build Coastguard Worker
892*344a7f5eSAndroid Build Coastguard Workerpackage android.os {
893*344a7f5eSAndroid Build Coastguard Worker
894*344a7f5eSAndroid Build Coastguard Worker  public final class BatteryStatsManager {
895*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;
896*344a7f5eSAndroid Build Coastguard Worker  }
897*344a7f5eSAndroid Build Coastguard Worker
898*344a7f5eSAndroid Build Coastguard Worker  public class Binder implements android.os.IBinder {
899*344a7f5eSAndroid Build Coastguard Worker    method public final void markVintfStability();
900*344a7f5eSAndroid Build Coastguard Worker  }
901*344a7f5eSAndroid Build Coastguard Worker
902*344a7f5eSAndroid Build Coastguard Worker  public class BluetoothServiceManager {
903*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.os.BluetoothServiceManager.ServiceRegisterer getBluetoothManagerServiceRegisterer();
904*344a7f5eSAndroid Build Coastguard Worker  }
905*344a7f5eSAndroid Build Coastguard Worker
906*344a7f5eSAndroid Build Coastguard Worker  public static class BluetoothServiceManager.ServiceNotFoundException extends java.lang.Exception {
907*344a7f5eSAndroid Build Coastguard Worker    ctor public BluetoothServiceManager.ServiceNotFoundException(@NonNull String);
908*344a7f5eSAndroid Build Coastguard Worker  }
909*344a7f5eSAndroid Build Coastguard Worker
910*344a7f5eSAndroid Build Coastguard Worker  public static final class BluetoothServiceManager.ServiceRegisterer {
911*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.os.IBinder get();
912*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.os.IBinder getOrThrow() throws android.os.BluetoothServiceManager.ServiceNotFoundException;
913*344a7f5eSAndroid Build Coastguard Worker    method public void register(@NonNull android.os.IBinder);
914*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.os.IBinder tryGet();
915*344a7f5eSAndroid Build Coastguard Worker  }
916*344a7f5eSAndroid Build Coastguard Worker
917*344a7f5eSAndroid Build Coastguard Worker  public class Build {
918*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isDebuggable();
919*344a7f5eSAndroid Build Coastguard Worker  }
920*344a7f5eSAndroid Build Coastguard Worker
921*344a7f5eSAndroid Build Coastguard Worker  public static class Build.VERSION {
922*344a7f5eSAndroid Build Coastguard Worker    field public static final int DEVICE_INITIAL_SDK_INT;
923*344a7f5eSAndroid Build Coastguard Worker  }
924*344a7f5eSAndroid Build Coastguard Worker
925*344a7f5eSAndroid Build Coastguard Worker  public class IpcDataCache<Query, Result> {
926*344a7f5eSAndroid Build Coastguard Worker    ctor public IpcDataCache(int, @NonNull String, @NonNull String, @NonNull String, @NonNull android.os.IpcDataCache.QueryHandler<Query,Result>);
927*344a7f5eSAndroid Build Coastguard Worker    method public void disableForCurrentProcess();
928*344a7f5eSAndroid Build Coastguard Worker    method public static void disableForCurrentProcess(@NonNull String);
929*344a7f5eSAndroid Build Coastguard Worker    method public void invalidateCache();
930*344a7f5eSAndroid Build Coastguard Worker    method public static void invalidateCache(@NonNull String, @NonNull String);
931*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public Result query(@NonNull Query);
932*344a7f5eSAndroid Build Coastguard Worker    field public static final String MODULE_BLUETOOTH = "bluetooth";
933*344a7f5eSAndroid Build Coastguard Worker  }
934*344a7f5eSAndroid Build Coastguard Worker
935*344a7f5eSAndroid Build Coastguard Worker  public abstract static class IpcDataCache.QueryHandler<Q, R> {
936*344a7f5eSAndroid Build Coastguard Worker    ctor public IpcDataCache.QueryHandler();
937*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public abstract R apply(@NonNull Q);
938*344a7f5eSAndroid Build Coastguard Worker    method public boolean shouldBypassCache(@NonNull Q);
939*344a7f5eSAndroid Build Coastguard Worker  }
940*344a7f5eSAndroid Build Coastguard Worker
941*344a7f5eSAndroid Build Coastguard Worker  public interface Parcelable {
942*344a7f5eSAndroid Build Coastguard Worker    method public default int getStability();
943*344a7f5eSAndroid Build Coastguard Worker  }
944*344a7f5eSAndroid Build Coastguard Worker
945*344a7f5eSAndroid Build Coastguard Worker  public class Process {
946*344a7f5eSAndroid Build Coastguard Worker    method public static final int getAppUidForSdkSandboxUid(int);
947*344a7f5eSAndroid Build Coastguard Worker    method public static final boolean isSdkSandboxUid(int);
948*344a7f5eSAndroid Build Coastguard Worker    method public static final int toSdkSandboxUid(int);
949*344a7f5eSAndroid Build Coastguard Worker    field public static final int NFC_UID = 1027; // 0x403
950*344a7f5eSAndroid Build Coastguard Worker    field public static final int VPN_UID = 1016; // 0x3f8
951*344a7f5eSAndroid Build Coastguard Worker  }
952*344a7f5eSAndroid Build Coastguard Worker
953*344a7f5eSAndroid Build Coastguard Worker  public final class ServiceManager {
954*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isDeclared(@NonNull String);
955*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static android.os.IBinder waitForDeclaredService(@NonNull String);
956*344a7f5eSAndroid Build Coastguard Worker  }
957*344a7f5eSAndroid Build Coastguard Worker
958*344a7f5eSAndroid Build Coastguard Worker  public class StatsFrameworkInitializer {
959*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
960*344a7f5eSAndroid Build Coastguard Worker    method public static void setStatsServiceManager(@NonNull android.os.StatsServiceManager);
961*344a7f5eSAndroid Build Coastguard Worker  }
962*344a7f5eSAndroid Build Coastguard Worker
963*344a7f5eSAndroid Build Coastguard Worker  public class StatsServiceManager {
964*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsCompanionServiceRegisterer();
965*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsManagerServiceRegisterer();
966*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsdServiceRegisterer();
967*344a7f5eSAndroid Build Coastguard Worker  }
968*344a7f5eSAndroid Build Coastguard Worker
969*344a7f5eSAndroid Build Coastguard Worker  public static class StatsServiceManager.ServiceNotFoundException extends java.lang.Exception {
970*344a7f5eSAndroid Build Coastguard Worker    ctor public StatsServiceManager.ServiceNotFoundException(@NonNull String);
971*344a7f5eSAndroid Build Coastguard Worker  }
972*344a7f5eSAndroid Build Coastguard Worker
973*344a7f5eSAndroid Build Coastguard Worker  public static final class StatsServiceManager.ServiceRegisterer {
974*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.os.IBinder get();
975*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.os.IBinder getOrThrow() throws android.os.StatsServiceManager.ServiceNotFoundException;
976*344a7f5eSAndroid Build Coastguard Worker  }
977*344a7f5eSAndroid Build Coastguard Worker
978*344a7f5eSAndroid Build Coastguard Worker  public final class StrictMode {
979*344a7f5eSAndroid Build Coastguard Worker    method public static void noteUntaggedSocket();
980*344a7f5eSAndroid Build Coastguard Worker  }
981*344a7f5eSAndroid Build Coastguard Worker
982*344a7f5eSAndroid Build Coastguard Worker  public class SystemConfigManager {
983*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.content.ComponentName> getEnabledComponentOverrides(@NonNull String);
984*344a7f5eSAndroid Build Coastguard Worker  }
985*344a7f5eSAndroid Build Coastguard Worker
986*344a7f5eSAndroid Build Coastguard Worker  public final class Trace {
987*344a7f5eSAndroid Build Coastguard Worker    method public static void asyncTraceBegin(long, @NonNull String, int);
988*344a7f5eSAndroid Build Coastguard Worker    method public static void asyncTraceEnd(long, @NonNull String, int);
989*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isTagEnabled(long);
990*344a7f5eSAndroid Build Coastguard Worker    method public static void traceBegin(long, @NonNull String);
991*344a7f5eSAndroid Build Coastguard Worker    method public static void traceCounter(long, @NonNull String, int);
992*344a7f5eSAndroid Build Coastguard Worker    method public static void traceEnd(long);
993*344a7f5eSAndroid Build Coastguard Worker    field public static final long TRACE_TAG_NETWORK = 2097152L; // 0x200000L
994*344a7f5eSAndroid Build Coastguard Worker  }
995*344a7f5eSAndroid Build Coastguard Worker
996*344a7f5eSAndroid Build Coastguard Worker}
997*344a7f5eSAndroid Build Coastguard Worker
998*344a7f5eSAndroid Build Coastguard Workerpackage android.os.storage {
999*344a7f5eSAndroid Build Coastguard Worker
1000*344a7f5eSAndroid Build Coastguard Worker  public class StorageManager {
1001*344a7f5eSAndroid Build Coastguard Worker    method public long computeStorageCacheBytes(@NonNull java.io.File);
1002*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getCloudMediaProvider();
1003*344a7f5eSAndroid Build Coastguard Worker    method public void notifyAppIoBlocked(@NonNull java.util.UUID, int, int, int);
1004*344a7f5eSAndroid Build Coastguard Worker    method public void notifyAppIoResumed(@NonNull java.util.UUID, int, int, int);
1005*344a7f5eSAndroid Build Coastguard Worker    method public void setCloudMediaProvider(@Nullable String);
1006*344a7f5eSAndroid Build Coastguard Worker    field public static final int APP_IO_BLOCKED_REASON_TRANSCODING = 1; // 0x1
1007*344a7f5eSAndroid Build Coastguard Worker    field public static final int APP_IO_BLOCKED_REASON_UNKNOWN = 0; // 0x0
1008*344a7f5eSAndroid Build Coastguard Worker  }
1009*344a7f5eSAndroid Build Coastguard Worker
1010*344a7f5eSAndroid Build Coastguard Worker}
1011*344a7f5eSAndroid Build Coastguard Worker
1012*344a7f5eSAndroid Build Coastguard Workerpackage android.provider {
1013*344a7f5eSAndroid Build Coastguard Worker
1014*344a7f5eSAndroid Build Coastguard Worker  public static final class ContactsContract.RawContactsEntity implements android.provider.BaseColumns android.provider.ContactsContract.DataColumns android.provider.ContactsContract.RawContactsColumns {
1015*344a7f5eSAndroid Build Coastguard Worker    method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public static java.util.Map<java.lang.String,java.util.List<android.content.ContentValues>> queryRawContactEntity(@NonNull android.content.ContentResolver, long);
1016*344a7f5eSAndroid Build Coastguard Worker  }
1017*344a7f5eSAndroid Build Coastguard Worker
1018*344a7f5eSAndroid Build Coastguard Worker  public final class DeviceConfig {
1019*344a7f5eSAndroid Build Coastguard Worker    field public static final String NAMESPACE_ALARM_MANAGER = "alarm_manager";
1020*344a7f5eSAndroid Build Coastguard Worker    field public static final String NAMESPACE_APP_STANDBY = "app_standby";
1021*344a7f5eSAndroid Build Coastguard Worker    field public static final String NAMESPACE_DEVICE_IDLE = "device_idle";
1022*344a7f5eSAndroid Build Coastguard Worker  }
1023*344a7f5eSAndroid Build Coastguard Worker
1024*344a7f5eSAndroid Build Coastguard Worker  public static final class Settings.Global extends android.provider.Settings.NameValueTable {
1025*344a7f5eSAndroid Build Coastguard Worker    field public static final String BLE_SCAN_ALWAYS_AVAILABLE = "ble_scan_always_enabled";
1026*344a7f5eSAndroid Build Coastguard Worker    field public static final String BLE_SCAN_BACKGROUND_MODE = "ble_scan_background_mode";
1027*344a7f5eSAndroid Build Coastguard Worker    field public static final String BLE_SCAN_BALANCED_INTERVAL_MS = "ble_scan_balanced_interval_ms";
1028*344a7f5eSAndroid Build Coastguard Worker    field public static final String BLE_SCAN_BALANCED_WINDOW_MS = "ble_scan_balanced_window_ms";
1029*344a7f5eSAndroid Build Coastguard Worker    field public static final String BLE_SCAN_LOW_LATENCY_INTERVAL_MS = "ble_scan_low_latency_interval_ms";
1030*344a7f5eSAndroid Build Coastguard Worker    field public static final String BLE_SCAN_LOW_LATENCY_WINDOW_MS = "ble_scan_low_latency_window_ms";
1031*344a7f5eSAndroid Build Coastguard Worker    field public static final String BLE_SCAN_LOW_POWER_INTERVAL_MS = "ble_scan_low_power_interval_ms";
1032*344a7f5eSAndroid Build Coastguard Worker    field public static final String BLE_SCAN_LOW_POWER_WINDOW_MS = "ble_scan_low_power_window_ms";
1033*344a7f5eSAndroid Build Coastguard Worker    field public static final String BLUETOOTH_BTSNOOP_DEFAULT_MODE = "bluetooth_btsnoop_default_mode";
1034*344a7f5eSAndroid Build Coastguard Worker    field public static final String BLUETOOTH_CLASS_OF_DEVICE = "bluetooth_class_of_device";
1035*344a7f5eSAndroid Build Coastguard Worker    field public static final String BLUETOOTH_DISABLED_PROFILES = "bluetooth_disabled_profiles";
1036*344a7f5eSAndroid Build Coastguard Worker  }
1037*344a7f5eSAndroid Build Coastguard Worker
1038*344a7f5eSAndroid Build Coastguard Worker  public static final class Settings.Secure extends android.provider.Settings.NameValueTable {
1039*344a7f5eSAndroid Build Coastguard Worker    field public static final String BLUETOOTH_ADDRESS = "bluetooth_address";
1040*344a7f5eSAndroid Build Coastguard Worker    field public static final String BLUETOOTH_ADDR_VALID = "bluetooth_addr_valid";
1041*344a7f5eSAndroid Build Coastguard Worker    field public static final String BLUETOOTH_NAME = "bluetooth_name";
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 android.safetycenter {
1047*344a7f5eSAndroid Build Coastguard Worker
1048*344a7f5eSAndroid Build Coastguard Worker  public final class SafetyCenterFrameworkInitializer {
1049*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
1050*344a7f5eSAndroid Build Coastguard Worker  }
1051*344a7f5eSAndroid Build Coastguard Worker
1052*344a7f5eSAndroid Build Coastguard Worker}
1053*344a7f5eSAndroid Build Coastguard Worker
1054*344a7f5eSAndroid Build Coastguard Workerpackage android.scheduling {
1055*344a7f5eSAndroid Build Coastguard Worker
1056*344a7f5eSAndroid Build Coastguard Worker  public class SchedulingFrameworkInitializer {
1057*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
1058*344a7f5eSAndroid Build Coastguard Worker  }
1059*344a7f5eSAndroid Build Coastguard Worker
1060*344a7f5eSAndroid Build Coastguard Worker}
1061*344a7f5eSAndroid Build Coastguard Worker
1062*344a7f5eSAndroid Build Coastguard Workerpackage android.system {
1063*344a7f5eSAndroid Build Coastguard Worker
1064*344a7f5eSAndroid Build Coastguard Worker  public final class NetlinkSocketAddress extends java.net.SocketAddress {
1065*344a7f5eSAndroid Build Coastguard Worker    ctor public NetlinkSocketAddress(int, int);
1066*344a7f5eSAndroid Build Coastguard Worker    method public int getGroupsMask();
1067*344a7f5eSAndroid Build Coastguard Worker    method public int getPortId();
1068*344a7f5eSAndroid Build Coastguard Worker  }
1069*344a7f5eSAndroid Build Coastguard Worker
1070*344a7f5eSAndroid Build Coastguard Worker  public final class Os {
1071*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static android.system.StructCapUserData[] capget(@NonNull android.system.StructCapUserHeader) throws android.system.ErrnoException;
1072*344a7f5eSAndroid Build Coastguard Worker    method public static void capset(@NonNull android.system.StructCapUserHeader, @NonNull android.system.StructCapUserData[]) throws android.system.ErrnoException;
1073*344a7f5eSAndroid Build Coastguard Worker    method public static int getpgid(int) throws android.system.ErrnoException;
1074*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static android.system.StructRlimit getrlimit(int) throws android.system.ErrnoException;
1075*344a7f5eSAndroid Build Coastguard Worker    method public static int getsockoptInt(@NonNull java.io.FileDescriptor, int, int) throws android.system.ErrnoException;
1076*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static android.system.StructLinger getsockoptLinger(@NonNull java.io.FileDescriptor, int, int) throws android.system.ErrnoException;
1077*344a7f5eSAndroid Build Coastguard Worker    method public static int ioctlInt(@NonNull java.io.FileDescriptor, int) throws android.system.ErrnoException;
1078*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static java.io.FileDescriptor[] pipe2(int) throws android.system.ErrnoException;
1079*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static String realpath(@Nullable String) throws android.system.ErrnoException;
1080*344a7f5eSAndroid Build Coastguard Worker    method public static void setpgid(int, int) throws android.system.ErrnoException;
1081*344a7f5eSAndroid Build Coastguard Worker    method public static void setregid(int, int) throws android.system.ErrnoException;
1082*344a7f5eSAndroid Build Coastguard Worker    method public static void setreuid(int, int) throws android.system.ErrnoException;
1083*344a7f5eSAndroid Build Coastguard Worker    method public static void setsockoptIfreq(@NonNull java.io.FileDescriptor, int, int, @Nullable String) throws android.system.ErrnoException;
1084*344a7f5eSAndroid Build Coastguard Worker    method public static void setsockoptLinger(@NonNull java.io.FileDescriptor, int, int, @NonNull android.system.StructLinger) throws android.system.ErrnoException;
1085*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;
1086*344a7f5eSAndroid Build Coastguard Worker    method public static void unlink(@Nullable String) throws android.system.ErrnoException;
1087*344a7f5eSAndroid Build Coastguard Worker  }
1088*344a7f5eSAndroid Build Coastguard Worker
1089*344a7f5eSAndroid Build Coastguard Worker  public final class OsConstants {
1090*344a7f5eSAndroid Build Coastguard Worker    method public static int CAP_TO_INDEX(int);
1091*344a7f5eSAndroid Build Coastguard Worker    method public static int CAP_TO_MASK(int);
1092*344a7f5eSAndroid Build Coastguard Worker    field public static final int ARPHRD_LOOPBACK;
1093*344a7f5eSAndroid Build Coastguard Worker    field public static final int EUSERS;
1094*344a7f5eSAndroid Build Coastguard Worker    field public static final int MAP_POPULATE;
1095*344a7f5eSAndroid Build Coastguard Worker    field public static final int O_DIRECT;
1096*344a7f5eSAndroid Build Coastguard Worker    field public static final int PR_CAP_AMBIENT;
1097*344a7f5eSAndroid Build Coastguard Worker    field public static final int PR_CAP_AMBIENT_RAISE;
1098*344a7f5eSAndroid Build Coastguard Worker    field public static final int RLIMIT_NOFILE;
1099*344a7f5eSAndroid Build Coastguard Worker    field public static final int RTMGRP_IPV4_IFADDR;
1100*344a7f5eSAndroid Build Coastguard Worker    field public static final int SPLICE_F_MORE;
1101*344a7f5eSAndroid Build Coastguard Worker    field public static final int SPLICE_F_MOVE;
1102*344a7f5eSAndroid Build Coastguard Worker    field public static final int TIOCOUTQ;
1103*344a7f5eSAndroid Build Coastguard Worker    field public static final int UDP_ENCAP;
1104*344a7f5eSAndroid Build Coastguard Worker    field public static final int UDP_ENCAP_ESPINUDP;
1105*344a7f5eSAndroid Build Coastguard Worker    field public static final int XATTR_CREATE;
1106*344a7f5eSAndroid Build Coastguard Worker    field public static final int XATTR_REPLACE;
1107*344a7f5eSAndroid Build Coastguard Worker    field public static final int _LINUX_CAPABILITY_VERSION_3;
1108*344a7f5eSAndroid Build Coastguard Worker  }
1109*344a7f5eSAndroid Build Coastguard Worker
1110*344a7f5eSAndroid Build Coastguard Worker  public final class PacketSocketAddress extends java.net.SocketAddress {
1111*344a7f5eSAndroid Build Coastguard Worker    ctor public PacketSocketAddress(int, int, byte[]);
1112*344a7f5eSAndroid Build Coastguard Worker  }
1113*344a7f5eSAndroid Build Coastguard Worker
1114*344a7f5eSAndroid Build Coastguard Worker  public final class StructCapUserData {
1115*344a7f5eSAndroid Build Coastguard Worker    ctor public StructCapUserData(int, int, int);
1116*344a7f5eSAndroid Build Coastguard Worker    field public final int effective;
1117*344a7f5eSAndroid Build Coastguard Worker    field public final int inheritable;
1118*344a7f5eSAndroid Build Coastguard Worker    field public final int permitted;
1119*344a7f5eSAndroid Build Coastguard Worker  }
1120*344a7f5eSAndroid Build Coastguard Worker
1121*344a7f5eSAndroid Build Coastguard Worker  public final class StructCapUserHeader {
1122*344a7f5eSAndroid Build Coastguard Worker    ctor public StructCapUserHeader(int, int);
1123*344a7f5eSAndroid Build Coastguard Worker  }
1124*344a7f5eSAndroid Build Coastguard Worker
1125*344a7f5eSAndroid Build Coastguard Worker  public final class StructLinger {
1126*344a7f5eSAndroid Build Coastguard Worker    ctor public StructLinger(int, int);
1127*344a7f5eSAndroid Build Coastguard Worker    method public boolean isOn();
1128*344a7f5eSAndroid Build Coastguard Worker    field public final int l_linger;
1129*344a7f5eSAndroid Build Coastguard Worker  }
1130*344a7f5eSAndroid Build Coastguard Worker
1131*344a7f5eSAndroid Build Coastguard Worker  public final class StructRlimit {
1132*344a7f5eSAndroid Build Coastguard Worker    field public final long rlim_cur;
1133*344a7f5eSAndroid Build Coastguard Worker  }
1134*344a7f5eSAndroid Build Coastguard Worker
1135*344a7f5eSAndroid Build Coastguard Worker  public final class UnixSocketAddress extends java.net.SocketAddress {
1136*344a7f5eSAndroid Build Coastguard Worker    method public static android.system.UnixSocketAddress createFileSystem(String);
1137*344a7f5eSAndroid Build Coastguard Worker  }
1138*344a7f5eSAndroid Build Coastguard Worker
1139*344a7f5eSAndroid Build Coastguard Worker}
1140*344a7f5eSAndroid Build Coastguard Worker
1141*344a7f5eSAndroid Build Coastguard Workerpackage android.telecom {
1142*344a7f5eSAndroid Build Coastguard Worker
1143*344a7f5eSAndroid Build Coastguard Worker  public abstract class ConnectionService extends android.app.Service {
1144*344a7f5eSAndroid Build Coastguard Worker    method @Nullable @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public android.telecom.Connection onCreateUnknownConnection(@NonNull android.telecom.PhoneAccountHandle, @NonNull android.telecom.ConnectionRequest);
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 android.telephony {
1150*344a7f5eSAndroid Build Coastguard Worker
1151*344a7f5eSAndroid Build Coastguard Worker  public abstract class CellSignalStrength {
1152*344a7f5eSAndroid Build Coastguard Worker    method public static int getNumSignalStrengthLevels();
1153*344a7f5eSAndroid Build Coastguard Worker  }
1154*344a7f5eSAndroid Build Coastguard Worker
1155*344a7f5eSAndroid Build Coastguard Worker  public class SubscriptionManager {
1156*344a7f5eSAndroid Build Coastguard Worker    method public void addSubscriptionInfoRecord(@NonNull String, @Nullable String, int, int);
1157*344a7f5eSAndroid Build Coastguard Worker    method public void removeSubscriptionInfoRecord(@NonNull String, int);
1158*344a7f5eSAndroid Build Coastguard Worker  }
1159*344a7f5eSAndroid Build Coastguard Worker
1160*344a7f5eSAndroid Build Coastguard Worker  public class TelephonyManager {
1161*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static int[] getAllNetworkTypes();
1162*344a7f5eSAndroid Build Coastguard Worker  }
1163*344a7f5eSAndroid Build Coastguard Worker
1164*344a7f5eSAndroid Build Coastguard Worker}
1165*344a7f5eSAndroid Build Coastguard Worker
1166*344a7f5eSAndroid Build Coastguard Workerpackage android.util {
1167*344a7f5eSAndroid Build Coastguard Worker
1168*344a7f5eSAndroid Build Coastguard Worker  public class AtomicFile {
1169*344a7f5eSAndroid Build Coastguard Worker    ctor public AtomicFile(@NonNull java.io.File, @Nullable android.util.SystemConfigFileCommitEventLogger);
1170*344a7f5eSAndroid Build Coastguard Worker  }
1171*344a7f5eSAndroid Build Coastguard Worker
1172*344a7f5eSAndroid Build Coastguard Worker  public final class Log {
1173*344a7f5eSAndroid Build Coastguard Worker    method public static int logToRadioBuffer(int, @Nullable String, @Nullable String);
1174*344a7f5eSAndroid Build Coastguard Worker  }
1175*344a7f5eSAndroid Build Coastguard Worker
1176*344a7f5eSAndroid Build Coastguard Worker  public final class Slog {
1177*344a7f5eSAndroid Build Coastguard Worker    method public static int d(@Nullable String, @NonNull String);
1178*344a7f5eSAndroid Build Coastguard Worker    method public static int d(@Nullable String, @NonNull String, @Nullable Throwable);
1179*344a7f5eSAndroid Build Coastguard Worker    method public static int e(@Nullable String, @NonNull String);
1180*344a7f5eSAndroid Build Coastguard Worker    method public static int e(@Nullable String, @NonNull String, @Nullable Throwable);
1181*344a7f5eSAndroid Build Coastguard Worker    method public static int i(@Nullable String, @NonNull String);
1182*344a7f5eSAndroid Build Coastguard Worker    method public static int i(@Nullable String, @NonNull String, @Nullable Throwable);
1183*344a7f5eSAndroid Build Coastguard Worker    method public static int v(@Nullable String, @NonNull String);
1184*344a7f5eSAndroid Build Coastguard Worker    method public static int v(@Nullable String, @NonNull String, @Nullable Throwable);
1185*344a7f5eSAndroid Build Coastguard Worker    method public static int w(@Nullable String, @NonNull String);
1186*344a7f5eSAndroid Build Coastguard Worker    method public static int w(@Nullable String, @NonNull String, @Nullable Throwable);
1187*344a7f5eSAndroid Build Coastguard Worker    method public static int w(@Nullable String, @Nullable Throwable);
1188*344a7f5eSAndroid Build Coastguard Worker    method public static int wtf(@Nullable String, @NonNull String);
1189*344a7f5eSAndroid Build Coastguard Worker    method public static int wtf(@Nullable String, @Nullable Throwable);
1190*344a7f5eSAndroid Build Coastguard Worker    method public static int wtf(@Nullable String, @NonNull String, @Nullable Throwable);
1191*344a7f5eSAndroid Build Coastguard Worker    method public static void wtfQuiet(@Nullable String, @NonNull String);
1192*344a7f5eSAndroid Build Coastguard Worker    method public static int wtfStack(@Nullable String, @NonNull String);
1193*344a7f5eSAndroid Build Coastguard Worker  }
1194*344a7f5eSAndroid Build Coastguard Worker
1195*344a7f5eSAndroid Build Coastguard Worker  public class SystemConfigFileCommitEventLogger {
1196*344a7f5eSAndroid Build Coastguard Worker    ctor public SystemConfigFileCommitEventLogger(@NonNull String);
1197*344a7f5eSAndroid Build Coastguard Worker    method public void setStartTime(long);
1198*344a7f5eSAndroid Build Coastguard Worker  }
1199*344a7f5eSAndroid Build Coastguard Worker
1200*344a7f5eSAndroid Build Coastguard Worker}
1201*344a7f5eSAndroid Build Coastguard Worker
1202*344a7f5eSAndroid Build Coastguard Workerpackage android.uwb {
1203*344a7f5eSAndroid Build Coastguard Worker
1204*344a7f5eSAndroid Build Coastguard Worker  public class UwbFrameworkInitializer {
1205*344a7f5eSAndroid Build Coastguard Worker    method public static void registerServiceWrappers();
1206*344a7f5eSAndroid Build Coastguard Worker  }
1207*344a7f5eSAndroid Build Coastguard Worker
1208*344a7f5eSAndroid Build Coastguard Worker}
1209*344a7f5eSAndroid Build Coastguard Worker
1210*344a7f5eSAndroid Build Coastguard Workerpackage com.android.okhttp.internalandroidapi {
1211*344a7f5eSAndroid Build Coastguard Worker
1212*344a7f5eSAndroid Build Coastguard Worker  public final class AndroidResponseCacheAdapter {
1213*344a7f5eSAndroid Build Coastguard Worker    ctor public AndroidResponseCacheAdapter(@NonNull com.android.okhttp.internalandroidapi.HasCacheHolder.CacheHolder);
1214*344a7f5eSAndroid Build Coastguard Worker    method public void close() throws java.io.IOException;
1215*344a7f5eSAndroid Build Coastguard Worker    method public void delete() throws java.io.IOException;
1216*344a7f5eSAndroid Build Coastguard Worker    method public void flush() throws java.io.IOException;
1217*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;
1218*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.okhttp.internalandroidapi.HasCacheHolder.CacheHolder getCacheHolder();
1219*344a7f5eSAndroid Build Coastguard Worker    method public int getHitCount();
1220*344a7f5eSAndroid Build Coastguard Worker    method public long getMaxSize();
1221*344a7f5eSAndroid Build Coastguard Worker    method public int getNetworkCount();
1222*344a7f5eSAndroid Build Coastguard Worker    method public int getRequestCount();
1223*344a7f5eSAndroid Build Coastguard Worker    method public long getSize() throws java.io.IOException;
1224*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public java.net.CacheRequest put(@NonNull java.net.URI, @NonNull java.net.URLConnection) throws java.io.IOException;
1225*344a7f5eSAndroid Build Coastguard Worker  }
1226*344a7f5eSAndroid Build Coastguard Worker
1227*344a7f5eSAndroid Build Coastguard Worker  public interface HasCacheHolder {
1228*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.okhttp.internalandroidapi.HasCacheHolder.CacheHolder getCacheHolder();
1229*344a7f5eSAndroid Build Coastguard Worker  }
1230*344a7f5eSAndroid Build Coastguard Worker
1231*344a7f5eSAndroid Build Coastguard Worker  public static final class HasCacheHolder.CacheHolder {
1232*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static com.android.okhttp.internalandroidapi.HasCacheHolder.CacheHolder create(@NonNull java.io.File, long);
1233*344a7f5eSAndroid Build Coastguard Worker    method public boolean isEquivalent(@NonNull java.io.File, long);
1234*344a7f5eSAndroid Build Coastguard Worker  }
1235*344a7f5eSAndroid Build Coastguard Worker
1236*344a7f5eSAndroid Build Coastguard Worker}
1237*344a7f5eSAndroid Build Coastguard Worker
1238*344a7f5eSAndroid Build Coastguard Workerpackage dalvik.annotation.codegen {
1239*344a7f5eSAndroid Build Coastguard Worker
1240*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 {
1241*344a7f5eSAndroid Build Coastguard Worker    method public abstract int presentAfter();
1242*344a7f5eSAndroid Build Coastguard Worker    method public abstract Class<?> returnType();
1243*344a7f5eSAndroid Build Coastguard Worker  }
1244*344a7f5eSAndroid Build Coastguard Worker
1245*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 {
1246*344a7f5eSAndroid Build Coastguard Worker    method public abstract dalvik.annotation.codegen.CovariantReturnType[] value();
1247*344a7f5eSAndroid Build Coastguard Worker  }
1248*344a7f5eSAndroid Build Coastguard Worker
1249*344a7f5eSAndroid Build Coastguard Worker}
1250*344a7f5eSAndroid Build Coastguard Worker
1251*344a7f5eSAndroid Build Coastguard Workerpackage dalvik.annotation.optimization {
1252*344a7f5eSAndroid Build Coastguard Worker
1253*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 {
1254*344a7f5eSAndroid Build Coastguard Worker  }
1255*344a7f5eSAndroid Build Coastguard Worker
1256*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 {
1257*344a7f5eSAndroid Build Coastguard Worker  }
1258*344a7f5eSAndroid Build Coastguard Worker
1259*344a7f5eSAndroid Build Coastguard Worker  @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.CLASS) @java.lang.annotation.Target(java.lang.annotation.ElementType.METHOD) public @interface NeverCompile {
1260*344a7f5eSAndroid Build Coastguard Worker  }
1261*344a7f5eSAndroid Build Coastguard Worker
1262*344a7f5eSAndroid Build Coastguard Worker}
1263*344a7f5eSAndroid Build Coastguard Worker
1264*344a7f5eSAndroid Build Coastguard Workerpackage dalvik.system {
1265*344a7f5eSAndroid Build Coastguard Worker
1266*344a7f5eSAndroid Build Coastguard Worker  public final class AnnotatedStackTraceElement {
1267*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public Object getBlockedOn();
1268*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public Object[] getHeldLocks();
1269*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public StackTraceElement getStackTraceElement();
1270*344a7f5eSAndroid Build Coastguard Worker  }
1271*344a7f5eSAndroid Build Coastguard Worker
1272*344a7f5eSAndroid Build Coastguard Worker  public class AppSpecializationHooks {
1273*344a7f5eSAndroid Build Coastguard Worker    method public static void handleCompatChangesBeforeBindingApplication();
1274*344a7f5eSAndroid Build Coastguard Worker  }
1275*344a7f5eSAndroid Build Coastguard Worker
1276*344a7f5eSAndroid Build Coastguard Worker  public class BaseDexClassLoader extends java.lang.ClassLoader {
1277*344a7f5eSAndroid Build Coastguard Worker    method public void addDexPath(@Nullable String);
1278*344a7f5eSAndroid Build Coastguard Worker    method public void addNativePath(@NonNull java.util.Collection<java.lang.String>);
1279*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String getLdLibraryPath();
1280*344a7f5eSAndroid Build Coastguard Worker    method public void reportClassLoaderChain();
1281*344a7f5eSAndroid Build Coastguard Worker    method public static void setReporter(@Nullable dalvik.system.BaseDexClassLoader.Reporter);
1282*344a7f5eSAndroid Build Coastguard Worker  }
1283*344a7f5eSAndroid Build Coastguard Worker
1284*344a7f5eSAndroid Build Coastguard Worker  public static interface BaseDexClassLoader.Reporter {
1285*344a7f5eSAndroid Build Coastguard Worker    method public void report(@NonNull java.util.Map<java.lang.String,java.lang.String>);
1286*344a7f5eSAndroid Build Coastguard Worker  }
1287*344a7f5eSAndroid Build Coastguard Worker
1288*344a7f5eSAndroid Build Coastguard Worker  public final class BlockGuard {
1289*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static dalvik.system.BlockGuard.Policy getThreadPolicy();
1290*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static dalvik.system.BlockGuard.VmPolicy getVmPolicy();
1291*344a7f5eSAndroid Build Coastguard Worker    method public static void setThreadPolicy(@NonNull dalvik.system.BlockGuard.Policy);
1292*344a7f5eSAndroid Build Coastguard Worker    method public static void setVmPolicy(@NonNull dalvik.system.BlockGuard.VmPolicy);
1293*344a7f5eSAndroid Build Coastguard Worker    field public static final dalvik.system.BlockGuard.Policy LAX_POLICY;
1294*344a7f5eSAndroid Build Coastguard Worker    field public static final dalvik.system.BlockGuard.VmPolicy LAX_VM_POLICY;
1295*344a7f5eSAndroid Build Coastguard Worker  }
1296*344a7f5eSAndroid Build Coastguard Worker
1297*344a7f5eSAndroid Build Coastguard Worker  public static interface BlockGuard.Policy {
1298*344a7f5eSAndroid Build Coastguard Worker    method public int getPolicyMask();
1299*344a7f5eSAndroid Build Coastguard Worker    method public void onReadFromDisk();
1300*344a7f5eSAndroid Build Coastguard Worker    method public void onUnbufferedIO();
1301*344a7f5eSAndroid Build Coastguard Worker    method public void onWriteToDisk();
1302*344a7f5eSAndroid Build Coastguard Worker  }
1303*344a7f5eSAndroid Build Coastguard Worker
1304*344a7f5eSAndroid Build Coastguard Worker  public static interface BlockGuard.VmPolicy {
1305*344a7f5eSAndroid Build Coastguard Worker    method public void onPathAccess(@NonNull String);
1306*344a7f5eSAndroid Build Coastguard Worker  }
1307*344a7f5eSAndroid Build Coastguard Worker
1308*344a7f5eSAndroid Build Coastguard Worker  public final class CloseGuard {
1309*344a7f5eSAndroid Build Coastguard Worker    method public void close();
1310*344a7f5eSAndroid Build Coastguard Worker    method public static dalvik.system.CloseGuard get();
1311*344a7f5eSAndroid Build Coastguard Worker    method public static dalvik.system.CloseGuard.Reporter getReporter();
1312*344a7f5eSAndroid Build Coastguard Worker    method public void open(String);
1313*344a7f5eSAndroid Build Coastguard Worker    method public void openWithCallSite(String, String);
1314*344a7f5eSAndroid Build Coastguard Worker    method public static void setEnabled(boolean);
1315*344a7f5eSAndroid Build Coastguard Worker    method public static void setReporter(dalvik.system.CloseGuard.Reporter);
1316*344a7f5eSAndroid Build Coastguard Worker    method public void warnIfOpen();
1317*344a7f5eSAndroid Build Coastguard Worker  }
1318*344a7f5eSAndroid Build Coastguard Worker
1319*344a7f5eSAndroid Build Coastguard Worker  public static interface CloseGuard.Reporter {
1320*344a7f5eSAndroid Build Coastguard Worker    method public void report(String, Throwable);
1321*344a7f5eSAndroid Build Coastguard Worker    method public default void report(String);
1322*344a7f5eSAndroid Build Coastguard Worker  }
1323*344a7f5eSAndroid Build Coastguard Worker
1324*344a7f5eSAndroid Build Coastguard Worker  public final class DelegateLastClassLoader extends dalvik.system.PathClassLoader {
1325*344a7f5eSAndroid Build Coastguard Worker    ctor public DelegateLastClassLoader(String, String, ClassLoader, ClassLoader[]);
1326*344a7f5eSAndroid Build Coastguard Worker    ctor public DelegateLastClassLoader(String, String, ClassLoader, ClassLoader[], ClassLoader[]);
1327*344a7f5eSAndroid Build Coastguard Worker  }
1328*344a7f5eSAndroid Build Coastguard Worker
1329*344a7f5eSAndroid Build Coastguard Worker  @Deprecated public final class DexFile {
1330*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public static dalvik.system.DexFile.OptimizationInfo getDexFileOptimizationInfo(@NonNull String, @NonNull String) throws java.io.FileNotFoundException;
1331*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @Nullable public static String[] getDexFileOutputPaths(@NonNull String, @NonNull String) throws java.io.FileNotFoundException;
1332*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;
1333*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public static String getSafeModeCompilerFilter(@NonNull String);
1334*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public static boolean isProfileGuidedCompilerFilter(@NonNull String);
1335*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public static boolean isValidCompilerFilter(@NonNull String);
1336*344a7f5eSAndroid Build Coastguard Worker    field @Deprecated public static final int DEX2OAT_FOR_FILTER = 3; // 0x3
1337*344a7f5eSAndroid Build Coastguard Worker    field @Deprecated public static final int NO_DEXOPT_NEEDED = 0; // 0x0
1338*344a7f5eSAndroid Build Coastguard Worker  }
1339*344a7f5eSAndroid Build Coastguard Worker
1340*344a7f5eSAndroid Build Coastguard Worker  @Deprecated public static final class DexFile.OptimizationInfo {
1341*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public String getReason();
1342*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public String getStatus();
1343*344a7f5eSAndroid Build Coastguard Worker  }
1344*344a7f5eSAndroid Build Coastguard Worker
1345*344a7f5eSAndroid Build Coastguard Worker  public class PathClassLoader extends dalvik.system.BaseDexClassLoader {
1346*344a7f5eSAndroid Build Coastguard Worker    ctor public PathClassLoader(@NonNull String, @Nullable String, @Nullable ClassLoader, @Nullable ClassLoader[]);
1347*344a7f5eSAndroid Build Coastguard Worker    ctor public PathClassLoader(@NonNull String, @Nullable String, @Nullable ClassLoader, @Nullable ClassLoader[], @Nullable ClassLoader[]);
1348*344a7f5eSAndroid Build Coastguard Worker  }
1349*344a7f5eSAndroid Build Coastguard Worker
1350*344a7f5eSAndroid Build Coastguard Worker  public final class RuntimeHooks {
1351*344a7f5eSAndroid Build Coastguard Worker    method public static void setTimeZoneIdSupplier(@NonNull java.util.function.Supplier<java.lang.String>);
1352*344a7f5eSAndroid Build Coastguard Worker    method public static void setUncaughtExceptionPreHandler(@Nullable java.lang.Thread.UncaughtExceptionHandler);
1353*344a7f5eSAndroid Build Coastguard Worker  }
1354*344a7f5eSAndroid Build Coastguard Worker
1355*344a7f5eSAndroid Build Coastguard Worker  public abstract class SocketTagger {
1356*344a7f5eSAndroid Build Coastguard Worker    ctor public SocketTagger();
1357*344a7f5eSAndroid Build Coastguard Worker    method public static dalvik.system.SocketTagger get();
1358*344a7f5eSAndroid Build Coastguard Worker    method public static void set(dalvik.system.SocketTagger);
1359*344a7f5eSAndroid Build Coastguard Worker    method public abstract void tag(java.io.FileDescriptor) throws java.net.SocketException;
1360*344a7f5eSAndroid Build Coastguard Worker    method public final void tag(java.net.Socket) throws java.net.SocketException;
1361*344a7f5eSAndroid Build Coastguard Worker    method public final void tag(java.net.DatagramSocket) throws java.net.SocketException;
1362*344a7f5eSAndroid Build Coastguard Worker    method public abstract void untag(java.io.FileDescriptor) throws java.net.SocketException;
1363*344a7f5eSAndroid Build Coastguard Worker    method public final void untag(java.net.Socket) throws java.net.SocketException;
1364*344a7f5eSAndroid Build Coastguard Worker    method public final void untag(java.net.DatagramSocket) throws java.net.SocketException;
1365*344a7f5eSAndroid Build Coastguard Worker  }
1366*344a7f5eSAndroid Build Coastguard Worker
1367*344a7f5eSAndroid Build Coastguard Worker  public final class VMDebug {
1368*344a7f5eSAndroid Build Coastguard Worker    method public static void attachAgent(String, ClassLoader) throws java.io.IOException;
1369*344a7f5eSAndroid Build Coastguard Worker    method public static long countInstancesOfClass(Class, boolean);
1370*344a7f5eSAndroid Build Coastguard Worker    method public static long[] countInstancesOfClasses(Class[], boolean);
1371*344a7f5eSAndroid Build Coastguard Worker    method public static void dumpHprofData(String) throws java.io.IOException;
1372*344a7f5eSAndroid Build Coastguard Worker    method public static void dumpHprofData(String, java.io.FileDescriptor) throws java.io.IOException;
1373*344a7f5eSAndroid Build Coastguard Worker    method public static void dumpHprofDataDdms();
1374*344a7f5eSAndroid Build Coastguard Worker    method public static void dumpReferenceTables();
1375*344a7f5eSAndroid Build Coastguard Worker    method public static int getAllocCount(int);
1376*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public static int getLoadedClassCount();
1377*344a7f5eSAndroid Build Coastguard Worker    method public static int getMethodTracingMode();
1378*344a7f5eSAndroid Build Coastguard Worker    method public static String getRuntimeStat(String);
1379*344a7f5eSAndroid Build Coastguard Worker    method public static java.util.Map<java.lang.String,java.lang.String> getRuntimeStats();
1380*344a7f5eSAndroid Build Coastguard Worker    method public static String[] getVmFeatureList();
1381*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public static boolean isDebuggerConnected();
1382*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public static boolean isDebuggingEnabled();
1383*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public static long lastDebuggerActivity();
1384*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public static void printLoadedClasses(int);
1385*344a7f5eSAndroid Build Coastguard Worker    method public static void resetAllocCount(int);
1386*344a7f5eSAndroid Build Coastguard Worker    method public static void setAllocTrackerStackDepth(int);
1387*344a7f5eSAndroid Build Coastguard Worker    method public static void startAllocCounting();
1388*344a7f5eSAndroid Build Coastguard Worker    method public static void startMethodTracing(String, int, int, boolean, int);
1389*344a7f5eSAndroid Build Coastguard Worker    method public static void startMethodTracing(String, java.io.FileDescriptor, int, int, boolean, int, boolean);
1390*344a7f5eSAndroid Build Coastguard Worker    method public static void startMethodTracingDdms(int, int, boolean, int);
1391*344a7f5eSAndroid Build Coastguard Worker    method public static void stopAllocCounting();
1392*344a7f5eSAndroid Build Coastguard Worker    method public static void stopMethodTracing();
1393*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public static long threadCpuTimeNanos();
1394*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_ALL_COUNTS = -1; // 0xffffffff
1395*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_GLOBAL_ALLOCATED_BYTES = 2; // 0x2
1396*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_GLOBAL_ALLOCATED_OBJECTS = 1; // 0x1
1397*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_GLOBAL_CLASS_INIT_COUNT = 32; // 0x20
1398*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_GLOBAL_CLASS_INIT_TIME = 64; // 0x40
1399*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_GLOBAL_FREED_BYTES = 8; // 0x8
1400*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_GLOBAL_FREED_OBJECTS = 4; // 0x4
1401*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_GLOBAL_GC_INVOCATIONS = 16; // 0x10
1402*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_THREAD_ALLOCATED_BYTES = 131072; // 0x20000
1403*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_THREAD_ALLOCATED_OBJECTS = 65536; // 0x10000
1404*344a7f5eSAndroid Build Coastguard Worker    field public static final int KIND_THREAD_GC_INVOCATIONS = 1048576; // 0x100000
1405*344a7f5eSAndroid Build Coastguard Worker    field public static final int TRACE_COUNT_ALLOCS = 1; // 0x1
1406*344a7f5eSAndroid Build Coastguard Worker  }
1407*344a7f5eSAndroid Build Coastguard Worker
1408*344a7f5eSAndroid Build Coastguard Worker  public final class VMRuntime {
1409*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public long addressOf(Object);
1410*344a7f5eSAndroid Build Coastguard Worker    method public static void bootCompleted();
1411*344a7f5eSAndroid Build Coastguard Worker    method public void clampGrowthLimit();
1412*344a7f5eSAndroid Build Coastguard Worker    method public void clearGrowthLimit();
1413*344a7f5eSAndroid Build Coastguard Worker    method public static String getCurrentInstructionSet();
1414*344a7f5eSAndroid Build Coastguard Worker    method public static String getInstructionSet(String);
1415*344a7f5eSAndroid Build Coastguard Worker    method public static dalvik.system.VMRuntime getRuntime();
1416*344a7f5eSAndroid Build Coastguard Worker    method public int getTargetSdkVersion();
1417*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public boolean is64Bit();
1418*344a7f5eSAndroid Build Coastguard Worker    method public static boolean is64BitAbi(String);
1419*344a7f5eSAndroid Build Coastguard Worker    method public static boolean is64BitInstructionSet(String);
1420*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public boolean isCheckJniEnabled();
1421*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public boolean isNativeDebuggable();
1422*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isValidClassLoaderContext(String);
1423*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public Object newNonMovableArray(Class<?>, int);
1424*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public Object newUnpaddedArray(Class<?>, int);
1425*344a7f5eSAndroid Build Coastguard Worker    method public void notifyStartupCompleted();
1426*344a7f5eSAndroid Build Coastguard Worker    method public void preloadDexCaches();
1427*344a7f5eSAndroid Build Coastguard Worker    method public static void registerAppInfo(String, String, String, String[], int);
1428*344a7f5eSAndroid Build Coastguard Worker    method public void registerNativeAllocation(long);
1429*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public void registerNativeAllocation(int);
1430*344a7f5eSAndroid Build Coastguard Worker    method public void registerNativeFree(long);
1431*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public void registerNativeFree(int);
1432*344a7f5eSAndroid Build Coastguard Worker    method public static void registerSensitiveThread();
1433*344a7f5eSAndroid Build Coastguard Worker    method public void requestConcurrentGC();
1434*344a7f5eSAndroid Build Coastguard Worker    method public static void resetJitCounters();
1435*344a7f5eSAndroid Build Coastguard Worker    method public static void setDedupeHiddenApiWarnings(boolean);
1436*344a7f5eSAndroid Build Coastguard Worker    method public void setDisabledCompatChanges(long[]);
1437*344a7f5eSAndroid Build Coastguard Worker    method public void setHiddenApiAccessLogSamplingRate(int);
1438*344a7f5eSAndroid Build Coastguard Worker    method public void setHiddenApiExemptions(String[]);
1439*344a7f5eSAndroid Build Coastguard Worker    method public static void setHiddenApiUsageLogger(dalvik.system.VMRuntime.HiddenApiUsageLogger);
1440*344a7f5eSAndroid Build Coastguard Worker    method public static void setNonSdkApiUsageConsumer(java.util.function.Consumer<java.lang.String>);
1441*344a7f5eSAndroid Build Coastguard Worker    method public static void setProcessDataDirectory(String);
1442*344a7f5eSAndroid Build Coastguard Worker    method public static void setProcessPackageName(String);
1443*344a7f5eSAndroid Build Coastguard Worker    method public void setTargetSdkVersion(int);
1444*344a7f5eSAndroid Build Coastguard Worker    method public void updateProcessState(int);
1445*344a7f5eSAndroid Build Coastguard Worker    method public String vmInstructionSet();
1446*344a7f5eSAndroid Build Coastguard Worker    method public String vmLibrary();
1447*344a7f5eSAndroid Build Coastguard Worker    field public static final int CODE_PATH_TYPE_PRIMARY_APK = 1; // 0x1
1448*344a7f5eSAndroid Build Coastguard Worker    field public static final int CODE_PATH_TYPE_SECONDARY_DEX = 4; // 0x4
1449*344a7f5eSAndroid Build Coastguard Worker    field public static final int CODE_PATH_TYPE_SPLIT_APK = 2; // 0x2
1450*344a7f5eSAndroid Build Coastguard Worker    field public static final int SDK_VERSION_CUR_DEVELOPMENT = 10000; // 0x2710
1451*344a7f5eSAndroid Build Coastguard Worker  }
1452*344a7f5eSAndroid Build Coastguard Worker
1453*344a7f5eSAndroid Build Coastguard Worker  public static interface VMRuntime.HiddenApiUsageLogger {
1454*344a7f5eSAndroid Build Coastguard Worker    method public void hiddenApiUsed(int, String, String, int, boolean);
1455*344a7f5eSAndroid Build Coastguard Worker    field public static final int ACCESS_METHOD_JNI = 2; // 0x2
1456*344a7f5eSAndroid Build Coastguard Worker    field public static final int ACCESS_METHOD_LINKING = 3; // 0x3
1457*344a7f5eSAndroid Build Coastguard Worker    field public static final int ACCESS_METHOD_NONE = 0; // 0x0
1458*344a7f5eSAndroid Build Coastguard Worker    field public static final int ACCESS_METHOD_REFLECTION = 1; // 0x1
1459*344a7f5eSAndroid Build Coastguard Worker  }
1460*344a7f5eSAndroid Build Coastguard Worker
1461*344a7f5eSAndroid Build Coastguard Worker  public final class VMStack {
1462*344a7f5eSAndroid Build Coastguard Worker    method @Nullable @dalvik.annotation.optimization.FastNative public static dalvik.system.AnnotatedStackTraceElement[] getAnnotatedThreadStackTrace(Thread);
1463*344a7f5eSAndroid Build Coastguard Worker  }
1464*344a7f5eSAndroid Build Coastguard Worker
1465*344a7f5eSAndroid Build Coastguard Worker  public final class ZygoteHooks {
1466*344a7f5eSAndroid Build Coastguard Worker    method public static void gcAndFinalize();
1467*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isIndefiniteThreadSuspensionSafe();
1468*344a7f5eSAndroid Build Coastguard Worker    method public static void onBeginPreload();
1469*344a7f5eSAndroid Build Coastguard Worker    method public static void onEndPreload();
1470*344a7f5eSAndroid Build Coastguard Worker    method public static void postForkChild(int, boolean, boolean, String);
1471*344a7f5eSAndroid Build Coastguard Worker    method public static void postForkCommon();
1472*344a7f5eSAndroid Build Coastguard Worker    method public static void postForkSystemServer(int);
1473*344a7f5eSAndroid Build Coastguard Worker    method public static void preFork();
1474*344a7f5eSAndroid Build Coastguard Worker    method public static void startZygoteNoThreadCreation();
1475*344a7f5eSAndroid Build Coastguard Worker    method public static void stopZygoteNoThreadCreation();
1476*344a7f5eSAndroid Build Coastguard Worker  }
1477*344a7f5eSAndroid Build Coastguard Worker
1478*344a7f5eSAndroid Build Coastguard Worker}
1479*344a7f5eSAndroid Build Coastguard Worker
1480*344a7f5eSAndroid Build Coastguard Workerpackage java.io {
1481*344a7f5eSAndroid Build Coastguard Worker
1482*344a7f5eSAndroid Build Coastguard Worker  public final class FileDescriptor {
1483*344a7f5eSAndroid Build Coastguard Worker    method public int getInt$();
1484*344a7f5eSAndroid Build Coastguard Worker    method public void setInt$(int);
1485*344a7f5eSAndroid Build Coastguard Worker  }
1486*344a7f5eSAndroid Build Coastguard Worker
1487*344a7f5eSAndroid Build Coastguard Worker  public class FileInputStream extends java.io.InputStream {
1488*344a7f5eSAndroid Build Coastguard Worker    ctor public FileInputStream(java.io.FileDescriptor, boolean);
1489*344a7f5eSAndroid Build Coastguard Worker  }
1490*344a7f5eSAndroid Build Coastguard Worker
1491*344a7f5eSAndroid Build Coastguard Worker}
1492*344a7f5eSAndroid Build Coastguard Worker
1493*344a7f5eSAndroid Build Coastguard Workerpackage java.lang {
1494*344a7f5eSAndroid Build Coastguard Worker
1495*344a7f5eSAndroid Build Coastguard Worker  public class Thread implements java.lang.Runnable {
1496*344a7f5eSAndroid Build Coastguard Worker    method public static java.lang.Thread.UncaughtExceptionHandler getUncaughtExceptionPreHandler();
1497*344a7f5eSAndroid Build Coastguard Worker    method public static void setUncaughtExceptionPreHandler(java.lang.Thread.UncaughtExceptionHandler);
1498*344a7f5eSAndroid Build Coastguard Worker  }
1499*344a7f5eSAndroid Build Coastguard Worker
1500*344a7f5eSAndroid Build Coastguard Worker}
1501*344a7f5eSAndroid Build Coastguard Worker
1502*344a7f5eSAndroid Build Coastguard Workerpackage java.net {
1503*344a7f5eSAndroid Build Coastguard Worker
1504*344a7f5eSAndroid Build Coastguard Worker  public class DatagramSocket implements java.io.Closeable {
1505*344a7f5eSAndroid Build Coastguard Worker    method public java.io.FileDescriptor getFileDescriptor$();
1506*344a7f5eSAndroid Build Coastguard Worker  }
1507*344a7f5eSAndroid Build Coastguard Worker
1508*344a7f5eSAndroid Build Coastguard Worker  public final class Inet4Address extends java.net.InetAddress {
1509*344a7f5eSAndroid Build Coastguard Worker    field public static final java.net.InetAddress ALL;
1510*344a7f5eSAndroid Build Coastguard Worker    field public static final java.net.InetAddress ANY;
1511*344a7f5eSAndroid Build Coastguard Worker    field public static final java.net.InetAddress LOOPBACK;
1512*344a7f5eSAndroid Build Coastguard Worker  }
1513*344a7f5eSAndroid Build Coastguard Worker
1514*344a7f5eSAndroid Build Coastguard Worker  public final class Inet6Address extends java.net.InetAddress {
1515*344a7f5eSAndroid Build Coastguard Worker    field public static final java.net.InetAddress ANY;
1516*344a7f5eSAndroid Build Coastguard Worker    field public static final java.net.InetAddress LOOPBACK;
1517*344a7f5eSAndroid Build Coastguard Worker  }
1518*344a7f5eSAndroid Build Coastguard Worker
1519*344a7f5eSAndroid Build Coastguard Worker  public class InetAddress implements java.io.Serializable {
1520*344a7f5eSAndroid Build Coastguard Worker    method public static void clearDnsCache();
1521*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.net.InetAddress[] getAllByNameOnNet(@Nullable String, int) throws java.net.UnknownHostException;
1522*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.net.InetAddress getByNameOnNet(@Nullable String, int) throws java.net.UnknownHostException;
1523*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public static boolean isNumeric(String);
1524*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public static java.net.InetAddress parseNumericAddress(String);
1525*344a7f5eSAndroid Build Coastguard Worker  }
1526*344a7f5eSAndroid Build Coastguard Worker
1527*344a7f5eSAndroid Build Coastguard Worker  public class InetSocketAddress extends java.net.SocketAddress {
1528*344a7f5eSAndroid Build Coastguard Worker    ctor public InetSocketAddress();
1529*344a7f5eSAndroid Build Coastguard Worker  }
1530*344a7f5eSAndroid Build Coastguard Worker
1531*344a7f5eSAndroid Build Coastguard Worker  public class ServerSocket implements java.io.Closeable {
1532*344a7f5eSAndroid Build Coastguard Worker    method public java.net.SocketImpl getImpl() throws java.net.SocketException;
1533*344a7f5eSAndroid Build Coastguard Worker  }
1534*344a7f5eSAndroid Build Coastguard Worker
1535*344a7f5eSAndroid Build Coastguard Worker  public class Socket implements java.io.Closeable {
1536*344a7f5eSAndroid Build Coastguard Worker    method public java.io.FileDescriptor getFileDescriptor$();
1537*344a7f5eSAndroid Build Coastguard Worker  }
1538*344a7f5eSAndroid Build Coastguard Worker
1539*344a7f5eSAndroid Build Coastguard Worker  public abstract class SocketImpl implements java.net.SocketOptions {
1540*344a7f5eSAndroid Build Coastguard Worker    method public java.io.FileDescriptor getFD$();
1541*344a7f5eSAndroid Build Coastguard Worker  }
1542*344a7f5eSAndroid Build Coastguard Worker
1543*344a7f5eSAndroid Build Coastguard Worker}
1544*344a7f5eSAndroid Build Coastguard Worker
1545*344a7f5eSAndroid Build Coastguard Workerpackage java.nio {
1546*344a7f5eSAndroid Build Coastguard Worker
1547*344a7f5eSAndroid Build Coastguard Worker  public abstract class ByteBuffer extends java.nio.Buffer implements java.lang.Comparable<java.nio.ByteBuffer> {
1548*344a7f5eSAndroid Build Coastguard Worker    method public void setAccessible(boolean);
1549*344a7f5eSAndroid Build Coastguard Worker  }
1550*344a7f5eSAndroid Build Coastguard Worker
1551*344a7f5eSAndroid Build Coastguard Worker  public class DirectByteBuffer extends java.nio.MappedByteBuffer {
1552*344a7f5eSAndroid Build Coastguard Worker    ctor public DirectByteBuffer(int, long, java.io.FileDescriptor, Runnable, boolean);
1553*344a7f5eSAndroid Build Coastguard Worker    method public final long address();
1554*344a7f5eSAndroid Build Coastguard Worker    method public final void setAccessible(boolean);
1555*344a7f5eSAndroid Build Coastguard Worker  }
1556*344a7f5eSAndroid Build Coastguard Worker
1557*344a7f5eSAndroid Build Coastguard Worker  public final class NIOAccess {
1558*344a7f5eSAndroid Build Coastguard Worker    method public static Object getBaseArray(java.nio.Buffer);
1559*344a7f5eSAndroid Build Coastguard Worker    method public static int getBaseArrayOffset(java.nio.Buffer);
1560*344a7f5eSAndroid Build Coastguard Worker  }
1561*344a7f5eSAndroid Build Coastguard Worker
1562*344a7f5eSAndroid Build Coastguard Worker  public final class NioUtils {
1563*344a7f5eSAndroid Build Coastguard Worker    method public static void freeDirectBuffer(java.nio.ByteBuffer);
1564*344a7f5eSAndroid Build Coastguard Worker    method public static byte[] unsafeArray(java.nio.ByteBuffer);
1565*344a7f5eSAndroid Build Coastguard Worker    method public static int unsafeArrayOffset(java.nio.ByteBuffer);
1566*344a7f5eSAndroid Build Coastguard Worker  }
1567*344a7f5eSAndroid Build Coastguard Worker
1568*344a7f5eSAndroid Build Coastguard Worker}
1569*344a7f5eSAndroid Build Coastguard Worker
1570*344a7f5eSAndroid Build Coastguard Workerpackage java.security {
1571*344a7f5eSAndroid Build Coastguard Worker
1572*344a7f5eSAndroid Build Coastguard Worker  public abstract class Provider extends java.util.Properties {
1573*344a7f5eSAndroid Build Coastguard Worker    method public void warmUpServiceProvision();
1574*344a7f5eSAndroid Build Coastguard Worker  }
1575*344a7f5eSAndroid Build Coastguard Worker
1576*344a7f5eSAndroid Build Coastguard Worker  public abstract class Signature extends java.security.SignatureSpi {
1577*344a7f5eSAndroid Build Coastguard Worker    method public java.security.SignatureSpi getCurrentSpi();
1578*344a7f5eSAndroid Build Coastguard Worker  }
1579*344a7f5eSAndroid Build Coastguard Worker
1580*344a7f5eSAndroid Build Coastguard Worker}
1581*344a7f5eSAndroid Build Coastguard Worker
1582*344a7f5eSAndroid Build Coastguard Workerpackage java.text {
1583*344a7f5eSAndroid Build Coastguard Worker
1584*344a7f5eSAndroid Build Coastguard Worker  public abstract class DateFormat extends java.text.Format {
1585*344a7f5eSAndroid Build Coastguard Worker    method public static final void set24HourTimePref(Boolean);
1586*344a7f5eSAndroid Build Coastguard Worker  }
1587*344a7f5eSAndroid Build Coastguard Worker
1588*344a7f5eSAndroid Build Coastguard Worker}
1589*344a7f5eSAndroid Build Coastguard Worker
1590*344a7f5eSAndroid Build Coastguard Workerpackage java.util {
1591*344a7f5eSAndroid Build Coastguard Worker
1592*344a7f5eSAndroid Build Coastguard Worker  public class LinkedHashMap<K, V> extends java.util.HashMap<K,V> implements java.util.Map<K,V> {
1593*344a7f5eSAndroid Build Coastguard Worker    method public java.util.Map.Entry<K,V> eldest();
1594*344a7f5eSAndroid Build Coastguard Worker  }
1595*344a7f5eSAndroid Build Coastguard Worker
1596*344a7f5eSAndroid Build Coastguard Worker}
1597*344a7f5eSAndroid Build Coastguard Worker
1598*344a7f5eSAndroid Build Coastguard Workerpackage java.util.zip {
1599*344a7f5eSAndroid Build Coastguard Worker
1600*344a7f5eSAndroid Build Coastguard Worker  public class ZipEntry implements java.lang.Cloneable {
1601*344a7f5eSAndroid Build Coastguard Worker    method public long getDataOffset();
1602*344a7f5eSAndroid Build Coastguard Worker  }
1603*344a7f5eSAndroid Build Coastguard Worker
1604*344a7f5eSAndroid Build Coastguard Worker}
1605*344a7f5eSAndroid Build Coastguard Worker
1606*344a7f5eSAndroid Build Coastguard Workerpackage javax.crypto {
1607*344a7f5eSAndroid Build Coastguard Worker
1608*344a7f5eSAndroid Build Coastguard Worker  public class Cipher {
1609*344a7f5eSAndroid Build Coastguard Worker    method public javax.crypto.CipherSpi getCurrentSpi();
1610*344a7f5eSAndroid Build Coastguard Worker  }
1611*344a7f5eSAndroid Build Coastguard Worker
1612*344a7f5eSAndroid Build Coastguard Worker  public class Mac implements java.lang.Cloneable {
1613*344a7f5eSAndroid Build Coastguard Worker    method public javax.crypto.MacSpi getCurrentSpi();
1614*344a7f5eSAndroid Build Coastguard Worker  }
1615*344a7f5eSAndroid Build Coastguard Worker
1616*344a7f5eSAndroid Build Coastguard Worker}
1617*344a7f5eSAndroid Build Coastguard Worker
1618*344a7f5eSAndroid Build Coastguard Workerpackage javax.net.ssl {
1619*344a7f5eSAndroid Build Coastguard Worker
1620*344a7f5eSAndroid Build Coastguard Worker  public abstract class HttpsURLConnection extends java.net.HttpURLConnection {
1621*344a7f5eSAndroid Build Coastguard Worker    method public static javax.net.ssl.HostnameVerifier getStrictHostnameVerifier();
1622*344a7f5eSAndroid Build Coastguard Worker  }
1623*344a7f5eSAndroid Build Coastguard Worker
1624*344a7f5eSAndroid Build Coastguard Worker}
1625*344a7f5eSAndroid Build Coastguard Worker
1626*344a7f5eSAndroid Build Coastguard Workerpackage libcore.content.type {
1627*344a7f5eSAndroid Build Coastguard Worker
1628*344a7f5eSAndroid Build Coastguard Worker  public final class MimeMap {
1629*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public libcore.content.type.MimeMap.Builder buildUpon();
1630*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static libcore.content.type.MimeMap.Builder builder();
1631*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Set<java.lang.String> extensions();
1632*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static libcore.content.type.MimeMap getDefault();
1633*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String guessExtensionFromMimeType(@Nullable String);
1634*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String guessMimeTypeFromExtension(@Nullable String);
1635*344a7f5eSAndroid Build Coastguard Worker    method public boolean hasExtension(@Nullable String);
1636*344a7f5eSAndroid Build Coastguard Worker    method public boolean hasMimeType(@Nullable String);
1637*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Set<java.lang.String> mimeTypes();
1638*344a7f5eSAndroid Build Coastguard Worker    method public static void setDefaultSupplier(@NonNull java.util.function.Supplier<libcore.content.type.MimeMap>);
1639*344a7f5eSAndroid Build Coastguard Worker  }
1640*344a7f5eSAndroid Build Coastguard Worker
1641*344a7f5eSAndroid Build Coastguard Worker  public static final class MimeMap.Builder {
1642*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public libcore.content.type.MimeMap.Builder addMimeMapping(@NonNull String, @NonNull java.util.List<java.lang.String>);
1643*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public libcore.content.type.MimeMap build();
1644*344a7f5eSAndroid Build Coastguard Worker  }
1645*344a7f5eSAndroid Build Coastguard Worker
1646*344a7f5eSAndroid Build Coastguard Worker}
1647*344a7f5eSAndroid Build Coastguard Worker
1648*344a7f5eSAndroid Build Coastguard Workerpackage libcore.io {
1649*344a7f5eSAndroid Build Coastguard Worker
1650*344a7f5eSAndroid Build Coastguard Worker  public class ForwardingOs implements libcore.io.Os {
1651*344a7f5eSAndroid Build Coastguard Worker    ctor protected ForwardingOs(@NonNull libcore.io.Os);
1652*344a7f5eSAndroid Build Coastguard Worker    method public boolean access(@Nullable String, int) throws android.system.ErrnoException;
1653*344a7f5eSAndroid Build Coastguard Worker    method public java.io.FileDescriptor open(@Nullable String, int, int) throws android.system.ErrnoException;
1654*344a7f5eSAndroid Build Coastguard Worker    method public void remove(@Nullable String) throws android.system.ErrnoException;
1655*344a7f5eSAndroid Build Coastguard Worker    method public void rename(@Nullable String, @Nullable String) throws android.system.ErrnoException;
1656*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.system.StructStat stat(@Nullable String) throws android.system.ErrnoException;
1657*344a7f5eSAndroid Build Coastguard Worker    method public void unlink(@Nullable String) throws android.system.ErrnoException;
1658*344a7f5eSAndroid Build Coastguard Worker  }
1659*344a7f5eSAndroid Build Coastguard Worker
1660*344a7f5eSAndroid Build Coastguard Worker  public final class IoBridge {
1661*344a7f5eSAndroid Build Coastguard Worker    method public static void closeAndSignalBlockedThreads(@NonNull java.io.FileDescriptor) throws java.io.IOException;
1662*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static java.io.FileDescriptor open(@NonNull String, int) throws java.io.FileNotFoundException;
1663*344a7f5eSAndroid Build Coastguard Worker    method public static int read(@NonNull java.io.FileDescriptor, @NonNull byte[], int, int) throws java.io.IOException;
1664*344a7f5eSAndroid Build Coastguard Worker    method public static void write(@NonNull java.io.FileDescriptor, @NonNull byte[], int, int) throws java.io.IOException;
1665*344a7f5eSAndroid Build Coastguard Worker  }
1666*344a7f5eSAndroid Build Coastguard Worker
1667*344a7f5eSAndroid Build Coastguard Worker  public final class IoUtils {
1668*344a7f5eSAndroid Build Coastguard Worker    method public static int acquireRawFd(@NonNull java.io.FileDescriptor);
1669*344a7f5eSAndroid Build Coastguard Worker    method public static void close(@Nullable java.io.FileDescriptor) throws java.io.IOException;
1670*344a7f5eSAndroid Build Coastguard Worker    method public static void closeQuietly(@Nullable AutoCloseable);
1671*344a7f5eSAndroid Build Coastguard Worker    method public static void closeQuietly(@Nullable java.io.FileDescriptor);
1672*344a7f5eSAndroid Build Coastguard Worker    method public static void closeQuietly(@Nullable java.net.Socket);
1673*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static byte[] readFileAsByteArray(@NonNull String) throws java.io.IOException;
1674*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static String readFileAsString(@NonNull String) throws java.io.IOException;
1675*344a7f5eSAndroid Build Coastguard Worker    method public static void setBlocking(@NonNull java.io.FileDescriptor, boolean) throws java.io.IOException;
1676*344a7f5eSAndroid Build Coastguard Worker    method public static void setFdOwner(@NonNull java.io.FileDescriptor, @NonNull Object);
1677*344a7f5eSAndroid Build Coastguard Worker  }
1678*344a7f5eSAndroid Build Coastguard Worker
1679*344a7f5eSAndroid Build Coastguard Worker  public final class Memory {
1680*344a7f5eSAndroid Build Coastguard Worker    method public static void memmove(@NonNull Object, int, @NonNull Object, int, long);
1681*344a7f5eSAndroid Build Coastguard Worker    method public static int peekInt(@NonNull byte[], int, @NonNull java.nio.ByteOrder);
1682*344a7f5eSAndroid Build Coastguard Worker    method public static short peekShort(@NonNull byte[], int, @NonNull java.nio.ByteOrder);
1683*344a7f5eSAndroid Build Coastguard Worker    method public static void pokeInt(@NonNull byte[], int, int, @NonNull java.nio.ByteOrder);
1684*344a7f5eSAndroid Build Coastguard Worker    method public static void pokeLong(@NonNull byte[], int, long, @NonNull java.nio.ByteOrder);
1685*344a7f5eSAndroid Build Coastguard Worker    method public static void pokeShort(@NonNull byte[], int, short, @NonNull java.nio.ByteOrder);
1686*344a7f5eSAndroid Build Coastguard Worker  }
1687*344a7f5eSAndroid Build Coastguard Worker
1688*344a7f5eSAndroid Build Coastguard Worker  public interface Os {
1689*344a7f5eSAndroid Build Coastguard Worker    method public static boolean compareAndSetDefault(libcore.io.Os, libcore.io.Os);
1690*344a7f5eSAndroid Build Coastguard Worker    method public static libcore.io.Os getDefault();
1691*344a7f5eSAndroid Build Coastguard Worker  }
1692*344a7f5eSAndroid Build Coastguard Worker
1693*344a7f5eSAndroid Build Coastguard Worker  public final class Streams {
1694*344a7f5eSAndroid Build Coastguard Worker    method public static int copy(@NonNull java.io.InputStream, @NonNull java.io.OutputStream) throws java.io.IOException;
1695*344a7f5eSAndroid Build Coastguard Worker    method public static void readFully(@NonNull java.io.InputStream, @NonNull byte[]) throws java.io.IOException;
1696*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static byte[] readFully(@NonNull java.io.InputStream) throws java.io.IOException;
1697*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static String readFully(@NonNull java.io.Reader) throws java.io.IOException;
1698*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static byte[] readFullyNoClose(@NonNull java.io.InputStream) throws java.io.IOException;
1699*344a7f5eSAndroid Build Coastguard Worker    method public static int readSingleByte(@NonNull java.io.InputStream) throws java.io.IOException;
1700*344a7f5eSAndroid Build Coastguard Worker    method public static long skipByReading(@NonNull java.io.InputStream, long) throws java.io.IOException;
1701*344a7f5eSAndroid Build Coastguard Worker    method public static void writeSingleByte(@NonNull java.io.OutputStream, int) throws java.io.IOException;
1702*344a7f5eSAndroid Build Coastguard Worker  }
1703*344a7f5eSAndroid Build Coastguard Worker
1704*344a7f5eSAndroid Build Coastguard Worker}
1705*344a7f5eSAndroid Build Coastguard Worker
1706*344a7f5eSAndroid Build Coastguard Workerpackage libcore.net {
1707*344a7f5eSAndroid Build Coastguard Worker
1708*344a7f5eSAndroid Build Coastguard Worker  public class InetAddressUtils {
1709*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isNumericAddress(String);
1710*344a7f5eSAndroid Build Coastguard Worker    method public static java.net.InetAddress parseNumericAddress(String);
1711*344a7f5eSAndroid Build Coastguard Worker  }
1712*344a7f5eSAndroid Build Coastguard Worker
1713*344a7f5eSAndroid Build Coastguard Worker  public abstract class NetworkSecurityPolicy {
1714*344a7f5eSAndroid Build Coastguard Worker    ctor public NetworkSecurityPolicy();
1715*344a7f5eSAndroid Build Coastguard Worker    method public static libcore.net.NetworkSecurityPolicy getInstance();
1716*344a7f5eSAndroid Build Coastguard Worker    method public abstract boolean isCertificateTransparencyVerificationRequired(String);
1717*344a7f5eSAndroid Build Coastguard Worker    method public abstract boolean isCleartextTrafficPermitted();
1718*344a7f5eSAndroid Build Coastguard Worker    method public abstract boolean isCleartextTrafficPermitted(String);
1719*344a7f5eSAndroid Build Coastguard Worker    method public static void setInstance(libcore.net.NetworkSecurityPolicy);
1720*344a7f5eSAndroid Build Coastguard Worker  }
1721*344a7f5eSAndroid Build Coastguard Worker
1722*344a7f5eSAndroid Build Coastguard Worker}
1723*344a7f5eSAndroid Build Coastguard Worker
1724*344a7f5eSAndroid Build Coastguard Workerpackage libcore.net.event {
1725*344a7f5eSAndroid Build Coastguard Worker
1726*344a7f5eSAndroid Build Coastguard Worker  public final class NetworkEventDispatcher {
1727*344a7f5eSAndroid Build Coastguard Worker    method public void dispatchNetworkConfigurationChange();
1728*344a7f5eSAndroid Build Coastguard Worker    method public static libcore.net.event.NetworkEventDispatcher getInstance();
1729*344a7f5eSAndroid Build Coastguard Worker  }
1730*344a7f5eSAndroid Build Coastguard Worker
1731*344a7f5eSAndroid Build Coastguard Worker}
1732*344a7f5eSAndroid Build Coastguard Worker
1733*344a7f5eSAndroid Build Coastguard Workerpackage libcore.net.http {
1734*344a7f5eSAndroid Build Coastguard Worker
1735*344a7f5eSAndroid Build Coastguard Worker  public interface Dns {
1736*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<java.net.InetAddress> lookup(@Nullable String) throws java.net.UnknownHostException;
1737*344a7f5eSAndroid Build Coastguard Worker  }
1738*344a7f5eSAndroid Build Coastguard Worker
1739*344a7f5eSAndroid Build Coastguard Worker  public class HttpURLConnectionFactory {
1740*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static libcore.net.http.HttpURLConnectionFactory createInstance();
1741*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;
1742*344a7f5eSAndroid Build Coastguard Worker    method public void setDns(@NonNull libcore.net.http.Dns);
1743*344a7f5eSAndroid Build Coastguard Worker    method public void setNewConnectionPool(int, long, @NonNull java.util.concurrent.TimeUnit);
1744*344a7f5eSAndroid Build Coastguard Worker  }
1745*344a7f5eSAndroid Build Coastguard Worker
1746*344a7f5eSAndroid Build Coastguard Worker}
1747*344a7f5eSAndroid Build Coastguard Worker
1748*344a7f5eSAndroid Build Coastguard Workerpackage libcore.util {
1749*344a7f5eSAndroid Build Coastguard Worker
1750*344a7f5eSAndroid Build Coastguard Worker  public final class EmptyArray {
1751*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final boolean[] BOOLEAN;
1752*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final byte[] BYTE;
1753*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final float[] FLOAT;
1754*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final int[] INT;
1755*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final long[] LONG;
1756*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final Object[] OBJECT;
1757*344a7f5eSAndroid Build Coastguard Worker    field @NonNull public static final String[] STRING;
1758*344a7f5eSAndroid Build Coastguard Worker  }
1759*344a7f5eSAndroid Build Coastguard Worker
1760*344a7f5eSAndroid Build Coastguard Worker  public final class FP16 {
1761*344a7f5eSAndroid Build Coastguard Worker    method public static short ceil(short);
1762*344a7f5eSAndroid Build Coastguard Worker    method public static int compare(short, short);
1763*344a7f5eSAndroid Build Coastguard Worker    method public static boolean equals(short, short);
1764*344a7f5eSAndroid Build Coastguard Worker    method public static short floor(short);
1765*344a7f5eSAndroid Build Coastguard Worker    method public static boolean greater(short, short);
1766*344a7f5eSAndroid Build Coastguard Worker    method public static boolean greaterEquals(short, short);
1767*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isInfinite(short);
1768*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isNaN(short);
1769*344a7f5eSAndroid Build Coastguard Worker    method public static boolean isNormalized(short);
1770*344a7f5eSAndroid Build Coastguard Worker    method public static boolean less(short, short);
1771*344a7f5eSAndroid Build Coastguard Worker    method public static boolean lessEquals(short, short);
1772*344a7f5eSAndroid Build Coastguard Worker    method public static short max(short, short);
1773*344a7f5eSAndroid Build Coastguard Worker    method public static short min(short, short);
1774*344a7f5eSAndroid Build Coastguard Worker    method public static short rint(short);
1775*344a7f5eSAndroid Build Coastguard Worker    method public static float toFloat(short);
1776*344a7f5eSAndroid Build Coastguard Worker    method public static short toHalf(float);
1777*344a7f5eSAndroid Build Coastguard Worker    method public static String toHexString(short);
1778*344a7f5eSAndroid Build Coastguard Worker    method public static short trunc(short);
1779*344a7f5eSAndroid Build Coastguard Worker    field public static final short EPSILON = 5120; // 0x1400
1780*344a7f5eSAndroid Build Coastguard Worker    field public static final int EXPONENT_BIAS = 15; // 0xf
1781*344a7f5eSAndroid Build Coastguard Worker    field public static final int EXPONENT_SHIFT = 10; // 0xa
1782*344a7f5eSAndroid Build Coastguard Worker    field public static final int EXPONENT_SIGNIFICAND_MASK = 32767; // 0x7fff
1783*344a7f5eSAndroid Build Coastguard Worker    field public static final short LOWEST_VALUE = -1025; // 0xfffffbff
1784*344a7f5eSAndroid Build Coastguard Worker    field public static final int MAX_EXPONENT = 15; // 0xf
1785*344a7f5eSAndroid Build Coastguard Worker    field public static final short MAX_VALUE = 31743; // 0x7bff
1786*344a7f5eSAndroid Build Coastguard Worker    field public static final int MIN_EXPONENT = -14; // 0xfffffff2
1787*344a7f5eSAndroid Build Coastguard Worker    field public static final short MIN_NORMAL = 1024; // 0x400
1788*344a7f5eSAndroid Build Coastguard Worker    field public static final short MIN_VALUE = 1; // 0x1
1789*344a7f5eSAndroid Build Coastguard Worker    field public static final short NEGATIVE_INFINITY = -1024; // 0xfffffc00
1790*344a7f5eSAndroid Build Coastguard Worker    field public static final short NEGATIVE_ZERO = -32768; // 0xffff8000
1791*344a7f5eSAndroid Build Coastguard Worker    field public static final short NaN = 32256; // 0x7e00
1792*344a7f5eSAndroid Build Coastguard Worker    field public static final short POSITIVE_INFINITY = 31744; // 0x7c00
1793*344a7f5eSAndroid Build Coastguard Worker    field public static final short POSITIVE_ZERO = 0; // 0x0
1794*344a7f5eSAndroid Build Coastguard Worker    field public static final int SHIFTED_EXPONENT_MASK = 31; // 0x1f
1795*344a7f5eSAndroid Build Coastguard Worker    field public static final int SIGNIFICAND_MASK = 1023; // 0x3ff
1796*344a7f5eSAndroid Build Coastguard Worker    field public static final int SIGN_MASK = 32768; // 0x8000
1797*344a7f5eSAndroid Build Coastguard Worker    field public static final int SIGN_SHIFT = 15; // 0xf
1798*344a7f5eSAndroid Build Coastguard Worker    field public static final int SIZE = 16; // 0x10
1799*344a7f5eSAndroid Build Coastguard Worker  }
1800*344a7f5eSAndroid Build Coastguard Worker
1801*344a7f5eSAndroid Build Coastguard Worker  public class HexEncoding {
1802*344a7f5eSAndroid Build Coastguard Worker    method public static byte[] decode(String) throws java.lang.IllegalArgumentException;
1803*344a7f5eSAndroid Build Coastguard Worker    method public static byte[] decode(String, boolean) throws java.lang.IllegalArgumentException;
1804*344a7f5eSAndroid Build Coastguard Worker    method public static byte[] decode(char[]) throws java.lang.IllegalArgumentException;
1805*344a7f5eSAndroid Build Coastguard Worker    method public static byte[] decode(char[], boolean) throws java.lang.IllegalArgumentException;
1806*344a7f5eSAndroid Build Coastguard Worker    method public static char[] encode(byte[]);
1807*344a7f5eSAndroid Build Coastguard Worker    method public static char[] encode(byte[], boolean);
1808*344a7f5eSAndroid Build Coastguard Worker    method public static char[] encode(byte[], int, int);
1809*344a7f5eSAndroid Build Coastguard Worker    method public static String encodeToString(byte, boolean);
1810*344a7f5eSAndroid Build Coastguard Worker    method public static String encodeToString(byte[]);
1811*344a7f5eSAndroid Build Coastguard Worker    method public static String encodeToString(byte[], boolean);
1812*344a7f5eSAndroid Build Coastguard Worker  }
1813*344a7f5eSAndroid Build Coastguard Worker
1814*344a7f5eSAndroid Build Coastguard Worker  public class NativeAllocationRegistry {
1815*344a7f5eSAndroid Build Coastguard Worker    ctor public NativeAllocationRegistry(@NonNull ClassLoader, long, long);
1816*344a7f5eSAndroid Build Coastguard Worker    method public static void applyFreeFunction(long, long);
1817*344a7f5eSAndroid Build Coastguard Worker    method public static libcore.util.NativeAllocationRegistry createMalloced(@NonNull ClassLoader, long, long);
1818*344a7f5eSAndroid Build Coastguard Worker    method public static libcore.util.NativeAllocationRegistry createMalloced(@NonNull ClassLoader, long);
1819*344a7f5eSAndroid Build Coastguard Worker    method public static libcore.util.NativeAllocationRegistry createNonmalloced(@NonNull ClassLoader, long, long);
1820*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public Runnable registerNativeAllocation(@NonNull Object, long);
1821*344a7f5eSAndroid Build Coastguard Worker  }
1822*344a7f5eSAndroid Build Coastguard Worker
1823*344a7f5eSAndroid Build Coastguard Worker  public class SneakyThrow {
1824*344a7f5eSAndroid Build Coastguard Worker    method public static void sneakyThrow(@NonNull Throwable);
1825*344a7f5eSAndroid Build Coastguard Worker  }
1826*344a7f5eSAndroid Build Coastguard Worker
1827*344a7f5eSAndroid Build Coastguard Worker  public class XmlObjectFactory {
1828*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static org.xml.sax.XMLReader newXMLReader();
1829*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static org.xmlpull.v1.XmlPullParser newXmlPullParser();
1830*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static org.xmlpull.v1.XmlSerializer newXmlSerializer();
1831*344a7f5eSAndroid Build Coastguard Worker  }
1832*344a7f5eSAndroid Build Coastguard Worker
1833*344a7f5eSAndroid Build Coastguard Worker}
1834*344a7f5eSAndroid Build Coastguard Worker
1835*344a7f5eSAndroid Build Coastguard Workerpackage org.apache.harmony.dalvik.ddmc {
1836*344a7f5eSAndroid Build Coastguard Worker
1837*344a7f5eSAndroid Build Coastguard Worker  public class Chunk {
1838*344a7f5eSAndroid Build Coastguard Worker    ctor public Chunk(int, byte[], int, int);
1839*344a7f5eSAndroid Build Coastguard Worker    ctor public Chunk(int, java.nio.ByteBuffer);
1840*344a7f5eSAndroid Build Coastguard Worker    field public int type;
1841*344a7f5eSAndroid Build Coastguard Worker  }
1842*344a7f5eSAndroid Build Coastguard Worker
1843*344a7f5eSAndroid Build Coastguard Worker  public abstract class ChunkHandler {
1844*344a7f5eSAndroid Build Coastguard Worker    ctor public ChunkHandler();
1845*344a7f5eSAndroid Build Coastguard Worker    method public static org.apache.harmony.dalvik.ddmc.Chunk createFailChunk(int, String);
1846*344a7f5eSAndroid Build Coastguard Worker    method public abstract org.apache.harmony.dalvik.ddmc.Chunk handleChunk(org.apache.harmony.dalvik.ddmc.Chunk);
1847*344a7f5eSAndroid Build Coastguard Worker    method public static String name(int);
1848*344a7f5eSAndroid Build Coastguard Worker    method public abstract void onConnected();
1849*344a7f5eSAndroid Build Coastguard Worker    method public abstract void onDisconnected();
1850*344a7f5eSAndroid Build Coastguard Worker    method public static int type(String);
1851*344a7f5eSAndroid Build Coastguard Worker    method public static java.nio.ByteBuffer wrapChunk(org.apache.harmony.dalvik.ddmc.Chunk);
1852*344a7f5eSAndroid Build Coastguard Worker    field public static final java.nio.ByteOrder CHUNK_ORDER;
1853*344a7f5eSAndroid Build Coastguard Worker  }
1854*344a7f5eSAndroid Build Coastguard Worker
1855*344a7f5eSAndroid Build Coastguard Worker  public final class DdmServer {
1856*344a7f5eSAndroid Build Coastguard Worker    method public static void registerHandler(int, org.apache.harmony.dalvik.ddmc.ChunkHandler);
1857*344a7f5eSAndroid Build Coastguard Worker    method public static void registrationComplete();
1858*344a7f5eSAndroid Build Coastguard Worker    method public static void sendChunk(org.apache.harmony.dalvik.ddmc.Chunk);
1859*344a7f5eSAndroid Build Coastguard Worker    method public static org.apache.harmony.dalvik.ddmc.ChunkHandler unregisterHandler(int);
1860*344a7f5eSAndroid Build Coastguard Worker  }
1861*344a7f5eSAndroid Build Coastguard Worker
1862*344a7f5eSAndroid Build Coastguard Worker  public final class DdmVmInternal {
1863*344a7f5eSAndroid Build Coastguard Worker    method public static void setRecentAllocationsTrackingEnabled(boolean);
1864*344a7f5eSAndroid Build Coastguard Worker    method public static void setThreadNotifyEnabled(boolean);
1865*344a7f5eSAndroid Build Coastguard Worker  }
1866*344a7f5eSAndroid Build Coastguard Worker
1867*344a7f5eSAndroid Build Coastguard Worker}
1868*344a7f5eSAndroid Build Coastguard Worker
1869*344a7f5eSAndroid Build Coastguard Workerpackage org.json {
1870*344a7f5eSAndroid Build Coastguard Worker
1871*344a7f5eSAndroid Build Coastguard Worker  public class JSONObject {
1872*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Set<java.lang.String> keySet();
1873*344a7f5eSAndroid Build Coastguard Worker  }
1874*344a7f5eSAndroid Build Coastguard Worker
1875*344a7f5eSAndroid Build Coastguard Worker}
1876*344a7f5eSAndroid Build Coastguard Worker
1877*344a7f5eSAndroid Build Coastguard Workerpackage sun.misc {
1878*344a7f5eSAndroid Build Coastguard Worker
1879*344a7f5eSAndroid Build Coastguard Worker  public class Cleaner extends java.lang.ref.PhantomReference<java.lang.Object> {
1880*344a7f5eSAndroid Build Coastguard Worker    method public void clean();
1881*344a7f5eSAndroid Build Coastguard Worker    method public static sun.misc.Cleaner create(Object, Runnable);
1882*344a7f5eSAndroid Build Coastguard Worker  }
1883*344a7f5eSAndroid Build Coastguard Worker
1884*344a7f5eSAndroid Build Coastguard Worker  public final class Unsafe {
1885*344a7f5eSAndroid Build Coastguard Worker    method public int arrayBaseOffset(Class);
1886*344a7f5eSAndroid Build Coastguard Worker    method public int arrayIndexScale(Class);
1887*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void copyMemory(long, long, long);
1888*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public boolean getBoolean(Object, long);
1889*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public byte getByte(Object, long);
1890*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public byte getByte(long);
1891*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public double getDouble(Object, long);
1892*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public double getDouble(long);
1893*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public float getFloat(Object, long);
1894*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public float getFloat(long);
1895*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public int getInt(Object, long);
1896*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public int getInt(long);
1897*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public long getLong(Object, long);
1898*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public long getLong(long);
1899*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public Object getObject(Object, long);
1900*344a7f5eSAndroid Build Coastguard Worker    method public static sun.misc.Unsafe getUnsafe();
1901*344a7f5eSAndroid Build Coastguard Worker    method public long objectFieldOffset(java.lang.reflect.Field);
1902*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putBoolean(Object, long, boolean);
1903*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putByte(Object, long, byte);
1904*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putByte(long, byte);
1905*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putDouble(Object, long, double);
1906*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putDouble(long, double);
1907*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putFloat(Object, long, float);
1908*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putFloat(long, float);
1909*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putInt(Object, long, int);
1910*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putInt(long, int);
1911*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putLong(Object, long, long);
1912*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putLong(long, long);
1913*344a7f5eSAndroid Build Coastguard Worker    method @dalvik.annotation.optimization.FastNative public void putObject(Object, long, Object);
1914*344a7f5eSAndroid Build Coastguard Worker  }
1915*344a7f5eSAndroid Build Coastguard Worker
1916*344a7f5eSAndroid Build Coastguard Worker}
1917*344a7f5eSAndroid Build Coastguard Worker
1918*344a7f5eSAndroid Build Coastguard Workerpackage sun.security.jca {
1919*344a7f5eSAndroid Build Coastguard Worker
1920*344a7f5eSAndroid Build Coastguard Worker  public class Providers {
1921*344a7f5eSAndroid Build Coastguard Worker    method public static Object startJarVerification();
1922*344a7f5eSAndroid Build Coastguard Worker    method public static void stopJarVerification(Object);
1923*344a7f5eSAndroid Build Coastguard Worker  }
1924*344a7f5eSAndroid Build Coastguard Worker
1925*344a7f5eSAndroid Build Coastguard Worker}
1926*344a7f5eSAndroid Build Coastguard Worker
1927*344a7f5eSAndroid Build Coastguard Workerpackage sun.security.pkcs {
1928*344a7f5eSAndroid Build Coastguard Worker
1929*344a7f5eSAndroid Build Coastguard Worker  public class PKCS7 {
1930*344a7f5eSAndroid Build Coastguard Worker    ctor public PKCS7(java.io.InputStream) throws java.io.IOException, sun.security.pkcs.ParsingException;
1931*344a7f5eSAndroid Build Coastguard Worker    ctor public PKCS7(byte[]) throws sun.security.pkcs.ParsingException;
1932*344a7f5eSAndroid Build Coastguard Worker    method public java.security.cert.X509Certificate[] getCertificates();
1933*344a7f5eSAndroid Build Coastguard Worker    method public sun.security.pkcs.SignerInfo[] getSignerInfos();
1934*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;
1935*344a7f5eSAndroid Build Coastguard Worker    method public sun.security.pkcs.SignerInfo[] verify(byte[]) throws java.security.NoSuchAlgorithmException, java.security.SignatureException;
1936*344a7f5eSAndroid Build Coastguard Worker  }
1937*344a7f5eSAndroid Build Coastguard Worker
1938*344a7f5eSAndroid Build Coastguard Worker  public class ParsingException extends java.io.IOException {
1939*344a7f5eSAndroid Build Coastguard Worker  }
1940*344a7f5eSAndroid Build Coastguard Worker
1941*344a7f5eSAndroid Build Coastguard Worker  public class SignerInfo {
1942*344a7f5eSAndroid Build Coastguard Worker    ctor public SignerInfo();
1943*344a7f5eSAndroid Build Coastguard Worker    method public java.util.ArrayList<java.security.cert.X509Certificate> getCertificateChain(sun.security.pkcs.PKCS7) throws java.io.IOException;
1944*344a7f5eSAndroid Build Coastguard Worker  }
1945*344a7f5eSAndroid Build Coastguard Worker
1946*344a7f5eSAndroid Build Coastguard Worker}
1947*344a7f5eSAndroid Build Coastguard Worker
1948*344a7f5eSAndroid Build Coastguard Workerpackage sun.security.util {
1949*344a7f5eSAndroid Build Coastguard Worker
1950*344a7f5eSAndroid Build Coastguard Worker  public final class ObjectIdentifier implements java.io.Serializable {
1951*344a7f5eSAndroid Build Coastguard Worker    ctor public ObjectIdentifier(String) throws java.io.IOException;
1952*344a7f5eSAndroid Build Coastguard Worker  }
1953*344a7f5eSAndroid Build Coastguard Worker
1954*344a7f5eSAndroid Build Coastguard Worker}
1955*344a7f5eSAndroid Build Coastguard Worker
1956*344a7f5eSAndroid Build Coastguard Workerpackage sun.security.x509 {
1957*344a7f5eSAndroid Build Coastguard Worker
1958*344a7f5eSAndroid Build Coastguard Worker  public class AlgorithmId implements java.io.Serializable {
1959*344a7f5eSAndroid Build Coastguard Worker    ctor public AlgorithmId(sun.security.util.ObjectIdentifier);
1960*344a7f5eSAndroid Build Coastguard Worker    method public String getName();
1961*344a7f5eSAndroid Build Coastguard Worker  }
1962*344a7f5eSAndroid Build Coastguard Worker
1963*344a7f5eSAndroid Build Coastguard Worker}
1964*344a7f5eSAndroid Build Coastguard Worker
1965