summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Mårten Kongstad <amhk@google.com> 2023-09-13 10:42:02 +0200
committer Mårten Kongstad <amhk@google.com> 2023-09-15 09:28:46 +0200
commit35eb10d9dc5f7c99d50c87029a6fac3dc25e105b (patch)
tree75e35019d9fbb50edadd7daf36c22f1914259ac3 /api/api_test.go
parent22b818af8dc9520b66cabb9e32370038114b0649 (diff)
Expand @FlaggedApi(FLAG) constants in API signature files
The auto-generated Flags.FLAG_NAME constants are difficult to review in API tracking files. metalava will expand annotation arguments if (1) the field declaration is known to metalava, and (2) the constant is not part of the API surface. The auto-generated constants are hidden, so not part of any API surface. This satisfies (1). This CL adds the auto-generated sources to metalava's input. This satisfies (2). Example how how this CL modifies the API signature files: - method @FlaggedApi(Flags.FLAG_SCROLL_FEEDBACK_API) public boolean isHapticScrollFeedbackEnabled(int, int, int); + method @FlaggedApi("android.view.flags.scroll_feedback_api") public boolean isHapticScrollFeedbackEnabled(int, int, int); Bug: 297881670 Test: m checkapi Change-Id: I3259a2f4a114eb8c6eaff0bdbe151f6caef414aa
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions