| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 1 | // Signature format: 2.0 |
| Makoto Onuki | db8d2bf | 2020-11-06 13:43:38 -0800 | [diff] [blame] | 2 | package android { |
| 3 | |
| 4 | public static final class Manifest.permission { |
| 5 | field public static final String GET_INTENT_SENDER_INTENT = "android.permission.GET_INTENT_SENDER_INTENT"; |
| 6 | } |
| 7 | |
| 8 | } |
| 9 | |
| Nikita Ioffe | 89f7de1 | 2020-06-30 01:31:43 +0100 | [diff] [blame] | 10 | package android.app { |
| 11 | |
| Hall Liu | ed473f4 | 2020-10-06 13:52:21 -0700 | [diff] [blame] | 12 | public class ActivityManager { |
| 13 | method @RequiresPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER) public void addHomeVisibilityListener(@NonNull java.util.concurrent.Executor, @NonNull android.app.HomeVisibilityListener); |
| 14 | method @RequiresPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER) public void removeHomeVisibilityListener(@NonNull android.app.HomeVisibilityListener); |
| Hall Liu | c82d6aa | 2020-11-02 16:21:49 -0800 | [diff] [blame] | 15 | method @RequiresPermission(android.Manifest.permission.CHANGE_CONFIGURATION) public boolean updateMccMncConfiguration(@NonNull String, @NonNull String); |
| Hall Liu | ed473f4 | 2020-10-06 13:52:21 -0700 | [diff] [blame] | 16 | } |
| 17 | |
| Nikita Ioffe | 89f7de1 | 2020-06-30 01:31:43 +0100 | [diff] [blame] | 18 | public class AppOpsManager { |
| 19 | field public static final String OPSTR_NO_ISOLATED_STORAGE = "android:no_isolated_storage"; |
| 20 | } |
| 21 | |
| paulhu | 52437ab | 2020-11-18 00:07:32 +0800 | [diff] [blame] | 22 | public class BroadcastOptions { |
| 23 | method public int getMaxManifestReceiverApiLevel(); |
| 24 | method public void setMaxManifestReceiverApiLevel(int); |
| 25 | } |
| 26 | |
| Hall Liu | ed473f4 | 2020-10-06 13:52:21 -0700 | [diff] [blame] | 27 | public abstract class HomeVisibilityListener { |
| 28 | ctor public HomeVisibilityListener(); |
| 29 | method public abstract void onHomeVisibilityChanged(boolean); |
| 30 | } |
| 31 | |
| Jin Seok Park | e1f4d51d | 2020-07-14 21:15:44 +0900 | [diff] [blame] | 32 | public class NotificationManager { |
| 33 | method public boolean hasEnabledNotificationListener(@NonNull String, @NonNull android.os.UserHandle); |
| Jin Seok Park | 643f3e4 | 2020-07-29 17:21:36 +0900 | [diff] [blame] | 34 | field public static final String ACTION_NOTIFICATION_LISTENER_ENABLED_CHANGED = "android.app.action.NOTIFICATION_LISTENER_ENABLED_CHANGED"; |
| Jin Seok Park | e1f4d51d | 2020-07-14 21:15:44 +0900 | [diff] [blame] | 35 | } |
| 36 | |
| Makoto Onuki | db8d2bf | 2020-11-06 13:43:38 -0800 | [diff] [blame] | 37 | public final class PendingIntent implements android.os.Parcelable { |
| Makoto Onuki | 30bd1bb | 2021-09-14 17:31:45 -0700 | [diff] [blame^] | 38 | method public boolean addCancelListener(@NonNull java.util.concurrent.Executor, @NonNull android.app.PendingIntent.CancelListener); |
| paulhu | e48076b | 2021-03-03 11:44:31 +0800 | [diff] [blame] | 39 | method @RequiresPermission(android.Manifest.permission.GET_INTENT_SENDER_INTENT) public boolean intentFilterEquals(@Nullable android.app.PendingIntent); |
| Jin Seok Park | 8a228cf | 2021-03-03 23:56:47 +0900 | [diff] [blame] | 40 | method @NonNull @RequiresPermission(android.Manifest.permission.GET_INTENT_SENDER_INTENT) public java.util.List<android.content.pm.ResolveInfo> queryIntentComponents(int); |
| Makoto Onuki | 30bd1bb | 2021-09-14 17:31:45 -0700 | [diff] [blame^] | 41 | method public void removeCancelListener(@NonNull android.app.PendingIntent.CancelListener); |
| 42 | } |
| 43 | |
| 44 | public static interface PendingIntent.CancelListener { |
| 45 | method public void onCancelled(@NonNull android.app.PendingIntent); |
| Makoto Onuki | db8d2bf | 2020-11-06 13:43:38 -0800 | [diff] [blame] | 46 | } |
| 47 | |
| Hall Liu | 3dbee7e | 2020-09-15 15:25:46 -0700 | [diff] [blame] | 48 | public class StatusBarManager { |
| Hall Liu | 409c989 | 2020-09-22 16:39:19 -0700 | [diff] [blame] | 49 | method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void setExpansionDisabledForSimNetworkLock(boolean); |
| Hall Liu | 3dbee7e | 2020-09-15 15:25:46 -0700 | [diff] [blame] | 50 | } |
| 51 | |
| Nikita Ioffe | 89f7de1 | 2020-06-30 01:31:43 +0100 | [diff] [blame] | 52 | } |
| 53 | |
| junyulai | b4308db | 2021-01-23 11:00:10 +0800 | [diff] [blame] | 54 | package android.app.usage { |
| 55 | |
| 56 | public class NetworkStatsManager { |
| 57 | 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>); |
| 58 | } |
| 59 | |
| 60 | } |
| 61 | |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 62 | package android.content { |
| 63 | |
| Corina | 3fcaa52 | 2021-03-04 10:29:28 +0000 | [diff] [blame] | 64 | public abstract class ContentProvider implements android.content.ComponentCallbacks2 { |
| Corina | 7c36853 | 2021-04-12 21:57:06 +0000 | [diff] [blame] | 65 | method @NonNull public static android.net.Uri createContentUriForUser(@NonNull android.net.Uri, @NonNull android.os.UserHandle); |
| Corina | 3fcaa52 | 2021-03-04 10:29:28 +0000 | [diff] [blame] | 66 | } |
| 67 | |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 68 | public abstract class Context { |
| 69 | method @NonNull public android.os.UserHandle getUser(); |
| Aaron Huang | 62718c2 | 2021-04-06 11:50:21 +0800 | [diff] [blame] | 70 | field public static final String PAC_PROXY_SERVICE = "pac_proxy"; |
| Remi NGUYEN VAN | d31b352 | 2021-03-11 21:06:10 +0900 | [diff] [blame] | 71 | field public static final String TEST_NETWORK_SERVICE = "test_network"; |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 72 | } |
| 73 | |
| 74 | } |
| 75 | |
| 76 | package android.content.pm { |
| 77 | |
| 78 | public abstract class PackageManager { |
| 79 | method @NonNull public String getPermissionControllerPackageName(); |
| 80 | } |
| 81 | |
| 82 | } |
| 83 | |
| raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 84 | package android.hardware.usb { |
| 85 | |
| 86 | public class UsbManager { |
| 87 | method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getGadgetHalVersion(); |
| Ray Chi | 5603742 | 2021-03-18 17:40:35 +0800 | [diff] [blame] | 88 | method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getUsbBandwidthMbps(); |
| Albert Wang | 619abd2 | 2020-11-29 16:46:50 +0800 | [diff] [blame] | 89 | method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getUsbHalVersion(); |
| raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 90 | field public static final int GADGET_HAL_NOT_SUPPORTED = -1; // 0xffffffff |
| 91 | field public static final int GADGET_HAL_V1_0 = 10; // 0xa |
| 92 | field public static final int GADGET_HAL_V1_1 = 11; // 0xb |
| 93 | field public static final int GADGET_HAL_V1_2 = 12; // 0xc |
| 94 | field public static final int USB_DATA_TRANSFER_RATE_10G = 10240; // 0x2800 |
| 95 | field public static final int USB_DATA_TRANSFER_RATE_20G = 20480; // 0x5000 |
| 96 | field public static final int USB_DATA_TRANSFER_RATE_40G = 40960; // 0xa000 |
| 97 | field public static final int USB_DATA_TRANSFER_RATE_5G = 5120; // 0x1400 |
| 98 | field public static final int USB_DATA_TRANSFER_RATE_FULL_SPEED = 12; // 0xc |
| 99 | field public static final int USB_DATA_TRANSFER_RATE_HIGH_SPEED = 480; // 0x1e0 |
| 100 | field public static final int USB_DATA_TRANSFER_RATE_LOW_SPEED = 2; // 0x2 |
| 101 | field public static final int USB_DATA_TRANSFER_RATE_UNKNOWN = -1; // 0xffffffff |
| Albert Wang | 619abd2 | 2020-11-29 16:46:50 +0800 | [diff] [blame] | 102 | field public static final int USB_HAL_NOT_SUPPORTED = -1; // 0xffffffff |
| 103 | field public static final int USB_HAL_V1_0 = 10; // 0xa |
| 104 | field public static final int USB_HAL_V1_1 = 11; // 0xb |
| 105 | field public static final int USB_HAL_V1_2 = 12; // 0xc |
| 106 | field public static final int USB_HAL_V1_3 = 13; // 0xd |
| raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 107 | } |
| 108 | |
| 109 | } |
| 110 | |
| Jin Seok Park | 4abc23e | 2020-07-30 22:28:50 +0900 | [diff] [blame] | 111 | package android.media { |
| 112 | |
| 113 | public class AudioManager { |
| Jin Seok Park | 16aeba38 | 2020-08-06 12:52:54 +0900 | [diff] [blame] | 114 | method public void adjustStreamVolumeForUid(int, int, int, @NonNull String, int, int, int); |
| 115 | method public void adjustSuggestedStreamVolumeForUid(int, int, int, @NonNull String, int, int, int); |
| 116 | method public void setStreamVolumeForUid(int, int, int, @NonNull String, int, int, int); |
| Jin Seok Park | 4abc23e | 2020-07-30 22:28:50 +0900 | [diff] [blame] | 117 | field public static final int FLAG_FROM_KEY = 4096; // 0x1000 |
| 118 | } |
| 119 | |
| Chong Zhang | 9fc0e10 | 2020-08-24 17:30:15 -0700 | [diff] [blame] | 120 | public class MediaMetadataRetriever implements java.lang.AutoCloseable { |
| 121 | field public static final int METADATA_KEY_VIDEO_CODEC_MIME_TYPE = 40; // 0x28 |
| 122 | } |
| 123 | |
| Chong Zhang | 864d0b7 | 2020-12-04 11:34:19 -0800 | [diff] [blame] | 124 | public class MediaServiceManager { |
| Hyundo Moon | 47b6352 | 2020-12-18 20:57:07 +0900 | [diff] [blame] | 125 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaCommunicationServiceRegisterer(); |
| Chong Zhang | 864d0b7 | 2020-12-04 11:34:19 -0800 | [diff] [blame] | 126 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaSessionServiceRegisterer(); |
| 127 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaTranscodingServiceRegisterer(); |
| 128 | } |
| 129 | |
| 130 | public static final class MediaServiceManager.ServiceRegisterer { |
| 131 | method @Nullable public android.os.IBinder get(); |
| 132 | } |
| 133 | |
| Jin Seok Park | 4abc23e | 2020-07-30 22:28:50 +0900 | [diff] [blame] | 134 | } |
| 135 | |
| Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 136 | package android.media.session { |
| 137 | |
| Hyundo Moon | fc7d49f | 2020-09-03 11:48:11 +0900 | [diff] [blame] | 138 | public static final class MediaController.PlaybackInfo implements android.os.Parcelable { |
| 139 | ctor public MediaController.PlaybackInfo(int, int, @IntRange(from=0) int, @IntRange(from=0) int, @NonNull android.media.AudioAttributes, @Nullable String); |
| 140 | } |
| 141 | |
| Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 142 | public final class MediaSession { |
| 143 | field public static final int FLAG_EXCLUSIVE_GLOBAL_PRIORITY = 65536; // 0x10000 |
| 144 | } |
| 145 | |
| Hyundo Moon | 672620b0 | 2020-09-10 07:23:09 +0900 | [diff] [blame] | 146 | public static final class MediaSession.Token implements android.os.Parcelable { |
| 147 | method public int getUid(); |
| 148 | } |
| 149 | |
| Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 150 | public final class MediaSessionManager { |
| Jin Seok Park | 11aee2c | 2021-02-04 22:15:17 +0900 | [diff] [blame] | 151 | method public void addOnActiveSessionsChangedListener(@Nullable android.content.ComponentName, @NonNull android.os.UserHandle, @NonNull java.util.concurrent.Executor, @NonNull android.media.session.MediaSessionManager.OnActiveSessionsChangedListener); |
| Jin Seok Park | 7ffb73f | 2021-01-07 15:51:57 +0900 | [diff] [blame] | 152 | method public void dispatchMediaKeyEvent(@NonNull android.view.KeyEvent, boolean); |
| Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 153 | method public void dispatchMediaKeyEventAsSystemService(@NonNull android.view.KeyEvent); |
| Jin Seok Park | 5287e24 | 2020-09-01 21:56:27 +0900 | [diff] [blame] | 154 | method public boolean dispatchMediaKeyEventToSessionAsSystemService(@NonNull android.view.KeyEvent, @NonNull android.media.session.MediaSession.Token); |
| Jin Seok Park | 7ffb73f | 2021-01-07 15:51:57 +0900 | [diff] [blame] | 155 | method public void dispatchVolumeKeyEvent(@NonNull android.view.KeyEvent, int, boolean); |
| Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 156 | method public void dispatchVolumeKeyEventAsSystemService(@NonNull android.view.KeyEvent, int); |
| Jin Seok Park | 5287e24 | 2020-09-01 21:56:27 +0900 | [diff] [blame] | 157 | method public void dispatchVolumeKeyEventToSessionAsSystemService(@NonNull android.view.KeyEvent, @NonNull android.media.session.MediaSession.Token); |
| Jin Seok Park | 2db6bcb | 2020-12-21 23:13:53 +0900 | [diff] [blame] | 158 | method @NonNull public java.util.List<android.media.session.MediaController> getActiveSessionsForUser(@Nullable android.content.ComponentName, @NonNull android.os.UserHandle); |
| Jin Seok Park | 2dc180a | 2020-12-15 18:54:30 +0900 | [diff] [blame] | 159 | method public void registerRemoteSessionCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.session.MediaSessionManager.RemoteSessionCallback); |
| 160 | method public void unregisterRemoteSessionCallback(@NonNull android.media.session.MediaSessionManager.RemoteSessionCallback); |
| Hyundo Moon | f8bedc9 | 2020-09-10 07:44:30 +0900 | [diff] [blame] | 161 | field public static final int RESULT_MEDIA_KEY_HANDLED = 1; // 0x1 |
| 162 | field public static final int RESULT_MEDIA_KEY_NOT_HANDLED = 0; // 0x0 |
| Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 163 | } |
| 164 | |
| Jin Seok Park | 2dc180a | 2020-12-15 18:54:30 +0900 | [diff] [blame] | 165 | public static interface MediaSessionManager.RemoteSessionCallback { |
| 166 | method public void onDefaultRemoteSessionChanged(@Nullable android.media.session.MediaSession.Token); |
| Jin Seok Park | 18b8feb | 2020-10-27 16:02:07 +0900 | [diff] [blame] | 167 | method public void onVolumeChanged(@NonNull android.media.session.MediaSession.Token, int); |
| 168 | } |
| 169 | |
| Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 170 | } |
| 171 | |
| paulhu | 81bbd3c1 | 2020-12-08 17:24:21 +0800 | [diff] [blame] | 172 | package android.net { |
| 173 | |
| Remi NGUYEN VAN | 6d98157 | 2021-02-04 14:20:19 +0900 | [diff] [blame] | 174 | public final class EthernetNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable { |
| 175 | ctor public EthernetNetworkSpecifier(@NonNull String); |
| 176 | method public int describeContents(); |
| 177 | method @Nullable public String getInterfaceName(); |
| 178 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 179 | field @NonNull public static final android.os.Parcelable.Creator<android.net.EthernetNetworkSpecifier> CREATOR; |
| 180 | } |
| 181 | |
| Chiachang Wang | 5e26cc8 | 2021-01-12 18:48:13 +0800 | [diff] [blame] | 182 | public static final class IpSecManager.UdpEncapsulationSocket implements java.lang.AutoCloseable { |
| 183 | method public int getResourceId(); |
| 184 | } |
| 185 | |
| Sudheer Shanka | 98dd271 | 2021-03-02 06:33:46 +0000 | [diff] [blame] | 186 | public class NetworkPolicyManager { |
| Remi NGUYEN VAN | 87eb49b | 2021-03-18 14:23:12 +0900 | [diff] [blame] | 187 | method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public int getMultipathPreference(@NonNull android.net.Network); |
| 188 | method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public int getRestrictBackgroundStatus(int); |
| Lorenzo Colitti | 0c1a37b | 2021-03-18 15:54:31 +0900 | [diff] [blame] | 189 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidNetworkingBlocked(int, boolean); |
| 190 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidRestrictedOnMeteredNetworks(int); |
| Sudheer Shanka | 98dd271 | 2021-03-02 06:33:46 +0000 | [diff] [blame] | 191 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public void registerNetworkPolicyCallback(@Nullable java.util.concurrent.Executor, @NonNull android.net.NetworkPolicyManager.NetworkPolicyCallback); |
| 192 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public void unregisterNetworkPolicyCallback(@NonNull android.net.NetworkPolicyManager.NetworkPolicyCallback); |
| Sudheer Shanka | 98dd271 | 2021-03-02 06:33:46 +0000 | [diff] [blame] | 193 | } |
| 194 | |
| 195 | public static interface NetworkPolicyManager.NetworkPolicyCallback { |
| 196 | method public default void onUidBlockedReasonChanged(int, int); |
| 197 | } |
| 198 | |
| junyulai | 604fd08 | 2020-12-30 19:03:32 +0800 | [diff] [blame] | 199 | public final class NetworkStateSnapshot implements android.os.Parcelable { |
| 200 | ctor public NetworkStateSnapshot(@NonNull android.net.Network, @NonNull android.net.NetworkCapabilities, @NonNull android.net.LinkProperties, @Nullable String, int); |
| 201 | method public int describeContents(); |
| Aaron Huang | d78c60c | 2021-04-20 17:19:46 +0800 | [diff] [blame] | 202 | method public int getLegacyType(); |
| 203 | method @NonNull public android.net.LinkProperties getLinkProperties(); |
| 204 | method @NonNull public android.net.Network getNetwork(); |
| 205 | method @NonNull public android.net.NetworkCapabilities getNetworkCapabilities(); |
| 206 | method @Nullable public String getSubscriberId(); |
| junyulai | 604fd08 | 2020-12-30 19:03:32 +0800 | [diff] [blame] | 207 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 208 | field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkStateSnapshot> CREATOR; |
| junyulai | 604fd08 | 2020-12-30 19:03:32 +0800 | [diff] [blame] | 209 | } |
| 210 | |
| paulhu | 5119787 | 2021-02-19 15:30:02 +0800 | [diff] [blame] | 211 | public class NetworkWatchlistManager { |
| 212 | method @Nullable public byte[] getWatchlistConfigHash(); |
| 213 | } |
| 214 | |
| Aaron Huang | 5d31a15 | 2021-01-18 15:28:01 +0800 | [diff] [blame] | 215 | public class PacProxyManager { |
| 216 | 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); |
| 217 | 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); |
| 218 | 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); |
| 219 | } |
| 220 | |
| 221 | public static interface PacProxyManager.PacProxyInstalledListener { |
| 222 | method public void onPacProxyInstalled(@Nullable android.net.Network, @NonNull android.net.ProxyInfo); |
| 223 | } |
| 224 | |
| Remi NGUYEN VAN | 9200ec1 | 2021-02-22 07:28:12 +0000 | [diff] [blame] | 225 | public final class Proxy { |
| 226 | method public static void setHttpProxyConfiguration(@Nullable android.net.ProxyInfo); |
| 227 | } |
| 228 | |
| junyulai | 755356f | 2021-01-28 21:19:32 +0800 | [diff] [blame] | 229 | public final class UnderlyingNetworkInfo implements android.os.Parcelable { |
| 230 | ctor public UnderlyingNetworkInfo(int, @NonNull String, @NonNull java.util.List<java.lang.String>); |
| 231 | method public int describeContents(); |
| Aaron Huang | a10cc3a | 2021-04-28 17:21:21 +0800 | [diff] [blame] | 232 | method @NonNull public String getInterface(); |
| Aaron Huang | f600897 | 2021-04-16 23:20:23 +0800 | [diff] [blame] | 233 | method public int getOwnerUid(); |
| Aaron Huang | a10cc3a | 2021-04-28 17:21:21 +0800 | [diff] [blame] | 234 | method @NonNull public java.util.List<java.lang.String> getUnderlyingInterfaces(); |
| junyulai | 755356f | 2021-01-28 21:19:32 +0800 | [diff] [blame] | 235 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 236 | field @NonNull public static final android.os.Parcelable.Creator<android.net.UnderlyingNetworkInfo> CREATOR; |
| junyulai | 755356f | 2021-01-28 21:19:32 +0800 | [diff] [blame] | 237 | } |
| 238 | |
| lucaslin | 62b2252 | 2021-03-10 16:57:57 +0800 | [diff] [blame] | 239 | public class VpnManager { |
| Lorenzo Colitti | fb7f36b | 2021-04-14 22:43:34 +0900 | [diff] [blame] | 240 | field public static final int TYPE_VPN_LEGACY = 3; // 0x3 |
| lucaslin | 62b2252 | 2021-03-10 16:57:57 +0800 | [diff] [blame] | 241 | field public static final int TYPE_VPN_NONE = -1; // 0xffffffff |
| Lorenzo Colitti | 4763300f | 2021-03-18 12:54:37 +0900 | [diff] [blame] | 242 | field public static final int TYPE_VPN_OEM = 4; // 0x4 |
| lucaslin | 62b2252 | 2021-03-10 16:57:57 +0800 | [diff] [blame] | 243 | field public static final int TYPE_VPN_PLATFORM = 2; // 0x2 |
| 244 | field public static final int TYPE_VPN_SERVICE = 1; // 0x1 |
| 245 | } |
| 246 | |
| paulhu | 81bbd3c1 | 2020-12-08 17:24:21 +0800 | [diff] [blame] | 247 | } |
| 248 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 249 | package android.os { |
| 250 | |
| Aaron Huang | 558b317 | 2020-10-26 17:34:50 +0800 | [diff] [blame] | 251 | public final class BatteryStatsManager { |
| 252 | 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; |
| 253 | } |
| 254 | |
| Steven Moreland | 95dd53b | 2020-07-23 21:22:18 +0000 | [diff] [blame] | 255 | public class Binder implements android.os.IBinder { |
| 256 | method public final void markVintfStability(); |
| 257 | } |
| 258 | |
| Remi NGUYEN VAN | b5f095e | 2021-04-07 19:40:31 +0900 | [diff] [blame] | 259 | public class Build { |
| 260 | method public static boolean isDebuggable(); |
| 261 | } |
| 262 | |
| paulhu | 69f79b0 | 2021-01-06 12:00:29 +0800 | [diff] [blame] | 263 | public static class Build.VERSION { |
| paulhu | 016950a | 2021-04-09 15:47:36 +0800 | [diff] [blame] | 264 | field public static final int DEVICE_INITIAL_SDK_INT; |
| paulhu | 69f79b0 | 2021-01-06 12:00:29 +0800 | [diff] [blame] | 265 | } |
| 266 | |
| Steven Moreland | e5bd46e | 2020-07-28 01:18:42 +0000 | [diff] [blame] | 267 | public interface Parcelable { |
| Steven Moreland | 7542475 | 2020-08-05 19:42:15 +0000 | [diff] [blame] | 268 | method public default int getStability(); |
| Steven Moreland | e5bd46e | 2020-07-28 01:18:42 +0000 | [diff] [blame] | 269 | } |
| 270 | |
| lucaslin | e4ea3d4 | 2021-03-17 19:04:01 +0800 | [diff] [blame] | 271 | public class Process { |
| 272 | field public static final int VPN_UID = 1016; // 0x3f8 |
| 273 | } |
| 274 | |
| Steven Moreland | ce81994f5 | 2021-07-15 22:26:22 +0000 | [diff] [blame] | 275 | public final class ServiceManager { |
| 276 | method public static boolean isDeclared(@NonNull String); |
| 277 | method @Nullable public static android.os.IBinder waitForDeclaredService(@NonNull String); |
| 278 | } |
| 279 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 280 | public class StatsServiceManager { |
| 281 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsCompanionServiceRegisterer(); |
| 282 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsManagerServiceRegisterer(); |
| 283 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsdServiceRegisterer(); |
| 284 | } |
| 285 | |
| 286 | public static class StatsServiceManager.ServiceNotFoundException extends java.lang.Exception { |
| 287 | ctor public StatsServiceManager.ServiceNotFoundException(@NonNull String); |
| 288 | } |
| 289 | |
| 290 | public static final class StatsServiceManager.ServiceRegisterer { |
| 291 | method @Nullable public android.os.IBinder get(); |
| 292 | method @Nullable public android.os.IBinder getOrThrow() throws android.os.StatsServiceManager.ServiceNotFoundException; |
| 293 | } |
| 294 | |
| 295 | } |
| 296 | |
| Zim | c534503 | 2021-02-23 16:35:05 +0000 | [diff] [blame] | 297 | package android.os.storage { |
| 298 | |
| 299 | public class StorageManager { |
| Zim | 055878b | 2021-03-03 12:39:55 +0000 | [diff] [blame] | 300 | method public void notifyAppIoBlocked(@NonNull java.util.UUID, int, int, int); |
| 301 | method public void notifyAppIoResumed(@NonNull java.util.UUID, int, int, int); |
| Zim | 308a048 | 2021-03-25 16:15:36 +0000 | [diff] [blame] | 302 | field public static final int APP_IO_BLOCKED_REASON_TRANSCODING = 1; // 0x1 |
| 303 | field public static final int APP_IO_BLOCKED_REASON_UNKNOWN = 0; // 0x0 |
| Zim | c534503 | 2021-02-23 16:35:05 +0000 | [diff] [blame] | 304 | } |
| 305 | |
| Martijn Coenen | b329228 | 2021-03-22 10:51:41 +0100 | [diff] [blame] | 306 | public final class StorageVolume implements android.os.Parcelable { |
| 307 | method @NonNull public android.os.UserHandle getOwner(); |
| 308 | } |
| 309 | |
| Zim | c534503 | 2021-02-23 16:35:05 +0000 | [diff] [blame] | 310 | } |
| 311 | |
| Kweku Adams | 1e55861 | 2020-08-24 10:13:15 -0700 | [diff] [blame] | 312 | package android.provider { |
| 313 | |
| 314 | public final class DeviceConfig { |
| Kweku Adams | 1e7a69c | 2020-08-28 12:47:06 -0700 | [diff] [blame] | 315 | field public static final String NAMESPACE_ALARM_MANAGER = "alarm_manager"; |
| Kweku Adams | 01e36ae | 2020-10-19 14:45:33 -0700 | [diff] [blame] | 316 | field public static final String NAMESPACE_APP_STANDBY = "app_standby"; |
| Kweku Adams | 1e55861 | 2020-08-24 10:13:15 -0700 | [diff] [blame] | 317 | field public static final String NAMESPACE_DEVICE_IDLE = "device_idle"; |
| 318 | } |
| 319 | |
| 320 | } |
| 321 | |
| Hall Liu | 57d7090 | 2020-10-13 19:19:12 -0700 | [diff] [blame] | 322 | package android.telephony { |
| 323 | |
| 324 | public abstract class CellSignalStrength { |
| 325 | method public static int getNumSignalStrengthLevels(); |
| 326 | } |
| 327 | |
| Etienne Ruffieux | 6a646db | 2021-07-27 10:06:27 +0000 | [diff] [blame] | 328 | public class SubscriptionManager { |
| 329 | method public void addSubscriptionInfoRecord(@NonNull String, @Nullable String, int, int); |
| 330 | method public void removeSubscriptionInfoRecord(@NonNull String, int); |
| 331 | } |
| 332 | |
| Hall Liu | 57d7090 | 2020-10-13 19:19:12 -0700 | [diff] [blame] | 333 | public class TelephonyManager { |
| 334 | method @NonNull public static int[] getAllNetworkTypes(); |
| 335 | } |
| 336 | |
| 337 | } |
| 338 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 339 | package android.util { |
| 340 | |
| 341 | public class AtomicFile { |
| 342 | ctor public AtomicFile(@NonNull java.io.File, @Nullable android.util.SystemConfigFileCommitEventLogger); |
| 343 | } |
| 344 | |
| 345 | public final class Log { |
| 346 | method public static int logToRadioBuffer(int, @Nullable String, @Nullable String); |
| 347 | } |
| 348 | |
| 349 | public class SystemConfigFileCommitEventLogger { |
| 350 | ctor public SystemConfigFileCommitEventLogger(@NonNull String); |
| 351 | method public void setStartTime(long); |
| 352 | } |
| 353 | |
| 354 | } |
| 355 | |