API Change Statistics


Overview · All Differences

The overall difference between API specifications 37.2 and d-beta1 is approximately 0.20%.

Total of differences, by number and type

The table lists the numbers of program elements (packages, classes, constructors, functions, and properties) that were added, changed, or removed. Only the highest-level program elements are counted (for example, functions inside a newly added class are counted under that added class rather than as individual added functions).

Type Additions Changes Removals Total
Packages 0 8 1 9
Classes and Interfaces 2 15 0 17
Constructors 2 0 0 2
Functions 18 5 0 23
Properties 8 0 0 8
Total 30 28 1 59

Changed packages, sorted by percentage difference

Percentage Difference* Package
9% android.widget.photopicker
1% android.app.appsearch
<1% android.system
<1% android.media
<1% android.health.connect
<1% android.hardware.camera2
<1% android.telecom
<1% android.content.pm

* See Calculation of change percentages.

Changed classes and interfaces, sorted by percentage difference

Percentage Difference* Class or Interface
25% android.app.appsearch.PackageIdentifier
23% android.widget.photopicker.EmbeddedPhotoPickerClient
20% android.widget.photopicker.EmbeddedPhotoPickerUiCustomizationParams.Builder
14% android.app.appsearch.EmbeddingVector
12% android.media.MediaSession2Service
11% android.widget.photopicker.EmbeddedPhotoPickerUiCustomizationParams
7% android.widget.photopicker.EmbeddedPhotoPickerFeatureInfo.Builder
6% android.widget.photopicker.EmbeddedPhotoPickerSession
6% android.widget.photopicker.EmbeddedPhotoPickerFeatureInfo
1% android.health.connect.HealthConnectManager
<1% android.system.OsConstants
<1% android.system.Os
<1% android.telecom.TelecomManager
<1% android.hardware.camera2.CaptureResult
<1% android.content.pm.PackageManager

* See Calculation of change percentages.

Calculation of change percentages

The percentage change statistic reported for elements in the 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 (weighted recursively by each package's class and member differences). If all packages are removed and replaced by entirely new packages, the overall percentage difference is 100%.