Searched refs:now (Results 26 - 50 of 171) sorted by relevance

1234567

/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipWakeupTimer.java116 long now = SystemClock.elapsedRealtime();
118 event.mTriggerTime = now + event.mPeriod;
127 interval -= (int) (firstEvent.mTriggerTime - now);
132 long triggerTime = now + event.mPeriod;
154 long now = SystemClock.elapsedRealtime();
155 MyEvent event = new MyEvent(period, callback, now);
166 + showTime(triggerTime) + " at " + showTime(now)
294 MyEvent(int period, Runnable callback, long now) { argument
297 mLastTriggerTime = now;
/frameworks/base/core/java/com/android/internal/os/
H A DZygote.java111 long now = SystemClock.elapsedRealtime();
112 if ((now-startTime) > 1000) {
114 Slog.w(TAG, "Slow operation: " + (now-startTime) + "ms so far, now at " + where);
/frameworks/volley/src/com/android/volley/toolbox/
H A DHttpHeaderParser.java40 long now = System.currentTimeMillis();
87 softExpire = now + maxAge * 1000;
90 softExpire = now + (serverExpires - serverDate);
/frameworks/base/services/core/java/com/android/server/am/
H A DProcessStatsService.java125 public boolean setMemFactorLocked(int memFactor, boolean screenOn, long now) { argument
134 += now - mProcessStats.mStartTime;
137 mProcessStats.mStartTime = now;
150 service.setRestarting(true, memFactor, now);
153 service.setStarted(true, memFactor, now);
156 service.setBound(true, memFactor, now);
159 service.setExecuting(true, memFactor, now);
180 public boolean shouldWriteNowLocked(long now) { argument
181 if (now > (mLastWriteTime+WRITE_PERIOD)) {
219 long now
387 dumpFilteredProcessesCsvLocked(PrintWriter pw, String header, boolean sepScreenStates, int[] screenStates, boolean sepMemStates, int[] memStates, boolean sepProcStates, int[] procStates, long now, String reqPackage) argument
554 dumpAggregatedStats(PrintWriter pw, long aggregateHours, long now, String reqPackage, boolean isCompact, boolean dumpDetails, boolean dumpFullDetails, boolean dumpAll, boolean activeOnly) argument
[all...]
H A DServiceRecord.java171 void dumpStartList(PrintWriter pw, String prefix, List<StartItem> list, long now) { argument
177 if (now != 0) {
179 TimeUtils.formatDuration(si.deliveredTime, now, pw);
210 long now = SystemClock.uptimeMillis();
234 TimeUtils.formatDuration(startingBgTimeout, now, pw);
237 TimeUtils.formatDuration(lastActivity, now, pw);
239 TimeUtils.formatDuration(restartTime, now, pw);
252 TimeUtils.formatDuration(executingStart, now, pw);
258 TimeUtils.formatDuration(destroyTime, now, pw);
265 TimeUtils.formatDuration(restartDelay, now, p
344 makeRestarting(int memFactor, long now) argument
[all...]
/frameworks/base/core/java/android/service/notification/
H A DCondition.java116 final boolean now = (flags & FLAG_RELEVANT_NOW) != 0;
118 if (!now && !always) return "NONE";
119 if (now && always) return "NOW, ALWAYS";
120 return now ? "NOW" : "ALWAYS";
/frameworks/base/services/core/java/com/android/server/twilight/
H A DTwilightService.java369 final long now = System.currentTimeMillis();
372 mTwilightCalculator.calculateTwilight(now - DateUtils.DAY_IN_MILLIS,
377 mTwilightCalculator.calculateTwilight(now,
384 mTwilightCalculator.calculateTwilight(now + DateUtils.DAY_IN_MILLIS,
400 nextUpdate = now + 12 * DateUtils.HOUR_IN_MILLIS;
405 if (now > todaySunset) {
407 } else if (now > todaySunrise) {
415 Slog.d(TAG, "Next update in " + (nextUpdate - now) + " ms");
431 // Airplane mode is now off!
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DBarTransitions.java178 long now = SystemClock.elapsedRealtime();
179 mStartTime = now;
180 mEndTime = now + BACKGROUND_DURATION;
217 final long now = SystemClock.elapsedRealtime();
218 if (now >= mEndTime) {
223 final float t = (now - mStartTime) / (float)(mEndTime - mStartTime);
/frameworks/base/core/java/android/text/format/
H A DDateUtils.java254 * Returns a string describing 'time' as a time relative to 'now'.
260 * @param now the current time in milliseconds
265 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution) { argument
267 return getRelativeTimeSpanString(time, now, minResolution, flags);
271 * Returns a string describing 'time' as a time relative to 'now'.
280 * @param now the current time in milliseconds
290 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution, argument
295 boolean past = (now >= time);
296 long duration = Math.abs(now - time);
346 return getRelativeDayString(r, time, now);
568 formatSameDayTime(long then, long now, int dateStyle, int timeStyle) argument
[all...]
/frameworks/base/core/java/android/os/
H A DMessageQueue.java63 * Called when the message queue has run out of messages and will now
147 final long now = SystemClock.uptimeMillis();
158 if (now < msg.when) {
160 nextPollTimeoutMillis = (int) Math.min(msg.when - now, Integer.MAX_VALUE);
178 // Process the quit message now that all pending messages have been handled.
188 && (mMessages == null || now < mMessages.when)) {
527 final long now = SystemClock.uptimeMillis();
530 if (p.when > now) {
539 if (n.when > now) {
556 long now
[all...]
/frameworks/base/cmds/media/src/com/android/commands/media/
H A DMedia.java168 final long now = SystemClock.uptimeMillis();
169 sendMediaKey(new KeyEvent(now, now, KeyEvent.ACTION_DOWN, keycode, 0, 0,
171 sendMediaKey(new KeyEvent(now, now, KeyEvent.ACTION_UP, keycode, 0, 0,
/frameworks/base/core/java/com/android/server/net/
H A DNetlinkTracker.java298 long now = System.currentTimeMillis();
299 long expiry = now + 1000 * lifetime;
314 if (expiry > now) {
339 long now = System.currentTimeMillis();
344 if (i >= NUM_SERVERS || mAllServers.get(i).expiry < now) {
/frameworks/base/libs/common_time/
H A Dclock_recovery.cpp194 // now.
337 int64_t now = local_clock_->getLocalTime(); local
344 time_to_cur_slew_.a_zero = now;
373 int64_t now = local_clock_->getLocalTime(); local
376 if (now >= slew_change_end_time_) {
380 time_to_cur_slew_.doForwardTransform(now, &tmp);
/frameworks/support/v4/java/android/support/v4/widget/
H A DSwipeProgressBar.java147 long now = AnimationUtils.currentAnimationTimeMillis();
148 long elapsed = (now - mStartTime) % ANIMATION_DURATION_MS;
149 long iterations = (now - mStartTime) / ANIMATION_DURATION_MS;
157 if ((now - mFinishTime) >= FINISH_ANIMATION_DURATION_MS) {
165 long finishElapsed = (now - mFinishTime) % FINISH_ANIMATION_DURATION_MS;
/frameworks/base/services/core/java/com/android/server/wm/
H A DScreenRotationAnimation.java735 private boolean stepAnimation(long now) { argument
736 if (now > mHalfwayPoint) {
740 if (DEBUG_STATE) Slog.v(TAG, "Step: finish anim now ready");
741 mFinishAnimStartTime = now;
747 mMoreStartExit = mStartExitAnimation.getTransformation(now, mStartExitTransformation);
753 mMoreStartEnter = mStartEnterAnimation.getTransformation(now, mStartEnterTransformation);
760 mMoreStartFrame = mStartFrameAnimation.getTransformation(now, mStartFrameTransformation);
765 long finishNow = mFinishAnimReady ? (now - mFinishAnimStartTime) : 0;
791 mMoreRotateExit = mRotateExitAnimation.getTransformation(now, mRotateExitTransformation);
797 mMoreRotateEnter = mRotateEnterAnimation.getTransformation(now, mRotateEnterTransformatio
960 stepAnimationLocked(long now) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DTextProgressBar.java139 long now = SystemClock.elapsedRealtime();
140 if (now >= mDurationBase) {
145 int remaining = (int) (mDurationBase - now);
/frameworks/base/services/core/java/com/android/server/display/
H A DAutomaticBrightnessController.java211 // switch to a wake-up light sensor instead but for now we will simply disable the sensor
302 private float calculateAmbientLux(long now) { argument
312 long startTime = (mAmbientLightRingBuffer.getTime(i) - now);
418 // now. Rather than continually checking to see whether the weighted lux exceeds the
452 final long now = System.currentTimeMillis();
454 getTwilightGamma(now, state.getYesterdaySunset(), state.getTodaySunrise());
456 getTwilightGamma(now, state.getTodaySunset(), state.getTomorrowSunrise());
496 private static float getTwilightGamma(long now, long lastSunset, long nextSunrise) { argument
498 || now < lastSunset || now > nextSunris
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DDowntimeCalendar.java61 public long getNextTime(long now, int hr, int min) { argument
62 final long time = getTime(now, hr, min);
63 return time <= now ? addDays(time, 1) : time;
/frameworks/base/services/core/jni/
H A Dcom_android_server_power_PowerManagerService.cpp81 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
82 if (eventTime > now) {
83 eventTime = now;
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
H A DUsageStatsActivity.java85 long now = System.currentTimeMillis();
86 long beginTime = now - USAGE_STATS_PERIOD;
88 beginTime, now);
/frameworks/base/core/java/android/provider/
H A DSearchRecentSuggestions.java190 long now = System.currentTimeMillis();
200 values.put(SuggestionColumns.DATE, now);
/frameworks/ex/common/java/com/android/common/
H A DOperationScheduler.java163 long now = currentTimeMillis();
164 long lastSuccessTimeMillis = getTimeBefore(PREFIX + "lastSuccessTimeMillis", now);
165 long lastErrorTimeMillis = getTimeBefore(PREFIX + "lastErrorTimeMillis", now);
167 long moratoriumSetMillis = getTimeBefore(PREFIX + "moratoriumSetTimeMillis", now);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DMobileDataControllerImpl.java122 final long now = System.currentTimeMillis();
142 end = now;
143 start = now - DateUtils.WEEK_IN_MILLIS * 4;
146 final NetworkStatsHistory.Entry entry = history.getValues(start, end, now, null);
148 if (DEBUG) Log.d(TAG, String.format("history call from %s to %s now=%s took %sms: %s",
149 new Date(start), new Date(end), new Date(now), callEnd - callStart,
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java528 // We are expanded and are now going to animate away.
553 long now = SystemClock.uptimeMillis();
554 mAnimationLastTime = now;
555 mCurrentAnimationTime = now + ANIMATION_FRAME_DURATION;
574 long now = SystemClock.uptimeMillis();
575 mAnimationLastTime = now;
576 mCurrentAnimationTime = now + ANIMATION_FRAME_DURATION;
720 long now = SystemClock.uptimeMillis();
721 float t = (now - mAnimationLastTime) / 1000.0f; // ms -> s
727 mAnimationLastTime = now; // m
[all...]
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp179 // Release it now as the texture is already loaded and the memory used for
357 nsecs_t now = systemTime(); local
358 double time = now - startTime;
381 const nsecs_t sleepTime = 83333 - ns2us(systemTime() - now);
636 nsecs_t now = systemTime(); local
637 nsecs_t delay = frameDuration - (now - lastFrame);
638 //ALOGD("%lld, %lld", ns2ms(now - lastFrame), ns2ms(delay));
639 lastFrame = now;
643 spec.tv_sec = (now + delay) / 1000000000;
644 spec.tv_nsec = (now
[all...]

Completed in 4095 milliseconds

1234567