1/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto3";
18
19package sysprop;
20
21enum Access {
22  Readonly = 0;
23  Writeonce = 1;
24  ReadWrite = 2;
25}
26
27enum Owner {
28  Platform = 0;
29  Vendor = 1;
30  Odm = 2;
31}
32
33enum Scope {
34  Public = 0;
35  System = 1 [deprecated=true];
36  Internal = 2;
37}
38
39enum Type {
40  Boolean = 0;
41  Integer = 1;
42  Long = 2;
43  Double = 3;
44  String = 4;
45  Enum = 5;
46
47  BooleanList = 20;
48  IntegerList = 21;
49  LongList = 22;
50  DoubleList = 23;
51  StringList = 24;
52  EnumList = 25;
53}
54
55message Property {
56  string api_name = 1;
57  Type type = 2;
58  Access access = 3;
59  Scope scope = 4;
60  string prop_name = 5;
61  string enum_values = 6;
62  bool integer_as_bool = 7;
63  bool deprecated = 8;
64  string legacy_prop_name = 9;
65}
66
67message Properties {
68  Owner owner = 1;
69  string module = 2;
70  repeated Property prop = 3;
71}
72
73message SyspropLibraryApis {
74  repeated Properties props = 1;
75}
76