Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 91) sorted by relevance

1234

/packages/apps/Email/src/com/android/email/
DStopWatch.java54 long now = getCurrentTime() ; in split() local
55 long elapse = now - mLastSplit; in split()
57 mLastSplit = now; in split()
61 long now = getCurrentTime(); in stop() local
62 long elapse = now - mLastSplit; in stop()
64 + (now - mLastSplit) in stop()
65 + " (total " + (now - mStart) + ")"); in stop()
DThrottle.java115 final long now = mClock.getTime(); in updateTimeout() local
116 if ((now - mLastEventTime) <= TIMEOUT_EXTEND_INTERVAL) { in updateTimeout()
127 mLastEventTime = now; in updateTimeout()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserHistoryForgettingCurveUtils.java52 private ForgettingCurveParams(long now, boolean isValid) { in ForgettingCurveParams() argument
53 this((int)pushCount((byte)0, isValid), now, now, isValid); in ForgettingCurveParams()
57 public ForgettingCurveParams(int fc, long now, long last) { in ForgettingCurveParams() argument
61 this(fc, now, last, fcToLevel((byte)fc) > 0); in ForgettingCurveParams()
64 private ForgettingCurveParams(int fc, long now, long last, boolean isValid) { in ForgettingCurveParams() argument
68 updateElapsedTime(now); in ForgettingCurveParams()
92 private void updateElapsedTime(long now) { in updateElapsedTime() argument
94 (int)((now - mLastTouchedTime) / ELAPSED_TIME_INTERVAL_MILLIS); in updateElapsedTime()
99 mLastTouchedTime = now; in updateElapsedTime()
/packages/apps/Settings/src/com/android/settings/
DDateTimeSettingsSetupWizard.java243 final Calendar now = Calendar.getInstance(tz); in onItemClick() local
248 mDatePicker.updateDate(now.get(Calendar.YEAR), now.get(Calendar.MONTH), in onItemClick()
249 now.get(Calendar.DAY_OF_MONTH)); in onItemClick()
250 mTimePicker.setCurrentHour(now.get(Calendar.HOUR_OF_DAY)); in onItemClick()
251 mTimePicker.setCurrentMinute(now.get(Calendar.MINUTE)); in onItemClick()
319 final Calendar now = Calendar.getInstance(); in updateTimeAndDateDisplay() local
320 mTimeZoneButton.setText(now.getTimeZone().getDisplayName()); in updateTimeAndDateDisplay()
321 mDatePicker.updateDate(now.get(Calendar.YEAR), now.get(Calendar.MONTH), in updateTimeAndDateDisplay()
322 now.get(Calendar.DAY_OF_MONTH)); in updateTimeAndDateDisplay()
323 mTimePicker.setCurrentHour(now.get(Calendar.HOUR_OF_DAY)); in updateTimeAndDateDisplay()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/widget/
DCalendarAppWidgetServiceTest.java42 final long now = 1262340000000L; // Fri Jan 01 2010 02:00:00 GMT-0800 (PST) field in CalendarAppWidgetServiceTest
96 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title, location, 0)); in testGetAppWidgetModel_1Event()
123 long tomorrow = now + DateUtils.DAY_IN_MILLIS; in testGetAppWidgetModel_2StaggeredEvents()
163 final long now = 1262340000000L; // Fri Jan 01 2010 01:00:00 GMT-0700 (PDT) in testGetAppWidgetModel_AllDayEventToday() local
193 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title + i, location + i, 0)); in testGetAppWidgetModel_AllDayEventToday()
204 final long now = 1262340000000L; // Fri Jan 01 2010 01:00:00 GMT-0700 (PDT) in testGetAppWidgetModel_AllDayEventTomorrow() local
232 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title + i, location + i, 0)); in testGetAppWidgetModel_AllDayEventTomorrow()
245 final long now = 1262340000000L; // Fri Jan 01 2010 01:00:00 GMT-0700 (PDT) in testGetAppWidgetModel_AllDayEventLater() local
273 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title + i, location + i, 0)); in testGetAppWidgetModel_AllDayEventLater()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DProgressSpinner.java58 long now = AnimationTime.get(); in draw() local
59 if (mAnimationTimestamp == -1) mAnimationTimestamp = now; in draw()
60 mOuterDegree += (now - mAnimationTimestamp) * ROTATE_SPEED_OUTER; in draw()
61 mInnerDegree += (now - mAnimationTimestamp) * ROTATE_SPEED_INNER; in draw()
63 mAnimationTimestamp = now; in draw()
DFadeTexture.java41 mStartTime = now(); in FadeTexture()
67 if (now() - mStartTime >= DURATION) { in isAnimating()
75 float r = (float)(now() - mStartTime) / DURATION; in getRatio()
79 private long now() { in now() method in FadeTexture
DGLRootView.java149 long now = SystemClock.uptimeMillis(); in setContentPane() local
151 now, now, MotionEvent.ACTION_CANCEL, 0, 0, 0); in setContentPane()
296 long now = System.nanoTime(); in outputFps() local
298 mFrameCountingStart = now; in outputFps()
299 } else if ((now - mFrameCountingStart) > 1000000000) { in outputFps()
301 * 1000000000 / (now - mFrameCountingStart)); in outputFps()
302 mFrameCountingStart = now; in outputFps()
379 long now = AnimationTime.get(); in onDrawFrameLocked() local
381 mAnimations.get(i).setStartTime(now); in onDrawFrameLocked()
DBitmapScreenNail.java154 mAnimationStartTime = now(); in draw()
182 if (now() - mAnimationStartTime >= DURATION) { in isAnimating()
189 private static long now() { in now() method in BitmapScreenNail
194 float r = (float)(now() - mAnimationStartTime) / DURATION; in getRatio()
DGestureRecognizer.java67 long now = SystemClock.uptimeMillis(); in cancelScale() local
69 now, now, MotionEvent.ACTION_CANCEL, 0, 0, 0); in cancelScale()
DPaper.java126 mStartTime = now(); in startAnimation()
154 float t = Utils.clamp((float)(now() - mStartTime) / mDuration, 0.0f, 1.0f); in update()
179 private long now() { in now() method in EdgeAnimation
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
Dgrass.rs324 float brightness, float xOffset, float now) {
334 float newAngle = (turbulencef2(bladeStruct->turbulencex, now, 4.0f) - 0.5f) * 0.5f;
403 float now = rsUptimeMillis() * 0.00004f;
406 int offset = drawBlade(bladeStruct, vtx, brightness, xOffset, now);
417 float now = time(gIsPreview);
425 if (now >= 0.0f && now < gDawn) { // Draw night
428 } else if (now >= gDawn && now <= gMorning) { // Draw sunrise
430 if (now <= half) { // Draw night->sunrise
432 newB = normf(gDawn, half, now);
437 alpha(normf(half, gMorning, now));
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DSymmetricalLinearTween.java80 long now = SystemClock.uptimeMillis(); in start() local
81 long diff = now - mBase; in start()
82 mBase = now + diff - mDuration; in start()
91 long now = SystemClock.uptimeMillis();
92 long diff = now-base;
DSmoothPagedView.java174 final float now = System.nanoTime() / NANOTIME_DIV; in computeScroll() local
175 final float e = (float) Math.exp((now - mSmoothingTime) / SMOOTHING_CONSTANT); in computeScroll()
179 mSmoothingTime = now; in computeScroll()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndbdic.c101 NJ_UINT8 *now, NJ_UINT16 idx_no,
109 static NJ_INT16 get_node_bottom(NJ_CHAR *yomi, NJ_UINT8 *now, NJ_UINT8 *node_mid,
552 NJ_UINT8 *root, *now, *node, *node_mid; in search_node() local
589 now = node_mid; in search_node()
692 while (now < data_top) { in search_node()
693 if (NODE_IDX_EXIST(now)) { in search_node()
695 idx_cnt = NODE_IDX_CNT(now); in search_node()
703 if (NODE_LEFT_EXIST(now)) { in search_node()
708 if (NODE_DATA_EXIST(now)) { in search_node()
720 data = (NJ_UINT16)(NJ_INT16_READ(now + pos)); in search_node()
[all …]
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetService.java244 final long now = System.currentTimeMillis();
245 if (!eventInfo.allDay && eventInfo.start <= now && now <= eventInfo.end) {
397 long now = System.currentTimeMillis();
399 long begin = now - DateUtils.DAY_IN_MILLIS;
400 long end = now + SEARCH_DURATION + DateUtils.DAY_IN_MILLIS;
417 private long calculateUpdateTime(CalendarAppWidgetModel model, long now, String timeZone) {
427 if (now < start) {
429 } else if (now < end) {
486 final long now = System.currentTimeMillis();
507 long triggerTime = calculateUpdateTime(mModel, now, tz);
[all …]
/packages/apps/Contacts/src/com/android/contacts/widget/
DTextHighlightingAnimation.java222 long now = System.currentTimeMillis(); in startAnimation() local
225 mTargetTime = now + mDuration; in startAnimation()
232 mTargetTime = (now + mDuration) - (mTargetTime - now); in startAnimation()
241 long now = System.currentTimeMillis(); in run() local
242 long timeLeft = mTargetTime - now; in run()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadInfo.java276 public long restartTime(long now) { in restartTime() argument
278 return now; in restartTime()
292 private boolean isReadyToStart(long now) { in isReadyToStart() argument
314 return restartTime(now) <= now; in isReadyToStart()
458 void startIfReady(long now, StorageManager storageManager) { in startIfReady() argument
459 if (!isReadyToStart(now)) { in startIfReady()
539 long nextAction(long now) { in nextAction() argument
546 long when = restartTime(now); in nextAction()
547 if (when <= now) { in nextAction()
550 return when - now; in nextAction()
DDownloadService.java297 long now = mSystemFacade.currentTimeMillis(); in run() local
321 updateDownload(reader, info, now); in run()
323 info = insertDownloadLocked(reader, now); in run()
333 long next = info.nextAction(now); in run()
435 private DownloadInfo insertDownloadLocked(DownloadInfo.Reader reader, long now) { in insertDownloadLocked() argument
443 info.startIfReady(now, mStorageManager); in insertDownloadLocked()
450 private void updateDownload(DownloadInfo.Reader reader, DownloadInfo info, long now) { in updateDownload() argument
471 info.startIfReady(now, mStorageManager); in updateDownload()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DLatencyTracker.java51 long now = SystemClock.uptimeMillis(); in getLatency() local
52 return (int) (now - mStartTime); in getLatency()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DMosaicFrameProcessor.java193 public void calculateTranslationRate(long now) { in calculateTranslationRate() argument
204 mLastProcessedFrameTimestamp = now; in calculateTranslationRate()
216 mDeltaTime[idx] = (now - mLastProcessedFrameTimestamp) / 1000.0f; in calculateTranslationRate()
234 mLastProcessedFrameTimestamp = now; in calculateTranslationRate()
/packages/apps/Camera/src/com/android/camera/
DMosaicFrameProcessor.java205 public void calculateTranslationRate(long now) { in calculateTranslationRate() argument
216 mLastProcessedFrameTimestamp = now; in calculateTranslationRate()
228 mDeltaTime[idx] = (now - mLastProcessedFrameTimestamp) / 1000.0f; in calculateTranslationRate()
246 mLastProcessedFrameTimestamp = now; in calculateTranslationRate()
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaListView.java116 long now = System.currentTimeMillis(); in setPastEventsUpdater() local
117 long roundedTime = (now / EVENT_UPDATE_TIME) * EVENT_UPDATE_TIME; in setPastEventsUpdater()
119 mHandler.postDelayed(mPastEventUpdater, EVENT_UPDATE_TIME - (now - roundedTime)); in setPastEventsUpdater()
134 long now = System.currentTimeMillis(); in updatePastEvents() local
136 time.set(now); in updatePastEvents()
137 int todayJulianDay = Time.getJulianDay(now, time.gmtoff); in updatePastEvents()
154 if (!holder.grayed && ((!holder.allDay && holder.startTimeMilli <= now) || in updatePastEvents()
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
DSaveCopyTask.java145 long now = System.currentTimeMillis() / 1000; in insertContent() local
151 values.put(Images.Media.DATE_TAKEN, now); in insertContent()
152 values.put(Images.Media.DATE_MODIFIED, now); in insertContent()
153 values.put(Images.Media.DATE_ADDED, now); in insertContent()
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
Dholo_spiral.rs149 float now = rsUptimeMillis();
150 float elapsed = (now - lastTime) * 0.001f;
151 lastTime = now;

1234