| Zhi Dou | 4655c96 | 2023-06-12 15:56:03 +0000 | [diff] [blame] | 1 | package {package_name}; |
| Zhi Dou | 22a90f4 | 2023-10-06 07:28:44 +0000 | [diff] [blame] | 2 | // TODO(b/303773055): Remove the annotation after access issue is resolved. |
| 3 | import android.compat.annotation.UnsupportedAppUsage; |
| Zhi Dou | 4655c96 | 2023-06-12 15:56:03 +0000 | [diff] [blame] | 4 | |
| MÃ¥rten Kongstad | 65efa27 | 2023-09-11 12:17:25 +0000 | [diff] [blame] | 5 | /** @hide */ |
| Zhi Dou | 4655c96 | 2023-06-12 15:56:03 +0000 | [diff] [blame] | 6 | public interface FeatureFlags \{ |
| Zhi Dou | 72c2a93 | 2023-10-31 22:57:30 +0000 | [diff] [blame] | 7 | {{ for item in flag_elements }} |
| Ted Bauer | 4a6af78 | 2023-11-29 15:44:24 +0000 | [diff] [blame] | 8 | {{ if library_exported }} |
| 9 | |
| 10 | {{ if item.exported }} |
| 11 | @UnsupportedAppUsage |
| 12 | boolean {item.method_name}(); |
| 13 | {{ endif }} |
| 14 | |
| 15 | {{ else }} |
| 16 | |
| Zhi Dou | deafa79 | 2023-09-05 18:22:46 +0000 | [diff] [blame] | 17 | {{ -if not item.is_read_write }} |
| 18 | {{ -if item.default_value }} |
| 19 | @com.android.aconfig.annotations.AssumeTrueForR8 |
| 20 | {{ -else }} |
| 21 | @com.android.aconfig.annotations.AssumeFalseForR8 |
| 22 | {{ -endif- }} |
| 23 | {{ endif }} |
| Zhi Dou | 22a90f4 | 2023-10-06 07:28:44 +0000 | [diff] [blame] | 24 | @UnsupportedAppUsage |
| Zhi Dou | 4655c96 | 2023-06-12 15:56:03 +0000 | [diff] [blame] | 25 | boolean {item.method_name}(); |
| Ted Bauer | 4a6af78 | 2023-11-29 15:44:24 +0000 | [diff] [blame] | 26 | |
| 27 | {{ endif }} |
| Zhi Dou | a41cc5e | 2023-06-29 15:01:56 +0000 | [diff] [blame] | 28 | {{ endfor }} |
| 29 | } |