API Change Statistics

The overall difference between API Levels c-2-beta2 and c-2-beta3 is approximately 0.95%.


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 25 0 29
Classes and Interfaces 41 66 0 107
Constructors 0 0 0 0
Methods 78 0 0 78
Fields 88 2 0 90
Total 211 93 0 304

Changed Packages, Sorted by Percentage Difference

Percentage Difference* Package
48 android.app.privatecompute
10 android.app.role
5 android.security
5 android.view.contentcapture
3 android.app.admin
2 android.os
2 android.graphics.pdf
2 android.provider
1 android.bluetooth
<1 android.view
<1 android.app.appfunctions
<1 android.app
<1 android.content.pm
<1 android.net.wifi.aware
<1 android.hardware.biometrics
<1 android.app.job
<1 android.telephony
<1 android.net.http
<1 android.app.appsearch
<1 android.telecom
<1 android
<1 android.graphics
<1 android.content
<1 android.view.inputmethod
<1 android.media

* See Calculation of Change Percentages, below.


Changed Classes and Interfaces, Sorted by Percentage Difference

Percentage
Difference*
Class or Interface
33 android.bluetooth.BluetoothGattConnectionSettings
20 android.view.SurfaceControl.JankData
18 android.app.appfunctions.AppFunctionMetadata
17 android.graphics.pdf.RenderParams
14 android.bluetooth.BluetoothGattConnectionSettings.Builder
11 android.view.contentcapture.ContentCaptureSession
11 android.app.appsearch.AppSearchSchema.StringPropertyConfig
11 android.app.privatecompute.PccSandboxManager
10 android.security.NetworkSecurityPolicy
10 android.app.role.RoleManager
10 android.bluetooth.BluetoothHeadset
9 android.os.VibrationEffect
9 android.graphics.ImageDecoder.DecodeException
9 android.graphics.pdf.RenderParams.Builder
9 android.net.http.X509TrustManagerExtensions
8 android.view.WindowManager
6 android.content.ClipDescription
6 android.app.appsearch.AppSearchSchema.StringPropertyConfig.Builder
6 android.hardware.biometrics.BiometricManager
5 android.net.wifi.aware.PublishConfig
5 android.graphics.Outline
4 android.net.wifi.aware.SubscribeConfig
4 android.net.wifi.aware.PublishConfig.Builder
4 android.os.Vibrator
3 android.telecom.CallEndpoint
3 android.hardware.biometrics.BiometricPrompt.Builder
3 android.net.wifi.aware.SubscribeConfig.Builder
3 android.view.SurfaceControl
3 android.view.ViewTreeObserver
3 android.view.inputmethod.InputMethodManager
2 android.os.Process
2 android.app.job.JobInfo
2 android.app.ActivityOptions
2 android.net.wifi.aware.Characteristics
2 android.bluetooth.BluetoothDevice
2 android.view.SurfaceView
1 android.app.admin.DevicePolicyManager
1 android.R.string
1 android.telecom.DisconnectCause
1 android.app.job.JobInfo.Builder
1 android.content.pm.ApplicationInfo
1 android.app.ApplicationExitInfo
1 android.hardware.biometrics.BiometricPrompt
1 android.os.Build.VERSION_CODES_FULL
1 android.Manifest.permission
<1 android.bluetooth.BluetoothClass.Device
<1 android.app.ApplicationStartInfo
<1 android.graphics.RenderNode
<1 android.provider.Settings
<1 android.telecom.Call.Details
<1 android.content.Context
<1 android.app.AppOpsManager
<1 android.telephony.DisconnectCause
<1 android.provider.CallLog.Calls
<1 android.R.id
<1 android.telecom.TelecomManager
<1 android.media.AudioManager
<1 android.os.UserManager
<1 android.provider.Settings.System
<1 android.telephony.TelephonyManager
<1 android.telecom.Connection
<1 android.content.pm.PackageManager
<1 android.telephony.CarrierConfigManager
<1 android.R.attr
<1 android.view.View
<1 android.content.Intent

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