Searched refs:endTime (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/base/core/java/android/app/usage/
H A DIUsageStatsManager.aidl28 ParceledListSlice queryUsageStats(int bucketType, long beginTime, long endTime,
30 ParceledListSlice queryConfigurationStats(int bucketType, long beginTime, long endTime,
32 UsageEvents queryEvents(long beginTime, long endTime, String callingPackage);
H A DNetworkStatsManager.java76 * bucket's start and end timestamp are going to be the same as the 'startTime' and 'endTime'
86 * @param endTime End of period. Defined in terms of "Unix time", see
92 long startTime, long endTime) throws SecurityException, RemoteException {
99 NetworkStats stats = new NetworkStats(mContext, template, startTime, endTime);
110 * and 'endTime' parameters, state is going to be {@link NetworkStats.Bucket#STATE_ALL} and uid
119 * @param endTime End of period. Defined in terms of "Unix time", see
125 long endTime) throws SecurityException, RemoteException {
132 stats = new NetworkStats(mContext, template, startTime, endTime);
143 * timestamps are going to be the same as the 'startTime' and 'endTime' parameters, state and
152 * @param endTime En
91 querySummaryForDevice(int networkType, String subscriberId, long startTime, long endTime) argument
124 querySummaryForUser(int networkType, String subscriberId, long startTime, long endTime) argument
157 querySummary(int networkType, String subscriberId, long startTime, long endTime) argument
192 queryDetailsForUid(int networkType, String subscriberId, long startTime, long endTime, int uid) argument
226 queryDetails(int networkType, String subscriberId, long startTime, long endTime) argument
[all...]
H A DUsageStatsManager.java109 * endTime = 2015 (exclusive)
121 * @param endTime The exclusive end of the range of stats to include in the results.
130 public List<UsageStats> queryUsageStats(int intervalType, long beginTime, long endTime) { argument
134 endTime, mContext.getOpPackageName());
151 * @param endTime The exclusive end of the range of stats to include in the results.
155 long endTime) {
159 intervalType, beginTime, endTime, mContext.getOpPackageName());
177 * @param endTime The exclusive end of the range of events to include in the results.
180 public UsageEvents queryEvents(long beginTime, long endTime) { argument
182 UsageEvents iter = mService.queryEvents(beginTime, endTime,
154 queryConfigurations(int intervalType, long beginTime, long endTime) argument
203 queryAndAggregateUsageStats(long beginTime, long endTime) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/os/
H A DTestHandlerThread.java40 long endTime = now + timeout;
41 while (!mDone && now < endTime) {
43 wait(endTime-now);
/frameworks/base/services/usage/java/com/android/server/usage/
H A DIntervalStats.java28 public long endTime; field in class:IntervalStats
50 usageStats.mEndTimeStamp = endTime;
66 configStats.mEndTimeStamp = endTime;
123 endTime = timeStamp;
156 endTime = timeStamp;
H A DUserUsageStatsService.java275 private <T> List<T> queryStats(int intervalType, final long beginTime, final long endTime, argument
278 intervalType = mDatabase.findBestFitBucket(beginTime, endTime);
297 + beginTime + " AND endTime < " + endTime);
300 if (beginTime >= currentStats.endTime) {
303 + currentStats.endTime);
309 // Truncate the endTime to just before the in-memory stats. Then, we'll append the
312 final long truncatedEndTime = Math.min(currentStats.beginTime, endTime);
320 " endTime=" + currentStats.endTime);
341 queryUsageStats(int bucketType, long beginTime, long endTime) argument
345 queryConfigurationStats(int bucketType, long beginTime, long endTime) argument
349 queryEvents(final long beginTime, final long endTime) argument
[all...]
H A DUsageStatsDatabase.java392 public <T> List<T> queryUsageStats(int intervalType, long beginTime, long endTime, argument
401 if (endTime <= beginTime) {
403 Slog.d(TAG, "endTime(" + endTime + ") <= beginTime(" + beginTime + ")");
415 int endIndex = intervalStats.closestIndexOnOrBefore(endTime);
424 if (intervalStats.keyAt(endIndex) == endTime) {
425 // The endTime is exclusive, so if we matched exactly take the one before.
447 if (beginTime < stats.endTime) {
H A DUsageStatsService.java686 List<UsageStats> queryUsageStats(int userId, int bucketType, long beginTime, long endTime) { argument
689 if (!validRange(timeNow, beginTime, endTime)) {
695 return service.queryUsageStats(bucketType, beginTime, endTime);
703 long endTime) {
706 if (!validRange(timeNow, beginTime, endTime)) {
712 return service.queryConfigurationStats(bucketType, beginTime, endTime);
719 UsageEvents queryEvents(int userId, long beginTime, long endTime) { argument
722 if (!validRange(timeNow, beginTime, endTime)) {
728 return service.queryEvents(beginTime, endTime);
947 private static boolean validRange(long currentTime, long beginTime, long endTime) { argument
702 queryConfigurationStats(int userId, int bucketType, long beginTime, long endTime) argument
1165 queryUsageStats(int bucketType, long beginTime, long endTime, String callingPackage) argument
1186 queryConfigurationStats(int bucketType, long beginTime, long endTime, String callingPackage) argument
1208 queryEvents(long beginTime, long endTime, String callingPackage) argument
[all...]
H A DUsageStatsXmlV1.java60 private static final String END_TIME_ATTR = "endTime";
213 statsOut.endTime = statsOut.beginTime + XmlUtils.readLongAttribute(parser, END_TIME_ATTR);
249 XmlUtils.writeLongAttribute(xml, END_TIME_ATTR, stats.endTime - stats.beginTime);
/frameworks/base/core/java/android/app/admin/
H A DSystemUpdatePolicy.java116 * @param endTime the end of the maintenance window, measured as the number of minutes from
120 public static SystemUpdatePolicy createWindowedInstallPolicy(int startTime, int endTime) { argument
122 || endTime < 0 || endTime >= WINDOW_BOUNDARY) {
123 throw new IllegalArgumentException("startTime and endTime must be inside [0, 1440)");
128 policy.mMaintenanceWindowEnd = endTime;
/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseLockTest.java127 long endTime = System.currentTimeMillis();
128 long elapsedTime = endTime - startTime;
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DActivityTestsBase.java166 long endTime = System.currentTimeMillis() + timeoutMs;
171 long delay = endTime - System.currentTimeMillis();
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
H A DRecurrenceProcessorTest.java2491 long endTime = System.currentTimeMillis();
2492 long elapsed = endTime - startTime;
2515 long endTime = System.currentTimeMillis();
2516 long elapsed = endTime - startTime;
2532 endTime = System.currentTimeMillis();
2533 elapsed = endTime - startTime;
/frameworks/base/media/java/android/media/tv/
H A DTvContract.java247 * @param endTime The end time used to filter programs. The returned programs should have
251 long endTime) {
254 .appendQueryParameter(PARAM_END_TIME, String.valueOf(endTime)).build();
264 * @param endTime The end time used to filter programs. The returned programs should have
268 long endTime) {
272 return buildProgramsUriForChannel(ContentUris.parseId(channelUri), startTime, endTime);
250 buildProgramsUriForChannel(long channelId, long startTime, long endTime) argument
267 buildProgramsUriForChannel(Uri channelUri, long startTime, long endTime) argument
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DAccessibilityNodeInfoDumper.java97 final long endTime = SystemClock.uptimeMillis();
98 Log.w(LOGTAG, "Fetch time: " + (endTime - startTime) + "ms");
/frameworks/base/core/java/com/android/internal/view/
H A DInputConnectionWrapper.java177 long endTime = startTime + MAX_WAIT_TIME_MILLIS;
180 long remainingTime = endTime - SystemClock.uptimeMillis();
/frameworks/base/services/core/java/com/android/server/power/
H A DShutdownThread.java373 final long endTime = SystemClock.elapsedRealtime() + MAX_BROADCAST_TIME;
376 long delay = endTime - SystemClock.elapsedRealtime();
496 final long endTime = SystemClock.elapsedRealtime() + timeout;
548 long delay = endTime - SystemClock.elapsedRealtime();
598 delay = endTime - SystemClock.elapsedRealtime();
/frameworks/base/services/core/java/com/android/server/
H A DNativeDaemonConnector.java435 final long endTime = SystemClock.elapsedRealtime();
436 if (endTime - startTime > WARN_EXECUTE_DELAY_MS) {
437 loge("NDC Command {" + logCmd + "} took too long (" + (endTime - startTime) + "ms)");
/frameworks/base/services/core/java/com/android/server/display/
H A DAutomaticBrightnessController.java342 long endTime = AMBIENT_LIGHT_PREDICTION_TIME_MILLIS;
345 float weight = calculateWeight(startTime, endTime);
350 (endTime) + "]: lux=" + lux + ", weight=" + weight);
354 endTime = startTime;
/frameworks/base/test-runner/src/android/test/
H A DTestRunner.java453 long endTime = mEndTime;
454 if (endTime == 0) {
455 endTime = SystemClock.currentThreadTimeMillis();
458 duration = endTime - mStartTime;
/frameworks/base/cmds/input/src/com/android/commands/input/
H A DInput.java208 long endTime = startTime + duration;
209 while (now < endTime) {
/frameworks/native/opengl/tools/glgen2/registry/
H A Dgenheaders.py88 endTime = time.clock()
90 write(msg, endTime - startTime)
/frameworks/native/cmds/flatland/
H A DMain.cpp505 nsecs_t endTime = endFence->getSignalTime(); local
507 return endTime - startTime;
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videoproc/
H A DBackDropperFilter.java851 long endTime = SystemClock.elapsedRealtime();
852 Log.v(TAG, "Avg. frame duration: " + String.format("%.2f",(endTime-startTime)/30.) +
853 " ms. Avg. fps: " + String.format("%.2f", 1000./((endTime-startTime)/30.)) );
854 startTime = endTime;
/frameworks/base/core/java/android/widget/
H A DAdapterView.java1124 long endTime = SystemClock.uptimeMillis() + SYNC_MAX_DURATION_MILLIS;
1150 while (SystemClock.uptimeMillis() <= endTime) {

Completed in 643 milliseconds

12