Formatter  |  API reference  |  Android Developers Skip to main content Essentials Build AI experiences Build AI-powered Android apps with Gemini APIs and more. Get started Get started Create your first app. Use Compose for UI and adaptive app development to support multiple device form factors. Hello, world! Developer Verification Adaptive apps Compose for UI AI-powered IDE Training Monetization with Play ↗️ Optimize by form factor Build apps that optimize the user experience on phones, tablets, foldables, cars, XR, and more. Phones, tablets, foldables Android for Cars Android TV Android XR Googlebook ChromeOS Wear OS Build by category Learn to build for your use case by following Google's prescriptive and opinionated guidance. Games Camera & media Social & messaging Health & fitness Productivity Enterprise apps Get the latest Stay in touch with the latest releases throughout the year, join our preview programs, and give us your feedback. Latest updates Experimental updates Android Studio preview Jetpack & Compose libraries Wear OS releases Privacy Sandbox ↗️ Design & Plan Excellent Experiences Build the best experiences for your best users. Learn more UI Design Design a beautiful user interface using Android best practices. Design for Android Mobile Desktop experiences XR Headsets & XR Glasses AI Glasses Widgets Wear OS Android TV Android for Cars Architecture Design robust, testable, and maintainable app logic and services. Introduction Libraries Navigation Modularization Testing Kotlin Multiplatform Quality Plan for app quality and align with Play store guidelines. Overview Core value User experience Accessibility Technical quality Excellent Experiences Security Safeguard users against threats and ensure a secure Android experience. Overview Privacy Permissions Identity Fraud prevention Develop Gemini in Android Studio Your AI development companion for Android development. Learn more Get Android Studio Core areas Get the samples and docs for the features you need. Samples Multidevice support User interfaces Background work Data and files Connectivity All core areas ⤵️ Tools and workflow Use the IDE to write and build your app, or create your own pipeline. Write and debug code Build projects Test your app Performance Command-line tools Gradle plugin API Android Bench Device tech Write code for form factors. Connect devices and share data. Phones, tablets, foldables ChromeOS Android for Cars Android TV Android XR Wear OS Android Health Better Together All devices ⤵️ Libraries Browse API reference documentation with all the details. Android platform Jetpack libraries Compose libraries Google Play services ↗️ Google Play SDK index ↗️ Google Play Play Console Publish your app or game and grow your business on Google Play. Go to Play Console Learn more ↗️ Fundamentals Learn how to engage users, monitize, and secure your app. Play Monetization Play Integrity Play Policies Play Programs ↗️ Games Dev Center Develop and deliver games. Get tools, downloads, and samples. Overview Play Asset Delivery Play Games Services Play Games on PC Level Up guidelines All Play guides ⤵️ Libraries Browse API reference documentation with all the details. Play Feature Delivery Play In-app Updates Play In-app Reviews Play Install Referrer Google Play services ↗️ Google Play SDK index ↗️ All Play libraries ⤵️ Tools & resources Tools for publishing, promoting, and managing your app. Android App Bundles Brand & marketing Play Console APIs ↗️ Blog the Android Developer's Blog Read the latest Explore the authors → Explore categories Case Studies Real-world results from real-world users. Explore how different teams use our tools to achieve their goals. Events & Programs Get the details on upcoming webinars, workshops, meetups, and special initiatives designed to help you grow. Product News Stay in the loop with the latest updates, feature releases, and behind-the-scenes looks at how we’re evolving. Community Discover stories from our users, spotlight features, and the collaborative projects that bring us all together. How-tos From quick tips to deep-dive tutorials, these step-by-step guides are designed to help you work smarter and faster. / English Deutsch Español – América Latina Français Indonesia Polski Português – Brasil Tiếng Việt 中文 – 简体 日本語 한국어 Android Studio Sign in API reference Essentials More Design & Plan More Develop More Google Play More Blog More Android Studio Android API Reference Overview Android Platform Packages API level REL3736.1363534333231302928272625242322212019181716151413121110987654321 Class Index Package Index android Overview Classes Manifest Manifest.permission Manifest.permission_group R R.anim R.animator R.array R.attr R.bool R.color R.dimen R.drawable R.fraction R.id R.integer R.interpolator R.layout R.menu R.mipmap R.plurals R.raw R.string R.style R.styleable R.transition R.xml android.accessibilityservice Overview Interfaces AccessibilityService.MagnificationController.OnMagnificationChangedListener AccessibilityService.SoftKeyboardController.OnShowModeChangedListener AccessibilityService.TakeScreenshotCallback BrailleDisplayController BrailleDisplayController.BrailleDisplayCallback TouchInteractionController.Callback Classes AccessibilityButtonController AccessibilityButtonController.AccessibilityButtonCallback AccessibilityGestureEvent AccessibilityService AccessibilityService.GestureResultCallback AccessibilityService.MagnificationController AccessibilityService.ScreenshotResult AccessibilityService.SoftKeyboardController AccessibilityServiceInfo FingerprintGestureController FingerprintGestureController.FingerprintGestureCallback GestureDescription GestureDescription.Builder GestureDescription.StrokeDescription InputMethod InputMethod.AccessibilityInputConnection MagnificationConfig MagnificationConfig.Builder TouchInteractionController android.accounts Overview Interfaces AccountManagerCallback AccountManagerFuture OnAccountsUpdateListener Classes AbstractAccountAuthenticator Account AccountAuthenticatorActivity AccountAuthenticatorResponse AccountManager AuthenticatorDescription Exceptions AccountsException AuthenticatorException NetworkErrorException OperationCanceledException android.adservices Overview Classes AdServicesState android.adservices.adid Overview Classes AdId AdIdManager android.adservices.adselection Overview Classes AddAdSelectionFromOutcomesOverrideRequest AddAdSelectionOverrideRequest AdSelectionConfig AdSelectionConfig.Builder AdSelectionFromOutcomesConfig AdSelectionFromOutcomesConfig.Builder AdSelectionManager AdSelectionOutcome AdSelectionOutcome.Builder AdWithBid DecisionLogic GetAdSelectionDataOutcome GetAdSelectionDataRequest GetAdSelectionDataRequest.Builder PerBuyerConfiguration PerBuyerConfiguration.Builder PerBuyerDecisionLogic PersistAdSelectionResultRequest PersistAdSelectionResultRequest.Builder RemoveAdSelectionFromOutcomesOverrideRequest RemoveAdSelectionOverrideRequest ReportEventRequest ReportEventRequest.Builder ReportImpressionRequest SellerConfiguration SellerConfiguration.Builder SetAppInstallAdvertisersRequest SetAppInstallAdvertisersRequest.Builder SignedContextualAds SignedContextualAds.Builder TestAdSelectionManager UpdateAdCounterHistogramRequest UpdateAdCounterHistogramRequest.Builder android.adservices.appsetid Overview Classes AppSetId AppSetIdManager android.adservices.common Overview Interfaces AdServicesOutcomeReceiver Classes AdData AdData.Builder AdFilters AdFilters.Builder AdSelectionSignals AdServicesPermissions AdTechIdentifier AppInstallFilters AppInstallFilters.Builder ComponentAdData FrequencyCapFilters FrequencyCapFilters.Builder KeyedFrequencyCap KeyedFrequencyCap.Builder android.adservices.customaudience Overview Classes AddCustomAudienceOverrideRequest AddCustomAudienceOverrideRequest.Builder CustomAudience CustomAudience.Builder CustomAudienceManager FetchAndJoinCustomAudienceRequest FetchAndJoinCustomAudienceRequest.Builder JoinCustomAudienceRequest JoinCustomAudienceRequest.Builder LeaveCustomAudienceRequest LeaveCustomAudienceRequest.Builder PartialCustomAudience PartialCustomAudience.Builder RemoveCustomAudienceOverrideRequest RemoveCustomAudienceOverrideRequest.Builder ScheduleCustomAudienceUpdateRequest ScheduleCustomAudienceUpdateRequest.Builder TestCustomAudienceManager TrustedBiddingData TrustedBiddingData.Builder android.adservices.exceptions Overview Exceptions AdServicesException android.adservices.measurement Overview Classes DeletionRequest DeletionRequest.Builder MeasurementManager SourceRegistrationRequest SourceRegistrationRequest.Builder WebSourceParams WebSourceParams.Builder WebSourceRegistrationRequest WebSourceRegistrationRequest.Builder WebTriggerParams WebTriggerParams.Builder WebTriggerRegistrationRequest WebTriggerRegistrationRequest.Builder android.adservices.ondevicepersonalization Overview Interfaces IsolatedWorker KeyValueStore MutableKeyValueStore Classes AppInfo DownloadCompletedInput DownloadCompletedOutput DownloadCompletedOutput.Builder EventInput EventLogRecord EventLogRecord.Builder EventOutput EventOutput.Builder EventUrlProvider ExecuteInIsolatedServiceRequest ExecuteInIsolatedServiceRequest.Builder ExecuteInIsolatedServiceRequest.OutputSpec ExecuteInIsolatedServiceResponse ExecuteInput ExecuteOutput ExecuteOutput.Builder FederatedComputeInput FederatedComputeInput.Builder FederatedComputeScheduler FederatedComputeScheduler.Params FederatedComputeScheduleRequest FederatedComputeScheduleResponse InferenceInput InferenceInput.Builder InferenceInput.Params InferenceInput.Params.Builder InferenceOutput InferenceOutput.Builder IsolatedService LogReader ModelManager OnDevicePersonalizationManager OnDevicePersonalizationManager.ExecuteResult RenderingConfig RenderingConfig.Builder RenderInput RenderOutput RenderOutput.Builder RequestLogRecord RequestLogRecord.Builder RequestToken SurfacePackageToken TrainingExampleRecord TrainingExampleRecord.Builder TrainingExamplesInput TrainingExamplesOutput TrainingExamplesOutput.Builder TrainingInterval TrainingInterval.Builder UserData WebTriggerInput WebTriggerOutput WebTriggerOutput.Builder Exceptions IsolatedServiceException OnDevicePersonalizationException android.adservices.signals Overview Classes ProtectedSignalsManager UpdateSignalsRequest UpdateSignalsRequest.Builder android.adservices.topics Overview Classes EncryptedTopic GetTopicsRequest GetTopicsRequest.Builder GetTopicsResponse GetTopicsResponse.Builder Topic TopicsManager android.animation Overview Interfaces Animator.AnimatorListener Animator.AnimatorPauseListener LayoutTransition.TransitionListener TimeAnimator.TimeListener TimeInterpolator TypeEvaluator ValueAnimator.AnimatorUpdateListener ValueAnimator.DurationScaleChangeListener Classes Animator AnimatorInflater AnimatorListenerAdapter AnimatorSet AnimatorSet.Builder ArgbEvaluator BidirectionalTypeConverter FloatArrayEvaluator FloatEvaluator IntArrayEvaluator IntEvaluator Keyframe LayoutTransition ObjectAnimator PointFEvaluator PropertyValuesHolder RectEvaluator StateListAnimator TimeAnimator TypeConverter ValueAnimator android.annotation Overview Annotations SuppressLint TargetApi android.app Overview Interfaces ActionBar.OnMenuVisibilityListener ActionBar.OnNavigationListener ActionBar.TabListener Activity.ScreenCaptureCallback AlarmManager.OnAlarmListener Application.ActivityLifecycleCallbacks Application.OnProvideAssistDataListener AppOpsManager.OnOpActiveChangedListener AppOpsManager.OnOpChangedListener DatePickerDialog.OnDateSetListener FragmentBreadCrumbs.OnBreadCrumbClickListener FragmentManager.BackStackEntry FragmentManager.OnBackStackChangedListener KeyguardManager.DeviceLockedStateListener KeyguardManager.KeyguardLockedStateListener KeyguardManager.OnKeyguardExitResult LoaderManager.LoaderCallbacks Notification.Action.Extender Notification.Extender PendingIntent.OnFinished SearchManager.OnCancelListener SearchManager.OnDismissListener SharedElementCallback.OnSharedElementsReadyListener TimePickerDialog.OnTimeSetListener UiAutomation.AccessibilityEventFilter UiAutomation.OnAccessibilityEventListener UiModeManager.ContrastChangeListener WallpaperManager.OnColorsChangedListener ZygotePreload Classes ActionBar ActionBar.LayoutParams ActionBar.Tab Activity ActivityGroup ActivityManager ActivityManager.AppTask ActivityManager.MemoryInfo ActivityManager.ProcessErrorStateInfo ActivityManager.RecentTaskInfo ActivityManager.RunningAppProcessInfo ActivityManager.RunningServiceInfo ActivityManager.RunningTaskInfo ActivityManager.TaskDescription ActivityManager.TaskDescription.Builder ActivityOptions AlarmManager AlarmManager.AlarmClockInfo AlertDialog AlertDialog.Builder AliasActivity AnrTypes AnrWarningResult AppComponentFactory AppInteractionAttribution AppInteractionAttribution.Builder AppInteractionContract Application ApplicationErrorReport ApplicationErrorReport.AnrInfo ApplicationErrorReport.BatteryInfo ApplicationErrorReport.CrashInfo ApplicationErrorReport.RunningServiceInfo ApplicationExitInfo ApplicationExitInfo.AnrInfo ApplicationStartInfo AppOpsManager AppOpsManager.OnOpNotedCallback AsyncNotedAppOp AutomaticZenRule AutomaticZenRule.Builder BroadcastOptions ComponentCaller DatePickerDialog Dialog DialogFragment DirectAction DirectAction.Builder DownloadManager DownloadManager.Query DownloadManager.Request ExpandableListActivity Fragment Fragment.SavedState FragmentBreadCrumbs FragmentContainer FragmentController FragmentHostCallback FragmentManager FragmentManager.FragmentLifecycleCallbacks FragmentManagerNonConfig FragmentTransaction GameManager GameState GrammaticalInflectionManager HandoffActivityData HandoffActivityData.Builder HandoffActivityDataRequestInfo HandoffActivityParams HandoffActivityParams.Builder Instrumentation Instrumentation.ActivityMonitor Instrumentation.ActivityResult IntentService KeyguardManager KeyguardManager.KeyguardDismissCallback KeyguardManager.KeyguardLock LauncherActivity LauncherActivity.IconResizer LauncherActivity.ListItem ListActivity ListFragment LoaderManager LocalActivityManager LocaleConfig LocaleManager MediaRouteActionProvider MediaRouteButton NativeActivity Notification Notification.Action Notification.Action.Builder Notification.Action.WearableExtender Notification.BigPictureStyle Notification.BigTextStyle Notification.BridgedNotificationMetadata Notification.BubbleMetadata Notification.BubbleMetadata.Builder Notification.Builder Notification.CallStyle Notification.CarExtender Notification.CarExtender.Builder Notification.CarExtender.UnreadConversation Notification.DecoratedCustomViewStyle Notification.DecoratedMediaCustomViewStyle Notification.InboxStyle Notification.MediaStyle Notification.MessagingStyle Notification.MessagingStyle.Message Notification.Metric Notification.Metric.FixedDate Notification.Metric.FixedFloat Notification.Metric.FixedInt Notification.Metric.FixedText Notification.Metric.FixedTime Notification.Metric.MetricValue Notification.Metric.TimeDifference Notification.MetricStyle Notification.ProgressStyle Notification.ProgressStyle.Point Notification.ProgressStyle.Segment Notification.ProjectedExtender Notification.Style Notification.TvExtender Notification.WearableExtender NotificationChannel NotificationChannelGroup NotificationManager NotificationManager.Policy PendingIntent Person Person.Builder PictureInPictureParams PictureInPictureParams.Builder PictureInPictureUiState Presentation ProgressDialog RemoteAction RemoteInput RemoteInput.Builder SearchableInfo SearchManager Service SharedElementCallback StatusBarManager SyncNotedAppOp TabActivity TaskInfo TaskLocation TaskStackBuilder TimePickerDialog UiAutomation UiModeManager VoiceInteractor VoiceInteractor.AbortVoiceRequest VoiceInteractor.CommandRequest VoiceInteractor.CompleteVoiceRequest VoiceInteractor.ConfirmationRequest VoiceInteractor.PickOptionRequest VoiceInteractor.PickOptionRequest.Option VoiceInteractor.Prompt VoiceInteractor.Request WallpaperColors WallpaperInfo WallpaperManager Exceptions AuthenticationRequiredException BackgroundServiceStartNotAllowedException ForegroundServiceStartNotAllowedException ForegroundServiceTypeException Fragment.InstantiationException InfeasibleActivityOptionsException InvalidForegroundServiceTypeException MissingForegroundServiceTypeException PendingIntent.CanceledException RecoverableSecurityException ServiceStartNotAllowedException StartForegroundCalledOnStoppedServiceException android.app.admin Overview Interfaces DevicePolicyManager.OnClearApplicationUserDataListener Classes ConnectEvent DelegatedAdminReceiver DeviceAdminInfo DeviceAdminReceiver DeviceAdminService DevicePolicyIdentifiers DevicePolicyManager DevicePolicyManager.InstallSystemUpdateCallback DevicePolicyResources DevicePolicyResourcesManager DnsEvent FactoryResetProtectionPolicy FactoryResetProtectionPolicy.Builder FreezePeriod ManagedSubscriptionsPolicy NetworkEvent PackagePolicy PolicyUpdateReceiver PolicyUpdateResult PreferentialNetworkServiceConfig PreferentialNetworkServiceConfig.Builder SecurityLog SecurityLog.SecurityEvent SystemUpdateInfo SystemUpdatePolicy TargetUser WifiSsidPolicy Exceptions SystemUpdatePolicy.ValidationFailedException UnsafeStateException android.app.appfunctions Overview Interfaces AppFunction AppFunctionObservation AppFunctionObserver AppFunctionRegistration Classes AppFunctionActivityId AppFunctionActivityState AppFunctionManager AppFunctionMetadata AppFunctionName AppFunctionPackageMetadata AppFunctionSchemaMetadata AppFunctionSearchSpec AppFunctionSearchSpec.Builder AppFunctionService AppFunctionState AppFunctionUriGrant ExecuteAppFunctionRequest ExecuteAppFunctionRequest.Builder ExecuteAppFunctionResponse RegisterAppFunctionRequest Exceptions AppFunctionException android.app.appsearch Overview Interfaces BatchResultCallback Classes AppSearchAccount AppSearchAccount.Builder AppSearchBatchResult AppSearchBatchResult.Builder AppSearchBlobHandle AppSearchManager AppSearchManager.SearchContext AppSearchManager.SearchContext.Builder AppSearchResult AppSearchSchema AppSearchSchema.BlobHandlePropertyConfig AppSearchSchema.BlobHandlePropertyConfig.Builder AppSearchSchema.BooleanPropertyConfig AppSearchSchema.BooleanPropertyConfig.Builder AppSearchSchema.Builder AppSearchSchema.BytesPropertyConfig AppSearchSchema.BytesPropertyConfig.Builder AppSearchSchema.DocumentPropertyConfig AppSearchSchema.DocumentPropertyConfig.Builder AppSearchSchema.DoublePropertyConfig AppSearchSchema.DoublePropertyConfig.Builder AppSearchSchema.EmbeddingPropertyConfig AppSearchSchema.EmbeddingPropertyConfig.Builder AppSearchSchema.LongPropertyConfig AppSearchSchema.LongPropertyConfig.Builder AppSearchSchema.PropertyConfig AppSearchSchema.StringPropertyConfig AppSearchSchema.StringPropertyConfig.Builder AppSearchSession CommitBlobResponse EmbeddingVector EnterpriseGlobalSearchSession GenericDocument GenericDocument.Builder GetByDocumentIdRequest GetByDocumentIdRequest.Builder GetSchemaResponse GetSchemaResponse.Builder GlobalSearchSession JoinSpec JoinSpec.Builder Migrator OpenBlobForReadResponse OpenBlobForWriteResponse PackageIdentifier PropertyPath PropertyPath.PathSegment PutDocumentsRequest PutDocumentsRequest.Builder RemoveBlobResponse RemoveByDocumentIdRequest RemoveByDocumentIdRequest.Builder ReportSystemUsageRequest ReportSystemUsageRequest.Builder ReportUsageRequest ReportUsageRequest.Builder SchemaVisibilityConfig SchemaVisibilityConfig.Builder SearchResult SearchResult.Builder SearchResult.EmbeddingMatchInfo SearchResult.MatchInfo SearchResult.MatchInfo.Builder SearchResult.MatchRange SearchResult.TextMatchInfo SearchResults SearchSpec SearchSpec.Builder SearchSuggestionResult SearchSuggestionResult.Builder SearchSuggestionSpec SearchSuggestionSpec.Builder SetBlobVisibilityRequest SetBlobVisibilityRequest.Builder SetSchemaRequest SetSchemaRequest.Builder SetSchemaResponse SetSchemaResponse.Builder SetSchemaResponse.MigrationFailure StorageInfo StorageInfo.Builder android.app.appsearch.exceptions Overview Exceptions AppSearchException android.app.appsearch.observer Overview Interfaces ObserverCallback Classes DocumentChangeInfo ObserverSpec ObserverSpec.Builder SchemaChangeInfo android.app.appsearch.util Overview Classes DocumentIdUtil android.app.assist Overview Classes AssistContent AssistStructure AssistStructure.ViewNode AssistStructure.WindowNode android.app.backup Overview Interfaces BackupHelper Classes BackupAgent BackupAgentHelper BackupDataInput BackupDataInputStream BackupDataOutput BackupManager FileBackupHelper FullBackupDataOutput FullRestoreDataInput RestoreObserver SharedPreferencesBackupHelper android.app.blob Overview Classes BlobHandle BlobStoreManager BlobStoreManager.Session android.app.jank Overview Classes AppJankStats RelativeFrameTimeHistogram android.app.job Overview Classes JobInfo JobInfo.Builder JobInfo.TriggerContentUri JobParameters JobScheduler JobService JobServiceEngine JobWorkItem JobWorkItem.Builder PendingJobReasonsInfo android.app.people Overview Classes ConversationStatus ConversationStatus.Builder PeopleManager android.app.permissionui Overview Interfaces LocationButtonClient LocationButtonProvider LocationButtonSession Classes LocationButtonProviderFactory LocationButtonRequest LocationButtonRequest.Builder android.app.privatecompute Overview Classes DataMigrationToPccService MigrationRequestResult PccClient PccSandboxManager PccService Exceptions MigrationException android.app.role Overview Classes RoleManager android.app.sdksandbox Overview Interfaces SdkSandboxManager.SdkSandboxProcessDeathCallback Classes AppOwnedSdkSandboxInterface SandboxedSdk SandboxedSdkProvider SdkSandboxManager Exceptions LoadSdkException RequestSurfacePackageException android.app.sdksandbox.sdkprovider Overview Interfaces SdkSandboxActivityHandler SdkSandboxClientImportanceListener Classes SdkSandboxController android.app.slice Overview Classes Slice Slice.Builder SliceItem SliceManager SliceMetrics SliceProvider SliceSpec android.app.usage Overview Classes ConfigurationStats EventStats ExternalStorageStats NetworkStats NetworkStats.Bucket NetworkStatsManager NetworkStatsManager.UsageCallback StorageStats StorageStatsManager UsageEvents UsageEvents.Event UsageEventsQuery UsageEventsQuery.Builder UsageStats UsageStatsManager android.app.voiceinteraction Overview Classes VoiceInteractionManager android.app.wallpaper Overview Classes WallpaperDescription WallpaperDescription.Builder WallpaperInstance android.appwidget Overview Classes AppWidgetEvent AppWidgetHost AppWidgetHostView AppWidgetManager AppWidgetProvider AppWidgetProviderInfo android.bluetooth Overview Interfaces BluetoothAdapter.LeScanCallback BluetoothProfile BluetoothProfile.ServiceListener Classes BluetoothA2dp BluetoothAdapter BluetoothAssignedNumbers BluetoothClass BluetoothClass.Device BluetoothClass.Device.Major BluetoothClass.Service BluetoothCodecConfig BluetoothCodecConfig.Builder BluetoothCodecStatus BluetoothCodecStatus.Builder BluetoothCodecType BluetoothCsipSetCoordinator BluetoothDevice BluetoothDevice.BluetoothAddress BluetoothGatt BluetoothGattCallback BluetoothGattCharacteristic BluetoothGattConnectionSettings BluetoothGattConnectionSettings.Builder BluetoothGattDescriptor BluetoothGattServer BluetoothGattServerCallback BluetoothGattService BluetoothHeadset BluetoothHealth BluetoothHealthAppConfiguration BluetoothHealthCallback BluetoothHearingAid BluetoothHidDevice BluetoothHidDevice.Callback BluetoothHidDeviceAppQosSettings BluetoothHidDeviceAppSdpSettings BluetoothLeAudio BluetoothLeAudioCodecConfig BluetoothLeAudioCodecConfig.Builder BluetoothLeAudioCodecStatus BluetoothManager BluetoothServerSocket BluetoothSocket BluetoothSocketSettings BluetoothSocketSettings.Builder BluetoothStatusCodes BondStatus EncryptionStatus Exceptions BluetoothSocketException android.bluetooth.le Overview Classes AdvertiseCallback AdvertiseData AdvertiseData.Builder AdvertiseSettings AdvertiseSettings.Builder AdvertisingSet AdvertisingSetCallback AdvertisingSetParameters AdvertisingSetParameters.Builder BluetoothLeAdvertiser BluetoothLeScanner PeriodicAdvertisingParameters PeriodicAdvertisingParameters.Builder ScanCallback ScanFilter ScanFilter.Builder ScanRecord ScanResult ScanSettings ScanSettings.Builder TransportBlock TransportDiscoveryData android.companion Overview Interfaces DeviceFilter Classes ActionRequest ActionRequest.Builder ActionResult ActionResult.Builder AssociatedDevice AssociationInfo AssociationRequest AssociationRequest.Builder BluetoothDeviceFilter BluetoothDeviceFilter.Builder BluetoothLeDeviceFilter BluetoothLeDeviceFilter.Builder CompanionDeviceManager CompanionDeviceManager.Callback CompanionDeviceService DeviceId DeviceId.Builder DevicePresenceEvent ObservingDevicePresenceRequest ObservingDevicePresenceRequest.Builder WifiDeviceFilter WifiDeviceFilter.Builder Exceptions CompanionException DeviceNotAssociatedException android.companion.virtual Overview Interfaces VirtualDeviceManager.VirtualDeviceListener Classes VirtualDevice VirtualDeviceManager android.content Overview Interfaces ClipboardManager.OnPrimaryClipChangedListener ComponentCallbacks ComponentCallbacks2 ContentProvider.PipeDataWriter DialogInterface DialogInterface.OnCancelListener DialogInterface.OnClickListener DialogInterface.OnDismissListener DialogInterface.OnKeyListener DialogInterface.OnMultiChoiceClickListener DialogInterface.OnShowListener EntityIterator IntentSender.OnFinished Loader.OnLoadCanceledListener Loader.OnLoadCompleteListener ServiceConnection SharedPreferences SharedPreferences.Editor SharedPreferences.OnSharedPreferenceChangeListener SyncStatusObserver Classes AbstractThreadedSyncAdapter AsyncQueryHandler AsyncQueryHandler.WorkerArgs AsyncQueryHandler.WorkerHandler AsyncTaskLoader AttributionSource AttributionSource.Builder BroadcastReceiver BroadcastReceiver.PendingResult ClipboardManager ClipData ClipData.Item ClipData.Item.Builder ClipDescription ComponentName ContentProvider ContentProvider.CallingIdentity ContentProviderClient ContentProviderOperation ContentProviderOperation.Builder ContentProviderResult ContentQueryMap ContentResolver ContentResolver.MimeTypeInfo ContentUris ContentValues Context Context.BindServiceFlags Context.UpdateBindingParams Context.UpdateBindingParams.Builder ContextParams ContextParams.Builder ContextWrapper CursorLoader Entity Entity.NamedContentValues Intent Intent.FilterComparison Intent.ShortcutIconResource IntentFilter IntentFilter.AuthorityEntry IntentSender Loader Loader.ForceLoadContentObserver LocusId MutableContextWrapper PeriodicSync QuickViewConstants RestrictionEntry RestrictionsManager SearchRecentSuggestionsProvider SyncAdapterType SyncContext SyncInfo SyncRequest SyncRequest.Builder SyncResult SyncStats UriMatcher UriPermission UriRelativeFilter UriRelativeFilterGroup Exceptions ActivityNotFoundException IntentFilter.MalformedMimeTypeException IntentSender.SendIntentException OperationApplicationException ReceiverCallNotAllowedException android.content.om Overview Classes FabricatedOverlay OverlayIdentifier OverlayInfo OverlayManager OverlayManagerTransaction android.content.pm Overview Interfaces PackageManager.OnChecksumsReadyListener Classes ActivityInfo ActivityInfo.WindowLayout ApkChecksum ApplicationInfo ApplicationInfo.DisplayNameComparator ArchivedActivityInfo ArchivedPackageInfo Attribution Capability Capability.Builder CapabilityParams CapabilityParams.Builder ChangedPackages Checksum ComponentInfo ConfigurationInfo CrossProfileApps FeatureGroupInfo FeatureInfo InstallSourceInfo InstrumentationInfo LabeledIntent LauncherActivityInfo LauncherApps LauncherApps.ArchiveCompatibilityParams LauncherApps.Callback LauncherApps.PinItemRequest LauncherApps.ShortcutQuery LauncherUserInfo ModuleInfo PackageInfo PackageInstaller PackageInstaller.InstallConstraints PackageInstaller.InstallConstraints.Builder PackageInstaller.InstallConstraintsResult PackageInstaller.PreapprovalDetails PackageInstaller.PreapprovalDetails.Builder PackageInstaller.Session PackageInstaller.SessionCallback PackageInstaller.SessionInfo PackageInstaller.SessionParams PackageInstaller.UnarchivalState PackageItemInfo PackageItemInfo.DisplayNameComparator PackageManager PackageManager.ApplicationInfoFlags PackageManager.ComponentEnabledSetting PackageManager.ComponentInfoFlags PackageManager.PackageInfoFlags PackageManager.Property PackageManager.ResolveInfoFlags PackageStats PathPermission PermissionGroupInfo PermissionInfo ProviderInfo ResolveInfo ResolveInfo.DisplayNameComparator ServiceInfo SharedLibraryInfo ShortcutInfo ShortcutInfo.Builder ShortcutManager Signature SigningInfo VersionedPackage Exceptions PackageManager.NameNotFoundException SigningInfoException android.content.pm.verify.domain Overview Classes DomainVerificationManager DomainVerificationUserState android.content.pm.webapp Overview Classes WebAppInstallRequest WebAppInstallRequest.Builder WebAppManager WebAppQueryRequest android.content.res Overview Interfaces FontScaleConverter XmlResourceParser Classes AssetFileDescriptor AssetFileDescriptor.AutoCloseInputStream AssetFileDescriptor.AutoCloseOutputStream AssetManager AssetManager.AssetInputStream ColorStateList Configuration ObbInfo ObbScanner Resources Resources.Theme TypedArray Exceptions Resources.NotFoundException android.content.res.loader Overview Interfaces AssetsProvider Classes ResourcesLoader ResourcesProvider android.credentials Overview Classes ClearCredentialStateRequest CreateCredentialRequest CreateCredentialRequest.Builder CreateCredentialResponse Credential CredentialDescription CredentialManager CredentialOption CredentialOption.Builder GetCredentialRequest GetCredentialRequest.Builder GetCredentialResponse PrepareGetCredentialResponse PrepareGetCredentialResponse.PendingGetCredentialHandle RegisterCredentialDescriptionRequest UnregisterCredentialDescriptionRequest Exceptions ClearCredentialStateException CreateCredentialException GetCredentialException android.crypto.hpke Overview Interfaces HpkeSpi Classes AeadParameterSpec Hpke KdfParameterSpec KemParameterSpec Message Recipient Recipient.Builder Sender Sender.Builder XdhKeySpec android.database Overview Interfaces CrossProcessCursor Cursor DatabaseErrorHandler Classes AbstractCursor AbstractCursor.SelfContentObserver AbstractWindowedCursor CharArrayBuffer ContentObservable ContentObserver CrossProcessCursorWrapper CursorJoiner CursorWindow CursorWrapper DatabaseUtils DatabaseUtils.InsertHelper DataSetObservable DataSetObserver DefaultDatabaseErrorHandler MatrixCursor MatrixCursor.RowBuilder MergeCursor Observable Enums CursorJoiner.Result Exceptions CursorIndexOutOfBoundsException CursorWindowAllocationException SQLException StaleDataException android.database.sqlite Overview Interfaces SQLiteCursorDriver SQLiteDatabase.CursorFactory SQLiteTransactionListener Classes SQLiteClosable SQLiteCursor SQLiteDatabase SQLiteDatabase.OpenParams SQLiteDatabase.OpenParams.Builder SQLiteOpenHelper SQLiteProgram SQLiteQuery SQLiteQueryBuilder SQLiteRawStatement SQLiteStatement Exceptions SQLiteAbortException SQLiteAccessPermException SQLiteBindOrColumnIndexOutOfRangeException SQLiteBlobTooBigException SQLiteCantOpenDatabaseException SQLiteConstraintException SQLiteDatabaseCorruptException SQLiteDatabaseLockedException SQLiteDatatypeMismatchException SQLiteDiskIOException SQLiteDoneException SQLiteException SQLiteFullException SQLiteMisuseException SQLiteOutOfMemoryException SQLiteReadOnlyDatabaseException SQLiteTableLockedException android.devicelock Overview Classes DeviceId DeviceLockManager android.drm Overview Interfaces DrmManagerClient.OnErrorListener DrmManagerClient.OnEventListener DrmManagerClient.OnInfoListener DrmStore.ConstraintsColumns Classes DrmConvertedStatus DrmErrorEvent DrmEvent DrmInfo DrmInfoEvent DrmInfoRequest DrmInfoStatus DrmManagerClient DrmRights DrmStore DrmStore.Action DrmStore.DrmObjectType DrmStore.Playback DrmStore.RightsStatus DrmSupportInfo DrmUtils DrmUtils.ExtendedMetadataParser ProcessedData android.gesture Overview Interfaces GestureOverlayView.OnGestureListener GestureOverlayView.OnGesturePerformedListener GestureOverlayView.OnGesturingListener Classes Gesture GestureLibraries GestureLibrary GestureOverlayView GesturePoint GestureStore GestureStroke GestureUtils OrientedBoundingBox Prediction android.graphics Overview Interfaces ImageDecoder.OnHeaderDecodedListener ImageDecoder.OnPartialImageListener PostProcessor SurfaceTexture.OnFrameAvailableListener Classes Bitmap BitmapFactory BitmapFactory.Options BitmapRegionDecoder BitmapShader BlendModeColorFilter BlurMaskFilter Camera Canvas Color ColorFilter ColorMatrix ColorMatrixColorFilter ColorSpace ColorSpace.Connector ColorSpace.Rgb ColorSpace.Rgb.TransferParameters ComposePathEffect ComposeShader CornerPathEffect DashPathEffect DiscretePathEffect DrawFilter EmbossMaskFilter Gainmap HardwareBufferRenderer HardwareBufferRenderer.RenderRequest HardwareBufferRenderer.RenderResult HardwareRenderer HardwareRenderer.FrameRenderRequest ImageDecoder ImageDecoder.ImageInfo ImageDecoder.Source ImageFormat Insets Interpolator LightingColorFilter LinearGradient MaskFilter Matrix Matrix44 Mesh MeshSpecification MeshSpecification.Attribute MeshSpecification.Varying Movie NinePatch Outline Paint Paint.FontMetrics Paint.FontMetricsInt PaintFlagsDrawFilter ParcelableColorSpace Path PathDashPathEffect PathEffect PathIterator PathIterator.Segment PathMeasure Picture PixelFormat Point PointF PorterDuff PorterDuffColorFilter PorterDuffXfermode RadialGradient RecordingCanvas Rect RectF Region RegionIterator RenderEffect RenderNode RuntimeColorFilter RuntimeShader RuntimeXfermode Shader SumPathEffect SurfaceTexture SweepGradient Typeface Typeface.Builder Typeface.CustomFallbackBuilder Xfermode YuvImage Enums Bitmap.CompressFormat Bitmap.Config BlendMode BlurMaskFilter.Blur Canvas.EdgeType Canvas.VertexMode ColorSpace.Adaptation ColorSpace.Model ColorSpace.Named ColorSpace.RenderIntent Interpolator.Result Matrix.ScaleToFit Paint.Align Paint.Cap Paint.Join Paint.Style Path.Direction Path.FillType Path.Op PathDashPathEffect.Style PorterDuff.Mode Region.Op Shader.TileMode Exceptions ImageDecoder.DecodeException SurfaceTexture.OutOfResourcesException android.graphics.drawable Overview Interfaces Animatable Animatable2 Drawable.Callback Icon.OnDrawableLoadedListener Classes AdaptiveIconDrawable Animatable2.AnimationCallback AnimatedImageDrawable AnimatedStateListDrawable AnimatedVectorDrawable AnimationDrawable BitmapDrawable ClipDrawable ColorDrawable ColorStateListDrawable Drawable Drawable.ConstantState DrawableContainer DrawableContainer.DrawableContainerState DrawableWrapper GradientDrawable Icon InsetDrawable LayerDrawable LevelListDrawable NinePatchDrawable PaintDrawable PictureDrawable RippleDrawable RotateDrawable ScaleDrawable ShapeDrawable ShapeDrawable.ShaderFactory StateListDrawable TransitionDrawable VectorDrawable Enums GradientDrawable.Orientation android.graphics.drawable.shapes Overview Classes ArcShape OvalShape PathShape RectShape RoundRectShape Shape android.graphics.fonts Overview Classes Font Font.Builder FontFamily FontFamily.Builder FontStyle FontVariationAxis SystemFonts android.graphics.pdf Overview Classes LoadParams LoadParams.Builder PdfDocument PdfDocument.Page PdfDocument.PageInfo PdfDocument.PageInfo.Builder PdfRenderer PdfRenderer.Page PdfRendererPreV PdfRendererPreV.Page RenderParams RenderParams.Builder android.graphics.pdf.component Overview Classes FreeTextAnnotation HighlightAnnotation PdfAnnotation PdfAnnotationType PdfPageImageObject PdfPageObject PdfPageObjectType PdfPagePathObject PdfPageTextObject PdfPageTextObjectFont StampAnnotation android.graphics.pdf.content Overview Classes PdfPageGotoLinkContent PdfPageGotoLinkContent.Destination PdfPageImageContent PdfPageLinkContent PdfPageTextContent android.graphics.pdf.models Overview Classes FormEditRecord FormEditRecord.Builder FormWidgetInfo FormWidgetInfo.Builder ListItem PageMatchBounds android.graphics.pdf.models.selection Overview Classes PageSelection SelectionBoundary android.graphics.text Overview Classes LineBreakConfig LineBreakConfig.Builder LineBreaker LineBreaker.Builder LineBreaker.ParagraphConstraints LineBreaker.Result MeasuredText MeasuredText.Builder PositionedGlyphs TextRunShaper android.hardware Overview Interfaces Camera.AutoFocusCallback Camera.AutoFocusMoveCallback Camera.ErrorCallback Camera.FaceDetectionListener Camera.OnZoomChangeListener Camera.PictureCallback Camera.PreviewCallback Camera.ShutterCallback SensorEventListener SensorEventListener2 SensorListener Classes BatteryState Camera Camera.Area Camera.CameraInfo Camera.Face Camera.Parameters Camera.Size ConsumerIrManager ConsumerIrManager.CarrierFrequencyRange DataSpace DisplayLuts DisplayLuts.Entry GeomagneticField HardwareBuffer LutProperties OverlayProperties Sensor SensorAdditionalInfo SensorDirectChannel SensorEvent SensorEventCallback SensorManager SensorManager.DynamicSensorCallback SensorPrivacyManager SensorPrivacyManager.Sensors SyncFence TriggerEvent TriggerEventListener android.hardware.biometrics Overview Interfaces BiometricManager.Authenticators PromptContentItem PromptContentView Classes BiometricManager BiometricManager.Strings BiometricPrompt BiometricPrompt.AuthenticationCallback BiometricPrompt.AuthenticationResult BiometricPrompt.Builder BiometricPrompt.CryptoObject FallbackOption PromptContentItemBulletedText PromptContentItemPlainText PromptContentViewWithMoreOptionsButton PromptContentViewWithMoreOptionsButton.Builder PromptVerticalListContentView PromptVerticalListContentView.Builder android.hardware.camera2 Overview Interfaces MultiResolutionImageReader.OnActiveOutputSurfacesListener Classes CameraCaptureSession CameraCaptureSession.CaptureCallback CameraCaptureSession.StateCallback CameraCharacteristics CameraCharacteristics.Key CameraConstrainedHighSpeedCaptureSession CameraDevice CameraDevice.CameraDeviceSetup CameraDevice.StateCallback CameraExtensionCharacteristics CameraExtensionSession CameraExtensionSession.ExtensionCaptureCallback CameraExtensionSession.StateCallback CameraExtensionSession.StillCaptureLatency CameraManager CameraManager.AvailabilityCallback CameraManager.TorchCallback CameraMetadata CameraOfflineSession CameraOfflineSession.CameraOfflineSessionCallback CaptureFailure CaptureRequest CaptureRequest.Builder CaptureRequest.Key CaptureResult CaptureResult.Key DngCreator MultiResolutionImageReader MultiResolutionImageReader.Builder TotalCaptureResult Exceptions CameraAccessException android.hardware.camera2.params Overview Classes BlackLevelPattern Capability ColorSpaceProfiles ColorSpaceTransform DeviceStateSensorOrientationMap DeviceStateSensorOrientationMap.Builder DynamicRangeProfiles ExtensionSessionConfiguration Face Face.Builder InputConfiguration LensIntrinsicsSample LensShadingMap MandatoryStreamCombination MandatoryStreamCombination.MandatoryStreamInformation MeteringRectangle MultiResolutionStreamConfigurationMap MultiResolutionStreamInfo OisSample OutputConfiguration RecommendedStreamConfigurationMap RggbChannelVector SessionConfiguration StreamConfigurationMap TonemapCurve android.hardware.display Overview Interfaces DisplayManager.DisplayListener VirtualDisplayConfig.BrightnessListener Classes DeviceProductInfo DeviceProductInfo.Builder DeviceProductInfo.EdidStructureMetadata DisplayManager DisplayTopology HdrConversionMode VirtualDisplay VirtualDisplay.Callback VirtualDisplayConfig VirtualDisplayConfig.Builder android.hardware.hid Overview Interfaces HidDeviceListener Classes HidDevice HidManager Report android.hardware.input Overview Interfaces InputManager.InputDeviceListener Classes AppCustomizationAction AppCustomizationAction.Builder ButtonCustomizationTrigger CustomizationAction CustomizationTrigger HostUsiVersion InputManager KeyCustomizationTrigger SimpleCustomizationAction UriCustomizationAction android.hardware.lights Overview Classes ColorSequence ColorSequence.Builder Light LightsManager LightsManager.LightsSession LightsRequest LightsRequest.Builder LightState LightState.Builder MultiLightEffect MultiLightEffect.Builder android.hardware.serial Overview Interfaces SerialPortListener Classes SerialManager SerialPort SerialPortResponse android.hardware.usb Overview Classes UsbAccessory UsbConfiguration UsbConstants UsbDevice UsbDeviceConnection UsbEndpoint UsbInterface UsbManager UsbRequest android.health.connect Overview Interfaces TimeRangeFilter Classes AggregateRecordsGroupedByDurationResponse AggregateRecordsGroupedByPeriodResponse AggregateRecordsRequest AggregateRecordsRequest.Builder AggregateRecordsResponse CreateMedicalDataSourceRequest CreateMedicalDataSourceRequest.Builder DeleteMedicalResourcesRequest DeleteMedicalResourcesRequest.Builder DeviceDataSource DeviceDataSourceCapabilities DeviceDataTypeSource GetDeviceDataSourcesResponse GetMedicalDataSourcesRequest GetMedicalDataSourcesRequest.Builder HealthConnectManager HealthPermissions InsertRecordsResponse LocalTimeRangeFilter LocalTimeRangeFilter.Builder MatchmakingRequest MatchmakingRequest.Builder MatchmakingResponse MatchmakingResponse.Builder MedicalResourceId ReadMedicalResourcesInitialRequest ReadMedicalResourcesInitialRequest.Builder ReadMedicalResourcesPageRequest ReadMedicalResourcesPageRequest.Builder ReadMedicalResourcesRequest ReadMedicalResourcesResponse ReadRecordsRequest ReadRecordsRequestUsingFilters ReadRecordsRequestUsingFilters.Builder ReadRecordsRequestUsingIds ReadRecordsRequestUsingIds.Builder ReadRecordsResponse RecordIdFilter TimeInstantRangeFilter TimeInstantRangeFilter.Builder UpsertMedicalResourceRequest UpsertMedicalResourceRequest.Builder Exceptions HealthConnectException android.health.connect.changelog Overview Classes ChangeLogsRequest ChangeLogsRequest.Builder ChangeLogsResponse ChangeLogsResponse.DeletedLog ChangeLogsResponse.DeletedMedicalResource ChangeLogTokenRequest ChangeLogTokenRequest.Builder ChangeLogTokenResponse android.health.connect.datatypes Overview Classes ActiveCaloriesBurnedRecord ActiveCaloriesBurnedRecord.Builder ActivityIntensityRecord ActivityIntensityRecord.Builder AggregationType AlcoholConsumptionRecord AlcoholConsumptionRecord.Builder AppInfo BasalBodyTemperatureRecord BasalBodyTemperatureRecord.Builder BasalMetabolicRateRecord BasalMetabolicRateRecord.Builder BloodGlucoseRecord BloodGlucoseRecord.Builder BloodGlucoseRecord.RelationToMealType BloodGlucoseRecord.SpecimenSource BloodPressureRecord BloodPressureRecord.BloodPressureMeasurementLocation BloodPressureRecord.BodyPosition BloodPressureRecord.Builder BodyFatRecord BodyFatRecord.Builder BodyTemperatureMeasurementLocation BodyTemperatureRecord BodyTemperatureRecord.Builder BodyWaterMassRecord BodyWaterMassRecord.Builder BoneMassRecord BoneMassRecord.Builder CervicalMucusRecord CervicalMucusRecord.Builder CervicalMucusRecord.CervicalMucusAppearance CervicalMucusRecord.CervicalMucusSensation CyclingPedalingCadenceRecord CyclingPedalingCadenceRecord.Builder CyclingPedalingCadenceRecord.CyclingPedalingCadenceRecordSample DataOrigin DataOrigin.Builder Device Device.Builder DistanceRecord DistanceRecord.Builder ElevationGainedRecord ElevationGainedRecord.Builder ExerciseCompletionGoal ExerciseCompletionGoal.ActiveCaloriesBurnedGoal ExerciseCompletionGoal.DistanceGoal ExerciseCompletionGoal.DistanceWithVariableRestGoal ExerciseCompletionGoal.DurationGoal ExerciseCompletionGoal.RepetitionsGoal ExerciseCompletionGoal.StepsGoal ExerciseCompletionGoal.TotalCaloriesBurnedGoal ExerciseCompletionGoal.UnknownGoal ExerciseCompletionGoal.UnspecifiedGoal ExerciseLap ExerciseLap.Builder ExercisePerformanceGoal ExercisePerformanceGoal.AmrapGoal ExercisePerformanceGoal.CadenceGoal ExercisePerformanceGoal.HeartRateGoal ExercisePerformanceGoal.PowerGoal ExercisePerformanceGoal.RateOfPerceivedExertionGoal ExercisePerformanceGoal.SpeedGoal ExercisePerformanceGoal.UnknownGoal ExercisePerformanceGoal.WeightGoal ExerciseRoute ExerciseRoute.Location ExerciseRoute.Location.Builder ExerciseSegment ExerciseSegment.Builder ExerciseSegmentType ExerciseSessionRecord ExerciseSessionRecord.Builder ExerciseSessionType FhirResource FhirResource.Builder FhirVersion FloorsClimbedRecord FloorsClimbedRecord.Builder HeartRateRecord HeartRateRecord.Builder HeartRateRecord.HeartRateSample HeartRateVariabilityRmssdRecord HeartRateVariabilityRmssdRecord.Builder HeightRecord HeightRecord.Builder HydrationRecord HydrationRecord.Builder InstantRecord IntermenstrualBleedingRecord IntermenstrualBleedingRecord.Builder IntervalRecord LeanBodyMassRecord LeanBodyMassRecord.Builder MealType MedicalDataSource MedicalDataSource.Builder MedicalResource MedicalResource.Builder MenstrualCyclePhaseRecord MenstrualCyclePhaseRecord.Builder MenstruationFlowRecord MenstruationFlowRecord.Builder MenstruationFlowRecord.MenstruationFlowType MenstruationPeriodRecord MenstruationPeriodRecord.Builder Metadata Metadata.Builder MindfulnessSessionRecord MindfulnessSessionRecord.Builder NutritionRecord NutritionRecord.Builder OvulationTestRecord OvulationTestRecord.Builder OvulationTestRecord.OvulationTestResult OxygenSaturationRecord OxygenSaturationRecord.Builder PlannedExerciseBlock PlannedExerciseBlock.Builder PlannedExerciseSessionRecord PlannedExerciseSessionRecord.Builder PlannedExerciseStep PlannedExerciseStep.Builder PowerRecord PowerRecord.Builder PowerRecord.PowerRecordSample Record RespiratoryRateRecord RespiratoryRateRecord.Builder RestingHeartRateRecord RestingHeartRateRecord.Builder SexualActivityRecord SexualActivityRecord.Builder SexualActivityRecord.SexualActivityProtectionUsed SkinTemperatureRecord SkinTemperatureRecord.Builder SkinTemperatureRecord.Delta SleepSessionRecord SleepSessionRecord.Builder SleepSessionRecord.Stage SleepSessionRecord.StageType SpeedRecord SpeedRecord.Builder SpeedRecord.SpeedRecordSample StepsCadenceRecord StepsCadenceRecord.Builder StepsCadenceRecord.StepsCadenceRecordSample StepsRecord StepsRecord.Builder SymptomRecord SymptomRecord.Builder TotalCaloriesBurnedRecord TotalCaloriesBurnedRecord.Builder Vo2MaxRecord Vo2MaxRecord.Builder Vo2MaxRecord.Vo2MaxMeasurementMethod WeightRecord WeightRecord.Builder WheelchairPushesRecord WheelchairPushesRecord.Builder android.health.connect.datatypes.units Overview Classes BloodGlucose Energy Length Mass Percentage Power Pressure Temperature TemperatureDelta Velocity Volume android.icu.lang Overview Interfaces UCharacter.BidiPairedBracketType UCharacter.DecompositionType UCharacter.EastAsianWidth UCharacter.GraphemeClusterBreak UCharacter.HangulSyllableType UCharacter.IndicPositionalCategory UCharacter.IndicSyllabicCategory UCharacter.JoiningGroup UCharacter.JoiningType UCharacter.LineBreak UCharacter.NumericType UCharacter.SentenceBreak UCharacter.VerticalOrientation UCharacter.WordBreak UCharacterEnums.ECharacterCategory UCharacterEnums.ECharacterDirection UProperty UProperty.NameChoice Classes UCharacter UCharacter.UnicodeBlock UCharacterCategory UCharacterDirection UCharacterEnums UScript Enums UCharacter.IdentifierType UScript.ScriptUsage android.icu.math Overview Classes BigDecimal MathContext android.icu.number Overview Classes CompactNotation CurrencyPrecision FormattedNumber FormattedNumberRange FractionPrecision IntegerWidth LocalizedNumberFormatter LocalizedNumberRangeFormatter Notation NumberFormatter NumberFormatterSettings NumberRangeFormatter NumberRangeFormatterSettings Precision Scale ScientificNotation SimpleNotation UnlocalizedNumberFormatter UnlocalizedNumberRangeFormatter Enums NumberFormatter.DecimalSeparatorDisplay NumberFormatter.GroupingStrategy NumberFormatter.RoundingPriority NumberFormatter.SignDisplay NumberFormatter.TrailingZeroDisplay NumberFormatter.UnitWidth NumberRangeFormatter.RangeCollapse NumberRangeFormatter.RangeIdentityFallback NumberRangeFormatter.RangeIdentityResult Exceptions SkeletonSyntaxException android.icu.text Overview Interfaces Collator.ReorderCodes FormattedValue Replaceable SymbolTable UnicodeMatcher Classes AlphabeticIndex AlphabeticIndex.Bucket AlphabeticIndex.ImmutableIndex AlphabeticIndex.Record Bidi BidiClassifier BidiRun BreakIterator CaseMap CaseMap.Fold CaseMap.Lower CaseMap.Title CaseMap.Upper CollationElementIterator CollationKey CollationKey.BoundMode Collator CompactDecimalFormat ConstrainedFieldPosition CurrencyPluralInfo DateFormat DateFormat.Field DateFormatSymbols DateIntervalFormat DateIntervalFormat.FormattedDateInterval DateIntervalInfo DateIntervalInfo.PatternInfo DateTimePatternGenerator DateTimePatternGenerator.PatternInfo DecimalFormat DecimalFormatSymbols DisplayOptions DisplayOptions.Builder Edits Edits.Iterator IDNA IDNA.Info ListFormatter ListFormatter.FormattedList LocaleDisplayNames LocaleDisplayNames.UiListItem MeasureFormat MessageFormat MessageFormat.Field MessagePattern MessagePattern.Part Normalizer Normalizer.QuickCheckResult Normalizer2 NumberFormat NumberFormat.Field NumberingSystem PluralFormat PluralRules RelativeDateTimeFormatter RelativeDateTimeFormatter.FormattedRelativeDateTime RuleBasedCollator ScientificNumberFormatter SearchIterator SelectFormat SimpleDateFormat StringSearch TimeZoneFormat TimeZoneNames Transliterator Transliterator.Position UCharacterIterator UFormat UnicodeFilter UnicodeSet UnicodeSet.EntryRange UnicodeSetIterator UnicodeSetSpanner Enums AlphabeticIndex.Bucket.LabelType CompactDecimalFormat.CompactStyle DateFormat.BooleanAttribute DateFormat.HourCycle DateTimePatternGenerator.DisplayWidth DisplayContext DisplayContext.Type DisplayOptions.Capitalization DisplayOptions.DisplayLength DisplayOptions.GrammaticalCase DisplayOptions.NameStyle DisplayOptions.NounClass DisplayOptions.PluralCategory DisplayOptions.SubstituteHandling IDNA.Error ListFormatter.Type ListFormatter.Width LocaleDisplayNames.DialectHandling MeasureFormat.FormatWidth MessagePattern.ApostropheMode MessagePattern.ArgType MessagePattern.Part.Type Normalizer2.Mode PluralRules.PluralType RelativeDateTimeFormatter.AbsoluteUnit RelativeDateTimeFormatter.Direction RelativeDateTimeFormatter.RelativeDateTimeUnit RelativeDateTimeFormatter.RelativeUnit RelativeDateTimeFormatter.Style SearchIterator.ElementComparisonType TimeZoneFormat.GMTOffsetPatternType TimeZoneFormat.ParseOption TimeZoneFormat.Style TimeZoneFormat.TimeType TimeZoneNames.NameType UnicodeSet.ComparisonStyle UnicodeSet.SpanCondition UnicodeSetSpanner.CountMethod UnicodeSetSpanner.TrimOption Exceptions StringPrepParseException android.icu.util Overview Interfaces Freezable RangeValueIterator ValueIterator Classes BuddhistCalendar Calendar Calendar.WeekData ChineseCalendar CopticCalendar Currency CurrencyAmount DateInterval EthiopicCalendar GregorianCalendar HebrewCalendar IndianCalendar IslamicCalendar JapaneseCalendar LocaleData LocaleData.MeasurementSystem LocaleData.PaperSize Measure MeasureUnit Output RangeValueIterator.Element TaiwanCalendar TimeUnit TimeZone ULocale ULocale.Builder UniversalTimeScale ValueIterator.Element VersionInfo Enums Currency.CurrencyUsage IslamicCalendar.CalculationType MeasureUnit.Complexity MeasureUnit.MeasurePrefix TimeZone.SystemTimeZoneType ULocale.AvailableType ULocale.Category Exceptions ICUUncheckedIOException IllformedLocaleException android.inputmethodservice Overview Interfaces KeyboardView.OnKeyboardActionListener Classes AbstractInputMethodService AbstractInputMethodService.AbstractInputMethodImpl AbstractInputMethodService.AbstractInputMethodSessionImpl ExtractEditText InputMethodService InputMethodService.InputMethodImpl InputMethodService.InputMethodSessionImpl InputMethodService.Insets Keyboard Keyboard.Key Keyboard.Row KeyboardView android.location Overview Interfaces Geocoder.GeocodeListener GnssAntennaInfo.Listener GpsStatus.Listener GpsStatus.NmeaListener LocationListener OnNmeaMessageListener Classes Address Criteria Geocoder GnssAntennaInfo GnssAntennaInfo.Builder GnssAntennaInfo.PhaseCenterOffset GnssAntennaInfo.SphericalCorrections GnssAutomaticGainControl GnssAutomaticGainControl.Builder GnssCapabilities GnssCapabilities.Builder GnssClock GnssMeasurement GnssMeasurementRequest GnssMeasurementRequest.Builder GnssMeasurementsEvent GnssMeasurementsEvent.Builder GnssMeasurementsEvent.Callback GnssNavigationMessage GnssNavigationMessage.Callback GnssSignalType GnssStatus GnssStatus.Builder GnssStatus.Callback GpsSatellite GpsStatus Location LocationManager LocationProvider LocationRequest LocationRequest.Builder SettingInjectorService android.location.altitude Overview Classes AltitudeConverter android.location.provider Overview Classes ProviderProperties ProviderProperties.Builder android.media Overview Interfaces AudioManager.OnAudioFocusChangeListener AudioManager.OnCommunicationDeviceChangedListener AudioManager.OnModeChangedListener AudioManager.OnPreferredMixerAttributesChangedListener AudioMetadata.Key AudioMetadataMap AudioMetadataReadMap AudioRecord.OnRecordPositionUpdateListener AudioRecord.OnRoutingChangedListener AudioRecordingMonitor AudioRouting AudioRouting.OnRoutingChangedListener AudioTrack.OnCodecFormatChangedListener AudioTrack.OnPlaybackPositionUpdateListener AudioTrack.OnRoutingChangedListener ImageReader.OnImageAvailableListener ImageWriter.OnImageReleasedListener JetPlayer.OnJetEventListener LoudnessCodecController.OnLoudnessCodecUpdateListener MediaCas.EventListener MediaCodec.OnFirstTunnelFrameReadyListener MediaCodec.OnFrameRenderedListener MediaDrm.OnEventListener MediaDrm.OnExpirationUpdateListener MediaDrm.OnKeyStatusChangeListener MediaDrm.OnSessionLostStateListener MediaDrmThrowable MediaParser.InputReader MediaParser.OutputConsumer MediaParser.SeekableInputReader MediaPlayer.OnBufferingUpdateListener MediaPlayer.OnCompletionListener MediaPlayer.OnDrmConfigHelper MediaPlayer.OnDrmInfoListener MediaPlayer.OnDrmPreparedListener MediaPlayer.OnErrorListener MediaPlayer.OnInfoListener MediaPlayer.OnMediaTimeDiscontinuityListener MediaPlayer.OnPreparedListener MediaPlayer.OnSeekCompleteListener MediaPlayer.OnSubtitleDataListener MediaPlayer.OnTimedMetaDataAvailableListener MediaPlayer.OnTimedTextListener MediaPlayer.OnVideoSizeChangedListener MediaRecorder.OnErrorListener MediaRecorder.OnInfoListener MediaRouter2.DeviceSuggestionsUpdatesCallback MediaRouter2.OnGetControllerHintsListener MediaScannerConnection.MediaScannerConnectionClient MediaScannerConnection.OnScanCompletedListener MediaSync.OnErrorListener MicrophoneDirection RemoteControlClient.OnGetPlaybackPositionListener RemoteControlClient.OnMetadataUpdateListener RemoteControlClient.OnPlaybackPositionUpdateListener RemoteController.OnClientUpdateListener SoundPool.OnLoadCompleteListener Spatializer.OnHeadTrackerAvailableListener Spatializer.OnSpatializerStateChangedListener VolumeAutomation Classes ApplicationMediaCapabilities ApplicationMediaCapabilities.Builder AsyncPlayer AudioAttributes AudioAttributes.Builder AudioDescriptor AudioDeviceCallback AudioDeviceInfo AudioFocusRequest AudioFocusRequest.Builder AudioFormat AudioFormat.Builder AudioManager AudioManager.AudioPlaybackCallback AudioManager.AudioRecordingCallback AudioMetadata AudioMetadata.Format AudioMixerAttributes AudioMixerAttributes.Builder AudioPlaybackCaptureConfiguration AudioPlaybackCaptureConfiguration.Builder AudioPlaybackConfiguration AudioPresentation AudioPresentation.Builder AudioProfile AudioRecord AudioRecord.Builder AudioRecord.MetricsConstants AudioRecordingConfiguration AudioTimestamp AudioTrack AudioTrack.Builder AudioTrack.MetricsConstants AudioTrack.StreamEventCallback CamcorderProfile CameraProfile DrmInitData DrmInitData.SchemeInitData EncoderProfiles EncoderProfiles.AudioProfile EncoderProfiles.VideoProfile ExifInterface FaceDetector FaceDetector.Face Image Image.Plane ImageReader ImageReader.Builder ImageWriter ImageWriter.Builder JetPlayer LoudnessCodecController MediaActionSound MediaCas MediaCas.PluginDescriptor MediaCas.Session MediaCodec MediaCodec.BufferInfo MediaCodec.Callback MediaCodec.CryptoInfo MediaCodec.CryptoInfo.Pattern MediaCodec.LinearBlock MediaCodec.MetricsConstants MediaCodec.OutputFrame MediaCodec.ParameterDescriptor MediaCodec.QueueRequest MediaCodecInfo MediaCodecInfo.AudioCapabilities MediaCodecInfo.CodecCapabilities MediaCodecInfo.CodecProfileLevel MediaCodecInfo.EncoderCapabilities MediaCodecInfo.VideoCapabilities MediaCodecInfo.VideoCapabilities.PerformancePoint MediaCodecList MediaCommunicationManager MediaController2 MediaController2.Builder MediaController2.ControllerCallback MediaCrypto MediaDataSource MediaDescrambler MediaDescription MediaDescription.Builder MediaDrm MediaDrm.CryptoSession MediaDrm.ErrorCodes MediaDrm.KeyRequest MediaDrm.KeyStatus MediaDrm.LogMessage MediaDrm.MetricsConstants MediaDrm.PlaybackComponent MediaDrm.ProvisionRequest MediaExtractor MediaExtractor.CasInfo MediaExtractor.MetricsConstants MediaFeature MediaFeature.HdrType MediaFormat MediaFormat.QpOffsetRect MediaMetadata MediaMetadata.Builder MediaMetadataEditor MediaMetadataRetriever MediaMetadataRetriever.BitmapParams MediaMuxer MediaMuxer.OutputFormat MediaParser MediaParser.SeekMap MediaParser.SeekPoint MediaParser.TrackData MediaPlayer MediaPlayer.DrmInfo MediaPlayer.MetricsConstants MediaPlayer.TrackInfo MediaRecorder MediaRecorder.AudioEncoder MediaRecorder.AudioSource MediaRecorder.MetricsConstants MediaRecorder.OutputFormat MediaRecorder.VideoEncoder MediaRecorder.VideoSource MediaRoute2Info MediaRoute2Info.Builder MediaRoute2ProviderService MediaRouter MediaRouter.Callback MediaRouter.RouteCategory MediaRouter.RouteGroup MediaRouter.RouteInfo MediaRouter.SimpleCallback MediaRouter.UserRouteInfo MediaRouter.VolumeCallback MediaRouter2 MediaRouter2.ControllerCallback MediaRouter2.RouteCallback MediaRouter2.RoutingController MediaRouter2.ScanRequest MediaRouter2.ScanRequest.Builder MediaRouter2.ScanToken MediaRouter2.TransferCallback MediaScannerConnection MediaSession2 MediaSession2.Builder MediaSession2.ControllerInfo MediaSession2.SessionCallback MediaSession2Service MediaSession2Service.MediaNotification MediaSync MediaSync.Callback MediaSyncEvent MediaTimestamp MicrophoneInfo MicrophoneInfo.Coordinate3F PlaybackParams Rating RemoteControlClient RemoteControlClient.MetadataEditor RemoteController RemoteController.MetadataEditor Ringtone RingtoneManager RouteDiscoveryPreference RouteDiscoveryPreference.Builder RouteListingPreference RouteListingPreference.Builder RouteListingPreference.Item RouteListingPreference.Item.Builder RoutingSessionInfo RoutingSessionInfo.Builder Session2Command Session2Command.Result Session2CommandGroup Session2CommandGroup.Builder Session2Token SoundPool SoundPool.Builder Spatializer SubtitleData SuggestedDeviceInfo SuggestedDeviceInfo.Builder SyncParams ThumbnailUtils TimedMetaData TimedText ToneGenerator VolumeProvider VolumeShaper VolumeShaper.Configuration VolumeShaper.Configuration.Builder VolumeShaper.Operation Exceptions DeniedByServerException MediaCasException MediaCasException.DeniedByServerException MediaCasException.InsufficientResourceException MediaCasException.NotProvisionedException MediaCasException.ResourceBusyException MediaCasException.UnsupportedCasException MediaCasStateException MediaCodec.CodecException MediaCodec.CryptoException MediaCodec.IncompatibleWithBlockModelException MediaCodec.InvalidBufferFlagsException MediaCryptoException MediaDrm.MediaDrmStateException MediaDrm.SessionException MediaDrmException MediaDrmResetException MediaParser.ParsingException MediaParser.UnrecognizedInputFormatException MediaPlayer.NoDrmSchemeException MediaPlayer.ProvisioningNetworkErrorException MediaPlayer.ProvisioningServerErrorException NotProvisionedException ResourceBusyException UnsupportedSchemeException android.media.audiofx Overview Interfaces AudioEffect.OnControlStatusChangeListener AudioEffect.OnEnableStatusChangeListener BassBoost.OnParameterChangeListener EnvironmentalReverb.OnParameterChangeListener Equalizer.OnParameterChangeListener PresetReverb.OnParameterChangeListener Virtualizer.OnParameterChangeListener Visualizer.OnDataCaptureListener Classes AcousticEchoCanceler AudioEffect AudioEffect.Descriptor AutomaticGainControl BassBoost BassBoost.Settings DynamicsProcessing DynamicsProcessing.BandBase DynamicsProcessing.BandStage DynamicsProcessing.Channel DynamicsProcessing.Config DynamicsProcessing.Config.Builder DynamicsProcessing.Eq DynamicsProcessing.EqBand DynamicsProcessing.Limiter DynamicsProcessing.Mbc DynamicsProcessing.MbcBand DynamicsProcessing.Stage EnvironmentalReverb EnvironmentalReverb.Settings Equalizer Equalizer.Settings HapticGenerator LoudnessEnhancer NoiseSuppressor PresetReverb PresetReverb.Settings Virtualizer Virtualizer.Settings Visualizer Visualizer.MeasurementPeakRms android.media.browse Overview Classes MediaBrowser MediaBrowser.ConnectionCallback MediaBrowser.ItemCallback MediaBrowser.MediaItem MediaBrowser.SubscriptionCallback android.media.effect Overview Interfaces EffectUpdateListener Classes Effect EffectContext EffectFactory android.media.metrics Overview Classes BundleSession EditingEndedEvent EditingEndedEvent.Builder EditingSession Event LogSessionId MediaItemInfo MediaItemInfo.Builder MediaMetricsManager NetworkEvent NetworkEvent.Builder PlaybackErrorEvent PlaybackErrorEvent.Builder PlaybackMetrics PlaybackMetrics.Builder PlaybackSession PlaybackStateEvent PlaybackStateEvent.Builder RecordingSession TrackChangeEvent TrackChangeEvent.Builder TranscodingSession android.media.midi Overview Interfaces MidiManager.OnDeviceOpenedListener Classes MidiDevice MidiDevice.MidiConnection MidiDeviceInfo MidiDeviceInfo.PortInfo MidiDeviceService MidiDeviceStatus MidiInputPort MidiManager MidiManager.DeviceCallback MidiOutputPort MidiReceiver MidiSender MidiUmpDeviceService android.media.projection Overview Classes AppContentProjectionService AppContentProjectionSession AppContentRequest MediaProjection MediaProjection.Callback MediaProjectionAppContent MediaProjectionAppContent.Builder MediaProjectionConfig MediaProjectionConfig.Builder MediaProjectionManager android.media.quality Overview Interfaces MediaQualityManager.AmbientBacklightCallback Classes ActiveProcessingPicture AmbientBacklightEvent AmbientBacklightMetadata AmbientBacklightSettings EqualizerBand EqualizerCapabilities EqualizerSettings EqualizerSettings.Builder MediaQualityContract MediaQualityContract.PictureQuality MediaQualityContract.SoundQuality MediaQualityManager MediaQualityManager.PictureProfileCallback MediaQualityManager.ProfileQueryParams MediaQualityManager.ProfileQueryParams.Builder MediaQualityManager.SoundProfileCallback ParameterCapability PictureProfile PictureProfile.Builder SoundProfile SoundProfile.Builder android.media.session Overview Interfaces MediaSessionManager.OnActiveSessionsChangedListener MediaSessionManager.OnMediaKeyEventSessionChangedListener MediaSessionManager.OnSession2TokensChangedListener Classes MediaController MediaController.Callback MediaController.PlaybackInfo MediaController.TransportControls MediaSession MediaSession.Callback MediaSession.QueueItem MediaSession.Token MediaSessionManager MediaSessionManager.RemoteUserInfo PlaybackState PlaybackState.Builder PlaybackState.CustomAction PlaybackState.CustomAction.Builder android.media.tv Overview Interfaces TvContract.BaseTvColumns TvView.OnUnhandledInputEventListener Classes AdBuffer AdRequest AdResponse AitInfo BroadcastInfoRequest BroadcastInfoResponse CommandRequest CommandResponse DsmccRequest DsmccResponse PesRequest PesResponse SectionRequest SectionResponse SignalingDataInfo SignalingDataRequest SignalingDataResponse StreamEventRequest StreamEventResponse TableRequest TableResponse TableResponse.Builder TimelineRequest TimelineResponse TsRequest TsResponse TvContentRating TvContract TvContract.Channels TvContract.Channels.Logo TvContract.PreviewPrograms TvContract.Programs TvContract.Programs.Genres TvContract.RecordedPrograms TvContract.WatchNextPrograms TvInputInfo TvInputInfo.Builder TvInputManager TvInputManager.TvInputCallback TvInputService TvInputService.HardwareSession TvInputService.RecordingSession TvInputService.Session TvRecordingClient TvRecordingClient.RecordingCallback TvRecordingInfo TvTrackInfo TvTrackInfo.Builder TvView TvView.TimeShiftPositionCallback TvView.TvInputCallback android.media.tv.ad Overview Interfaces TvAdView.OnUnhandledInputEventListener Classes TvAdManager TvAdManager.TvAdServiceCallback TvAdService TvAdService.Session TvAdServiceInfo TvAdView TvAdView.TvAdCallback android.media.tv.interactive Overview Interfaces TvInteractiveAppView.OnUnhandledInputEventListener Classes AppLinkInfo TvInteractiveAppManager TvInteractiveAppManager.TvInteractiveAppCallback TvInteractiveAppService TvInteractiveAppService.Session TvInteractiveAppServiceInfo TvInteractiveAppView TvInteractiveAppView.TvInteractiveAppCallback android.mtp Overview Classes MtpConstants MtpDevice MtpDeviceInfo MtpEvent MtpObjectInfo MtpObjectInfo.Builder MtpStorageInfo android.net Overview Interfaces ConnectivityManager.OnNetworkActiveListener DnsResolver.Callback TetheringManager.StartTetheringCallback TetheringManager.StopTetheringCallback TetheringManager.TetheringEventCallback TransportInfo UrlQuerySanitizer.ValueSanitizer Classes CaptivePortal ConnectivityDiagnosticsManager ConnectivityDiagnosticsManager.ConnectivityDiagnosticsCallback ConnectivityDiagnosticsManager.ConnectivityReport ConnectivityDiagnosticsManager.DataStallReport ConnectivityManager ConnectivityManager.NetworkCallback Credentials DhcpInfo DnsResolver EthernetNetworkSpecifier Ikev2VpnProfile Ikev2VpnProfile.Builder InetAddresses IpConfiguration IpConfiguration.Builder IpPrefix IpSecAlgorithm IpSecManager IpSecManager.SecurityParameterIndex IpSecManager.UdpEncapsulationSocket IpSecTransform IpSecTransform.Builder IpSecTransformState IpSecTransformState.Builder L2capNetworkSpecifier L2capNetworkSpecifier.Builder LinkAddress LinkProperties LocalServerSocket LocalSocket LocalSocketAddress MacAddress MailTo Network NetworkCapabilities NetworkInfo NetworkRequest NetworkRequest.Builder NetworkSpecifier PlatformVpnProfile Proxy ProxyInfo RouteInfo SocketKeepalive SocketKeepalive.Callback SSLCertificateSocketFactory SSLSessionCache StaticIpConfiguration StaticIpConfiguration.Builder TelephonyNetworkSpecifier TelephonyNetworkSpecifier.Builder TetheringInterface TetheringManager TetheringManager.TetheringRequest TetheringManager.TetheringRequest.Builder TrafficStats Uri Uri.Builder UrlQuerySanitizer UrlQuerySanitizer.IllegalCharacterValueSanitizer UrlQuerySanitizer.ParameterValuePair VpnManager VpnProfileState VpnService VpnService.Builder Enums LocalSocketAddress.Namespace NetworkInfo.DetailedState NetworkInfo.State Exceptions DnsResolver.DnsException IpSecManager.ResourceUnavailableException IpSecManager.SpiUnavailableException ParseException android.net.dns Overview Classes HttpsEndpoint HttpsRecord android.net.eap Overview Classes EapAkaInfo EapAkaInfo.Builder EapInfo EapSessionConfig EapSessionConfig.Builder EapSessionConfig.EapAkaConfig EapSessionConfig.EapAkaOption EapSessionConfig.EapAkaOption.Builder EapSessionConfig.EapAkaPrimeConfig EapSessionConfig.EapMethodConfig EapSessionConfig.EapMsChapV2Config EapSessionConfig.EapSimConfig EapSessionConfig.EapTtlsConfig android.net.http Overview Interfaces BidirectionalStream.Callback Proxy.HttpConnectCallback UrlRequest.Callback UrlRequest.StatusListener Classes BidirectionalStream BidirectionalStream.Builder ConnectionMigrationOptions ConnectionMigrationOptions.Builder DnsOptions DnsOptions.Builder DnsOptions.StaleDnsOptions DnsOptions.StaleDnsOptions.Builder FinishedRequestTimings HeaderBlock HttpEngine HttpEngine.Builder HttpResponseCache Proxy Proxy.HttpConnectCallback.Request ProxyOptions QuicOptions QuicOptions.Builder SslCertificate SslCertificate.DName SslError UploadDataProvider UploadDataSink UrlRequest UrlRequest.Builder UrlRequest.Status UrlResponseInfo X509TrustManagerExtensions Exceptions CallbackException HttpException InlineExecutionProhibitedException NetworkException QuicException android.net.ipsec.ike Overview Interfaces ChildSessionCallback IkeSessionCallback TunnelModeChildSessionParams.ConfigRequestIpv4Address TunnelModeChildSessionParams.ConfigRequestIpv4DhcpServer TunnelModeChildSessionParams.ConfigRequestIpv4DnsServer TunnelModeChildSessionParams.ConfigRequestIpv4Netmask TunnelModeChildSessionParams.ConfigRequestIpv6Address TunnelModeChildSessionParams.ConfigRequestIpv6DnsServer TunnelModeChildSessionParams.TunnelModeChildConfigRequest Classes ChildSaProposal ChildSaProposal.Builder ChildSessionConfiguration ChildSessionConfiguration.Builder ChildSessionParams IkeDerAsn1DnIdentification IkeFqdnIdentification IkeIdentification IkeIpv4AddrIdentification IkeIpv6AddrIdentification IkeKeyIdIdentification IkeRfc822AddrIdentification IkeSaProposal IkeSaProposal.Builder IkeSession IkeSessionConfiguration IkeSessionConfiguration.Builder IkeSessionConnectionInfo IkeSessionParams IkeSessionParams.Builder IkeSessionParams.IkeAuthConfig IkeSessionParams.IkeAuthDigitalSignLocalConfig IkeSessionParams.IkeAuthDigitalSignRemoteConfig IkeSessionParams.IkeAuthEapConfig IkeSessionParams.IkeAuthPskConfig IkeTrafficSelector IkeTunnelConnectionParams SaProposal TransportModeChildSessionParams TransportModeChildSessionParams.Builder TunnelModeChildSessionParams TunnelModeChildSessionParams.Builder android.net.ipsec.ike.exceptions Overview Exceptions IkeException IkeInternalException IkeIOException IkeNetworkLostException IkeNonProtocolException IkeProtocolException IkeTimeoutException InvalidKeException InvalidMajorVersionException InvalidSelectorsException android.net.nsd Overview Interfaces NsdManager.DiscoveryListener NsdManager.RegistrationListener NsdManager.ResolveListener NsdManager.ServiceInfoCallback Classes AdvertisingRequest AdvertisingRequest.Builder DiscoveryRequest DiscoveryRequest.Builder NsdManager NsdServiceInfo android.net.rtp Overview Classes AudioCodec AudioGroup AudioStream RtpStream android.net.sip Overview Interfaces SipRegistrationListener Classes SipAudioCall SipAudioCall.Listener SipErrorCode SipManager SipProfile SipProfile.Builder SipSession SipSession.Listener SipSession.State Exceptions SipException android.net.ssl Overview Classes EchConfigList SSLEngines SSLSockets Exceptions EchConfigMismatchException InvalidEchDataException android.net.vcn Overview Classes VcnCellUnderlyingNetworkTemplate VcnCellUnderlyingNetworkTemplate.Builder VcnConfig VcnConfig.Builder VcnGatewayConnectionConfig VcnGatewayConnectionConfig.Builder VcnManager VcnManager.VcnStatusCallback VcnUnderlyingNetworkTemplate VcnWifiUnderlyingNetworkTemplate VcnWifiUnderlyingNetworkTemplate.Builder android.net.wifi Overview Interfaces WifiManager.LocalOnlyConnectionFailureListener WifiManager.SuggestionConnectionStatusListener WifiManager.SuggestionUserApprovalStatusListener WifiManager.WifiStateChangedListener Classes BlockingOption BlockingOption.Builder EasyConnectStatusCallback MloLink ScanResult ScanResult.InformationElement SoftApConfiguration SoftApConfiguration.Builder WifiAvailableChannel WifiConfiguration WifiConfiguration.AuthAlgorithm WifiConfiguration.GroupCipher WifiConfiguration.GroupMgmtCipher WifiConfiguration.KeyMgmt WifiConfiguration.PairwiseCipher WifiConfiguration.Protocol WifiConfiguration.Status WifiEnterpriseConfig WifiEnterpriseConfig.Eap WifiEnterpriseConfig.Phase2 WifiInfo WifiInfo.Builder WifiManager WifiManager.AddNetworkResult WifiManager.InterfaceCreationImpact WifiManager.LocalOnlyHotspotCallback WifiManager.LocalOnlyHotspotReservation WifiManager.MulticastLock WifiManager.ScanResultsCallback WifiManager.SubsystemRestartTrackingCallback WifiManager.WifiLock WifiManager.WpsCallback WifiNetworkSpecifier WifiNetworkSpecifier.Builder WifiNetworkSuggestion WifiNetworkSuggestion.Builder WifiSsid WpsInfo Enums SupplicantState android.net.wifi.aware Overview Classes AttachCallback AwareDataPathRequest AwareDataPathRequest.Builder AwarePairingConfig AwarePairingConfig.Builder AwareResources Characteristics DiscoverySession DiscoverySessionCallback IdentityChangedListener ParcelablePeerHandle PeerHandle PublishConfig PublishConfig.Builder PublishDiscoverySession ServiceDiscoveryInfo SubscribeConfig SubscribeConfig.Builder SubscribeDiscoverySession WifiAwareChannelInfo WifiAwareDataPathSecurityConfig WifiAwareDataPathSecurityConfig.Builder WifiAwareManager WifiAwareNetworkInfo WifiAwareNetworkSpecifier WifiAwareNetworkSpecifier.Builder WifiAwareSession android.net.wifi.hotspot2 Overview Classes ConfigParser PasspointConfiguration android.net.wifi.hotspot2.omadm Overview Classes PpsMoParser android.net.wifi.hotspot2.pps Overview Classes Credential Credential.CertificateCredential Credential.SimCredential Credential.UserCredential HomeSp android.net.wifi.p2p Overview Interfaces WifiP2pManager.ActionListener WifiP2pManager.ChannelListener WifiP2pManager.ConnectionInfoListener WifiP2pManager.DeviceInfoListener WifiP2pManager.DiscoveryStateListener WifiP2pManager.DnsSdServiceResponseListener WifiP2pManager.DnsSdTxtRecordListener WifiP2pManager.ExternalApproverRequestListener WifiP2pManager.GroupInfoListener WifiP2pManager.NetworkInfoListener WifiP2pManager.P2pStateListener WifiP2pManager.PeerListListener WifiP2pManager.ServiceResponseListener WifiP2pManager.UpnpServiceResponseListener WifiP2pManager.WifiP2pListener Classes WifiP2pConfig WifiP2pConfig.Builder WifiP2pConnectionInfo WifiP2pDevice WifiP2pDeviceList WifiP2pDirInfo WifiP2pDiscoveryConfig WifiP2pDiscoveryConfig.Builder WifiP2pGroup WifiP2pInfo WifiP2pManager WifiP2pManager.Channel WifiP2pPairingBootstrappingConfig WifiP2pUsdBasedLocalServiceAdvertisementConfig WifiP2pUsdBasedLocalServiceAdvertisementConfig.Builder WifiP2pUsdBasedServiceDiscoveryConfig WifiP2pUsdBasedServiceDiscoveryConfig.Builder WifiP2pWfdInfo android.net.wifi.p2p.nsd Overview Classes WifiP2pDnsSdServiceInfo WifiP2pDnsSdServiceRequest WifiP2pServiceInfo WifiP2pServiceRequest WifiP2pUpnpServiceInfo WifiP2pUpnpServiceRequest WifiP2pUsdBasedServiceConfig WifiP2pUsdBasedServiceConfig.Builder WifiP2pUsdBasedServiceResponse android.net.wifi.rtt Overview Classes CivicLocationKeys PasnConfig PasnConfig.Builder RangingRequest RangingRequest.Builder RangingResult RangingResult.Builder RangingResultCallback ResponderConfig ResponderConfig.Builder ResponderLocation SecureRangingConfig SecureRangingConfig.Builder WifiRttManager android.nfc Overview Interfaces NfcAdapter.CreateBeamUrisCallback NfcAdapter.CreateNdefMessageCallback NfcAdapter.OnNdefPushCompleteCallback NfcAdapter.OnTagRemovedListener NfcAdapter.ReaderCallback Classes AvailableNfcAntenna NdefMessage NdefRecord NfcAdapter NfcAntennaInfo NfcEvent NfcManager Tag Exceptions FormatException TagLostException android.nfc.cardemulation Overview Interfaces CardEmulation.NfcEventCallback Classes CardEmulation HostApduService HostNfcFService NfcFCardEmulation OffHostApduService PollingFrame android.nfc.tech Overview Interfaces TagTechnology Classes IsoDep MifareClassic MifareUltralight Ndef NdefFormatable NfcA NfcB NfcBarcode NfcF NfcV android.opengl Overview Interfaces GLES31Ext.DebugProcKHR GLES32.DebugProc GLSurfaceView.EGLConfigChooser GLSurfaceView.EGLContextFactory GLSurfaceView.EGLWindowSurfaceFactory GLSurfaceView.GLWrapper GLSurfaceView.Renderer Classes EGL14 EGL15 EGLConfig EGLContext EGLDisplay EGLExt EGLImage EGLObjectHandle EGLSurface EGLSync ETC1 ETC1Util ETC1Util.ETC1Texture GLDebugHelper GLES10 GLES10Ext GLES11 GLES11Ext GLES20 GLES30 GLES31 GLES31Ext GLES32 GLSurfaceView GLU GLUtils Matrix Visibility Exceptions GLException android.os Overview Interfaces CancellationSignal.OnCancelListener FileUtils.ProgressListener Handler.Callback IBinder IBinder.DeathRecipient IBinder.FrozenStateChangeCallback IInterface MessageQueue.IdleHandler MessageQueue.OnFileDescriptorEventListener OutcomeReceiver Parcelable Parcelable.ClassLoaderCreator Parcelable.Creator ParcelFileDescriptor.OnCloseListener PowerManager.OnThermalHeadroomChangedListener PowerManager.OnThermalStatusChangedListener PowerManager.WakeLockStateListener RecoverySystem.ProgressListener RemoteCallbackList.Builder.InterfaceDiedCallback StrictMode.OnThreadViolationListener StrictMode.OnVmViolationListener Classes AsyncTask BaseBundle BatteryManager Binder BugreportManager BugreportManager.BugreportCallback Build Build.Partition Build.VERSION Build.VERSION_CODES Build.VERSION_CODES_FULL Bundle CancellationSignal CombinedVibration CombinedVibration.ParallelCombination ConditionVariable CountDownTimer CpuHeadroomParams CpuHeadroomParams.Builder CpuUsageInfo Debug Debug.InstructionCount Debug.MemoryInfo DropBoxManager DropBoxManager.Entry Environment FileObserver FileUtils GpuHeadroomParams GpuHeadroomParams.Builder Handler HandlerThread HardwarePropertiesManager LocaleList Looper MemoryFile Message MessageQueue Messenger Parcel ParcelFileDescriptor ParcelFileDescriptor.AutoCloseInputStream ParcelFileDescriptor.AutoCloseOutputStream ParcelUuid PatternMatcher PerformanceHintManager PerformanceHintManager.Session PersistableBundle PowerManager PowerManager.WakeLock PowerMonitor PowerMonitorReadings Process ProfilingManager ProfilingResult ProfilingTrigger ProfilingTrigger.Builder ProxyFileDescriptorCallback RecoverySystem RemoteCallbackList RemoteCallbackList.Builder ResultReceiver SecurityStateManager SharedMemory StatFs StrictMode StrictMode.ThreadPolicy StrictMode.ThreadPolicy.Builder StrictMode.VmPolicy StrictMode.VmPolicy.Builder SystemClock TestLooperManager TokenWatcher Trace UserHandle UserManager VibrationAttributes VibrationAttributes.Builder VibrationEffect VibrationEffect.BasicEnvelopeBuilder VibrationEffect.Composition VibrationEffect.WaveformEnvelopeBuilder Vibrator VibratorManager WorkDuration WorkSource Enums AsyncTask.Status Exceptions BadParcelableException DeadObjectException DeadSystemException FileUriExposedException LimitExceededException NetworkOnMainThreadException OperationCanceledException ParcelFileDescriptor.FileDescriptorDetachedException ParcelFormatException RemoteException TransactionTooLargeException UserManager.UserOperationException android.os.ext Overview Classes SdkExtensions android.os.flagging Overview Classes AconfigPackage Exceptions AconfigStorageReadException android.os.health Overview Classes HealthStats PackageHealthStats PidHealthStats ProcessHealthStats ServiceHealthStats SystemHealthManager TimerStat UidHealthStats android.os.storage Overview Classes FileManager OnObbStateChangeListener StorageManager StorageManager.StorageVolumeCallback StorageVolume android.os.storage.operations Overview Classes FileOperationEnqueueResult FileOperationRequest FileOperationRequest.Builder FileOperationResult android.os.storage.operations.sources Overview Classes AppDataFileSource OperationSource android.os.storage.operations.targets Overview Classes OperationTarget PccTarget android.os.strictmode Overview Classes CleartextNetworkViolation ContentUriWithoutPermissionViolation CredentialProtectedWhileLockedViolation CustomViolation DiskReadViolation DiskWriteViolation ExplicitGcViolation FileUriExposedViolation ImplicitDirectBootViolation IncorrectContextUseViolation InstanceCountViolation IntentReceiverLeakedViolation LeakedClosableViolation NetworkViolation NonSdkApiUsedViolation ResourceMismatchViolation ServiceConnectionLeakedViolation SqliteObjectLeakedViolation UnbufferedIoViolation UnsafeIntentLaunchViolation UntaggedSocketViolation Violation WebViewMethodCalledOnWrongThreadViolation android.os.vibrator Overview Classes HapticFeedbackRequest HapticFeedbackRequest.Builder VibratorEnvelopeEffectInfo VibratorFrequencyProfile android.preference Overview Interfaces Preference.OnPreferenceChangeListener Preference.OnPreferenceClickListener PreferenceDataStore PreferenceFragment.OnPreferenceStartFragmentCallback PreferenceManager.OnActivityDestroyListener PreferenceManager.OnActivityResultListener PreferenceManager.OnActivityStopListener Classes CheckBoxPreference DialogPreference EditTextPreference ListPreference MultiSelectListPreference Preference Preference.BaseSavedState PreferenceActivity PreferenceActivity.Header PreferenceCategory PreferenceFragment PreferenceGroup PreferenceManager PreferenceScreen RingtonePreference SwitchPreference TwoStatePreference android.print Overview Classes PageRange PrintAttributes PrintAttributes.Builder PrintAttributes.Margins PrintAttributes.MediaSize PrintAttributes.Resolution PrintDocumentAdapter PrintDocumentAdapter.LayoutResultCallback PrintDocumentAdapter.WriteResultCallback PrintDocumentInfo PrintDocumentInfo.Builder PrinterCapabilitiesInfo PrinterCapabilitiesInfo.Builder PrinterId PrinterInfo PrinterInfo.Builder PrintJob PrintJobId PrintJobInfo PrintJobInfo.Builder PrintManager android.print.pdf Overview Classes PrintedPdfDocument android.printservice Overview Classes CustomPrinterIconCallback PrintDocument PrinterDiscoverySession PrintJob PrintService android.provider Overview Interfaces BaseColumns CalendarContract.AttendeesColumns CalendarContract.CalendarAlertsColumns CalendarContract.CalendarCacheColumns CalendarContract.CalendarColumns CalendarContract.CalendarSyncColumns CalendarContract.ColorsColumns CalendarContract.EventDaysColumns CalendarContract.EventsColumns CalendarContract.ExtendedPropertiesColumns CalendarContract.RemindersColumns CalendarContract.SyncColumns Contacts.ContactMethodsColumns Contacts.ExtensionsColumns Contacts.GroupsColumns Contacts.OrganizationColumns Contacts.PeopleColumns Contacts.PhonesColumns Contacts.PhotosColumns Contacts.PresenceColumns Contacts.SettingsColumns ContactsContract.BaseSyncColumns ContactsContract.CommonDataKinds.BaseTypes ContactsContract.CommonDataKinds.CommonColumns ContactsContract.ContactNameColumns ContactsContract.ContactOptionsColumns ContactsContract.ContactsColumns ContactsContract.ContactStatusColumns ContactsContract.DataColumns ContactsContract.DataColumnsWithJoins ContactsContract.DataUsageStatColumns ContactsContract.DeletedContactsColumns ContactsContract.DisplayNameSources ContactsContract.FullNameStyle ContactsContract.GroupsColumns ContactsContract.PhoneLookupColumns ContactsContract.PhoneticNameStyle ContactsContract.PresenceColumns ContactsContract.RawContactsColumns ContactsContract.SettingsColumns ContactsContract.StatusColumns ContactsContract.SyncColumns MediaStore.Audio.AlbumColumns MediaStore.Audio.ArtistColumns MediaStore.Audio.AudioColumns MediaStore.Audio.GenresColumns MediaStore.Audio.PlaylistsColumns MediaStore.DownloadColumns MediaStore.Files.FileColumns MediaStore.Images.ImageColumns MediaStore.MediaColumns MediaStore.Video.VideoColumns OpenableColumns SyncStateContract.Columns Telephony.BaseMmsColumns Telephony.CanonicalAddressesColumns Telephony.TextBasedSmsColumns Telephony.ThreadsColumns Classes AlarmClock BlockedNumberContract BlockedNumberContract.BlockedNumbers Browser CalendarContract CalendarContract.Attendees CalendarContract.CalendarAlerts CalendarContract.CalendarCache CalendarContract.CalendarEntity CalendarContract.Calendars CalendarContract.Colors CalendarContract.EventDays CalendarContract.Events CalendarContract.EventsEntity CalendarContract.ExtendedProperties CalendarContract.Instances CalendarContract.Reminders CalendarContract.SyncState CallLog CallLog.Calls CallLog.Locations CloudMediaProvider CloudMediaProvider.CloudMediaSurfaceController CloudMediaProvider.CloudMediaSurfaceStateChangedCallback CloudMediaProviderContract CloudMediaProviderContract.AlbumColumns CloudMediaProviderContract.Capabilities CloudMediaProviderContract.Capabilities.Builder CloudMediaProviderContract.MediaCategoryColumns CloudMediaProviderContract.MediaCollectionInfo CloudMediaProviderContract.MediaColumns CloudMediaProviderContract.MediaSetColumns CloudMediaProviderContract.SearchSuggestionColumns Contacts Contacts.ContactMethods Contacts.Extensions Contacts.GroupMembership Contacts.Groups Contacts.Intents Contacts.Intents.Insert Contacts.Intents.UI Contacts.Organizations Contacts.People Contacts.People.ContactMethods Contacts.People.Extensions Contacts.People.Phones Contacts.Phones Contacts.Photos Contacts.Settings ContactsContract ContactsContract.AggregationExceptions ContactsContract.CommonDataKinds ContactsContract.CommonDataKinds.Callable ContactsContract.CommonDataKinds.Contactables ContactsContract.CommonDataKinds.Email ContactsContract.CommonDataKinds.Event ContactsContract.CommonDataKinds.GroupMembership ContactsContract.CommonDataKinds.Identity ContactsContract.CommonDataKinds.Im ContactsContract.CommonDataKinds.Nickname ContactsContract.CommonDataKinds.Note ContactsContract.CommonDataKinds.Organization ContactsContract.CommonDataKinds.Phone ContactsContract.CommonDataKinds.Photo ContactsContract.CommonDataKinds.Relation ContactsContract.CommonDataKinds.SipAddress ContactsContract.CommonDataKinds.StructuredName ContactsContract.CommonDataKinds.StructuredPostal ContactsContract.CommonDataKinds.Website ContactsContract.Contacts ContactsContract.Contacts.AggregationSuggestions ContactsContract.Contacts.AggregationSuggestions.Builder ContactsContract.Contacts.Data ContactsContract.Contacts.Entity ContactsContract.Contacts.Photo ContactsContract.Data ContactsContract.DataUsageFeedback ContactsContract.DeletedContacts ContactsContract.Directory ContactsContract.DisplayPhoto ContactsContract.Groups ContactsContract.Intents ContactsContract.Intents.Insert ContactsContract.PhoneLookup ContactsContract.PinnedPositions ContactsContract.Presence ContactsContract.Profile ContactsContract.ProfileSyncState ContactsContract.ProviderStatus ContactsContract.QuickContact ContactsContract.RawContacts ContactsContract.RawContacts.Data ContactsContract.RawContacts.DefaultAccount ContactsContract.RawContacts.DefaultAccount.DefaultAccountAndState ContactsContract.RawContacts.DisplayPhoto ContactsContract.RawContacts.Entity ContactsContract.RawContactsEntity ContactsContract.SearchSnippets ContactsContract.Settings ContactsContract.Settings.AccountAttributes ContactsContract.SimAccount ContactsContract.SimContacts ContactsContract.StatusUpdates ContactsContract.SyncState ContactsPickerSessionContract ContactsPickerSessionContract.Session DocumentsContract DocumentsContract.Document DocumentsContract.Path DocumentsContract.Root DocumentsProvider E2eeContactKeysManager E2eeContactKeysManager.E2eeContactKey E2eeContactKeysManager.E2eeSelfKey FontRequest FontsContract FontsContract.Columns FontsContract.FontFamilyResult FontsContract.FontInfo FontsContract.FontRequestCallback LiveFolders MediaStore MediaStore.Audio MediaStore.Audio.Albums MediaStore.Audio.Artists MediaStore.Audio.Artists.Albums MediaStore.Audio.Genres MediaStore.Audio.Genres.Members MediaStore.Audio.Media MediaStore.Audio.Playlists MediaStore.Audio.Playlists.Members MediaStore.Audio.Radio MediaStore.Downloads MediaStore.Files MediaStore.Images MediaStore.Images.Media MediaStore.Images.Thumbnails MediaStore.PickerMediaColumns MediaStore.Video MediaStore.Video.Media MediaStore.Video.Thumbnails SearchRecentSuggestions Settings Settings.Global Settings.NameValueTable Settings.Panel Settings.Secure Settings.System SettingsSlicesContract SimPhonebookContract SimPhonebookContract.ElementaryFiles SimPhonebookContract.SimRecords SyncStateContract SyncStateContract.Constants SyncStateContract.Helpers Telephony Telephony.CarrierId Telephony.Carriers Telephony.Mms Telephony.Mms.Addr Telephony.Mms.Draft Telephony.Mms.Inbox Telephony.Mms.Intents Telephony.Mms.Outbox Telephony.Mms.Part Telephony.Mms.Rate Telephony.Mms.Sent Telephony.MmsSms Telephony.MmsSms.PendingMessages Telephony.ServiceStateTable Telephony.Sms Telephony.Sms.Conversations Telephony.Sms.Draft Telephony.Sms.Inbox Telephony.Sms.Intents Telephony.Sms.Outbox Telephony.Sms.Sent Telephony.Threads UserDictionary UserDictionary.Words VoicemailContract VoicemailContract.Status VoicemailContract.Voicemails Exceptions Settings.SettingNotFoundException android.ranging Overview Interfaces RangingManager.RangingCapabilitiesCallback RangingSession.Callback Classes DataNotificationConfig DataNotificationConfig.Builder DlTdoaMeasurement DlTdoaMeasurement.AnchorLocation DlTdoaMeasurement.RelativeLocation DlTdoaMeasurement.Wgs84Location DlTdoaMeasurement.ZElementExtension MotionState RangingCapabilities RangingConfig RangingData RangingDataExtras RangingDevice RangingDevice.Builder RangingManager RangingMeasurement RangingPreference RangingPreference.Builder RangingSession SensorFusionParams SensorFusionParams.Builder SessionConfig SessionConfig.Builder android.ranging.ble Overview Classes BleSpecificData android.ranging.ble.cs Overview Classes BleCsRangingCapabilities BleCsRangingParams BleCsRangingParams.Builder android.ranging.ble.rssi Overview Classes BleRssiRangingParams BleRssiRangingParams.Builder android.ranging.oob Overview Interfaces TransportHandle TransportHandle.ReceiveCallback Classes DeviceHandle DeviceHandle.Builder OobInitiatorRangingConfig OobInitiatorRangingConfig.Builder OobResponderRangingConfig OobResponderRangingConfig.Builder android.ranging.raw Overview Classes RawDtTagRangingConfig RawDtTagRangingConfig.Builder RawInitiatorRangingConfig RawInitiatorRangingConfig.Builder RawRangingDevice RawRangingDevice.Builder RawResponderRangingConfig RawResponderRangingConfig.Builder android.ranging.uwb Overview Classes DlTdoaRangingParams DlTdoaRangingParams.Builder UwbAddress UwbComplexChannel UwbComplexChannel.Builder UwbRangingCapabilities UwbRangingParams UwbRangingParams.Builder UwbSpecificData android.ranging.wifi.pd Overview Classes WifiPdRangingCapabilities WifiPdRangingParams WifiPdRangingParams.Builder android.ranging.wifi.rtt Overview Classes RttRangingCapabilities RttRangingParams RttRangingParams.Builder RttStationRangingParams RttStationRangingParams.Builder WifiRttSpecificData android.renderscript Overview Interfaces Allocation.OnBufferAvailableListener Classes Allocation AllocationAdapter BaseObj Byte2 Byte3 Byte4 Double2 Double3 Double4 Element Element.Builder FieldPacker Float2 Float3 Float4 Int2 Int3 Int4 Long2 Long3 Long4 Matrix2f Matrix3f Matrix4f RenderScript RenderScript.RSErrorHandler RenderScript.RSMessageHandler Sampler Sampler.Builder Script Script.Builder Script.FieldBase Script.FieldID Script.InvokeID Script.KernelID Script.LaunchOptions ScriptC ScriptGroup ScriptGroup.Binding ScriptGroup.Builder ScriptGroup.Builder2 ScriptGroup.Closure ScriptGroup.Future ScriptGroup.Input ScriptIntrinsic ScriptIntrinsic3DLUT ScriptIntrinsicBLAS ScriptIntrinsicBlend ScriptIntrinsicBlur ScriptIntrinsicColorMatrix ScriptIntrinsicConvolve3x3 ScriptIntrinsicConvolve5x5 ScriptIntrinsicHistogram ScriptIntrinsicLUT ScriptIntrinsicResize ScriptIntrinsicYuvToRGB Short2 Short3 Short4 Type Type.Builder Enums Allocation.MipmapControl Element.DataKind Element.DataType RenderScript.ContextType RenderScript.Priority Sampler.Value Type.CubemapFace Exceptions RSDriverException RSIllegalArgumentException RSInvalidStateException RSRuntimeException android.sax Overview Interfaces ElementListener EndElementListener EndTextElementListener StartElementListener TextElementListener Classes Element RootElement android.se.omapi Overview Interfaces SEService.OnConnectedListener Classes Channel Reader SEService Session android.security Overview Interfaces KeyChainAliasCallback Classes AppUriAuthenticationPolicy AppUriAuthenticationPolicy.Builder AttestedKeyPair ConfirmationCallback ConfirmationPrompt ConfirmationPrompt.Builder FileIntegrityManager KeyChain KeyPairGeneratorSpec KeyPairGeneratorSpec.Builder KeyStoreParameter KeyStoreParameter.Builder NetworkSecurityPolicy Exceptions ConfirmationAlreadyPresentingException ConfirmationNotAvailableException KeyChainException KeyStoreException android.security.advancedprotection Overview Interfaces AdvancedProtectionManager.Callback Classes AdvancedProtectionManager android.security.identity Overview Interfaces CredentialDataResult.Entries Classes AccessControlProfile AccessControlProfile.Builder AccessControlProfileId AuthenticationKeyMetadata CredentialDataRequest CredentialDataRequest.Builder CredentialDataResult IdentityCredential IdentityCredentialStore PersonalizationData PersonalizationData.Builder PresentationSession ResultData WritableIdentityCredential Exceptions AlreadyPersonalizedException CipherSuiteNotSupportedException DocTypeNotSupportedException EphemeralPublicKeyNotFoundException IdentityCredentialException InvalidReaderSignatureException InvalidRequestMessageException MessageDecryptionException NoAuthenticationKeyAvailableException SessionTranscriptMismatchException UnknownAuthenticationKeyException android.security.keystore Overview Classes KeyGenParameterSpec KeyGenParameterSpec.Builder KeyInfo KeyProperties KeyProtection KeyProtection.Builder KeyStoreManager WrappedKeyEntry Exceptions BackendBusyException KeyExpiredException KeyNotYetValidException KeyPermanentlyInvalidatedException SecureKeyImportUnavailableException StrongBoxUnavailableException UserNotAuthenticatedException UserPresenceUnavailableException android.service.assist.classification Overview Classes FieldClassification android.service.autofill Overview Interfaces OnClickAction Sanitizer SavedDatasetsInfoCallback Transformation Validator Classes AutofillService BatchUpdates BatchUpdates.Builder CharSequenceTransformation CharSequenceTransformation.Builder CustomDescription CustomDescription.Builder Dataset Dataset.Builder DateTransformation DateValueSanitizer Field Field.Builder FieldClassification FieldClassification.Match FillCallback FillContext FillEventHistory FillEventHistory.Event FillRequest FillResponse FillResponse.Builder ImageTransformation ImageTransformation.Builder InlinePresentation LuhnChecksumValidator Presentations Presentations.Builder RegexValidator SaveCallback SavedDatasetsInfo SaveInfo SaveInfo.Builder SaveRequest TextValueSanitizer UserData UserData.Builder Validators VisibilitySetterAction VisibilitySetterAction.Builder android.service.carrier Overview Interfaces CarrierMessagingService.ResultCallback Classes CarrierIdentifier CarrierMessagingClientService CarrierMessagingService CarrierMessagingService.SendMmsResult CarrierMessagingService.SendMultipartSmsResult CarrierMessagingService.SendSmsResult CarrierService MessagePdu android.service.chooser Overview Interfaces AdditionalContentContract AdditionalContentContract.Columns AdditionalContentContract.CursorExtraKeys AdditionalContentContract.MethodNames ChooserSession.StateListener Classes ChooserAction ChooserAction.Builder ChooserManager ChooserResult ChooserSession ChooserSessionToken ChooserTarget ChooserTargetService android.service.controls Overview Classes Control Control.StatefulBuilder Control.StatelessBuilder ControlsProviderService DeviceTypes android.service.controls.actions Overview Classes BooleanAction CommandAction ControlAction FloatAction ModeAction android.service.controls.templates Overview Classes ControlButton ControlTemplate RangeTemplate StatelessTemplate TemperatureControlTemplate ThumbnailTemplate ToggleRangeTemplate ToggleTemplate android.service.credentials Overview Classes Action BeginCreateCredentialRequest BeginCreateCredentialResponse BeginCreateCredentialResponse.Builder BeginGetCredentialOption BeginGetCredentialRequest BeginGetCredentialRequest.Builder BeginGetCredentialResponse BeginGetCredentialResponse.Builder CallingAppInfo ClearCredentialStateRequest CreateCredentialRequest CreateEntry CredentialEntry CredentialProviderService GetCredentialRequest RemoteEntry android.service.dreams Overview Classes DreamService android.service.media Overview Classes CameraPrewarmService MediaBrowserService MediaBrowserService.BrowserRoot MediaBrowserService.Result android.service.messaging Overview Classes AlternativeMessageTransportService android.service.notification Overview Classes Condition ConditionProviderService NotificationListenerService NotificationListenerService.Ranking NotificationListenerService.RankingMap StatusBarNotification ZenDeviceEffects ZenDeviceEffects.Builder ZenPolicy ZenPolicy.Builder android.service.persistentdata Overview Classes PersistentDataBlockManager android.service.quickaccesswallet Overview Interfaces GetWalletCardsCallback Classes GetWalletCardsError GetWalletCardsRequest GetWalletCardsResponse QuickAccessWalletService SelectWalletCardRequest WalletCard WalletCard.Builder WalletServiceEvent android.service.quicksettings Overview Classes Tile TileService android.service.restrictions Overview Classes RestrictionsReceiver android.service.settings.preferences Overview Classes GetValueRequest GetValueRequest.Builder GetValueResult GetValueResult.Builder MetadataRequest MetadataRequest.Builder MetadataResult MetadataResult.Builder SettingsPreferenceMetadata SettingsPreferenceMetadata.Builder SettingsPreferenceService SettingsPreferenceServiceClient SettingsPreferenceValue SettingsPreferenceValue.Builder SetValueRequest SetValueRequest.Builder SetValueResult SetValueResult.Builder android.service.textservice Overview Classes SpellCheckerService SpellCheckerService.Session android.service.voice Overview Interfaces VoiceInteractionSession.VisibleActivityCallback Classes VisibleActivityInfo VoiceInteractionService VoiceInteractionSession VoiceInteractionSession.AbortVoiceRequest VoiceInteractionSession.ActivityId VoiceInteractionSession.AssistState VoiceInteractionSession.CommandRequest VoiceInteractionSession.CompleteVoiceRequest VoiceInteractionSession.ConfirmationRequest VoiceInteractionSession.Insets VoiceInteractionSession.PickOptionRequest VoiceInteractionSession.Request VoiceInteractionSessionService android.service.vr Overview Classes VrListenerService android.service.wallpaper Overview Classes WallpaperService WallpaperService.Engine android.speech Overview Interfaces ModelDownloadListener RecognitionListener RecognitionSupportCallback Classes AlternativeSpan AlternativeSpans RecognitionPart RecognitionPart.Builder RecognitionService RecognitionService.Callback RecognitionService.SupportCallback RecognitionSupport RecognitionSupport.Builder RecognizerIntent RecognizerResultsIntent SpeechRecognizer android.speech.tts Overview Interfaces SynthesisCallback TextToSpeech.OnInitListener TextToSpeech.OnUtteranceCompletedListener Classes SynthesisRequest TextToSpeech TextToSpeech.Engine TextToSpeech.EngineInfo TextToSpeechService UtteranceProgressListener Voice android.system Overview Classes Int64Ref Os OsConstants StructCmsghdr StructDlInfo StructMsghdr StructPollfd StructStat StructStatVfs StructTimespec StructTimeval StructUtsname SystemCleaner VmSocketAddress Exceptions ErrnoException android.telecom Overview Interfaces CallControlCallback CallEventCallback Classes Call Call.Callback Call.Details Call.RttCall CallAttributes CallAttributes.Builder CallAudioState CallControl CallEndpoint CallRedirectionService CallScreeningService CallScreeningService.CallResponse CallScreeningService.CallResponse.Builder Conference Conferenceable Connection Connection.RttModifyStatus Connection.RttTextStream Connection.VideoProvider ConnectionRequest ConnectionService DisconnectCause GatewayInfo InCallService InCallService.VideoCall InCallService.VideoCall.Callback PhoneAccount PhoneAccount.Builder PhoneAccountHandle PhoneAccountSuggestion RemoteConference RemoteConference.Callback RemoteConnection RemoteConnection.Callback RemoteConnection.VideoProvider RemoteConnection.VideoProvider.Callback StatusHints TelecomManager VideoProfile VideoProfile.CameraCapabilities Exceptions CallEndpointException CallException QueryLocationException android.telephony Overview Interfaces CarrierConfigManager.CarrierConfigChangeListener TelephonyCallback.ActiveDataSubscriptionIdListener TelephonyCallback.BarringInfoListener TelephonyCallback.CallDisconnectCauseListener TelephonyCallback.CallForwardingIndicatorListener TelephonyCallback.CallStateListener TelephonyCallback.CarrierNetworkListener TelephonyCallback.CarrierRoamingNtnListener TelephonyCallback.CellInfoListener TelephonyCallback.CellLocationListener TelephonyCallback.DataActivationStateListener TelephonyCallback.DataActivityListener TelephonyCallback.DataConnectionStateListener TelephonyCallback.DisplayInfoListener TelephonyCallback.EmergencyNumberListListener TelephonyCallback.ImsCallDisconnectCauseListener TelephonyCallback.MessageWaitingIndicatorListener TelephonyCallback.PhysicalChannelConfigListener TelephonyCallback.PreciseDataConnectionStateListener TelephonyCallback.RegistrationFailedListener TelephonyCallback.ServiceStateListener TelephonyCallback.SignalStrengthsListener TelephonyCallback.UserMobileDataStateListener Classes AccessNetworkConstants AccessNetworkConstants.AccessNetworkType AccessNetworkConstants.EutranBand AccessNetworkConstants.GeranBand AccessNetworkConstants.NgranBands AccessNetworkConstants.UtranBand AvailableNetworkInfo AvailableNetworkInfo.Builder BarringInfo BarringInfo.BarringServiceInfo CarrierConfigManager CarrierConfigManager.Apn CarrierConfigManager.Bsf CarrierConfigManager.Gps CarrierConfigManager.Ims CarrierConfigManager.ImsEmergency CarrierConfigManager.ImsRtt CarrierConfigManager.ImsServiceEntitlement CarrierConfigManager.ImsSms CarrierConfigManager.ImsSs CarrierConfigManager.ImsVoice CarrierConfigManager.ImsVt CarrierConfigManager.ImsWfc CarrierConfigManager.Iwlan CellIdentity CellIdentityCdma CellIdentityGsm CellIdentityLte CellIdentityNr CellIdentityTdscdma CellIdentityWcdma CellInfo CellInfoCdma CellInfoGsm CellInfoLte CellInfoNr CellInfoTdscdma CellInfoWcdma CellLocation CellSignalStrength CellSignalStrengthCdma CellSignalStrengthGsm CellSignalStrengthLte CellSignalStrengthNr CellSignalStrengthTdscdma CellSignalStrengthWcdma ClosedSubscriberGroupInfo DataFailCause DisconnectCause IccOpenLogicalChannelResponse MbmsDownloadSession MbmsGroupCallSession MbmsStreamingSession NeighboringCellInfo NetworkRegistrationInfo NetworkScan NetworkScanRequest ParsedPhoneNumber PhoneNumberFormattingTextWatcher PhoneNumberManager PhoneNumberUtils PhoneStateListener PhysicalChannelConfig PreciseDataConnectionState RadioAccessSpecifier ServiceState SignalStrength SignalStrengthUpdateRequest SignalStrengthUpdateRequest.Builder SignalThresholdInfo SignalThresholdInfo.Builder SmsManager SmsManager.FinancialSmsCallback SmsMessage SmsMessage.SubmitPdu SubscriptionInfo SubscriptionManager SubscriptionManager.OnOpportunisticSubscriptionsChangedListener SubscriptionManager.OnSubscriptionsChangedListener SubscriptionPlan SubscriptionPlan.Builder TelephonyCallback TelephonyDisplayInfo TelephonyManager TelephonyManager.CellInfoCallback TelephonyManager.UssdResponseCallback TelephonyScanManager TelephonyScanManager.NetworkScanCallback UiccCardInfo UiccPortInfo VisualVoicemailService VisualVoicemailService.VisualVoicemailTask VisualVoicemailSms VisualVoicemailSmsFilterSettings VisualVoicemailSmsFilterSettings.Builder Enums SmsMessage.MessageClass Exceptions TelephonyManager.CallComposerException TelephonyManager.ModemErrorException TelephonyManager.NetworkSlicingException TelephonyManager.TimeoutException android.telephony.cdma Overview Classes CdmaCellLocation android.telephony.data Overview Classes ApnSetting ApnSetting.Builder NetworkSliceInfo NetworkSliceInfo.Builder NetworkSlicingConfig RouteSelectionDescriptor TrafficDescriptor TrafficDescriptor.Builder UrspRule android.telephony.emergency Overview Classes EmergencyNumber android.telephony.euicc Overview Classes DownloadableSubscription DownloadableSubscription.Builder EuiccInfo EuiccManager android.telephony.gsm Overview Classes GsmCellLocation SmsManager SmsMessage SmsMessage.SubmitPdu Enums SmsMessage.MessageClass android.telephony.ims Overview Interfaces RegistrationManager Classes ImsManager ImsMmTelManager ImsMmTelManager.CapabilityCallback ImsRcsManager ImsReasonInfo ImsRegistrationAttributes ImsStateCallback ProvisioningManager ProvisioningManager.FeatureProvisioningCallback RcsUceAdapter RegistrationManager.RegistrationCallback SipDetails Exceptions ImsException android.telephony.ims.feature Overview Classes MmTelFeature MmTelFeature.MmTelCapabilities android.telephony.ims.stub Overview Classes ImsRegistrationImplBase android.telephony.mbms Overview Interfaces GroupCallCallback MbmsGroupCallSessionCallback Classes DownloadProgressListener DownloadRequest DownloadRequest.Builder DownloadStatusListener FileInfo FileServiceInfo GroupCall MbmsDownloadReceiver MbmsDownloadSessionCallback MbmsErrors MbmsErrors.DownloadErrors MbmsErrors.GeneralErrors MbmsErrors.GroupCallErrors MbmsErrors.InitializationErrors MbmsErrors.StreamingErrors MbmsStreamingSessionCallback ServiceInfo StreamingService StreamingServiceCallback StreamingServiceInfo android.telephony.satellite Overview Interfaces SatelliteStateChangeListener Classes NtnSignalStrength SatelliteManager android.test Overview Annotations FlakyTest RepetitiveTest UiThreadTest Interfaces PerformanceTestCase PerformanceTestCase.Intermediates TestSuiteProvider Classes ActivityInstrumentationTestCase ActivityInstrumentationTestCase2 ActivityTestCase ActivityUnitTestCase AndroidTestCase AndroidTestRunner ApplicationTestCase InstrumentationTestCase InstrumentationTestRunner InstrumentationTestSuite IsolatedContext LaunchPerformanceBase LoaderTestCase MoreAsserts ProviderTestCase ProviderTestCase2 RenamingDelegatingContext ServiceTestCase SingleLaunchActivityTestCase SyncBaseInstrumentation TouchUtils ViewAsserts Errors AssertionFailedError ComparisonFailure android.test.mock Overview Classes MockAccountManager MockApplication MockContentProvider MockContentResolver MockContext MockCursor MockDialogInterface MockPackageManager MockResources MockService android.test.suitebuilder Overview Classes TestMethod TestSuiteBuilder TestSuiteBuilder.FailedToCreateTests UnitTestSuiteBuilder android.test.suitebuilder.annotation Overview Annotations LargeTest MediumTest SmallTest Smoke Suppress android.text Overview Interfaces Editable GetChars Html.ImageGetter Html.TagHandler InputFilter InputType Layout.TextInclusionStrategy NoCopySpan ParcelableSpan Spannable Spanned SpanWatcher TextDirectionHeuristic TextShaper.GlyphsConsumer TextUtils.EllipsizeCallback TextUtils.StringSplitter TextWatcher Classes AlteredCharSequence AndroidCharacter Annotation AutoText BidiFormatter BidiFormatter.Builder BoringLayout BoringLayout.Metrics ClipboardManager DynamicLayout DynamicLayout.Builder Editable.Factory EmojiConsistency GraphemeClusterSegmentFinder Highlights Highlights.Builder Html InputFilter.AllCaps InputFilter.LengthFilter Layout Layout.Builder Layout.Directions LoginFilter LoginFilter.PasswordFilterGMail LoginFilter.UsernameFilterGeneric LoginFilter.UsernameFilterGMail NoCopySpan.Concrete PrecomputedText PrecomputedText.Params PrecomputedText.Params.Builder SegmentFinder SegmentFinder.PrescribedSegmentFinder Selection ShowSecretsSetting Spannable.Factory SpannableString SpannableStringBuilder SpannedString StaticLayout StaticLayout.Builder TextDirectionHeuristics TextPaint TextShaper TextUtils TextUtils.SimpleStringSplitter WordSegmentFinder Enums Layout.Alignment TextUtils.TruncateAt android.text.format Overview Classes DateFormat DateUtils Formatter Time android.text.method Overview Interfaces KeyListener MovementMethod TransformationMethod Classes ArrowKeyMovementMethod BaseKeyListener BaseMovementMethod CharacterPickerDialog DateKeyListener DateTimeKeyListener DialerKeyListener DigitsKeyListener HideReturnsTransformationMethod LinkMovementMethod MetaKeyKeyListener MultiTapKeyListener NumberKeyListener PasswordTransformationMethod QwertyKeyListener ReplacementTransformationMethod ScrollingMovementMethod SingleLineTransformationMethod TextKeyListener TimeKeyListener Touch Enums TextKeyListener.Capitalize android.text.style Overview Interfaces AlignmentSpan LeadingMarginSpan LeadingMarginSpan.LeadingMarginSpan2 LineBackgroundSpan LineHeightSpan LineHeightSpan.WithDensity ParagraphStyle TabStopSpan UpdateAppearance UpdateLayout WrapTogetherSpan Classes AbsoluteSizeSpan AlignmentSpan.Standard BackgroundColorSpan BulletSpan CharacterStyle ClickableSpan DrawableMarginSpan DynamicDrawableSpan EasyEditSpan ForegroundColorSpan IconMarginSpan ImageSpan LeadingMarginSpan.Standard LineBackgroundSpan.Standard LineBreakConfigSpan LineHeightSpan.Standard LocaleSpan MaskFilterSpan MetricAffectingSpan NoWritingToolsSpan QuoteSpan RelativeSizeSpan ReplacementSpan ScaleXSpan StrikethroughSpan StyleSpan SubscriptSpan SuggestionRangeSpan SuggestionSpan SuperscriptSpan TabStopSpan.Standard TextAppearanceSpan TtsSpan TtsSpan.Builder TtsSpan.CardinalBuilder TtsSpan.DateBuilder TtsSpan.DecimalBuilder TtsSpan.DigitsBuilder TtsSpan.DurationBuilder TtsSpan.ElectronicBuilder TtsSpan.FractionBuilder TtsSpan.MeasureBuilder TtsSpan.MoneyBuilder TtsSpan.OrdinalBuilder TtsSpan.SemioticClassBuilder TtsSpan.TelephoneBuilder TtsSpan.TextBuilder TtsSpan.TimeBuilder TtsSpan.VerbatimBuilder TypefaceSpan UnderlineSpan URLSpan android.text.util Overview Interfaces Linkify.MatchFilter Linkify.TransformFilter Classes Linkify Rfc822Token Rfc822Tokenizer android.transition Overview Interfaces Transition.TransitionListener Classes ArcMotion AutoTransition ChangeBounds ChangeClipBounds ChangeImageTransform ChangeScroll ChangeTransform CircularPropagation Explode Fade PathMotion PatternPathMotion Scene SidePropagation Slide Transition Transition.EpicenterCallback TransitionInflater TransitionListenerAdapter TransitionManager TransitionPropagation TransitionSet TransitionValues Visibility VisibilityPropagation android.util Overview Interfaces AttributeSet Dumpable DumpableContainer Printer Classes ArrayMap ArraySet AtomicFile Base64 Base64InputStream Base64OutputStream CloseGuard Config DebugUtils DisplayMetrics EventLog EventLog.Event EventLogTags EventLogTags.Description FloatMath FloatProperty Half IntProperty JsonReader JsonWriter LayoutDirection Log LogPrinter LongSparseArray LruCache MonthDisplayHelper MutableBoolean MutableByte MutableChar MutableDouble MutableFloat MutableInt MutableLong MutableShort Pair Patterns PrintStreamPrinter PrintWriterPrinter Property Range Rational Size SizeF SparseArray SparseBooleanArray SparseIntArray SparseLongArray StateSet StatsLog StringBuilderPrinter TimeUtils TimingLogger TypedValue Xml Enums JsonToken Xml.Encoding Exceptions AndroidException AndroidRuntimeException Base64DataException MalformedJsonException NoSuchPropertyException TimeFormatException android.util.proto Overview Classes ProtoOutputStream android.view Overview Annotations ViewDebug.CapturedViewProperty ViewDebug.ExportedProperty ViewDebug.FlagToString ViewDebug.IntToString Interfaces ActionMode.Callback ActionProvider.VisibilityListener AttachedSurfaceControl AttachedSurfaceControl.OnBufferTransformHintChangedListener Choreographer.FrameCallback Choreographer.VsyncCallback CollapsibleActionView ContextMenu ContextMenu.ContextMenuInfo GestureDetector.OnContextClickListener GestureDetector.OnDoubleTapListener GestureDetector.OnGestureListener InputQueue.Callback KeyEvent.Callback LayoutInflater.Factory LayoutInflater.Factory2 LayoutInflater.Filter Menu MenuItem MenuItem.OnActionExpandListener MenuItem.OnMenuItemClickListener OnReceiveContentListener PixelCopy.OnPixelCopyFinishedListener ScaleGestureDetector.OnScaleGestureListener ScrollCaptureCallback ScrollFeedbackProvider SubMenu SurfaceControl.OnJankDataListener SurfaceControl.TransactionCommittedListener SurfaceControlInputReceiver SurfaceHolder SurfaceHolder.Callback SurfaceHolder.Callback2 TextureView.SurfaceTextureListener View.CalledFromWrongThreadListener View.OnApplyWindowInsetsListener View.OnAttachStateChangeListener View.OnCapturedPointerListener View.OnClickListener View.OnContextClickListener View.OnCreateContextMenuListener View.OnDragListener View.OnFocusChangeListener View.OnGenericMotionListener View.OnHoverListener View.OnKeyListener View.OnLayoutChangeListener View.OnLongClickListener View.OnScrollChangeListener View.OnSystemUiVisibilityChangeListener View.OnTouchListener View.OnUnhandledKeyEventListener ViewGroup.OnHierarchyChangeListener ViewManager ViewParent ViewStub.OnInflateListener ViewTreeObserver.OnDrawListener ViewTreeObserver.OnGlobalFocusChangeListener ViewTreeObserver.OnGlobalLayoutListener ViewTreeObserver.OnPreDrawListener ViewTreeObserver.OnScrollChangedListener ViewTreeObserver.OnTouchModeChangeListener ViewTreeObserver.OnWindowAttachListener ViewTreeObserver.OnWindowFocusChangeListener ViewTreeObserver.OnWindowVisibilityChangeListener Window.Callback Window.OnFrameMetricsAvailableListener Window.OnRestrictedCaptionAreaChangedListener WindowInsetsAnimationController WindowInsetsAnimationControlListener WindowInsetsController WindowInsetsController.OnControllableInsetsChangedListener WindowManager Classes AbsSavedState ActionMode ActionMode.Callback2 ActionProvider BlurRegion Choreographer Choreographer.FrameData Choreographer.FrameTimeline ContentInfo ContentInfo.Builder ContextThemeWrapper Display Display.HdrCapabilities Display.Mode DisplayCutout DisplayCutout.Builder DisplayShape DragAndDropPermissions DragEvent FocusFinder FrameMetrics FrameRateVelocityPoint FrameStats GestureDetector GestureDetector.SimpleOnGestureListener Gravity HapticFeedbackConstants InputDevice InputDevice.MotionRange InputDevice.ViewBehavior InputEvent InputQueue KeyboardShortcutGroup KeyboardShortcutInfo KeyCharacterMap KeyCharacterMap.KeyData KeyEvent KeyEvent.DispatcherState LayoutInflater MenuInflater MotionEvent MotionEvent.PointerCoords MotionEvent.PointerProperties MotionPredictor OrientationEventListener OrientationListener PixelCopy PixelCopy.Request PixelCopy.Request.Builder PixelCopy.Result PointerIcon RoundedCorner RoundedRectBlurRegion ScaleGestureDetector ScaleGestureDetector.SimpleOnScaleGestureListener ScrollCaptureSession ScrollCaptureTarget SearchEvent SoundEffectConstants Surface SurfaceControl SurfaceControl.Builder SurfaceControl.JankData SurfaceControl.OnJankDataListenerRegistration SurfaceControl.Transaction SurfaceControl.TransactionStats SurfaceControl.TrustedPresentationThresholds SurfaceControlViewHost SurfaceControlViewHost.LayoutParams SurfaceControlViewHost.SurfacePackage SurfaceView TextureView TouchDelegate VelocityTracker VerifiedInputEvent VerifiedKeyEvent VerifiedMotionEvent View View.AccessibilityDelegate View.BaseSavedState View.DragShadowBuilder View.MeasureSpec ViewAnimationUtils ViewConfiguration ViewDebug ViewGroup ViewGroup.LayoutParams ViewGroup.MarginLayoutParams ViewGroupOverlay ViewOutlineProvider ViewOverlay ViewPropertyAnimator ViewStructure ViewStructure.HtmlInfo ViewStructure.HtmlInfo.Builder ViewStub ViewTreeObserver Window WindowAnimationFrameStats WindowContentFrameStats WindowId WindowId.FocusObserver WindowInsets WindowInsets.Builder WindowInsets.Side WindowInsets.Type WindowInsetsAnimation WindowInsetsAnimation.Bounds WindowInsetsAnimation.Callback WindowManager.LayoutParams WindowMetrics Enums ViewDebug.HierarchyTraceType ViewDebug.RecyclerTraceType Exceptions InflateException KeyCharacterMap.UnavailableException Surface.OutOfResourcesException SurfaceHolder.BadSurfaceTypeException WindowManager.BadTokenException WindowManager.InvalidDisplayException android.view.accessibility Overview Interfaces AccessibilityEventSource AccessibilityManager.AccessibilityServicesStateChangeListener AccessibilityManager.AccessibilityStateChangeListener AccessibilityManager.AudioDescriptionRequestedChangeListener AccessibilityManager.HighContrastTextStateChangeListener AccessibilityManager.TouchExplorationStateChangeListener Classes AccessibilityEvent AccessibilityManager AccessibilityNodeInfo AccessibilityNodeInfo.AccessibilityAction AccessibilityNodeInfo.CollectionInfo AccessibilityNodeInfo.CollectionInfo.Builder AccessibilityNodeInfo.CollectionItemInfo AccessibilityNodeInfo.CollectionItemInfo.Builder AccessibilityNodeInfo.ExtraRenderingInfo AccessibilityNodeInfo.ExtraRenderingInfo.Builder AccessibilityNodeInfo.MathInfo AccessibilityNodeInfo.RangeInfo AccessibilityNodeInfo.Selection AccessibilityNodeInfo.SelectionPosition AccessibilityNodeInfo.StructuredDataInfo AccessibilityNodeInfo.TouchDelegateInfo AccessibilityNodeProvider AccessibilityRecord AccessibilityRequestPreparer AccessibilityWindowInfo CaptioningManager CaptioningManager.CaptioningChangeListener CaptioningManager.CaptionStyle android.view.animation Overview Interfaces Animation.AnimationListener Interpolator Classes AccelerateDecelerateInterpolator AccelerateInterpolator AlphaAnimation Animation Animation.Description AnimationSet AnimationUtils AnticipateInterpolator AnticipateOvershootInterpolator BaseInterpolator BounceInterpolator CycleInterpolator DecelerateInterpolator GridLayoutAnimationController GridLayoutAnimationController.AnimationParameters LayoutAnimationController LayoutAnimationController.AnimationParameters LinearInterpolator OvershootInterpolator PathInterpolator RotateAnimation ScaleAnimation Transformation TranslateAnimation android.view.autofill Overview Classes AutofillId AutofillManager AutofillManager.AutofillCallback AutofillNoiseInjectedData AutofillValue VirtualViewFillInfo VirtualViewFillInfo.Builder android.view.contentcapture Overview Interfaces DataShareWriteAdapter Classes ContentCaptureCondition ContentCaptureContext ContentCaptureContext.Builder ContentCaptureManager ContentCaptureSession ContentCaptureSessionId DataRemovalRequest DataRemovalRequest.Builder DataRemovalRequest.LocusIdRequest DataShareRequest android.view.displayhash Overview Interfaces DisplayHashResultCallback Classes DisplayHash DisplayHashManager VerifiedDisplayHash android.view.inputmethod Overview Interfaces ConnectionlessHandwritingCallback InputConnection InputMethod InputMethod.SessionCallback InputMethodSession InputMethodSession.EventCallback Classes BaseInputConnection CompletionInfo CorrectionInfo CursorAnchorInfo CursorAnchorInfo.Builder DeleteGesture DeleteGesture.Builder DeleteRangeGesture DeleteRangeGesture.Builder EditorBoundsInfo EditorBoundsInfo.Builder EditorInfo ExtractedText ExtractedTextRequest HandwritingGesture InlineSuggestion InlineSuggestionInfo InlineSuggestionsRequest InlineSuggestionsRequest.Builder InlineSuggestionsResponse InputBinding InputConnectionWrapper InputContentInfo InputMethodInfo InputMethodManager InputMethodSubtype InputMethodSubtype.InputMethodSubtypeBuilder InsertGesture InsertGesture.Builder InsertModeGesture InsertModeGesture.Builder JoinOrSplitGesture JoinOrSplitGesture.Builder PreviewableHandwritingGesture RemoveSpaceGesture RemoveSpaceGesture.Builder SelectGesture SelectGesture.Builder SelectRangeGesture SelectRangeGesture.Builder SurroundingText TextAppearanceInfo TextAppearanceInfo.Builder TextAttribute TextAttribute.Builder TextBoundsInfo TextBoundsInfo.Builder TextBoundsInfoResult TextSnapshot android.view.inspector Overview Interfaces InspectionCompanion InspectionCompanionProvider PropertyMapper PropertyReader Classes IntFlagMapping StaticInspectionCompanionProvider WindowInspector Exceptions InspectionCompanion.UninitializedPropertyMapException PropertyMapper.PropertyConflictException PropertyReader.PropertyTypeMismatchException android.view.textclassifier Overview Interfaces TextClassificationSessionFactory TextClassifier Classes ConversationAction ConversationAction.Builder ConversationActions ConversationActions.Message ConversationActions.Message.Builder ConversationActions.Request ConversationActions.Request.Builder SelectionEvent TextClassification TextClassification.Builder TextClassification.Request TextClassification.Request.Builder TextClassificationContext TextClassificationContext.Builder TextClassificationManager TextClassificationSessionId TextClassifier.EntityConfig TextClassifier.EntityConfig.Builder TextClassifierEvent TextClassifierEvent.Builder TextClassifierEvent.ConversationActionsEvent TextClassifierEvent.ConversationActionsEvent.Builder TextClassifierEvent.LanguageDetectionEvent TextClassifierEvent.LanguageDetectionEvent.Builder TextClassifierEvent.TextLinkifyEvent TextClassifierEvent.TextLinkifyEvent.Builder TextClassifierEvent.TextSelectionEvent TextClassifierEvent.TextSelectionEvent.Builder TextLanguage TextLanguage.Builder TextLanguage.Request TextLanguage.Request.Builder TextLinks TextLinks.Builder TextLinks.Request TextLinks.Request.Builder TextLinks.TextLink TextLinks.TextLinkSpan TextSelection TextSelection.Builder TextSelection.Request TextSelection.Request.Builder android.view.textservice Overview Interfaces SpellCheckerSession.SpellCheckerSessionListener Classes SentenceSuggestionsInfo SpellCheckerInfo SpellCheckerSession SpellCheckerSession.SpellCheckerSessionParams SpellCheckerSession.SpellCheckerSessionParams.Builder SpellCheckerSubtype SuggestionsInfo TextInfo TextServicesManager android.view.translation Overview Interfaces UiTranslationStateCallback ViewTranslationCallback Classes TranslationCapability TranslationContext TranslationContext.Builder TranslationManager TranslationRequest TranslationRequest.Builder TranslationRequestValue TranslationResponse TranslationResponse.Builder TranslationResponseValue TranslationResponseValue.Builder TranslationSpec Translator UiTranslationManager ViewTranslationRequest ViewTranslationRequest.Builder ViewTranslationResponse ViewTranslationResponse.Builder android.webkit Overview Annotations JavascriptInterface Interfaces DownloadListener GeolocationPermissions.Callback PluginStub ValueCallback WebChromeClient.CustomViewCallback WebIconDatabase.IconListener WebResourceRequest WebStorage.QuotaUpdater WebView.FindListener WebView.PictureListener Classes ClientCertRequest ConsoleMessage CookieManager CookieSyncManager DateSorter GeolocationPermissions HttpAuthHandler JsPromptResult JsResult MimeTypeMap PermissionRequest RenderProcessGoneDetail SafeBrowsingResponse ServiceWorkerClient ServiceWorkerController ServiceWorkerWebSettings SslErrorHandler TracingConfig TracingConfig.Builder TracingController URLUtil WebBackForwardList WebChromeClient WebChromeClient.FileChooserParams WebHistoryItem WebIconDatabase WebMessage WebMessagePort WebMessagePort.WebMessageCallback WebResourceError WebResourceResponse WebSettings WebStorage WebStorage.Origin WebView WebView.HitTestResult WebView.VisualStateCallback WebView.WebViewTransport WebViewClient WebViewDatabase WebViewFragment WebViewRenderProcess WebViewRenderProcessClient Enums ConsoleMessage.MessageLevel WebSettings.LayoutAlgorithm WebSettings.PluginState WebSettings.RenderPriority WebSettings.TextSize WebSettings.ZoomDensity android.widget Overview Annotations RemoteViews.RemoteView Interfaces AbsListView.MultiChoiceModeListener AbsListView.OnScrollListener AbsListView.RecyclerListener AbsListView.SelectionBoundsAdjuster ActionMenuView.OnMenuItemClickListener Adapter AdapterView.OnItemClickListener AdapterView.OnItemLongClickListener AdapterView.OnItemSelectedListener Advanceable AutoCompleteTextView.OnDismissListener AutoCompleteTextView.Validator CalendarView.OnDateChangeListener Checkable Chronometer.OnChronometerTickListener CompoundButton.OnCheckedChangeListener DatePicker.OnDateChangedListener ExpandableListAdapter ExpandableListView.OnChildClickListener ExpandableListView.OnGroupClickListener ExpandableListView.OnGroupCollapseListener ExpandableListView.OnGroupExpandListener Filter.FilterListener Filterable FilterQueryProvider HeterogeneousExpandableList ListAdapter MediaController.MediaPlayerControl MultiAutoCompleteTextView.Tokenizer NumberPicker.Formatter NumberPicker.OnScrollListener NumberPicker.OnValueChangeListener PopupMenu.OnDismissListener PopupMenu.OnMenuItemClickListener PopupWindow.OnDismissListener RadioGroup.OnCheckedChangeListener RatingBar.OnRatingBarChangeListener RemoteViewsService.RemoteViewsFactory SearchView.OnCloseListener SearchView.OnQueryTextListener SearchView.OnSuggestionListener SectionIndexer SeekBar.OnSeekBarChangeListener ShareActionProvider.OnShareTargetSelectedListener SimpleAdapter.ViewBinder SimpleCursorAdapter.CursorToStringConverter SimpleCursorAdapter.ViewBinder SimpleCursorTreeAdapter.ViewBinder SlidingDrawer.OnDrawerCloseListener SlidingDrawer.OnDrawerOpenListener SlidingDrawer.OnDrawerScrollListener SpinnerAdapter TabHost.OnTabChangeListener TabHost.TabContentFactory TextView.OnEditorActionListener ThemedSpinnerAdapter TimePicker.OnTimeChangedListener Toolbar.OnMenuItemClickListener ViewSwitcher.ViewFactory WrapperListAdapter ZoomButtonsController.OnZoomListener Classes AbsListView AbsListView.LayoutParams AbsoluteLayout AbsoluteLayout.LayoutParams AbsSeekBar AbsSpinner ActionMenuView ActionMenuView.LayoutParams AdapterView AdapterView.AdapterContextMenuInfo AdapterViewAnimator AdapterViewFlipper AlphabetIndexer AnalogClock ArrayAdapter AutoCompleteTextView BaseAdapter BaseExpandableListAdapter Button CalendarView CheckBox CheckedTextView Chronometer CompoundButton CursorAdapter CursorTreeAdapter DatePicker DialerFilter DigitalClock EdgeEffect EditText ExpandableListView ExpandableListView.ExpandableListContextMenuInfo Filter Filter.FilterResults FrameLayout FrameLayout.LayoutParams Gallery Gallery.LayoutParams GridLayout GridLayout.Alignment GridLayout.LayoutParams GridLayout.Spec GridView HeaderViewListAdapter HorizontalScrollView ImageButton ImageSwitcher ImageView LinearLayout LinearLayout.LayoutParams ListPopupWindow ListView ListView.FixedViewInfo Magnifier Magnifier.Builder MediaController MultiAutoCompleteTextView MultiAutoCompleteTextView.CommaTokenizer NumberPicker OverScroller PopupMenu PopupWindow ProgressBar QuickContactBadge RadioButton RadioGroup RadioGroup.LayoutParams RatingBar RelativeLayout RelativeLayout.LayoutParams RemoteViews RemoteViews.DrawInstructions RemoteViews.DrawInstructions.Builder RemoteViews.RemoteCollectionItems RemoteViews.RemoteCollectionItems.Builder RemoteViews.RemoteResponse RemoteViews.RemoteViewOutlineProvider RemoteViewsService ResourceCursorAdapter ResourceCursorTreeAdapter Scroller ScrollView SearchView SeekBar ShareActionProvider SimpleAdapter SimpleCursorAdapter SimpleCursorTreeAdapter SimpleExpandableListAdapter SlidingDrawer Space Spinner StackView Switch TabHost TabHost.TabSpec TableLayout TableLayout.LayoutParams TableRow TableRow.LayoutParams TabWidget TextClock TextSwitcher TextView TextView.SavedState TimePicker Toast Toast.Callback ToggleButton Toolbar Toolbar.LayoutParams TwoLineListItem VideoView ViewAnimator ViewFlipper ViewSwitcher ZoomButton ZoomButtonsController ZoomControls Enums ImageView.ScaleType TextView.BufferType Exceptions RemoteViews.ActionException android.widget.inline Overview Interfaces InlineContentView.SurfaceControlCallback Classes InlineContentView InlinePresentationSpec InlinePresentationSpec.Builder android.widget.photopicker Overview Interfaces EmbeddedPhotoPickerClient EmbeddedPhotoPickerProvider EmbeddedPhotoPickerSession Classes EmbeddedPhotoPickerFeatureInfo EmbeddedPhotoPickerFeatureInfo.Builder EmbeddedPhotoPickerProviderFactory PhotoPickerSelectionParams PhotoPickerSelectionParams.Builder PhotoPickerUiCustomizationParams PhotoPickerUiCustomizationParams.Builder android.window Overview Interfaces OnBackAnimationCallback OnBackInvokedCallback OnBackInvokedDispatcher SplashScreen SplashScreen.OnExitAnimationListener Classes BackEvent InputTransferToken SplashScreenView SurfaceSyncGroup SystemOnBackInvokedCallbacks TrustedPresentationThresholds dalvik.annotation Overview Annotations TestTarget TestTargetClass dalvik.annotation.optimization Overview Annotations CriticalNative FastNative dalvik.bytecode Overview Interfaces Opcodes Classes OpcodeInfo dalvik.system Overview Interfaces ZipPathValidator.Callback Classes ApplicationRuntime BaseDexClassLoader DelegateLastClassLoader DexClassLoader DexFile DexFile.OptimizationInfo InMemoryDexClassLoader PathClassLoader ZipPathValidator java.awt.font Overview Classes NumericShaper TextAttribute Enums NumericShaper.Range java.beans Overview Interfaces PropertyChangeListener Classes IndexedPropertyChangeEvent PropertyChangeEvent PropertyChangeListenerProxy PropertyChangeSupport java.io Overview Annotations Serial Interfaces Closeable DataInput DataOutput Externalizable FileFilter FilenameFilter Flushable ObjectInput ObjectInputValidation ObjectOutput ObjectStreamConstants Serializable Classes BufferedInputStream BufferedOutputStream BufferedReader BufferedWriter ByteArrayInputStream ByteArrayOutputStream CharArrayReader CharArrayWriter Console DataInputStream DataOutputStream File FileDescriptor FileInputStream FileOutputStream FilePermission FileReader FileWriter FilterInputStream FilterOutputStream FilterReader FilterWriter InputStream InputStreamReader LineNumberInputStream LineNumberReader ObjectInputStream ObjectInputStream.GetField ObjectOutputStream ObjectOutputStream.PutField ObjectStreamClass ObjectStreamField OutputStream OutputStreamWriter PipedInputStream PipedOutputStream PipedReader PipedWriter PrintStream PrintWriter PushbackInputStream PushbackReader RandomAccessFile Reader SequenceInputStream SerializablePermission StreamTokenizer StringBufferInputStream StringReader StringWriter Writer Exceptions CharConversionException EOFException FileNotFoundException InterruptedIOException InvalidClassException InvalidObjectException IOException NotActiveException NotSerializableException ObjectStreamException OptionalDataException StreamCorruptedException SyncFailedException UncheckedIOException UnsupportedEncodingException UTFDataFormatException WriteAbortedException Errors IOError java.lang Overview Annotations Deprecated FunctionalInterface Override SafeVarargs SuppressWarnings Interfaces Appendable AutoCloseable CharSequence Cloneable Comparable Iterable Readable Runnable StackWalker.StackFrame Thread.UncaughtExceptionHandler Classes Boolean Byte Character Character.Subset Character.UnicodeBlock Class ClassLoader ClassValue Compiler Double Enum Float InheritableThreadLocal Integer Long Math Number Object Package Process ProcessBuilder ProcessBuilder.Redirect Record Runtime RuntimePermission SecurityManager Short StackTraceElement StackWalker StrictMath String StringBuffer StringBuilder System Thread ThreadGroup ThreadLocal Throwable Void Enums Character.UnicodeScript ProcessBuilder.Redirect.Type StackWalker.Option Thread.State Exceptions ArithmeticException ArrayIndexOutOfBoundsException ArrayStoreException ClassCastException ClassNotFoundException CloneNotSupportedException EnumConstantNotPresentException Exception IllegalAccessException IllegalArgumentException IllegalCallerException IllegalMonitorStateException IllegalStateException IllegalThreadStateException IndexOutOfBoundsException InstantiationException InterruptedException MatchException NegativeArraySizeException NoSuchFieldException NoSuchMethodException NullPointerException NumberFormatException ReflectiveOperationException RuntimeException SecurityException StringIndexOutOfBoundsException TypeNotPresentException UnsupportedOperationException WrongThreadException Errors AbstractMethodError AssertionError BootstrapMethodError ClassCircularityError ClassFormatError Error ExceptionInInitializerError IllegalAccessError IncompatibleClassChangeError InstantiationError InternalError LinkageError NoClassDefFoundError NoSuchFieldError NoSuchMethodError OutOfMemoryError StackOverflowError ThreadDeath UnknownError UnsatisfiedLinkError UnsupportedClassVersionError VerifyError VirtualMachineError java.lang.annotation Overview Annotations Documented Inherited Native Repeatable Retention Target Interfaces Annotation Enums ElementType RetentionPolicy Exceptions AnnotationTypeMismatchException IncompleteAnnotationException Errors AnnotationFormatError java.lang.invoke Overview Interfaces MethodHandleInfo TypeDescriptor TypeDescriptor.OfField TypeDescriptor.OfMethod Classes CallSite ConstantCallSite MethodHandle MethodHandles MethodHandles.Lookup MethodType MutableCallSite VarHandle VolatileCallSite Enums VarHandle.AccessMode Exceptions LambdaConversionException StringConcatException WrongMethodTypeException java.lang.ref Overview Interfaces Cleaner.Cleanable Classes Cleaner PhantomReference Reference ReferenceQueue SoftReference WeakReference java.lang.reflect Overview Interfaces AnnotatedElement GenericArrayType GenericDeclaration InvocationHandler Member ParameterizedType Type TypeVariable WildcardType Classes AccessibleObject Array Constructor Executable Field Method Modifier Parameter Proxy RecordComponent ReflectPermission Exceptions InvocationTargetException MalformedParameterizedTypeException MalformedParametersException UndeclaredThrowableException Errors GenericSignatureFormatError java.lang.runtime Overview Classes ObjectMethods SwitchBootstraps java.math Overview Classes BigDecimal BigInteger MathContext Enums RoundingMode java.net Overview Interfaces ContentHandlerFactory CookiePolicy CookieStore DatagramSocketImplFactory FileNameMap ProtocolFamily SocketImplFactory SocketOption SocketOptions URLStreamHandlerFactory Classes Authenticator CacheRequest CacheResponse ContentHandler CookieHandler CookieManager DatagramPacket DatagramSocket DatagramSocketImpl HttpCookie HttpURLConnection IDN Inet4Address Inet6Address InetAddress InetSocketAddress InterfaceAddress JarURLConnection MulticastSocket NetPermission NetworkInterface PasswordAuthentication Proxy ProxySelector ResponseCache SecureCacheResponse ServerSocket Socket SocketAddress SocketImpl SocketPermission StandardSocketOptions URI URL URLClassLoader URLConnection URLDecoder URLEncoder URLStreamHandler Enums Authenticator.RequestorType Proxy.Type StandardProtocolFamily Exceptions BindException ConnectException HttpRetryException MalformedURLException NoRouteToHostException PortUnreachableException ProtocolException SocketException SocketTimeoutException UnknownHostException UnknownServiceException URISyntaxException java.nio Overview Classes Buffer ByteBuffer ByteOrder CharBuffer DoubleBuffer FloatBuffer IntBuffer LongBuffer MappedByteBuffer ShortBuffer Exceptions BufferOverflowException BufferUnderflowException InvalidMarkException ReadOnlyBufferException java.nio.channels Overview Interfaces AsynchronousByteChannel AsynchronousChannel ByteChannel Channel CompletionHandler GatheringByteChannel InterruptibleChannel MulticastChannel NetworkChannel ReadableByteChannel ScatteringByteChannel SeekableByteChannel WritableByteChannel Classes AsynchronousChannelGroup AsynchronousFileChannel AsynchronousServerSocketChannel AsynchronousSocketChannel Channels DatagramChannel FileChannel FileChannel.MapMode FileLock MembershipKey Pipe Pipe.SinkChannel Pipe.SourceChannel SelectableChannel SelectionKey Selector ServerSocketChannel SocketChannel Exceptions AcceptPendingException AlreadyBoundException AlreadyConnectedException AsynchronousCloseException CancelledKeyException ClosedByInterruptException ClosedChannelException ClosedSelectorException ConnectionPendingException FileLockInterruptionException IllegalBlockingModeException IllegalChannelGroupException IllegalSelectorException InterruptedByTimeoutException NoConnectionPendingException NonReadableChannelException NonWritableChannelException NotYetBoundException NotYetConnectedException OverlappingFileLockException ReadPendingException ShutdownChannelGroupException UnresolvedAddressException UnsupportedAddressTypeException WritePendingException java.nio.channels.spi Overview Classes AbstractInterruptibleChannel AbstractSelectableChannel AbstractSelectionKey AbstractSelector AsynchronousChannelProvider SelectorProvider java.nio.charset Overview Classes Charset CharsetDecoder CharsetEncoder CoderResult CodingErrorAction StandardCharsets Exceptions CharacterCodingException IllegalCharsetNameException MalformedInputException UnmappableCharacterException UnsupportedCharsetException Errors CoderMalfunctionError java.nio.charset.spi Overview Classes CharsetProvider java.nio.file Overview Interfaces CopyOption DirectoryStream DirectoryStream.Filter FileVisitor OpenOption Path PathMatcher SecureDirectoryStream Watchable WatchEvent WatchEvent.Kind WatchEvent.Modifier WatchKey WatchService Classes Files FileStore FileSystem FileSystems LinkPermission Paths SimpleFileVisitor StandardWatchEventKinds Enums AccessMode FileVisitOption FileVisitResult LinkOption StandardCopyOption StandardOpenOption Exceptions AccessDeniedException AtomicMoveNotSupportedException ClosedDirectoryStreamException ClosedFileSystemException ClosedWatchServiceException DirectoryIteratorException DirectoryNotEmptyException FileAlreadyExistsException FileSystemAlreadyExistsException FileSystemException FileSystemLoopException FileSystemNotFoundException InvalidPathException NoSuchFileException NotDirectoryException NotLinkException ProviderMismatchException ProviderNotFoundException ReadOnlyFileSystemException java.nio.file.attribute Overview Interfaces AclFileAttributeView AttributeView BasicFileAttributes BasicFileAttributeView DosFileAttributes DosFileAttributeView FileAttribute FileAttributeView FileOwnerAttributeView FileStoreAttributeView GroupPrincipal PosixFileAttributes PosixFileAttributeView UserDefinedFileAttributeView UserPrincipal Classes AclEntry AclEntry.Builder FileTime PosixFilePermissions UserPrincipalLookupService Enums AclEntryFlag AclEntryPermission AclEntryType PosixFilePermission Exceptions UserPrincipalNotFoundException java.nio.file.spi Overview Classes FileSystemProvider FileTypeDetector java.security Overview Interfaces AlgorithmConstraints Certificate DomainCombiner Guard Key KeyStore.Entry KeyStore.Entry.Attribute KeyStore.LoadStoreParameter KeyStore.ProtectionParameter Policy.Parameters Principal PrivateKey PrivilegedAction PrivilegedExceptionAction PublicKey SecureRandomParameters Classes AccessControlContext AccessController AlgorithmParameterGenerator AlgorithmParameterGeneratorSpi AlgorithmParameters AlgorithmParametersSpi AllPermission AuthProvider BasicPermission CodeSigner CodeSource DigestInputStream DigestOutputStream DomainLoadStoreParameter DrbgParameters DrbgParameters.Instantiation DrbgParameters.NextBytes DrbgParameters.Reseed GuardedObject Identity IdentityScope KeyFactory KeyFactorySpi KeyPair KeyPairGenerator KeyPairGeneratorSpi KeyRep KeyStore KeyStore.Builder KeyStore.CallbackHandlerProtection KeyStore.PasswordProtection KeyStore.PrivateKeyEntry KeyStore.SecretKeyEntry KeyStore.TrustedCertificateEntry KeyStoreSpi MessageDigest MessageDigestSpi Permission PermissionCollection Permissions PKCS12Attribute Policy PolicySpi ProtectionDomain Provider Provider.Service SecureClassLoader SecureRandom SecureRandomSpi Security SecurityPermission Signature SignatureSpi SignedObject Signer Timestamp UnresolvedPermission Enums CryptoPrimitive DrbgParameters.Capability KeyRep.Type Exceptions AccessControlException DigestException GeneralSecurityException InvalidAlgorithmParameterException InvalidKeyException InvalidParameterException KeyException KeyManagementException KeyStoreException NoSuchAlgorithmException NoSuchProviderException PrivilegedActionException ProviderException SignatureException UnrecoverableEntryException UnrecoverableKeyException java.security.acl Overview Interfaces Acl AclEntry Group Owner Permission Exceptions AclNotFoundException LastOwnerException NotOwnerException java.security.cert Overview Interfaces CertPathBuilderResult CertPathChecker CertPathParameters CertPathValidatorException.Reason CertPathValidatorResult CertSelector CertStoreParameters CRLSelector Extension PolicyNode X509Extension Classes Certificate Certificate.CertificateRep CertificateFactory CertificateFactorySpi CertPath CertPath.CertPathRep CertPathBuilder CertPathBuilderSpi CertPathValidator CertPathValidatorSpi CertStore CertStoreSpi CollectionCertStoreParameters CRL LDAPCertStoreParameters PKIXBuilderParameters PKIXCertPathBuilderResult PKIXCertPathChecker PKIXCertPathValidatorResult PKIXParameters PKIXRevocationChecker PolicyQualifierInfo TrustAnchor URICertStoreParameters X509Certificate X509CertSelector X509CRL X509CRLEntry X509CRLSelector Enums CertPathValidatorException.BasicReason CRLReason PKIXReason PKIXRevocationChecker.Option Exceptions CertificateEncodingException CertificateException CertificateExpiredException CertificateNotYetValidException CertificateParsingException CertificateRevokedException CertPathBuilderException CertPathValidatorException CertStoreException CRLException java.security.interfaces Overview Interfaces DSAKey DSAKeyPairGenerator DSAParams DSAPrivateKey DSAPublicKey ECKey ECPrivateKey ECPublicKey EdECKey EdECPrivateKey EdECPublicKey RSAKey RSAMultiPrimePrivateCrtKey RSAPrivateCrtKey RSAPrivateKey RSAPublicKey XECKey XECPrivateKey XECPublicKey java.security.spec Overview Interfaces AlgorithmParameterSpec ECField KeySpec Classes DSAGenParameterSpec DSAParameterSpec DSAPrivateKeySpec DSAPublicKeySpec ECFieldF2m ECFieldFp ECGenParameterSpec ECParameterSpec ECPoint ECPrivateKeySpec ECPublicKeySpec EdDSAParameterSpec EdECPoint EdECPrivateKeySpec EdECPublicKeySpec EllipticCurve EncodedKeySpec MGF1ParameterSpec NamedParameterSpec PKCS8EncodedKeySpec PSSParameterSpec RSAKeyGenParameterSpec RSAMultiPrimePrivateCrtKeySpec RSAOtherPrimeInfo RSAPrivateCrtKeySpec RSAPrivateKeySpec RSAPublicKeySpec X509EncodedKeySpec XECPrivateKeySpec XECPublicKeySpec Exceptions InvalidKeySpecException InvalidParameterSpecException java.sql Overview Interfaces Array Blob CallableStatement Clob Connection DatabaseMetaData Driver NClob ParameterMetaData PreparedStatement Ref ResultSet ResultSetMetaData RowId Savepoint SQLData SQLInput SQLOutput SQLXML Statement Struct Wrapper Classes Date DriverManager DriverPropertyInfo SQLPermission Time Timestamp Types Enums ClientInfoStatus RowIdLifetime Exceptions BatchUpdateException DataTruncation SQLClientInfoException SQLDataException SQLException SQLFeatureNotSupportedException SQLIntegrityConstraintViolationException SQLInvalidAuthorizationSpecException SQLNonTransientConnectionException SQLNonTransientException SQLRecoverableException SQLSyntaxErrorException SQLTimeoutException SQLTransactionRollbackException SQLTransientConnectionException SQLTransientException SQLWarning java.text Overview Interfaces AttributedCharacterIterator CharacterIterator Classes Annotation AttributedCharacterIterator.Attribute AttributedString Bidi BreakIterator ChoiceFormat CollationElementIterator CollationKey Collator DateFormat DateFormat.Field DateFormatSymbols DecimalFormat DecimalFormatSymbols FieldPosition Format Format.Field MessageFormat MessageFormat.Field Normalizer NumberFormat NumberFormat.Field ParsePosition RuleBasedCollator SimpleDateFormat StringCharacterIterator Enums Normalizer.Form Exceptions ParseException java.time Overview Interfaces InstantSource Classes Clock Duration Instant LocalDate LocalDateTime LocalTime MonthDay OffsetDateTime OffsetTime Period Year YearMonth ZonedDateTime ZoneId ZoneOffset Enums DayOfWeek Month Exceptions DateTimeException java.time.chrono Overview Interfaces ChronoLocalDate ChronoLocalDateTime Chronology ChronoPeriod ChronoZonedDateTime Era Classes AbstractChronology HijrahChronology HijrahDate IsoChronology JapaneseChronology JapaneseDate JapaneseEra MinguoChronology MinguoDate ThaiBuddhistChronology ThaiBuddhistDate Enums HijrahEra IsoEra MinguoEra ThaiBuddhistEra java.time.format Overview Classes DateTimeFormatter DateTimeFormatterBuilder DecimalStyle Enums FormatStyle ResolverStyle SignStyle TextStyle Exceptions DateTimeParseException java.time.temporal Overview Interfaces Temporal TemporalAccessor TemporalAdjuster TemporalAmount TemporalField TemporalQuery TemporalUnit Classes IsoFields JulianFields TemporalAdjusters TemporalQueries ValueRange WeekFields Enums ChronoField ChronoUnit Exceptions UnsupportedTemporalTypeException java.time.zone Overview Classes ZoneOffsetTransition ZoneOffsetTransitionRule ZoneRules Enums ZoneOffsetTransitionRule.TimeDefinition Exceptions ZoneRulesException java.util Overview Interfaces Collection Comparator Deque Enumeration EventListener Formattable Iterator List ListIterator Map Map.Entry NavigableMap NavigableSet Observer PrimitiveIterator PrimitiveIterator.OfDouble PrimitiveIterator.OfInt PrimitiveIterator.OfLong Queue RandomAccess SequencedCollection SequencedMap SequencedSet ServiceLoader.Provider Set SortedMap SortedSet Spliterator Spliterator.OfDouble Spliterator.OfInt Spliterator.OfLong Spliterator.OfPrimitive Classes AbstractCollection AbstractList AbstractMap AbstractMap.SimpleEntry AbstractMap.SimpleImmutableEntry AbstractQueue AbstractSequentialList AbstractSet ArrayDeque ArrayList Arrays Base64 Base64.Decoder Base64.Encoder BitSet Calendar Calendar.Builder Collections Currency Date Dictionary DoubleSummaryStatistics EnumMap EnumSet EventListenerProxy EventObject FormattableFlags Formatter GregorianCalendar HashMap HashSet Hashtable HexFormat IdentityHashMap IntSummaryStatistics LinkedHashMap LinkedHashSet LinkedList ListResourceBundle Locale Locale.Builder Locale.LanguageRange LongSummaryStatistics Objects Observable Optional OptionalDouble OptionalInt OptionalLong PriorityQueue Properties PropertyPermission PropertyResourceBundle Random ResourceBundle ResourceBundle.Control Scanner ServiceLoader SimpleTimeZone Spliterators Spliterators.AbstractDoubleSpliterator Spliterators.AbstractIntSpliterator Spliterators.AbstractLongSpliterator Spliterators.AbstractSpliterator SplittableRandom Stack StringJoiner StringTokenizer Timer TimerTask TimeZone TreeMap TreeSet UUID Vector WeakHashMap Enums Formatter.BigDecimalLayoutForm Locale.Category Locale.FilteringMode Locale.IsoCountryCode Exceptions ConcurrentModificationException DuplicateFormatFlagsException EmptyStackException FormatFlagsConversionMismatchException FormatterClosedException IllegalFormatCodePointException IllegalFormatConversionException IllegalFormatException IllegalFormatFlagsException IllegalFormatPrecisionException IllegalFormatWidthException IllformedLocaleException InputMismatchException InvalidPropertiesFormatException MissingFormatArgumentException MissingFormatWidthException MissingResourceException NoSuchElementException TooManyListenersException UnknownFormatConversionException UnknownFormatFlagsException Errors ServiceConfigurationError java.util.concurrent Overview Interfaces BlockingDeque BlockingQueue Callable CompletableFuture.AsynchronousCompletionTask CompletionService CompletionStage ConcurrentMap ConcurrentNavigableMap Delayed Executor ExecutorService Flow.Processor Flow.Publisher Flow.Subscriber Flow.Subscription ForkJoinPool.ForkJoinWorkerThreadFactory ForkJoinPool.ManagedBlocker Future RejectedExecutionHandler RunnableFuture RunnableScheduledFuture ScheduledExecutorService ScheduledFuture ThreadFactory TransferQueue Classes AbstractExecutorService ArrayBlockingQueue CompletableFuture ConcurrentHashMap ConcurrentHashMap.KeySetView ConcurrentLinkedDeque ConcurrentLinkedQueue ConcurrentSkipListMap ConcurrentSkipListSet CopyOnWriteArrayList CopyOnWriteArraySet CountDownLatch CountedCompleter CyclicBarrier DelayQueue Exchanger ExecutorCompletionService Executors Flow ForkJoinPool ForkJoinTask ForkJoinWorkerThread FutureTask LinkedBlockingDeque LinkedBlockingQueue LinkedTransferQueue Phaser PriorityBlockingQueue RecursiveAction RecursiveTask ScheduledThreadPoolExecutor Semaphore SubmissionPublisher SynchronousQueue ThreadLocalRandom ThreadPoolExecutor ThreadPoolExecutor.AbortPolicy ThreadPoolExecutor.CallerRunsPolicy ThreadPoolExecutor.DiscardOldestPolicy ThreadPoolExecutor.DiscardPolicy Enums Future.State TimeUnit Exceptions BrokenBarrierException CancellationException CompletionException ExecutionException RejectedExecutionException TimeoutException java.util.concurrent.atomic Overview Classes AtomicBoolean AtomicInteger AtomicIntegerArray AtomicIntegerFieldUpdater AtomicLong AtomicLongArray AtomicLongFieldUpdater AtomicMarkableReference AtomicReference AtomicReferenceArray AtomicReferenceFieldUpdater AtomicStampedReference DoubleAccumulator DoubleAdder LongAccumulator LongAdder java.util.concurrent.locks Overview Interfaces Condition Lock ReadWriteLock Classes AbstractOwnableSynchronizer AbstractQueuedLongSynchronizer AbstractQueuedLongSynchronizer.ConditionObject AbstractQueuedSynchronizer AbstractQueuedSynchronizer.ConditionObject LockSupport ReentrantLock ReentrantReadWriteLock ReentrantReadWriteLock.ReadLock ReentrantReadWriteLock.WriteLock StampedLock java.util.function Overview Interfaces BiConsumer BiFunction BinaryOperator BiPredicate BooleanSupplier Consumer DoubleBinaryOperator DoubleConsumer DoubleFunction DoublePredicate DoubleSupplier DoubleToIntFunction DoubleToLongFunction DoubleUnaryOperator Function IntBinaryOperator IntConsumer IntFunction IntPredicate IntSupplier IntToDoubleFunction IntToLongFunction IntUnaryOperator LongBinaryOperator LongConsumer LongFunction LongPredicate LongSupplier LongToDoubleFunction LongToIntFunction LongUnaryOperator ObjDoubleConsumer ObjIntConsumer ObjLongConsumer Predicate Supplier ToDoubleBiFunction ToDoubleFunction ToIntBiFunction ToIntFunction ToLongBiFunction ToLongFunction UnaryOperator java.util.jar Overview Interfaces Pack200.Packer Pack200.Unpacker Classes Attributes Attributes.Name JarEntry JarFile JarInputStream JarOutputStream Manifest Pack200 Exceptions JarException java.util.logging Overview Interfaces Filter LoggingMXBean Classes ConsoleHandler ErrorManager FileHandler Formatter Handler Level Logger LoggingPermission LogManager LogRecord MemoryHandler SimpleFormatter SocketHandler StreamHandler XMLFormatter java.util.prefs Overview Interfaces NodeChangeListener PreferenceChangeListener PreferencesFactory Classes AbstractPreferences NodeChangeEvent PreferenceChangeEvent Preferences Exceptions BackingStoreException InvalidPreferencesFormatException java.util.random Overview Interfaces RandomGenerator RandomGenerator.ArbitrarilyJumpableGenerator RandomGenerator.JumpableGenerator RandomGenerator.LeapableGenerator RandomGenerator.SplittableGenerator RandomGenerator.StreamableGenerator Classes RandomGeneratorFactory java.util.regex Overview Interfaces MatchResult Classes Matcher Pattern Exceptions PatternSyntaxException java.util.stream Overview Interfaces BaseStream Collector DoubleStream DoubleStream.Builder DoubleStream.DoubleMapMultiConsumer Gatherer Gatherer.Downstream Gatherer.Integrator Gatherer.Integrator.Greedy IntStream IntStream.Builder IntStream.IntMapMultiConsumer LongStream LongStream.Builder LongStream.LongMapMultiConsumer Stream Stream.Builder Classes Collectors Gatherers StreamSupport Enums Collector.Characteristics java.util.zip Overview Interfaces Checksum Classes Adler32 CheckedInputStream CheckedOutputStream CRC32 CRC32C Deflater DeflaterInputStream DeflaterOutputStream GZIPInputStream GZIPOutputStream Inflater InflaterInputStream InflaterOutputStream ZipEntry ZipFile ZipInputStream ZipOutputStream Exceptions DataFormatException ZipException Errors ZipError javax.annotation.processing Overview Annotations Generated javax.crypto Overview Interfaces SecretKey Classes Cipher CipherInputStream CipherOutputStream CipherSpi EncryptedPrivateKeyInfo ExemptionMechanism ExemptionMechanismSpi KeyAgreement KeyAgreementSpi KeyGenerator KeyGeneratorSpi Mac MacSpi NullCipher SealedObject SecretKeyFactory SecretKeyFactorySpi Exceptions AEADBadTagException BadPaddingException ExemptionMechanismException IllegalBlockSizeException NoSuchPaddingException ShortBufferException javax.crypto.interfaces Overview Interfaces DHKey DHPrivateKey DHPublicKey PBEKey javax.crypto.spec Overview Classes ChaCha20ParameterSpec DESedeKeySpec DESKeySpec DHGenParameterSpec DHParameterSpec DHPrivateKeySpec DHPublicKeySpec GCMParameterSpec IvParameterSpec OAEPParameterSpec PBEKeySpec PBEParameterSpec PSource PSource.PSpecified RC2ParameterSpec RC5ParameterSpec SecretKeySpec javax.microedition.khronos.egl Overview Interfaces EGL EGL10 EGL11 Classes EGLConfig EGLContext EGLDisplay EGLSurface javax.microedition.khronos.opengles Overview Interfaces GL GL10 GL10Ext GL11 GL11Ext GL11ExtensionPack javax.net Overview Classes ServerSocketFactory SocketFactory javax.net.ssl Overview Interfaces HandshakeCompletedListener HostnameVerifier KeyManager ManagerFactoryParameters SSLSession SSLSessionBindingListener SSLSessionContext TrustManager X509KeyManager X509TrustManager Classes CertPathTrustManagerParameters ExtendedSSLSession HandshakeCompletedEvent HttpsURLConnection KeyManagerFactory KeyManagerFactorySpi KeyStoreBuilderParameters SNIHostName SNIMatcher SNIServerName SSLContext SSLContextSpi SSLEngine SSLEngineResult SSLParameters SSLPermission SSLServerSocket SSLServerSocketFactory SSLSessionBindingEvent SSLSocket SSLSocketFactory StandardConstants TrustManagerFactory TrustManagerFactorySpi X509ExtendedKeyManager X509ExtendedTrustManager Enums SSLEngineResult.HandshakeStatus SSLEngineResult.Status Exceptions SSLException SSLHandshakeException SSLKeyException SSLPeerUnverifiedException SSLProtocolException javax.security.auth Overview Interfaces Destroyable Classes AuthPermission PrivateCredentialPermission Subject SubjectDomainCombiner Exceptions DestroyFailedException javax.security.auth.callback Overview Interfaces Callback CallbackHandler Classes PasswordCallback Exceptions UnsupportedCallbackException javax.security.auth.login Overview Exceptions LoginException javax.security.auth.x500 Overview Classes X500Principal X500PrivateCredential javax.security.cert Overview Classes Certificate X509Certificate Exceptions CertificateEncodingException CertificateException CertificateExpiredException CertificateNotYetValidException CertificateParsingException javax.sql Overview Interfaces CommonDataSource ConnectionEventListener ConnectionPoolDataSource DataSource PooledConnection RowSet RowSetInternal RowSetListener RowSetMetaData RowSetReader RowSetWriter StatementEventListener Classes ConnectionEvent RowSetEvent StatementEvent javax.xml Overview Classes XMLConstants javax.xml.datatype Overview Classes DatatypeConstants DatatypeConstants.Field DatatypeFactory Duration XMLGregorianCalendar Exceptions DatatypeConfigurationException javax.xml.namespace Overview Interfaces NamespaceContext Classes QName javax.xml.parsers Overview Classes DocumentBuilder DocumentBuilderFactory SAXParser SAXParserFactory Exceptions ParserConfigurationException Errors FactoryConfigurationError javax.xml.transform Overview Interfaces ErrorListener Result Source SourceLocator Templates URIResolver Classes OutputKeys Transformer TransformerFactory Exceptions TransformerConfigurationException TransformerException Errors TransformerFactoryConfigurationError javax.xml.transform.dom Overview Interfaces DOMLocator Classes DOMResult DOMSource javax.xml.transform.sax Overview Interfaces TemplatesHandler TransformerHandler Classes SAXResult SAXSource SAXTransformerFactory javax.xml.transform.stream Overview Classes StreamResult StreamSource javax.xml.validation Overview Classes Schema SchemaFactory SchemaFactoryLoader TypeInfoProvider Validator ValidatorHandler javax.xml.xpath Overview Interfaces XPath XPathExpression XPathFunction XPathFunctionResolver XPathVariableResolver Classes XPathConstants XPathFactory Exceptions XPathException XPathExpressionException XPathFactoryConfigurationException XPathFunctionException org.apache.http.conn Overview Exceptions ConnectTimeoutException org.apache.http.conn.scheme Overview Interfaces HostNameResolver LayeredSocketFactory SocketFactory org.apache.http.conn.ssl Overview Interfaces X509HostnameVerifier Classes AbstractVerifier AllowAllHostnameVerifier BrowserCompatHostnameVerifier SSLSocketFactory StrictHostnameVerifier org.apache.http.params Overview Interfaces CoreConnectionPNames HttpParams Classes HttpConnectionParams org.json Overview Classes JSONArray JSONObject JSONStringer JSONTokener Exceptions JSONException org.w3c.dom Overview Interfaces Attr CDATASection CharacterData Comment Document DocumentFragment DocumentType DOMConfiguration DOMError DOMErrorHandler DOMImplementation DOMImplementationList DOMImplementationSource DOMLocator DOMStringList Element Entity EntityReference NamedNodeMap NameList Node NodeList Notation ProcessingInstruction Text TypeInfo UserDataHandler Exceptions DOMException org.w3c.dom.ls Overview Interfaces DOMImplementationLS LSInput LSOutput LSParser LSParserFilter LSResourceResolver LSSerializer Exceptions LSException org.xml.sax Overview Interfaces AttributeList Attributes ContentHandler DocumentHandler DTDHandler EntityResolver ErrorHandler Locator Parser XMLFilter XMLReader Classes HandlerBase InputSource Exceptions SAXException SAXNotRecognizedException SAXNotSupportedException SAXParseException org.xml.sax.ext Overview Interfaces Attributes2 DeclHandler EntityResolver2 LexicalHandler Locator2 Classes Attributes2Impl DefaultHandler2 Locator2Impl org.xml.sax.helpers Overview Classes AttributeListImpl AttributesImpl DefaultHandler LocatorImpl NamespaceSupport ParserAdapter ParserFactory XMLFilterImpl XMLReaderAdapter XMLReaderFactory org.xmlpull.v1 Overview Interfaces XmlPullParser XmlSerializer Classes XmlPullParserFactory Exceptions XmlPullParserException org.xmlpull.v1.sax2 Overview Classes Driver Build AI experiences Get started Get started Hello, world! Developer Verification Adaptive apps Compose for UI AI-powered IDE Training Monetization with Play ↗️ Optimize by form factor Phones, tablets, foldables Android for Cars Android TV Android XR Googlebook ChromeOS Wear OS Build by category Games Camera & media Social & messaging Health & fitness Productivity Enterprise apps Get the latest Latest updates Experimental updates Android Studio preview Jetpack & Compose libraries Wear OS releases Privacy Sandbox ↗️ Excellent Experiences Learn more UI Design Design for Android Mobile Desktop experiences XR Headsets & XR Glasses AI Glasses Widgets Wear OS Android TV Android for Cars Architecture Introduction Libraries Navigation Modularization Testing Kotlin Multiplatform Quality Overview Core value User experience Accessibility Technical quality Excellent Experiences Security Overview Privacy Permissions Identity Fraud prevention Gemini in Android Studio Learn more Get Android Studio Core areas Samples Multidevice support User interfaces Background work Data and files Connectivity All core areas ⤵️ Tools and workflow Write and debug code Build projects Test your app Performance Command-line tools Gradle plugin API Android Bench Device tech Phones, tablets, foldables ChromeOS Android for Cars Android TV Android XR Wear OS Android Health Better Together All devices ⤵️ Libraries Android platform Jetpack libraries Compose libraries Google Play services ↗️ Google Play SDK index ↗️ Play Console Go to Play Console Learn more ↗️ Fundamentals Play Monetization Play Integrity Play Policies Play Programs ↗️ Games Dev Center Overview Play Asset Delivery Play Games Services Play Games on PC Level Up guidelines All Play guides ⤵️ Libraries Play Feature Delivery Play In-app Updates Play In-app Reviews Play Install Referrer Google Play services ↗️ Google Play SDK index ↗️ All Play libraries ⤵️ Tools & resources Android App Bundles Brand & marketing Play Console APIs ↗️ the Android Developer's Blog Read the latest Explore the authors → Explore categories Case Studies Events & Programs Product News Community How-tos Android Developers Develop API reference Stay organized with collections Save and categorize content based on your preferences. Added in API level 1 Summary: Ctors | Methods | Inherited Methods Formatter public final class Formatter extends Object implements Closeable, Flushable java.lang.Object    ↳ java.util.Formatter An interpreter for printf-style format strings. This class provides support for layout justification and alignment, common formats for numeric, string, and date/time data, and locale-specific output. Common Java types such as byte, BigDecimal, and Calendar are supported. Limited formatting customization for arbitrary user types is provided through the Formattable interface. Formatters are not necessarily safe for multithreaded access. Thread safety is optional and is the responsibility of users of methods in this class. Formatted printing for the Java language is heavily inspired by C's printf. Although the format strings are similar to C, some customizations have been made to accommodate the Java language and exploit some of its features. Also, Java formatting is more strict than C's; for example, if a conversion is incompatible with a flag, an exception will be thrown. In C inapplicable flags are silently ignored. The format strings are thus intended to be recognizable to C programmers but not necessarily completely compatible with those in C. Examples of expected usage: StringBuilder sb = new StringBuilder(); // Send all output to the Appendable object sb Formatter formatter = new Formatter(sb, Locale.US); // Explicit argument indices may be used to re-order output. formatter.format("%4$2s %3$2s %2$2s %1$2s", "a", "b", "c", "d") // -> " d c b a" // Optional locale as the first argument can be used to get // locale-specific formatting of numbers. The precision and width can be // given to round and align the value. formatter.format(Locale.FRANCE, "e = %+10.4f", Math.E); // -> "e = +2,7183" // The '(' numeric flag may be used to format negative numbers with // parentheses rather than a minus sign. Group separators are // automatically inserted. formatter.format("Amount gained or lost since last statement: $ %(,.2f", balanceDelta); // -> "Amount gained or lost since last statement: $ (6,217.58)" Convenience methods for common formatting requests exist as illustrated by the following invocations: // Writes a formatted string to System.out. System.out.format("Local time: %tT", Calendar.getInstance()); // -> "Local time: 13:34:18" // Writes formatted output to System.err. System.err.printf("Unable to open file '%1$s': %2$s", fileName, exception.getMessage()); // -> "Unable to open file 'food': No such file or directory" Like C's sprintf(3), Strings may be formatted using the static method String.format: // Format a string containing a date. import java.util.Calendar; import java.util.GregorianCalendar; import static java.util.Calendar.*; Calendar c = new GregorianCalendar(1995, MAY, 23); String s = String.format("Duke's Birthday: %1$tb %1$te, %1$tY", c); // -> s == "Duke's Birthday: May 23, 1995" Organization This specification is divided into two sections. The first section, Summary, covers the basic formatting concepts. This section is intended for users who want to get started quickly and are familiar with formatted printing in other programming languages. The second section, Details, covers the specific implementation details. It is intended for users who want more precise specification of formatting behavior. Summary This section is intended to provide a brief overview of formatting concepts. For precise behavioral details, refer to the Details section. Format String Syntax Every method which produces formatted output requires a format string and an argument list. The format string is a String which may contain fixed text and one or more embedded format specifiers. Consider the following example: Calendar c = ...; String s = String.format("Duke's Birthday: %1$tm %1$te,%1$tY", c); This format string is the first argument to the format method. It contains three format specifiers "%1$tm", "%1$te", and "%1$tY" which indicate how the arguments should be processed and where they should be inserted in the text. The remaining portions of the format string are fixed text including "Dukes Birthday: " and any other spaces or punctuation. The argument list consists of all arguments passed to the method after the format string. In the above example, the argument list is of size one and consists of the Calendar object c. The format specifiers for general, character, and numeric types have the following syntax: %[argument_index$][flags][width][.precision]conversion The optional argument_index is a decimal integer indicating the position of the argument in the argument list. The first argument is referenced by "1$", the second by "2$", etc. The optional flags is a set of characters that modify the output format. The set of valid flags depends on the conversion. The optional width is a positive decimal integer indicating the minimum number of characters to be written to the output. The optional precision is a non-negative decimal integer usually used to restrict the number of characters. The specific behavior depends on the conversion. The required conversion is a character indicating how the argument should be formatted. The set of valid conversions for a given argument depends on the argument's data type. The format specifiers for types which are used to represents dates and times have the following syntax: %[argument_index$][flags][width]conversion The optional argument_index, flags and width are defined as above. The required conversion is a two character sequence. The first character is 't' or 'T'. The second character indicates the format to be used. These characters are similar to but not completely identical to those defined by GNU date and POSIX strftime(3c). The format specifiers which do not correspond to arguments have the following syntax: %[flags][width]conversion The optional flags and width is defined as above. The required conversion is a character indicating content to be inserted in the output. Conversions Conversions are divided into the following categories: General - may be applied to any argument type Character - may be applied to basic types which represent Unicode characters: char, Character, byte, Byte, short, and Short. This conversion may also be applied to the types int and Integer when Character.isValidCodePoint returns true Numeric Integral - may be applied to Java integral types: byte, Byte, short, Short, int and Integer, long, Long, and BigInteger (but not char or Character) Floating Point - may be applied to Java floating-point types: float, Float, double, Double, and BigDecimal Date/Time - may be applied to Java types which are capable of encoding a date or time: long, Long, Calendar, Date and TemporalAccessor Percent - produces a literal '%' ('\u0025') Line Separator - produces the platform-specific line separator For category General, Character, Numeric, Integral and Date/Time conversion, unless otherwise specified, if the argument arg is null, then the result is "null". The following table summarizes the supported conversions. Conversions denoted by an upper-case character (i.e. 'B', 'H', 'S', 'C', 'X', 'E', 'G', 'A', and 'T') are the same as those for the corresponding lower-case conversion characters except that the result is converted to upper case according to the rules of the prevailing Locale. If there is no explicit locale specified, either at the construction of the instance or as a parameter to its method invocation, then the default locale is used. genConv Conversion Argument Category Description 'b', 'B' general If the argument arg is null, then the result is "false". If arg is a boolean or Boolean, then the result is the string returned by String.valueOf(arg). Otherwise, the result is "true". 'h', 'H' general The result is obtained by invoking Integer.toHexString(arg.hashCode()). 's', 'S' general If arg implements Formattable, then arg.formatTo is invoked. Otherwise, the result is obtained by invoking arg.toString(). 'c', 'C' character The result is a Unicode character 'd' integral The result is formatted as a decimal integer 'o' integral The result is formatted as an octal integer 'x', 'X' integral The result is formatted as a hexadecimal integer 'e', 'E' floating point The result is formatted as a decimal number in computerized scientific notation 'f' floating point The result is formatted as a decimal number 'g', 'G' floating point The result is formatted using computerized scientific notation or decimal format, depending on the precision and the value after rounding. 'a', 'A' floating point The result is formatted as a hexadecimal floating-point number with a significand and an exponent. This conversion is not supported for the BigDecimal type despite the latter's being in the floating point argument category. 't', 'T' date/time Prefix for date and time conversion characters. See Date/Time Conversions. '%' percent The result is a literal '%' ('\u0025') 'n' line separator The result is the platform-specific line separator Any characters not explicitly defined as conversions are illegal and are reserved for future extensions. Date/Time Conversions The following date and time conversion suffix characters are defined for the 't' and 'T' conversions. The types are similar to but not completely identical to those defined by GNU date and POSIX strftime(3c). Additional conversion types are provided to access Java-specific functionality (e.g. 'L' for milliseconds within the second). The following conversion characters are used for formatting times: time 'H' Hour of the day for the 24-hour clock, formatted as two digits with a leading zero as necessary i.e. 00 - 23. 'I' Hour for the 12-hour clock, formatted as two digits with a leading zero as necessary, i.e. 01 - 12. 'k' Hour of the day for the 24-hour clock, i.e. 0 - 23. 'l' Hour for the 12-hour clock, i.e. 1 - 12. 'M' Minute within the hour formatted as two digits with a leading zero as necessary, i.e. 00 - 59. 'S' Seconds within the minute, formatted as two digits with a leading zero as necessary, i.e. 00 - 60 ("60" is a special value required to support leap seconds). 'L' Millisecond within the second formatted as three digits with leading zeros as necessary, i.e. 000 - 999. 'N' Nanosecond within the second, formatted as nine digits with leading zeros as necessary, i.e. 000000000 - 999999999. 'p' Locale-specific morning or afternoon marker in lower case, e.g."am" or "pm". Use of the conversion prefix 'T' forces this output to upper case. 'z' RFC 822 style numeric time zone offset from GMT, e.g. -0800. This value will be adjusted as necessary for Daylight Saving Time. For long, Long, and Date the time zone used is the default time zone for this instance of the Java virtual machine. 'Z' A string representing the abbreviation for the time zone. This value will be adjusted as necessary for Daylight Saving Time. For long, Long, and Date the time zone used is the default time zone for this instance of the Java virtual machine. The Formatter's locale will supersede the locale of the argument (if any). 's' Seconds since the beginning of the epoch starting at 1 January 1970 00:00:00 UTC, i.e. Long.MIN_VALUE/1000 to Long.MAX_VALUE/1000. 'Q' Milliseconds since the beginning of the epoch starting at 1 January 1970 00:00:00 UTC, i.e. Long.MIN_VALUE to Long.MAX_VALUE. The following conversion characters are used for formatting dates: date 'B' Locale-specific full month name, e.g. "January", "February". 'b' Locale-specific abbreviated month name, e.g. "Jan", "Feb". 'h' Same as 'b'. 'A' Locale-specific full name of the day of the week, e.g. "Sunday", "Monday" 'a' Locale-specific short name of the day of the week, e.g. "Sun", "Mon" 'C' Four-digit year divided by 100, formatted as two digits with leading zero as necessary, i.e. 00 - 99 'Y' Year, formatted as at least four digits with leading zeros as necessary, e.g. 0092 equals 92 CE for the Gregorian calendar. 'y' Last two digits of the year, formatted with leading zeros as necessary, i.e. 00 - 99. 'j' Day of year, formatted as three digits with leading zeros as necessary, e.g. 001 - 366 for the Gregorian calendar. 'm' Month, formatted as two digits with leading zeros as necessary, i.e. 01 - 13. 'd' Day of month, formatted as two digits with leading zeros as necessary, i.e. 01 - 31 'e' Day of month, formatted as two digits, i.e. 1 - 31. The following conversion characters are used for formatting common date/time compositions. composites 'R' Time formatted for the 24-hour clock as "%tH:%tM" 'T' Time formatted for the 24-hour clock as "%tH:%tM:%tS". 'r' Time formatted for the 12-hour clock as "%tI:%tM:%tS %Tp". The location of the morning or afternoon marker ('%Tp') may be locale-dependent. 'D' Date formatted as "%tm/%td/%ty". 'F' ISO 8601 complete date formatted as "%tY-%tm-%td". 'c' Date and time formatted as "%ta %tb %td %tT %tZ %tY", e.g. "Sun Jul 20 16:17:00 EDT 1969". Any characters not explicitly defined as date/time conversion suffixes are illegal and are reserved for future extensions. Flags The following table summarizes the supported flags. y means the flag is supported for the indicated argument types. genConv Flag General Character Integral Floating Point Date/Time Description '-' y y y y y The result will be left-justified. '#' y1 - y3 y - The result should use a conversion-dependent alternate form '+' - - y4 y - The result will always include a sign '  ' - - y4 y - The result will include a leading space for positive values '0' - - y y - The result will be zero-padded ',' - - y2 y5 - The result will include locale-specific grouping separators '(' - - y4 y5 - The result will enclose negative numbers in parentheses 1 Depends on the definition of Formattable. 2 For 'd' conversion only. 3 For 'o', 'x', and 'X' conversions only. 4 For 'd', 'o', 'x', and 'X' conversions applied to BigInteger or 'd' applied to byte, Byte, short, Short, int and Integer, long, and Long. 5 For 'e', 'E', 'f', 'g', and 'G' conversions only. Any characters not explicitly defined as flags are illegal and are reserved for future extensions. Width The width is the minimum number of characters to be written to the output. For the line separator conversion, width is not applicable; if it is provided, an exception will be thrown. Precision For general argument types, the precision is the maximum number of characters to be written to the output. For the floating-point conversions 'a', 'A', 'e', 'E', and 'f' the precision is the number of digits after the radix point. If the conversion is 'g' or 'G', then the precision is the total number of digits in the resulting magnitude after rounding. For character, integral, and date/time argument types and the percent and line separator conversions, the precision is not applicable; if a precision is provided, an exception will be thrown. Argument Index The argument index is a decimal integer indicating the position of the argument in the argument list. The first argument is referenced by "1$", the second by "2$", etc. Another way to reference arguments by position is to use the '<' ('\u003c') flag, which causes the argument for the previous format specifier to be re-used. For example, the following two statements would produce identical strings: Calendar c = ...; String s1 = String.format("Duke's Birthday: %1$tm %1$te,%1$tY", c); String s2 = String.format("Duke's Birthday: %1$tm %<te,%<tY", c); Details This section is intended to provide behavioral details for formatting, including conditions and exceptions, supported data types, localization, and interactions between flags, conversions, and data types. For an overview of formatting concepts, refer to the Summary Any characters not explicitly defined as conversions, date/time conversion suffixes, or flags are illegal and are reserved for future extensions. Use of such a character in a format string will cause an UnknownFormatConversionException or UnknownFormatFlagsException to be thrown. If the format specifier contains a width or precision with an invalid value or which is otherwise unsupported, then a IllegalFormatWidthException or IllegalFormatPrecisionException respectively will be thrown. Similarly, values of zero for an argument index will result in an IllegalFormatException. If a format specifier contains a conversion character that is not applicable to the corresponding argument, then an IllegalFormatConversionException will be thrown. Values of precision must be in the range zero to Integer.MAX_VALUE, inclusive, otherwise IllegalFormatPrecisionException is thrown. Values of width must be in the range one to Integer.MAX_VALUE, inclusive, otherwise IllegalFormatWidthException will be thrown Note that widths can appear to have a negative value, but the negative sign is a flag. For example in the format string "%-20s" the width is 20 and the flag is "-". Values of index must be in the range one to Integer.MAX_VALUE, inclusive, otherwise IllegalFormatException will be thrown. All specified exceptions may be thrown by any of the format methods of Formatter as well as by any format convenience methods such as String.format and PrintStream.printf. For category General, Character, Numeric, Integral and Date/Time conversion, unless otherwise specified, if the argument arg is null, then the result is "null". Conversions denoted by an upper-case character (i.e. 'B', 'H', 'S', 'C', 'X', 'E', 'G', 'A', and 'T') are the same as those for the corresponding lower-case conversion characters except that the result is converted to upper case according to the rules of the prevailing Locale. If there is no explicit locale specified, either at the construction of the instance or as a parameter to its method invocation, then the default locale is used. General The following general conversions may be applied to any argument type: dgConv 'b' '\u0062' Produces either "true" or "false" as returned by Boolean.toString(boolean). If the argument is null, then the result is "false". If the argument is a boolean or Boolean, then the result is the string returned by String.valueOf(). Otherwise, the result is "true". If the '#' flag is given, then a FormatFlagsConversionMismatchException will be thrown. 'B' '\u0042' The upper-case variant of 'b'. 'h' '\u0068' Produces a string representing the hash code value of the object. The result is obtained by invoking Integer.toHexString(arg.hashCode()). If the '#' flag is given, then a FormatFlagsConversionMismatchException will be thrown. 'H' '\u0048' The upper-case variant of 'h'. 's' '\u0073' Produces a string. If the argument implements Formattable, then its formatTo method is invoked. Otherwise, the result is obtained by invoking the argument's toString() method. If the '#' flag is given and the argument is not a Formattable, then a FormatFlagsConversionMismatchException will be thrown. 'S' '\u0053' The upper-case variant of 's'. The following flags apply to general conversions: dFlags '-' '\u002d' Left justifies the output. Spaces ('\u0020') will be added at the end of the converted value as required to fill the minimum width of the field. If the width is not provided, then a MissingFormatWidthException will be thrown. If this flag is not given then the output will be right-justified. '#' '\u0023' Requires the output use an alternate form. The definition of the form is specified by the conversion. The width is the minimum number of characters to be written to the output. If the length of the converted value is less than the width then the output will be padded by '  ' ('\u0020') until the total number of characters equals the width. The padding is on the left by default. If the '-' flag is given, then the padding will be on the right. If the width is not specified then there is no minimum. The precision is the maximum number of characters to be written to the output. The precision is applied before the width, thus the output will be truncated to precision characters even if the width is greater than the precision. If the precision is not specified then there is no explicit limit on the number of characters. Character This conversion may be applied to char and Character. It may also be applied to the types byte, Byte, short, and Short, int and Integer when Character.isValidCodePoint returns true. If it returns false then an IllegalFormatCodePointException will be thrown. charConv 'c' '\u0063' Formats the argument as a Unicode character as described in Unicode Character Representation. This may be more than one 16-bit char in the case where the argument represents a supplementary character. If the '#' flag is given, then a FormatFlagsConversionMismatchException will be thrown. 'C' '\u0043' The upper-case variant of 'c'. The '-' flag defined for General conversions applies. If the '#' flag is given, then a FormatFlagsConversionMismatchException will be thrown. The width is defined as for General conversions. The precision is not applicable. If the precision is specified then an IllegalFormatPrecisionException will be thrown. Numeric Numeric conversions are divided into the following categories: Byte, Short, Integer, and Long BigInteger Float and Double BigDecimal Numeric types will be formatted according to the following algorithm: Number Localization Algorithm After digits are obtained for the integer part, fractional part, and exponent (as appropriate for the data type), the following transformation is applied: Each digit character d in the string is replaced by a locale-specific digit computed relative to the current locale's zero digit z; that is d -  '0'  + z. If a decimal separator is present, a locale-specific decimal separator is substituted. If the ',' ('\u002c') flag is given, then the locale-specific grouping separator is inserted by scanning the integer part of the string from least significant to most significant digits and inserting a separator at intervals defined by the locale's grouping size. If the '0' flag is given, then the locale-specific zero digits are inserted after the sign character, if any, and before the first non-zero digit, until the length of the string is equal to the requested field width. If the value is negative and the '(' flag is given, then a '(' ('\u0028') is prepended and a ')' ('\u0029') is appended. If the value is negative (or floating-point negative zero) and '(' flag is not given, then a '-' ('\u002d') is prepended. If the '+' flag is given and the value is positive or zero (or floating-point positive zero), then a '+' ('\u002b') will be prepended. If the value is NaN or positive infinity the literal strings "NaN" or "Infinity" respectively, will be output. If the value is negative infinity, then the output will be "(Infinity)" if the '(' flag is given otherwise the output will be "-Infinity". These values are not localized. Byte, Short, Integer, and Long The following conversions may be applied to byte, Byte, short, Short, int and Integer, long, and Long. IntConv 'd' '\u0064' Formats the argument as a decimal integer. The localization algorithm is applied. If the '0' flag is given and the value is negative, then the zero padding will occur after the sign. If the '#' flag is given then a FormatFlagsConversionMismatchException will be thrown. 'o' '\u006f' Formats the argument as an integer in base eight. No localization is applied. If x is negative then the result will be an unsigned value generated by adding 2n to the value where n is the number of bits in the type as returned by the static SIZE field in the Byte, Short, Integer, or Long classes as appropriate. If the '#' flag is given then the output will always begin with the radix indicator '0'. If the '0' flag is given then the output will be padded with leading zeros to the field width following any indication of sign. If '(', '+', '  ', or ',' flags are given then a FormatFlagsConversionMismatchException will be thrown. 'x' '\u0078' Formats the argument as an integer in base sixteen. No localization is applied. If x is negative then the result will be an unsigned value generated by adding 2n to the value where n is the number of bits in the type as returned by the static SIZE field in the Byte, Short, Integer, or Long classes as appropriate. If the '#' flag is given then the output will always begin with the radix indicator "0x". If the '0' flag is given then the output will be padded to the field width with leading zeros after the radix indicator or sign (if present). If '(', '  ', '+', or ',' flags are given then a FormatFlagsConversionMismatchException will be thrown. 'X' '\u0058' The upper-case variant of 'x'. The entire string representing the number will be converted to upper case including the 'x' (if any) and all hexadecimal digits 'a' - 'f' ('\u0061' - '\u0066'). If the conversion is 'o', 'x', or 'X' and both the '#' and the '0' flags are given, then result will contain the radix indicator ('0' for octal and "0x" or "0X" for hexadecimal), some number of zeros (based on the width), and the value. If the '-' flag is not given, then the space padding will occur before the sign. The following flags apply to numeric integral conversions: intFlags '+' '\u002b' Requires the output to include a positive sign for all positive numbers. If this flag is not given then only negative values will include a sign. If both the '+' and '  ' flags are given then an IllegalFormatFlagsException will be thrown. '  ' '\u0020' Requires the output to include a single extra space ('\u0020') for non-negative values. If both the '+' and '  ' flags are given then an IllegalFormatFlagsException will be thrown. '0' '\u0030' Requires the output to be padded with leading zeros to the minimum field width following any sign or radix indicator except when converting NaN or infinity. If the width is not provided, then a MissingFormatWidthException will be thrown. If both the '-' and '0' flags are given then an IllegalFormatFlagsException will be thrown. ',' '\u002c' Requires the output to include the locale-specific group separators as described in the "group" section of the localization algorithm. '(' '\u0028' Requires the output to prepend a '(' ('\u0028') and append a ')' ('\u0029') to negative values. If no flags are given the default formatting is as follows: The output is right-justified within the width Negative numbers begin with a '-' ('\u002d') Positive numbers and zero do not include a sign or extra leading space No grouping separators are included The width is the minimum number of characters to be written to the output. This includes any signs, digits, grouping separators, radix indicator, and parentheses. If the length of the converted value is less than the width then the output will be padded by spaces ('\u0020') until the total number of characters equals width. The padding is on the left by default. If '-' flag is given then the padding will be on the right. If width is not specified then there is no minimum. The precision is not applicable. If precision is specified then an IllegalFormatPrecisionException will be thrown. BigInteger The following conversions may be applied to BigInteger. bIntConv 'd' '\u0064' Requires the output to be formatted as a decimal integer. The localization algorithm is applied. If the '#' flag is given FormatFlagsConversionMismatchException will be thrown. 'o' '\u006f' Requires the output to be formatted as an integer in base eight. No localization is applied. If x is negative then the result will be a signed value beginning with '-' ('\u002d'). Signed output is allowed for this type because unlike the primitive types it is not possible to create an unsigned equivalent without assuming an explicit data-type size. If x is positive or zero and the '+' flag is given then the result will begin with '+' ('\u002b'). If the '#' flag is given then the output will always begin with '0' prefix. If the '0' flag is given then the output will be padded with leading zeros to the field width following any indication of sign. If the ',' flag is given then a FormatFlagsConversionMismatchException will be thrown. 'x' '\u0078' Requires the output to be formatted as an integer in base sixteen. No localization is applied. If x is negative then the result will be a signed value beginning with '-' ('\u002d'). Signed output is allowed for this type because unlike the primitive types it is not possible to create an unsigned equivalent without assuming an explicit data-type size. If x is positive or zero and the '+' flag is given then the result will begin with '+' ('\u002b'). If the '#' flag is given then the output will always begin with the radix indicator "0x". If the '0' flag is given then the output will be padded to the field width with leading zeros after the radix indicator or sign (if present). If the ',' flag is given then a FormatFlagsConversionMismatchException will be thrown. 'X' '\u0058' The upper-case variant of 'x'. The entire string representing the number will be converted to upper case including the 'x' (if any) and all hexadecimal digits 'a' - 'f' ('\u0061' - '\u0066'). If the conversion is 'o', 'x', or 'X' and both the '#' and the '0' flags are given, then result will contain the base indicator ('0' for octal and "0x" or "0X" for hexadecimal), some number of zeros (based on the width), and the value. If the '0' flag is given and the value is negative, then the zero padding will occur after the sign. If the '-' flag is not given, then the space padding will occur before the sign. All flags defined for Byte, Short, Integer, and Long apply. The default behavior when no flags are given is the same as for Byte, Short, Integer, and Long. The specification of width is the same as defined for Byte, Short, Integer, and Long. The precision is not applicable. If precision is specified then an IllegalFormatPrecisionException will be thrown. Float and Double The following conversions may be applied to float, Float, double and Double. floatConv 'e' '\u0065' Requires the output to be formatted using computerized scientific notation. The localization algorithm is applied. The formatting of the magnitude m depends upon its value. If m is NaN or infinite, the literal strings "NaN" or "Infinity", respectively, will be output. These values are not localized. If m is positive-zero or negative-zero, then the exponent will be "+00". Otherwise, the result is a string that represents the sign and magnitude (absolute value) of the argument. The formatting of the sign is described in the localization algorithm. The formatting of the magnitude m depends upon its value. Let n be the unique integer such that 10n <= m < 10n+1; then let a be the mathematically exact quotient of m and 10n so that 1 <= a < 10. The magnitude is then represented as the integer part of a, as a single decimal digit, followed by the decimal separator followed by decimal digits representing the fractional part of a, followed by the lower-case locale-specific exponent separator (e.g. 'e'), followed by the sign of the exponent, followed by a representation of n as a decimal integer, as produced by the method Long.toString(long,int), and zero-padded to include at least two digits. The number of digits in the result for the fractional part of m or a is equal to the precision. If the precision is not specified then the default value is 6. If the precision is less than the number of digits which would appear after the decimal point in the string returned by Float.toString(float) or Double.toString(double) respectively, then the value will be rounded using the round half up algorithm. Otherwise, zeros may be appended to reach the precision. For a canonical representation of the value, use Float.toString(float) or Double.toString(double) as appropriate. If the ',' flag is given, then an FormatFlagsConversionMismatchException will be thrown. 'E' '\u0045' The upper-case variant of 'e'. The exponent symbol will be the upper-case locale-specific exponent separator (e.g. 'E'). 'g' '\u0067' Requires the output to be formatted in general scientific notation as described below. The localization algorithm is applied. After rounding for the precision, the formatting of the resulting magnitude m depends on its value. If m is greater than or equal to 10-4 but less than 10precision then it is represented in decimal format. If m is less than 10-4 or greater than or equal to 10precision, then it is represented in computerized scientific notation. The total number of significant digits in m is equal to the precision. If the precision is not specified, then the default value is 6. If the precision is 0, then it is taken to be 1. If the '#' flag is given then an FormatFlagsConversionMismatchException will be thrown. 'G' '\u0047' The upper-case variant of 'g'. 'f' '\u0066' Requires the output to be formatted using decimal format. The localization algorithm is applied. The result is a string that represents the sign and magnitude (absolute value) of the argument. The formatting of the sign is described in the localization algorithm. The formatting of the magnitude m depends upon its value. If m NaN or infinite, the literal strings "NaN" or "Infinity", respectively, will be output. These values are not localized. The magnitude is formatted as the integer part of m, with no leading zeroes, followed by the decimal separator followed by one or more decimal digits representing the fractional part of m. The number of digits in the result for the fractional part of m or a is equal to the precision. If the precision is not specified then the default value is 6. If the precision is less than the number of digits which would appear after the decimal point in the string returned by Float.toString(float) or Double.toString(double) respectively, then the value will be rounded using the round half up algorithm. Otherwise, zeros may be appended to reach the precision. For a canonical representation of the value, use Float.toString(float) or Double.toString(double) as appropriate. 'a' '\u0061' Requires the output to be formatted in hexadecimal exponential form. No localization is applied. The result is a string that represents the sign and magnitude (absolute value) of the argument x. If x is negative or a negative-zero value then the result will begin with '-' ('\u002d'). If x is positive or a positive-zero value and the '+' flag is given then the result will begin with '+' ('\u002b'). The formatting of the magnitude m depends upon its value. If the value is NaN or infinite, the literal strings "NaN" or "Infinity", respectively, will be output. If m is zero then it is represented by the string "0x0.0p0". If m is a double value with a normalized representation then substrings are used to represent the significand and exponent fields. The significand is represented by the characters "0x1." followed by the hexadecimal representation of the rest of the significand as a fraction. The exponent is represented by 'p' ('\u0070') followed by a decimal string of the unbiased exponent as if produced by invoking Integer.toString on the exponent value. If the precision is specified, the value is rounded to the given number of hexadecimal digits. If m is a double value with a subnormal representation then, unless the precision is specified to be in the range 1 through 12, inclusive, the significand is represented by the characters '0x0.' followed by the hexadecimal representation of the rest of the significand as a fraction, and the exponent represented by 'p-1022'. If the precision is in the interval [1, 12], the subnormal value is normalized such that it begins with the characters '0x1.', rounded to the number of hexadecimal digits of precision, and the exponent adjusted accordingly. Note that there must be at least one nonzero digit in a subnormal significand. If the '(' or ',' flags are given, then a FormatFlagsConversionMismatchException will be thrown. 'A' '\u0041' The upper-case variant of 'a'. The entire string representing the number will be converted to upper case including the 'x' ('\u0078') and 'p' ('\u0070' and all hexadecimal digits 'a' - 'f' ('\u0061' - '\u0066'). All flags defined for Byte, Short, Integer, and Long apply. If the '#' flag is given, then the decimal separator will always be present. If no flags are given the default formatting is as follows: The output is right-justified within the width Negative numbers begin with a '-' Positive numbers and positive zero do not include a sign or extra leading space No grouping separators are included The decimal separator will only appear if a digit follows it The width is the minimum number of characters to be written to the output. This includes any signs, digits, grouping separators, decimal separators, exponential symbol, radix indicator, parentheses, and strings representing infinity and NaN as applicable. If the length of the converted value is less than the width then the output will be padded by spaces ('\u0020') until the total number of characters equals width. The padding is on the left by default. If the '-' flag is given then the padding will be on the right. If width is not specified then there is no minimum. If the conversion is 'e', 'E' or 'f', then the precision is the number of digits after the decimal separator. If the precision is not specified, then it is assumed to be 6. If the conversion is 'g' or 'G', then the precision is the total number of significant digits in the resulting magnitude after rounding. If the precision is not specified, then the default value is 6. If the precision is 0, then it is taken to be 1. If the conversion is 'a' or 'A', then the precision is the number of hexadecimal digits after the radix point. If the precision is not provided, then all of the digits as returned by Double.toHexString(double) will be output. BigDecimal The following conversions may be applied BigDecimal. floatConv 'e' '\u0065' Requires the output to be formatted using computerized scientific notation. The localization algorithm is applied. The formatting of the magnitude m depends upon its value. If m is positive-zero or negative-zero, then the exponent will be "+00". Otherwise, the result is a string that represents the sign and magnitude (absolute value) of the argument. The formatting of the sign is described in the localization algorithm. The formatting of the magnitude m depends upon its value. Let n be the unique integer such that 10n <= m < 10n+1; then let a be the mathematically exact quotient of m and 10n so that 1 <= a < 10. The magnitude is then represented as the integer part of a, as a single decimal digit, followed by the decimal separator followed by decimal digits representing the fractional part of a, followed by the exponent symbol 'e' ('\u0065'), followed by the sign of the exponent, followed by a representation of n as a decimal integer, as produced by the method Long.toString(long,int), and zero-padded to include at least two digits. The number of digits in the result for the fractional part of m or a is equal to the precision. If the precision is not specified then the default value is 6. If the precision is less than the number of digits to the right of the decimal point then the value will be rounded using the round half up algorithm. Otherwise, zeros may be appended to reach the precision. For a canonical representation of the value, use BigDecimal.toString(). If the ',' flag is given, then an FormatFlagsConversionMismatchException will be thrown. 'E' '\u0045' The upper-case variant of 'e'. The exponent symbol will be 'E' ('\u0045'). 'g' '\u0067' Requires the output to be formatted in general scientific notation as described below. The localization algorithm is applied. After rounding for the precision, the formatting of the resulting magnitude m depends on its value. If m is greater than or equal to 10-4 but less than 10precision then it is represented in decimal format. If m is less than 10-4 or greater than or equal to 10precision, then it is represented in computerized scientific notation. The total number of significant digits in m is equal to the precision. If the precision is not specified, then the default value is 6. If the precision is 0, then it is taken to be 1. If the '#' flag is given then an FormatFlagsConversionMismatchException will be thrown. 'G' '\u0047' The upper-case variant of 'g'. 'f' '\u0066' Requires the output to be formatted using decimal format. The localization algorithm is applied. The result is a string that represents the sign and magnitude (absolute value) of the argument. The formatting of the sign is described in the localization algorithm. The formatting of the magnitude m depends upon its value. The magnitude is formatted as the integer part of m, with no leading zeroes, followed by the decimal separator followed by one or more decimal digits representing the fractional part of m. The number of digits in the result for the fractional part of m or a is equal to the precision. If the precision is not specified then the default value is 6. If the precision is less than the number of digits to the right of the decimal point then the value will be rounded using the round half up algorithm. Otherwise, zeros may be appended to reach the precision. For a canonical representation of the value, use BigDecimal.toString(). All flags defined for Byte, Short, Integer, and Long apply. If the '#' flag is given, then the decimal separator will always be present. The default behavior when no flags are given is the same as for Float and Double. The specification of width and precision is the same as defined for Float and Double. Date/Time This conversion may be applied to long, Long, Calendar, Date and TemporalAccessor DTConv 't' '\u0074' Prefix for date and time conversion characters. 'T' '\u0054' The upper-case variant of 't'. The following date and time conversion character suffixes are defined for the 't' and 'T' conversions. The types are similar to but not completely identical to those defined by GNU date and POSIX strftime(3c). Additional conversion types are provided to access Java-specific functionality (e.g. 'L' for milliseconds within the second). The following conversion characters are used for formatting times: time 'H' '\u0048' Hour of the day for the 24-hour clock, formatted as two digits with a leading zero as necessary i.e. 00 - 23. 00 corresponds to midnight. 'I' '\u0049' Hour for the 12-hour clock, formatted as two digits with a leading zero as necessary, i.e. 01 - 12. 01 corresponds to one o'clock (either morning or afternoon). 'k' '\u006b' Hour of the day for the 24-hour clock, i.e. 0 - 23. 0 corresponds to midnight. 'l' '\u006c' Hour for the 12-hour clock, i.e. 1 - 12. 1 corresponds to one o'clock (either morning or afternoon). 'M' '\u004d' Minute within the hour formatted as two digits with a leading zero as necessary, i.e. 00 - 59. 'S' '\u0053' Seconds within the minute, formatted as two digits with a leading zero as necessary, i.e. 00 - 60 ("60" is a special value required to support leap seconds). 'L' '\u004c' Millisecond within the second formatted as three digits with leading zeros as necessary, i.e. 000 - 999. 'N' '\u004e' Nanosecond within the second, formatted as nine digits with leading zeros as necessary, i.e. 000000000 - 999999999. The precision of this value is limited by the resolution of the underlying operating system or hardware. 'p' '\u0070' Locale-specific morning or afternoon marker in lower case, e.g."am" or "pm". Use of the conversion prefix 'T' forces this output to upper case. (Note that 'p' produces lower-case output. This is different from GNU date and POSIX strftime(3c) which produce upper-case output.) 'z' '\u007a' RFC 822 style numeric time zone offset from GMT, e.g. -0800. This value will be adjusted as necessary for Daylight Saving Time. For long, Long, and Date the time zone used is the default time zone for this instance of the Java virtual machine. 'Z' '\u005a' A string representing the abbreviation for the time zone. This value will be adjusted as necessary for Daylight Saving Time. For long, Long, and Date the time zone used is the default time zone for this instance of the Java virtual machine. The Formatter's locale will supersede the locale of the argument (if any). 's' '\u0073' Seconds since the beginning of the epoch starting at 1 January 1970 00:00:00 UTC, i.e. Long.MIN_VALUE/1000 to Long.MAX_VALUE/1000. 'Q' '\u004f' Milliseconds since the beginning of the epoch starting at 1 January 1970 00:00:00 UTC, i.e. Long.MIN_VALUE to Long.MAX_VALUE. The precision of this value is limited by the resolution of the underlying operating system or hardware. The following conversion characters are used for formatting dates: date 'B' '\u0042' Locale-specific full month name, e.g. "January", "February". 'b' '\u0062' Locale-specific abbreviated month name, e.g. "Jan", "Feb". 'h' '\u0068' Same as 'b'. 'A' '\u0041' Locale-specific full name of the day of the week, e.g. "Sunday", "Monday" 'a' '\u0061' Locale-specific short name of the day of the week, e.g. "Sun", "Mon" 'C' '\u0043' Four-digit year divided by 100, formatted as two digits with leading zero as necessary, i.e. 00 - 99 'Y' '\u0059' Year, formatted to at least four digits with leading zeros as necessary, e.g. 0092 equals 92 CE for the Gregorian calendar. 'y' '\u0079' Last two digits of the year, formatted with leading zeros as necessary, i.e. 00 - 99. 'j' '\u006a' Day of year, formatted as three digits with leading zeros as necessary, e.g. 001 - 366 for the Gregorian calendar. 001 corresponds to the first day of the year. 'm' '\u006d' Month, formatted as two digits with leading zeros as necessary, i.e. 01 - 13, where "01" is the first month of the year and ("13" is a special value required to support lunar calendars). 'd' '\u0064' Day of month, formatted as two digits with leading zeros as necessary, i.e. 01 - 31, where "01" is the first day of the month. 'e' '\u0065' Day of month, formatted as two digits, i.e. 1 - 31 where "1" is the first day of the month. The following conversion characters are used for formatting common date/time compositions. composites 'R' '\u0052' Time formatted for the 24-hour clock as "%tH:%tM" 'T' '\u0054' Time formatted for the 24-hour clock as "%tH:%tM:%tS". 'r' '\u0072' Time formatted for the 12-hour clock as "%tI:%tM:%tS %Tp". The location of the morning or afternoon marker ('%Tp') may be locale-dependent. 'D' '\u0044' Date formatted as "%tm/%td/%ty". 'F' '\u0046' ISO 8601 complete date formatted as "%tY-%tm-%td". 'c' '\u0063' Date and time formatted as "%ta %tb %td %tT %tZ %tY", e.g. "Sun Jul 20 16:17:00 EDT 1969". The '-' flag defined for General conversions applies. If the '#' flag is given, then a FormatFlagsConversionMismatchException will be thrown. The width is the minimum number of characters to be written to the output. If the length of the converted value is less than the width then the output will be padded by spaces ('\u0020') until the total number of characters equals width. The padding is on the left by default. If the '-' flag is given then the padding will be on the right. If width is not specified then there is no minimum. The precision is not applicable. If the precision is specified then an IllegalFormatPrecisionException will be thrown. Percent The conversion does not correspond to any argument. DTConv '%' The result is a literal '%' ('\u0025') The width is the minimum number of characters to be written to the output including the '%'. If the length of the converted value is less than the width then the output will be padded by spaces ('\u0020') until the total number of characters equals width. The padding is on the left. If width is not specified then just the '%' is output. The '-' flag defined for General conversions applies. If any other flags are provided, then a IllegalFormatFlagsException will be thrown. The precision is not applicable. If the precision is specified an IllegalFormatPrecisionException will be thrown. Line Separator The conversion does not correspond to any argument. DTConv 'n' the platform-specific line separator as returned by System.lineSeparator(). Flags, width, and precision are not applicable. If any are provided an IllegalFormatFlagsException, IllegalFormatWidthException, and IllegalFormatPrecisionException, respectively will be thrown. Argument Index Format specifiers can reference arguments in three ways: Explicit indexing is used when the format specifier contains an argument index. The argument index is a decimal integer indicating the position of the argument in the argument list. The first argument is referenced by "1$", the second by "2$", etc. An argument may be referenced more than once. For example: formatter.format("%4$s %3$s %2$s %1$s %4$s %3$s %2$s %1$s", "a", "b", "c", "d") // -> "d c b a d c b a" Relative indexing is used when the format specifier contains a '<' ('\u003c') flag which causes the argument for the previous format specifier to be re-used. If there is no previous argument, then a MissingFormatArgumentException is thrown. formatter.format("%s %s %<s %<s", "a", "b", "c", "d") // -> "a b b b" // "c" and "d" are ignored because they are not referenced Ordinary indexing is used when the format specifier contains neither an argument index nor a '<' flag. Each format specifier which uses ordinary indexing is assigned a sequential implicit index into argument list which is independent of the indices used by explicit or relative indexing. formatter.format("%s %s %s %s", "a", "b", "c", "d") // -> "a b c d" It is possible to have a format string which uses all forms of indexing, for example: formatter.format("%2$s %s %<s %s", "a", "b", "c", "d") // -> "b a a b" // "c" and "d" are ignored because they are not referenced The maximum number of arguments is limited by the maximum dimension of a Java array as defined by The Java Virtual Machine Specification. If the argument index does not correspond to an available argument, then a MissingFormatArgumentException is thrown. If there are more arguments than format specifiers, the extra arguments are ignored. Unless otherwise specified, passing a null argument to any method or constructor in this class will cause a NullPointerException to be thrown. Summary Public constructors Formatter() Constructs a new formatter. Formatter(File file) Constructs a new formatter with the specified file. Formatter(File file, String csn) Constructs a new formatter with the specified file and charset. Formatter(File file, String csn, Locale l) Constructs a new formatter with the specified file, charset, and locale. Formatter(File file, Charset charset, Locale l) Constructs a new formatter with the specified file, charset, and locale. Formatter(OutputStream os) Constructs a new formatter with the specified output stream. Formatter(OutputStream os, String csn) Constructs a new formatter with the specified output stream and charset. Formatter(OutputStream os, String csn, Locale l) Constructs a new formatter with the specified output stream, charset, and locale. Formatter(OutputStream os, Charset charset, Locale l) Constructs a new formatter with the specified output stream, charset, and locale. Formatter(PrintStream ps) Constructs a new formatter with the specified print stream. Formatter(Appendable a) Constructs a new formatter with the specified destination. Formatter(Appendable a, Locale l) Constructs a new formatter with the specified destination and locale. Formatter(String fileName) Constructs a new formatter with the specified file name. Formatter(String fileName, String csn) Constructs a new formatter with the specified file name and charset. Formatter(String fileName, String csn, Locale l) Constructs a new formatter with the specified file name, charset, and locale. Formatter(String fileName, Charset charset, Locale l) Constructs a new formatter with the specified file name, charset, and locale. Formatter(Locale l) Constructs a new formatter with the specified locale. Public methods void close() Closes this formatter. void flush() Flushes this formatter. Formatter format(String format, Object... args) Writes a formatted string to this object's destination using the specified format string and arguments. Formatter format(Locale l, String format, Object... args) Writes a formatted string to this object's destination using the specified locale, format string, and arguments. IOException ioException() Returns the IOException last thrown by this formatter's Appendable. Locale locale() Returns the locale set by the construction of this formatter. Appendable out() Returns the destination for the output. String toString() Returns the result of invoking toString() on the destination for the output. Inherited methods From class java.lang.Object Object clone() Creates and returns a copy of this object. boolean equals(Object obj) Indicates whether some other object is "equal to" this one. void finalize() Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. final Class<?> getClass() Returns the runtime class of this Object. int hashCode() Returns a hash code value for the object. final void notify() Wakes up a single thread that is waiting on this object's monitor. final void notifyAll() Wakes up all threads that are waiting on this object's monitor. String toString() Returns a string representation of the object. final void wait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed. final void wait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed. final void wait() Causes the current thread to wait until it is awakened, typically by being notified or interrupted. From interface java.io.Closeable abstract void close() Closes this stream and releases any system resources associated with it. From interface java.io.Flushable abstract void flush() Flushes this stream by writing any buffered output to the underlying stream. From interface java.lang.AutoCloseable abstract void close() Closes this resource, relinquishing any underlying resources. Public constructors Formatter Added in API level 1 public Formatter () Constructs a new formatter. The destination of the formatted output is a StringBuilder which may be retrieved by invoking out() and whose current content may be converted into a string by invoking toString(). The locale used is the default locale for formatting for this instance of the Java virtual machine. Formatter Added in API level 1 public Formatter (File file) Constructs a new formatter with the specified file. The charset used is the default charset for this instance of the Java virtual machine. The locale used is the default locale for formatting for this instance of the Java virtual machine. Parameters file File: The file to use as the destination of this formatter. If the file exists then it will be truncated to zero size; otherwise, a new file will be created. The output will be written to the file and is buffered. Throws FileNotFoundException If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file SecurityException If a security manager is present and checkWrite(file.getPath()) denies write access to the file Formatter Added in API level 1 public Formatter (File file, String csn) Constructs a new formatter with the specified file and charset. The locale used is the default locale for formatting for this instance of the Java virtual machine. Parameters file File: The file to use as the destination of this formatter. If the file exists then it will be truncated to zero size; otherwise, a new file will be created. The output will be written to the file and is buffered. csn String: The name of a supported charset Throws FileNotFoundException If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file UnsupportedEncodingException If the named charset is not supported SecurityException If a security manager is present and checkWrite(file.getPath()) denies write access to the file Formatter Added in API level 1 public Formatter (File file, String csn, Locale l) Constructs a new formatter with the specified file, charset, and locale. Parameters file File: The file to use as the destination of this formatter. If the file exists then it will be truncated to zero size; otherwise, a new file will be created. The output will be written to the file and is buffered. csn String: The name of a supported charset l Locale: The locale to apply during formatting. If l is null then no localization is applied. Throws FileNotFoundException If the given file object does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file UnsupportedEncodingException If the named charset is not supported SecurityException If a security manager is present and checkWrite(file.getPath()) denies write access to the file Formatter Added in API level 34 public Formatter (File file, Charset charset, Locale l) Constructs a new formatter with the specified file, charset, and locale. Parameters file File: The file to use as the destination of this formatter. If the file exists then it will be truncated to zero size; otherwise, a new file will be created. The output will be written to the file and is buffered. charset Charset: A charset l Locale: The locale to apply during formatting. If l is null then no localization is applied. Throws IOException if an I/O error occurs while opening or creating the file NullPointerException if file or charset is null. SecurityException If a security manager is present and checkWrite(file.getPath()) denies write access to the file Formatter Added in API level 1 public Formatter (OutputStream os) Constructs a new formatter with the specified output stream. The charset used is the default charset for this instance of the Java virtual machine. The locale used is the default locale for formatting for this instance of the Java virtual machine. Parameters os OutputStream: The output stream to use as the destination of this formatter. The output will be buffered. Formatter Added in API level 1 public Formatter (OutputStream os, String csn) Constructs a new formatter with the specified output stream and charset. The locale used is the default locale for formatting for this instance of the Java virtual machine. Parameters os OutputStream: The output stream to use as the destination of this formatter. The output will be buffered. csn String: The name of a supported charset Throws UnsupportedEncodingException If the named charset is not supported Formatter Added in API level 1 public Formatter (OutputStream os, String csn, Locale l) Constructs a new formatter with the specified output stream, charset, and locale. Parameters os OutputStream: The output stream to use as the destination of this formatter. The output will be buffered. csn String: The name of a supported charset l Locale: The locale to apply during formatting. If l is null then no localization is applied. Throws UnsupportedEncodingException If the named charset is not supported Formatter Added in API level 34 public Formatter (OutputStream os, Charset charset, Locale l) Constructs a new formatter with the specified output stream, charset, and locale. Parameters os OutputStream: The output stream to use as the destination of this formatter. The output will be buffered. charset Charset: A charset l Locale: The locale to apply during formatting. If l is null then no localization is applied. Throws NullPointerException if os or charset is null. Formatter Added in API level 1 public Formatter (PrintStream ps) Constructs a new formatter with the specified print stream. The locale used is the default locale for formatting for this instance of the Java virtual machine. Characters are written to the given PrintStream object and are therefore encoded using that object's charset. Parameters ps PrintStream: The stream to use as the destination of this formatter. Formatter Added in API level 1 public Formatter (Appendable a) Constructs a new formatter with the specified destination. The locale used is the default locale for formatting for this instance of the Java virtual machine. Parameters a Appendable: Destination for the formatted output. If a is null then a StringBuilder will be created. Formatter Added in API level 1 public Formatter (Appendable a, Locale l) Constructs a new formatter with the specified destination and locale. Parameters a Appendable: Destination for the formatted output. If a is null then a StringBuilder will be created. l Locale: The locale to apply during formatting. If l is null then no localization is applied. Formatter Added in API level 1 public Formatter (String fileName) Constructs a new formatter with the specified file name. The charset used is the default charset for this instance of the Java virtual machine. The locale used is the default locale for formatting for this instance of the Java virtual machine. Parameters fileName String: The name of the file to use as the destination of this formatter. If the file exists then it will be truncated to zero size; otherwise, a new file will be created. The output will be written to the file and is buffered. Throws FileNotFoundException If the given file name does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file SecurityException If a security manager is present and checkWrite(fileName) denies write access to the file Formatter Added in API level 1 public Formatter (String fileName, String csn) Constructs a new formatter with the specified file name and charset. The locale used is the default locale for formatting for this instance of the Java virtual machine. Parameters fileName String: The name of the file to use as the destination of this formatter. If the file exists then it will be truncated to zero size; otherwise, a new file will be created. The output will be written to the file and is buffered. csn String: The name of a supported charset Throws FileNotFoundException If the given file name does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file UnsupportedEncodingException If the named charset is not supported SecurityException If a security manager is present and checkWrite(fileName) denies write access to the file Formatter Added in API level 1 public Formatter (String fileName, String csn, Locale l) Constructs a new formatter with the specified file name, charset, and locale. Parameters fileName String: The name of the file to use as the destination of this formatter. If the file exists then it will be truncated to zero size; otherwise, a new file will be created. The output will be written to the file and is buffered. csn String: The name of a supported charset l Locale: The locale to apply during formatting. If l is null then no localization is applied. Throws FileNotFoundException If the given file name does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file UnsupportedEncodingException If the named charset is not supported SecurityException If a security manager is present and checkWrite(fileName) denies write access to the file Formatter Added in API level 34 public Formatter (String fileName, Charset charset, Locale l) Constructs a new formatter with the specified file name, charset, and locale. Parameters fileName String: The name of the file to use as the destination of this formatter. If the file exists then it will be truncated to zero size; otherwise, a new file will be created. The output will be written to the file and is buffered. charset Charset: A charset l Locale: The locale to apply during formatting. If l is null then no localization is applied. Throws IOException if an I/O error occurs while opening or creating the file NullPointerException if fileName or charset is null. SecurityException If a security manager is present and checkWrite(fileName) denies write access to the file Formatter Added in API level 1 public Formatter (Locale l) Constructs a new formatter with the specified locale. The destination of the formatted output is a StringBuilder which may be retrieved by invoking out() and whose current content may be converted into a string by invoking toString(). Parameters l Locale: The locale to apply during formatting. If l is null then no localization is applied. Public methods close Added in API level 1 public void close () Closes this formatter. If the destination implements the Closeable interface, its close method will be invoked. Closing a formatter allows it to release resources it may be holding (such as open files). If the formatter is already closed, then invoking this method has no effect. Attempting to invoke any methods except ioException() in this formatter after it has been closed will result in a FormatterClosedException. flush Added in API level 1 public void flush () Flushes this formatter. If the destination implements the Flushable interface, its flush method will be invoked. Flushing a formatter writes any buffered output in the destination to the underlying stream. Throws FormatterClosedException If this formatter has been closed by invoking its close() method format Added in API level 1 public Formatter format (String format, Object... args) Writes a formatted string to this object's destination using the specified format string and arguments. The locale used is the one defined during the construction of this formatter. Parameters format String: A format string as described in Format string syntax. args Object: Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The maximum number of arguments is limited by the maximum dimension of a Java array as defined by The Java Virtual Machine Specification. Returns Formatter This formatter Throws FormatterClosedException If this formatter has been closed by invoking its close() method IllegalFormatException If a format string contains an illegal syntax, a format specifier that is incompatible with the given arguments, insufficient arguments given the format string, or other illegal conditions. For specification of all possible formatting errors, see the Details section of the formatter class specification. format Added in API level 1 public Formatter format (Locale l, String format, Object... args) Writes a formatted string to this object's destination using the specified locale, format string, and arguments. Parameters l Locale: The locale to apply during formatting. If l is null then no localization is applied. This does not change this object's locale that was set during construction. format String: A format string as described in Format string syntax args Object: Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The maximum number of arguments is limited by the maximum dimension of a Java array as defined by The Java Virtual Machine Specification. Returns Formatter This formatter Throws FormatterClosedException If this formatter has been closed by invoking its close() method IllegalFormatException If a format string contains an illegal syntax, a format specifier that is incompatible with the given arguments, insufficient arguments given the format string, or other illegal conditions. For specification of all possible formatting errors, see the Details section of the formatter class specification. ioException Added in API level 1 public IOException ioException () Returns the IOException last thrown by this formatter's Appendable. If the destination's append() method never throws IOException, then this method will always return null. Returns IOException The last exception thrown by the Appendable or null if no such exception exists. locale Added in API level 1 public Locale locale () Returns the locale set by the construction of this formatter. The format method for this object which has a locale argument does not change this value. Returns Locale null if no localization is applied, otherwise a locale Throws FormatterClosedException If this formatter has been closed by invoking its close() method out Added in API level 1 public Appendable out () Returns the destination for the output. Returns Appendable The destination for the output Throws FormatterClosedException If this formatter has been closed by invoking its close() method toString Added in API level 1 public String toString () Returns the result of invoking toString() on the destination for the output. For example, the following code formats text into a StringBuilder then retrieves the resultant string: Formatter f = new Formatter(); f.format("Last reboot at %tc", lastRebootDate); String s = f.toString(); // -> s == "Last reboot at Sat Jan 01 00:00:00 PST 2000" An invocation of this method behaves in exactly the same way as the invocation out().toString() Depending on the specification of toString for the Appendable, the returned string may or may not contain the characters written to the destination. For instance, buffers typically return their contents in toString(), but streams cannot since the data is discarded. Returns String The result of invoking toString() on the destination for the output Throws FormatterClosedException If this formatter has been closed by invoking its close() method Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates. Last updated 2026-02-26 UTC. [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-02-26 UTC."],[],[]] X Follow @AndroidDev on X YouTube Check out Android Developers on YouTube LinkedIn Connect with the Android Developers community on LinkedIn More Android Android Android for Enterprise Security Source News Blog Podcasts Discover Gaming Machine Learning Health & Fitness Camera & Media Privacy 5G Android Devices Large screens Wear OS ChromeOS devices Android for cars Android TV Releases Android 17 Android 16 Android 15 Android 14 Android 13 Android 12 Android 11 Documentation and Downloads Android Studio guide Developers guides API reference Download Studio Android NDK Support Report platform bug Report documentation bug Google Play support Join research studies Android Chrome Firebase Google Cloud Platform All products Privacy License Brand guidelines Manage cookies Get news and tips by email Subscribe English Deutsch Español – América Latina Français Indonesia Polski Português – Brasil Tiếng Việt 中文 – 简体 日本語 한국어