API Change Statistics

The overall difference between API Levels 35 and b-dp1 is approximately 1.11%.


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 4 19 0 23
Classes and Interfaces 41 64 0 105
Constructors 9 0 0 9
Methods 58 10 0 68
Fields 51 25 1 77
Total 163 118 1 282

Changed Packages, Sorted by Percentage Difference

Percentage Difference* Package
27 android.health.connect
24 android.app.sdksandbox.sdkprovider
12 android.adservices.customaudience
10 android.hardware.fingerprint
8 android.adservices.ondevicepersonalization
7 android.adservices.adselection
4 android.app.appsearch
3 android.health.connect.datatypes
1 java.util.concurrent
<1 android.os
<1 android
<1 android.telephony
<1 android.provider
<1 android.content.pm
<1 android.view.inputmethod
<1 android.graphics
<1 android.view
<1 android.content
<1 java.util

* See Calculation of Change Percentages, below.


Changed Classes and Interfaces, Sorted by Percentage Difference

Percentage
Difference*
Class or Interface
60 android.adservices.ondevicepersonalization.IsolatedServiceException
53 android.adservices.ondevicepersonalization.OnDevicePersonalizationException
50 java.util.concurrent.ThreadLocalRandom
42 android.hardware.fingerprint.FingerprintManager
33 android.adservices.ondevicepersonalization.DownloadCompletedInput
28 java.util.concurrent.ConcurrentHashMap.KeySetView
25 android.adservices.ondevicepersonalization.TrainingExamplesInput
23 android.health.connect.HealthConnectManager
20 android.adservices.adselection.GetAdSelectionDataRequest
20 android.adservices.ondevicepersonalization.EventInput
20 android.adservices.ondevicepersonalization.ExecuteInput
20 android.adservices.ondevicepersonalization.OnDevicePersonalizationManager
20 android.telephony.CarrierConfigManager.Gps
15 android.provider.ContactsContract.CommonDataKinds.SipAddress
14 android.adservices.ondevicepersonalization.RenderInput
14 android.adservices.ondevicepersonalization.WebTriggerInput
14 android.app.appsearch.AppSearchManager
14 android.app.appsearch.AppSearchSchema.BooleanPropertyConfig.Builder
14 android.app.appsearch.AppSearchSchema.BytesPropertyConfig.Builder
14 android.app.appsearch.AppSearchSchema.DoublePropertyConfig.Builder
11 android.adservices.adselection.GetAdSelectionDataRequest.Builder
11 android.adservices.ondevicepersonalization.AppInfo
11 android.adservices.ondevicepersonalization.ExecuteOutput
11 android.app.appsearch.AppSearchSchema.Builder
11 android.app.appsearch.AppSearchSchema.LongPropertyConfig.Builder
11 android.app.sdksandbox.sdkprovider.SdkSandboxController
10 android.app.appsearch.SearchSpec.Builder
10 android.R.integer
9 android.adservices.customaudience.CustomAudienceManager
9 android.app.appsearch.AppSearchResult
9 android.app.appsearch.AppSearchSchema.PropertyConfig
8 android.health.connect.HealthPermissions
8 android.os.BatteryManager
8 android.app.appsearch.SearchSuggestionSpec.Builder
7 android.app.appsearch.AppSearchSchema
7 android.app.appsearch.AppSearchSchema.StringPropertyConfig.Builder
7 android.app.appsearch.SearchResult.Builder
7 android.app.appsearch.SearchSpec
6 android.adservices.ondevicepersonalization.ExecuteOutput.Builder
6 android.provider.ContactsContract.CommonDataKinds.Im
5 android.app.appsearch.AppSearchSchema.DocumentPropertyConfig.Builder
5 android.app.appsearch.SearchResult
5 android.provider.MediaStore.Audio.AudioColumns
4 android.app.appsearch.GenericDocument
4 android.adservices.customaudience.CustomAudience.Builder
4 android.app.appsearch.SearchSuggestionSpec
4 android.os.Build.VERSION
4 java.util.concurrent.ExecutorService
3 android.adservices.customaudience.CustomAudience
3 android.content.pm.SharedLibraryInfo
3 android.provider.MediaStore
3 android.view.inputmethod.InputMethodManager
3 android.app.appsearch.GenericDocument.Builder
3 android.os.Build
2 android.graphics.ColorSpace.Named
2 android.provider.MediaStore.MediaColumns
1 android.R.string
1 android.content.pm.ActivityInfo
<1 android.view.Display
<1 android.os.UserManager
<1 java.util.Arrays
<1 android.content.Context
<1 android.Manifest.permission
<1 android.R.attr

* 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%.