Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 411985ba authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Sync statsd google3 protos to aosp."

parents 011651c5 b84e8b1f
Loading
Loading
Loading
Loading
+170 −167
Original line number Diff line number Diff line
@@ -26,8 +26,11 @@ import "frameworks/base/cmds/statsd/src/perfetto/perfetto_config.proto";

enum Position {
  POSITION_UNKNOWN = 0;

  FIRST = 1;

  LAST = 2;

  ANY = 3;
}

@@ -54,13 +57,8 @@ message FieldMatcher {
}

message FieldValueMatcher {
    // Field id, as specified in the atom proto message.
  optional int32 field = 1;

    // For repeated fields, specifies the position in the array.
    // FIRST and LAST mean that if the values are found at the first
    // or last position, it's a match. ANY means that if the values are found
    // anywhere in the array, then it's a match.
  optional Position position = 2;

  oneof value_matcher {
@@ -146,10 +144,6 @@ message Predicate {
  }
}

message Bucket {
    optional int64 bucket_size_millis = 1;
}

message MetricConditionLink {
  optional int64 condition = 1;

@@ -247,7 +241,9 @@ message ValueMetric {

  repeated MetricConditionLink links = 7;

    enum AggregationType { SUM = 1; }
  enum AggregationType {
    SUM = 1;
  }
  optional AggregationType aggregation_type = 8 [default = SUM];
}

@@ -265,7 +261,9 @@ message Alert {

message Alarm {
  optional int64 id = 1;

  optional int64 offset_millis = 2;

  optional int64 period_millis = 3;
}

@@ -277,6 +275,10 @@ message PerfettoDetails {
  optional perfetto.protos.TraceConfig trace_config = 1;
}

message BroadcastSubscriberDetails {
  optional int64 subscriber_id = 1;
}

message Subscription {
  optional int64 id = 1;

@@ -292,6 +294,7 @@ message Subscription {
  oneof subscriber_information {
    IncidentdDetails incidentd_details = 4;
    PerfettoDetails perfetto_details = 5;
    BroadcastSubscriberDetails broadcast_subscriber_details = 6;
  }
}

+0 −1
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ import android.content.Context;
import android.content.res.Resources;
import android.util.Log;

import com.android.internal.os.StatsdConfigProto.Bucket;
import com.android.internal.os.StatsdConfigProto.Predicate;
import com.android.internal.os.StatsdConfigProto.CountMetric;
import com.android.internal.os.StatsdConfigProto.DurationMetric;
+62 −62

File changed.

Contains only whitespace changes.