Searched refs:mTotalTimeInForeground (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/app/usage/ |
D | UsageStatsTest.java | 116 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/ |
D | UsageStats.java | 90 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/ |
D | UsageStatsProto.java | 90 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()
|
D | UsageStatsXmlV1.java | 110 stats.mTotalTimeInForeground = XmlUtils.readLongAttribute(parser, TOTAL_TIME_ACTIVE_ATTR); in loadUsageStats()
|
D | UsageStatsProtoV2.java | 61 stats.mTotalTimeInForeground = proto.readLong( in parseUsageStats() 307 proto.write(UsageStatsObfuscatedProto.TOTAL_TIME_ACTIVE_MS, stats.mTotalTimeInForeground); in writeUsageStats()
|
D | UserUsageStatsService.java | 998 formatElapsedTime(usageStats.mTotalTimeInForeground, prettyDates)); in printIntervalStats()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | UsageStatsDatabaseTest.java | 264 assertEquals(us1.mTotalTimeInForeground, us2.mTotalTimeInForeground); in compareUsageStats()
|