Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java85 left.mLastTimeUsed = 200000; in testLastUsedTimeIsOverriddenByLaterStats()
88 right.mLastTimeUsed = 200001; in testLastUsedTimeIsOverriddenByLaterStats()
99 left.mLastTimeUsed = 200000; in testLastUsedTimeIsNotOverriddenByLaterStatsIfUseIsEarlier()
102 right.mLastTimeUsed = 150000; in testLastUsedTimeIsNotOverriddenByLaterStatsIfUseIsEarlier()
147 assertEquals(left.mLastTimeUsed, 200000); in testActivity()
155 assertEquals(left.mLastTimeUsed, 350000); in testActivity()
162 assertEquals(left.mLastTimeUsed, 350000); in testActivity()
169 assertEquals(left.mLastTimeUsed, 350000); in testActivity()
182 assertEquals(left.mLastTimeUsed, 100000);
188 assertEquals(left.mLastTimeUsed, 350000);
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageStats.java70 public long mLastTimeUsed; field in UsageStats
153 mLastTimeUsed = stats.mLastTimeUsed; in UsageStats()
208 return mLastTimeUsed; in getLastTimeUsed()
307 mLastTimeUsed = Math.max(mLastTimeUsed, right.mLastTimeUsed); in add()
384 if (timeStamp > mLastTimeUsed) { in incrementTimeUsed()
385 mTotalTimeInForeground += timeStamp - mLastTimeUsed; in incrementTimeUsed()
386 mLastTimeUsed = timeStamp; in incrementTimeUsed()
452 mLastTimeUsed = timeStamp; in updateActivity()
456 mLastTimeUsed = timeStamp; in updateActivity()
592 dest.writeLong(mLastTimeUsed); in writeToParcel()
[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()
148 if (stats.mLastTimeUsed == 0) { in loadUsageStats()
150 stats.mLastTimeUsed = statsOut.beginTime; in loadUsageStats()
334 usageStats.mLastTimeUsed - stats.beginTime); in writeUsageStats()
DUsageStatsXmlV1.java94 stats.mLastTimeUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
252 usageStats.mLastTimeUsed - stats.beginTime); in writeUsageStats()
DUserUsageStatsService.java843 pw.printPair("lastTimeUsed", formatDateTime(usageStats.mLastTimeUsed, prettyDates)); in printIntervalStats()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DUsageStatsDatabaseTest.java249 assertEquals(us1.mLastTimeUsed, us2.mLastTimeUsed); in compareUsageStats()