API Change Statistics

The overall difference between API Levels c-2-beta3 and 37.2 is approximately 2.24%.


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 11 21 0 32
Classes and Interfaces 21 33 3 57
Constructors 1 0 0 1
Methods 39 0 1 40
Fields 49 0 1 50
Total 121 54 5 180

Changed Packages, Sorted by Percentage Difference

Percentage Difference* Package
100 android.security.authenticationpolicy
12 android.hardware.biometrics
12 android.hardware.hid
7 android.companion.virtual
7 android.companion
2 android.app
2 android.view.accessibility
2 android.window
1 android.content.pm
<1 android.os
<1 android.hardware.input
<1 android.app.appfunctions
<1 android.service.notification
<1 android.widget
<1 android.bluetooth
<1 android.view.textclassifier
<1 android.view
<1 android.telephony
<1 android.content
<1 android
<1 android.provider

* See Calculation of Change Percentages, below.


Changed Classes and Interfaces, Sorted by Percentage Difference

Percentage
Difference*
Class or Interface
100 android.security.authenticationpolicy.AuthenticationPolicyManager
33 android.widget.RemoteViews.DrawInstructions
22 android.window.TrustedPresentationThresholds
21 android.companion.virtual.VirtualDevice
16 android.app.StatusBarManager
15 android.companion.CompanionDeviceService
13 android.companion.CompanionDeviceManager
13 android.view.accessibility.AccessibilityNodeInfo.SelectionPosition
11 android.app.PictureInPictureParams
9 android.companion.AssociationInfo
7 android.app.PictureInPictureParams.Builder
7 android.app.appfunctions.AppFunctionManager
6 android.hardware.input.SimpleCustomizationAction
5 android.hardware.hid.HidDevice
4 android.view.accessibility.AccessibilityWindowInfo
3 android.bluetooth.BluetoothGattServerCallback
3 android.view.ActionMode
3 android.os.VibrationEffect
2 android.bluetooth.BluetoothGattCallback
2 android.view.textclassifier.TextClassifier
1 android.service.notification.NotificationListenerService.Ranking
1 android.content.pm.PackageInfo
1 android.provider.Settings
<1 android.telephony.CarrierConfigManager
<1 android.app.Notification
<1 android.app.Notification.Builder
<1 android.content.Context
<1 android.content.pm.ApplicationInfo
<1 android.widget.RemoteViews
<1 android.content.Intent
<1 android.app.Activity
<1 android.Manifest.permission
<1 android.content.pm.PackageManager

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