huangcm
2024-10-12 d3acb07ae52cd1e07661d853cb07895d324a847f
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
// Copyright 2014 Google Inc. All Rights Reserved.
// Author: siddharthr@google.com (Siddharth Ray)
// Protos for uploading GNSS metrics.
 
syntax = "proto2";
 
package clearcut.connectivity;
 
option java_package = "com.android.internal.location";
option java_outer_classname = "GnssLogsProto";
 
message GnssLog {
  // Number of location reports processed
  optional int32 num_location_report_processed = 1;
 
  // Location failure (in percent)
  optional int32 percentage_location_failure = 2;
 
  // Number of time to first fix processed
  optional int32 num_time_to_first_fix_processed = 3;
 
  // Mean time to first fix (in seconds)
  optional int32 mean_time_to_first_fix_secs = 4;
 
  // Standard deviation of time to first fix (in seconds)
  optional int32 standard_deviation_time_to_first_fix_secs = 5;
 
  // Number of position accuracy processed
  optional int32 num_position_accuracy_processed = 6;
 
  // Mean position accuracy (in meters)
  optional int32 mean_position_accuracy_meters = 7;
 
  // Standard deviation of position accuracy (in meters)
  optional int32 standard_deviation_position_accuracy_meters = 8;
 
  // Number of top 4 average CN0 processed
  optional int32 num_top_four_average_cn0_processed = 9;
 
  // Mean of top 4 average CN0 (dB-Hz)
  optional double mean_top_four_average_cn0_db_hz = 10;
 
  // Standard deviation of top 4 average CN0 (dB-Hz)
  optional double standard_deviation_top_four_average_cn0_db_hz = 11;
 
  // Power metrics
  optional PowerMetrics power_metrics = 12;
 
  // Hardware revision (EVT, DVT, PVT etc.)
  optional string hardware_revision = 13;
}
 
// Power metrics
message PowerMetrics {
 
  // Duration of power log (ms)
  optional int64 logging_duration_ms = 1;
 
  // Energy consumed (mAh)
  optional double energy_consumed_mah = 2;
 
  // Time spent in signal quality level (ms)
  repeated int64 time_in_signal_quality_level_ms = 3;
}