Siddharth Ray | bb608c8 | 2017-03-16 11:33:34 -0700 | [diff] [blame] | 1 | // Copyright 2014 Google Inc. All Rights Reserved. |
| 2 | // Author: siddharthr@google.com (Siddharth Ray) |
| 3 | // Protos for uploading GNSS metrics. |
| 4 | |
| 5 | syntax = "proto2"; |
| 6 | |
| 7 | package clearcut.connectivity; |
| 8 | |
| 9 | option java_package = "com.android.internal.location"; |
| 10 | option java_outer_classname = "GnssLogsProto"; |
| 11 | |
| 12 | message 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 Ray | 168f12a | 2017-07-10 11:55:10 -0700 | [diff] [blame] | 36 | |
| 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 Ray | d679a76 | 2018-01-20 18:57:58 -0800 | [diff] [blame] | 45 | |
| 46 | // Power metrics |
| 47 | optional PowerMetrics power_metrics = 12; |
Siddharth Ray | dcbed5f | 2018-08-13 10:25:53 -0700 | [diff] [blame] | 48 | |
| 49 | // Hardware revision (EVT, DVT, PVT etc.) |
| 50 | optional string hardware_revision = 13; |
Siddharth Ray | d679a76 | 2018-01-20 18:57:58 -0800 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | // Power metrics |
| 54 | message 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 | } |