xref: /aosp_15_r20/frameworks/base/proto/src/altitude.proto (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1*d57664e9SAndroid Build Coastguard Worker/*
2*d57664e9SAndroid Build Coastguard Worker * Copyright 2022 The Android Open Source Project
3*d57664e9SAndroid Build Coastguard Worker *
4*d57664e9SAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License");
5*d57664e9SAndroid Build Coastguard Worker * you may not use this file except in compliance with the License.
6*d57664e9SAndroid Build Coastguard Worker * You may obtain a copy of the License at
7*d57664e9SAndroid Build Coastguard Worker *
8*d57664e9SAndroid Build Coastguard Worker *      http://www.apache.org/licenses/LICENSE-2.0
9*d57664e9SAndroid Build Coastguard Worker *
10*d57664e9SAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software
11*d57664e9SAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS,
12*d57664e9SAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*d57664e9SAndroid Build Coastguard Worker * See the License for the specific language governing permissions and
14*d57664e9SAndroid Build Coastguard Worker * limitations under the License.
15*d57664e9SAndroid Build Coastguard Worker */
16*d57664e9SAndroid Build Coastguard Worker
17*d57664e9SAndroid Build Coastguard Workersyntax = "proto2";
18*d57664e9SAndroid Build Coastguard Worker
19*d57664e9SAndroid Build Coastguard Workerpackage com.android.internal.location.altitude;
20*d57664e9SAndroid Build Coastguard Worker
21*d57664e9SAndroid Build Coastguard Workeroption java_package = "com.android.internal.location.altitude";
22*d57664e9SAndroid Build Coastguard Workeroption java_multiple_files = true;
23*d57664e9SAndroid Build Coastguard Worker
24*d57664e9SAndroid Build Coastguard Worker// Defines parameters for a spherically projected geoid map and corresponding
25*d57664e9SAndroid Build Coastguard Worker// tile management.
26*d57664e9SAndroid Build Coastguard Workermessage MapParamsProto {
27*d57664e9SAndroid Build Coastguard Worker  // Defines the resolution of the map in terms of an S2 level.
28*d57664e9SAndroid Build Coastguard Worker  optional int32 map_s2_level = 1;
29*d57664e9SAndroid Build Coastguard Worker  // Defines the resolution of the tiles in cache in terms of an S2 level.
30*d57664e9SAndroid Build Coastguard Worker  optional int32 cache_tile_s2_level = 2;
31*d57664e9SAndroid Build Coastguard Worker  // Defines the resolution of the tiles on disk in terms of an S2 level.
32*d57664e9SAndroid Build Coastguard Worker  optional int32 disk_tile_s2_level = 3;
33*d57664e9SAndroid Build Coastguard Worker  // Defines the `a` coefficient in the expression `a * map_value + b` used to
34*d57664e9SAndroid Build Coastguard Worker  // calculate a geoid height in meters.
35*d57664e9SAndroid Build Coastguard Worker  optional double model_a_meters = 4;
36*d57664e9SAndroid Build Coastguard Worker  // Defines the `b` coefficient in the expression `a * map_value + b` used to
37*d57664e9SAndroid Build Coastguard Worker  // calculate a geoid height in meters.
38*d57664e9SAndroid Build Coastguard Worker  optional double model_b_meters = 5;
39*d57664e9SAndroid Build Coastguard Worker  // Defines the root mean square error in meters of the geoid height.
40*d57664e9SAndroid Build Coastguard Worker  optional double model_rmse_meters = 6;
41*d57664e9SAndroid Build Coastguard Worker}
42*d57664e9SAndroid Build Coastguard Worker
43*d57664e9SAndroid Build Coastguard Worker// A single tile associating values in the unit interval [0, 1] to map cells.
44*d57664e9SAndroid Build Coastguard Workermessage S2TileProto {
45*d57664e9SAndroid Build Coastguard Worker  // The S2 token associated with the common parent of all map cells in this
46*d57664e9SAndroid Build Coastguard Worker  // tile.
47*d57664e9SAndroid Build Coastguard Worker  optional string tile_key = 1;
48*d57664e9SAndroid Build Coastguard Worker
49*d57664e9SAndroid Build Coastguard Worker  // Encoded data that merge into a value in the unit interval [0, 1] for each
50*d57664e9SAndroid Build Coastguard Worker  // map cell in this tile.
51*d57664e9SAndroid Build Coastguard Worker  optional bytes byte_buffer = 2;
52*d57664e9SAndroid Build Coastguard Worker  optional bytes byte_jpeg = 3;
53*d57664e9SAndroid Build Coastguard Worker  optional bytes byte_png = 4;
54*d57664e9SAndroid Build Coastguard Worker}
55