Searched defs:now (Results 1 - 25 of 42) 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.java435 String toString(long now) { argument
442 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/base/voip/java/com/android/server/sip/
H A DSipWakeupTimer.java127 long now = SystemClock.elapsedRealtime();
129 event.mTriggerTime = now + event.mPeriod;
138 interval -= (int) (firstEvent.mTriggerTime - now);
143 long triggerTime = now + event.mPeriod;
165 long now = SystemClock.elapsedRealtime();
166 MyEvent event = new MyEvent(period, callback, now);
177 + showTime(triggerTime) + " at " + showTime(now)
305 MyEvent(int period, Runnable callback, long now) { argument
308 mLastTriggerTime = 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));
423 time_t now = time(NULL); local
424 strftime(date, sizeof(date), "-%Y-%m-%d-%H-%M-%S", localtime(&now));
465 /* rename the (now complete) .tmp file to its final location */
/frameworks/native/libs/utils/
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);
H A DLooper.cpp200 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
201 int messageTimeoutMillis = toMillisecondTimeoutDelay(now, mNextMessageUptime);
208 this, mNextMessageUptime - now, timeoutMillis);
276 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
278 if (messageEnvelope.uptime <= now) {
351 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
352 timeoutMillis = toMillisecondTimeoutDelay(now, endTime);
482 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
483 sendMessageAtTime(now, handler, message);
488 nsecs_t now local
[all...]
/frameworks/native/libs/utils/tests/
H A DLooper_test.cpp561 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
563 mLooper->sendMessageAtTime(now + ms2ns(100), handler, Message(MSG_TEST1));
598 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
600 mLooper->sendMessageAtTime(now - ms2ns(1000), handler, Message(MSG_TEST1));
617 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
619 mLooper->sendMessageAtTime(now, handler, Message(MSG_TEST1));
/frameworks/av/media/libstagefright/wifi-display/sink/
H A DWifiDisplaySink.cpp175 // The control connection is dead now.
186 ALOGI("We're now connected.");
628 time_t now = time(NULL); local
629 struct tm *now2 = gmtime(&now);
/frameworks/base/services/java/com/android/server/am/
H A DServiceRecord.java161 void dumpStartList(PrintWriter pw, String prefix, List<StartItem> list, long now) { argument
167 if (now != 0) {
169 TimeUtils.formatDuration(si.deliveredTime, now, pw);
207 long now = SystemClock.uptimeMillis();
226 TimeUtils.formatDuration(lastActivity, now, pw);
229 TimeUtils.formatDuration(executingStart, now, pw);
231 TimeUtils.formatDuration(restartTime, now, pw);
244 TimeUtils.formatDuration(restartDelay, now, pw);
246 TimeUtils.formatDuration(nextRestartTime, now, pw);
251 dumpStartList(pw, prefix, deliveredStarts, now);
[all...]
/frameworks/av/media/libstagefright/wifi-display/source/
H A DWifiDisplaySource.cpp222 ALOGI("We now have a client (%d) connected.", sessionID);
1170 response.append("Range: npt=now-\r\n");
1341 time_t now = time(NULL); local
1342 struct tm *now2 = gmtime(&now);
/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/view/
H A DChoreographer.java103 // Enable/disable using the frame time instead of returning now.
311 final long now = SystemClock.uptimeMillis();
312 final long dueTime = now + delayMillis;
315 if (dueTime <= now) {
316 scheduleFrameLocked(now);
460 private void scheduleFrameLocked(long now) { argument
480 mLastFrameTimeNanos / NANOS_PER_MS + sFrameDelay, now);
482 Log.d(TAG, "Scheduling next frame in " + (nextFrameTime - now) + " ms.");
545 // We use "now" to determine when callbacks become due because it's possible
548 final long now
757 hasDueCallbacksLocked(long now) argument
761 extractDueCallbacksLocked(long now) argument
[all...]
H A DWindowOrientationListener.java395 final long now = event.timestamp;
397 final float timeDeltaMS = (now - then) * 0.000001f;
399 if (now < then
400 || now > then + MAX_FILTER_DELTA_TIME_NANOS
419 mLastFilteredTimestampNanos = now;
439 mAccelerationTimestampNanos = now;
450 addTiltHistoryEntry(now, tiltAngle);
453 if (isFlat(now)) {
455 mFlatTimestampNanos = now;
457 if (isSwinging(now, tiltAngl
613 isPredictedRotationAcceptable(long now) argument
655 updatePredictedRotation(long now, int rotation) argument
672 addTiltHistoryEntry(long now, float tilt) argument
679 isFlat(long now) argument
692 isSwinging(long now, float tilt) argument
710 remainingMS(long now, long until) argument
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DScreenRotationAnimation.java681 private boolean stepAnimation(long now) { argument
682 if (now > mHalfwayPoint) {
686 if (DEBUG_STATE) Slog.v(TAG, "Step: finish anim now ready");
687 mFinishAnimStartTime = now;
693 mMoreStartExit = mStartExitAnimation.getTransformation(now, mStartExitTransformation);
699 mMoreStartEnter = mStartEnterAnimation.getTransformation(now, mStartEnterTransformation);
706 mMoreStartFrame = mStartFrameAnimation.getTransformation(now, mStartFrameTransformation);
711 long finishNow = mFinishAnimReady ? (now - mFinishAnimStartTime) : 0;
737 mMoreRotateExit = mRotateExitAnimation.getTransformation(now, mRotateExitTransformation);
743 mMoreRotateEnter = mRotateEnterAnimation.getTransformation(now, mRotateEnterTransformatio
903 stepAnimationLocked(long now) argument
[all...]
/frameworks/base/core/java/android/text/format/
H A DDateUtils.java345 * Returns a string describing 'time' as a time relative to 'now'.
351 * @param now the current time in milliseconds
356 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution) { argument
358 return getRelativeTimeSpanString(time, now, minResolution, flags);
362 * Returns a string describing 'time' as a time relative to 'now'.
371 * @param now the current time in milliseconds
381 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution, argument
386 boolean past = (now >= time);
387 long duration = Math.abs(now - time);
437 count = getNumberOfDaysPassed(time, now);
726 formatSameDayTime(long then, long now, int dateStyle, int timeStyle) argument
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DProcessStats.java684 final public String printCurrentState(long now) { argument
691 if (now > mLastSampleTime) {
692 pw.print(now-mLastSampleTime);
694 pw.print(now-mCurrentSampleTime);
697 pw.print(mLastSampleTime-now);
699 pw.print(mCurrentSampleTime-now);
/frameworks/base/libs/androidfw/
H A DKeyCharacterMap.cpp298 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
312 addMetaKeys(outEvents, deviceId, metaState, true, now, &currentMetaState);
313 addKey(outEvents, deviceId, keyCode, currentMetaState, true, now);
314 addKey(outEvents, deviceId, keyCode, currentMetaState, false, now);
315 addMetaKeys(outEvents, deviceId, metaState, false, now, &currentMetaState);

Completed in 2696 milliseconds

12