1/*
2 * Copyright (C) 2017 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 = "proto2";
18package android.providers.settings;
19
20option java_multiple_files = true;
21option java_outer_classname = "SettingsServiceProto";
22
23import "frameworks/base/core/proto/android/providers/settings/config.proto";
24import "frameworks/base/core/proto/android/providers/settings/global.proto";
25import "frameworks/base/core/proto/android/providers/settings/secure.proto";
26import "frameworks/base/core/proto/android/providers/settings/system.proto";
27import "frameworks/base/core/proto/android/privacy.proto";
28
29message SettingsServiceDumpProto {
30    option (android.msg_privacy).dest = DEST_EXPLICIT;
31
32    // Per user settings
33    repeated UserSettingsProto user_settings = 1;
34
35    // Global settings
36    optional GlobalSettingsProto global_settings = 2;
37
38    // Config settings
39    optional ConfigSettingsProto config_settings = 3;
40}
41
42message UserSettingsProto {
43    option (android.msg_privacy).dest = DEST_EXPLICIT;
44
45    // Should be 0, 10, 11, 12, etc. where 0 is the owner.
46    optional int32 user_id = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
47
48    // The secure settings for this user
49    optional SecureSettingsProto secure_settings = 2;
50
51    // The system settings for this user
52    optional SystemSettingsProto system_settings = 3;
53}
54
55message SettingsProto {
56    // Enum values gotten from Settings.java
57    enum ScreenBrightnessMode {
58        SCREEN_BRIGHTNESS_MODE_MANUAL = 0;
59        SCREEN_BRIGHTNESS_MODE_AUTOMATIC = 1;
60    }
61}
62