Searched defs:now (Results 1 - 25 of 41) sorted by relevance

12

/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/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/base/core/java/android/os/
H A DMessage.java436 String toString(long now) { argument
439 TimeUtils.formatDuration(when - now, b);
/frameworks/base/core/java/android/util/
H A DTimeUtils.java387 public static void formatDuration(long time, long now, PrintWriter pw) { argument
392 formatDuration(time-now, pw, 0);
404 return time + " (now)";
/frameworks/base/core/java/android/widget/
H A DChronometer.java227 private synchronized void updateText(long now) { argument
228 long seconds = now - mBase;
/frameworks/base/services/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);
H A Dcommon_time_server.cpp274 // Success! We are now joining a new network (either coming
426 // TODO: add proper support for IPv6. Right now, we block IPv6 addresses at
1471 int64_t now = mLocalClock.getLocalTime(); local
1472 int64_t delta = now - (mClient_LastGoodSyncRX
/frameworks/base/services/jni/
H A Dcom_android_server_power_PowerManagerService.cpp97 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
98 if (eventTime > now) {
99 eventTime = now;
/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));
450 time_t now = time(NULL); local
451 strftime(date, sizeof(date), "-%Y-%m-%d-%H-%M-%S", localtime(&now));
492 /* rename the (now complete) .tmp file to its final location */
/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/native/services/surfaceflinger/
H A DDispSync.cpp87 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
112 nextEventTime = computeNextEventTimeLocked(now);
117 if (now < targetTime) {
118 err = mCond.waitRelative(mMutex, targetTime - now);
129 now = systemTime(SYSTEM_TIME_MONOTONIC);
133 (now - targetTime)) / 64;
139 ATRACE_INT64("DispSync:WakeupLat", now - nextEventTime);
144 callbackInvocations = gatherCallbackInvocationsLocked(now);
216 nsecs_t computeNextEventTimeLocked(nsecs_t now) { argument
220 now);
230 gatherCallbackInvocationsLocked(nsecs_t now) argument
[all...]
/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/net/
H A DNetworkStatsHistory.java387 for (long now = start; now < end; now += bucketDuration) {
389 final int index = Arrays.binarySearch(bucketStart, 0, bucketCount, now);
392 insertBucket(~index, now);
479 public Entry getValues(long start, long end, long now, Entry recycle) { argument
501 final boolean activeBucket = curStart < now && curEnd > now;
/frameworks/base/core/java/android/text/format/
H A DDateUtils.java255 * Returns a string describing 'time' as a time relative to 'now'.
261 * @param now the current time in milliseconds
266 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution) { argument
268 return getRelativeTimeSpanString(time, now, minResolution, flags);
272 * Returns a string describing 'time' as a time relative to 'now'.
281 * @param now the current time in milliseconds
291 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution, argument
296 boolean past = (now >= time);
297 long duration = Math.abs(now - time);
347 return getRelativeDayString(r, time, now);
569 formatSameDayTime(long then, long now, int dateStyle, int timeStyle) argument
[all...]
/frameworks/base/core/java/android/view/
H A DChoreographer.java106 // Enable/disable using the frame time instead of returning now.
323 final long now = SystemClock.uptimeMillis();
324 final long dueTime = now + delayMillis;
327 if (dueTime <= now) {
328 scheduleFrameLocked(now);
472 private void scheduleFrameLocked(long now) { argument
492 mLastFrameTimeNanos / NANOS_PER_MS + sFrameDelay, now);
494 Log.d(TAG, "Scheduling next frame in " + (nextFrameTime - now) + " ms.");
557 // We use "now" to determine when callbacks become due because it's possible
560 final long now
769 hasDueCallbacksLocked(long now) argument
773 extractDueCallbacksLocked(long now) argument
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DWindowOrientationListener.java411 final long now = event.timestamp;
413 final float timeDeltaMS = (now - then) * 0.000001f;
415 if (now < then
416 || now > then + MAX_FILTER_DELTA_TIME_NANOS
435 mLastFilteredTimestampNanos = now;
456 mAccelerationTimestampNanos = now;
467 addTiltHistoryEntryLocked(now, tiltAngle);
470 if (isFlatLocked(now)) {
472 mFlatTimestampNanos = now;
474 if (isSwingingLocked(now, tiltAngl
632 isPredictedRotationAcceptableLocked(long now) argument
674 updatePredictedRotationLocked(long now, int rotation) argument
691 addTiltHistoryEntryLocked(long now, float tilt) argument
698 isFlatLocked(long now) argument
711 isSwingingLocked(long now, float tilt) argument
729 remainingMS(long now, long until) argument
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DProcessList.java481 long now) {
489 return now + table[procState];
480 computeNextPssTime(int procState, boolean first, boolean sleeping, long now) argument
H A DProcessStatsService.java127 public boolean setMemFactorLocked(int memFactor, boolean screenOn, long now) { argument
136 += now - mProcessStats.mStartTime;
139 mProcessStats.mStartTime = now;
151 service.setStarted(true, memFactor, now);
154 service.setBound(true, memFactor, now);
157 service.setExecuting(true, memFactor, now);
172 public boolean shouldWriteNowLocked(long now) { argument
173 if (now > (mLastWriteTime+WRITE_PERIOD)) {
209 long now = SystemClock.uptimeMillis();
225 Slog.i(TAG, "Prepared write state in " + (SystemClock.uptimeMillis()-now)
369 dumpFilteredProcessesCsvLocked(PrintWriter pw, String header, boolean sepScreenStates, int[] screenStates, boolean sepMemStates, int[] memStates, boolean sepProcStates, int[] procStates, long now, String reqPackage) argument
532 dumpAggregatedStats(PrintWriter pw, long aggregateHours, long now, String reqPackage, boolean isCompact, boolean dumpDetails, boolean dumpFullDetails, boolean dumpAll, boolean activeOnly) argument
[all...]
H A DServiceRecord.java170 void dumpStartList(PrintWriter pw, String prefix, List<StartItem> list, long now) { argument
176 if (now != 0) {
178 TimeUtils.formatDuration(si.deliveredTime, now, pw);
216 long now = SystemClock.uptimeMillis();
238 TimeUtils.formatDuration(startingBgTimeout, now, pw);
241 TimeUtils.formatDuration(lastActivity, now, pw);
243 TimeUtils.formatDuration(restartTime, now, pw);
256 TimeUtils.formatDuration(executingStart, now, pw);
263 TimeUtils.formatDuration(restartDelay, now, pw);
265 TimeUtils.formatDuration(nextRestartTime, now, p
344 makeRestarting(int memFactor, long now) argument
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DScreenRotationAnimation.java729 private boolean stepAnimation(long now) { argument
730 if (now > mHalfwayPoint) {
734 if (DEBUG_STATE) Slog.v(TAG, "Step: finish anim now ready");
735 mFinishAnimStartTime = now;
741 mMoreStartExit = mStartExitAnimation.getTransformation(now, mStartExitTransformation);
747 mMoreStartEnter = mStartEnterAnimation.getTransformation(now, mStartEnterTransformation);
754 mMoreStartFrame = mStartFrameAnimation.getTransformation(now, mStartFrameTransformation);
759 long finishNow = mFinishAnimReady ? (now - mFinishAnimStartTime) : 0;
785 mMoreRotateExit = mRotateExitAnimation.getTransformation(now, mRotateExitTransformation);
791 mMoreRotateEnter = mRotateEnterAnimation.getTransformation(now, mRotateEnterTransformatio
954 stepAnimationLocked(long now) argument
[all...]
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposer.cpp441 nsecs_t now = systemTime(CLOCK_MONOTONIC); local
442 return now - ((now - mLastHwVSync[disp]) % mDisplayData[disp].refresh);
1123 const nsecs_t now = systemTime(CLOCK_MONOTONIC);
1125 nsecs_t sleep = next_vsync - now;
1128 sleep = (period - ((now - next_vsync) % period));
1129 next_vsync = now + sleep;
/frameworks/av/media/libstagefright/wifi-display/source/
H A DWifiDisplaySource.cpp248 ALOGI("We now have a client (%d) connected.", sessionID);
1381 response.append("Range: npt=now-\r\n");
1575 time_t now = time(NULL); local
1576 struct tm *now2 = gmtime(&now);
/frameworks/base/core/java/com/android/internal/os/
H A DProcessCpuTracker.java701 final public String printCurrentState(long now) { argument
708 if (now > mLastSampleTime) {
709 pw.print(now-mLastSampleTime);
711 pw.print(now-mCurrentSampleTime);
714 pw.print(mLastSampleTime-now);
716 pw.print(mCurrentSampleTime-now);
/frameworks/native/libs/input/
H A DKeyCharacterMap.cpp299 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
313 addMetaKeys(outEvents, deviceId, metaState, true, now, &currentMetaState);
314 addKey(outEvents, deviceId, keyCode, currentMetaState, true, now);
315 addKey(outEvents, deviceId, keyCode, currentMetaState, false, now);
316 addMetaKeys(outEvents, deviceId, metaState, false, now, &currentMetaState);

Completed in 1082 milliseconds

12