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

Commit 38c4fcf9 authored by Trung Lam's avatar Trung Lam Committed by Android (Google) Code Review
Browse files

Merge "Added missing protobuf for PeopleService data persistence."

parents c57793ce f1514f83
Loading
Loading
Loading
Loading
+21 −4
Original line number Diff line number Diff line
@@ -52,6 +52,11 @@ message ConversationInfoProto {
  optional int32 conversation_flags = 6;
}

// On disk data of events.
message PeopleEventsProto {
  repeated PeopleEventProto events = 1;
}

// Individual event (com.android.server.people.data.Event).
message PeopleEventProto {

@@ -65,6 +70,17 @@ message PeopleEventProto {
  optional int32 duration = 3;
}

// On disk data of event indexes.
message PeopleEventIndexesProto {
  repeated TypedPeopleEventIndexProto typed_indexes = 1;
}

// Mapping of event_type to event index.
message TypedPeopleEventIndexProto {
  optional int32 event_type = 1;
  optional PeopleEventIndexProto index = 2;
}

// Index of events' time distributions (com.android.server.people.data.EventIndex).
message PeopleEventIndexProto {
  // Each long value in event_bitmaps represents a time slot, there should be 4 values. Further
@@ -73,3 +89,4 @@ message PeopleEventIndexProto {

  optional int64 last_updated_time = 2;
}