blob: 180f8828d265307d605620fe9050c0840446774f [file] [log] [blame]
Zhi Dou4655c962023-06-12 15:56:03 +00001package {package_name};
Zhi Dou22a90f42023-10-06 07:28:44 +00002// TODO(b/303773055): Remove the annotation after access issue is resolved.
3import android.compat.annotation.UnsupportedAppUsage;
Zhi Dou4655c962023-06-12 15:56:03 +00004
MÃ¥rten Kongstad65efa272023-09-11 12:17:25 +00005/** @hide */
Zhi Dou4655c962023-06-12 15:56:03 +00006public interface FeatureFlags \{
Zhi Dou72c2a932023-10-31 22:57:30 +00007{{ for item in flag_elements }}
Ted Bauer4a6af782023-11-29 15:44:24 +00008{{ if library_exported }}
9
10{{ if item.exported }}
11 @UnsupportedAppUsage
12 boolean {item.method_name}();
13{{ endif }}
14
15{{ else }}
16
Zhi Doudeafa792023-09-05 18:22:46 +000017{{ -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 Dou22a90f42023-10-06 07:28:44 +000024 @UnsupportedAppUsage
Zhi Dou4655c962023-06-12 15:56:03 +000025 boolean {item.method_name}();
Ted Bauer4a6af782023-11-29 15:44:24 +000026
27{{ endif }}
Zhi Doua41cc5e2023-06-29 15:01:56 +000028{{ endfor }}
29}