Home
last modified time | relevance | path

Searched refs:mLastTimeUsed (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java88 left.mLastTimeUsed = 200000; in testLastUsedTimeIsOverriddenByLaterStats()
91 right.mLastTimeUsed = 200001; in testLastUsedTimeIsOverriddenByLaterStats()
102 left.mLastTimeUsed = 200000; in testLastUsedTimeIsNotOverriddenByLaterStatsIfUseIsEarlier()
105 right.mLastTimeUsed = 150000; in testLastUsedTimeIsNotOverriddenByLaterStatsIfUseIsEarlier()
159 assertEquals(left.mLastTimeUsed, 200000); in testActivity()
167 assertEquals(left.mLastTimeUsed, 350000); in testActivity()
174 assertEquals(left.mLastTimeUsed, 350000); in testActivity()
181 assertEquals(left.mLastTimeUsed, 350000); in testActivity()
194 assertEquals(left.mLastTimeUsed, 100000);
200 assertEquals(left.mLastTimeUsed, 350000);
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageStats.java77 public long mLastTimeUsed; field in UsageStats
165 mLastTimeUsed = stats.mLastTimeUsed; in UsageStats()
220 return mLastTimeUsed; in getLastTimeUsed()
319 mLastTimeUsed = Math.max(mLastTimeUsed, right.mLastTimeUsed); in add()
396 if (timeStamp > mLastTimeUsed) { in incrementTimeUsed()
397 mTotalTimeInForeground += timeStamp - mLastTimeUsed; in incrementTimeUsed()
398 mLastTimeUsed = timeStamp; in incrementTimeUsed()
464 mLastTimeUsed = timeStamp; in updateActivity()
468 mLastTimeUsed = timeStamp; in updateActivity()
588 mLastTimeUsed = timeStamp; in update()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsProto.java89 tempPackage.mLastTimeUsed = stats.mLastTimeUsed; in loadUsageStats()
99 tempPackageIndex.mLastTimeUsed = stats.mLastTimeUsed; in loadUsageStats()
107 stats.mLastTimeUsed = statsOut.beginTime + proto.readLong( in loadUsageStats()
333 usageStats.mLastTimeUsed, stats.beginTime); in writeUsageStats()
DUsageStatsXmlV1.java93 stats.mLastTimeUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
DUsageStatsProtoV2.java57 stats.mLastTimeUsed = beginTime + proto.readLong( in parseUsageStats()
306 stats.mLastTimeUsed, beginTime); in writeUsageStats()
DUserUsageStatsService.java999 pw.printPair("lastTimeUsed", formatDateTime(usageStats.mLastTimeUsed, prettyDates)); in printIntervalStats()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DUsageStatsDatabaseTest.java262 assertEquals(us1.mLastTimeUsed, us2.mLastTimeUsed); in compareUsageStats()