blob: 33dbb26c39583b37d821492da15eb8f13448dd7f [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;
Blake Kragten025aabe2019-08-28 16:21:35 -070051
52 // Total number of sv status messages processed
53 optional int32 num_sv_status_processed = 14;
54
55 // Total number of L5 sv status messages processed
56 optional int32 num_l5_sv_status_processed = 15;
57
58 // Total number of sv status messages processed, where sv is used in fix
59 optional int32 num_sv_status_used_in_fix = 16;
60
61 // Total number of L5 sv status messages processed, where sv is used in fix
62 optional int32 num_l5_sv_status_used_in_fix = 17;
63
64 // Number of l5 top 4 average CN0 processed
65 optional int32 num_l5_top_four_average_cn0_processed = 18;
66
67 // Mean of l5 top 4 average CN0 (dB-Hz)
68 optional double mean_l5_top_four_average_cn0_db_hz = 19;
69
70 // Standard deviation of l5 top 4 average CN0 (dB-Hz)
71 optional double standard_deviation_l5_top_four_average_cn0_db_hz = 20;
Siddharth Rayd679a762018-01-20 18:57:58 -080072}
73
74// Power metrics
75message PowerMetrics {
76
77 // Duration of power log (ms)
78 optional int64 logging_duration_ms = 1;
79
80 // Energy consumed (mAh)
81 optional double energy_consumed_mah = 2;
82
83 // Time spent in signal quality level (ms)
84 repeated int64 time_in_signal_quality_level_ms = 3;
85}