/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ActivityRecord.java | 180 final long now = SystemClock.uptimeMillis(); 266 else TimeUtils.formatDuration(lastLaunchTime, now, pw); 290 else TimeUtils.formatDuration(displayStartTime, now, pw); 293 else TimeUtils.formatDuration(startTime, now, pw); 301 else TimeUtils.formatDuration(lastVisibleTime, now, pw); 649 // The activity now gets access to the data associated with this Intent. 951 // hide any activities we now can, and let them stop when 955 // If this activity was already idle, then we now need to
|
/frameworks/native/services/inputflinger/ |
H A D | InputDispatcher.cpp | 91 static inline nsecs_t now() { function in namespace:android 246 nsecs_t currentTime = now(); 252 nsecs_t currentTime = now(); 1007 mInputTargetWaitTimeoutTime = now() + newTimeout; 1124 nsecs_t startTime = now(); 2113 nsecs_t currentTime = now(); 2178 nsecs_t currentTime = now(); 2551 nsecs_t endTime = now() + milliseconds_to_nanoseconds(timeoutMillis); 2671 nsecs_t remainingTimeout = endTime - now(); 2691 nsecs_t remainingTimeout = endTime - now(); [all...] |
H A D | InputReader.cpp | 274 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 275 timeoutMillis = toMillisecondTimeoutDelay(now, mNextTimeout); 290 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 291 if (now >= mNextTimeout) { 293 ALOGD("Timeout expired, latency=%0.3fms", (now - mNextTimeout) * 0.000001f); 296 timeoutExpiredLocked(now); 511 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 518 device->configure(now, &mConfig, changes); 541 bool InputReader::shouldDropVirtualKeyLocked(nsecs_t now, argument 543 if (now < mDisableVirtualKeysTimeou 806 shouldDropVirtualKey(nsecs_t now, InputDevice* device, int32_t keyCode, int32_t scanCode) argument 1963 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiStateMachine.java | 132 * Wi-Fi now supports three modes of operation: Client, SoftAp and p2p 606 /* We now have a valid IP configuration. */ 1379 long now = System.currentTimeMillis(); 1381 if (now > mBatchedScanMinPollTime) { 1516 final long now = SystemClock.elapsedRealtime(); 1565 tsf = now - Long.parseLong(splitData[n].substring(AGE.length())); 1657 long now = System.currentTimeMillis(); 1658 if (lastConnectAttempt != 0 && (now - lastConnectAttempt) < 10000) { 1660 sendMessageDelayed(dmsg, 11000 - (now - lastConnectAttempt)); 1690 long now [all...] |
H A D | WifiNative.java | 283 long now = SystemClock.elapsedRealtimeNanos(); 284 String ts = String.format("[%,d us] ", now/1000);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | UserManagerService.java | 1185 long now = System.currentTimeMillis(); 1186 userInfo.creationTime = (now > EPOCH_PLUS_30_YEARS) ? now : 0; 1324 // on next startup, in case the runtime stops now before stopping and 1823 long now = System.currentTimeMillis(); 1828 if (now > EPOCH_PLUS_30_YEARS) { 1829 user.lastLoggedInTime = now; 1875 long now = System.currentTimeMillis(); 1891 TimeUtils.formatDuration(now - user.creationTime, sb); 1900 TimeUtils.formatDuration(now [all...] |
/frameworks/base/media/java/android/media/ |
H A D | RemoteController.java | 269 final long now = SystemClock.elapsedRealtime(); 271 final long sinceThen = now - then; 342 Log.i(TAG, "No-op when sending key click, no receiver right now"); 954 // send "stopped" state, happened "now", playback position is 0, speed 0.0f
|
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkStatsCollection.java | 168 final long now = System.currentTimeMillis(); 181 historyEntry = value.getValues(start, end, now, historyEntry);
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | DirectoryFragment.java | 1063 Time now = new Time(); 1064 now.setToNow(); 1069 if (then.year != now.year) { 1071 } else if (then.yearDay != now.yearDay) {
|
/frameworks/base/keystore/tests/src/android/security/ |
H A D | KeyStoreTest.java | 658 long now = System.currentTimeMillis(); 661 long expectedAfter = now - SLOP_TIME_MILLIS; 662 long expectedBefore = now + SLOP_TIME_MILLIS;
|
H A D | AndroidKeyStoreTest.java | 1431 Date now = new Date(); 1434 Date expectedAfter = new Date(now.getTime() - SLOP_TIME_MILLIS); 1435 Date expectedBefore = new Date(now.getTime() + SLOP_TIME_MILLIS); 1451 Date now = new Date(); 1454 Date expectedAfter = new Date(now.getTime() - SLOP_TIME_MILLIS); 1455 Date expectedBefore = new Date(now.getTime() + SLOP_TIME_MILLIS); 1469 Date now = new Date(); 1473 Date expectedAfter = new Date(now.getTime() - SLOP_TIME_MILLIS); 1474 Date expectedBefore = new Date(now.getTime() + SLOP_TIME_MILLIS);
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | GlobalActions.java | 627 // only 3 items now, but may as well keep this flexible approach so it will 1152 final long now = SystemClock.uptimeMillis(); 1153 event = MotionEvent.obtain(now, now,
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | DropBoxManagerService.java | 221 long now = System.currentTimeMillis(); 222 if (now - lastTrim > 30 * 1000) { 224 lastTrim = now;
|
H A D | LocationManagerService.java | 1207 * has been deprecated as well. So this method now uses 2053 Location loc, Location lastLoc, UpdateRecord record, long now) { 2081 if (record.mRequest.getExpireAt() < now) { 2091 long now = SystemClock.elapsedRealtime(); 2188 if ((lastLoc == null) || shouldBroadcastSafe(notifyLocation, lastLoc, r, now)) { 2215 if (r.mRequest.getNumUpdates() <= 0 || r.mRequest.getExpireAt() < now) { 2052 shouldBroadcastSafe( Location loc, Location lastLoc, UpdateRecord record, long now) argument
|
/frameworks/base/services/core/java/com/android/server/job/ |
H A D | JobSchedulerService.java | 575 * Right now the policy is such: 736 // If we get this far we're good to go; all we need to do now is check 834 final long now = SystemClock.elapsedRealtime(); 869 pw.print((now - jsc.getExecutionStartTimeElapsed())/1000); 873 pw.println(timeout-now);
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | KeyboardView.java | 1192 final long now = me.getEventTime(); 1197 MotionEvent down = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 1207 MotionEvent up = MotionEvent.obtain(now, now, MotionEvent.ACTION_UP,
|
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlinger.cpp | 283 const nsecs_t now = systemTime(); local 284 const nsecs_t duration = now - mBootTime; 296 // formerly we would just kill the process, but we now ask it to exit so it 616 // FIXME for now we always return stats for the primary display 1150 const nsecs_t now = systemTime(); local 1151 mDebugInSwapBuffers = now; 1189 mLastSwapBufferTime = systemTime() - now; 1209 const nsecs_t now = systemTime(); local 1210 mDebugInTransaction = now; 1221 mLastTransactionTime = systemTime() - now; 2566 const nsecs_t now = systemTime(); local [all...] |
/frameworks/base/core/java/android/view/ |
H A D | ViewGroup.java | 1274 // Release the bookkeeping now that the drag lifecycle has ended 1302 // we're over now [for purposes of the eventual drag-recipient-changed 1736 final long now = SystemClock.uptimeMillis(); 1737 MotionEvent event = MotionEvent.obtain(now, now, 1758 final long now = SystemClock.uptimeMillis(); 1759 MotionEvent event = MotionEvent.obtain(now, now, 2216 final long now = SystemClock.uptimeMillis(); 2217 event = MotionEvent.obtain(now, no [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LockPatternUtils.java | 1274 final long now = SystemClock.elapsedRealtime(); 1275 if (deadline < now || deadline > (now + FAILED_ATTEMPT_TIMEOUT_MS)) {
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | Vpn.java | 1132 long now = SystemClock.elapsedRealtime(); 1134 mTimer = now; 1136 } else if (now - mTimer <= 60000) {
|
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | GpsLocationProvider.java | 871 long now = System.currentTimeMillis(); 877 + " system time offset: " + (time - now)); 1364 long now = SystemClock.elapsedRealtime(); 1365 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, now + mFixInterval, mWakeupIntent);
|
/frameworks/base/libs/common_time/ |
H A D | common_time_server.cpp | 274 // 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/core/java/com/android/server/display/ |
H A D | DisplayPowerController.java | 807 // finish. Then finish up now to prevent a jarring transition back 962 final long now = SystemClock.uptimeMillis(); 963 if (mPendingProximityDebounceTime <= now) {
|
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
H A D | TestService.java | 381 long now = SystemClock.uptimeMillis(); 382 if (now > (mStartTime+mMaxRunTime)) {
|
/frameworks/base/cmds/am/src/com/android/commands/am/ |
H A D | Am.java | 223 "am idle-maintenance: perform idle maintenance now.\n" + 1783 final long now = System.currentTimeMillis(); 1784 final long nDaysAgo = now - (days * 24 * 60 * 60 * 1000); 1788 UsageStatsManager.INTERVAL_BEST, nDaysAgo, now, "com.android.shell");
|