API Change Statistics

The overall difference between API Levels 22.2.0 and 22.2.1 is approximately 2.17%.


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 1 7 0 8
Classes and Interfaces 16 32 6 54
Constructors 1 0 0 1
Methods 36 10 0 46
Fields 43 0 2 45
Total 97 49 8 154

Changed Packages, Sorted by Percentage Difference

Percentage Difference* Package
11 android.support.v17.leanback.widget
8 android.support.v7.app
3 android.support.v7.appcompat
3 android.support.v7.util
2 android.support.v4.app
2 android.support.design.widget
1 android.support.v17.leanback.app

* See Calculation of Change Percentages, below.


Changed Classes and Interfaces, Sorted by Percentage Difference

Percentage
Difference*
Class or Interface
100 android.support.v4.app.NotificationCompatBase
50 android.support.v17.leanback.widget.OnChildSelectedListener
41 android.support.v4.app.NotificationCompatBase.Action
33 android.support.v17.leanback.widget.Presenter.ViewHolder
29 android.support.v17.leanback.widget.ShadowOverlayContainer
25 android.support.design.widget.FloatingActionButton.Behavior
23 android.support.v17.leanback.app.DetailsFragment
23 android.support.v17.leanback.app.DetailsSupportFragment
20 android.support.design.widget.FloatingActionButton
20 android.support.v17.leanback.widget.PresenterSelector
20 android.support.v7.appcompat.R.integer
16 android.support.v4.app.NotificationCompat.Action
11 android.support.v7.appcompat.R.layout
11 android.support.v17.leanback.widget.Presenter
10 android.support.design.widget.Snackbar
9 android.support.v7.util.SortedList
9 android.support.v17.leanback.widget.ItemBridgeAdapter.ViewHolder
7 android.support.v7.appcompat.R.id
4 android.support.v17.leanback.widget.DetailsOverviewRowPresenter
3 android.support.design.widget.TabLayout.Tab
2 android.support.v7.appcompat.R.string
2 android.support.v17.leanback.widget.VerticalGridPresenter
2 android.support.v17.leanback.widget.ItemBridgeAdapter
2 android.support.v7.appcompat.R.dimen
2 android.support.v17.leanback.widget.ListRowPresenter
2 android.support.design.widget.CoordinatorLayout.Behavior
1 android.support.v7.appcompat.R.style
1 android.support.design.widget.TabLayout
1 android.support.v17.leanback.widget.RowPresenter
<1 android.support.v7.appcompat.R.drawable
<1 android.support.v7.appcompat.R.attr
<1 android.support.v7.appcompat.R.styleable

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