blob: a62d56ca5a86aa3fd82c8905017fef38a5094ce0 [file] [log] [blame]
Joe Onorato1754d742016-11-21 17:51:35 -08001/*
2 * Copyright (C) 2006 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
Yi Jinc7f93072017-09-29 15:29:38 -070017syntax = "proto2";
Joe Onorato1754d742016-11-21 17:51:35 -080018option java_package = "android.content";
19option java_multiple_files = true;
20
21package android.content;
22
Wale Ogunwale0d5609b2017-09-13 05:55:07 -070023import "frameworks/base/core/proto/android/app/window_configuration.proto";
Joe Onorato1754d742016-11-21 17:51:35 -080024import "frameworks/base/core/proto/android/content/locale.proto";
Yi Jin0d7bc2d12018-01-23 17:35:19 -080025import "frameworks/base/libs/incident/proto/android/privacy.proto";
Joe Onorato1754d742016-11-21 17:51:35 -080026
27/**
28 * An android resource configuration.
29 */
30message ConfigurationProto {
Yi Jin0d7bc2d12018-01-23 17:35:19 -080031 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
32
Yi Jinc7f93072017-09-29 15:29:38 -070033 optional float font_scale = 1;
34 optional uint32 mcc = 2;
35 optional uint32 mnc = 3;
Joe Onorato1754d742016-11-21 17:51:35 -080036 repeated LocaleProto locales = 4;
Yi Jinc7f93072017-09-29 15:29:38 -070037 optional uint32 screen_layout = 5;
38 optional uint32 touchscreen = 6;
39 optional uint32 keyboard_hidden = 7;
40 optional uint32 hard_keyboard_hidden = 8;
41 optional uint32 navigation = 9;
42 optional uint32 navigation_hidden = 10;
43 optional uint32 orientation = 11;
44 optional uint32 ui_mode = 12;
45 optional uint32 screen_width_dp = 13;
46 optional uint32 screen_height_dp = 14;
47 optional uint32 smallest_screen_width_dp = 15;
48 optional uint32 density_dpi = 16;
49 optional .android.app.WindowConfigurationProto window_configuration = 17;
Joe Onorato1754d742016-11-21 17:51:35 -080050}
51