| 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 { |
| Lorenzo Colitti | 18ae968 | 2022-04-06 15:13:33 +0900 | [diff] [blame] | 5 | field public static final String BLUETOOTH_STACK = "android.permission.BLUETOOTH_STACK"; |
| Eva Chen | a10ba7b | 2022-01-20 14:39:32 -0800 | [diff] [blame] | 6 | field public static final String CONTROL_AUTOMOTIVE_GNSS = "android.permission.CONTROL_AUTOMOTIVE_GNSS"; |
| Makoto Onuki | db8d2bf | 2020-11-06 13:43:38 -0800 | [diff] [blame] | 7 | field public static final String GET_INTENT_SENDER_INTENT = "android.permission.GET_INTENT_SENDER_INTENT"; |
| Rhed Jao | 41de18f | 2022-03-16 15:17:20 +0800 | [diff] [blame] | 8 | field public static final String MAKE_UID_VISIBLE = "android.permission.MAKE_UID_VISIBLE"; |
| Makoto Onuki | db8d2bf | 2020-11-06 13:43:38 -0800 | [diff] [blame] | 9 | } |
| 10 | |
| 11 | } |
| 12 | |
| Nikita Ioffe | 89f7de1 | 2020-06-30 01:31:43 +0100 | [diff] [blame] | 13 | package android.app { |
| 14 | |
| Shan Huang | 69a3984a | 2022-03-30 20:23:59 +0000 | [diff] [blame] | 15 | @UiContext public class Activity extends android.view.ContextThemeWrapper implements android.content.ComponentCallbacks2 android.view.KeyEvent.Callback android.view.LayoutInflater.Factory2 android.view.View.OnCreateContextMenuListener android.view.Window.Callback { |
| Felipe Leme | bcafba3 | 2021-10-01 13:25:53 -0700 | [diff] [blame] | 16 | method public final boolean addDumpable(@NonNull android.util.Dumpable); |
| Roshan Pius | 0ce1c1f | 2023-10-27 23:00:55 +0000 | [diff] [blame] | 17 | method @FlaggedApi("android.nfc.enable_nfc_mainline") public final boolean isResumed(); |
| Felipe Leme | bcafba3 | 2021-10-01 13:25:53 -0700 | [diff] [blame] | 18 | } |
| 19 | |
| Hall Liu | ed473f4 | 2020-10-06 13:52:21 -0700 | [diff] [blame] | 20 | public class ActivityManager { |
| 21 | method @RequiresPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER) public void addHomeVisibilityListener(@NonNull java.util.concurrent.Executor, @NonNull android.app.HomeVisibilityListener); |
| Mark Fasheh | f75bf1d | 2023-03-24 16:33:32 +0000 | [diff] [blame] | 22 | method @NonNull @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int[] getUidFrozenState(@NonNull int[]); |
| Mark Fasheh | a0104a0 | 2023-03-03 01:09:08 +0000 | [diff] [blame] | 23 | method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public void registerUidFrozenStateChangedCallback(@NonNull java.util.concurrent.Executor, @NonNull android.app.ActivityManager.UidFrozenStateChangedCallback); |
| Hall Liu | ed473f4 | 2020-10-06 13:52:21 -0700 | [diff] [blame] | 24 | method @RequiresPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER) public void removeHomeVisibilityListener(@NonNull android.app.HomeVisibilityListener); |
| Mark Fasheh | a0104a0 | 2023-03-03 01:09:08 +0000 | [diff] [blame] | 25 | method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public void unregisterUidFrozenStateChangedCallback(@NonNull android.app.ActivityManager.UidFrozenStateChangedCallback); |
| Hall Liu | c82d6aa | 2020-11-02 16:21:49 -0800 | [diff] [blame] | 26 | 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] | 27 | } |
| 28 | |
| Mark Fasheh | a0104a0 | 2023-03-03 01:09:08 +0000 | [diff] [blame] | 29 | public static interface ActivityManager.UidFrozenStateChangedCallback { |
| 30 | method public void onUidFrozenStateChanged(@NonNull int[], @NonNull int[]); |
| 31 | field public static final int UID_FROZEN_STATE_FROZEN = 1; // 0x1 |
| 32 | field public static final int UID_FROZEN_STATE_UNFROZEN = 2; // 0x2 |
| 33 | } |
| 34 | |
| Nikita Ioffe | 89f7de1 | 2020-06-30 01:31:43 +0100 | [diff] [blame] | 35 | public class AppOpsManager { |
| 36 | field public static final String OPSTR_NO_ISOLATED_STORAGE = "android:no_isolated_storage"; |
| 37 | } |
| 38 | |
| paulhu | 52437ab | 2020-11-18 00:07:32 +0800 | [diff] [blame] | 39 | public class BroadcastOptions { |
| Jeff Sharkey | 895e456 | 2021-12-21 12:00:49 -0700 | [diff] [blame] | 40 | method @Deprecated public int getMaxManifestReceiverApiLevel(); |
| 41 | method @Deprecated public void setMaxManifestReceiverApiLevel(int); |
| paulhu | 52437ab | 2020-11-18 00:07:32 +0800 | [diff] [blame] | 42 | } |
| 43 | |
| Hall Liu | ed473f4 | 2020-10-06 13:52:21 -0700 | [diff] [blame] | 44 | public abstract class HomeVisibilityListener { |
| 45 | ctor public HomeVisibilityListener(); |
| 46 | method public abstract void onHomeVisibilityChanged(boolean); |
| 47 | } |
| 48 | |
| Jin Seok Park | e1f4d51d | 2020-07-14 21:15:44 +0900 | [diff] [blame] | 49 | public class NotificationManager { |
| 50 | method public boolean hasEnabledNotificationListener(@NonNull String, @NonNull android.os.UserHandle); |
| Jin Seok Park | 643f3e4 | 2020-07-29 17:21:36 +0900 | [diff] [blame] | 51 | 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] | 52 | } |
| 53 | |
| Makoto Onuki | db8d2bf | 2020-11-06 13:43:38 -0800 | [diff] [blame] | 54 | public final class PendingIntent implements android.os.Parcelable { |
| Makoto Onuki | 718ae76 | 2021-09-14 17:31:45 -0700 | [diff] [blame] | 55 | 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] | 56 | 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] | 57 | 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] | 58 | method public void removeCancelListener(@NonNull android.app.PendingIntent.CancelListener); |
| 59 | } |
| 60 | |
| 61 | public static interface PendingIntent.CancelListener { |
| Etienne Ruffieux | 4c70432 | 2021-09-29 12:59:55 +0000 | [diff] [blame] | 62 | method public void onCanceled(@NonNull android.app.PendingIntent); |
| Makoto Onuki | db8d2bf | 2020-11-06 13:43:38 -0800 | [diff] [blame] | 63 | } |
| 64 | |
| Hall Liu | 3dbee7e | 2020-09-15 15:25:46 -0700 | [diff] [blame] | 65 | public class StatusBarManager { |
| Hall Liu | 409c989 | 2020-09-22 16:39:19 -0700 | [diff] [blame] | 66 | method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void setExpansionDisabledForSimNetworkLock(boolean); |
| Hall Liu | 3dbee7e | 2020-09-15 15:25:46 -0700 | [diff] [blame] | 67 | } |
| 68 | |
| Torne (Richard Coles) | 14b06dc | 2024-01-25 16:14:29 -0500 | [diff] [blame] | 69 | public final class SystemServiceRegistry { |
| 70 | method @FlaggedApi("android.webkit.update_service_ipc_wrapper") @Nullable public static Object getSystemServiceWithNoContext(@NonNull String); |
| 71 | method @FlaggedApi("android.webkit.update_service_ipc_wrapper") public static <TServiceClass> void registerForeverStaticService(@NonNull String, @NonNull Class<TServiceClass>, @NonNull android.app.SystemServiceRegistry.StaticServiceProducerWithBinder<TServiceClass>); |
| 72 | } |
| 73 | |
| Nikita Ioffe | 89f7de1 | 2020-06-30 01:31:43 +0100 | [diff] [blame] | 74 | } |
| 75 | |
| Felipe Leme | 1e7e2ec | 2021-10-07 11:43:23 -0700 | [diff] [blame] | 76 | package android.app.admin { |
| 77 | |
| 78 | public class DevicePolicyManager { |
| Felipe Leme | 9a6b808 | 2022-01-26 16:29:59 -0800 | [diff] [blame] | 79 | method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public void acknowledgeNewUserDisclaimer(); |
| Felipe Leme | 52660ae | 2022-01-20 10:19:45 -0800 | [diff] [blame] | 80 | method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public android.os.UserHandle getLogoutUser(); |
| Pete Varvarezis | 21a6daa | 2022-12-14 05:11:46 +0000 | [diff] [blame] | 81 | method public boolean hasManagedProfileCallerIdAccess(@NonNull android.os.UserHandle, @NonNull String); |
| 82 | method public boolean hasManagedProfileContactsAccess(@NonNull android.os.UserHandle, @NonNull String); |
| Felipe Leme | 9a6b808 | 2022-01-26 16:29:59 -0800 | [diff] [blame] | 83 | method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public int logoutUser(); |
| Felipe Leme | 1e7e2ec | 2021-10-07 11:43:23 -0700 | [diff] [blame] | 84 | field public static final String ACTION_SHOW_NEW_USER_DISCLAIMER = "android.app.action.SHOW_NEW_USER_DISCLAIMER"; |
| 85 | } |
| 86 | |
| 87 | } |
| 88 | |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 89 | package android.content { |
| 90 | |
| Corina | 3fcaa52 | 2021-03-04 10:29:28 +0000 | [diff] [blame] | 91 | public abstract class ContentProvider implements android.content.ComponentCallbacks2 { |
| Corina | 7c36853 | 2021-04-12 21:57:06 +0000 | [diff] [blame] | 92 | 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] | 93 | } |
| 94 | |
| Xiaoyu Jin | 6610524 | 2021-12-01 15:57:49 +0000 | [diff] [blame] | 95 | public abstract class ContentResolver { |
| Xiaoyu Jin | a645dea | 2021-12-07 08:21:12 +0000 | [diff] [blame] | 96 | 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] | 97 | } |
| 98 | |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 99 | public abstract class Context { |
| Samiul Islam | ff9f017 | 2023-01-05 13:17:31 +0000 | [diff] [blame] | 100 | method @NonNull public android.content.Context createContextForSdkInSandbox(@NonNull android.content.pm.ApplicationInfo, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| Sanjana Sunil | a6b7c40c | 2023-01-16 15:53:12 +0000 | [diff] [blame] | 101 | method @NonNull public android.os.IBinder getProcessToken(); |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 102 | method @NonNull public android.os.UserHandle getUser(); |
| Aaron Huang | 62718c2 | 2021-04-06 11:50:21 +0800 | [diff] [blame] | 103 | field public static final String PAC_PROXY_SERVICE = "pac_proxy"; |
| Remi NGUYEN VAN | d31b352 | 2021-03-11 21:06:10 +0900 | [diff] [blame] | 104 | field public static final String TEST_NETWORK_SERVICE = "test_network"; |
| Torne (Richard Coles) | 87c4adf | 2024-01-19 16:04:18 -0500 | [diff] [blame] | 105 | field @FlaggedApi("android.webkit.update_service_ipc_wrapper") public static final String WEBVIEW_UPDATE_SERVICE = "webviewupdate"; |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 106 | } |
| 107 | |
| William Escande | 543d84f | 2022-01-11 15:38:07 +0100 | [diff] [blame] | 108 | public class Intent implements java.lang.Cloneable android.os.Parcelable { |
| 109 | field public static final String ACTION_SETTING_RESTORED = "android.os.action.SETTING_RESTORED"; |
| 110 | field public static final String EXTRA_SETTING_NAME = "setting_name"; |
| 111 | field public static final String EXTRA_SETTING_NEW_VALUE = "new_value"; |
| 112 | field public static final String EXTRA_SETTING_PREVIOUS_VALUE = "previous_value"; |
| 113 | field public static final String EXTRA_SETTING_RESTORED_FROM_SDK_INT = "restored_from_sdk_int"; |
| 114 | } |
| 115 | |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 116 | } |
| 117 | |
| 118 | package android.content.pm { |
| 119 | |
| Gavin Corkery | 954bd46 | 2022-01-10 10:52:58 +0000 | [diff] [blame] | 120 | public class ApplicationInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable { |
| Joanne Chung | f232261 | 2023-11-23 12:00:26 +0000 | [diff] [blame] | 121 | method @FlaggedApi("android.content.pm.sdk_lib_independence") @NonNull public java.util.List<android.content.pm.SharedLibraryInfo> getOptionalSharedLibraryInfos(); |
| Gavin Corkery | 954bd46 | 2022-01-10 10:52:58 +0000 | [diff] [blame] | 122 | method @NonNull public java.util.List<android.content.pm.SharedLibraryInfo> getSharedLibraryInfos(); |
| Jiakai Zhang | 9912ac9 | 2022-12-12 20:24:51 +0000 | [diff] [blame] | 123 | field public static final int HIDDEN_API_ENFORCEMENT_DEFAULT = -1; // 0xffffffff |
| 124 | field public static final int HIDDEN_API_ENFORCEMENT_DISABLED = 0; // 0x0 |
| 125 | field public static final int HIDDEN_API_ENFORCEMENT_ENABLED = 2; // 0x2 |
| 126 | field public static final int HIDDEN_API_ENFORCEMENT_JUST_WARN = 1; // 0x1 |
| Gavin Corkery | 954bd46 | 2022-01-10 10:52:58 +0000 | [diff] [blame] | 127 | } |
| 128 | |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 129 | public abstract class PackageManager { |
| Nikita Ioffe | df59713 | 2022-02-21 04:01:38 +0000 | [diff] [blame] | 130 | method @NonNull public String getSdkSandboxPackageName(); |
| Rhed Jao | 41de18f | 2022-03-16 15:17:20 +0800 | [diff] [blame] | 131 | method @RequiresPermission(android.Manifest.permission.MAKE_UID_VISIBLE) public void makeUidVisible(int, int); |
| Khalid Ramadan | 521adad | 2022-02-16 12:50:07 +0000 | [diff] [blame] | 132 | field public static final String EXTRA_VERIFICATION_ROOT_HASH = "android.content.pm.extra.VERIFICATION_ROOT_HASH"; |
| Gavin Corkery | 954bd46 | 2022-01-10 10:52:58 +0000 | [diff] [blame] | 133 | field public static final int MATCH_STATIC_SHARED_AND_SDK_LIBRARIES = 67108864; // 0x4000000 |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 134 | } |
| 135 | |
| Jay Thomas Sullivan | a14c9e5 | 2024-01-25 18:50:58 -0800 | [diff] [blame] | 136 | @FlaggedApi("android.permission.flags.enhanced_confirmation_mode_apis_enabled") public class SignedPackage { |
| 137 | method @NonNull public byte[] getCertificateDigest(); |
| Jay Thomas Sullivan | 22364c0 | 2024-02-20 14:46:26 -0800 | [diff] [blame] | 138 | method @NonNull public String getPackageName(); |
| Jay Thomas Sullivan | a14c9e5 | 2024-01-25 18:50:58 -0800 | [diff] [blame] | 139 | } |
| 140 | |
| Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 141 | } |
| 142 | |
| raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 143 | package android.hardware.usb { |
| 144 | |
| 145 | public class UsbManager { |
| 146 | method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getGadgetHalVersion(); |
| Ray Chi | 5603742 | 2021-03-18 17:40:35 +0800 | [diff] [blame] | 147 | method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getUsbBandwidthMbps(); |
| Albert Wang | 619abd2 | 2020-11-29 16:46:50 +0800 | [diff] [blame] | 148 | method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getUsbHalVersion(); |
| raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 149 | field public static final int GADGET_HAL_NOT_SUPPORTED = -1; // 0xffffffff |
| 150 | field public static final int GADGET_HAL_V1_0 = 10; // 0xa |
| 151 | field public static final int GADGET_HAL_V1_1 = 11; // 0xb |
| 152 | field public static final int GADGET_HAL_V1_2 = 12; // 0xc |
| Ricky Niu | 74272e2 | 2022-06-14 17:43:27 +0800 | [diff] [blame] | 153 | field public static final int GADGET_HAL_V2_0 = 20; // 0x14 |
| raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 154 | field public static final int USB_DATA_TRANSFER_RATE_10G = 10240; // 0x2800 |
| 155 | field public static final int USB_DATA_TRANSFER_RATE_20G = 20480; // 0x5000 |
| 156 | field public static final int USB_DATA_TRANSFER_RATE_40G = 40960; // 0xa000 |
| 157 | field public static final int USB_DATA_TRANSFER_RATE_5G = 5120; // 0x1400 |
| 158 | field public static final int USB_DATA_TRANSFER_RATE_FULL_SPEED = 12; // 0xc |
| 159 | field public static final int USB_DATA_TRANSFER_RATE_HIGH_SPEED = 480; // 0x1e0 |
| 160 | field public static final int USB_DATA_TRANSFER_RATE_LOW_SPEED = 2; // 0x2 |
| 161 | field public static final int USB_DATA_TRANSFER_RATE_UNKNOWN = -1; // 0xffffffff |
| Albert Wang | 619abd2 | 2020-11-29 16:46:50 +0800 | [diff] [blame] | 162 | field public static final int USB_HAL_NOT_SUPPORTED = -1; // 0xffffffff |
| Badhri Jagan Sridharan | bbfa92e | 2021-11-24 23:41:27 -0800 | [diff] [blame] | 163 | field public static final int USB_HAL_RETRY = -2; // 0xfffffffe |
| Albert Wang | 619abd2 | 2020-11-29 16:46:50 +0800 | [diff] [blame] | 164 | field public static final int USB_HAL_V1_0 = 10; // 0xa |
| 165 | field public static final int USB_HAL_V1_1 = 11; // 0xb |
| 166 | field public static final int USB_HAL_V1_2 = 12; // 0xc |
| 167 | field public static final int USB_HAL_V1_3 = 13; // 0xd |
| Badhri Jagan Sridharan | bbfa92e | 2021-11-24 23:41:27 -0800 | [diff] [blame] | 168 | field public static final int USB_HAL_V2_0 = 20; // 0x14 |
| raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 169 | } |
| 170 | |
| 171 | } |
| 172 | |
| Jin Seok Park | 4abc23e | 2020-07-30 22:28:50 +0900 | [diff] [blame] | 173 | package android.media { |
| 174 | |
| 175 | public class AudioManager { |
| Jin Seok Park | 16aeba38 | 2020-08-06 12:52:54 +0900 | [diff] [blame] | 176 | method public void adjustStreamVolumeForUid(int, int, int, @NonNull String, int, int, int); |
| 177 | method public void adjustSuggestedStreamVolumeForUid(int, int, int, @NonNull String, int, int, int); |
| William Escande | a05cb45 | 2021-12-08 14:14:19 +0100 | [diff] [blame] | 178 | method @NonNull public java.util.List<android.bluetooth.BluetoothCodecConfig> getHwOffloadFormatsSupportedForA2dp(); |
| 179 | method @NonNull public java.util.List<android.bluetooth.BluetoothLeAudioCodecConfig> getHwOffloadFormatsSupportedForLeAudio(); |
| Patty Huang | 1dc21e1 | 2022-07-06 00:12:03 +0800 | [diff] [blame] | 180 | method @NonNull public java.util.List<android.bluetooth.BluetoothLeAudioCodecConfig> getHwOffloadFormatsSupportedForLeBroadcast(); |
| Lorenzo Colitti | 18ae968 | 2022-04-06 15:13:33 +0900 | [diff] [blame] | 181 | method @RequiresPermission(android.Manifest.permission.BLUETOOTH_STACK) public void handleBluetoothActiveDeviceChanged(@Nullable android.bluetooth.BluetoothDevice, @Nullable android.bluetooth.BluetoothDevice, @NonNull android.media.BluetoothProfileConnectionInfo); |
| 182 | method @RequiresPermission(android.Manifest.permission.BLUETOOTH_STACK) public void setA2dpSuspended(boolean); |
| 183 | method @RequiresPermission(android.Manifest.permission.BLUETOOTH_STACK) public void setBluetoothHeadsetProperties(@NonNull String, boolean, boolean); |
| 184 | method @RequiresPermission(android.Manifest.permission.BLUETOOTH_STACK) public void setHfpEnabled(boolean); |
| 185 | method @RequiresPermission(android.Manifest.permission.BLUETOOTH_STACK) public void setHfpSamplingRate(int); |
| 186 | method @RequiresPermission(android.Manifest.permission.BLUETOOTH_STACK) public void setHfpVolume(int); |
| Rahul Sabnis | 215e541 | 2022-12-21 16:03:07 -0800 | [diff] [blame] | 187 | method @RequiresPermission(android.Manifest.permission.BLUETOOTH_STACK) public void setLeAudioSuspended(boolean); |
| 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 | |
| William Escande | ac11d77 | 2022-01-25 18:01:15 +0100 | [diff] [blame] | 192 | public final class BluetoothProfileConnectionInfo implements android.os.Parcelable { |
| 193 | method @NonNull public static android.media.BluetoothProfileConnectionInfo createA2dpInfo(boolean, int); |
| 194 | method @NonNull public static android.media.BluetoothProfileConnectionInfo createA2dpSinkInfo(int); |
| 195 | method @NonNull public static android.media.BluetoothProfileConnectionInfo createHearingAidInfo(boolean); |
| Eric Laurent | 0cb1de0 | 2024-01-12 17:18:41 +0100 | [diff] [blame] | 196 | method @FlaggedApi("android.media.audio.sco_managed_by_audio") @NonNull public static android.media.BluetoothProfileConnectionInfo createHfpInfo(); |
| William Escande | ac11d77 | 2022-01-25 18:01:15 +0100 | [diff] [blame] | 197 | method @NonNull public static android.media.BluetoothProfileConnectionInfo createLeAudioInfo(boolean, boolean); |
| Jean-Michel Trivi | 4b441c8 | 2022-08-19 22:39:24 +0000 | [diff] [blame] | 198 | method @NonNull public static android.media.BluetoothProfileConnectionInfo createLeAudioOutputInfo(boolean, int); |
| wescande | 7c17ba0c | 2021-07-30 16:46:14 +0200 | [diff] [blame] | 199 | method public int describeContents(); |
| wescande | 7c17ba0c | 2021-07-30 16:46:14 +0200 | [diff] [blame] | 200 | method public int getProfile(); |
| wescande | 7c17ba0c | 2021-07-30 16:46:14 +0200 | [diff] [blame] | 201 | method public int getVolume(); |
| William Escande | ac11d77 | 2022-01-25 18:01:15 +0100 | [diff] [blame] | 202 | method public boolean isLeOutput(); |
| 203 | method public boolean isSuppressNoisyIntent(); |
| wescande | 7c17ba0c | 2021-07-30 16:46:14 +0200 | [diff] [blame] | 204 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| William Escande | ac11d77 | 2022-01-25 18:01:15 +0100 | [diff] [blame] | 205 | field @NonNull public static final android.os.Parcelable.Creator<android.media.BluetoothProfileConnectionInfo> CREATOR; |
| wescande | 7c17ba0c | 2021-07-30 16:46:14 +0200 | [diff] [blame] | 206 | } |
| 207 | |
| Chong Zhang | 9fc0e10 | 2020-08-24 17:30:15 -0700 | [diff] [blame] | 208 | public class MediaMetadataRetriever implements java.lang.AutoCloseable { |
| 209 | field public static final int METADATA_KEY_VIDEO_CODEC_MIME_TYPE = 40; // 0x28 |
| 210 | } |
| 211 | |
| Chong Zhang | 864d0b7 | 2020-12-04 11:34:19 -0800 | [diff] [blame] | 212 | public class MediaServiceManager { |
| Hyundo Moon | 47b6352 | 2020-12-18 20:57:07 +0900 | [diff] [blame] | 213 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaCommunicationServiceRegisterer(); |
| Chong Zhang | 864d0b7 | 2020-12-04 11:34:19 -0800 | [diff] [blame] | 214 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaSessionServiceRegisterer(); |
| 215 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaTranscodingServiceRegisterer(); |
| 216 | } |
| 217 | |
| 218 | public static final class MediaServiceManager.ServiceRegisterer { |
| 219 | method @Nullable public android.os.IBinder get(); |
| 220 | } |
| 221 | |
| Jin Seok Park | 4abc23e | 2020-07-30 22:28:50 +0900 | [diff] [blame] | 222 | } |
| 223 | |
| Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 224 | package android.media.session { |
| 225 | |
| Hyundo Moon | fc7d49f | 2020-09-03 11:48:11 +0900 | [diff] [blame] | 226 | public static final class MediaController.PlaybackInfo implements android.os.Parcelable { |
| 227 | ctor public MediaController.PlaybackInfo(int, int, @IntRange(from=0) int, @IntRange(from=0) int, @NonNull android.media.AudioAttributes, @Nullable String); |
| 228 | } |
| 229 | |
| Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 230 | public final class MediaSession { |
| 231 | field public static final int FLAG_EXCLUSIVE_GLOBAL_PRIORITY = 65536; // 0x10000 |
| 232 | } |
| 233 | |
| Hyundo Moon | 672620b0 | 2020-09-10 07:23:09 +0900 | [diff] [blame] | 234 | public static final class MediaSession.Token implements android.os.Parcelable { |
| 235 | method public int getUid(); |
| 236 | } |
| 237 | |
| Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 238 | public final class MediaSessionManager { |
| Jin Seok Park | 11aee2c | 2021-02-04 22:15:17 +0900 | [diff] [blame] | 239 | 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] | 240 | method public void dispatchMediaKeyEvent(@NonNull android.view.KeyEvent, boolean); |
| Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 241 | method public void dispatchMediaKeyEventAsSystemService(@NonNull android.view.KeyEvent); |
| Jin Seok Park | 5287e24 | 2020-09-01 21:56:27 +0900 | [diff] [blame] | 242 | 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] | 243 | method public void dispatchVolumeKeyEvent(@NonNull android.view.KeyEvent, int, boolean); |
| Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 244 | method public void dispatchVolumeKeyEventAsSystemService(@NonNull android.view.KeyEvent, int); |
| Jin Seok Park | 5287e24 | 2020-09-01 21:56:27 +0900 | [diff] [blame] | 245 | 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] | 246 | 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] | 247 | method public void registerRemoteSessionCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.session.MediaSessionManager.RemoteSessionCallback); |
| 248 | method public void unregisterRemoteSessionCallback(@NonNull android.media.session.MediaSessionManager.RemoteSessionCallback); |
| Hyundo Moon | f8bedc9 | 2020-09-10 07:44:30 +0900 | [diff] [blame] | 249 | field public static final int RESULT_MEDIA_KEY_HANDLED = 1; // 0x1 |
| 250 | 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] | 251 | } |
| 252 | |
| Jin Seok Park | 2dc180a | 2020-12-15 18:54:30 +0900 | [diff] [blame] | 253 | public static interface MediaSessionManager.RemoteSessionCallback { |
| 254 | method public void onDefaultRemoteSessionChanged(@Nullable android.media.session.MediaSession.Token); |
| Jin Seok Park | 18b8feb | 2020-10-27 16:02:07 +0900 | [diff] [blame] | 255 | method public void onVolumeChanged(@NonNull android.media.session.MediaSession.Token, int); |
| 256 | } |
| 257 | |
| Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 258 | } |
| 259 | |
| paulhu | 81bbd3c1 | 2020-12-08 17:24:21 +0800 | [diff] [blame] | 260 | package android.net { |
| 261 | |
| Lorenzo Colitti | 8093d78 | 2022-01-19 18:08:40 +0900 | [diff] [blame] | 262 | public class LocalSocket implements java.io.Closeable { |
| 263 | ctor public LocalSocket(@NonNull java.io.FileDescriptor); |
| 264 | } |
| 265 | |
| Sudheer Shanka | 98dd271 | 2021-03-02 06:33:46 +0000 | [diff] [blame] | 266 | public class NetworkPolicyManager { |
| Remi NGUYEN VAN | 87eb49b | 2021-03-18 14:23:12 +0900 | [diff] [blame] | 267 | method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public int getMultipathPreference(@NonNull android.net.Network); |
| 268 | method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public int getRestrictBackgroundStatus(int); |
| lifr | c1d2e89 | 2022-01-11 11:17:36 +0800 | [diff] [blame] | 269 | 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] | 270 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidNetworkingBlocked(int, boolean); |
| 271 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidRestrictedOnMeteredNetworks(int); |
| Oliver Scott | b4c3f3e | 2016-02-29 10:02:34 -0800 | [diff] [blame] | 272 | method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public void notifyDenylistChanged(@NonNull int[], @NonNull int[]); |
| Frank | 7c43d8f | 2022-03-04 15:03:36 +0800 | [diff] [blame] | 273 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void notifyStatsProviderLimitReached(); |
| 274 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void notifyStatsProviderWarningReached(); |
| Suprabh Shukla | 368336f | 2024-07-16 02:07:38 +0000 | [diff] [blame] | 275 | method @Deprecated @FlaggedApi("android.net.platform.flags.deprecate_network_policy_callback") @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public void registerNetworkPolicyCallback(@Nullable java.util.concurrent.Executor, @NonNull android.net.NetworkPolicyManager.NetworkPolicyCallback); |
| 276 | method @Deprecated @FlaggedApi("android.net.platform.flags.deprecate_network_policy_callback") @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] | 277 | } |
| 278 | |
| Suprabh Shukla | 368336f | 2024-07-16 02:07:38 +0000 | [diff] [blame] | 279 | @Deprecated @FlaggedApi("android.net.platform.flags.deprecate_network_policy_callback") public static interface NetworkPolicyManager.NetworkPolicyCallback { |
| 280 | method @Deprecated public default void onUidBlockedReasonChanged(int, int); |
| Michael Bestas | 415a5cb | 2024-12-11 03:10:34 +0200 | [diff] [blame] | 281 | method @Deprecated public default void onUidsAllowedTransportsChanged(@NonNull int[], @NonNull long[]); |
| Sudheer Shanka | 98dd271 | 2021-03-02 06:33:46 +0000 | [diff] [blame] | 282 | } |
| 283 | |
| paulhu | 5119787 | 2021-02-19 15:30:02 +0800 | [diff] [blame] | 284 | public class NetworkWatchlistManager { |
| 285 | method @Nullable public byte[] getWatchlistConfigHash(); |
| 286 | } |
| 287 | |
| Aaron Huang | 5d31a15 | 2021-01-18 15:28:01 +0800 | [diff] [blame] | 288 | public class PacProxyManager { |
| 289 | 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); |
| 290 | 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); |
| 291 | 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); |
| 292 | } |
| 293 | |
| 294 | public static interface PacProxyManager.PacProxyInstalledListener { |
| 295 | method public void onPacProxyInstalled(@Nullable android.net.Network, @NonNull android.net.ProxyInfo); |
| 296 | } |
| 297 | |
| Remi NGUYEN VAN | 9200ec1 | 2021-02-22 07:28:12 +0000 | [diff] [blame] | 298 | public final class Proxy { |
| 299 | method public static void setHttpProxyConfiguration(@Nullable android.net.ProxyInfo); |
| 300 | } |
| 301 | |
| lucaslin | 62b2252 | 2021-03-10 16:57:57 +0800 | [diff] [blame] | 302 | public class VpnManager { |
| Lorenzo Colitti | fb7f36b | 2021-04-14 22:43:34 +0900 | [diff] [blame] | 303 | field public static final int TYPE_VPN_LEGACY = 3; // 0x3 |
| lucaslin | 62b2252 | 2021-03-10 16:57:57 +0800 | [diff] [blame] | 304 | field public static final int TYPE_VPN_NONE = -1; // 0xffffffff |
| Lorenzo Colitti | 4763300f | 2021-03-18 12:54:37 +0900 | [diff] [blame] | 305 | field public static final int TYPE_VPN_OEM = 4; // 0x4 |
| lucaslin | 62b2252 | 2021-03-10 16:57:57 +0800 | [diff] [blame] | 306 | field public static final int TYPE_VPN_PLATFORM = 2; // 0x2 |
| 307 | field public static final int TYPE_VPN_SERVICE = 1; // 0x1 |
| 308 | } |
| 309 | |
| paulhu | 81bbd3c1 | 2020-12-08 17:24:21 +0800 | [diff] [blame] | 310 | } |
| 311 | |
| junyulai | 07c4c86 | 2022-01-28 09:53:45 +0800 | [diff] [blame] | 312 | package android.net.netstats { |
| 313 | |
| 314 | public class NetworkStatsDataMigrationUtils { |
| 315 | method @NonNull public static android.net.NetworkStatsCollection readPlatformCollection(@NonNull String, long) throws java.io.IOException; |
| 316 | field public static final String PREFIX_UID = "uid"; |
| 317 | field public static final String PREFIX_UID_TAG = "uid_tag"; |
| 318 | field public static final String PREFIX_XT = "xt"; |
| 319 | } |
| 320 | |
| 321 | } |
| 322 | |
| Gabriel Biren | 34388cf | 2024-05-22 23:49:08 +0000 | [diff] [blame] | 323 | package android.net.wifi { |
| 324 | |
| 325 | public final class WifiMigration { |
| Gabriel Biren | d57a9813 | 2024-09-13 19:11:26 +0000 | [diff] [blame] | 326 | method @FlaggedApi("android.net.wifi.flags.legacy_keystore_to_wifi_blobstore_migration_read_only") public static int migrateLegacyKeystoreToWifiBlobstore(); |
| 327 | field @FlaggedApi("android.net.wifi.flags.legacy_keystore_to_wifi_blobstore_migration_read_only") public static final int KEYSTORE_MIGRATION_FAILURE_ENCOUNTERED_EXCEPTION = 2; // 0x2 |
| 328 | field @FlaggedApi("android.net.wifi.flags.legacy_keystore_to_wifi_blobstore_migration_read_only") public static final int KEYSTORE_MIGRATION_SUCCESS_MIGRATION_COMPLETE = 0; // 0x0 |
| 329 | field @FlaggedApi("android.net.wifi.flags.legacy_keystore_to_wifi_blobstore_migration_read_only") public static final int KEYSTORE_MIGRATION_SUCCESS_MIGRATION_NOT_NEEDED = 1; // 0x1 |
| Gabriel Biren | 34388cf | 2024-05-22 23:49:08 +0000 | [diff] [blame] | 330 | } |
| 331 | |
| 332 | } |
| 333 | |
| Alisher Alikhodjaev | d8c67dd | 2022-12-15 14:30:50 -0800 | [diff] [blame] | 334 | package android.nfc { |
| 335 | |
| Alisher Alikhodjaev | d8c67dd | 2022-12-15 14:30:50 -0800 | [diff] [blame] | 336 | public class NfcServiceManager { |
| 337 | method @NonNull public android.nfc.NfcServiceManager.ServiceRegisterer getNfcManagerServiceRegisterer(); |
| 338 | } |
| 339 | |
| 340 | public static class NfcServiceManager.ServiceNotFoundException extends java.lang.Exception { |
| 341 | ctor public NfcServiceManager.ServiceNotFoundException(@NonNull String); |
| 342 | } |
| 343 | |
| 344 | public static final class NfcServiceManager.ServiceRegisterer { |
| 345 | method @Nullable public android.os.IBinder get(); |
| 346 | method @NonNull public android.os.IBinder getOrThrow() throws android.nfc.NfcServiceManager.ServiceNotFoundException; |
| 347 | method public void register(@NonNull android.os.IBinder); |
| 348 | method @Nullable public android.os.IBinder tryGet(); |
| 349 | } |
| 350 | |
| 351 | } |
| 352 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 353 | package android.os { |
| 354 | |
| Jiakai Zhang | b8ee011 | 2022-11-16 18:32:23 +0000 | [diff] [blame] | 355 | public class ArtModuleServiceManager { |
| Jiakai Zhang | 36b881e | 2023-10-18 17:02:57 +0100 | [diff] [blame] | 356 | method @FlaggedApi("android.content.pm.use_art_service_v2") @NonNull public android.os.ArtModuleServiceManager.ServiceRegisterer getArtdPreRebootServiceRegisterer(); |
| Jiakai Zhang | b8ee011 | 2022-11-16 18:32:23 +0000 | [diff] [blame] | 357 | method @NonNull public android.os.ArtModuleServiceManager.ServiceRegisterer getArtdServiceRegisterer(); |
| Jiakai Zhang | 36b881e | 2023-10-18 17:02:57 +0100 | [diff] [blame] | 358 | method @FlaggedApi("android.content.pm.use_art_service_v2") @NonNull public android.os.ArtModuleServiceManager.ServiceRegisterer getDexoptChrootSetupServiceRegisterer(); |
| Jiakai Zhang | b8ee011 | 2022-11-16 18:32:23 +0000 | [diff] [blame] | 359 | } |
| 360 | |
| 361 | public static final class ArtModuleServiceManager.ServiceRegisterer { |
| 362 | method @Nullable public android.os.IBinder waitForService(); |
| 363 | } |
| 364 | |
| Aaron Huang | 558b317 | 2020-10-26 17:34:50 +0800 | [diff] [blame] | 365 | public final class BatteryStatsManager { |
| 366 | 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; |
| 367 | } |
| 368 | |
| Roopa Sattiraju | a070d18c | 2022-01-19 19:01:36 -0800 | [diff] [blame] | 369 | public class BluetoothServiceManager { |
| 370 | method @NonNull public android.os.BluetoothServiceManager.ServiceRegisterer getBluetoothManagerServiceRegisterer(); |
| 371 | } |
| 372 | |
| 373 | public static class BluetoothServiceManager.ServiceNotFoundException extends java.lang.Exception { |
| 374 | ctor public BluetoothServiceManager.ServiceNotFoundException(@NonNull String); |
| 375 | } |
| 376 | |
| 377 | public static final class BluetoothServiceManager.ServiceRegisterer { |
| 378 | method @Nullable public android.os.IBinder get(); |
| 379 | method @NonNull public android.os.IBinder getOrThrow() throws android.os.BluetoothServiceManager.ServiceNotFoundException; |
| 380 | method public void register(@NonNull android.os.IBinder); |
| 381 | method @Nullable public android.os.IBinder tryGet(); |
| 382 | } |
| 383 | |
| Remi NGUYEN VAN | b5f095e | 2021-04-07 19:40:31 +0900 | [diff] [blame] | 384 | public class Build { |
| 385 | method public static boolean isDebuggable(); |
| 386 | } |
| 387 | |
| paulhu | 69f79b0 | 2021-01-06 12:00:29 +0800 | [diff] [blame] | 388 | public static class Build.VERSION { |
| paulhu | 016950a | 2021-04-09 15:47:36 +0800 | [diff] [blame] | 389 | field public static final int DEVICE_INITIAL_SDK_INT; |
| paulhu | 69f79b0 | 2021-01-06 12:00:29 +0800 | [diff] [blame] | 390 | } |
| 391 | |
| Yan Yan | 533e173 | 2024-09-13 19:01:15 -0700 | [diff] [blame] | 392 | public class Handler { |
| 393 | method @FlaggedApi("android.os.mainline_vcn_platform_api") public final boolean hasMessagesOrCallbacks(); |
| 394 | method @FlaggedApi("android.os.mainline_vcn_platform_api") public final void removeCallbacksAndEqualMessages(@Nullable Object); |
| 395 | method @FlaggedApi("android.os.mainline_vcn_platform_api") public final void removeEqualMessages(int, @Nullable Object); |
| Harshit Mahajan | f613dda | 2024-01-25 23:03:47 +0000 | [diff] [blame] | 396 | } |
| 397 | |
| Lee Shombert | 4f1473c | 2022-03-04 07:37:03 -0800 | [diff] [blame] | 398 | public class IpcDataCache<Query, Result> { |
| 399 | ctor public IpcDataCache(int, @NonNull String, @NonNull String, @NonNull String, @NonNull android.os.IpcDataCache.QueryHandler<Query,Result>); |
| 400 | method public void disableForCurrentProcess(); |
| 401 | method public static void disableForCurrentProcess(@NonNull String); |
| 402 | method public void invalidateCache(); |
| 403 | method public static void invalidateCache(@NonNull String, @NonNull String); |
| 404 | method @Nullable public Result query(@NonNull Query); |
| 405 | field public static final String MODULE_BLUETOOTH = "bluetooth"; |
| 406 | } |
| 407 | |
| 408 | public abstract static class IpcDataCache.QueryHandler<Q, R> { |
| 409 | ctor public IpcDataCache.QueryHandler(); |
| 410 | method @Nullable public abstract R apply(@NonNull Q); |
| 411 | method public boolean shouldBypassCache(@NonNull Q); |
| 412 | } |
| 413 | |
| lucaslin | e4ea3d4 | 2021-03-17 19:04:01 +0800 | [diff] [blame] | 414 | public class Process { |
| Nikita Ioffe | df59713 | 2022-02-21 04:01:38 +0000 | [diff] [blame] | 415 | method public static final int toSdkSandboxUid(int); |
| Etienne Ruffieux | fe195c9 | 2022-01-11 16:17:55 +0000 | [diff] [blame] | 416 | field public static final int NFC_UID = 1027; // 0x403 |
| lucaslin | e4ea3d4 | 2021-03-17 19:04:01 +0800 | [diff] [blame] | 417 | field public static final int VPN_UID = 1016; // 0x3f8 |
| 418 | } |
| 419 | |
| Yisroel Forta | 5a859c7 | 2024-02-06 23:08:27 +0000 | [diff] [blame] | 420 | @FlaggedApi("android.os.telemetry_apis_framework_initialization") public class ProfilingServiceManager { |
| 421 | method @NonNull public android.os.ProfilingServiceManager.ServiceRegisterer getProfilingServiceRegisterer(); |
| 422 | } |
| 423 | |
| 424 | public static class ProfilingServiceManager.ServiceNotFoundException extends java.lang.Exception { |
| 425 | ctor public ProfilingServiceManager.ServiceNotFoundException(@NonNull String); |
| 426 | } |
| 427 | |
| 428 | public static final class ProfilingServiceManager.ServiceRegisterer { |
| 429 | method @Nullable public android.os.IBinder get(); |
| 430 | method @Nullable public android.os.IBinder getOrThrow() throws android.os.ProfilingServiceManager.ServiceNotFoundException; |
| 431 | } |
| 432 | |
| Steven Moreland | ce81994f5 | 2021-07-15 22:26:22 +0000 | [diff] [blame] | 433 | public final class ServiceManager { |
| Vikram Gaur | 81a458a7 | 2022-11-11 20:45:44 +0000 | [diff] [blame] | 434 | method @NonNull public static String[] getDeclaredInstances(@NonNull String); |
| Steven Moreland | ce81994f5 | 2021-07-15 22:26:22 +0000 | [diff] [blame] | 435 | method public static boolean isDeclared(@NonNull String); |
| 436 | method @Nullable public static android.os.IBinder waitForDeclaredService(@NonNull String); |
| 437 | } |
| 438 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 439 | public class StatsServiceManager { |
| 440 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsCompanionServiceRegisterer(); |
| 441 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsManagerServiceRegisterer(); |
| 442 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsdServiceRegisterer(); |
| 443 | } |
| 444 | |
| 445 | public static class StatsServiceManager.ServiceNotFoundException extends java.lang.Exception { |
| 446 | ctor public StatsServiceManager.ServiceNotFoundException(@NonNull String); |
| 447 | } |
| 448 | |
| 449 | public static final class StatsServiceManager.ServiceRegisterer { |
| 450 | method @Nullable public android.os.IBinder get(); |
| 451 | method @Nullable public android.os.IBinder getOrThrow() throws android.os.StatsServiceManager.ServiceNotFoundException; |
| 452 | } |
| 453 | |
| Junyu Lai | 0cf9e87 | 2021-12-28 14:33:57 +0000 | [diff] [blame] | 454 | public final class StrictMode { |
| 455 | method public static void noteUntaggedSocket(); |
| 456 | } |
| 457 | |
| William Escande | a47b950 | 2021-09-30 12:32:26 +0200 | [diff] [blame] | 458 | public class SystemConfigManager { |
| 459 | method @NonNull public java.util.List<android.content.ComponentName> getEnabledComponentOverrides(@NonNull String); |
| Jay Thomas Sullivan | a14c9e5 | 2024-01-25 18:50:58 -0800 | [diff] [blame] | 460 | method @FlaggedApi("android.permission.flags.enhanced_confirmation_mode_apis_enabled") @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_ENHANCED_CONFIRMATION_STATES) public java.util.Set<android.content.pm.SignedPackage> getEnhancedConfirmationTrustedInstallers(); |
| 461 | method @FlaggedApi("android.permission.flags.enhanced_confirmation_mode_apis_enabled") @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_ENHANCED_CONFIRMATION_STATES) public java.util.Set<android.content.pm.SignedPackage> getEnhancedConfirmationTrustedPackages(); |
| William Escande | a47b950 | 2021-09-30 12:32:26 +0200 | [diff] [blame] | 462 | } |
| 463 | |
| Junyu Lai | c048d53 | 2022-01-18 17:47:05 +0000 | [diff] [blame] | 464 | public final class Trace { |
| 465 | method public static void asyncTraceBegin(long, @NonNull String, int); |
| 466 | method public static void asyncTraceEnd(long, @NonNull String, int); |
| 467 | method public static boolean isTagEnabled(long); |
| 468 | method public static void traceBegin(long, @NonNull String); |
| 469 | method public static void traceCounter(long, @NonNull String, int); |
| 470 | method public static void traceEnd(long); |
| 471 | field public static final long TRACE_TAG_NETWORK = 2097152L; // 0x200000L |
| 472 | } |
| 473 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 474 | } |
| 475 | |
| Zim | c534503 | 2021-02-23 16:35:05 +0000 | [diff] [blame] | 476 | package android.os.storage { |
| 477 | |
| 478 | public class StorageManager { |
| Neharika Jali | f0bb51b | 2021-10-20 06:28:44 +0000 | [diff] [blame] | 479 | method public long computeStorageCacheBytes(@NonNull java.io.File); |
| Kweku Adams | fdae3e8 | 2022-02-22 20:08:56 +0000 | [diff] [blame] | 480 | method @Nullable public String getCloudMediaProvider(); |
| Zim | 055878b | 2021-03-03 12:39:55 +0000 | [diff] [blame] | 481 | method public void notifyAppIoBlocked(@NonNull java.util.UUID, int, int, int); |
| 482 | method public void notifyAppIoResumed(@NonNull java.util.UUID, int, int, int); |
| Kweku Adams | 63e9963 | 2022-02-07 21:30:15 +0000 | [diff] [blame] | 483 | method public void setCloudMediaProvider(@Nullable String); |
| Zim | 308a048 | 2021-03-25 16:15:36 +0000 | [diff] [blame] | 484 | field public static final int APP_IO_BLOCKED_REASON_TRANSCODING = 1; // 0x1 |
| 485 | field public static final int APP_IO_BLOCKED_REASON_UNKNOWN = 0; // 0x0 |
| Zim | c534503 | 2021-02-23 16:35:05 +0000 | [diff] [blame] | 486 | } |
| 487 | |
| 488 | } |
| 489 | |
| Kweku Adams | 1e55861 | 2020-08-24 10:13:15 -0700 | [diff] [blame] | 490 | package android.provider { |
| 491 | |
| William Escande | e44b464 | 2021-10-07 17:47:49 +0200 | [diff] [blame] | 492 | 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] | 493 | 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] | 494 | } |
| 495 | |
| Pedro Loureiro | c980022 | 2023-01-13 18:16:16 +0000 | [diff] [blame] | 496 | public class DeviceConfigInitializer { |
| 497 | method @Nullable public static android.provider.DeviceConfigServiceManager getDeviceConfigServiceManager(); |
| 498 | method public static void setDeviceConfigServiceManager(@NonNull android.provider.DeviceConfigServiceManager); |
| 499 | } |
| 500 | |
| 501 | public class DeviceConfigServiceManager { |
| 502 | method @NonNull public android.provider.DeviceConfigServiceManager.ServiceRegisterer getDeviceConfigUpdatableServiceRegisterer(); |
| 503 | } |
| 504 | |
| 505 | public static class DeviceConfigServiceManager.ServiceNotFoundException extends java.lang.Exception { |
| 506 | } |
| 507 | |
| 508 | public static final class DeviceConfigServiceManager.ServiceRegisterer { |
| 509 | method @Nullable public android.os.IBinder get(); |
| 510 | method @NonNull public android.os.IBinder getOrThrow() throws android.provider.DeviceConfigServiceManager.ServiceNotFoundException; |
| 511 | method public void register(@NonNull android.os.IBinder); |
| 512 | method @Nullable public android.os.IBinder tryGet(); |
| 513 | } |
| 514 | |
| Hassan Ali | 1d9b83e | 2022-11-10 13:54:26 +0000 | [diff] [blame] | 515 | public final class Settings { |
| 516 | field public static final int RESET_MODE_PACKAGE_DEFAULTS = 1; // 0x1 |
| 517 | field public static final int RESET_MODE_TRUSTED_DEFAULTS = 4; // 0x4 |
| 518 | field public static final int RESET_MODE_UNTRUSTED_CHANGES = 3; // 0x3 |
| 519 | field public static final int RESET_MODE_UNTRUSTED_DEFAULTS = 2; // 0x2 |
| 520 | } |
| 521 | |
| 522 | public static final class Settings.Config extends android.provider.Settings.NameValueTable { |
| Hassan Ali | af9b4e4 | 2022-12-19 22:22:33 +0000 | [diff] [blame] | 523 | method @RequiresPermission(android.Manifest.permission.MONITOR_DEVICE_CONFIG_ACCESS) public static void clearMonitorCallback(@NonNull android.content.ContentResolver); |
| Hassan Ali | 1d9b83e | 2022-11-10 13:54:26 +0000 | [diff] [blame] | 524 | method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static boolean deleteString(@NonNull String, @NonNull String); |
| Ted Bauer | 861d42c | 2023-08-17 14:36:24 -0400 | [diff] [blame] | 525 | method @NonNull public static java.util.Map<java.lang.String,java.lang.String> getAllStrings(); |
| Hassan Ali | 1d9b83e | 2022-11-10 13:54:26 +0000 | [diff] [blame] | 526 | method @Nullable @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static String getString(@NonNull String); |
| 527 | method @NonNull @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static java.util.Map<java.lang.String,java.lang.String> getStrings(@NonNull String, @NonNull java.util.List<java.lang.String>); |
| 528 | method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static int getSyncDisabledMode(); |
| 529 | method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static boolean putString(@NonNull String, @NonNull String, @Nullable String, boolean); |
| 530 | method public static void registerContentObserver(@Nullable String, boolean, @NonNull android.database.ContentObserver); |
| 531 | method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static void resetToDefaults(int, @Nullable String); |
| Hassan Ali | af9b4e4 | 2022-12-19 22:22:33 +0000 | [diff] [blame] | 532 | method @RequiresPermission(android.Manifest.permission.MONITOR_DEVICE_CONFIG_ACCESS) public static void setMonitorCallback(@NonNull android.content.ContentResolver, @NonNull java.util.concurrent.Executor, @NonNull android.provider.DeviceConfig.MonitorCallback); |
| Hassan Ali | 1d9b83e | 2022-11-10 13:54:26 +0000 | [diff] [blame] | 533 | method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static boolean setStrings(@NonNull String, @NonNull java.util.Map<java.lang.String,java.lang.String>) throws android.provider.DeviceConfig.BadConfigException; |
| 534 | method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static void setSyncDisabledMode(int); |
| 535 | method public static void unregisterContentObserver(@NonNull android.database.ContentObserver); |
| 536 | } |
| 537 | |
| William Escande | 60c210d | 2022-01-26 14:47:37 +0100 | [diff] [blame] | 538 | public static final class Settings.Global extends android.provider.Settings.NameValueTable { |
| 539 | field public static final String BLE_SCAN_ALWAYS_AVAILABLE = "ble_scan_always_enabled"; |
| 540 | field public static final String BLE_SCAN_BACKGROUND_MODE = "ble_scan_background_mode"; |
| 541 | field public static final String BLE_SCAN_BALANCED_INTERVAL_MS = "ble_scan_balanced_interval_ms"; |
| 542 | field public static final String BLE_SCAN_BALANCED_WINDOW_MS = "ble_scan_balanced_window_ms"; |
| 543 | field public static final String BLE_SCAN_LOW_LATENCY_INTERVAL_MS = "ble_scan_low_latency_interval_ms"; |
| 544 | field public static final String BLE_SCAN_LOW_LATENCY_WINDOW_MS = "ble_scan_low_latency_window_ms"; |
| 545 | field public static final String BLE_SCAN_LOW_POWER_INTERVAL_MS = "ble_scan_low_power_interval_ms"; |
| 546 | field public static final String BLE_SCAN_LOW_POWER_WINDOW_MS = "ble_scan_low_power_window_ms"; |
| 547 | field public static final String BLUETOOTH_BTSNOOP_DEFAULT_MODE = "bluetooth_btsnoop_default_mode"; |
| 548 | field public static final String BLUETOOTH_CLASS_OF_DEVICE = "bluetooth_class_of_device"; |
| 549 | field public static final String BLUETOOTH_DISABLED_PROFILES = "bluetooth_disabled_profiles"; |
| 550 | } |
| 551 | |
| 552 | public static final class Settings.Secure extends android.provider.Settings.NameValueTable { |
| 553 | field public static final String BLUETOOTH_ADDRESS = "bluetooth_address"; |
| 554 | field public static final String BLUETOOTH_ADDR_VALID = "bluetooth_addr_valid"; |
| 555 | field public static final String BLUETOOTH_NAME = "bluetooth_name"; |
| 556 | } |
| 557 | |
| Kweku Adams | 1e55861 | 2020-08-24 10:13:15 -0700 | [diff] [blame] | 558 | } |
| 559 | |
| Roshan Pius | d7a56a0 | 2023-03-10 13:31:55 -0800 | [diff] [blame] | 560 | package android.se.omapi { |
| 561 | |
| Mårten Kongstad | 162ae2a | 2023-09-25 14:09:11 +0200 | [diff] [blame] | 562 | @FlaggedApi("android.nfc.enable_nfc_mainline") public class SeFrameworkInitializer { |
| 563 | method @FlaggedApi("android.nfc.enable_nfc_mainline") @Nullable public static android.se.omapi.SeServiceManager getSeServiceManager(); |
| 564 | method @FlaggedApi("android.nfc.enable_nfc_mainline") public static void setSeServiceManager(@NonNull android.se.omapi.SeServiceManager); |
| Roshan Pius | d7a56a0 | 2023-03-10 13:31:55 -0800 | [diff] [blame] | 565 | } |
| 566 | |
| Mårten Kongstad | 162ae2a | 2023-09-25 14:09:11 +0200 | [diff] [blame] | 567 | @FlaggedApi("android.nfc.enable_nfc_mainline") public class SeServiceManager { |
| 568 | method @FlaggedApi("android.nfc.enable_nfc_mainline") @NonNull public android.se.omapi.SeServiceManager.ServiceRegisterer getSeManagerServiceRegisterer(); |
| Roshan Pius | d7a56a0 | 2023-03-10 13:31:55 -0800 | [diff] [blame] | 569 | } |
| 570 | |
| Mårten Kongstad | 162ae2a | 2023-09-25 14:09:11 +0200 | [diff] [blame] | 571 | @FlaggedApi("android.nfc.enable_nfc_mainline") public static class SeServiceManager.ServiceNotFoundException extends java.lang.Exception { |
| 572 | ctor @FlaggedApi("android.nfc.enable_nfc_mainline") public SeServiceManager.ServiceNotFoundException(@NonNull String); |
| Roshan Pius | d7a56a0 | 2023-03-10 13:31:55 -0800 | [diff] [blame] | 573 | } |
| 574 | |
| Mårten Kongstad | 162ae2a | 2023-09-25 14:09:11 +0200 | [diff] [blame] | 575 | @FlaggedApi("android.nfc.enable_nfc_mainline") public static final class SeServiceManager.ServiceRegisterer { |
| 576 | method @FlaggedApi("android.nfc.enable_nfc_mainline") @Nullable public android.os.IBinder get(); |
| 577 | method @FlaggedApi("android.nfc.enable_nfc_mainline") @NonNull public android.os.IBinder getOrThrow() throws android.se.omapi.SeServiceManager.ServiceNotFoundException; |
| 578 | method @FlaggedApi("android.nfc.enable_nfc_mainline") public void register(@NonNull android.os.IBinder); |
| 579 | method @FlaggedApi("android.nfc.enable_nfc_mainline") @Nullable public android.os.IBinder tryGet(); |
| Roshan Pius | d7a56a0 | 2023-03-10 13:31:55 -0800 | [diff] [blame] | 580 | } |
| 581 | |
| 582 | } |
| 583 | |
| Etienne Ruffieux | b99333d | 2022-02-25 16:11:01 +0000 | [diff] [blame] | 584 | package android.telecom { |
| 585 | |
| 586 | public abstract class ConnectionService extends android.app.Service { |
| 587 | method @Nullable @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public android.telecom.Connection onCreateUnknownConnection(@NonNull android.telecom.PhoneAccountHandle, @NonNull android.telecom.ConnectionRequest); |
| 588 | } |
| 589 | |
| 590 | } |
| 591 | |
| Hall Liu | 57d7090 | 2020-10-13 19:19:12 -0700 | [diff] [blame] | 592 | package android.telephony { |
| 593 | |
| chiachangwang | 5e72532 | 2022-12-16 02:46:09 +0000 | [diff] [blame] | 594 | public class CarrierConfigManager { |
| 595 | field public static final String KEY_MIN_UDP_PORT_4500_NAT_TIMEOUT_SEC_INT = "min_udp_port_4500_nat_timeout_sec_int"; |
| 596 | } |
| 597 | |
| Hall Liu | 57d7090 | 2020-10-13 19:19:12 -0700 | [diff] [blame] | 598 | public abstract class CellSignalStrength { |
| 599 | method public static int getNumSignalStrengthLevels(); |
| 600 | } |
| 601 | |
| Etienne Ruffieux | 6a646db | 2021-07-27 10:06:27 +0000 | [diff] [blame] | 602 | public class SubscriptionManager { |
| 603 | method public void addSubscriptionInfoRecord(@NonNull String, @Nullable String, int, int); |
| 604 | method public void removeSubscriptionInfoRecord(@NonNull String, int); |
| 605 | } |
| 606 | |
| Hall Liu | 57d7090 | 2020-10-13 19:19:12 -0700 | [diff] [blame] | 607 | public class TelephonyManager { |
| 608 | method @NonNull public static int[] getAllNetworkTypes(); |
| 609 | } |
| 610 | |
| 611 | } |
| 612 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 613 | package android.util { |
| 614 | |
| 615 | public class AtomicFile { |
| 616 | ctor public AtomicFile(@NonNull java.io.File, @Nullable android.util.SystemConfigFileCommitEventLogger); |
| 617 | } |
| 618 | |
| 619 | public final class Log { |
| 620 | method public static int logToRadioBuffer(int, @Nullable String, @Nullable String); |
| 621 | } |
| 622 | |
| Nikita Ioffe | 130228b | 2022-02-10 02:01:01 +0000 | [diff] [blame] | 623 | public final class Slog { |
| 624 | method public static int d(@Nullable String, @NonNull String); |
| 625 | method public static int d(@Nullable String, @NonNull String, @Nullable Throwable); |
| 626 | method public static int e(@Nullable String, @NonNull String); |
| 627 | method public static int e(@Nullable String, @NonNull String, @Nullable Throwable); |
| 628 | method public static int i(@Nullable String, @NonNull String); |
| 629 | method public static int i(@Nullable String, @NonNull String, @Nullable Throwable); |
| 630 | method public static int v(@Nullable String, @NonNull String); |
| 631 | method public static int v(@Nullable String, @NonNull String, @Nullable Throwable); |
| 632 | method public static int w(@Nullable String, @NonNull String); |
| 633 | method public static int w(@Nullable String, @NonNull String, @Nullable Throwable); |
| 634 | method public static int w(@Nullable String, @Nullable Throwable); |
| 635 | method public static int wtf(@Nullable String, @NonNull String); |
| 636 | method public static int wtf(@Nullable String, @Nullable Throwable); |
| 637 | method public static int wtf(@Nullable String, @NonNull String, @Nullable Throwable); |
| 638 | method public static void wtfQuiet(@Nullable String, @NonNull String); |
| 639 | method public static int wtfStack(@Nullable String, @NonNull String); |
| 640 | } |
| 641 | |
| Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 642 | public class SystemConfigFileCommitEventLogger { |
| 643 | ctor public SystemConfigFileCommitEventLogger(@NonNull String); |
| 644 | method public void setStartTime(long); |
| 645 | } |
| 646 | |
| 647 | } |
| 648 | |
| Angela Wang | 49bba83 | 2023-11-07 07:54:11 +0000 | [diff] [blame] | 649 | package android.view.accessibility { |
| 650 | |
| 651 | public final class AccessibilityManager { |
| 652 | method @FlaggedApi("android.view.accessibility.flash_notification_system_api") public boolean startFlashNotificationSequence(@NonNull android.content.Context, int); |
| 653 | method @FlaggedApi("android.view.accessibility.flash_notification_system_api") public boolean stopFlashNotificationSequence(@NonNull android.content.Context); |
| 654 | } |
| 655 | |
| 656 | } |
| 657 | |
| Torne (Richard Coles) | 87c4adf | 2024-01-19 16:04:18 -0500 | [diff] [blame] | 658 | package android.webkit { |
| 659 | |
| 660 | @FlaggedApi("android.webkit.update_service_ipc_wrapper") public class WebViewBootstrapFrameworkInitializer { |
| 661 | method public static void registerServiceWrappers(); |
| 662 | } |
| 663 | |
| 664 | @FlaggedApi("android.webkit.update_service_ipc_wrapper") public final class WebViewProviderResponse implements android.os.Parcelable { |
| 665 | ctor public WebViewProviderResponse(@Nullable android.content.pm.PackageInfo, int); |
| 666 | method public int describeContents(); |
| 667 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 668 | field @NonNull public static final android.os.Parcelable.Creator<android.webkit.WebViewProviderResponse> CREATOR; |
| 669 | field public static final int STATUS_FAILED_LISTING_WEBVIEW_PACKAGES = 4; // 0x4 |
| Richard Coles | b8ca68c | 2024-02-29 16:14:13 -0500 | [diff] [blame] | 670 | field public static final int STATUS_FAILED_OTHER = 11; // 0xb |
| Torne (Richard Coles) | 87c4adf | 2024-01-19 16:04:18 -0500 | [diff] [blame] | 671 | field public static final int STATUS_FAILED_WAITING_FOR_RELRO = 3; // 0x3 |
| 672 | field public static final int STATUS_SUCCESS = 0; // 0x0 |
| 673 | field @Nullable public final android.content.pm.PackageInfo packageInfo; |
| 674 | field public final int status; |
| 675 | } |
| 676 | |
| 677 | @FlaggedApi("android.webkit.update_service_ipc_wrapper") public final class WebViewUpdateManager { |
| 678 | method @Nullable @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public String changeProviderAndSetting(@NonNull String); |
| 679 | method @NonNull public android.webkit.WebViewProviderInfo[] getAllWebViewPackages(); |
| 680 | method @Nullable public android.content.pm.PackageInfo getCurrentWebViewPackage(); |
| 681 | method @Nullable public String getCurrentWebViewPackageName(); |
| 682 | method @FlaggedApi("android.webkit.update_service_v2") @NonNull public android.webkit.WebViewProviderInfo getDefaultWebViewPackage(); |
| Torne (Richard Coles) | a113ac8 | 2024-09-03 15:48:13 -0400 | [diff] [blame] | 683 | method @NonNull public static android.webkit.WebViewUpdateManager getInstance(); |
| 684 | method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public android.webkit.WebViewProviderInfo[] getValidWebViewPackages(); |
| Torne (Richard Coles) | 87c4adf | 2024-01-19 16:04:18 -0500 | [diff] [blame] | 685 | method @NonNull public android.webkit.WebViewProviderResponse waitForAndGetProvider(); |
| 686 | } |
| 687 | |
| 688 | } |
| 689 | |