Searched refs:now (Results 26 - 50 of 210) sorted by relevance

123456789

/frameworks/base/services/core/java/com/android/server/notification/
H A DScheduleConditionProvider.java85 final long now = System.currentTimeMillis();
88 pw.print(meetsSchedule(mSubscriptions.get(conditionId), now) ? "* " : " ");
93 dumpUpcomingTime(pw, "mNextAlarmTime", mNextAlarmTime, now);
147 final long now = System.currentTimeMillis();
152 if (cal != null && cal.isInSchedule(now)) {
154 cal.maybeSetNextAlarm(now, nextUserAlarmTime);
158 cal.maybeSetNextAlarm(now, nextUserAlarmTime);
162 final long nextChangeTime = cal.getNextChangeTime(now);
163 if (nextChangeTime > 0 && nextChangeTime > now) {
170 updateAlarm(now, mNextAlarmTim
173 updateAlarm(long now, long time) argument
[all...]
H A DNotificationRecord.java441 * @param now this current time in milliseconds.
444 public int getFreshnessMs(long now) { argument
445 return (int) (now - mUpdateTimeMs);
449 * @param now this current time in milliseconds.
452 public int getLifespanMs(long now) { argument
453 return (int) (now - mCreationTimeMs);
457 * @param now this current time in milliseconds.
460 public int getExposureMs(long now) { argument
461 return mVisibleSinceMs == 0 ? 0 : (int) (now - mVisibleSinceMs);
468 final long now
[all...]
H A DEventConditionProvider.java208 final long now = System.currentTimeMillis();
228 final CheckEventResult r = tracker.checkEvent(event, now);
245 result = tracker.checkEvent(event, now);
257 rescheduleAlarm(now, reevaluateAt);
264 if (DEBUG) Slog.d(TAG, "evaluateSubscriptions took " + (System.currentTimeMillis() - now));
267 private void rescheduleAlarm(long now, long time) { argument
277 if (time == 0 || time < now) {
282 if (DEBUG) Slog.d(TAG, String.format("Scheduling evaluate for %s, in %s, now=%s",
283 ts(time), formatDuration(time - now), ts(now)));
[all...]
/frameworks/base/core/java/com/android/internal/app/procstats/
H A DProcessState.java178 * marked as started running at 'now'.
181 long now) {
189 mStartTime = now;
194 public ProcessState clone(long now) { argument
195 ProcessState pnew = new ProcessState(this, mPackage, mUid, mVersion, mName, now);
260 public void resetSafely(long now) { argument
263 mStartTime = now;
284 public void writeToParcel(Parcel out, long now) { argument
353 * @param now Current time.
356 public void setState(int state, int memFactor, long now, argument
180 ProcessState(ProcessState commonProcess, String pkg, int uid, int vers, String name, long now) argument
380 setState(int state, long now) argument
389 commitStateTime(long now) argument
430 incStartedServices(int memFactor, long now, String serviceName) argument
446 decStartedServices(int memFactor, long now, String serviceName) argument
617 getDuration(int state, long now) argument
659 aggregatePss(TotalMemoryUseCollection data, long now) argument
741 computeProcessTimeLocked(int[] screenStates, int[] memStates, int[] procStates, long now) argument
757 dumpSummary(PrintWriter pw, String prefix, int[] screenStates, int[] memStates, int[] procStates, long now, long totalTime) argument
797 dumpProcessState(PrintWriter pw, String prefix, int[] screenStates, int[] memStates, int[] procStates, long now) argument
914 dumpProcessSummaryDetails(PrintWriter pw, String prefix, String label, int[] screenStates, int[] memStates, int[] procStates, long now, long totalTime, boolean full) argument
965 computeProcessData(ProcessStats.ProcessDataCollection data, long now) argument
1015 dumpCsv(PrintWriter pw, boolean sepScreenStates, int[] screenStates, boolean sepMemStates, int[] memStates, boolean sepProcStates, int[] procStates, long now) argument
1050 dumpPackageProcCheckin(PrintWriter pw, String pkgName, int uid, int vers, String itemName, long now) argument
1099 dumpProcCheckin(PrintWriter pw, String procName, int uid, long now) argument
1137 dumpAllStateCheckin(PrintWriter pw, long now) argument
[all...]
H A DDumpUtils.java200 int curState, long curStartTime, long now) {
210 time += now - curStartTime;
240 int curState, long curStartTime, long now) {
246 time += now - curStartTime;
291 int[] screenStates, int[] memStates, int[] procStates, long now) {
303 proc.dumpProcessState(pw, innerPrefix, screenStates, memStates, procStates, now);
313 long now, long totalTime) {
316 proc.dumpSummary(pw, prefix, screenStates, memStates, procStates, now, totalTime);
322 boolean sepProcStates, int[] procStates, long now) {
340 memStates, sepProcStates, procStates, now);
199 dumpSingleTime(PrintWriter pw, String prefix, long[] durations, int curState, long curStartTime, long now) argument
239 dumpAdjTimesCheckin(PrintWriter pw, String sep, long[] durations, int curState, long curStartTime, long now) argument
311 dumpProcessSummaryLocked(PrintWriter pw, String prefix, ArrayList<ProcessState> procs, int[] screenStates, int[] memStates, int[] procStates, long now, long totalTime) argument
320 dumpProcessListCsv(PrintWriter pw, ArrayList<ProcessState> procs, boolean sepScreenStates, int[] screenStates, boolean sepMemStates, int[] memStates, boolean sepProcStates, int[] procStates, long now) argument
[all...]
/frameworks/base/core/java/android/net/
H A DNetworkPolicyManager.java256 final Time now = new Time(policy.cycleTimezone);
257 now.set(currentTime);
260 final Time cycle = new Time(now);
264 if (Time.compare(cycle, now) >= 0) {
265 // cycle boundary is beyond now, use last cycle boundary; start by
267 final Time lastMonth = new Time(now);
286 final Time now = new Time(policy.cycleTimezone);
287 now.set(currentTime);
290 final Time cycle = new Time(now);
294 if (Time.compare(cycle, now) <
[all...]
/frameworks/base/core/java/android/widget/
H A DForwardingListener.java93 final long now = SystemClock.uptimeMillis();
94 final MotionEvent e = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL,
233 final long now = SystemClock.uptimeMillis();
234 final MotionEvent e = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL, 0, 0, 0);
H A DDigitalClock.java86 long now = SystemClock.uptimeMillis();
87 long next = now + (1000 - now % 1000);
/frameworks/base/core/java/android/view/
H A DChoreographer.java112 // Enable/disable using the frame time instead of returning now.
382 final long now = SystemClock.uptimeMillis();
383 final long dueTime = now + delayMillis;
386 if (dueTime <= now) {
387 scheduleFrameLocked(now);
531 private void scheduleFrameLocked(long now) { argument
551 mLastFrameTimeNanos / TimeUtils.NANOS_PER_MS + sFrameDelay, now);
553 Log.d(TAG, "Scheduling next frame in " + (nextFrameTime - now) + " ms.");
637 // We use "now" to determine when callbacks become due because it's possible
640 final long now
879 hasDueCallbacksLocked(long now) argument
883 extractDueCallbacksLocked(long now) argument
[all...]
/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/core/tests/coretests/src/android/os/
H A DMessageQueueTest.java71 long now = SystemClock.uptimeMillis() + 200;
74 mHandler.sendMessageAtTime(mHandler.obtainMessage(2), now + 1);
75 mHandler.sendMessageAtTime(mHandler.obtainMessage(3), now + 2);
76 mHandler.sendMessageAtTime(mHandler.obtainMessage(4), now + 2);
77 mHandler.sendMessageAtTime(mHandler.obtainMessage(0), now + 0);
78 mHandler.sendMessageAtTime(mHandler.obtainMessage(1), now + 0);
90 long now = SystemClock.uptimeMillis() + 200;
93 mHandler.sendMessageAtTime(mHandler.obtainMessage(3), now);
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
H A DBluetoothPacketDecoder.java99 long now = System.nanoTime();
100 nanoTimestamp = mTimeTracker.convertTimestampToNanotime(currentTimestamp, now);
/frameworks/base/core/java/com/android/internal/view/
H A DBaseSurfaceHolder.java199 long now = SystemClock.uptimeMillis();
201 if (nextTime > now) {
203 Thread.sleep(nextTime-now);
206 now = SystemClock.uptimeMillis();
208 mLastLockTime = now;
/frameworks/native/services/surfaceflinger/
H A DDispSync.cpp99 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
129 targetTime = computeNextEventTimeLocked(now);
133 if (now < targetTime) {
142 err = mCond.waitRelative(mMutex, targetTime - now);
154 now = systemTime(SYSTEM_TIME_MONOTONIC);
161 (now - targetTime)) / 64;
164 ATRACE_INT64("DispSync:WakeupLat", now - targetTime);
169 callbackInvocations = gatherCallbackInvocationsLocked(now);
244 nsecs_t computeNextEventTimeLocked(nsecs_t now) { argument
250 now);
261 gatherCallbackInvocationsLocked(nsecs_t now) argument
632 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
667 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local
[all...]
/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/packages/DocumentsUI/src/com/android/documentsui/
H A DShared.java131 Time now = new Time();
132 now.setToNow();
137 if (then.year != now.year) {
139 } else if (then.yearDay != now.yearDay) {
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
H A DRecentLocationApps.java70 final long now = System.currentTimeMillis();
86 Request request = getRequestFromOps(now, ops);
102 private Request getRequestFromOps(long now, argument
109 long recentLocationCutoffTime = now - RECENT_TIME_INTERVAL_MILLIS;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DANQPData.java139 long now = mClock.currentTimeMillis();
140 sb.append(Utils.toHMS(now-mCtime)).append(" old, expires in ").
141 append(Utils.toHMS(mExpiry-now)).append(' ');
143 sb.append(expired(now) ? 'x' : '-');
/frameworks/base/services/core/java/com/android/server/am/
H A DProcessStatsService.java128 public boolean setMemFactorLocked(int memFactor, boolean screenOn, long now) { argument
137 += now - mProcessStats.mStartTime;
140 mProcessStats.mStartTime = now;
152 service.setMemFactor(memFactor, now);
171 public boolean shouldWriteNowLocked(long now) { argument
172 if (now > (mLastWriteTime+WRITE_PERIOD)) {
210 long now = SystemClock.uptimeMillis();
214 mProcessStats.mTimePeriodEndUptime = now;
227 Slog.i(TAG, "Prepared write state in " + (SystemClock.uptimeMillis()-now) + "ms");
379 boolean sepProcStates, int[] procStates, long now, Strin
377 dumpFilteredProcessesCsvLocked(PrintWriter pw, String header, boolean sepScreenStates, int[] screenStates, boolean sepMemStates, int[] memStates, boolean sepProcStates, int[] procStates, long now, String reqPackage) argument
544 dumpAggregatedStats(PrintWriter pw, long aggregateHours, long now, String reqPackage, boolean isCompact, boolean dumpDetails, boolean dumpFullDetails, boolean dumpAll, boolean activeOnly) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DBarTransitions.java216 long now = SystemClock.elapsedRealtime();
217 mStartTime = now;
218 mEndTime = now + BACKGROUND_DURATION;
256 final long now = SystemClock.elapsedRealtime();
257 if (now >= mEndTime) {
262 final float t = (now - mStartTime) / (float)(mEndTime - mStartTime);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DForwardingListener.java94 final long now = SystemClock.uptimeMillis();
95 final MotionEvent e = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL,
220 final long now = SystemClock.uptimeMillis();
221 final MotionEvent e = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL, 0, 0, 0);
/frameworks/base/services/core/java/com/android/server/twilight/
H A DTwilightService.java486 final long now = System.currentTimeMillis();
489 mTwilightCalculator.calculateTwilight(now,
496 mTwilightCalculator.calculateTwilight(now + DateUtils.DAY_IN_MILLIS,
504 } else if (now > todaySunset) {
505 amount = Math.min(1, (now - todaySunset) / (float) TWILIGHT_ADJUSTMENT_TIME);
508 - (todaySunrise - now) / (float) TWILIGHT_ADJUSTMENT_TIME);
522 nextUpdate = now + 12 * DateUtils.HOUR_IN_MILLIS;
528 if (now > todaySunset) {
530 } else if (now > todaySunrise) {
537 // Leave at 10 min for now (on
[all...]
/frameworks/base/core/java/android/text/format/
H A DDateUtils.java258 * Returns a string describing 'time' as a time relative to 'now'.
264 * @param now the current time in milliseconds
269 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution) { argument
271 return getRelativeTimeSpanString(time, now, minResolution, flags);
275 * Returns a string describing 'time' as a time relative to 'now'.
284 * @param now the current time in milliseconds
294 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution, argument
297 TimeZone.getDefault(), time, now, minResolution, flags);
428 * Format a date / time such that if the then is on the same day as now, it shows
440 * @param now th
444 formatSameDayTime(long then, long now, int dateStyle, int timeStyle) argument
[all...]
/frameworks/base/cmds/media/src/com/android/commands/media/
H A DMedia.java167 final long now = SystemClock.uptimeMillis();
168 sendMediaKey(new KeyEvent(now, now, KeyEvent.ACTION_DOWN, keycode, 0, 0,
170 sendMediaKey(new KeyEvent(now, now, KeyEvent.ACTION_UP, keycode, 0, 0,
/frameworks/base/core/java/com/android/server/net/
H A DNetlinkTracker.java109 // now empty. Note that from the moment that the interface is removed, any further
309 long now = System.currentTimeMillis();
310 long expiry = now + 1000 * lifetime;
325 if (expiry > now) {
350 long now = System.currentTimeMillis();
355 if (i >= NUM_SERVERS || mAllServers.get(i).expiry < now) {

Completed in 1073 milliseconds

123456789