Description: JDiff is a Javadoc doclet which generates an HTML report of all the packages, classes, constructors, methods, and fields which have been removed, added or changed in any way, including their documentation, when two APIs are compared.
Keywords: diff, jdiff, javadiff, java diff, java difference, API difference, difference between two APIs, API diff, Javadoc, doclet

Android Developers | Android.com

API Diff Specification
To Level: | 20
From Level: | 19
Generated | 2014.06.27 16:36

Top of Report

# API Change Statistics

The overall difference between API Levels 19 and 20 is approximately 0.13%.

## 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 | 13 | 0 | 13
Classes and Interfaces | 10 | 25 | 0 | 35
Constructors | 0 | 0 | 0 | 0
Methods | 32 | 5 | 1 | 38
Fields | 45 | 2 | 0 | 47
Total | 87 | 45 | 1 | 133

## Changed Packages, Sorted by Percentage Difference

Percentage Difference* | Package
--- | ---
12 | android.hardware.display
3 | android.app
1 | android.service.notification
1 | android.hardware
<1 | android.view
<1 | android.renderscript
<1 | android.content.pm
<1 | android.test.mock
<1 | org.json
<1 | android.os
<1 | android.content.res
<1 | android.util
<1 | android

* See Calculation of Change Percentages, below.

## Changed Classes and Interfaces, Sorted by Percentage Difference

Percentage Difference* | Class or Interface
--- | ---
33 | android.hardware.display.VirtualDisplay
27 | android.hardware.Sensor
11 | android.app.Notification.Action
10 | android.app.Notification.Builder
10 | android.view.Display
8 | android.os.PowerManager
5 | android.content.pm.PackageItemInfo
4 | android.hardware.display.DisplayManager
4 | android.content.pm.ComponentInfo
3 | android.service.notification.StatusBarNotification
3 | android.content.pm.PackageManager
2 | android.app.Notification
2 | android.test.mock.MockPackageManager
2 | android.os.Build.VERSION_CODES
1 | android.view.ViewConfiguration
1 | org.json.JSONObject
<1 | android.util.TypedValue
<1 | android.hardware.SensorManager
<1 | android.content.res.Configuration
<1 | android.view.View
<1 | android.view.Window
<1 | android.view.KeyEvent
<1 | android.view.WindowManager.LayoutParams
<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%.