Merge "Use (the last existing timestamp in DB + 1) as the start time of usage event query to avoid loading the same events repeatedly."
This commit is contained in:
committed by
Android (Google) Code Review
commit
569becdb7f
@@ -270,7 +270,7 @@ public final class DatabaseUtilsTest {
|
||||
|
||||
final long earliestTimestamp1 = 1001L;
|
||||
assertThat(DatabaseUtils.getAppUsageStartTimestampOfUser(
|
||||
mContext, /*userId=*/ 0, earliestTimestamp1)).isEqualTo(returnedTimestamp);
|
||||
mContext, /*userId=*/ 0, earliestTimestamp1)).isEqualTo(returnedTimestamp + 1);
|
||||
final long earliestTimestamp2 = 100001L;
|
||||
assertThat(DatabaseUtils.getAppUsageStartTimestampOfUser(
|
||||
mContext, /*userId=*/ 0, earliestTimestamp2)).isEqualTo(earliestTimestamp2);
|
||||
|
Reference in New Issue
Block a user