Home | History | Annotate | Download | only in src
      1 // Copyright 2014 Google Inc. All Rights Reserved.
      2 // Author: siddharthr (a] 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;
     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;
     45 
     46   // Power metrics
     47   optional PowerMetrics power_metrics = 12;
     48 }
     49 
     50 // Power metrics
     51 message PowerMetrics {
     52 
     53   // Duration of power log (ms)
     54   optional int64 logging_duration_ms = 1;
     55 
     56   // Energy consumed (mAh)
     57   optional double energy_consumed_mah = 2;
     58 
     59   // Time spent in signal quality level (ms)
     60   repeated int64 time_in_signal_quality_level_ms = 3;
     61 }
     62