HomeSort by relevance Sort by last modified time
    Searched refs:usageStats (Results 1 - 10 of 10) sorted by null

  /developers/build/prebuilts/gradle/AppUsageStatistics/Application/src/main/java/com/example/android/appusagestatistics/
CustomUsageStats.java 19 import android.app.usage.UsageStats;
26 public UsageStats usageStats;
UsageListAdapter.java 81 mCustomUsageStatsList.get(position).usageStats.getPackageName());
82 long lastTimeUsed = mCustomUsageStatsList.get(position).usageStats.getLastTimeUsed();
AppUsageStatisticsFragment.java 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)
    [all...]
  /developers/samples/android/system/AppUsageStatistics/Application/src/main/java/com/example/android/appusagestatistics/
CustomUsageStats.java 19 import android.app.usage.UsageStats;
26 public UsageStats usageStats;
UsageListAdapter.java 81 mCustomUsageStatsList.get(position).usageStats.getPackageName());
82 long lastTimeUsed = mCustomUsageStatsList.get(position).usageStats.getLastTimeUsed();
AppUsageStatisticsFragment.java 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)
    [all...]
  /development/samples/browseable/AppUsageStatistics/src/com.example.android.appusagestatistics/
CustomUsageStats.java 19 import android.app.usage.UsageStats;
26 public UsageStats usageStats;
UsageListAdapter.java 81 mCustomUsageStatsList.get(position).usageStats.getPackageName());
82 long lastTimeUsed = mCustomUsageStatsList.get(position).usageStats.getLastTimeUsed();
AppUsageStatisticsFragment.java 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)
    [all...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowUsageStatsManager.java 8 import android.app.usage.UsageStats;
43 * Keys {@link UsageStats} objects by intervalType (e.g. {@link
46 private SetMultimap<Integer, UsageStats> usageStatsByIntervalType = HashMultimap.create();
206 * Returns aggregated UsageStats added by calling {@link #addUsageStats}.
213 protected List<UsageStats> queryUsageStats(int intervalType, long beginTime, long endTime) {
214 List<UsageStats> results = new ArrayList<>();
216 for (UsageStats stats : usageStatsByIntervalType.get(intervalType)) {
226 * Adds an aggregated {@code UsageStats} object, to be returned by {@link #queryUsageStats}.
232 public void addUsageStats(int intervalType, UsageStats stats) {
338 * Builder for constructing {@link UsageStats} objects. The constructor of UsageStats is not par
    [all...]

Completed in 263 milliseconds