/frameworks/base/services/usage/java/com/android/server/usage/ |
IntervalStats.java | 21 import android.app.usage.UsageStats; 30 public final ArrayMap<String, UsageStats> packageStats = new ArrayMap<>(); 42 * Gets the UsageStats object for the given package, or creates one and adds it internally. 44 UsageStats getOrCreateUsageStats(String packageName) { 45 UsageStats usageStats = packageStats.get(packageName); 46 if (usageStats == null) { 47 usageStats = new UsageStats(); 48 usageStats.mPackageName = getCachedStringRef(packageName) [all...] |
UsageStatsXmlV1.java | 27 import android.app.usage.UsageStats; 34 * UsageStats reader/writer for version 1 of the XML format. 67 final UsageStats stats = statsOut.getOrCreateUsageStats(pkg); 121 final UsageStats usageStats) throws IOException { 126 usageStats.mLastTimeUsed - stats.beginTime); 128 XmlUtils.writeStringAttribute(xml, PACKAGE_ATTR, usageStats.mPackageName); 129 XmlUtils.writeLongAttribute(xml, TOTAL_TIME_ACTIVE_ATTR, usageStats.mTotalTimeInForeground); 130 XmlUtils.writeIntAttribute(xml, LAST_EVENT_ATTR, usageStats.mLastEvent); 178 * <code><usagestats></code> tag [all...] |
UserUsageStatsService.java | 23 import android.app.usage.UsageStats; 130 UsageStats pkgStats = stat.packageStats.valueAt(i); 194 private static final StatCombiner<UsageStats> sUsageStatsCombiner = 195 new StatCombiner<UsageStats>() { 198 List<UsageStats> accResult) { 206 accResult.add(new UsageStats(stats.packageStats.valueAt(i))); 299 List<UsageStats> queryUsageStats(int bucketType, long beginTime, long endTime) { 374 UsageStats pkgStats = stat.packageStats.valueAt(i); 511 final ArrayMap<String, UsageStats> pkgStats = stats.packageStats; 514 final UsageStats usageStats = pkgStats.valueAt(i) [all...] |
/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...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
NotificationSignalExtractor.java | 29 public void initialize(Context context, NotificationUsageStats usageStats);
|
ImportanceExtractor.java | 30 public void initialize(Context ctx, NotificationUsageStats usageStats) {
|
PriorityExtractor.java | 30 public void initialize(Context ctx, NotificationUsageStats usageStats) {
|
VisibilityExtractor.java | 30 public void initialize(Context ctx, NotificationUsageStats usageStats) {
|
NotificationIntrusivenessExtractor.java | 37 public void initialize(Context ctx, NotificationUsageStats usageStats) {
|
RankingHelper.java | 77 NotificationUsageStats usageStats, String[] extractorNames) { 88 extractor.initialize(mContext, usageStats);
|
ValidateNotificationPeople.java | 92 public void initialize(Context context, NotificationUsageStats usageStats) { 96 mUsageStats = usageStats;
|
/packages/apps/Camera2/src/com/android/camera/one/v2/errorhandling/ |
FatalErrorDialogFailureHandler.java | 35 UsageStatistics usageStats) { 37 mUsageStats = usageStats;
|
RecoverySuccessCallback.java | 30 RecoverySuccessCallback(UsageStatistics usageStats) { 31 mUsageStats = usageStats;
|
RepeatFailureHandlerComponent.java | 51 UsageStatistics usageStats, int consecutiveFailureThreshold) { 53 commandExecutor, previewStarter, usageStats); 55 (fatalErrorHandler, usageStats); 57 RecoverySuccessCallback recoverySuccessCallback = new RecoverySuccessCallback(usageStats);
|
FastCameraReset.java | 47 UsageStatistics usageStats) { 52 mUsageStats = usageStats;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
MetadataEntryParser.java | 62 public static class UsageStats { 68 public UsageStats(String usageType, long lastTimeUsed, int timesUsed) { 80 final ArrayList<UsageStats> mUsageStatsList; 84 ArrayList<UsageStats> usageStatsList) { 210 final ArrayList<UsageStats> usageStatsList = new ArrayList<UsageStats>(); 212 final JSONArray usageStats = fieldData.getJSONArray(USAGE_STATS); 213 for (int j = 0; j < usageStats.length(); j++) { 214 final JSONObject usageStat = usageStats.getJSONObject(j); 222 final UsageStats usageStatsParsed = new UsageStats [all...] |
ContactsProvider2.java | 172 import com.android.providers.contacts.MetadataEntryParser.UsageStats; [all...] |