API Change Statistics
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%. Values are rounded here, so a value of 0% indicates a percentage difference of less than 0.5%.
The overall difference between the two APIs is approximately 2%.
Contents
- Changed Packages
- Sorted by percentage difference
- Changed Classes and Interfaces
- Sorted by percentage difference
- Total of Differences
- Listed by number and type
Changed Packages, Sorted by Percentage Difference
Percentage Difference | Package |
---|---|
36 | android.telephony.gsm |
22 | android.telephony |
21 | android |
16 | android.opengl |
9 | android.content.pm |
9 | android.view.animation |
5 | android.graphics.drawable |
4 | android.content |
4 | android.net.wifi |
2 | android.media |
2 | android.util |
2 | android.os |
1 | android.app |
<1 | android.view |
<1 | android.content.res |
<1 | android.test |
<1 | android.location |
<1 | android.graphics |
<1 | android.text.style |
<1 | android.test.mock |
<1 | android.widget |
<1 | android.provider |
<1 | android.inputmethodservice |
<1 | java.net |
<1 | java.util |
<1 | java.lang |
<1 | android.hardware |
Changed Classes and Interfaces, Sorted by Percentage Difference
Total of Differences, by Number and Type
The table below lists the numbers of program elements (packages, classes, constructors, methods, and fields) that were removed, added or changed. 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.
Number of Differences | ||||
---|---|---|---|---|
Removals | Additions | Changes | Total | |
Packages | 0 | 4 | 27 | 31 |
Classes and Interfaces | 2 | 20 | 80 | 102 |
Constructors | 0 | 6 | 20 | 26 |
Methods | 3 | 80 | 43 | 126 |
Fields | 29 | 433 | 27 | 489 |
Total | 34 | 543 | 197 | 774 |