| 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 { |
| Etienne Ruffieux | 4c70432 | 2021-09-29 12:59:55 +0000 | [diff] [blame] | 45 | method public void onCanceled(@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 | |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 54 | package android.content { |
| 55 | |
| Corina | 3fcaa52 | 2021-03-04 10:29:28 +0000 | [diff] [blame] | 56 | public abstract class ContentProvider implements android.content.ComponentCallbacks2 { |
| Corina | 7c36853 | 2021-04-12 21:57:06 +0000 | [diff] [blame] | 57 | 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] | 58 | } |
| 59 | |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 60 | public abstract class Context { |
| 61 | method @NonNull public android.os.UserHandle getUser(); |
| Aaron Huang | 62718c2 | 2021-04-06 11:50:21 +0800 | [diff] [blame] | 62 | field public static final String PAC_PROXY_SERVICE = "pac_proxy"; |
| Remi NGUYEN VAN | d31b352 | 2021-03-11 21:06:10 +0900 | [diff] [blame] | 63 | field public static final String TEST_NETWORK_SERVICE = "test_network"; |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 64 | } |
| 65 | |
| William Escande | 543d84f | 2022-01-11 15:38:07 +0100 | [diff] [blame] | 66 | public class Intent implements java.lang.Cloneable android.os.Parcelable { |
| 67 | field public static final String ACTION_SETTING_RESTORED = "android.os.action.SETTING_RESTORED"; |
| 68 | field public static final String EXTRA_SETTING_NAME = "setting_name"; |
| 69 | field public static final String EXTRA_SETTING_NEW_VALUE = "new_value"; |
| 70 | field public static final String EXTRA_SETTING_PREVIOUS_VALUE = "previous_value"; |
| 71 | field public static final String EXTRA_SETTING_RESTORED_FROM_SDK_INT = "restored_from_sdk_int"; |
| 72 | } |
| 73 | |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 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); |
| William Escande | a05cb45 | 2021-12-08 14:14:19 +0100 | [diff] [blame] | 116 | method @NonNull public java.util.List<android.bluetooth.BluetoothCodecConfig> getHwOffloadFormatsSupportedForA2dp(); |
| 117 | method @NonNull public java.util.List<android.bluetooth.BluetoothLeAudioCodecConfig> getHwOffloadFormatsSupportedForLeAudio(); |
| William Escande | ac11d77 | 2022-01-25 18:01:15 +0100 | [diff] [blame] | 118 | method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void handleBluetoothActiveDeviceChanged(@Nullable android.bluetooth.BluetoothDevice, @Nullable android.bluetooth.BluetoothDevice, @NonNull android.media.BluetoothProfileConnectionInfo); |
| William Escande | ef429b6 | 2021-10-15 18:37:40 +0200 | [diff] [blame] | 119 | method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setA2dpSuspended(boolean); |
| 120 | method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setBluetoothHeadsetProperties(@NonNull String, boolean, boolean); |
| 121 | method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setHfpEnabled(boolean); |
| 122 | method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setHfpSamplingRate(int); |
| 123 | method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setHfpVolume(int); |
| Jin Seok Park | 16aeba38 | 2020-08-06 12:52:54 +0900 | [diff] [blame] | 124 | 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] | 125 | field public static final int FLAG_FROM_KEY = 4096; // 0x1000 |
| 126 | } |
| 127 | |
| William Escande | ac11d77 | 2022-01-25 18:01:15 +0100 | [diff] [blame] | 128 | public final class BluetoothProfileConnectionInfo implements android.os.Parcelable { |
| 129 | method @NonNull public static android.media.BluetoothProfileConnectionInfo createA2dpInfo(boolean, int); |
| 130 | method @NonNull public static android.media.BluetoothProfileConnectionInfo createA2dpSinkInfo(int); |
| 131 | method @NonNull public static android.media.BluetoothProfileConnectionInfo createHearingAidInfo(boolean); |
| 132 | method @NonNull public static android.media.BluetoothProfileConnectionInfo createLeAudioInfo(boolean, boolean); |
| wescande | 3fe5af4 | 2021-07-30 16:46:14 +0200 | [diff] [blame] | 133 | method public int describeContents(); |
| wescande | 3fe5af4 | 2021-07-30 16:46:14 +0200 | [diff] [blame] | 134 | method public int getProfile(); |
| wescande | 3fe5af4 | 2021-07-30 16:46:14 +0200 | [diff] [blame] | 135 | method public int getVolume(); |
| William Escande | ac11d77 | 2022-01-25 18:01:15 +0100 | [diff] [blame] | 136 | method public boolean isLeOutput(); |
| 137 | method public boolean isSuppressNoisyIntent(); |
| wescande | 3fe5af4 | 2021-07-30 16:46:14 +0200 | [diff] [blame] | 138 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| William Escande | ac11d77 | 2022-01-25 18:01:15 +0100 | [diff] [blame] | 139 | field @NonNull public static final android.os.Parcelable.Creator<android.media.BluetoothProfileConnectionInfo> CREATOR; |
| wescande | 3fe5af4 | 2021-07-30 16:46:14 +0200 | [diff] [blame] | 140 | } |
| 141 | |
| Chong Zhang | 9fc0e10 | 2020-08-24 17:30:15 -0700 | [diff] [blame] | 142 | public class MediaMetadataRetriever implements java.lang.AutoCloseable { |
| 143 | field public static final int METADATA_KEY_VIDEO_CODEC_MIME_TYPE = 40; // 0x28 |
| 144 | } |
| 145 | |
| Chong Zhang | 864d0b7 | 2020-12-04 11:34:19 -0800 | [diff] [blame] | 146 | public class MediaServiceManager { |
| Hyundo Moon | 47b6352 | 2020-12-18 20:57:07 +0900 | [diff] [blame] | 147 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaCommunicationServiceRegisterer(); |
| Chong Zhang | 864d0b7 | 2020-12-04 11:34:19 -0800 | [diff] [blame] | 148 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaSessionServiceRegisterer(); |
| 149 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaTranscodingServiceRegisterer(); |
| 150 | } |
| 151 | |
| 152 | public static final class MediaServiceManager.ServiceRegisterer { |
| 153 | method @Nullable public android.os.IBinder get(); |
| 154 | } |
| 155 | |
| Jin Seok Park | 4abc23e | 2020-07-30 22:28:50 +0900 | [diff] [blame] | 156 | } |
| 157 | |
| Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 158 | package android.media.session { |
| 159 | |
| Hyundo Moon | fc7d49f | 2020-09-03 11:48:11 +0900 | [diff] [blame] | 160 | public static final class MediaController.PlaybackInfo implements android.os.Parcelable { |
| 161 | ctor public MediaController.PlaybackInfo(int, int, @IntRange(from=0) int, @IntRange(from=0) int, @NonNull android.media.AudioAttributes, @Nullable String); |
| 162 | } |
| 163 | |
| Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 164 | public final class MediaSession { |
| 165 | field public static final int FLAG_EXCLUSIVE_GLOBAL_PRIORITY = 65536; // 0x10000 |
| 166 | } |
| 167 | |
| Hyundo Moon | 672620b0 | 2020-09-10 07:23:09 +0900 | [diff] [blame] | 168 | public static final class MediaSession.Token implements android.os.Parcelable { |
| 169 | method public int getUid(); |
| 170 | } |
| 171 | |
| Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 172 | public final class MediaSessionManager { |
| Jin Seok Park | 11aee2c | 2021-02-04 22:15:17 +0900 | [diff] [blame] | 173 | 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] | 174 | method public void dispatchMediaKeyEvent(@NonNull android.view.KeyEvent, boolean); |
| Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 175 | method public void dispatchMediaKeyEventAsSystemService(@NonNull android.view.KeyEvent); |
| Jin Seok Park | 5287e24 | 2020-09-01 21:56:27 +0900 | [diff] [blame] | 176 | 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] | 177 | method public void dispatchVolumeKeyEvent(@NonNull android.view.KeyEvent, int, boolean); |
| Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 178 | method public void dispatchVolumeKeyEventAsSystemService(@NonNull android.view.KeyEvent, int); |
| Jin Seok Park | 5287e24 | 2020-09-01 21:56:27 +0900 | [diff] [blame] | 179 | 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] | 180 | 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] | 181 | method public void registerRemoteSessionCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.session.MediaSessionManager.RemoteSessionCallback); |
| 182 | method public void unregisterRemoteSessionCallback(@NonNull android.media.session.MediaSessionManager.RemoteSessionCallback); |
| Hyundo Moon | f8bedc9 | 2020-09-10 07:44:30 +0900 | [diff] [blame] | 183 | field public static final int RESULT_MEDIA_KEY_HANDLED = 1; // 0x1 |
| 184 | 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] | 185 | } |
| 186 | |
| Jin Seok Park | 2dc180a | 2020-12-15 18:54:30 +0900 | [diff] [blame] | 187 | public static interface MediaSessionManager.RemoteSessionCallback { |
| 188 | method public void onDefaultRemoteSessionChanged(@Nullable android.media.session.MediaSession.Token); |
| Jin Seok Park | 18b8feb | 2020-10-27 16:02:07 +0900 | [diff] [blame] | 189 | method public void onVolumeChanged(@NonNull android.media.session.MediaSession.Token, int); |
| 190 | } |
| 191 | |
| Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 192 | } |
| 193 | |
| paulhu | 81bbd3c1 | 2020-12-08 17:24:21 +0800 | [diff] [blame] | 194 | package android.net { |
| 195 | |
| Lorenzo Colitti | 8093d78 | 2022-01-19 18:08:40 +0900 | [diff] [blame] | 196 | public class LocalSocket implements java.io.Closeable { |
| 197 | ctor public LocalSocket(@NonNull java.io.FileDescriptor); |
| 198 | } |
| 199 | |
| Sudheer Shanka | 98dd271 | 2021-03-02 06:33:46 +0000 | [diff] [blame] | 200 | public class NetworkPolicyManager { |
| Remi NGUYEN VAN | 87eb49b | 2021-03-18 14:23:12 +0900 | [diff] [blame] | 201 | method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public int getMultipathPreference(@NonNull android.net.Network); |
| 202 | method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public int getRestrictBackgroundStatus(int); |
| lifr | c1d2e89 | 2022-01-11 11:17:36 +0800 | [diff] [blame] | 203 | 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); |
| Lorenzo Colitti | 0c1a37b | 2021-03-18 15:54:31 +0900 | [diff] [blame] | 204 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidNetworkingBlocked(int, boolean); |
| 205 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidRestrictedOnMeteredNetworks(int); |
| lifr | c1d2e89 | 2022-01-11 11:17:36 +0800 | [diff] [blame] | 206 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void notifyStatsProviderWarningOrLimitReached(); |
| Sudheer Shanka | 98dd271 | 2021-03-02 06:33:46 +0000 | [diff] [blame] | 207 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public void registerNetworkPolicyCallback(@Nullable java.util.concurrent.Executor, @NonNull android.net.NetworkPolicyManager.NetworkPolicyCallback); |
| 208 | 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] | 209 | } |
| 210 | |
| 211 | public static interface NetworkPolicyManager.NetworkPolicyCallback { |
| 212 | method public default void onUidBlockedReasonChanged(int, int); |
| 213 | } |
| 214 | |
| paulhu | 5119787 | 2021-02-19 15:30:02 +0800 | [diff] [blame] | 215 | public class NetworkWatchlistManager { |
| 216 | method @Nullable public byte[] getWatchlistConfigHash(); |
| 217 | } |
| 218 | |
| Aaron Huang | 5d31a15 | 2021-01-18 15:28:01 +0800 | [diff] [blame] | 219 | public class PacProxyManager { |
| 220 | 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); |
| 221 | 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); |
| 222 | 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); |
| 223 | } |
| 224 | |
| 225 | public static interface PacProxyManager.PacProxyInstalledListener { |
| 226 | method public void onPacProxyInstalled(@Nullable android.net.Network, @NonNull android.net.ProxyInfo); |
| 227 | } |
| 228 | |
| Remi NGUYEN VAN | 9200ec1 | 2021-02-22 07:28:12 +0000 | [diff] [blame] | 229 | public final class Proxy { |
| 230 | method public static void setHttpProxyConfiguration(@Nullable android.net.ProxyInfo); |
| 231 | } |
| 232 | |
| lucaslin | 62b2252 | 2021-03-10 16:57:57 +0800 | [diff] [blame] | 233 | public class VpnManager { |
| Lorenzo Colitti | fb7f36b | 2021-04-14 22:43:34 +0900 | [diff] [blame] | 234 | field public static final int TYPE_VPN_LEGACY = 3; // 0x3 |
| lucaslin | 62b2252 | 2021-03-10 16:57:57 +0800 | [diff] [blame] | 235 | field public static final int TYPE_VPN_NONE = -1; // 0xffffffff |
| Lorenzo Colitti | 4763300f | 2021-03-18 12:54:37 +0900 | [diff] [blame] | 236 | field public static final int TYPE_VPN_OEM = 4; // 0x4 |
| lucaslin | 62b2252 | 2021-03-10 16:57:57 +0800 | [diff] [blame] | 237 | field public static final int TYPE_VPN_PLATFORM = 2; // 0x2 |
| 238 | field public static final int TYPE_VPN_SERVICE = 1; // 0x1 |
| 239 | } |
| 240 | |
| paulhu | 81bbd3c1 | 2020-12-08 17:24:21 +0800 | [diff] [blame] | 241 | } |
| 242 | |
| junyulai | 07c4c86 | 2022-01-28 09:53:45 +0800 | [diff] [blame] | 243 | package android.net.netstats { |
| 244 | |
| 245 | public class NetworkStatsDataMigrationUtils { |
| 246 | method @NonNull public static android.net.NetworkStatsCollection readPlatformCollection(@NonNull String, long) throws java.io.IOException; |
| 247 | field public static final String PREFIX_UID = "uid"; |
| 248 | field public static final String PREFIX_UID_TAG = "uid_tag"; |
| 249 | field public static final String PREFIX_XT = "xt"; |
| 250 | } |
| 251 | |
| 252 | } |
| 253 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 254 | package android.os { |
| 255 | |
| Aaron Huang | 558b317 | 2020-10-26 17:34:50 +0800 | [diff] [blame] | 256 | public final class BatteryStatsManager { |
| 257 | 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; |
| 258 | } |
| 259 | |
| Steven Moreland | 95dd53b | 2020-07-23 21:22:18 +0000 | [diff] [blame] | 260 | public class Binder implements android.os.IBinder { |
| 261 | method public final void markVintfStability(); |
| 262 | } |
| 263 | |
| Remi NGUYEN VAN | b5f095e | 2021-04-07 19:40:31 +0900 | [diff] [blame] | 264 | public class Build { |
| 265 | method public static boolean isDebuggable(); |
| 266 | } |
| 267 | |
| paulhu | 69f79b0 | 2021-01-06 12:00:29 +0800 | [diff] [blame] | 268 | public static class Build.VERSION { |
| paulhu | 016950a | 2021-04-09 15:47:36 +0800 | [diff] [blame] | 269 | field public static final int DEVICE_INITIAL_SDK_INT; |
| paulhu | 69f79b0 | 2021-01-06 12:00:29 +0800 | [diff] [blame] | 270 | } |
| 271 | |
| Steven Moreland | e5bd46e | 2020-07-28 01:18:42 +0000 | [diff] [blame] | 272 | public interface Parcelable { |
| Steven Moreland | 7542475 | 2020-08-05 19:42:15 +0000 | [diff] [blame] | 273 | method public default int getStability(); |
| Steven Moreland | e5bd46e | 2020-07-28 01:18:42 +0000 | [diff] [blame] | 274 | } |
| 275 | |
| lucaslin | e4ea3d4 | 2021-03-17 19:04:01 +0800 | [diff] [blame] | 276 | public class Process { |
| Martijn Coenen | 5a8d1b2 | 2022-03-10 08:46:29 +0100 | [diff] [blame] | 277 | method public static final int getAppUidForSdkSandboxUid(int); |
| 278 | method public static final boolean isSdkSandboxUid(int); |
| 279 | method public static final int toSdkSandboxUid(int); |
| Etienne Ruffieux | fe195c9 | 2022-01-11 16:17:55 +0000 | [diff] [blame] | 280 | field public static final int NFC_UID = 1027; // 0x403 |
| lucaslin | e4ea3d4 | 2021-03-17 19:04:01 +0800 | [diff] [blame] | 281 | field public static final int VPN_UID = 1016; // 0x3f8 |
| 282 | } |
| 283 | |
| Steven Moreland | ce81994f5 | 2021-07-15 22:26:22 +0000 | [diff] [blame] | 284 | public final class ServiceManager { |
| 285 | method public static boolean isDeclared(@NonNull String); |
| 286 | method @Nullable public static android.os.IBinder waitForDeclaredService(@NonNull String); |
| 287 | } |
| 288 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 289 | public class StatsServiceManager { |
| 290 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsCompanionServiceRegisterer(); |
| 291 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsManagerServiceRegisterer(); |
| 292 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsdServiceRegisterer(); |
| 293 | } |
| 294 | |
| 295 | public static class StatsServiceManager.ServiceNotFoundException extends java.lang.Exception { |
| 296 | ctor public StatsServiceManager.ServiceNotFoundException(@NonNull String); |
| 297 | } |
| 298 | |
| 299 | public static final class StatsServiceManager.ServiceRegisterer { |
| 300 | method @Nullable public android.os.IBinder get(); |
| 301 | method @Nullable public android.os.IBinder getOrThrow() throws android.os.StatsServiceManager.ServiceNotFoundException; |
| 302 | } |
| 303 | |
| Junyu Lai | 0cf9e87 | 2021-12-28 14:33:57 +0000 | [diff] [blame] | 304 | public final class StrictMode { |
| 305 | method public static void noteUntaggedSocket(); |
| 306 | } |
| 307 | |
| William Escande | a47b950 | 2021-09-30 12:32:26 +0200 | [diff] [blame] | 308 | public class SystemConfigManager { |
| 309 | method @NonNull public java.util.List<android.content.ComponentName> getEnabledComponentOverrides(@NonNull String); |
| 310 | } |
| 311 | |
| Junyu Lai | c048d53 | 2022-01-18 17:47:05 +0000 | [diff] [blame] | 312 | public final class Trace { |
| 313 | method public static void asyncTraceBegin(long, @NonNull String, int); |
| 314 | method public static void asyncTraceEnd(long, @NonNull String, int); |
| 315 | method public static boolean isTagEnabled(long); |
| 316 | method public static void traceBegin(long, @NonNull String); |
| 317 | method public static void traceCounter(long, @NonNull String, int); |
| 318 | method public static void traceEnd(long); |
| 319 | field public static final long TRACE_TAG_NETWORK = 2097152L; // 0x200000L |
| 320 | } |
| 321 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 322 | } |
| 323 | |
| Zim | c534503 | 2021-02-23 16:35:05 +0000 | [diff] [blame] | 324 | package android.os.storage { |
| 325 | |
| 326 | public class StorageManager { |
| Zim | 055878b | 2021-03-03 12:39:55 +0000 | [diff] [blame] | 327 | method public void notifyAppIoBlocked(@NonNull java.util.UUID, int, int, int); |
| 328 | method public void notifyAppIoResumed(@NonNull java.util.UUID, int, int, int); |
| Zim | 308a048 | 2021-03-25 16:15:36 +0000 | [diff] [blame] | 329 | field public static final int APP_IO_BLOCKED_REASON_TRANSCODING = 1; // 0x1 |
| 330 | field public static final int APP_IO_BLOCKED_REASON_UNKNOWN = 0; // 0x0 |
| Zim | c534503 | 2021-02-23 16:35:05 +0000 | [diff] [blame] | 331 | } |
| 332 | |
| Martijn Coenen | b329228 | 2021-03-22 10:51:41 +0100 | [diff] [blame] | 333 | public final class StorageVolume implements android.os.Parcelable { |
| 334 | method @NonNull public android.os.UserHandle getOwner(); |
| 335 | } |
| 336 | |
| Zim | c534503 | 2021-02-23 16:35:05 +0000 | [diff] [blame] | 337 | } |
| 338 | |
| Kweku Adams | 1e55861 | 2020-08-24 10:13:15 -0700 | [diff] [blame] | 339 | package android.provider { |
| 340 | |
| William Escande | e44b464 | 2021-10-07 17:47:49 +0200 | [diff] [blame] | 341 | public static final class ContactsContract.RawContactsEntity implements android.provider.BaseColumns android.provider.ContactsContract.DataColumns android.provider.ContactsContract.RawContactsColumns { |
| William Escande | 5b4de49 | 2021-10-19 21:21:48 +0200 | [diff] [blame] | 342 | 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); |
| William Escande | e44b464 | 2021-10-07 17:47:49 +0200 | [diff] [blame] | 343 | } |
| 344 | |
| Kweku Adams | 1e55861 | 2020-08-24 10:13:15 -0700 | [diff] [blame] | 345 | public final class DeviceConfig { |
| Kweku Adams | 1e7a69c | 2020-08-28 12:47:06 -0700 | [diff] [blame] | 346 | field public static final String NAMESPACE_ALARM_MANAGER = "alarm_manager"; |
| Kweku Adams | 01e36ae | 2020-10-19 14:45:33 -0700 | [diff] [blame] | 347 | field public static final String NAMESPACE_APP_STANDBY = "app_standby"; |
| Kweku Adams | 1e55861 | 2020-08-24 10:13:15 -0700 | [diff] [blame] | 348 | field public static final String NAMESPACE_DEVICE_IDLE = "device_idle"; |
| 349 | } |
| 350 | |
| 351 | } |
| 352 | |
| Hall Liu | 57d7090 | 2020-10-13 19:19:12 -0700 | [diff] [blame] | 353 | package android.telephony { |
| 354 | |
| 355 | public abstract class CellSignalStrength { |
| 356 | method public static int getNumSignalStrengthLevels(); |
| 357 | } |
| 358 | |
| Etienne Ruffieux | 6a646db | 2021-07-27 10:06:27 +0000 | [diff] [blame] | 359 | public class SubscriptionManager { |
| 360 | method public void addSubscriptionInfoRecord(@NonNull String, @Nullable String, int, int); |
| 361 | method public void removeSubscriptionInfoRecord(@NonNull String, int); |
| 362 | } |
| 363 | |
| Hall Liu | 57d7090 | 2020-10-13 19:19:12 -0700 | [diff] [blame] | 364 | public class TelephonyManager { |
| 365 | method @NonNull public static int[] getAllNetworkTypes(); |
| 366 | } |
| 367 | |
| 368 | } |
| 369 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 370 | package android.util { |
| 371 | |
| 372 | public class AtomicFile { |
| 373 | ctor public AtomicFile(@NonNull java.io.File, @Nullable android.util.SystemConfigFileCommitEventLogger); |
| 374 | } |
| 375 | |
| 376 | public final class Log { |
| 377 | method public static int logToRadioBuffer(int, @Nullable String, @Nullable String); |
| 378 | } |
| 379 | |
| 380 | public class SystemConfigFileCommitEventLogger { |
| 381 | ctor public SystemConfigFileCommitEventLogger(@NonNull String); |
| 382 | method public void setStartTime(long); |
| 383 | } |
| 384 | |
| 385 | } |
| 386 | |