diff options
| author | 2020-02-11 20:00:15 -0800 | |
|---|---|---|
| committer | 2020-02-15 10:48:43 -0800 | |
| commit | f1514f832f6f66f54e8288cb89eff644bb51952d (patch) | |
| tree | cba3de39bfe3ae5018a20acd6f02ef420bcfee52 | |
| parent | 37393377472b933a1e80c5483c0c53fa42ff4fc5 (diff) | |
Added missing protobuf for PeopleService data persistence.
Change-Id: I85c1b717f1209f48d24260674cb58d522c19aac5
Test: Built and ran on device.
Bug: 149050408
| -rw-r--r-- | core/proto/android/server/peopleservice.proto | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/core/proto/android/server/peopleservice.proto b/core/proto/android/server/peopleservice.proto index 294b6efd3cbe..e476c523607c 100644 --- a/core/proto/android/server/peopleservice.proto +++ b/core/proto/android/server/peopleservice.proto @@ -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,11 +70,23 @@ 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 - // details can be found in class documentation. - repeated int64 event_bitmaps = 1; + // Each long value in event_bitmaps represents a time slot, there should be 4 values. Further + // details can be found in class documentation. + repeated int64 event_bitmaps = 1; - optional int64 last_updated_time = 2; + optional int64 last_updated_time = 2; } + |