1// Signature format: 2.0 2package android { 3 4 public static final class Manifest.permission { 5 field public static final String BLUETOOTH_STACK = "android.permission.BLUETOOTH_STACK"; 6 field public static final String CONTROL_AUTOMOTIVE_GNSS = "android.permission.CONTROL_AUTOMOTIVE_GNSS"; 7 field public static final String GET_INTENT_SENDER_INTENT = "android.permission.GET_INTENT_SENDER_INTENT"; 8 field public static final String MAKE_UID_VISIBLE = "android.permission.MAKE_UID_VISIBLE"; 9 } 10 11} 12 13package android.app { 14 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 { 16 method public final boolean addDumpable(@NonNull android.util.Dumpable); 17 method @FlaggedApi("android.nfc.enable_nfc_mainline") public final boolean isResumed(); 18 } 19 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); 22 method @NonNull @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int[] getUidFrozenState(@NonNull int[]); 23 method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public void registerUidFrozenStateChangedCallback(@NonNull java.util.concurrent.Executor, @NonNull android.app.ActivityManager.UidFrozenStateChangedCallback); 24 method @RequiresPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER) public void removeHomeVisibilityListener(@NonNull android.app.HomeVisibilityListener); 25 method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public void unregisterUidFrozenStateChangedCallback(@NonNull android.app.ActivityManager.UidFrozenStateChangedCallback); 26 method @RequiresPermission(android.Manifest.permission.CHANGE_CONFIGURATION) public boolean updateMccMncConfiguration(@NonNull String, @NonNull String); 27 } 28 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 35 public class AppOpsManager { 36 field public static final String OPSTR_NO_ISOLATED_STORAGE = "android:no_isolated_storage"; 37 } 38 39 public class BroadcastOptions { 40 method @Deprecated public int getMaxManifestReceiverApiLevel(); 41 method @Deprecated public void setMaxManifestReceiverApiLevel(int); 42 } 43 44 public abstract class HomeVisibilityListener { 45 ctor public HomeVisibilityListener(); 46 method public abstract void onHomeVisibilityChanged(boolean); 47 } 48 49 public class NotificationManager { 50 method public boolean hasEnabledNotificationListener(@NonNull String, @NonNull android.os.UserHandle); 51 field public static final String ACTION_NOTIFICATION_LISTENER_ENABLED_CHANGED = "android.app.action.NOTIFICATION_LISTENER_ENABLED_CHANGED"; 52 } 53 54 public final class PendingIntent implements android.os.Parcelable { 55 method public boolean addCancelListener(@NonNull java.util.concurrent.Executor, @NonNull android.app.PendingIntent.CancelListener); 56 method @RequiresPermission(android.Manifest.permission.GET_INTENT_SENDER_INTENT) public boolean intentFilterEquals(@Nullable android.app.PendingIntent); 57 method @NonNull @RequiresPermission(android.Manifest.permission.GET_INTENT_SENDER_INTENT) public java.util.List<android.content.pm.ResolveInfo> queryIntentComponents(int); 58 method public void removeCancelListener(@NonNull android.app.PendingIntent.CancelListener); 59 } 60 61 public static interface PendingIntent.CancelListener { 62 method public void onCanceled(@NonNull android.app.PendingIntent); 63 } 64 65 public class StatusBarManager { 66 method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void setExpansionDisabledForSimNetworkLock(boolean); 67 } 68 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 74} 75 76package android.app.admin { 77 78 public class DevicePolicyManager { 79 method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public void acknowledgeNewUserDisclaimer(); 80 method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public android.os.UserHandle getLogoutUser(); 81 method public boolean hasManagedProfileCallerIdAccess(@NonNull android.os.UserHandle, @NonNull String); 82 method public boolean hasManagedProfileContactsAccess(@NonNull android.os.UserHandle, @NonNull String); 83 method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS}) public int logoutUser(); 84 field public static final String ACTION_SHOW_NEW_USER_DISCLAIMER = "android.app.action.SHOW_NEW_USER_DISCLAIMER"; 85 } 86 87} 88 89package android.content { 90 91 public abstract class ContentProvider implements android.content.ComponentCallbacks2 { 92 method @NonNull public static android.net.Uri createContentUriForUser(@NonNull android.net.Uri, @NonNull android.os.UserHandle); 93 } 94 95 public abstract class ContentResolver { 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); 97 } 98 99 public abstract class Context { 100 method @NonNull public android.content.Context createContextForSdkInSandbox(@NonNull android.content.pm.ApplicationInfo, int) throws android.content.pm.PackageManager.NameNotFoundException; 101 method @NonNull public android.os.IBinder getProcessToken(); 102 method @NonNull public android.os.UserHandle getUser(); 103 field public static final String PAC_PROXY_SERVICE = "pac_proxy"; 104 field public static final String TEST_NETWORK_SERVICE = "test_network"; 105 field @FlaggedApi("android.webkit.update_service_ipc_wrapper") public static final String WEBVIEW_UPDATE_SERVICE = "webviewupdate"; 106 } 107 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 116} 117 118package android.content.pm { 119 120 public class ApplicationInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable { 121 method @FlaggedApi("android.content.pm.sdk_lib_independence") @NonNull public java.util.List<android.content.pm.SharedLibraryInfo> getOptionalSharedLibraryInfos(); 122 method @NonNull public java.util.List<android.content.pm.SharedLibraryInfo> getSharedLibraryInfos(); 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 127 } 128 129 public abstract class PackageManager { 130 method @NonNull public String getSdkSandboxPackageName(); 131 method @RequiresPermission(android.Manifest.permission.MAKE_UID_VISIBLE) public void makeUidVisible(int, int); 132 field public static final String EXTRA_VERIFICATION_ROOT_HASH = "android.content.pm.extra.VERIFICATION_ROOT_HASH"; 133 field public static final int MATCH_STATIC_SHARED_AND_SDK_LIBRARIES = 67108864; // 0x4000000 134 } 135 136 @FlaggedApi("android.permission.flags.enhanced_confirmation_mode_apis_enabled") public class SignedPackage { 137 method @NonNull public byte[] getCertificateDigest(); 138 method @NonNull public String getPackageName(); 139 } 140 141} 142 143package android.hardware.usb { 144 145 public class UsbManager { 146 method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getGadgetHalVersion(); 147 method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getUsbBandwidthMbps(); 148 method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getUsbHalVersion(); 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 153 field public static final int GADGET_HAL_V2_0 = 20; // 0x14 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 162 field public static final int USB_HAL_NOT_SUPPORTED = -1; // 0xffffffff 163 field public static final int USB_HAL_RETRY = -2; // 0xfffffffe 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 168 field public static final int USB_HAL_V2_0 = 20; // 0x14 169 } 170 171} 172 173package android.media { 174 175 public class AudioManager { 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); 178 method @NonNull public java.util.List<android.bluetooth.BluetoothCodecConfig> getHwOffloadFormatsSupportedForA2dp(); 179 method @NonNull public java.util.List<android.bluetooth.BluetoothLeAudioCodecConfig> getHwOffloadFormatsSupportedForLeAudio(); 180 method @NonNull public java.util.List<android.bluetooth.BluetoothLeAudioCodecConfig> getHwOffloadFormatsSupportedForLeBroadcast(); 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); 187 method @RequiresPermission(android.Manifest.permission.BLUETOOTH_STACK) public void setLeAudioSuspended(boolean); 188 method public void setStreamVolumeForUid(int, int, int, @NonNull String, int, int, int); 189 field public static final int FLAG_FROM_KEY = 4096; // 0x1000 190 } 191 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); 196 method @FlaggedApi("android.media.audio.sco_managed_by_audio") @NonNull public static android.media.BluetoothProfileConnectionInfo createHfpInfo(); 197 method @NonNull public static android.media.BluetoothProfileConnectionInfo createLeAudioInfo(boolean, boolean); 198 method @NonNull public static android.media.BluetoothProfileConnectionInfo createLeAudioOutputInfo(boolean, int); 199 method public int describeContents(); 200 method public int getProfile(); 201 method public int getVolume(); 202 method public boolean isLeOutput(); 203 method public boolean isSuppressNoisyIntent(); 204 method public void writeToParcel(@NonNull android.os.Parcel, int); 205 field @NonNull public static final android.os.Parcelable.Creator<android.media.BluetoothProfileConnectionInfo> CREATOR; 206 } 207 208 public class MediaMetadataRetriever implements java.lang.AutoCloseable { 209 field public static final int METADATA_KEY_VIDEO_CODEC_MIME_TYPE = 40; // 0x28 210 } 211 212 public class MediaServiceManager { 213 method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaCommunicationServiceRegisterer(); 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 222} 223 224package android.media.session { 225 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 230 public final class MediaSession { 231 field public static final int FLAG_EXCLUSIVE_GLOBAL_PRIORITY = 65536; // 0x10000 232 } 233 234 public static final class MediaSession.Token implements android.os.Parcelable { 235 method public int getUid(); 236 } 237 238 public final class MediaSessionManager { 239 method public void addOnActiveSessionsChangedListener(@Nullable android.content.ComponentName, @NonNull android.os.UserHandle, @NonNull java.util.concurrent.Executor, @NonNull android.media.session.MediaSessionManager.OnActiveSessionsChangedListener); 240 method public void dispatchMediaKeyEvent(@NonNull android.view.KeyEvent, boolean); 241 method public void dispatchMediaKeyEventAsSystemService(@NonNull android.view.KeyEvent); 242 method public boolean dispatchMediaKeyEventToSessionAsSystemService(@NonNull android.view.KeyEvent, @NonNull android.media.session.MediaSession.Token); 243 method public void dispatchVolumeKeyEvent(@NonNull android.view.KeyEvent, int, boolean); 244 method public void dispatchVolumeKeyEventAsSystemService(@NonNull android.view.KeyEvent, int); 245 method public void dispatchVolumeKeyEventToSessionAsSystemService(@NonNull android.view.KeyEvent, @NonNull android.media.session.MediaSession.Token); 246 method @NonNull public java.util.List<android.media.session.MediaController> getActiveSessionsForUser(@Nullable android.content.ComponentName, @NonNull android.os.UserHandle); 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); 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 251 } 252 253 public static interface MediaSessionManager.RemoteSessionCallback { 254 method public void onDefaultRemoteSessionChanged(@Nullable android.media.session.MediaSession.Token); 255 method public void onVolumeChanged(@NonNull android.media.session.MediaSession.Token, int); 256 } 257 258} 259 260package android.net { 261 262 public class LocalSocket implements java.io.Closeable { 263 ctor public LocalSocket(@NonNull java.io.FileDescriptor); 264 } 265 266 public class NetworkPolicyManager { 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); 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); 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); 272 method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void notifyStatsProviderLimitReached(); 273 method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void notifyStatsProviderWarningReached(); 274 method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public void registerNetworkPolicyCallback(@Nullable java.util.concurrent.Executor, @NonNull android.net.NetworkPolicyManager.NetworkPolicyCallback); 275 method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public void unregisterNetworkPolicyCallback(@NonNull android.net.NetworkPolicyManager.NetworkPolicyCallback); 276 } 277 278 public static interface NetworkPolicyManager.NetworkPolicyCallback { 279 method public default void onUidBlockedReasonChanged(int, int); 280 } 281 282 public class NetworkWatchlistManager { 283 method @Nullable public byte[] getWatchlistConfigHash(); 284 } 285 286 public class PacProxyManager { 287 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); 288 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); 289 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); 290 } 291 292 public static interface PacProxyManager.PacProxyInstalledListener { 293 method public void onPacProxyInstalled(@Nullable android.net.Network, @NonNull android.net.ProxyInfo); 294 } 295 296 public final class Proxy { 297 method public static void setHttpProxyConfiguration(@Nullable android.net.ProxyInfo); 298 } 299 300 public class VpnManager { 301 field public static final int TYPE_VPN_LEGACY = 3; // 0x3 302 field public static final int TYPE_VPN_NONE = -1; // 0xffffffff 303 field public static final int TYPE_VPN_OEM = 4; // 0x4 304 field public static final int TYPE_VPN_PLATFORM = 2; // 0x2 305 field public static final int TYPE_VPN_SERVICE = 1; // 0x1 306 } 307 308} 309 310package android.net.netstats { 311 312 public class NetworkStatsDataMigrationUtils { 313 method @NonNull public static android.net.NetworkStatsCollection readPlatformCollection(@NonNull String, long) throws java.io.IOException; 314 field public static final String PREFIX_UID = "uid"; 315 field public static final String PREFIX_UID_TAG = "uid_tag"; 316 field public static final String PREFIX_XT = "xt"; 317 } 318 319} 320 321package android.nfc { 322 323 public class NfcServiceManager { 324 method @NonNull public android.nfc.NfcServiceManager.ServiceRegisterer getNfcManagerServiceRegisterer(); 325 } 326 327 public static class NfcServiceManager.ServiceNotFoundException extends java.lang.Exception { 328 ctor public NfcServiceManager.ServiceNotFoundException(@NonNull String); 329 } 330 331 public static final class NfcServiceManager.ServiceRegisterer { 332 method @Nullable public android.os.IBinder get(); 333 method @NonNull public android.os.IBinder getOrThrow() throws android.nfc.NfcServiceManager.ServiceNotFoundException; 334 method public void register(@NonNull android.os.IBinder); 335 method @Nullable public android.os.IBinder tryGet(); 336 } 337 338} 339 340package android.os { 341 342 public class ArtModuleServiceManager { 343 method @FlaggedApi("android.content.pm.use_art_service_v2") @NonNull public android.os.ArtModuleServiceManager.ServiceRegisterer getArtdPreRebootServiceRegisterer(); 344 method @NonNull public android.os.ArtModuleServiceManager.ServiceRegisterer getArtdServiceRegisterer(); 345 method @FlaggedApi("android.content.pm.use_art_service_v2") @NonNull public android.os.ArtModuleServiceManager.ServiceRegisterer getDexoptChrootSetupServiceRegisterer(); 346 } 347 348 public static final class ArtModuleServiceManager.ServiceRegisterer { 349 method @Nullable public android.os.IBinder waitForService(); 350 } 351 352 public final class BatteryStatsManager { 353 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; 354 } 355 356 public class BluetoothServiceManager { 357 method @NonNull public android.os.BluetoothServiceManager.ServiceRegisterer getBluetoothManagerServiceRegisterer(); 358 } 359 360 public static class BluetoothServiceManager.ServiceNotFoundException extends java.lang.Exception { 361 ctor public BluetoothServiceManager.ServiceNotFoundException(@NonNull String); 362 } 363 364 public static final class BluetoothServiceManager.ServiceRegisterer { 365 method @Nullable public android.os.IBinder get(); 366 method @NonNull public android.os.IBinder getOrThrow() throws android.os.BluetoothServiceManager.ServiceNotFoundException; 367 method public void register(@NonNull android.os.IBinder); 368 method @Nullable public android.os.IBinder tryGet(); 369 } 370 371 public class Build { 372 method public static boolean isDebuggable(); 373 } 374 375 public static class Build.VERSION { 376 field public static final int DEVICE_INITIAL_SDK_INT; 377 } 378 379 public class Environment { 380 method @FlaggedApi("android.crashrecovery.flags.enable_crashrecovery") @NonNull public static java.io.File getDataSystemDeDirectory(); 381 } 382 383 public class IpcDataCache<Query, Result> { 384 ctor public IpcDataCache(int, @NonNull String, @NonNull String, @NonNull String, @NonNull android.os.IpcDataCache.QueryHandler<Query,Result>); 385 method public void disableForCurrentProcess(); 386 method public static void disableForCurrentProcess(@NonNull String); 387 method public void invalidateCache(); 388 method public static void invalidateCache(@NonNull String, @NonNull String); 389 method @Nullable public Result query(@NonNull Query); 390 field public static final String MODULE_BLUETOOTH = "bluetooth"; 391 } 392 393 public abstract static class IpcDataCache.QueryHandler<Q, R> { 394 ctor public IpcDataCache.QueryHandler(); 395 method @Nullable public abstract R apply(@NonNull Q); 396 method public boolean shouldBypassCache(@NonNull Q); 397 } 398 399 public class Process { 400 method public static final int toSdkSandboxUid(int); 401 field public static final int NFC_UID = 1027; // 0x403 402 field public static final int VPN_UID = 1016; // 0x3f8 403 } 404 405 @FlaggedApi("android.os.telemetry_apis_framework_initialization") public class ProfilingServiceManager { 406 method @NonNull public android.os.ProfilingServiceManager.ServiceRegisterer getProfilingServiceRegisterer(); 407 } 408 409 public static class ProfilingServiceManager.ServiceNotFoundException extends java.lang.Exception { 410 ctor public ProfilingServiceManager.ServiceNotFoundException(@NonNull String); 411 } 412 413 public static final class ProfilingServiceManager.ServiceRegisterer { 414 method @Nullable public android.os.IBinder get(); 415 method @Nullable public android.os.IBinder getOrThrow() throws android.os.ProfilingServiceManager.ServiceNotFoundException; 416 } 417 418 public final class ServiceManager { 419 method @NonNull public static String[] getDeclaredInstances(@NonNull String); 420 method public static boolean isDeclared(@NonNull String); 421 method @Nullable public static android.os.IBinder waitForDeclaredService(@NonNull String); 422 } 423 424 public class StatsServiceManager { 425 method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsCompanionServiceRegisterer(); 426 method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsManagerServiceRegisterer(); 427 method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsdServiceRegisterer(); 428 } 429 430 public static class StatsServiceManager.ServiceNotFoundException extends java.lang.Exception { 431 ctor public StatsServiceManager.ServiceNotFoundException(@NonNull String); 432 } 433 434 public static final class StatsServiceManager.ServiceRegisterer { 435 method @Nullable public android.os.IBinder get(); 436 method @Nullable public android.os.IBinder getOrThrow() throws android.os.StatsServiceManager.ServiceNotFoundException; 437 } 438 439 public final class StrictMode { 440 method public static void noteUntaggedSocket(); 441 } 442 443 public class SystemConfigManager { 444 method @NonNull public java.util.List<android.content.ComponentName> getEnabledComponentOverrides(@NonNull String); 445 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(); 446 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(); 447 } 448 449 public final class Trace { 450 method public static void asyncTraceBegin(long, @NonNull String, int); 451 method public static void asyncTraceEnd(long, @NonNull String, int); 452 method public static boolean isTagEnabled(long); 453 method public static void traceBegin(long, @NonNull String); 454 method public static void traceCounter(long, @NonNull String, int); 455 method public static void traceEnd(long); 456 field public static final long TRACE_TAG_NETWORK = 2097152L; // 0x200000L 457 } 458 459} 460 461package android.os.storage { 462 463 public class StorageManager { 464 method public long computeStorageCacheBytes(@NonNull java.io.File); 465 method @Nullable public String getCloudMediaProvider(); 466 method public void notifyAppIoBlocked(@NonNull java.util.UUID, int, int, int); 467 method public void notifyAppIoResumed(@NonNull java.util.UUID, int, int, int); 468 method public void setCloudMediaProvider(@Nullable String); 469 field public static final int APP_IO_BLOCKED_REASON_TRANSCODING = 1; // 0x1 470 field public static final int APP_IO_BLOCKED_REASON_UNKNOWN = 0; // 0x0 471 } 472 473} 474 475package android.provider { 476 477 public static final class ContactsContract.RawContactsEntity implements android.provider.BaseColumns android.provider.ContactsContract.DataColumns android.provider.ContactsContract.RawContactsColumns { 478 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); 479 } 480 481 public class DeviceConfigInitializer { 482 method @Nullable public static android.provider.DeviceConfigServiceManager getDeviceConfigServiceManager(); 483 method public static void setDeviceConfigServiceManager(@NonNull android.provider.DeviceConfigServiceManager); 484 } 485 486 public class DeviceConfigServiceManager { 487 method @NonNull public android.provider.DeviceConfigServiceManager.ServiceRegisterer getDeviceConfigUpdatableServiceRegisterer(); 488 } 489 490 public static class DeviceConfigServiceManager.ServiceNotFoundException extends java.lang.Exception { 491 } 492 493 public static final class DeviceConfigServiceManager.ServiceRegisterer { 494 method @Nullable public android.os.IBinder get(); 495 method @NonNull public android.os.IBinder getOrThrow() throws android.provider.DeviceConfigServiceManager.ServiceNotFoundException; 496 method public void register(@NonNull android.os.IBinder); 497 method @Nullable public android.os.IBinder tryGet(); 498 } 499 500 public final class Settings { 501 field public static final int RESET_MODE_PACKAGE_DEFAULTS = 1; // 0x1 502 field public static final int RESET_MODE_TRUSTED_DEFAULTS = 4; // 0x4 503 field public static final int RESET_MODE_UNTRUSTED_CHANGES = 3; // 0x3 504 field public static final int RESET_MODE_UNTRUSTED_DEFAULTS = 2; // 0x2 505 } 506 507 public static final class Settings.Config extends android.provider.Settings.NameValueTable { 508 method @RequiresPermission(android.Manifest.permission.MONITOR_DEVICE_CONFIG_ACCESS) public static void clearMonitorCallback(@NonNull android.content.ContentResolver); 509 method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static boolean deleteString(@NonNull String, @NonNull String); 510 method @NonNull public static java.util.Map<java.lang.String,java.lang.String> getAllStrings(); 511 method @Nullable @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static String getString(@NonNull String); 512 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>); 513 method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static int getSyncDisabledMode(); 514 method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static boolean putString(@NonNull String, @NonNull String, @Nullable String, boolean); 515 method public static void registerContentObserver(@Nullable String, boolean, @NonNull android.database.ContentObserver); 516 method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static void resetToDefaults(int, @Nullable String); 517 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); 518 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; 519 method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static void setSyncDisabledMode(int); 520 method public static void unregisterContentObserver(@NonNull android.database.ContentObserver); 521 } 522 523 public static final class Settings.Global extends android.provider.Settings.NameValueTable { 524 field public static final String BLE_SCAN_ALWAYS_AVAILABLE = "ble_scan_always_enabled"; 525 field public static final String BLE_SCAN_BACKGROUND_MODE = "ble_scan_background_mode"; 526 field public static final String BLE_SCAN_BALANCED_INTERVAL_MS = "ble_scan_balanced_interval_ms"; 527 field public static final String BLE_SCAN_BALANCED_WINDOW_MS = "ble_scan_balanced_window_ms"; 528 field public static final String BLE_SCAN_LOW_LATENCY_INTERVAL_MS = "ble_scan_low_latency_interval_ms"; 529 field public static final String BLE_SCAN_LOW_LATENCY_WINDOW_MS = "ble_scan_low_latency_window_ms"; 530 field public static final String BLE_SCAN_LOW_POWER_INTERVAL_MS = "ble_scan_low_power_interval_ms"; 531 field public static final String BLE_SCAN_LOW_POWER_WINDOW_MS = "ble_scan_low_power_window_ms"; 532 field public static final String BLUETOOTH_BTSNOOP_DEFAULT_MODE = "bluetooth_btsnoop_default_mode"; 533 field public static final String BLUETOOTH_CLASS_OF_DEVICE = "bluetooth_class_of_device"; 534 field public static final String BLUETOOTH_DISABLED_PROFILES = "bluetooth_disabled_profiles"; 535 } 536 537 public static final class Settings.Secure extends android.provider.Settings.NameValueTable { 538 field public static final String BLUETOOTH_ADDRESS = "bluetooth_address"; 539 field public static final String BLUETOOTH_ADDR_VALID = "bluetooth_addr_valid"; 540 field public static final String BLUETOOTH_NAME = "bluetooth_name"; 541 } 542 543} 544 545package android.se.omapi { 546 547 @FlaggedApi("android.nfc.enable_nfc_mainline") public class SeFrameworkInitializer { 548 method @FlaggedApi("android.nfc.enable_nfc_mainline") @Nullable public static android.se.omapi.SeServiceManager getSeServiceManager(); 549 method @FlaggedApi("android.nfc.enable_nfc_mainline") public static void setSeServiceManager(@NonNull android.se.omapi.SeServiceManager); 550 } 551 552 @FlaggedApi("android.nfc.enable_nfc_mainline") public class SeServiceManager { 553 method @FlaggedApi("android.nfc.enable_nfc_mainline") @NonNull public android.se.omapi.SeServiceManager.ServiceRegisterer getSeManagerServiceRegisterer(); 554 } 555 556 @FlaggedApi("android.nfc.enable_nfc_mainline") public static class SeServiceManager.ServiceNotFoundException extends java.lang.Exception { 557 ctor @FlaggedApi("android.nfc.enable_nfc_mainline") public SeServiceManager.ServiceNotFoundException(@NonNull String); 558 } 559 560 @FlaggedApi("android.nfc.enable_nfc_mainline") public static final class SeServiceManager.ServiceRegisterer { 561 method @FlaggedApi("android.nfc.enable_nfc_mainline") @Nullable public android.os.IBinder get(); 562 method @FlaggedApi("android.nfc.enable_nfc_mainline") @NonNull public android.os.IBinder getOrThrow() throws android.se.omapi.SeServiceManager.ServiceNotFoundException; 563 method @FlaggedApi("android.nfc.enable_nfc_mainline") public void register(@NonNull android.os.IBinder); 564 method @FlaggedApi("android.nfc.enable_nfc_mainline") @Nullable public android.os.IBinder tryGet(); 565 } 566 567} 568 569package android.telecom { 570 571 public abstract class ConnectionService extends android.app.Service { 572 method @Nullable @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public android.telecom.Connection onCreateUnknownConnection(@NonNull android.telecom.PhoneAccountHandle, @NonNull android.telecom.ConnectionRequest); 573 } 574 575} 576 577package android.telephony { 578 579 public class CarrierConfigManager { 580 field public static final String KEY_MIN_UDP_PORT_4500_NAT_TIMEOUT_SEC_INT = "min_udp_port_4500_nat_timeout_sec_int"; 581 } 582 583 public abstract class CellSignalStrength { 584 method public static int getNumSignalStrengthLevels(); 585 } 586 587 public class SubscriptionManager { 588 method public void addSubscriptionInfoRecord(@NonNull String, @Nullable String, int, int); 589 method public void removeSubscriptionInfoRecord(@NonNull String, int); 590 } 591 592 public class TelephonyManager { 593 method @NonNull public static int[] getAllNetworkTypes(); 594 } 595 596} 597 598package android.util { 599 600 public class AtomicFile { 601 ctor public AtomicFile(@NonNull java.io.File, @Nullable android.util.SystemConfigFileCommitEventLogger); 602 } 603 604 public final class Log { 605 method public static int logToRadioBuffer(int, @Nullable String, @Nullable String); 606 } 607 608 public final class Slog { 609 method public static int d(@Nullable String, @NonNull String); 610 method public static int d(@Nullable String, @NonNull String, @Nullable Throwable); 611 method public static int e(@Nullable String, @NonNull String); 612 method public static int e(@Nullable String, @NonNull String, @Nullable Throwable); 613 method public static int i(@Nullable String, @NonNull String); 614 method public static int i(@Nullable String, @NonNull String, @Nullable Throwable); 615 method public static int v(@Nullable String, @NonNull String); 616 method public static int v(@Nullable String, @NonNull String, @Nullable Throwable); 617 method public static int w(@Nullable String, @NonNull String); 618 method public static int w(@Nullable String, @NonNull String, @Nullable Throwable); 619 method public static int w(@Nullable String, @Nullable Throwable); 620 method public static int wtf(@Nullable String, @NonNull String); 621 method public static int wtf(@Nullable String, @Nullable Throwable); 622 method public static int wtf(@Nullable String, @NonNull String, @Nullable Throwable); 623 method public static void wtfQuiet(@Nullable String, @NonNull String); 624 method public static int wtfStack(@Nullable String, @NonNull String); 625 } 626 627 public class SystemConfigFileCommitEventLogger { 628 ctor public SystemConfigFileCommitEventLogger(@NonNull String); 629 method public void setStartTime(long); 630 } 631 632} 633 634package android.view.accessibility { 635 636 public final class AccessibilityManager { 637 method @FlaggedApi("android.view.accessibility.flash_notification_system_api") public boolean startFlashNotificationSequence(@NonNull android.content.Context, int); 638 method @FlaggedApi("android.view.accessibility.flash_notification_system_api") public boolean stopFlashNotificationSequence(@NonNull android.content.Context); 639 } 640 641} 642 643package android.webkit { 644 645 @FlaggedApi("android.webkit.update_service_ipc_wrapper") public class WebViewBootstrapFrameworkInitializer { 646 method public static void registerServiceWrappers(); 647 } 648 649 @FlaggedApi("android.webkit.update_service_ipc_wrapper") public final class WebViewProviderResponse implements android.os.Parcelable { 650 ctor public WebViewProviderResponse(@Nullable android.content.pm.PackageInfo, int); 651 method public int describeContents(); 652 method public void writeToParcel(@NonNull android.os.Parcel, int); 653 field @NonNull public static final android.os.Parcelable.Creator<android.webkit.WebViewProviderResponse> CREATOR; 654 field public static final int STATUS_FAILED_LISTING_WEBVIEW_PACKAGES = 4; // 0x4 655 field public static final int STATUS_FAILED_OTHER = 11; // 0xb 656 field public static final int STATUS_FAILED_WAITING_FOR_RELRO = 3; // 0x3 657 field public static final int STATUS_SUCCESS = 0; // 0x0 658 field @Nullable public final android.content.pm.PackageInfo packageInfo; 659 field public final int status; 660 } 661 662 @FlaggedApi("android.webkit.update_service_ipc_wrapper") public final class WebViewUpdateManager { 663 method @Nullable @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public String changeProviderAndSetting(@NonNull String); 664 method @NonNull public android.webkit.WebViewProviderInfo[] getAllWebViewPackages(); 665 method @Nullable public android.content.pm.PackageInfo getCurrentWebViewPackage(); 666 method @Nullable public String getCurrentWebViewPackageName(); 667 method @FlaggedApi("android.webkit.update_service_v2") @NonNull public android.webkit.WebViewProviderInfo getDefaultWebViewPackage(); 668 method @Nullable public static android.webkit.WebViewUpdateManager getInstance(); 669 method @NonNull public android.webkit.WebViewProviderInfo[] getValidWebViewPackages(); 670 method @NonNull public android.webkit.WebViewProviderResponse waitForAndGetProvider(); 671 } 672 673} 674 675