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

123456

/frameworks/base/core/java/com/android/internal/widget/
H A DTextProgressBar.java136 long now = SystemClock.elapsedRealtime();
137 if (now >= mDurationBase) {
142 int remaining = (int) (mDurationBase - now);
/frameworks/native/libs/utils/
H A DLinearAllocator.cpp65 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
66 if (now > s_nextLog) {
67 s_nextLog = now + milliseconds_to_nanoseconds(10);
H A DBlobCache.cpp43 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
45 srand(now);
47 mRandState[0] = (now >> 0) & 0xFFFF;
48 mRandState[1] = (now >> 16) & 0xFFFF;
49 mRandState[2] = (now >> 32) & 0xFFFF;
51 ALOGV("initializing random seed using %lld", now);
/frameworks/base/core/java/android/provider/
H A DSearchRecentSuggestions.java190 long now = System.currentTimeMillis();
200 values.put(SuggestionColumns.DATE, now);
/frameworks/base/services/java/com/android/server/
H A DTwilightService.java471 final long now = System.currentTimeMillis();
474 mTwilightCalculator.calculateTwilight(now - DateUtils.DAY_IN_MILLIS,
479 mTwilightCalculator.calculateTwilight(now,
486 mTwilightCalculator.calculateTwilight(now + DateUtils.DAY_IN_MILLIS,
502 nextUpdate = now + 12 * DateUtils.HOUR_IN_MILLIS;
507 if (now > todaySunset) {
509 } else if (now > todaySunrise) {
517 Slog.d(TAG, "Next update in " + (nextUpdate - now) + " ms");
532 // Airplane mode is now off!
H A DAlarmManagerService.java189 // now that we have initied the driver schedule the alarm
522 final long now = System.currentTimeMillis();
525 pw.print(" Realtime wakeup (now=");
526 pw.print(sdf.format(new Date(now))); pw.println("):");
528 dumpAlarmList(pw, mRtcWakeupAlarms, " ", "RTC_WAKEUP", now);
531 dumpAlarmList(pw, mRtcAlarms, " ", "RTC", now);
535 final long now = SystemClock.elapsedRealtime();
537 pw.print(" Elapsed realtime wakeup (now=");
538 TimeUtils.formatDuration(now, pw); pw.println("):");
540 dumpAlarmList(pw, mElapsedRealtimeWakeupAlarms, " ", "ELAPSED_WAKEUP", now);
649 dumpAlarmList(PrintWriter pw, ArrayList<Alarm> list, String prefix, String label, long now) argument
665 triggerAlarmsLocked(ArrayList<Alarm> alarmList, ArrayList<Alarm> triggerList, long now) argument
770 dump(PrintWriter pw, String prefix, long now) argument
[all...]
/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/services/java/com/android/server/am/
H A DServiceRecord.java164 void dumpStartList(PrintWriter pw, String prefix, List<StartItem> list, long now) { argument
170 if (now != 0) {
172 TimeUtils.formatDuration(si.deliveredTime, now, pw);
210 long now = SystemClock.uptimeMillis();
229 TimeUtils.formatDuration(lastActivity, now, pw);
232 TimeUtils.formatDuration(executingStart, now, pw);
234 TimeUtils.formatDuration(restartTime, now, pw);
247 TimeUtils.formatDuration(restartDelay, now, pw);
249 TimeUtils.formatDuration(nextRestartTime, now, pw);
254 dumpStartList(pw, prefix, deliveredStarts, now);
[all...]
H A DBroadcastRecord.java84 final long now = SystemClock.uptimeMillis();
106 TimeUtils.formatDuration(dispatchTime, now, pw);
108 pw.print(" finishTime="); TimeUtils.formatDuration(finishTime, now, pw);
110 pw.print(" receiverTime="); TimeUtils.formatDuration(receiverTime, now, pw);
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java507 // We are expanded and are now going to animate away.
532 long now = SystemClock.uptimeMillis();
533 mAnimationLastTime = now;
534 mCurrentAnimationTime = now + ANIMATION_FRAME_DURATION;
553 long now = SystemClock.uptimeMillis();
554 mAnimationLastTime = now;
555 mCurrentAnimationTime = now + ANIMATION_FRAME_DURATION;
699 long now = SystemClock.uptimeMillis();
700 float t = (now - mAnimationLastTime) / 1000.0f; // ms -> s
706 mAnimationLastTime = now; // m
[all...]
H A DChronometer.java227 private synchronized void updateText(long now) { argument
228 long seconds = now - mBase;
H A DTextClock.java157 long now = SystemClock.uptimeMillis();
158 long next = now + (1000 - now % 1000);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawableContainer.java43 * The initial setting for dither is now true, since it almost always seems
289 final long now = SystemClock.uptimeMillis();
301 mExitAnimationEnd = now + mDrawableContainerState.mExitFadeDuration;
317 mEnterAnimationEnd = now + mDrawableContainerState.mEnterFadeDuration;
355 final long now = SystemClock.uptimeMillis();
359 if (mEnterAnimationEnd <= now) {
363 int animAlpha = (int)((mEnterAnimationEnd-now)*255)
375 if (mExitAnimationEnd <= now) {
380 int animAlpha = (int)((mExitAnimationEnd-now)*255)
392 scheduleSelf(mAnimationRunnable, now
[all...]
/frameworks/base/core/java/android/text/format/
H A DDateUtils.java300 * Returns a string describing 'time' as a time relative to 'now'.
306 * @param now the current time in milliseconds
311 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution) { argument
313 return getRelativeTimeSpanString(time, now, minResolution, flags);
317 * Returns a string describing 'time' as a time relative to 'now'.
326 * @param now the current time in milliseconds
336 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution, argument
341 boolean past = (now >= time);
342 long duration = Math.abs(now - time);
392 return getRelativeDayString(r, time, now);
614 formatSameDayTime(long then, long now, int dateStyle, int timeStyle) argument
[all...]
/frameworks/base/services/java/com/android/server/content/
H A DSyncManager.java799 final long now = SystemClock.elapsedRealtime();
807 if (now < previousSettings.first) {
810 + "Remaining: " + ((previousSettings.first - now) / 1000) + " seconds.");
831 final long backoff = now + newDelayInMs;
1169 final long now = SystemClock.elapsedRealtime();
1170 pw.print("now: "); pw.print(now);
1174 pw.print("uptime: "); pw.print(DateUtils.formatElapsedTime(now/1000));
1185 pw.print(DateUtils.formatElapsedTime((mSyncHandler.mAlarmScheduleTime-now)/1000));
1186 pw.println(" (HH:MM:SS) from now)");
[all...]
H A DSyncOperation.java85 final long now = SystemClock.elapsedRealtime();
88 this.earliestRunTime = now;
91 this.earliestRunTime = now + delayInMs;
H A DSyncQueue.java212 final long now = SystemClock.elapsedRealtime();
216 if (operation.effectiveRunTime <= now) {
219 sb.append(DateUtils.formatElapsedTime((operation.effectiveRunTime - now) / 1000));
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp346 nsecs_t now = systemTime(); local
347 double time = now - startTime;
370 const nsecs_t sleepTime = 83333 - ns2us(systemTime() - now);
540 nsecs_t now = systemTime(); local
541 nsecs_t delay = frameDuration - (now - lastFrame);
542 //ALOGD("%lld, %lld", ns2ms(now - lastFrame), ns2ms(delay));
543 lastFrame = now;
547 spec.tv_sec = (now + delay) / 1000000000;
548 spec.tv_nsec = (now + delay) % 1000000000;
560 // For infinite parts, we've now playe
[all...]
/frameworks/base/core/java/android/os/
H A DLooper.java300 long now = SystemClock.uptimeMillis();
304 pw.println(" Message " + n + ": " + msg.toString(now));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DDeadZone.java88 private float getSize(long now) { argument
91 long dt = (now - mLastPokeTime);
/frameworks/native/opengl/tests/fillrate/
H A Dfillrate.cpp142 nsecs_t now = systemTime(); local
147 nsecs_t t = systemTime() - now;
/frameworks/support/v4/java/android/support/v4/util/
H A DTimeUtils.java168 public static void formatDuration(long time, long now, PrintWriter pw) { argument
173 formatDuration(time-now, pw, 0);
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.c48 time_t now = time(NULL); local
60 strftime(date, sizeof(date), "%Y-%m-%d %H:%M:%S", localtime(&now));
433 time_t now = time(NULL); local
434 strftime(date, sizeof(date), "-%Y-%m-%d-%H-%M-%S", localtime(&now));
475 /* rename the (now complete) .tmp file to its final location */
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneInfo.java139 final long now = nowMinute * DateUtils.MINUTE_IN_MILLIS;
140 final int gmtOffset = mTz.getOffset(now);
167 DateUtils.formatDateRange(context, mFormatter, now, now, flags, mTzId);
/frameworks/base/services/java/com/android/server/location/
H A DLocationFudger.java284 long now = SystemClock.elapsedRealtime();
285 if (now < mNextInterval) {
293 mNextInterval = now + CHANGE_INTERVAL_MS;

Completed in 627 milliseconds

123456