| 1 |
/* |
| 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 |
|
| 17 |
syntax = "proto2"; |
| 18 |
option java_multiple_files = true; |
| 19 |
|
| 20 |
package android.content; |
| 21 |
|
| 22 |
import "frameworks/base/core/proto/android/app/window_configuration.proto"; |
| 23 |
import "frameworks/base/core/proto/android/content/locale.proto"; |
| 24 |
import "frameworks/base/core/proto/android/privacy.proto"; |
| 25 |
|
| 26 |
/** |
| 27 |
* An android Configuration object. |
| 28 |
*/ |
| 29 |
message ConfigurationProto { |
| 30 |
option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| 31 |
|
| 32 |
optional float font_scale = 1; |
| 33 |
optional uint32 mcc = 2; |
| 34 |
optional uint32 mnc = 3 [ (.android.privacy).dest = DEST_EXPLICIT ]; |
| 35 |
repeated LocaleProto locales = 4 [deprecated = true]; |
| 36 |
optional uint32 screen_layout = 5; |
| 37 |
optional uint32 color_mode = 6; |
| 38 |
optional uint32 touchscreen = 7; |
| 39 |
optional uint32 keyboard = 8; |
| 40 |
optional uint32 keyboard_hidden = 9; |
| 41 |
optional uint32 hard_keyboard_hidden = 10; |
| 42 |
optional uint32 navigation = 11; |
| 43 |
optional uint32 navigation_hidden = 12; |
| 44 |
optional uint32 orientation = 13; |
| 45 |
optional uint32 ui_mode = 14; |
| 46 |
optional uint32 screen_width_dp = 15; |
| 47 |
optional uint32 screen_height_dp = 16; |
| 48 |
optional uint32 smallest_screen_width_dp = 17; |
| 49 |
optional uint32 density_dpi = 18; |
| 50 |
optional .android.app.WindowConfigurationProto window_configuration = 19; |
| 51 |
optional string locale_list = 20; |
| 52 |
optional uint32 font_weight_adjustment = 21; |
| 53 |
} |
| 54 |
|
| 55 |
/** |
| 56 |
* All current configuration data used to select resources. |
| 57 |
*/ |
| 58 |
message ResourcesConfigurationProto { |
| 59 |
option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| 60 |
|
| 61 |
required ConfigurationProto configuration = 1; |
| 62 |
|
| 63 |
optional uint32 sdk_version = 2; |
| 64 |
optional uint32 screen_width_px = 3; |
| 65 |
optional uint32 screen_height_px = 4; |
| 66 |
} |
| 67 |
|
| 68 |
/** |
| 69 |
* Overall device configuration data. |
| 70 |
*/ |
| 71 |
message DeviceConfigurationProto { |
| 72 |
option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| 73 |
|
| 74 |
optional uint32 stable_screen_width_px = 1; |
| 75 |
optional uint32 stable_screen_height_px = 2; |
| 76 |
optional uint32 stable_density_dpi = 3; |
| 77 |
|
| 78 |
optional uint64 total_ram = 4; |
| 79 |
optional bool low_ram = 5; |
| 80 |
optional uint32 max_cores = 6; |
| 81 |
optional bool has_secure_screen_lock = 7; |
| 82 |
|
| 83 |
optional uint32 opengl_version = 8; |
| 84 |
repeated string opengl_extensions = 9; |
| 85 |
|
| 86 |
repeated string shared_libraries = 10; |
| 87 |
repeated string features = 11; |
| 88 |
repeated string cpu_architectures = 12; |
| 89 |
} |
| 90 |
|
| 91 |
/** |
| 92 |
* All current configuration data device is running with, everything used |
| 93 |
* to filter and target apps. |
| 94 |
*/ |
| 95 |
message GlobalConfigurationProto { |
| 96 |
option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| 97 |
|
| 98 |
optional ResourcesConfigurationProto resources = 1; |
| 99 |
optional DeviceConfigurationProto device = 2; |
| 100 |
} |