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

123

/frameworks/av/services/mediaresourcemanager/
H A DServiceLog.cpp35 time_t now = time(0); local
37 strftime(buf, sizeof(buf), "%m-%d %T", localtime(&now));
/frameworks/base/libs/hwui/renderthread/
H A DTimeLord.cpp37 nsecs_t now = systemTime(CLOCK_MONOTONIC); local
38 nsecs_t jitterNanos = now - mFrameTimeNanos;
41 mFrameTimeNanos = now - lastFrameOffset;
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
H A DMidiBtleTimeTracker.java40 public MidiBtleTimeTracker(long now) { argument
42 mBaseHostTimeNanos = now;
43 mPreviousNow = now;
49 * @param now
53 public long convertTimestampToNanotime(int timestamp, long now) { argument
63 if ((now - mPreviousNow) > (RANGE_NANOS / 2)) {
65 long minimumTimeNanos = (now - mBaseHostTimeNanos)
78 if (timestampHostNanos > now) {
80 mBaseHostTimeNanos = now;
81 timestampHostNanos = now;
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/
H A DZoneGetter.java56 public static String getTimeZoneOffsetAndName(TimeZone tz, Date now) { argument
58 String gmtString = getGmtOffsetString(locale, tz, now);
59 String zoneNameString = getZoneLongName(locale, tz, now);
70 final Date now = new Date();
103 String zoneLongName = getZoneLongName(locale, tz, now);
120 String displayName = getZoneDisplayName(locale, tz, now, preferLongName);
122 String gmtOffsetString = getGmtOffsetString(locale, tz, now);
123 int offsetMillis = tz.getOffset(now.getTime());
146 private static String getZoneDisplayName(Locale locale, TimeZone tz, Date now, argument
150 zoneNameString = getZoneLongName(locale, tz, now);
196 getZoneLongName(Locale locale, TimeZone tz, Date now) argument
202 getGmtOffsetString(Locale locale, TimeZone tz, Date now) argument
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DSystemConditionProviderService.java50 protected static void dumpUpcomingTime(PrintWriter pw, String var, long time, long now) { argument
53 pw.printf("%s, in %s, now=%s", ts(time), formatDuration(time - now), ts(now));
H A DScheduleCalendar.java59 public long getNextChangeTime(long now) { argument
61 final long nextStart = getNextTime(now, mSchedule.startHour, mSchedule.startMinute);
62 final long nextEnd = getNextTime(now, mSchedule.endHour, mSchedule.endMinute);
66 private long getNextTime(long now, int hr, int min) { argument
67 final long time = getTime(now, hr, min);
68 return time <= now ? addDays(time, 1) : time;
H A DEventConditionProvider.java201 final long now = System.currentTimeMillis();
218 final CheckEventResult r = tracker.checkEvent(event, now);
235 result = tracker.checkEvent(event, now);
246 rescheduleAlarm(now, reevaluateAt);
247 if (DEBUG) Slog.d(TAG, "evaluateSubscriptions took " + (System.currentTimeMillis() - now));
250 private void rescheduleAlarm(long now, long time) { argument
260 if (time == 0 || time < now) {
265 if (DEBUG) Slog.d(TAG, String.format("Scheduling evaluate for %s, in %s, now=%s",
266 ts(time), formatDuration(time - now), ts(now)));
[all...]
H A DScheduleConditionProvider.java82 final long now = System.currentTimeMillis();
85 pw.print(meetsSchedule(conditionId, now) ? "* " : " ");
88 dumpUpcomingTime(pw, "mNextAlarmTime", mNextAlarmTime, now);
145 final long now = System.currentTimeMillis();
149 if (cal != null && cal.isInSchedule(now)) {
155 final long nextChangeTime = cal.getNextChangeTime(now);
156 if (nextChangeTime > 0 && nextChangeTime > now) {
163 updateAlarm(now, mNextAlarmTime);
166 private void updateAlarm(long now, long time) { argument
175 if (time > now) {
[all...]
H A DNotificationRecord.java298 * @param now this current time in milliseconds.
301 public int getFreshnessMs(long now) { argument
302 return (int) (now - mUpdateTimeMs);
306 * @param now this current time in milliseconds.
309 public int getLifespanMs(long now) { argument
310 return (int) (now - mCreationTimeMs);
314 * @param now this current time in milliseconds.
317 public int getExposureMs(long now) { argument
318 return mVisibleSinceMs == 0 ? 0 : (int) (now - mVisibleSinceMs);
325 final long now
[all...]
/frameworks/native/opengl/tests/fillrate/
H A Dfillrate.cpp145 nsecs_t now = systemTime(); local
150 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/av/media/libstagefright/
H A DFrameRenderTracker.cpp97 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
98 if (systemNano > now) {
H A DVideoFrameScheduler.cpp344 // For now, surface flinger only schedules frames on the primary display
400 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
401 if (now >= mVsyncRefreshAt) {
481 ATRACE_INT("FRAME_FLIP_IN(ms)", (renderTime - now) / 1000000);
/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/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/av/cmds/screenrecord/
H A DOverlay.cpp365 time_t now = time(0); local
367 localtime_r(&now, &tm);
/frameworks/base/core/java/android/os/
H A DMessage.java483 String toString(long now) { argument
486 TimeUtils.formatDuration(when - now, b);
/frameworks/base/core/java/android/util/
H A DTimeUtils.java410 public static void formatDuration(long time, long now, PrintWriter pw) { argument
415 formatDuration(time-now, pw, 0);
427 return time + " (now)";
/frameworks/base/core/java/android/widget/
H A DChronometer.java229 private synchronized void updateText(long now) { argument
230 mNow = now;
231 long seconds = now - mBase;
/frameworks/base/libs/common_time/
H A Dclock_recovery.cpp195 // now.
338 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/base/libs/hwui/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);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DDozeParameters.java177 public long getNextTime(long now, long notificationTime) { argument
180 if (time > now) return time;
/frameworks/native/opengl/libs/EGL/
H A Degl.cpp377 nsecs_t now = systemTime(); local
379 if ((now - sLogPrintTime) > NSECS_DURATION) {
380 sLogPrintTime = now;
/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/cmds/bootanimation/
H A DBootAnimation.cpp180 // Release it now as the texture is already loaded and the memory used for
358 nsecs_t now = systemTime(); local
359 double time = now - startTime;
382 const nsecs_t sleepTime = 83333 - ns2us(systemTime() - now);
634 nsecs_t now = systemTime(); local
635 nsecs_t delay = frameDuration - (now - lastFrame);
636 //ALOGD("%lld, %lld", ns2ms(now - lastFrame), ns2ms(delay));
637 lastFrame = now;
641 spec.tv_sec = (now + delay) / 1000000000;
642 spec.tv_nsec = (now
[all...]

Completed in 620 milliseconds

123