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

This commit is contained in:
Dan Willemsen
2019-04-19 19:30:50 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 0 deletions

View File

@@ -923,6 +923,7 @@ package android.net.util {
package android.os { package android.os {
public static class Build.VERSION { 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 FIRST_SDK_INT;
field public static final int RESOURCES_SDK_INT; field public static final int RESOURCES_SDK_INT;
} }

View File

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