File: configuration.proto

package info (click to toggle)
android-platform-frameworks-base 1%3A10.0.0%2Br36-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 321,788 kB
  • sloc: java: 962,234; cpp: 274,314; xml: 242,770; python: 5,060; sh: 1,432; ansic: 494; makefile: 47; sed: 19
file content (99 lines) | stat: -rw-r--r-- 3,200 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/*
 * Copyright (C) 2006 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

syntax = "proto2";
option java_multiple_files = true;

package android.content;

import "frameworks/base/core/proto/android/app/window_configuration.proto";
import "frameworks/base/core/proto/android/content/locale.proto";
import "frameworks/base/core/proto/android/privacy.proto";

/**
 * An android Configuration object.
 */
message ConfigurationProto {
    option (.android.msg_privacy).dest = DEST_AUTOMATIC;

    optional float font_scale = 1;
    optional uint32 mcc = 2;
    optional uint32 mnc = 3 [ (.android.privacy).dest = DEST_EXPLICIT ];
    repeated LocaleProto locales = 4 [deprecated = true];
    optional uint32 screen_layout = 5;
    optional uint32 color_mode = 6;
    optional uint32 touchscreen = 7;
    optional uint32 keyboard = 8;
    optional uint32 keyboard_hidden = 9;
    optional uint32 hard_keyboard_hidden = 10;
    optional uint32 navigation = 11;
    optional uint32 navigation_hidden = 12;
    optional uint32 orientation = 13;
    optional uint32 ui_mode = 14;
    optional uint32 screen_width_dp = 15;
    optional uint32 screen_height_dp = 16;
    optional uint32 smallest_screen_width_dp = 17;
    optional uint32 density_dpi = 18;
    optional .android.app.WindowConfigurationProto window_configuration = 19;
    optional string locale_list = 20;
}

/**
 * All current configuration data used to select resources.
 */
message ResourcesConfigurationProto {
    option (.android.msg_privacy).dest = DEST_AUTOMATIC;

    required ConfigurationProto configuration = 1;

    optional uint32 sdk_version = 2;
    optional uint32 screen_width_px = 3;
    optional uint32 screen_height_px = 4;
}

/**
 * Overall device configuration data.
 */
message DeviceConfigurationProto {
    option (.android.msg_privacy).dest = DEST_AUTOMATIC;

    optional uint32 stable_screen_width_px = 1;
    optional uint32 stable_screen_height_px = 2;
    optional uint32 stable_density_dpi = 3;

    optional uint64 total_ram = 4;
    optional bool low_ram = 5;
    optional uint32 max_cores = 6;
    optional bool has_secure_screen_lock = 7;

    optional uint32 opengl_version = 8;
    repeated string opengl_extensions = 9;

    repeated string shared_libraries = 10;
    repeated string features = 11;
    repeated string cpu_architectures = 12;
}

/**
 * All current configuration data device is running with, everything used
 * to filter and target apps.
 */
message GlobalConfigurationProto {
    option (.android.msg_privacy).dest = DEST_AUTOMATIC;

    optional ResourcesConfigurationProto resources = 1;
    optional DeviceConfigurationProto device = 2;
}