/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsDatabase.java | 186 boolean checkin(IntervalStats stats); in checkin() 219 IntervalStats stats = new IntervalStats(); in checkinDailyFiles() 496 IntervalStats stats = new IntervalStats(); in continueUpgradeLocked() 559 public IntervalStats getLatestUsageStats(int intervalType) { in getLatestUsageStats() 572 IntervalStats stats = new IntervalStats(); in getLatestUsageStats() 599 void combine(IntervalStats stats, boolean mutable, List<T> accumulatedResult); in combine() 649 final IntervalStats stats = new IntervalStats(); in queryUsageStats() 767 final IntervalStats stats = new IntervalStats(); in pruneChooserCountsOlderThan() 810 private void writeLocked(AtomicFile file, IntervalStats stats) throws IOException { in writeLocked() 814 private static void writeLocked(AtomicFile file, IntervalStats stats, int version) in writeLocked() [all …]
|
D | UserUsageStatsService.java | 72 private final IntervalStats[] mCurrentStats; 100 mCurrentStats = new IntervalStats[INTERVAL_COUNT]; in UserUsageStatsService() 142 final IntervalStats currentDailyStats = mCurrentStats[INTERVAL_DAILY]; in init() 176 final IntervalStats currentDailyStats = mCurrentStats[INTERVAL_DAILY]; in reportEvent() 209 for (IntervalStats stats : mCurrentStats) { in reportEvent() 251 public void combine(IntervalStats stats, boolean mutable, 268 public void combine(IntervalStats stats, boolean mutable, 285 public void combine(IntervalStats stats, boolean mutable, 314 final IntervalStats currentStats = mCurrentStats[intervalType]; in queryStats() 380 public void combine(IntervalStats stats, boolean mutable, in queryEvents() [all …]
|
D | UsageStatsXmlV1.java | 85 private static void loadUsageStats(XmlPullParser parser, IntervalStats statsOut) in loadUsageStats() 146 IntervalStats.EventTracker tracker) in loadCountAndTime() 184 private static void loadConfigStats(XmlPullParser parser, IntervalStats statsOut) in loadConfigStats() 202 private static void loadEvent(XmlPullParser parser, IntervalStats statsOut) in loadEvent() 246 private static void writeUsageStats(XmlSerializer xml, final IntervalStats stats, in writeUsageStats() 313 private static void writeConfigStats(XmlSerializer xml, final IntervalStats stats, in writeConfigStats() 333 private static void writeEvent(XmlSerializer xml, final IntervalStats stats, in writeEvent() 382 public static void read(XmlPullParser parser, IntervalStats statsOut) in read() 451 public static void write(XmlSerializer xml, IntervalStats stats) throws IOException { in write()
|
D | UsageStatsProto.java | 64 IntervalStats statsOut, List<String> stringPool) in loadUsageStats() 156 IntervalStats.EventTracker tracker) throws IOException { in loadCountAndTime() 242 IntervalStats statsOut) throws IOException { in loadConfigStats() 297 private static void loadEvent(ProtoInputStream proto, long fieldId, IntervalStats statsOut, in loadEvent() 308 private static void writeStringPool(ProtoOutputStream proto, final IntervalStats stats) in writeStringPool() 320 final IntervalStats stats, final UsageStats usageStats) throws IOException { in writeUsageStats() 399 final IntervalStats stats, final ConfigurationStats configStats, boolean isActive) in writeConfigStats() 413 private static void writeEvent(ProtoOutputStream proto, long fieldId, final IntervalStats stats, in writeEvent() 505 public static void read(InputStream in, IntervalStats statsOut) throws IOException { in read() 574 public static void write(OutputStream out, IntervalStats stats) throws IOException { in write()
|
D | UsageStatsXml.java | 39 public static void read(InputStream in, IntervalStats statsOut) throws IOException { in read() 65 public static void write(OutputStream out, IntervalStats stats) throws IOException { in write()
|
D | IntervalStats.java | 54 public class IntervalStats { class 115 public IntervalStats() { in IntervalStats() method in IntervalStats
|
/frameworks/base/tests/UsageStatsPerfTests/src/com/android/frameworks/perftests/usage/tests/ |
D | UsageStatsDatabasePerfTest.java | 32 import com.android.server.usage.IntervalStats; 64 public void combine(IntervalStats stats, boolean mutable, 85 private static void populateIntervalStats(IntervalStats intervalStats, int packageCount, in populateIntervalStats() 115 IntervalStats intervalStats = new IntervalStats(); in runQueryUsageStatsTest() 131 IntervalStats intervalStats = new IntervalStats(); in runPutUsageStatsTest()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | UsageStatsDatabaseTest.java | 56 private IntervalStats mIntervalStats = new IntervalStats(); 63 private static final UsageStatsDatabase.StatCombiner<IntervalStats> mIntervalStatsVerifier = 64 new UsageStatsDatabase.StatCombiner<IntervalStats>() { 66 public void combine(IntervalStats stats, boolean mutable, 67 List<IntervalStats> accResult) { 118 mIntervalStats = new IntervalStats(); in populateIntervalStats() 293 void compareIntervalStats(IntervalStats stats1, IntervalStats stats2, int minVersion) { in compareIntervalStats() 346 List<IntervalStats> stats = mUsageStatsDatabase.queryUsageStats(interval, 0, mEndTime, in runWriteReadTest() 379 List<IntervalStats> stats = newDB.queryUsageStats(interval, 0, mEndTime, in runVersionChangeTest() 408 … List<IntervalStats> stats = newDB.queryUsageStats(UsageStatsManager.INTERVAL_DAILY, 0, mEndTime,
|
/frameworks/base/core/proto/android/server/ |
D | usagestatsservice.proto | 48 // Time attributes stored as an offset of the IntervalStats's beginTime. 54 // Time attributes stored as an offset of the IntervalStats's beginTime. 57 // Time attributes stored as an offset of the IntervalStats's beginTime. 62 // Stores the relevant information an IntervalStats will have about a Configuration 98 // The following fields contain supplemental data used to build IntervalStats, such as a string
|
/frameworks/base/services/ |
D | art-profile | 13565 …rvice$wWX7s9XZT5O4B7JcG_IB_VcPI9s;->combine(Lcom/android/server/usage/IntervalStats;ZLjava/util/Li… 13700 HSPLcom/android/server/usage/IntervalStats;-><init>()V 13701 HSPLcom/android/server/usage/IntervalStats;->addEvent(Landroid/app/usage/UsageEvents$Event;)V 13702 HSPLcom/android/server/usage/IntervalStats;->buildEvent(Landroid/util/proto/ProtoInputStream;Ljava/… 13703 HSPLcom/android/server/usage/IntervalStats;->commitTime(J)V 13704 HSPLcom/android/server/usage/IntervalStats;->getOrCreateConfigurationStats(Landroid/content/res/Con… 13705 HSPLcom/android/server/usage/IntervalStats;->getOrCreateUsageStats(Ljava/lang/String;)Landroid/app/… 13706 HSPLcom/android/server/usage/IntervalStats;->incrementAppLaunchCount(Ljava/lang/String;)V 13707 HSPLcom/android/server/usage/IntervalStats;->update(Ljava/lang/String;Ljava/lang/String;JII)V 13708 PLcom/android/server/usage/IntervalStats;->updateChooserCounts(Ljava/lang/String;Ljava/lang/String;… [all …]
|