• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/generation.proto";
25import "frameworks/base/core/proto/android/providers/settings/global.proto";
26import "frameworks/base/core/proto/android/providers/settings/secure.proto";
27import "frameworks/base/core/proto/android/providers/settings/system.proto";
28import "frameworks/base/core/proto/android/privacy.proto";
29
30message SettingsServiceDumpProto {
31    option (android.msg_privacy).dest = DEST_EXPLICIT;
32
33    // Per user settings
34    repeated UserSettingsProto user_settings = 1;
35
36    // Global settings
37    optional GlobalSettingsProto global_settings = 2;
38
39    // Config settings
40    optional ConfigSettingsProto config_settings = 3;
41
42    // Generation registry stats
43    optional GenerationRegistryProto generation_registry = 4;
44}
45
46message UserSettingsProto {
47    option (android.msg_privacy).dest = DEST_EXPLICIT;
48
49    // Should be 0, 10, 11, 12, etc. where 0 is the owner.
50    optional int32 user_id = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
51
52    // The secure settings for this user
53    optional SecureSettingsProto secure_settings = 2;
54
55    // The system settings for this user
56    optional SystemSettingsProto system_settings = 3;
57}
58
59message SettingsProto {
60    // Enum values gotten from Settings.java
61    enum ScreenBrightnessMode {
62        SCREEN_BRIGHTNESS_MODE_MANUAL = 0;
63        SCREEN_BRIGHTNESS_MODE_AUTOMATIC = 1;
64    }
65}
66