Generate app and device screen-on time data and return back to UI for

rendering.

Test: make RunSettingsRoboTests + manually
Bug: 260964903
Change-Id: I2fd69b4686cc2e1413ad0eb43c07b6164e411411
This commit is contained in:
Kuan Wang
2022-12-26 16:33:18 +08:00
parent a3df41cacc
commit 1ce97c8ebe
11 changed files with 502 additions and 141 deletions

View File

@@ -40,3 +40,16 @@ message AppUsagePeriod {
// End of the usage period.
optional int64 end_time = 2;
}
enum AppUsageEndPointType {
START = 1;
END = 2;
}
// The endpoint (the beginning or the end) of an AppUsagePeriod.
message AppUsageEndPoint {
// Type of the end point.
optional AppUsageEndPointType type = 1;
// Timestamp of the end point.
optional int64 timestamp = 2;
}