Searched refs:now (Results 76 - 100 of 171) sorted by relevance

1234567

/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
H A DDemoModeController.java97 final long now = SystemClock.uptimeMillis();
98 if (now - mLastDownTime < 200) {
101 mLastDownTime = now;
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawableContainer.java53 * The initial setting for dither is now true, since it almost always seems
422 final long now = SystemClock.uptimeMillis();
435 mExitAnimationEnd = now + mDrawableContainerState.mExitFadeDuration;
451 mEnterAnimationEnd = now + mDrawableContainerState.mEnterFadeDuration;
522 final long now = SystemClock.uptimeMillis();
526 if (mEnterAnimationEnd <= now) {
530 int animAlpha = (int)((mEnterAnimationEnd-now)*255)
542 if (mExitAnimationEnd <= now) {
548 int animAlpha = (int)((mExitAnimationEnd-now)*255)
560 scheduleSelf(mAnimationRunnable, now
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DProcessRecord.java182 final long now = SystemClock.uptimeMillis();
243 TimeUtils.formatDuration(lastActivityTime, now, pw);
245 TimeUtils.formatDuration(lastPssTime, now, pw);
247 TimeUtils.formatDuration(nextPssTime, now, pw);
277 TimeUtils.formatDuration(lastStateTime, now, pw);
316 TimeUtils.formatDuration(lastRequestedGc, now, pw);
318 TimeUtils.formatDuration(lastLowMemory, now, pw);
654 long now = SystemClock.uptimeMillis();
656 tracker.getMemFactorLocked(), now, pkgList);
H A DTaskPersister.java268 if (DEBUG_PERSISTER) Slog.d(TAG, "saveImage: filename=" + filename + " now=" +
583 final long now = System.currentTimeMillis();
585 if (noMoreTasks || now < mExpiredTasksCleanupTime) {
593 long earliestNonExpiredMtime = now;
608 if ((taskLastModified + MAX_INSTALL_WAIT_TIME) > now) {
991 // from now.
995 long now = SystemClock.uptimeMillis();
996 if (DEBUG_PERSISTER) Slog.d(TAG, "LazyTaskWriter: now=" + now
999 while (now < mNextWriteTim
[all...]
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.c103 time_t now = time(NULL); local
115 strftime(date, sizeof(date), "%Y-%m-%d %H:%M:%S", localtime(&now));
539 time_t now = time(NULL); local
540 strftime(date, sizeof(date), "-%Y-%m-%d-%H-%M-%S", localtime(&now));
571 /* rename the (now complete) .tmp file to its final location */
/frameworks/base/core/java/android/content/
H A DAsyncTaskLoader.java223 long now = SystemClock.uptimeMillis();
224 if (now < (mLastLoadCompleteTime+mUpdateThrottle)) {
242 if (DEBUG) Log.v(TAG, "Cancelled task is now canceled!");
/frameworks/base/core/java/android/net/
H A DNetworkStatsHistory.java389 for (long now = start; now < end; now += bucketDuration) {
391 final int index = Arrays.binarySearch(bucketStart, 0, bucketCount, now);
394 insertBucket(~index, now);
481 public Entry getValues(long start, long end, long now, Entry recycle) { argument
503 final boolean activeBucket = curStart < now && curEnd > now;
/frameworks/base/core/java/android/os/
H A DMessage.java483 String toString(long now) { argument
486 TimeUtils.formatDuration(when - now, b);
H A DStrictMode.java1263 // violation fired and now (after the violating code ran) due
1304 long now = SystemClock.uptimeMillis();
1305 mLastViolationTime.put(crashFingerprint, now);
1307 Long.MAX_VALUE : (now - lastViolationTime);
1477 long now = SystemClock.uptimeMillis();
1478 if (now - sLastInstanceCountCheckMillis > 30 * 1000) {
1479 sLastInstanceCountCheckMillis = now;
1624 final long now = SystemClock.uptimeMillis();
1630 timeSinceLastViolationMillis = now - lastViolationTime;
1633 sLastVmViolationTime.put(fingerprint, now);
[all...]
H A DRecoverySystem.java293 long now = System.currentTimeMillis();
296 now - lastPublishTime > PUBLISH_PROGRESS_INTERVAL_MS) {
298 lastPublishTime = now;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DDozeParameters.java185 public long getNextTime(long now, long notificationTime) { argument
188 if (time > now) return time;
/frameworks/base/services/core/java/com/android/server/
H A DNetworkTimeUpdateService.java213 * @param interval when to trigger the alarm, starting from now.
217 long now = SystemClock.elapsedRealtime();
218 long next = now + interval;
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
H A DNotificationTestList.java208 new Test("Bad Icon #1 (when=now)") {
218 new Test("Null Icon #1 (when=now)") {
238 new Test("Bad resource #1 (when=now)") {
266 long now = System.currentTimeMillis();
268 timeNotification(7, "24 hours from now", now+(1000*60*60*24));
269 timeNotification(6, "12:01:00 from now", now+(1000*60*60*12)+(60*1000));
270 timeNotification(5, "12 hours from now", now
[all...]
/frameworks/compile/mclinker/lib/Support/Unix/
H A DPathV3.inc46 // -> erase P+1 to now
198 // An iterator now is staying at the end of cache. (a temporal end)
/frameworks/compile/mclinker/lib/Support/Windows/
H A DPathV3.inc39 // -> erase P+1 to now
164 // An iterator now is staying at the end of cache. (a temporal end)
/frameworks/support/v4/java/android/support/v4/content/
H A DAsyncTaskLoader.java183 long now = SystemClock.uptimeMillis();
184 if (now < (mLastLoadCompleteTime+mUpdateThrottle)) {
202 if (DEBUG) Log.v(TAG, "Cancelled task is now canceled!");
/frameworks/volley/src/com/android/volley/toolbox/
H A DBasicNetwork.java205 long now = SystemClock.elapsedRealtime();
206 VolleyLog.v("HTTP ERROR(%s) %d ms to fetch %s", what, (now - start), url);
/frameworks/base/core/java/android/gesture/
H A DGestureOverlayView.java468 final long now = SystemClock.uptimeMillis();
469 final MotionEvent event = MotionEvent.obtain(now, now,
744 final long now = AnimationUtils.currentAnimationTimeMillis();
745 final long duration = now - mFadingStart;
/frameworks/base/core/java/android/view/
H A DSurfaceView.java767 * @deprecated setType is now ignored.
838 long now = SystemClock.uptimeMillis();
840 if (nextTime > now) {
842 Thread.sleep(nextTime-now);
845 now = SystemClock.uptimeMillis();
847 mLastLockTime = now;
/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerBaseTest.java727 long now = SystemClock.elapsedRealtime();
728 long end = now + poll;
731 while (now < end) {
733 Thread.sleep(end - now);
737 now = SystemClock.elapsedRealtime();
/frameworks/base/services/core/java/com/android/server/power/
H A DPowerManagerService.java143 // Hardcoded for now until we decide what the right policy should be.
473 final long now = SystemClock.uptimeMillis();
477 now, PowerManager.USER_ACTIVITY_EVENT_OTHER, 0, Process.SYSTEM_UID);
1217 final long now = SystemClock.uptimeMillis();
1225 updateUserActivitySummaryLocked(now, dirtyPhase1);
1285 final long now = SystemClock.uptimeMillis();
1288 wakeUpNoUpdateLocked(now, Process.SYSTEM_UID);
1291 now, PowerManager.USER_ACTIVITY_EVENT_OTHER, 0, Process.SYSTEM_UID);
1441 private void updateUserActivitySummaryLocked(long now, int dirty) { argument
1459 if (now < nextTimeou
[all...]
/frameworks/base/services/core/java/com/android/server/accounts/
H A DAccountManagerService.java488 // Account doesn't exist. Copy it now.
702 protected String toDebugString(long now) {
703 return super.toDebugString(now) + ", getAccountCredentialsForClone"
735 protected String toDebugString(long now) {
736 return super.toDebugString(now) + ", getAccountCredentialsForClone"
929 protected String toDebugString(long now) { argument
930 return super.toDebugString(now) + ", hasFeatures"
970 * now stale account name data.
1192 protected String toDebugString(long now) { argument
1193 return super.toDebugString(now)
2157 toDebugString(long now) argument
2512 toDebugString(long now) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiWatchdogStateMachine.java53 * We now monitor the quality of the last hop on WiFi using packet loss ratio as
801 long now = SystemClock.elapsedRealtime();
802 if (now - mCurrentBssid.mLastTimeSample < LINK_SAMPLING_INTERVAL_MS * 2) {
838 mCurrentBssid.mLastTimeSample = now;
1108 long now = SystemClock.elapsedRealtime();
1109 long lastGood = now - mLastTimeGood;
1110 long lastPoor = now - mLastTimePoor;
1134 mBssidAvoidTimeMax = now + avoidMax;
/frameworks/av/media/libmediaplayerservice/
H A DVideoFrameScheduler.cpp340 // For now, surface flinger only schedules frames on the primary display
388 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
389 if (now >= mVsyncRefreshAt) {
469 ATRACE_INT("FRAME_FLIP_IN(ms)", (renderTime - now) / 1000000);
/frameworks/base/core/java/android/provider/
H A DBrowser.java314 long now = System.currentTimeMillis();
326 values.put(History.DATE_LAST_VISITED, now);
343 values.put(History.DATE_LAST_VISITED, now);

Completed in 919 milliseconds

1234567