blob: 1509fc00fb1d929377ed5611ed7fa9b7766970c7 [file] [log] [blame]
Siddharth Raybb608c82017-03-16 11:33:34 -07001// Copyright 2014 Google Inc. All Rights Reserved.
2// Author: siddharthr@google.com (Siddharth Ray)
3// Protos for uploading GNSS metrics.
4
5syntax = "proto2";
6
7package clearcut.connectivity;
8
9option java_package = "com.android.internal.location";
10option java_outer_classname = "GnssLogsProto";
11
12message GnssLog {
13 // Number of location reports processed
14 optional int32 num_location_report_processed = 1;
15
16 // Location failure (in percent)
17 optional int32 percentage_location_failure = 2;
18
19 // Number of time to first fix processed
20 optional int32 num_time_to_first_fix_processed = 3;
21
22 // Mean time to first fix (in seconds)
23 optional int32 mean_time_to_first_fix_secs = 4;
24
25 // Standard deviation of time to first fix (in seconds)
26 optional int32 standard_deviation_time_to_first_fix_secs = 5;
27
28 // Number of position accuracy processed
29 optional int32 num_position_accuracy_processed = 6;
30
31 // Mean position accuracy (in meters)
32 optional int32 mean_position_accuracy_meters = 7;
33
34 // Standard deviation of position accuracy (in meters)
35 optional int32 standard_deviation_position_accuracy_meters = 8;
Siddharth Ray168f12a2017-07-10 11:55:10 -070036
37 // Number of top 4 average CN0 processed
38 optional int32 num_top_four_average_cn0_processed = 9;
39
40 // Mean of top 4 average CN0 (dB-Hz)
41 optional double mean_top_four_average_cn0_db_hz = 10;
42
43 // Standard deviation of top 4 average CN0 (dB-Hz)
44 optional double standard_deviation_top_four_average_cn0_db_hz = 11;
Siddharth Rayd679a762018-01-20 18:57:58 -080045
46 // Power metrics
47 optional PowerMetrics power_metrics = 12;
Siddharth Raydcbed5f2018-08-13 10:25:53 -070048
49 // Hardware revision (EVT, DVT, PVT etc.)
50 optional string hardware_revision = 13;
Siddharth Rayd679a762018-01-20 18:57:58 -080051}
52
53// Power metrics
54message PowerMetrics {
55
56 // Duration of power log (ms)
57 optional int64 logging_duration_ms = 1;
58
59 // Energy consumed (mAh)
60 optional double energy_consumed_mah = 2;
61
62 // Time spent in signal quality level (ms)
63 repeated int64 time_in_signal_quality_level_ms = 3;
64}