API Change Statistics

The overall difference between API Levels b-beta1 and b-beta2 is approximately 1.07%.


Total of Differences, by Number and Type

The table below lists the numbers of program elements (packages, classes, constructors, methods, and fields) that were added, changed, or removed. The table includes only the highest-level program elements — that is, if a class with two methods was added, the number of methods added does not include those two methods, but the number of classes added does include that class.

Type Additions Changes Removals Total
Packages 5 32 0 37
Classes and Interfaces 22 79 2 103
Constructors 0 0 1 1
Methods 70 23 7 100
Fields 130 30 5 165
Total 227 164 15 406

Changed Packages, Sorted by Percentage Difference

Percentage Difference* Package
9 android.nfc.cardemulation
6 android.view.autofill
5 android.service.wallpaper
5 android.os.health
4 android.hardware
4 android.adservices.ondevicepersonalization
3 android.os
3 android.bluetooth
2 android.app.appfunctions
1 android.hardware.display
1 android.net
1 android.graphics
<1 android.view
<1 android.telephony
<1 android.hardware.usb
<1 android.service.autofill
<1 android.service.quickaccesswallet
<1 android.security.keystore
<1 android.adservices.adselection
<1 android.view.contentcapture
<1 android.app.job
<1 android.hardware.camera2
<1 android.appwidget
<1 android.hardware.camera2.params
<1 android.media
<1 android.content.pm
<1 android.view.textclassifier
<1 android.app
<1 android
<1 android.app.admin
<1 android.provider
<1 android.content

* See Calculation of Change Percentages, below.


Changed Classes and Interfaces, Sorted by Percentage Difference

Percentage
Difference*
Class or Interface
50 android.telephony.CellIdentityCdma
50 android.telephony.CellInfoCdma
41 android.os.health.SystemHealthManager
40 android.adservices.ondevicepersonalization.OnDevicePersonalizationManager
38 android.view.autofill.AutofillId
33 android.adservices.ondevicepersonalization.InferenceOutput
22 android.os.RemoteCallbackList
20 android.adservices.ondevicepersonalization.FederatedComputeScheduler
17 android.os.TestLooperManager
14 android.adservices.ondevicepersonalization.InferenceInput.Builder
12 android.app.appfunctions.AppFunctionService
12 android.graphics.Gainmap
12 android.hardware.display.DisplayManager
11 android.adservices.ondevicepersonalization.InferenceInput
11 android.adservices.ondevicepersonalization.InferenceOutput.Builder
9 android.adservices.adselection.AdSelectionOutcome
9 android.hardware.OverlayProperties
9 android.service.autofill.FillEventHistory
9 android.service.wallpaper.WallpaperService
8 android.nfc.cardemulation.CardEmulation
8 android.service.autofill.AutofillService
8 android.app.AppOpsManager
7 android.security.keystore.KeyStoreManager
7 android.bluetooth.BluetoothDevice
6 android.adservices.adselection.ReportEventRequest
6 android.adservices.ondevicepersonalization.InferenceInput.Params
6 android.media.MediaCodec.Callback
6 android.service.autofill.FillEventHistory.Event
6 android.hardware.usb.UsbManager
5 android.graphics.RuntimeShader
5 android.view.AttachedSurfaceControl
5 android.media.AudioFormat
5 android.os.IBinder
4 android.service.quickaccesswallet.QuickAccessWalletService
4 android.bluetooth.BluetoothSocket
4 android.media.Spatializer
3 android.telephony.TelephonyManager
3 android.content.pm.SharedLibraryInfo
3 android.media.MediaRoute2Info
3 android.view.FrameMetrics
2 android.view.SurfaceControl.Transaction
2 android.view.contentcapture.ContentCaptureSession
2 android.os.PowerManager
2 android.graphics.ColorSpace.Named
2 android.hardware.camera2.CaptureRequest
2 android.view.textclassifier.TextClassifier
2 android.hardware.camera2.params.OutputConfiguration
2 android.view.KeyEvent
2 android.media.AudioDeviceInfo
2 android.view.Surface
2 android.media.MediaCodecInfo.CodecProfileLevel
1 android.hardware.camera2.CaptureResult
1 android.graphics.ImageFormat
1 android.service.wallpaper.WallpaperService.Engine
1 android.view.ViewStructure
1 android.provider.Settings
1 android.telephony.CarrierConfigManager
1 android.app.job.JobParameters
1 android.content.pm.PackageInstaller.SessionParams
1 android.os.Build.VERSION_CODES_FULL
1 android.os.Build.VERSION_CODES
1 android.bluetooth.BluetoothLeAudioCodecConfig
1 android.hardware.camera2.CameraCharacteristics
1 android.appwidget.AppWidgetProviderInfo
1 android.hardware.camera2.CameraMetadata
1 android.app.admin.DevicePolicyManager
1 android.hardware.DataSpace
<1 android.app.job.JobInfo
<1 android.content.pm.PackageInstaller.SessionInfo
<1 android.graphics.Path
<1 android.Manifest.permission
<1 android.media.MediaFormat
<1 android.bluetooth.BluetoothAdapter
<1 android.graphics.Paint
<1 android.content.Context
<1 android.content.pm.PackageManager
<1 android.content.Intent
<1 android.R.attr
<1 android.view.View

* See Calculation of Change Percentages, below.


Calculation of Change Percentages

The percent change statistic reported for all elements in the "to" API Level specification is defined recursively as follows:

Percentage difference = 100 * (added + removed + 2*changed)
                        -----------------------------------
                        sum of public elements in BOTH APIs

where added is the number of packages added, removed is the number of packages removed, and changed is the number of packages changed. This definition is applied recursively for the classes and their program elements, so the value for a changed package will be less than 1, unless every class in that package has changed. The definition ensures that if all packages are removed and all new packages are added, the change will be 100%.