API Change Statistics

The overall difference between API Levels s-dp3 and s-beta1 is approximately 0.53%.


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 2 22 0 24
Classes and Interfaces 10 52 0 62
Constructors 0 0 5 5
Methods 43 4 16 63
Fields 51 0 2 53
Total 106 78 23 207

Changed Packages, Sorted by Percentage Difference

Percentage Difference* Package
3 android.app.appsearch
3 android.hardware.display
2 android.service.autofill
2 android.app.blob
2 android.content
1 android.view.displayhash
1 android.content.pm
1 android.media
1 android.net.wifi.p2p
<1 android.speech
<1 android.hardware.camera2.params
<1 android.content.res
<1 android.telephony.data
<1 android.location
<1 android.app.admin
<1 android.system
<1 android.net
<1 android
<1 android.telecom
<1 android.app
<1 android.telephony
<1 android.view

* See Calculation of Change Percentages, below.


Changed Classes and Interfaces, Sorted by Percentage Difference

Percentage
Difference*
Class or Interface
60 android.content.ContextParams
33 android.app.appsearch.AppSearchManager.SearchContext.Builder
27 android.media.AudioProfile
25 android.app.appsearch.GetSchemaResponse
22 android.net.wifi.p2p.WifiP2pWfdInfo
20 android.app.appsearch.AppSearchSchema
20 android.app.appsearch.RemoveByUriRequest.Builder
20 android.app.appsearch.ReportUsageRequest.Builder
20 android.content.ContextParams.Builder
16 android.app.appsearch.GetByUriRequest.Builder
16 android.hardware.display.DisplayManager
14 android.app.appsearch.AppSearchSchema.Builder
14 android.app.appsearch.SearchResult.MatchInfo
14 android.hardware.camera2.params.MandatoryStreamCombination.MandatoryStreamInformation
9 android.app.appsearch.SearchResult
8 android.app.appsearch.GenericDocument.Builder
7 android.app.appsearch.SetSchemaRequest
7 android.app.blob.BlobStoreManager.Session
7 android.media.MediaCodecInfo.EncoderCapabilities
6 android.view.displayhash.DisplayHashResultCallback
5 android.service.autofill.AutofillService
5 android.speech.RecognitionService.Callback
4 android.app.appsearch.SetSchemaRequest.Builder
4 android.content.pm.PackageInstaller.SessionInfo
4 android.app.appsearch.AppSearchSession
3 android.content.res.ColorStateList
2 android.media.MediaCodec
2 android.content.pm.ApplicationInfo
2 android.location.Location
2 android.content.pm.PackageInstaller.Session
2 android.content.pm.PackageInstaller.SessionParams
2 android.app.appsearch.GenericDocument
2 android.net.NetworkCapabilities
1 android.telephony.data.ApnSetting
1 android.content.pm.LauncherApps
1 android.content.res.TypedArray
1 android.media.MediaRecorder
1 android.app.Notification.Builder
1 android.media.AudioDeviceInfo
<1 android.content.ContentProvider
<1 android.app.Notification
<1 android.media.CamcorderProfile
<1 android.app.admin.DevicePolicyManager
<1 android.media.MediaCodecInfo.CodecCapabilities
<1 android.telecom.TelecomManager
<1 android.system.OsConstants
<1 android.view.View
<1 android.telephony.TelephonyManager
<1 android.content.pm.PackageManager
<1 android.Manifest.permission
<1 android.content.Context
<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%.