Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java113 left.mTotalTimeInForeground = 10; in testForegroundTimeIsSummed()
116 right.mTotalTimeInForeground = 1; in testForegroundTimeIsSummed()
127 left.mTotalTimeInForeground = 10; in testParcelable()
151 assertEquals(left.mTotalTimeInForeground, 0); in testActivity()
158 assertEquals(left.mTotalTimeInForeground, 350000 - 200000); in testActivity()
165 assertEquals(left.mTotalTimeInForeground, 350000 - 200000); in testActivity()
172 assertEquals(left.mTotalTimeInForeground, 350000 - 200000); in testActivity()
191 assertEquals(left.mTotalTimeInForeground, 350000 - 100000);
209 assertEquals(left.mTotalTimeInForeground, 0);
216 assertEquals(left.mTotalTimeInForeground, 300000 - 200000);
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageStats.java83 public long mTotalTimeInForeground; field in UsageStats
156 mTotalTimeInForeground = stats.mTotalTimeInForeground; in UsageStats()
223 return mTotalTimeInForeground; in getTotalTimeInForeground()
314 mTotalTimeInForeground += right.mTotalTimeInForeground; in add()
385 mTotalTimeInForeground += timeStamp - mLastTimeUsed; in incrementTimeUsed()
595 dest.writeLong(mTotalTimeInForeground); in writeToParcel()
649 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()
336 usageStats.mTotalTimeInForeground); in writeUsageStats()
DUsageStatsXmlV1.java111 stats.mTotalTimeInForeground = XmlUtils.readLongAttribute(parser, TOTAL_TIME_ACTIVE_ATTR); in loadUsageStats()
258 XmlUtils.writeLongAttribute(xml, TOTAL_TIME_ACTIVE_ATTR, usageStats.mTotalTimeInForeground); in writeUsageStats()
DUserUsageStatsService.java842 formatElapsedTime(usageStats.mTotalTimeInForeground, prettyDates)); in printIntervalStats()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DUsageStatsDatabaseTest.java251 assertEquals(us1.mTotalTimeInForeground, us2.mTotalTimeInForeground); in compareUsageStats()