Searched defs:endTime (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/services/usage/java/com/android/server/usage/
H A DIntervalStats.java28 public long endTime; field in class:IntervalStats
50 usageStats.mEndTimeStamp = endTime;
65 configStats.mEndTimeStamp = endTime;
121 endTime = timeStamp;
138 endTime = timeStamp;
H A DUsageStatsDatabase.java387 public <T> List<T> queryUsageStats(int intervalType, long beginTime, long endTime, argument
396 if (endTime <= beginTime) {
398 Slog.d(TAG, "endTime(" + endTime + ") <= beginTime(" + beginTime + ")");
410 int endIndex = intervalStats.closestIndexOnOrBefore(endTime);
419 if (intervalStats.keyAt(endIndex) == endTime) {
420 // The endTime is exclusive, so if we matched exactly take the one before.
442 if (beginTime < stats.endTime) {
H A DUserUsageStatsService.java233 private <T> List<T> queryStats(int intervalType, final long beginTime, final long endTime, argument
236 intervalType = mDatabase.findBestFitBucket(beginTime, endTime);
255 + beginTime + " AND endTime < " + endTime);
258 if (beginTime >= currentStats.endTime) {
261 + currentStats.endTime);
267 // Truncate the endTime to just before the in-memory stats. Then, we'll append the
270 final long truncatedEndTime = Math.min(currentStats.beginTime, endTime);
278 " endTime=" + currentStats.endTime);
299 queryUsageStats(int bucketType, long beginTime, long endTime) argument
303 queryConfigurationStats(int bucketType, long beginTime, long endTime) argument
307 queryEvents(final long beginTime, final long endTime) argument
[all...]
H A DUsageStatsService.java725 List<UsageStats> queryUsageStats(int userId, int bucketType, long beginTime, long endTime) { argument
728 if (!validRange(timeNow, beginTime, endTime)) {
734 return service.queryUsageStats(bucketType, beginTime, endTime);
742 long endTime) {
745 if (!validRange(timeNow, beginTime, endTime)) {
751 return service.queryConfigurationStats(bucketType, beginTime, endTime);
758 UsageEvents queryEvents(int userId, long beginTime, long endTime) { argument
761 if (!validRange(timeNow, beginTime, endTime)) {
767 return service.queryEvents(beginTime, endTime);
1012 private static boolean validRange(long currentTime, long beginTime, long endTime) { argument
741 queryConfigurationStats(int userId, int bucketType, long beginTime, long endTime) argument
1254 queryUsageStats(int bucketType, long beginTime, long endTime, String callingPackage) argument
1275 queryConfigurationStats(int bucketType, long beginTime, long endTime, String callingPackage) argument
1297 queryEvents(long beginTime, long endTime, String callingPackage) argument
[all...]
/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/java/android/app/usage/
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...]
H A DNetworkStatsManager.java108 * 'endTime' parameters. State is going to be {@link NetworkStats.Bucket#STATE_ALL}, uid
118 * @param endTime End of period. Defined in terms of "Unix time", see
124 long startTime, long endTime) throws SecurityException, RemoteException {
134 NetworkStats stats = new NetworkStats(mContext, template, startTime, endTime);
145 * and 'endTime' parameters, state is going to be {@link NetworkStats.Bucket#STATE_ALL} and uid
154 * @param endTime End of period. Defined in terms of "Unix time", see
160 long endTime) throws SecurityException, RemoteException {
170 stats = new NetworkStats(mContext, template, startTime, endTime);
181 * timestamps are going to be the same as the 'startTime' and 'endTime' parameters.
190 * @param endTime En
123 querySummaryForDevice(int networkType, String subscriberId, long startTime, long endTime) argument
159 querySummaryForUser(int networkType, String subscriberId, long startTime, long endTime) argument
195 querySummary(int networkType, String subscriberId, long startTime, long endTime) argument
217 queryDetailsForUid(int networkType, String subscriberId, long startTime, long endTime, int uid) argument
246 queryDetailsForUidTag(int networkType, String subscriberId, long startTime, long endTime, int uid, int tag) argument
285 queryDetails(int networkType, String subscriberId, long startTime, long endTime) argument
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DBatteryInfo.java54 public void onParsingStarted(long startTime, long endTime) {
55 timePeriod = endTime - startTime - remainingTimeUs / 1000;
57 view.configureGraph((int) (endTime - startTime), 100, remainingTimeUs != 0,
196 void onParsingStarted(long startTime, long endTime); argument
/frameworks/base/core/java/android/widget/
H A DDateTimeView.java322 long endTime) {
323 return getJulianDay(endTime, timeZone.getOffset(endTime) / 1000)
321 dayDistance(TimeZone timeZone, long startTime, long endTime) argument
/frameworks/base/core/java/com/android/internal/app/
H A DNightDisplayController.java225 * @param endTime the local time to automatically deactivate Night display
228 public boolean setCustomEndTime(@NonNull LocalTime endTime) { argument
229 if (endTime == null) {
230 throw new IllegalArgumentException("endTime cannot be null");
233 Secure.NIGHT_DISPLAY_CUSTOM_END_TIME, endTime.toMillis(), mUserId);
417 * @param endTime the local time to automatically deactivate Night display
419 default void onCustomEndTimeChanged(LocalTime endTime) {} argument
/frameworks/base/services/core/java/com/android/server/display/
H A DNightDisplayService.java353 public void onCustomEndTimeChanged(NightDisplayController.LocalTime endTime) { argument
354 Slog.d(TAG, "onCustomEndTimeChanged: endTime=" + endTime);
357 mAutoMode.onCustomEndTimeChanged(endTime);
389 final Calendar endTime = mEndTime.getDateTimeAfter(startTime);
390 final boolean activated = now.before(endTime);
469 public void onCustomEndTimeChanged(NightDisplayController.LocalTime endTime) { argument
470 mEndTime = endTime;
/frameworks/base/core/tests/coretests/src/android/animation/
H A DValueAnimatorTests.java560 assertTrue(listener.endTime > 0);
563 assertTrue(listener.endTime >= l1.lastUpdateTime);
564 assertTrue(listener.endTime - l1.lastUpdateTime < 2 * provider.getFrameDelay());
867 assertTrue(l1.endTime >= l1.startTime);
872 assertTrue(l2.endTime >= l1.startTime);
1085 long endTime = -1; field in class:ValueAnimatorTests.MyListener
1096 endTime = SystemClock.uptimeMillis();
/frameworks/native/cmds/flatland/
H A DMain.cpp505 nsecs_t endTime = endFence->getSignalTime(); local
507 return endTime - startTime;
/frameworks/base/media/java/android/media/tv/
H A DTvContract.java258 * @param endTime The end time used to filter programs. The returned programs should have
262 long endTime) {
265 .appendQueryParameter(PARAM_END_TIME, String.valueOf(endTime)).build();
275 * @param endTime The end time used to filter programs. The returned programs should have
279 long endTime) {
283 return buildProgramsUriForChannel(ContentUris.parseId(channelUri), startTime, endTime);
261 buildProgramsUriForChannel(long channelId, long startTime, long endTime) argument
278 buildProgramsUriForChannel(Uri channelUri, long startTime, long endTime) argument
/frameworks/native/services/inputflinger/
H A DInputDispatcher.cpp2606 nsecs_t endTime = now() + milliseconds_to_nanoseconds(timeoutMillis); local
2727 nsecs_t remainingTimeout = endTime - now();
2747 nsecs_t remainingTimeout = endTime - now();

Completed in 417 milliseconds