Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java116 left.mTotalTimeInForeground = 10; in testForegroundTimeIsSummed()
119 right.mTotalTimeInForeground = 1; in testForegroundTimeIsSummed()
139 left.mTotalTimeInForeground = 10; in testParcelable()
163 assertEquals(left.mTotalTimeInForeground, 0); in testActivity()
170 assertEquals(left.mTotalTimeInForeground, 350000 - 200000); in testActivity()
177 assertEquals(left.mTotalTimeInForeground, 350000 - 200000); in testActivity()
184 assertEquals(left.mTotalTimeInForeground, 350000 - 200000); in testActivity()
203 assertEquals(left.mTotalTimeInForeground, 350000 - 100000);
221 assertEquals(left.mTotalTimeInForeground, 0);
228 assertEquals(left.mTotalTimeInForeground, 300000 - 200000);
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageStats.java90 public long mTotalTimeInForeground; field in UsageStats
168 mTotalTimeInForeground = stats.mTotalTimeInForeground; in UsageStats()
235 return mTotalTimeInForeground; in getTotalTimeInForeground()
326 mTotalTimeInForeground += right.mTotalTimeInForeground; in add()
397 mTotalTimeInForeground += timeStamp - mLastTimeUsed; in incrementTimeUsed()
619 dest.writeLong(mTotalTimeInForeground); in writeToParcel()
673 stats.mTotalTimeInForeground = in.readLong();
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsProto.java90 tempPackage.mTotalTimeInForeground = stats.mTotalTimeInForeground; in loadUsageStats()
100 tempPackageIndex.mTotalTimeInForeground = stats.mTotalTimeInForeground; in loadUsageStats()
111 stats.mTotalTimeInForeground = proto.readLong( in loadUsageStats()
335 usageStats.mTotalTimeInForeground); in writeUsageStats()
DUsageStatsXmlV1.java110 stats.mTotalTimeInForeground = XmlUtils.readLongAttribute(parser, TOTAL_TIME_ACTIVE_ATTR); in loadUsageStats()
DUsageStatsProtoV2.java61 stats.mTotalTimeInForeground = proto.readLong( in parseUsageStats()
307 proto.write(UsageStatsObfuscatedProto.TOTAL_TIME_ACTIVE_MS, stats.mTotalTimeInForeground); in writeUsageStats()
DUserUsageStatsService.java998 formatElapsedTime(usageStats.mTotalTimeInForeground, prettyDates)); in printIntervalStats()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DUsageStatsDatabaseTest.java264 assertEquals(us1.mTotalTimeInForeground, us2.mTotalTimeInForeground); in compareUsageStats()