aboutsummaryrefslogtreecommitdiff
path: root/tools/aconfig/aconfig/templates/FeatureFlags.java.template
blob: 13edcb4e52e023e3a20d0a369b4fa61078e6e728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package {package_name};
{{ if not library_exported- }}
// TODO(b/303773055): Remove the annotation after access issue is resolved.
import android.compat.annotation.UnsupportedAppUsage;
{{ -endif }}
/** @hide */
public interface FeatureFlags \{
{{ for item in flag_elements }}
{{ -if not item.is_read_write }}
{{ -if item.default_value }}
    @com.android.aconfig.annotations.AssumeTrueForR8
{{ -else }}
    @com.android.aconfig.annotations.AssumeFalseForR8
{{ -endif- }}
{{ -endif }}
{{ -if not library_exported }}
    @UnsupportedAppUsage
{{ -endif }}
    boolean {item.method_name}();
{{ -endfor }}
}