blob: 29922d8928733b23310e2ff0cde0281fcb15bb23 [file] [log] [blame]
Inseob Kim5f8f32c2018-08-24 11:10:44 +09001/*
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
Inseob Kim8802c7d2018-11-02 15:01:47 +090017syntax = "proto3";
Inseob Kim5f8f32c2018-08-24 11:10:44 +090018
19package sysprop;
20
Inseob Kim14e51872018-10-25 14:27:33 +090021enum Access {
22 Readonly = 0;
23 Writeonce = 1;
24 ReadWrite = 2;
Inseob Kim5f8f32c2018-08-24 11:10:44 +090025}
26
27enum Owner {
28 Platform = 0;
29 Vendor = 1;
30 Odm = 2;
31}
32
Inseob Kim14e51872018-10-25 14:27:33 +090033enum Scope {
34 Public = 0;
Inseob Kim1ca03f32019-06-08 16:31:59 +090035 System = 1 [deprecated=true];
Inseob Kim14e51872018-10-25 14:27:33 +090036 Internal = 2;
37}
38
Inseob Kim5f8f32c2018-08-24 11:10:44 +090039enum Type {
40 Boolean = 0;
41 Integer = 1;
42 Long = 2;
43 Double = 3;
44 String = 4;
45 Enum = 5;
Inseob Kim22133ec2020-10-28 22:08:07 +090046 UInt = 6;
47 ULong = 7;
Inseob Kim5f8f32c2018-08-24 11:10:44 +090048
49 BooleanList = 20;
50 IntegerList = 21;
51 LongList = 22;
Inseob Kim14e51872018-10-25 14:27:33 +090052 DoubleList = 23;
53 StringList = 24;
54 EnumList = 25;
Inseob Kim22133ec2020-10-28 22:08:07 +090055 UIntList = 26;
56 ULongList = 27;
Inseob Kim5f8f32c2018-08-24 11:10:44 +090057}
58
59message Property {
Inseob Kim8802c7d2018-11-02 15:01:47 +090060 string api_name = 1;
61 Type type = 2;
62 Access access = 3;
63 Scope scope = 4;
64 string prop_name = 5;
65 string enum_values = 6;
Inseob Kim9c5147d2019-03-06 11:36:36 +090066 bool integer_as_bool = 7;
Inseob Kim1ca03f32019-06-08 16:31:59 +090067 bool deprecated = 8;
Inseob Kim3f452c02020-03-31 13:41:19 +090068 string legacy_prop_name = 9;
Inseob Kim5f8f32c2018-08-24 11:10:44 +090069}
70
71message Properties {
Inseob Kim8802c7d2018-11-02 15:01:47 +090072 Owner owner = 1;
73 string module = 2;
Inseob Kim14e51872018-10-25 14:27:33 +090074 repeated Property prop = 3;
Inseob Kim5f8f32c2018-08-24 11:10:44 +090075}
Inseob Kim900fbad2019-06-26 14:09:20 +090076
77message SyspropLibraryApis {
78 repeated Properties props = 1;
79}