aboutsummaryrefslogtreecommitdiff
path: root/tools/aconfig/aconfig/tests/test.aconfig
blob: c11508aabc22315c6ed865968b277eb0b85aca7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package: "com.android.aconfig.test"
container: "system"

# This flag's final value is calculated from:
# - test.aconfig: DISABLED + READ_WRITE (default)
# - first.values: DISABLED + READ_WRITE
# - second.values: ENABLED + READ_ONLY
flag {
    name: "enabled_ro"
    namespace: "aconfig_test"
    description: "This flag is ENABLED + READ_ONLY"
    bug: "abc"
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}

# This flag's final value is calculated from:
# - test.aconfig: DISABLED + READ_WRITE (default)
# - first.values: ENABLED + READ_WRITE
flag {
    name: "enabled_rw"
    namespace: "aconfig_test"
    description: "This flag is ENABLED + READ_WRITE"
    # for bug fields, the empty string is a discouraged but valid value
    bug: ""
}

# This flag's final value is calculated from:
# - test.aconfig: DISABLED + READ_WRITE (default)
# - first.values: DISABLED + READ_ONLY
flag {
    name: "disabled_ro"
    namespace: "aconfig_test"
    description: "This flag is DISABLED + READ_ONLY"
    bug: "123"
}

# This flag's final value is calculated from:
# - test.aconfig: DISABLED + READ_WRITE (default)
flag {
    name: "disabled_rw"
    namespace: "aconfig_test"
    description: "This flag is DISABLED + READ_WRITE"
    bug: "456"
}

# This flag's final value calculated from:
# - test.aconfig: DISABLED + READ_ONLY
# - first.values: ENABLED + READ_ONLY
flag {
    name: "enabled_fixed_ro"
    namespace: "aconfig_test"
    description: "This flag is fixed READ_ONLY + ENABLED"
    bug: ""
    is_fixed_read_only: true
}

flag {
    name: "disabled_rw_in_other_namespace"
    namespace: "other_namespace"
    description: "This flag is DISABLED + READ_WRITE, and is defined in another namespace"
    bug: "999"
}

flag {
    name: "enabled_ro_exported"
    namespace: "aconfig_test"
    description: "This flag is ENABLED + READ_ONLY and exported"
    bug: "111"
    is_exported: true
}

flag {
    name: "disabled_rw_exported"
    namespace: "aconfig_test"
    description: "This flag is DISABLED + READ_WRITE and exported"
    bug: "111"
    is_exported: true
}

flag {
    name: "enabled_fixed_ro_exported"
    namespace: "aconfig_test"
    description: "This flag is fixed ENABLED + READ_ONLY and exported"
    bug: "111"
    is_fixed_read_only: true
    is_exported: true
}