Expose android.os.Build.VERSION.ACTIVE_CODENAMES to CTS

So that CTS can handle more than one active codename.

Bug: 130764058
Test: atest CtsOsTestCases:android.os.cts.BuildTest#testBuildConstants
Change-Id: I671e28308723ee9e79ded01f12330e4efdbbbe17
This commit is contained in:
Dan Willemsen
2019-04-18 13:38:57 -07:00
parent 3876ca9d81
commit cac5c61e24
2 changed files with 2 additions and 0 deletions

View File

@@ -923,6 +923,7 @@ package android.net.util {
package android.os {
public static class Build.VERSION {
field public static final String[] ACTIVE_CODENAMES;
field public static final int FIRST_SDK_INT;
field public static final int RESOURCES_SDK_INT;
}

View File

@@ -287,6 +287,7 @@ public class Build {
/**
* @hide
*/
@TestApi
@UnsupportedAppUsage
public static final String[] ACTIVE_CODENAMES = "REL".equals(ALL_CODENAMES[0])
? new String[0] : ALL_CODENAMES;