Merge "Add more IntDef prefixes for auto-documenting."
This commit is contained in:
committed by
Android (Google) Code Review
commit
4f47e565a9
@@ -129,7 +129,11 @@ public final class NetworkStats implements AutoCloseable {
|
|||||||
*/
|
*/
|
||||||
public static class Bucket {
|
public static class Bucket {
|
||||||
/** @hide */
|
/** @hide */
|
||||||
@IntDef({STATE_ALL, STATE_DEFAULT, STATE_FOREGROUND})
|
@IntDef(prefix = { "STATE_" }, value = {
|
||||||
|
STATE_ALL,
|
||||||
|
STATE_DEFAULT,
|
||||||
|
STATE_FOREGROUND
|
||||||
|
})
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
public @interface State {}
|
public @interface State {}
|
||||||
|
|
||||||
@@ -164,7 +168,11 @@ public final class NetworkStats implements AutoCloseable {
|
|||||||
public static final int UID_TETHERING = TrafficStats.UID_TETHERING;
|
public static final int UID_TETHERING = TrafficStats.UID_TETHERING;
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
@IntDef({METERED_ALL, METERED_NO, METERED_YES})
|
@IntDef(prefix = { "METERED_" }, value = {
|
||||||
|
METERED_ALL,
|
||||||
|
METERED_NO,
|
||||||
|
METERED_YES
|
||||||
|
})
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
public @interface Metered {}
|
public @interface Metered {}
|
||||||
|
|
||||||
@@ -187,7 +195,11 @@ public final class NetworkStats implements AutoCloseable {
|
|||||||
public static final int METERED_YES = 0x2;
|
public static final int METERED_YES = 0x2;
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
@IntDef({ROAMING_ALL, ROAMING_NO, ROAMING_YES})
|
@IntDef(prefix = { "ROAMING_" }, value = {
|
||||||
|
ROAMING_ALL,
|
||||||
|
ROAMING_NO,
|
||||||
|
ROAMING_YES
|
||||||
|
})
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
public @interface Roaming {}
|
public @interface Roaming {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user