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