Home
last modified time | relevance | path

Searched refs:beginTime (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java130 public List<UsageStats> queryUsageStats(int intervalType, long beginTime, long endTime) { in queryUsageStats() argument
133 ParceledListSlice<UsageStats> slice = mService.queryUsageStats(intervalType, beginTime, in queryUsageStats()
154 public List<ConfigurationStats> queryConfigurations(int intervalType, long beginTime, in queryConfigurations() argument
159 intervalType, beginTime, endTime, mContext.getOpPackageName()); in queryConfigurations()
180 public UsageEvents queryEvents(long beginTime, long endTime) { in queryEvents() argument
182 UsageEvents iter = mService.queryEvents(beginTime, endTime, in queryEvents()
203 public Map<String, UsageStats> queryAndAggregateUsageStats(long beginTime, long endTime) { in queryAndAggregateUsageStats() argument
204 List<UsageStats> stats = queryUsageStats(INTERVAL_BEST, beginTime, endTime); in queryAndAggregateUsageStats()
DIUsageStatsManager.aidl28 ParceledListSlice queryUsageStats(int bucketType, long beginTime, long endTime, in queryUsageStats() argument
30 ParceledListSlice queryConfigurationStats(int bucketType, long beginTime, long endTime, in queryConfigurationStats() argument
32 UsageEvents queryEvents(long beginTime, long endTime, String callingPackage); in queryEvents() argument
/frameworks/base/services/usage/java/com/android/server/usage/
DUserUsageStatsService.java113 mCurrentStats[UsageStatsManager.INTERVAL_DAILY].beginTime); in init()
275 private <T> List<T> queryStats(int intervalType, final long beginTime, final long endTime, in queryStats() argument
278 intervalType = mDatabase.findBestFitBucket(beginTime, endTime); in queryStats()
297 + beginTime + " AND endTime < " + endTime); in queryStats()
300 if (beginTime >= currentStats.endTime) { in queryStats()
302 Slog.d(TAG, mLogPrefix + "Requesting stats after " + beginTime + " but latest is " in queryStats()
312 final long truncatedEndTime = Math.min(currentStats.beginTime, endTime); in queryStats()
315 List<T> results = mDatabase.queryUsageStats(intervalType, beginTime, in queryStats()
319 Slog.d(TAG, "Current stats beginTime=" + currentStats.beginTime + in queryStats()
324 if (beginTime < currentStats.endTime && endTime > currentStats.beginTime) { in queryStats()
[all …]
DUsageStatsXmlV1.java73 stats.mLastTimeUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
82 stats.mLastTimeSystemUsed = statsOut.beginTime + Long.parseLong(lastTimeUsedSystem); in loadUsageStats()
101 configStats.mLastTimeActive = statsOut.beginTime + XmlUtils.readLongAttribute( in loadConfigStats()
123 event.mTimeStamp = statsOut.beginTime + XmlUtils.readLongAttribute(parser, TIME_ATTR); in loadEvent()
143 usageStats.mLastTimeUsed - stats.beginTime); in writeUsageStats()
145 usageStats.mLastTimeSystemUsed - stats.beginTime); in writeUsageStats()
161 configStats.mLastTimeActive - stats.beginTime); in writeConfigStats()
180 XmlUtils.writeLongAttribute(xml, TIME_ATTR, event.mTimeStamp - stats.beginTime); in writeEvent()
213 statsOut.endTime = statsOut.beginTime + XmlUtils.readLongAttribute(parser, END_TIME_ATTR); in read()
249 XmlUtils.writeLongAttribute(xml, END_TIME_ATTR, stats.endTime - stats.beginTime); in write()
DUsageStatsDatabase.java392 public <T> List<T> queryUsageStats(int intervalType, long beginTime, long endTime, in queryUsageStats() argument
401 if (endTime <= beginTime) { in queryUsageStats()
403 Slog.d(TAG, "endTime(" + endTime + ") <= beginTime(" + beginTime + ")"); in queryUsageStats()
408 int startIndex = intervalStats.closestIndexOnOrBefore(beginTime); in queryUsageStats()
447 if (beginTime < stats.endTime) { in queryUsageStats()
525 long beginTime; in pruneFilesOlderThan() local
527 beginTime = UsageStatsXml.parseBeginTime(f); in pruneFilesOlderThan()
529 beginTime = 0; in pruneFilesOlderThan()
532 if (beginTime < expiryTime) { in pruneFilesOlderThan()
548 AtomicFile f = mSortedStatFiles[intervalType].get(stats.beginTime); in putUsageStats()
[all …]
DUsageStatsService.java686 List<UsageStats> queryUsageStats(int userId, int bucketType, long beginTime, long endTime) { in queryUsageStats() argument
689 if (!validRange(timeNow, beginTime, endTime)) { in queryUsageStats()
695 return service.queryUsageStats(bucketType, beginTime, endTime); in queryUsageStats()
702 List<ConfigurationStats> queryConfigurationStats(int userId, int bucketType, long beginTime, in queryConfigurationStats() argument
706 if (!validRange(timeNow, beginTime, endTime)) { in queryConfigurationStats()
712 return service.queryConfigurationStats(bucketType, beginTime, endTime); in queryConfigurationStats()
719 UsageEvents queryEvents(int userId, long beginTime, long endTime) { in queryEvents() argument
722 if (!validRange(timeNow, beginTime, endTime)) { in queryEvents()
728 return service.queryEvents(beginTime, endTime); in queryEvents()
947 private static boolean validRange(long currentTime, long beginTime, long endTime) { in validRange() argument
[all …]
DIntervalStats.java27 public long beginTime; field in IntervalStats
49 usageStats.mBeginTimeStamp = beginTime; in getOrCreateUsageStats()
65 configStats.mBeginTimeStamp = beginTime; in getOrCreateConfigurationStats()
DUsageStatsXml.java62 statsOut.beginTime = parseBeginTime(file); in read()
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageStatsActivity.java86 long beginTime = now - USAGE_STATS_PERIOD; in updateAdapter() local
88 beginTime, now); in updateAdapter()
/frameworks/base/docs/html-intl/intl/zh-cn/training/basics/intents/
Dsending.jd120 Calendar beginTime = Calendar.getInstance().set(2012, 0, 19, 7, 30);
122 calendarIntent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis());
/frameworks/base/docs/html-intl/intl/zh-tw/training/basics/intents/
Dsending.jd120 Calendar beginTime = Calendar.getInstance().set(2012, 0, 19, 7, 30);
122 calendarIntent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis());
/frameworks/base/docs/html-intl/intl/ko/training/basics/intents/
Dsending.jd120 Calendar beginTime = Calendar.getInstance().set(2012, 0, 19, 7, 30);
122 calendarIntent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis());
/frameworks/base/docs/html-intl/intl/ja/training/basics/intents/
Dsending.jd120 Calendar beginTime = Calendar.getInstance().set(2012, 0, 19, 7, 30);
122 calendarIntent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis());
/frameworks/base/docs/html-intl/intl/ru/training/basics/intents/
Dsending.jd120 Calendar beginTime = Calendar.getInstance().set(2012, 0, 19, 7, 30);
122 calendarIntent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis());
/frameworks/base/services/tests/servicestests/src/com/android/server/
DAccessibilityManagerServiceTest.java666 long beginTime = SystemClock.uptimeMillis(); in assertMockServiceVerifiedWithinTimeout() local
670 while (SystemClock.uptimeMillis() - beginTime < TIMEOUT_BINDER_CALL) { in assertMockServiceVerifiedWithinTimeout()
/frameworks/base/docs/html/guide/topics/providers/
Dcalendar-provider.jd550 Calendar beginTime = Calendar.getInstance();
551 beginTime.set(2012, 9, 14, 7, 30);
552 startMillis = beginTime.getTimeInMillis();
871 Calendar beginTime = Calendar.getInstance();
872 beginTime.set(2011, 9, 23, 8, 0);
873 long startMillis = beginTime.getTimeInMillis();
1099 Calendar beginTime = Calendar.getInstance();
1100 beginTime.set(2012, 0, 19, 7, 30);
1105 .putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis())
/frameworks/base/docs/html/training/basics/intents/
Dsending.jd120 Calendar beginTime = Calendar.getInstance().set(2012, 0, 19, 7, 30);
122 calendarIntent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis());
/frameworks/base/docs/html-intl/intl/pt-br/training/basics/intents/
Dsending.jd120 Calendar beginTime = Calendar.getInstance().set(2012, 0, 19, 7, 30);
122 calendarIntent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis());
/frameworks/base/api/
Dcurrent.txt24544 field public static final java.lang.String EXTRA_EVENT_BEGIN_TIME = "beginTime";
Dsystem-current.txt26500 field public static final java.lang.String EXTRA_EVENT_BEGIN_TIME = "beginTime";