Migrate ReferenceTimestampState to @IntDef

@IntDef/@StringDef annotation are preferred way for declaring
set of String/int values.

1. they need less space in APK than enum, see
https://developer.android.com/topic/performance/reduce-apk-size#remove-enums
2. they give more control over allowed values than "static final" values

Patch is migrating ReferenceTimestampState into @IntDef using rules similar to other @IntDef inside Chromium project:

1. with @IntDef/@StringDef first, @Retention second
   and related @interface third
2. with values inside @interface
3. with @Retention(RetentionPolicy.SOURCE)
4. without "static final" in the @interface

BUG=919666

Change-Id: I6cd29a847a26113461af27cd90406166c561a727
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1512639
Commit-Queue: Marcin Wiącek <marcin@mwiacek.com>
Reviewed-by: Simeon Anfinrud <sanfin@chromium.org>
Reviewed-by: Kenneth MacKay <kmackay@chromium.org>
Cr-Commit-Position: refs/heads/master@{#640914}
1 file changed