| 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 | |
| Shan Huang | c099960 | 2021-12-22 02:18:25 +0000 | [diff] [blame] | 12 | @UiContext public class Activity extends android.view.ContextThemeWrapper implements android.content.ComponentCallbacks2 android.view.KeyEvent.Callback android.view.LayoutInflater.Factory2 android.view.OnBackInvokedDispatcherOwner android.view.View.OnCreateContextMenuListener android.view.Window.Callback { |
| Felipe Leme | bcafba3 | 2021-10-01 13:25:53 -0700 | [diff] [blame] | 13 | method public final boolean addDumpable(@NonNull android.util.Dumpable); |
| 14 | } |
| 15 | |
| Hall Liu | ed473f4 | 2020-10-06 13:52:21 -0700 | [diff] [blame] | 16 | public class ActivityManager { |
| 17 | method @RequiresPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER) public void addHomeVisibilityListener(@NonNull java.util.concurrent.Executor, @NonNull android.app.HomeVisibilityListener); |
| 18 | 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] | 19 | 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] | 20 | } |
| 21 | |
| Yuncheol Heo | c5bf494 | 2021-08-04 17:36:50 -0700 | [diff] [blame] | 22 | public class ActivityOptions { |
| 23 | method @NonNull public static android.app.ActivityOptions fromBundle(@NonNull android.os.Bundle); |
| 24 | } |
| 25 | |
| Nikita Ioffe | 89f7de1 | 2020-06-30 01:31:43 +0100 | [diff] [blame] | 26 | public class AppOpsManager { |
| 27 | field public static final String OPSTR_NO_ISOLATED_STORAGE = "android:no_isolated_storage"; |
| 28 | } |
| 29 | |
| paulhu | 52437ab | 2020-11-18 00:07:32 +0800 | [diff] [blame] | 30 | public class BroadcastOptions { |
| Jeff Sharkey | 895e456 | 2021-12-21 12:00:49 -0700 | [diff] [blame] | 31 | method @Deprecated public int getMaxManifestReceiverApiLevel(); |
| 32 | method @Deprecated public void setMaxManifestReceiverApiLevel(int); |
| paulhu | 52437ab | 2020-11-18 00:07:32 +0800 | [diff] [blame] | 33 | } |
| 34 | |
| Hall Liu | ed473f4 | 2020-10-06 13:52:21 -0700 | [diff] [blame] | 35 | public abstract class HomeVisibilityListener { |
| 36 | ctor public HomeVisibilityListener(); |
| 37 | method public abstract void onHomeVisibilityChanged(boolean); |
| 38 | } |
| 39 | |
| Jin Seok Park | e1f4d51d | 2020-07-14 21:15:44 +0900 | [diff] [blame] | 40 | public class NotificationManager { |
| 41 | method public boolean hasEnabledNotificationListener(@NonNull String, @NonNull android.os.UserHandle); |
| Jin Seok Park | 643f3e4 | 2020-07-29 17:21:36 +0900 | [diff] [blame] | 42 | 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] | 43 | } |
| 44 | |
| Makoto Onuki | db8d2bf | 2020-11-06 13:43:38 -0800 | [diff] [blame] | 45 | public final class PendingIntent implements android.os.Parcelable { |
| Makoto Onuki | 718ae76 | 2021-09-14 17:31:45 -0700 | [diff] [blame] | 46 | 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] | 47 | 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] | 48 | method @NonNull @RequiresPermission(android.Manifest.permission.GET_INTENT_SENDER_INTENT) public java.util.List<android.content.pm.ResolveInfo> queryIntentComponents(int); |
| Makoto Onuki | 718ae76 | 2021-09-14 17:31:45 -0700 | [diff] [blame] | 49 | method public void removeCancelListener(@NonNull android.app.PendingIntent.CancelListener); |
| 50 | } |
| 51 | |
| 52 | public static interface PendingIntent.CancelListener { |
| Etienne Ruffieux | 4c70432 | 2021-09-29 12:59:55 +0000 | [diff] [blame] | 53 | method public void onCanceled(@NonNull android.app.PendingIntent); |
| Makoto Onuki | db8d2bf | 2020-11-06 13:43:38 -0800 | [diff] [blame] | 54 | } |
| 55 | |
| Hall Liu | 3dbee7e | 2020-09-15 15:25:46 -0700 | [diff] [blame] | 56 | public class StatusBarManager { |
| Hall Liu | 409c989 | 2020-09-22 16:39:19 -0700 | [diff] [blame] | 57 | method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void setExpansionDisabledForSimNetworkLock(boolean); |
| Hall Liu | 3dbee7e | 2020-09-15 15:25:46 -0700 | [diff] [blame] | 58 | } |
| 59 | |
| Nikita Ioffe | 89f7de1 | 2020-06-30 01:31:43 +0100 | [diff] [blame] | 60 | } |
| 61 | |
| Felipe Leme | 1e7e2ec | 2021-10-07 11:43:23 -0700 | [diff] [blame] | 62 | package android.app.admin { |
| 63 | |
| 64 | public class DevicePolicyManager { |
| 65 | method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public void acknowledgeNewUserDisclaimer(); |
| Felipe Leme | 52660ae | 2022-01-20 10:19:45 -0800 | [diff] [blame^] | 66 | method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public android.os.UserHandle getLogoutUser(); |
| 67 | method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.CREATE_USERS}) public int logoutUser(); |
| Felipe Leme | 1e7e2ec | 2021-10-07 11:43:23 -0700 | [diff] [blame] | 68 | field public static final String ACTION_SHOW_NEW_USER_DISCLAIMER = "android.app.action.SHOW_NEW_USER_DISCLAIMER"; |
| 69 | } |
| 70 | |
| 71 | } |
| 72 | |
| junyulai | b4308db | 2021-01-23 11:00:10 +0800 | [diff] [blame] | 73 | package android.app.usage { |
| 74 | |
| 75 | public class NetworkStatsManager { |
| Junyu Lai | 53d603a | 2022-01-13 15:54:41 +0000 | [diff] [blame] | 76 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void forceUpdate(); |
| junyulai | b4308db | 2021-01-23 11:00:10 +0800 | [diff] [blame] | 77 | 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>); |
| Junyu Lai | 685a738 | 2022-01-07 14:46:26 +0000 | [diff] [blame] | 78 | method @NonNull @WorkerThread public android.app.usage.NetworkStats queryDetailsForDevice(@NonNull android.net.NetworkTemplate, long, long); |
| 79 | method @NonNull @WorkerThread public android.app.usage.NetworkStats queryDetailsForUidTagState(@NonNull android.net.NetworkTemplate, long, long, int, int, int) throws java.lang.SecurityException; |
| 80 | method @NonNull @WorkerThread public android.app.usage.NetworkStats querySummary(@NonNull android.net.NetworkTemplate, long, long) throws java.lang.SecurityException; |
| 81 | method @NonNull @WorkerThread public android.app.usage.NetworkStats.Bucket querySummaryForDevice(@NonNull android.net.NetworkTemplate, long, long); |
| 82 | method @NonNull @WorkerThread public android.app.usage.NetworkStats queryTaggedSummary(@NonNull android.net.NetworkTemplate, long, long) throws java.lang.SecurityException; |
| Junyu Lai | 53d603a | 2022-01-13 15:54:41 +0000 | [diff] [blame] | 83 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setDefaultGlobalAlert(long); |
| 84 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setPollOnOpen(boolean); |
| 85 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setStatsProviderWarningAndLimitAsync(@NonNull String, long, long); |
| 86 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setUidForeground(int, boolean); |
| junyulai | b4308db | 2021-01-23 11:00:10 +0800 | [diff] [blame] | 87 | } |
| 88 | |
| 89 | } |
| 90 | |
| Etienne Ruffieux | 7951f08 | 2021-11-03 14:23:52 +0000 | [diff] [blame] | 91 | package android.bluetooth { |
| 92 | |
| Roopa Sattiraju | a070d18c | 2022-01-19 19:01:36 -0800 | [diff] [blame] | 93 | public class BluetoothFrameworkInitializer { |
| 94 | method public static void registerServiceWrappers(); |
| 95 | method public static void setBluetoothServiceManager(@NonNull android.os.BluetoothServiceManager); |
| 96 | } |
| 97 | |
| Etienne Ruffieux | 7951f08 | 2021-11-03 14:23:52 +0000 | [diff] [blame] | 98 | public final class BluetoothPan implements android.bluetooth.BluetoothProfile { |
| 99 | 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); |
| 100 | } |
| 101 | |
| 102 | } |
| 103 | |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 104 | package android.content { |
| 105 | |
| Corina | 3fcaa52 | 2021-03-04 10:29:28 +0000 | [diff] [blame] | 106 | public abstract class ContentProvider implements android.content.ComponentCallbacks2 { |
| Corina | 7c36853 | 2021-04-12 21:57:06 +0000 | [diff] [blame] | 107 | 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] | 108 | } |
| 109 | |
| Xiaoyu Jin | 6610524 | 2021-12-01 15:57:49 +0000 | [diff] [blame] | 110 | public abstract class ContentResolver { |
| Xiaoyu Jin | a645dea | 2021-12-07 08:21:12 +0000 | [diff] [blame] | 111 | 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); |
| Xiaoyu Jin | 6610524 | 2021-12-01 15:57:49 +0000 | [diff] [blame] | 112 | } |
| 113 | |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 114 | public abstract class Context { |
| 115 | method @NonNull public android.os.UserHandle getUser(); |
| Aaron Huang | 62718c2 | 2021-04-06 11:50:21 +0800 | [diff] [blame] | 116 | field public static final String PAC_PROXY_SERVICE = "pac_proxy"; |
| Remi NGUYEN VAN | d31b352 | 2021-03-11 21:06:10 +0900 | [diff] [blame] | 117 | field public static final String TEST_NETWORK_SERVICE = "test_network"; |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 118 | } |
| 119 | |
| William Escande | 543d84f | 2022-01-11 15:38:07 +0100 | [diff] [blame] | 120 | public class Intent implements java.lang.Cloneable android.os.Parcelable { |
| 121 | field public static final String ACTION_SETTING_RESTORED = "android.os.action.SETTING_RESTORED"; |
| 122 | field public static final String EXTRA_SETTING_NAME = "setting_name"; |
| 123 | field public static final String EXTRA_SETTING_NEW_VALUE = "new_value"; |
| 124 | field public static final String EXTRA_SETTING_PREVIOUS_VALUE = "previous_value"; |
| 125 | field public static final String EXTRA_SETTING_RESTORED_FROM_SDK_INT = "restored_from_sdk_int"; |
| 126 | } |
| 127 | |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 128 | } |
| 129 | |
| 130 | package android.content.pm { |
| 131 | |
| 132 | public abstract class PackageManager { |
| 133 | method @NonNull public String getPermissionControllerPackageName(); |
| 134 | } |
| 135 | |
| 136 | } |
| 137 | |
| raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 138 | package android.hardware.usb { |
| 139 | |
| 140 | public class UsbManager { |
| 141 | method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getGadgetHalVersion(); |
| Ray Chi | 5603742 | 2021-03-18 17:40:35 +0800 | [diff] [blame] | 142 | method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getUsbBandwidthMbps(); |
| Albert Wang | 619abd2 | 2020-11-29 16:46:50 +0800 | [diff] [blame] | 143 | method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getUsbHalVersion(); |
| raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 144 | field public static final int GADGET_HAL_NOT_SUPPORTED = -1; // 0xffffffff |
| 145 | field public static final int GADGET_HAL_V1_0 = 10; // 0xa |
| 146 | field public static final int GADGET_HAL_V1_1 = 11; // 0xb |
| 147 | field public static final int GADGET_HAL_V1_2 = 12; // 0xc |
| 148 | field public static final int USB_DATA_TRANSFER_RATE_10G = 10240; // 0x2800 |
| 149 | field public static final int USB_DATA_TRANSFER_RATE_20G = 20480; // 0x5000 |
| 150 | field public static final int USB_DATA_TRANSFER_RATE_40G = 40960; // 0xa000 |
| 151 | field public static final int USB_DATA_TRANSFER_RATE_5G = 5120; // 0x1400 |
| 152 | field public static final int USB_DATA_TRANSFER_RATE_FULL_SPEED = 12; // 0xc |
| 153 | field public static final int USB_DATA_TRANSFER_RATE_HIGH_SPEED = 480; // 0x1e0 |
| 154 | field public static final int USB_DATA_TRANSFER_RATE_LOW_SPEED = 2; // 0x2 |
| 155 | field public static final int USB_DATA_TRANSFER_RATE_UNKNOWN = -1; // 0xffffffff |
| Albert Wang | 619abd2 | 2020-11-29 16:46:50 +0800 | [diff] [blame] | 156 | field public static final int USB_HAL_NOT_SUPPORTED = -1; // 0xffffffff |
| Badhri Jagan Sridharan | bbfa92e | 2021-11-24 23:41:27 -0800 | [diff] [blame] | 157 | field public static final int USB_HAL_RETRY = -2; // 0xfffffffe |
| Albert Wang | 619abd2 | 2020-11-29 16:46:50 +0800 | [diff] [blame] | 158 | field public static final int USB_HAL_V1_0 = 10; // 0xa |
| 159 | field public static final int USB_HAL_V1_1 = 11; // 0xb |
| 160 | field public static final int USB_HAL_V1_2 = 12; // 0xc |
| 161 | field public static final int USB_HAL_V1_3 = 13; // 0xd |
| Badhri Jagan Sridharan | bbfa92e | 2021-11-24 23:41:27 -0800 | [diff] [blame] | 162 | field public static final int USB_HAL_V2_0 = 20; // 0x14 |
| raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 163 | } |
| 164 | |
| 165 | } |
| 166 | |
| Grace Cheng | 1da6f0e | 2021-07-14 15:29:50 -0700 | [diff] [blame] | 167 | package android.location { |
| 168 | |
| 169 | public class LocationManager { |
| 170 | method @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE, android.Manifest.permission.ACCESS_FINE_LOCATION}) public boolean injectLocation(@NonNull android.location.Location); |
| 171 | } |
| 172 | |
| 173 | } |
| 174 | |
| Jin Seok Park | 4abc23e | 2020-07-30 22:28:50 +0900 | [diff] [blame] | 175 | package android.media { |
| 176 | |
| 177 | public class AudioManager { |
| Jin Seok Park | 16aeba38 | 2020-08-06 12:52:54 +0900 | [diff] [blame] | 178 | method public void adjustStreamVolumeForUid(int, int, int, @NonNull String, int, int, int); |
| 179 | method public void adjustSuggestedStreamVolumeForUid(int, int, int, @NonNull String, int, int, int); |
| William Escande | a05cb45 | 2021-12-08 14:14:19 +0100 | [diff] [blame] | 180 | method @NonNull public java.util.List<android.bluetooth.BluetoothCodecConfig> getHwOffloadFormatsSupportedForA2dp(); |
| 181 | method @NonNull public java.util.List<android.bluetooth.BluetoothLeAudioCodecConfig> getHwOffloadFormatsSupportedForLeAudio(); |
| wescande | 7c17ba0c | 2021-07-30 16:46:14 +0200 | [diff] [blame] | 182 | method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void handleBluetoothActiveDeviceChanged(@Nullable android.bluetooth.BluetoothDevice, @Nullable android.bluetooth.BluetoothDevice, @NonNull android.media.BtProfileConnectionInfo); |
| William Escande | ef429b6 | 2021-10-15 18:37:40 +0200 | [diff] [blame] | 183 | method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setA2dpSuspended(boolean); |
| 184 | method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setBluetoothHeadsetProperties(@NonNull String, boolean, boolean); |
| 185 | method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setHfpEnabled(boolean); |
| 186 | method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setHfpSamplingRate(int); |
| 187 | method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setHfpVolume(int); |
| Jin Seok Park | 16aeba38 | 2020-08-06 12:52:54 +0900 | [diff] [blame] | 188 | 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] | 189 | field public static final int FLAG_FROM_KEY = 4096; // 0x1000 |
| 190 | } |
| 191 | |
| wescande | 7c17ba0c | 2021-07-30 16:46:14 +0200 | [diff] [blame] | 192 | public final class BtProfileConnectionInfo implements android.os.Parcelable { |
| 193 | method @NonNull public static android.media.BtProfileConnectionInfo a2dpInfo(boolean, int); |
| William Escande | b22dcdb | 2021-12-31 11:41:25 +0100 | [diff] [blame] | 194 | method @NonNull public static android.media.BtProfileConnectionInfo a2dpSinkInfo(int); |
| wescande | 7c17ba0c | 2021-07-30 16:46:14 +0200 | [diff] [blame] | 195 | method public int describeContents(); |
| 196 | method public boolean getIsLeOutput(); |
| 197 | method public int getProfile(); |
| 198 | method public boolean getSuppressNoisyIntent(); |
| 199 | method public int getVolume(); |
| 200 | method @NonNull public static android.media.BtProfileConnectionInfo hearingAidInfo(boolean); |
| 201 | method @NonNull public static android.media.BtProfileConnectionInfo leAudio(boolean, boolean); |
| 202 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 203 | field @NonNull public static final android.os.Parcelable.Creator<android.media.BtProfileConnectionInfo> CREATOR; |
| 204 | } |
| 205 | |
| Chong Zhang | 9fc0e10 | 2020-08-24 17:30:15 -0700 | [diff] [blame] | 206 | public class MediaMetadataRetriever implements java.lang.AutoCloseable { |
| 207 | field public static final int METADATA_KEY_VIDEO_CODEC_MIME_TYPE = 40; // 0x28 |
| 208 | } |
| 209 | |
| Chong Zhang | 864d0b7 | 2020-12-04 11:34:19 -0800 | [diff] [blame] | 210 | public class MediaServiceManager { |
| Hyundo Moon | 47b6352 | 2020-12-18 20:57:07 +0900 | [diff] [blame] | 211 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaCommunicationServiceRegisterer(); |
| Chong Zhang | 864d0b7 | 2020-12-04 11:34:19 -0800 | [diff] [blame] | 212 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaSessionServiceRegisterer(); |
| 213 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaTranscodingServiceRegisterer(); |
| 214 | } |
| 215 | |
| 216 | public static final class MediaServiceManager.ServiceRegisterer { |
| 217 | method @Nullable public android.os.IBinder get(); |
| 218 | } |
| 219 | |
| Jin Seok Park | 4abc23e | 2020-07-30 22:28:50 +0900 | [diff] [blame] | 220 | } |
| 221 | |
| Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 222 | package android.media.session { |
| 223 | |
| Hyundo Moon | fc7d49f | 2020-09-03 11:48:11 +0900 | [diff] [blame] | 224 | public static final class MediaController.PlaybackInfo implements android.os.Parcelable { |
| 225 | ctor public MediaController.PlaybackInfo(int, int, @IntRange(from=0) int, @IntRange(from=0) int, @NonNull android.media.AudioAttributes, @Nullable String); |
| 226 | } |
| 227 | |
| Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 228 | public final class MediaSession { |
| 229 | field public static final int FLAG_EXCLUSIVE_GLOBAL_PRIORITY = 65536; // 0x10000 |
| 230 | } |
| 231 | |
| Hyundo Moon | 672620b0 | 2020-09-10 07:23:09 +0900 | [diff] [blame] | 232 | public static final class MediaSession.Token implements android.os.Parcelable { |
| 233 | method public int getUid(); |
| 234 | } |
| 235 | |
| Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 236 | public final class MediaSessionManager { |
| Jin Seok Park | 11aee2c | 2021-02-04 22:15:17 +0900 | [diff] [blame] | 237 | 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] | 238 | method public void dispatchMediaKeyEvent(@NonNull android.view.KeyEvent, boolean); |
| Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 239 | method public void dispatchMediaKeyEventAsSystemService(@NonNull android.view.KeyEvent); |
| Jin Seok Park | 5287e24 | 2020-09-01 21:56:27 +0900 | [diff] [blame] | 240 | 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] | 241 | method public void dispatchVolumeKeyEvent(@NonNull android.view.KeyEvent, int, boolean); |
| Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 242 | method public void dispatchVolumeKeyEventAsSystemService(@NonNull android.view.KeyEvent, int); |
| Jin Seok Park | 5287e24 | 2020-09-01 21:56:27 +0900 | [diff] [blame] | 243 | 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] | 244 | 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] | 245 | method public void registerRemoteSessionCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.session.MediaSessionManager.RemoteSessionCallback); |
| 246 | method public void unregisterRemoteSessionCallback(@NonNull android.media.session.MediaSessionManager.RemoteSessionCallback); |
| Hyundo Moon | f8bedc9 | 2020-09-10 07:44:30 +0900 | [diff] [blame] | 247 | field public static final int RESULT_MEDIA_KEY_HANDLED = 1; // 0x1 |
| 248 | 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] | 249 | } |
| 250 | |
| Jin Seok Park | 2dc180a | 2020-12-15 18:54:30 +0900 | [diff] [blame] | 251 | public static interface MediaSessionManager.RemoteSessionCallback { |
| 252 | method public void onDefaultRemoteSessionChanged(@Nullable android.media.session.MediaSession.Token); |
| Jin Seok Park | 18b8feb | 2020-10-27 16:02:07 +0900 | [diff] [blame] | 253 | method public void onVolumeChanged(@NonNull android.media.session.MediaSession.Token, int); |
| 254 | } |
| 255 | |
| Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 256 | } |
| 257 | |
| paulhu | 81bbd3c1 | 2020-12-08 17:24:21 +0800 | [diff] [blame] | 258 | package android.net { |
| 259 | |
| Remi NGUYEN VAN | 6d98157 | 2021-02-04 14:20:19 +0900 | [diff] [blame] | 260 | public final class EthernetNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable { |
| 261 | ctor public EthernetNetworkSpecifier(@NonNull String); |
| 262 | method public int describeContents(); |
| 263 | method @Nullable public String getInterfaceName(); |
| 264 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 265 | field @NonNull public static final android.os.Parcelable.Creator<android.net.EthernetNetworkSpecifier> CREATOR; |
| 266 | } |
| 267 | |
| Aaron Huang | 935cafb | 2021-12-15 23:27:18 +0800 | [diff] [blame] | 268 | public final class IpSecManager { |
| 269 | field public static final int DIRECTION_FWD = 2; // 0x2 |
| 270 | } |
| 271 | |
| Chiachang Wang | 5e26cc8 | 2021-01-12 18:48:13 +0800 | [diff] [blame] | 272 | public static final class IpSecManager.UdpEncapsulationSocket implements java.lang.AutoCloseable { |
| 273 | method public int getResourceId(); |
| 274 | } |
| 275 | |
| Junyu Lai | 6629435 | 2022-01-16 16:29:17 +0000 | [diff] [blame] | 276 | public class NetworkIdentity { |
| 277 | method public int getOemManaged(); |
| 278 | method public int getRatType(); |
| 279 | method @Nullable public String getSubscriberId(); |
| 280 | method public int getType(); |
| 281 | method @Nullable public String getWifiNetworkKey(); |
| 282 | method public boolean isDefaultNetwork(); |
| 283 | method public boolean isMetered(); |
| 284 | method public boolean isRoaming(); |
| 285 | } |
| 286 | |
| 287 | public static final class NetworkIdentity.Builder { |
| 288 | ctor public NetworkIdentity.Builder(); |
| 289 | method @NonNull public android.net.NetworkIdentity build(); |
| 290 | method @NonNull public android.net.NetworkIdentity.Builder clearRatType(); |
| 291 | method @NonNull public android.net.NetworkIdentity.Builder setDefaultNetwork(boolean); |
| 292 | method @NonNull public android.net.NetworkIdentity.Builder setMetered(boolean); |
| 293 | method @NonNull public android.net.NetworkIdentity.Builder setNetworkStateSnapshot(@NonNull android.net.NetworkStateSnapshot); |
| 294 | method @NonNull public android.net.NetworkIdentity.Builder setOemManaged(int); |
| 295 | method @NonNull public android.net.NetworkIdentity.Builder setRatType(int); |
| 296 | method @NonNull public android.net.NetworkIdentity.Builder setRoaming(boolean); |
| 297 | method @NonNull public android.net.NetworkIdentity.Builder setSubscriberId(@Nullable String); |
| 298 | method @NonNull public android.net.NetworkIdentity.Builder setType(int); |
| 299 | method @NonNull public android.net.NetworkIdentity.Builder setWifiNetworkKey(@Nullable String); |
| 300 | } |
| 301 | |
| Sudheer Shanka | 98dd271 | 2021-03-02 06:33:46 +0000 | [diff] [blame] | 302 | public class NetworkPolicyManager { |
| Remi NGUYEN VAN | 87eb49b | 2021-03-18 14:23:12 +0900 | [diff] [blame] | 303 | method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public int getMultipathPreference(@NonNull android.net.Network); |
| 304 | method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public int getRestrictBackgroundStatus(int); |
| lifr | c1d2e89 | 2022-01-11 11:17:36 +0800 | [diff] [blame] | 305 | 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] | 306 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidNetworkingBlocked(int, boolean); |
| 307 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidRestrictedOnMeteredNetworks(int); |
| lifr | c1d2e89 | 2022-01-11 11:17:36 +0800 | [diff] [blame] | 308 | 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] | 309 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public void registerNetworkPolicyCallback(@Nullable java.util.concurrent.Executor, @NonNull android.net.NetworkPolicyManager.NetworkPolicyCallback); |
| 310 | 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] | 311 | } |
| 312 | |
| 313 | public static interface NetworkPolicyManager.NetworkPolicyCallback { |
| 314 | method public default void onUidBlockedReasonChanged(int, int); |
| 315 | } |
| 316 | |
| junyulai | 604fd08 | 2020-12-30 19:03:32 +0800 | [diff] [blame] | 317 | public final class NetworkStateSnapshot implements android.os.Parcelable { |
| 318 | ctor public NetworkStateSnapshot(@NonNull android.net.Network, @NonNull android.net.NetworkCapabilities, @NonNull android.net.LinkProperties, @Nullable String, int); |
| 319 | method public int describeContents(); |
| Aaron Huang | d78c60c | 2021-04-20 17:19:46 +0800 | [diff] [blame] | 320 | method public int getLegacyType(); |
| 321 | method @NonNull public android.net.LinkProperties getLinkProperties(); |
| 322 | method @NonNull public android.net.Network getNetwork(); |
| 323 | method @NonNull public android.net.NetworkCapabilities getNetworkCapabilities(); |
| 324 | method @Nullable public String getSubscriberId(); |
| junyulai | 604fd08 | 2020-12-30 19:03:32 +0800 | [diff] [blame] | 325 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 326 | field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkStateSnapshot> CREATOR; |
| junyulai | 604fd08 | 2020-12-30 19:03:32 +0800 | [diff] [blame] | 327 | } |
| 328 | |
| Junyu Lai | 6629435 | 2022-01-16 16:29:17 +0000 | [diff] [blame] | 329 | public final class NetworkStatsHistory implements android.os.Parcelable { |
| 330 | method public int describeContents(); |
| 331 | method @NonNull public java.util.List<android.net.NetworkStatsHistory.Entry> getEntries(); |
| 332 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 333 | field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkStatsHistory> CREATOR; |
| 334 | } |
| 335 | |
| 336 | public static final class NetworkStatsHistory.Builder { |
| 337 | ctor public NetworkStatsHistory.Builder(long, int); |
| 338 | method @NonNull public android.net.NetworkStatsHistory.Builder addEntry(@NonNull android.net.NetworkStatsHistory.Entry); |
| 339 | method @NonNull public android.net.NetworkStatsHistory build(); |
| 340 | } |
| 341 | |
| 342 | public static final class NetworkStatsHistory.Entry { |
| 343 | ctor public NetworkStatsHistory.Entry(long, long, long, long, long, long, long); |
| 344 | method public long getActiveTime(); |
| 345 | method public long getBucketStart(); |
| 346 | method public long getOperations(); |
| 347 | method public long getRxBytes(); |
| 348 | method public long getRxPackets(); |
| 349 | method public long getTxBytes(); |
| 350 | method public long getTxPackets(); |
| 351 | } |
| 352 | |
| Junyu Lai | 64c6943 | 2022-01-04 10:23:47 +0000 | [diff] [blame] | 353 | public final class NetworkTemplate implements android.os.Parcelable { |
| 354 | method public int describeContents(); |
| 355 | method public int getDefaultNetworkStatus(); |
| 356 | method public int getMatchRule(); |
| 357 | method public int getMeteredness(); |
| 358 | method public int getOemManaged(); |
| 359 | method public int getRatType(); |
| 360 | method public int getRoaming(); |
| 361 | method @NonNull public java.util.Set<java.lang.String> getSubscriberIds(); |
| 362 | method @NonNull public java.util.Set<java.lang.String> getWifiNetworkKeys(); |
| 363 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 364 | field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkTemplate> CREATOR; |
| 365 | field public static final int MATCH_BLUETOOTH = 8; // 0x8 |
| 366 | field public static final int MATCH_CARRIER = 10; // 0xa |
| 367 | field public static final int MATCH_ETHERNET = 5; // 0x5 |
| 368 | field public static final int MATCH_MOBILE = 1; // 0x1 |
| 369 | field public static final int MATCH_WIFI = 4; // 0x4 |
| 370 | field public static final int NETWORK_TYPE_ALL = -1; // 0xffffffff |
| 371 | field public static final int OEM_MANAGED_ALL = -1; // 0xffffffff |
| 372 | field public static final int OEM_MANAGED_NO = 0; // 0x0 |
| 373 | field public static final int OEM_MANAGED_PAID = 1; // 0x1 |
| 374 | field public static final int OEM_MANAGED_PRIVATE = 2; // 0x2 |
| 375 | field public static final int OEM_MANAGED_YES = -2; // 0xfffffffe |
| 376 | } |
| 377 | |
| 378 | public static final class NetworkTemplate.Builder { |
| 379 | ctor public NetworkTemplate.Builder(int); |
| 380 | method @NonNull public android.net.NetworkTemplate build(); |
| 381 | method @NonNull public android.net.NetworkTemplate.Builder setDefaultNetworkStatus(int); |
| 382 | method @NonNull public android.net.NetworkTemplate.Builder setMeteredness(int); |
| 383 | method @NonNull public android.net.NetworkTemplate.Builder setOemManaged(int); |
| 384 | method @NonNull public android.net.NetworkTemplate.Builder setRatType(int); |
| 385 | method @NonNull public android.net.NetworkTemplate.Builder setRoaming(int); |
| 386 | method @NonNull public android.net.NetworkTemplate.Builder setSubscriberIds(@NonNull java.util.Set<java.lang.String>); |
| 387 | method @NonNull public android.net.NetworkTemplate.Builder setWifiNetworkKeys(@NonNull java.util.Set<java.lang.String>); |
| 388 | } |
| 389 | |
| paulhu | 5119787 | 2021-02-19 15:30:02 +0800 | [diff] [blame] | 390 | public class NetworkWatchlistManager { |
| 391 | method @Nullable public byte[] getWatchlistConfigHash(); |
| 392 | } |
| 393 | |
| Aaron Huang | 5d31a15 | 2021-01-18 15:28:01 +0800 | [diff] [blame] | 394 | public class PacProxyManager { |
| 395 | 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); |
| 396 | 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); |
| 397 | 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); |
| 398 | } |
| 399 | |
| 400 | public static interface PacProxyManager.PacProxyInstalledListener { |
| 401 | method public void onPacProxyInstalled(@Nullable android.net.Network, @NonNull android.net.ProxyInfo); |
| 402 | } |
| 403 | |
| Remi NGUYEN VAN | 9200ec1 | 2021-02-22 07:28:12 +0000 | [diff] [blame] | 404 | public final class Proxy { |
| 405 | method public static void setHttpProxyConfiguration(@Nullable android.net.ProxyInfo); |
| 406 | } |
| 407 | |
| Junyu Lai | de9cf33 | 2022-01-19 08:33:21 +0000 | [diff] [blame] | 408 | public class TrafficStats { |
| Junyu Lai | 5262c0e | 2022-01-17 17:05:30 +0000 | [diff] [blame] | 409 | method public static void attachSocketTagger(); |
| Junyu Lai | de9cf33 | 2022-01-19 08:33:21 +0000 | [diff] [blame] | 410 | method public static void init(@NonNull android.content.Context); |
| 411 | } |
| 412 | |
| junyulai | 755356f | 2021-01-28 21:19:32 +0800 | [diff] [blame] | 413 | public final class UnderlyingNetworkInfo implements android.os.Parcelable { |
| 414 | ctor public UnderlyingNetworkInfo(int, @NonNull String, @NonNull java.util.List<java.lang.String>); |
| 415 | method public int describeContents(); |
| Aaron Huang | a10cc3a | 2021-04-28 17:21:21 +0800 | [diff] [blame] | 416 | method @NonNull public String getInterface(); |
| Aaron Huang | f600897 | 2021-04-16 23:20:23 +0800 | [diff] [blame] | 417 | method public int getOwnerUid(); |
| Aaron Huang | a10cc3a | 2021-04-28 17:21:21 +0800 | [diff] [blame] | 418 | method @NonNull public java.util.List<java.lang.String> getUnderlyingInterfaces(); |
| junyulai | 755356f | 2021-01-28 21:19:32 +0800 | [diff] [blame] | 419 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 420 | field @NonNull public static final android.os.Parcelable.Creator<android.net.UnderlyingNetworkInfo> CREATOR; |
| junyulai | 755356f | 2021-01-28 21:19:32 +0800 | [diff] [blame] | 421 | } |
| 422 | |
| lucaslin | 62b2252 | 2021-03-10 16:57:57 +0800 | [diff] [blame] | 423 | public class VpnManager { |
| Lorenzo Colitti | fb7f36b | 2021-04-14 22:43:34 +0900 | [diff] [blame] | 424 | field public static final int TYPE_VPN_LEGACY = 3; // 0x3 |
| lucaslin | 62b2252 | 2021-03-10 16:57:57 +0800 | [diff] [blame] | 425 | field public static final int TYPE_VPN_NONE = -1; // 0xffffffff |
| Lorenzo Colitti | 4763300f | 2021-03-18 12:54:37 +0900 | [diff] [blame] | 426 | field public static final int TYPE_VPN_OEM = 4; // 0x4 |
| lucaslin | 62b2252 | 2021-03-10 16:57:57 +0800 | [diff] [blame] | 427 | field public static final int TYPE_VPN_PLATFORM = 2; // 0x2 |
| 428 | field public static final int TYPE_VPN_SERVICE = 1; // 0x1 |
| 429 | } |
| 430 | |
| paulhu | 81bbd3c1 | 2020-12-08 17:24:21 +0800 | [diff] [blame] | 431 | } |
| 432 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 433 | package android.os { |
| 434 | |
| Aaron Huang | 558b317 | 2020-10-26 17:34:50 +0800 | [diff] [blame] | 435 | public final class BatteryStatsManager { |
| 436 | 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; |
| 437 | } |
| 438 | |
| Steven Moreland | 95dd53b | 2020-07-23 21:22:18 +0000 | [diff] [blame] | 439 | public class Binder implements android.os.IBinder { |
| 440 | method public final void markVintfStability(); |
| 441 | } |
| 442 | |
| Roopa Sattiraju | a070d18c | 2022-01-19 19:01:36 -0800 | [diff] [blame] | 443 | public class BluetoothServiceManager { |
| 444 | method @NonNull public android.os.BluetoothServiceManager.ServiceRegisterer getBluetoothManagerServiceRegisterer(); |
| 445 | } |
| 446 | |
| 447 | public static class BluetoothServiceManager.ServiceNotFoundException extends java.lang.Exception { |
| 448 | ctor public BluetoothServiceManager.ServiceNotFoundException(@NonNull String); |
| 449 | } |
| 450 | |
| 451 | public static final class BluetoothServiceManager.ServiceRegisterer { |
| 452 | method @Nullable public android.os.IBinder get(); |
| 453 | method @NonNull public android.os.IBinder getOrThrow() throws android.os.BluetoothServiceManager.ServiceNotFoundException; |
| 454 | method public void register(@NonNull android.os.IBinder); |
| 455 | method @Nullable public android.os.IBinder tryGet(); |
| 456 | } |
| 457 | |
| Remi NGUYEN VAN | b5f095e | 2021-04-07 19:40:31 +0900 | [diff] [blame] | 458 | public class Build { |
| 459 | method public static boolean isDebuggable(); |
| 460 | } |
| 461 | |
| paulhu | 69f79b0 | 2021-01-06 12:00:29 +0800 | [diff] [blame] | 462 | public static class Build.VERSION { |
| paulhu | 016950a | 2021-04-09 15:47:36 +0800 | [diff] [blame] | 463 | field public static final int DEVICE_INITIAL_SDK_INT; |
| paulhu | 69f79b0 | 2021-01-06 12:00:29 +0800 | [diff] [blame] | 464 | } |
| 465 | |
| Steven Moreland | e5bd46e | 2020-07-28 01:18:42 +0000 | [diff] [blame] | 466 | public interface Parcelable { |
| Steven Moreland | 7542475 | 2020-08-05 19:42:15 +0000 | [diff] [blame] | 467 | method public default int getStability(); |
| Steven Moreland | e5bd46e | 2020-07-28 01:18:42 +0000 | [diff] [blame] | 468 | } |
| 469 | |
| lucaslin | e4ea3d4 | 2021-03-17 19:04:01 +0800 | [diff] [blame] | 470 | public class Process { |
| Martijn Coenen | 9c90452 | 2022-01-12 14:27:25 +0100 | [diff] [blame] | 471 | method public static final boolean isSupplemental(int); |
| 472 | method public static final int toAppUid(int); |
| 473 | method public static final int toSupplementalUid(int); |
| Etienne Ruffieux | fe195c9 | 2022-01-11 16:17:55 +0000 | [diff] [blame] | 474 | field public static final int NFC_UID = 1027; // 0x403 |
| lucaslin | e4ea3d4 | 2021-03-17 19:04:01 +0800 | [diff] [blame] | 475 | field public static final int VPN_UID = 1016; // 0x3f8 |
| 476 | } |
| 477 | |
| Steven Moreland | ce81994f5 | 2021-07-15 22:26:22 +0000 | [diff] [blame] | 478 | public final class ServiceManager { |
| 479 | method public static boolean isDeclared(@NonNull String); |
| 480 | method @Nullable public static android.os.IBinder waitForDeclaredService(@NonNull String); |
| 481 | } |
| 482 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 483 | public class StatsServiceManager { |
| 484 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsCompanionServiceRegisterer(); |
| 485 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsManagerServiceRegisterer(); |
| 486 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsdServiceRegisterer(); |
| 487 | } |
| 488 | |
| 489 | public static class StatsServiceManager.ServiceNotFoundException extends java.lang.Exception { |
| 490 | ctor public StatsServiceManager.ServiceNotFoundException(@NonNull String); |
| 491 | } |
| 492 | |
| 493 | public static final class StatsServiceManager.ServiceRegisterer { |
| 494 | method @Nullable public android.os.IBinder get(); |
| 495 | method @Nullable public android.os.IBinder getOrThrow() throws android.os.StatsServiceManager.ServiceNotFoundException; |
| 496 | } |
| 497 | |
| Junyu Lai | 0cf9e87 | 2021-12-28 14:33:57 +0000 | [diff] [blame] | 498 | public final class StrictMode { |
| 499 | method public static void noteUntaggedSocket(); |
| 500 | } |
| 501 | |
| William Escande | a47b950 | 2021-09-30 12:32:26 +0200 | [diff] [blame] | 502 | public class SystemConfigManager { |
| 503 | method @NonNull public java.util.List<android.content.ComponentName> getEnabledComponentOverrides(@NonNull String); |
| 504 | } |
| 505 | |
| Junyu Lai | c048d53 | 2022-01-18 17:47:05 +0000 | [diff] [blame] | 506 | public final class Trace { |
| 507 | method public static void asyncTraceBegin(long, @NonNull String, int); |
| 508 | method public static void asyncTraceEnd(long, @NonNull String, int); |
| 509 | method public static boolean isTagEnabled(long); |
| 510 | method public static void traceBegin(long, @NonNull String); |
| 511 | method public static void traceCounter(long, @NonNull String, int); |
| 512 | method public static void traceEnd(long); |
| 513 | field public static final long TRACE_TAG_NETWORK = 2097152L; // 0x200000L |
| 514 | } |
| 515 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 516 | } |
| 517 | |
| Zim | c534503 | 2021-02-23 16:35:05 +0000 | [diff] [blame] | 518 | package android.os.storage { |
| 519 | |
| 520 | public class StorageManager { |
| Neharika Jali | f0bb51b | 2021-10-20 06:28:44 +0000 | [diff] [blame] | 521 | method public long computeStorageCacheBytes(@NonNull java.io.File); |
| Zim | 055878b | 2021-03-03 12:39:55 +0000 | [diff] [blame] | 522 | method public void notifyAppIoBlocked(@NonNull java.util.UUID, int, int, int); |
| 523 | method public void notifyAppIoResumed(@NonNull java.util.UUID, int, int, int); |
| Zim | 308a048 | 2021-03-25 16:15:36 +0000 | [diff] [blame] | 524 | field public static final int APP_IO_BLOCKED_REASON_TRANSCODING = 1; // 0x1 |
| 525 | field public static final int APP_IO_BLOCKED_REASON_UNKNOWN = 0; // 0x0 |
| Zim | c534503 | 2021-02-23 16:35:05 +0000 | [diff] [blame] | 526 | } |
| 527 | |
| Martijn Coenen | b329228 | 2021-03-22 10:51:41 +0100 | [diff] [blame] | 528 | public final class StorageVolume implements android.os.Parcelable { |
| 529 | method @NonNull public android.os.UserHandle getOwner(); |
| 530 | } |
| 531 | |
| Zim | c534503 | 2021-02-23 16:35:05 +0000 | [diff] [blame] | 532 | } |
| 533 | |
| Kweku Adams | 1e55861 | 2020-08-24 10:13:15 -0700 | [diff] [blame] | 534 | package android.provider { |
| 535 | |
| William Escande | e44b464 | 2021-10-07 17:47:49 +0200 | [diff] [blame] | 536 | 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] | 537 | 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] | 538 | } |
| 539 | |
| Kweku Adams | 1e55861 | 2020-08-24 10:13:15 -0700 | [diff] [blame] | 540 | public final class DeviceConfig { |
| Kweku Adams | 1e7a69c | 2020-08-28 12:47:06 -0700 | [diff] [blame] | 541 | field public static final String NAMESPACE_ALARM_MANAGER = "alarm_manager"; |
| Kweku Adams | 01e36ae | 2020-10-19 14:45:33 -0700 | [diff] [blame] | 542 | field public static final String NAMESPACE_APP_STANDBY = "app_standby"; |
| Kweku Adams | 1e55861 | 2020-08-24 10:13:15 -0700 | [diff] [blame] | 543 | field public static final String NAMESPACE_DEVICE_IDLE = "device_idle"; |
| 544 | } |
| 545 | |
| 546 | } |
| 547 | |
| Hall Liu | 57d7090 | 2020-10-13 19:19:12 -0700 | [diff] [blame] | 548 | package android.telephony { |
| 549 | |
| 550 | public abstract class CellSignalStrength { |
| 551 | method public static int getNumSignalStrengthLevels(); |
| 552 | } |
| 553 | |
| Etienne Ruffieux | 6a646db | 2021-07-27 10:06:27 +0000 | [diff] [blame] | 554 | public class SubscriptionManager { |
| 555 | method public void addSubscriptionInfoRecord(@NonNull String, @Nullable String, int, int); |
| 556 | method public void removeSubscriptionInfoRecord(@NonNull String, int); |
| 557 | } |
| 558 | |
| Hall Liu | 57d7090 | 2020-10-13 19:19:12 -0700 | [diff] [blame] | 559 | public class TelephonyManager { |
| 560 | method @NonNull public static int[] getAllNetworkTypes(); |
| 561 | } |
| 562 | |
| 563 | } |
| 564 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 565 | package android.util { |
| 566 | |
| 567 | public class AtomicFile { |
| 568 | ctor public AtomicFile(@NonNull java.io.File, @Nullable android.util.SystemConfigFileCommitEventLogger); |
| 569 | } |
| 570 | |
| 571 | public final class Log { |
| 572 | method public static int logToRadioBuffer(int, @Nullable String, @Nullable String); |
| 573 | } |
| 574 | |
| 575 | public class SystemConfigFileCommitEventLogger { |
| 576 | ctor public SystemConfigFileCommitEventLogger(@NonNull String); |
| 577 | method public void setStartTime(long); |
| 578 | } |
| 579 | |
| 580 | } |
| 581 | |