Inseob Kim | 5f8f32c | 2018-08-24 11:10:44 +0900 | [diff] [blame] | 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 | |
Inseob Kim | 8802c7d | 2018-11-02 15:01:47 +0900 | [diff] [blame] | 17 | syntax = "proto3"; |
Inseob Kim | 5f8f32c | 2018-08-24 11:10:44 +0900 | [diff] [blame] | 18 | |
| 19 | package sysprop; |
| 20 | |
Inseob Kim | 14e5187 | 2018-10-25 14:27:33 +0900 | [diff] [blame] | 21 | enum Access { |
| 22 | Readonly = 0; |
| 23 | Writeonce = 1; |
| 24 | ReadWrite = 2; |
Inseob Kim | 5f8f32c | 2018-08-24 11:10:44 +0900 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | enum Owner { |
| 28 | Platform = 0; |
| 29 | Vendor = 1; |
| 30 | Odm = 2; |
| 31 | } |
| 32 | |
Inseob Kim | 14e5187 | 2018-10-25 14:27:33 +0900 | [diff] [blame] | 33 | enum Scope { |
| 34 | Public = 0; |
Inseob Kim | 1ca03f3 | 2019-06-08 16:31:59 +0900 | [diff] [blame] | 35 | System = 1 [deprecated=true]; |
Inseob Kim | 14e5187 | 2018-10-25 14:27:33 +0900 | [diff] [blame] | 36 | Internal = 2; |
| 37 | } |
| 38 | |
Inseob Kim | 5f8f32c | 2018-08-24 11:10:44 +0900 | [diff] [blame] | 39 | enum Type { |
| 40 | Boolean = 0; |
| 41 | Integer = 1; |
| 42 | Long = 2; |
| 43 | Double = 3; |
| 44 | String = 4; |
| 45 | Enum = 5; |
Inseob Kim | 22133ec | 2020-10-28 22:08:07 +0900 | [diff] [blame] | 46 | UInt = 6; |
| 47 | ULong = 7; |
Inseob Kim | 5f8f32c | 2018-08-24 11:10:44 +0900 | [diff] [blame] | 48 | |
| 49 | BooleanList = 20; |
| 50 | IntegerList = 21; |
| 51 | LongList = 22; |
Inseob Kim | 14e5187 | 2018-10-25 14:27:33 +0900 | [diff] [blame] | 52 | DoubleList = 23; |
| 53 | StringList = 24; |
| 54 | EnumList = 25; |
Inseob Kim | 22133ec | 2020-10-28 22:08:07 +0900 | [diff] [blame] | 55 | UIntList = 26; |
| 56 | ULongList = 27; |
Inseob Kim | 5f8f32c | 2018-08-24 11:10:44 +0900 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | message Property { |
Inseob Kim | 8802c7d | 2018-11-02 15:01:47 +0900 | [diff] [blame] | 60 | 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 Kim | 9c5147d | 2019-03-06 11:36:36 +0900 | [diff] [blame] | 66 | bool integer_as_bool = 7; |
Inseob Kim | 1ca03f3 | 2019-06-08 16:31:59 +0900 | [diff] [blame] | 67 | bool deprecated = 8; |
Inseob Kim | 3f452c0 | 2020-03-31 13:41:19 +0900 | [diff] [blame] | 68 | string legacy_prop_name = 9; |
Inseob Kim | 5f8f32c | 2018-08-24 11:10:44 +0900 | [diff] [blame] | 69 | } |
| 70 | |
| 71 | message Properties { |
Inseob Kim | 8802c7d | 2018-11-02 15:01:47 +0900 | [diff] [blame] | 72 | Owner owner = 1; |
| 73 | string module = 2; |
Inseob Kim | 14e5187 | 2018-10-25 14:27:33 +0900 | [diff] [blame] | 74 | repeated Property prop = 3; |
Inseob Kim | 5f8f32c | 2018-08-24 11:10:44 +0900 | [diff] [blame] | 75 | } |
Inseob Kim | 900fbad | 2019-06-26 14:09:20 +0900 | [diff] [blame] | 76 | |
| 77 | message SyspropLibraryApis { |
| 78 | repeated Properties props = 1; |
| 79 | } |