Add more IntDef prefixes for auto-documenting.
Test: builds, boots Bug: 70177949 Exempt-From-Owner-Approval: annotation-only changes Change-Id: I76dde6054e06f52240bd4b1a0f196dcb74623608
This commit is contained in:
@@ -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