API Change Statistics

The overall difference between API Levels s-beta2 and 31 is approximately 0.16%.


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 0 16 0 16
Classes and Interfaces 3 31 3 37
Constructors 0 0 1 1
Methods 14 3 22 39
Fields 11 1 5 17
Total 28 51 31 110

Changed Packages, Sorted by Percentage Difference

Percentage Difference* Package
11 android.view.autofill
7 android.hardware.lights
6 android.view.translation
4 android.app.appsearch
2 android.app.blob
1 android.bluetooth
<1 android.view.inputmethod
<1 android.net.wifi
<1 android.speech
<1 android.net
<1 android.accessibilityservice
<1 android.view
<1 android.os
<1 android.content.pm
<1 android
<1 android.app

* See Calculation of Change Percentages, below.


Changed Classes and Interfaces, Sorted by Percentage Difference

Percentage
Difference*
Class or Interface
44 android.view.translation.TranslationManager
36 android.hardware.lights.Light
25 android.app.appsearch.GetSchemaResponse
20 android.view.translation.TranslationResponseValue.Builder
16 android.hardware.lights.LightsRequest
16 android.view.translation.TranslationRequest.Builder
14 android.net.wifi.WifiNetworkSpecifier
14 android.view.translation.TranslationResponseValue
12 android.view.translation.TranslationSpec
11 android.view.inputmethod.InlineSuggestionsRequest.Builder
11 android.view.translation.TranslationContext
11 android.view.translation.UiTranslationStateCallback
7 android.app.blob.BlobStoreManager.Session
6 android.view.translation.TranslationResponse.Builder
4 android.net.NetworkRequest.Builder
3 android.view.WindowInsets.Builder
3 android.net.wifi.WifiNetworkSpecifier.Builder
2 android.view.autofill.AutofillManager
2 android.view.inputmethod.InputMethodInfo
2 android.speech.SpeechRecognizer
1 android.view.WindowInsets
1 android.os.Build.VERSION_CODES
1 android.os.UserManager
<1 android.accessibilityservice.AccessibilityServiceInfo
<1 android.bluetooth.BluetoothDevice
<1 android.app.Notification.Builder
<1 android.net.ConnectivityManager
<1 android.content.pm.ApplicationInfo
<1 android.content.pm.PackageManager
<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%.