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

Commit f1514f83 authored by Trung Lam's avatar Trung Lam
Browse files

Added missing protobuf for PeopleService data persistence.

Change-Id: I85c1b717f1209f48d24260674cb58d522c19aac5
Test: Built and ran on device.
Bug: 149050408
parent 37393377
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;
}