Home | History | Annotate | Download | only in com.example.android.appusagestatistics

Lines Matching refs:UsageStats

19 import android.app.usage.UsageStats;
80 .getSystemService("usagestats"); //Context.USAGE_STATS_SERVICE
112 List<UsageStats> usageStatsList =
134 * @return A list of {@link android.app.usage.UsageStats}.
136 public List<UsageStats> getUsageStatistics(int intervalType) {
141 List<UsageStats> queryUsageStats = mUsageStatsManager
162 * Updates the {@link #mRecyclerView} with the list of {@link UsageStats} passed as an argument.
164 * @param usageStatsList A list of {@link UsageStats} from which update the
168 void updateAppsList(List<UsageStats> usageStatsList) {
172 customUsageStats.usageStats = usageStatsList.get(i);
175 .getApplicationIcon(customUsageStats.usageStats.getPackageName());
179 customUsageStats.usageStats.getPackageName()));
191 * The {@link Comparator} to sort a collection of {@link UsageStats} sorted by the timestamp
194 private static class LastTimeLaunchedComparatorDesc implements Comparator<UsageStats> {
197 public int compare(UsageStats left, UsageStats right) {