Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java128 public List<UsageStats> queryUsageStats(int intervalType, long beginTime, long endTime) { in queryUsageStats() argument
131 ParceledListSlice<UsageStats> slice = mService.queryUsageStats(intervalType, beginTime, in queryUsageStats()
152 public List<ConfigurationStats> queryConfigurations(int intervalType, long beginTime, in queryConfigurations() argument
157 intervalType, beginTime, endTime, mContext.getOpPackageName()); in queryConfigurations()
178 public UsageEvents queryEvents(long beginTime, long endTime) { in queryEvents() argument
180 UsageEvents iter = mService.queryEvents(beginTime, endTime, in queryEvents()
201 public Map<String, UsageStats> queryAndAggregateUsageStats(long beginTime, long endTime) { in queryAndAggregateUsageStats() argument
202 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.java107 mCurrentStats[UsageStatsManager.INTERVAL_DAILY].beginTime); in init()
216 private <T> List<T> queryStats(int intervalType, final long beginTime, final long endTime, in queryStats() argument
219 intervalType = mDatabase.findBestFitBucket(beginTime, endTime); in queryStats()
238 + beginTime + " AND endTime < " + endTime); in queryStats()
241 if (beginTime >= currentStats.endTime) { in queryStats()
243 Slog.d(TAG, mLogPrefix + "Requesting stats after " + beginTime + " but latest is " in queryStats()
253 final long truncatedEndTime = Math.min(currentStats.beginTime, endTime); in queryStats()
256 List<T> results = mDatabase.queryUsageStats(intervalType, beginTime, in queryStats()
260 Slog.d(TAG, "Current stats beginTime=" + currentStats.beginTime + in queryStats()
265 if (beginTime < currentStats.endTime && endTime > currentStats.beginTime) { in queryStats()
[all …]
DUsageStatsService.java265 List<UsageStats> queryUsageStats(int userId, int bucketType, long beginTime, long endTime) { in queryUsageStats() argument
268 if (!validRange(timeNow, beginTime, endTime)) { in queryUsageStats()
274 return service.queryUsageStats(bucketType, beginTime, endTime); in queryUsageStats()
281 List<ConfigurationStats> queryConfigurationStats(int userId, int bucketType, long beginTime, in queryConfigurationStats() argument
285 if (!validRange(timeNow, beginTime, endTime)) { in queryConfigurationStats()
291 return service.queryConfigurationStats(bucketType, beginTime, endTime); in queryConfigurationStats()
298 UsageEvents queryEvents(int userId, long beginTime, long endTime) { in queryEvents() argument
301 if (!validRange(timeNow, beginTime, endTime)) { in queryEvents()
307 return service.queryEvents(beginTime, endTime); in queryEvents()
311 private static boolean validRange(long currentTime, long beginTime, long endTime) { in validRange() argument
[all …]
DUsageStatsDatabase.java337 public <T> List<T> queryUsageStats(int intervalType, long beginTime, long endTime, in queryUsageStats() argument
346 if (endTime <= beginTime) { in queryUsageStats()
348 Slog.d(TAG, "endTime(" + endTime + ") <= beginTime(" + beginTime + ")"); in queryUsageStats()
353 int startIndex = intervalStats.closestIndexOnOrBefore(beginTime); in queryUsageStats()
392 if (beginTime < stats.endTime) { in queryUsageStats()
464 long beginTime = UsageStatsXml.parseBeginTime(f); in pruneFilesOlderThan() local
465 if (beginTime < expiryTime) { in pruneFilesOlderThan()
481 AtomicFile f = mSortedStatFiles[intervalType].get(stats.beginTime); in putUsageStats()
484 Long.toString(stats.beginTime))); in putUsageStats()
485 mSortedStatFiles[intervalType].put(stats.beginTime, f); in putUsageStats()
DUsageStatsXmlV1.java70 stats.mLastTimeUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
85 configStats.mLastTimeActive = statsOut.beginTime + XmlUtils.readLongAttribute( in loadConfigStats()
107 event.mTimeStamp = statsOut.beginTime + XmlUtils.readLongAttribute(parser, TIME_ATTR); in loadEvent()
127 usageStats.mLastTimeUsed - stats.beginTime); in writeUsageStats()
142 configStats.mLastTimeActive - stats.beginTime); in writeConfigStats()
161 XmlUtils.writeLongAttribute(xml, TIME_ATTR, event.mTimeStamp - stats.beginTime); in writeEvent()
230 XmlUtils.writeLongAttribute(xml, END_TIME_ATTR, stats.endTime - stats.beginTime); in write()
DIntervalStats.java27 public long beginTime; field in IntervalStats
49 usageStats.mBeginTimeStamp = beginTime; in getOrCreateUsageStats()
64 configStats.mBeginTimeStamp = beginTime; in getOrCreateConfigurationStats()
DUsageStatsXml.java57 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/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/api/
Dsystem-current.txt24892 field public static final java.lang.String EXTRA_EVENT_BEGIN_TIME = "beginTime";
Dcurrent.txt23302 field public static final java.lang.String EXTRA_EVENT_BEGIN_TIME = "beginTime";