Searched refs:now (Results 101 - 125 of 171) sorted by relevance

1234567

/frameworks/base/core/tests/coretests/src/android/hardware/display/
H A DVirtualDisplayTest.java390 long now = SystemClock.uptimeMillis();
391 if (now >= timeoutTime) {
395 wait(timeoutTime - now);
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneData.java70 long now = System.currentTimeMillis();
73 mTimeMillis = now;
82 Log.i(TAG, "Time to load time zones (ms): " + (System.currentTimeMillis() - now));
84 // now = System.currentTimeMillis();
87 // (System.currentTimeMillis() - now));
/frameworks/av/media/libstagefright/
H A DMPEG4Writer.cpp333 void writeMdhdBox(uint32_t now);
337 void writeTkhdBox(uint32_t now);
887 // Construct moov box now
935 time_t now = time(NULL); local
939 uint32_t mpeg4Time = now + (66 * 365 + 17) * (24 * 60 * 60);
944 uint32_t now = getMpeg4Time(); local
947 writeInt32(now); // creation time
948 writeInt32(now); // modification time
1115 // the end of the file from now on, but not to the
2645 uint32_t now local
2859 writeTkhdBox(uint32_t now) argument
2928 writeMdhdBox(uint32_t now) argument
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DActiveServices.java219 final long now = SystemClock.uptimeMillis();
222 if (r.startingBgTimeout <= now) {
250 long when = next.startingBgTimeout > now ? next.startingBgTimeout : now;
918 // In case it didn't get removed above, do it now.
1117 long now = SystemClock.uptimeMillis();
1122 stracker.setExecuting(true, mAm.mProcessStats.getMemFactorLocked(), now);
1137 r.executingStart = now;
1177 final long now = SystemClock.uptimeMillis();
1219 if (now > (
[all...]
H A DBroadcastQueue.java404 // We will process the next receiver right now if this is finishing
633 long now = SystemClock.uptimeMillis();
635 (now > r.dispatchTime + (2*mTimeoutPeriod*numReceivers))) {
638 + " now=" + now
977 long now = SystemClock.uptimeMillis();
995 if (timeoutTime > now) {
1002 + mQueueName + "] @ " + now + ": resetting BROADCAST_TIMEOUT_MSG for "
1024 + ", started " + (now - r.receiverTime) + "ms ago");
1025 r.receiverTime = now;
[all...]
H A DActivityManagerService.java1054 * memory management, so that the now smaller process list will not be taken as
2127 final long now = SystemClock.uptimeMillis();
2128 long nextCpuDelay = (mLastCpuTime.get()+MONITOR_CPU_MAX_TIME)-now;
2129 long nextWriteDelay = (mLastWriteTime+BATTERY_STATS_TIME)-now;
2220 final long now = SystemClock.uptimeMillis();
2221 if (mLastCpuTime.get() >= now - MONITOR_CPU_MIN_TIME) {
2234 final long now = SystemClock.uptimeMillis();
2238 mLastCpuTime.get() < (now-MONITOR_CPU_MIN_TIME)) {
2239 mLastCpuTime.set(now);
2315 if (mLastWriteTime < (now
2439 updateLruProcessInternalLocked(ProcessRecord app, long now, int index, String what, Object obj, ProcessRecord srcApp) argument
10918 getLowRamTimeSinceIdle(long now) argument
16936 computeOomAdjLocked(ProcessRecord app, int cachedAdj, ProcessRecord TOP_APP, boolean doingAll, long now) argument
17575 recordPssSample(ProcessRecord proc, int procState, long pss, long uss, long now) argument
17608 requestPssAllProcsLocked(long now, boolean always, boolean memLowered) argument
17867 applyOomAdjLocked(ProcessRecord app, ProcessRecord TOP_APP, boolean doingAll, long now) argument
18047 setProcessTrackerStateLocked(ProcessRecord proc, int memFactor, long now) argument
18059 updateOomAdjLocked(ProcessRecord app, int cachedAdj, ProcessRecord TOP_APP, boolean doingAll, long now) argument
[all...]
/frameworks/av/cmds/screenrecord/
H A DOverlay.cpp365 time_t now = time(0); local
367 localtime_r(&now, &tm);
/frameworks/base/core/java/android/net/http/
H A DConnection.java213 the net is down. Punt for now.
350 long now = SystemClock.uptimeMillis();
400 (now2 - now) + " " + mHost);
/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/com/android/server/
H A DBootReceiver.java132 String now = Long.toString(System.currentTimeMillis());
133 SystemProperties.set("ro.runtime.firstboot", now);
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DCropView.java254 long now = System.currentTimeMillis();
258 now < mTouchDownTime + ViewConfiguration.getTapTimeout()) {
/frameworks/base/services/core/java/com/android/server/location/
H A DGeofenceManager.java224 long now = SystemClock.elapsedRealtimeNanos();
225 if (now - location.getElapsedRealtimeNanos() > MAX_AGE_NANOS) {
/frameworks/base/core/java/android/widget/
H A DListPopupWindow.java1261 final long now = SystemClock.uptimeMillis();
1262 final MotionEvent e = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL,
1402 final long now = SystemClock.uptimeMillis();
1403 final MotionEvent e = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL, 0, 0, 0);
1499 * and get new results; you are now in touch mode
/frameworks/base/core/java/com/android/internal/os/
H A DProcessCpuTracker.java714 final public String printCurrentState(long now) { argument
721 if (now > mLastSampleTime) {
722 pw.print(now-mLastSampleTime);
724 pw.print(now-mCurrentSampleTime);
727 pw.print(mLastSampleTime-now);
729 pw.print(mCurrentSampleTime-now);
H A DZygoteConnection.java112 long now = SystemClock.elapsedRealtime();
113 if ((now-startTime) > 1000) {
115 Slog.w(TAG, "Slow operation: " + (now-startTime) + "ms so far, now at " + where);
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DGlobalScreenshot.java115 // for now, we just add and remove a space from the ticker text to trigger the animation when
159 final long now = System.currentTimeMillis();
167 .setWhen(now)
181 .setWhen(now)
303 final long now = System.currentTimeMillis();
309 .setWhen(now)
319 .setWhen(now)
561 // Save the screenshot once we have a bit of time now
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DListPopupWindow.java1285 final long now = SystemClock.uptimeMillis();
1286 final MotionEvent e = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL,
1402 final long now = SystemClock.uptimeMillis();
1403 final MotionEvent e = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL, 0, 0, 0);
1507 * and get new results; you are now in touch mode
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposer.cpp453 nsecs_t now = systemTime(CLOCK_MONOTONIC); local
455 return now - ((now - mLastHwVSync[disp]) %
1242 const nsecs_t now = systemTime(CLOCK_MONOTONIC);
1244 nsecs_t sleep = next_vsync - now;
1247 sleep = (period - ((now - next_vsync) % period));
1248 next_vsync = now + sleep;
/frameworks/native/services/inputflinger/
H A DEventHub.cpp711 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
730 event->when = now;
752 event->when = now;
764 event->when = now;
875 ALOGV("event time %" PRId64 ", now %" PRId64, event->when, now);
892 if (event->when >= now + 10 * 1000000000LL) {
902 device->path.string(), event->when, time, now);
909 event->when, time, now);
913 event->when = now;
[all...]
/frameworks/native/libs/input/
H A DKeyCharacterMap.cpp300 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
314 addMetaKeys(outEvents, deviceId, metaState, true, now, &currentMetaState);
315 addKey(outEvents, deviceId, keyCode, currentMetaState, true, now);
316 addKey(outEvents, deviceId, keyCode, currentMetaState, false, now);
317 addMetaKeys(outEvents, deviceId, metaState, false, now, &currentMetaState);
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DSurfaceTextureRenderer.java560 Time now = new Time();
561 now.setToNow();
562 path.append(now.format2445());
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
H A DDozeService.java386 final long now = System.currentTimeMillis();
387 final long time = schedule.getNextTime(now, mNotificationPulseTime);
392 final long delta = time - now;
443 // noop for now
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DZenModePanel.java429 final long now = System.currentTimeMillis();
430 final long span = time - now;
433 time, Math.round(span / (float) MINUTES_MS), now, ActivityManager.getCurrentUser());
713 final long now = System.currentTimeMillis();
717 final long bucketTime = now + bucketMinutes * MINUTES_MS;
721 bucketTime, bucketMinutes, now, ActivityManager.getCurrentUser());
/frameworks/base/core/java/android/provider/
H A DCalendarContract.java2327 // and should have fired by now and are not too old.
2328 long now = System.currentTimeMillis();
2329 long ancient = now - DateUtils.DAY_IN_MILLIS;
2338 Long.toString(now), Long.toString(ancient), Long.toString(now)
/frameworks/base/core/java/android/service/notification/
H A DZenModeConfig.java480 final long now = System.currentTimeMillis();
482 return toTimeCondition(context, now + millis, minutesFromNow, now, userHandle);
485 public static Condition toTimeCondition(Context context, long time, int minutes, long now, argument

Completed in 827 milliseconds

1234567