/packages/apps/Email/src/com/android/email/ |
H A D | StopWatch.java | 54 long now = getCurrentTime() ; 55 long elapse = now - mLastSplit; 57 mLastSplit = now; 61 long now = getCurrentTime(); 62 long elapse = now - mLastSplit; 64 + (now - mLastSplit) 65 + " (total " + (now - mStart) + ")");
|
H A D | Throttle.java | 115 final long now = mClock.getTime(); 116 if ((now - mLastEventTime) <= TIMEOUT_EXTEND_INTERVAL) { 127 mLastEventTime = now;
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | LatencyTracker.java | 51 long now = SystemClock.uptimeMillis(); 52 return (int) (now - mStartTime);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | FadeTexture.java | 39 mStartTime = now(); 65 if (now() - mStartTime >= DURATION) { 73 float r = (float)(now() - mStartTime) / DURATION; 77 private long now() { method in class:FadeTexture
|
H A D | ProgressSpinner.java | 58 long now = AnimationTime.get(); 59 if (mAnimationTimestamp == -1) mAnimationTimestamp = now; 60 mOuterDegree += (now - mAnimationTimestamp) * ROTATE_SPEED_OUTER; 61 mInnerDegree += (now - mAnimationTimestamp) * ROTATE_SPEED_INNER; 63 mAnimationTimestamp = now;
|
H A D | GestureRecognizer.java | 68 long now = SystemClock.uptimeMillis(); 70 now, now, MotionEvent.ACTION_CANCEL, 0, 0, 0);
|
H A D | GLRootView.java | 154 long now = SystemClock.uptimeMillis(); 156 now, now, MotionEvent.ACTION_CANCEL, 0, 0, 0); 321 long now = System.nanoTime(); 323 mFrameCountingStart = now; 324 } else if ((now - mFrameCountingStart) > 1000000000) { 326 * 1000000000 / (now - mFrameCountingStart)); 327 mFrameCountingStart = now; 409 long now = AnimationTime.get(); 411 mAnimations.get(i).setStartTime(now); [all...] |
H A D | Paper.java | 127 mStartTime = now(); 155 float t = Utils.clamp((float)(now() - mStartTime) / mDuration, 0.0f, 1.0f); 180 private long now() { method in class:EdgeAnimation
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | UserHistoryForgettingCurveUtils.java | 52 private ForgettingCurveParams(long now, boolean isValid) { argument 53 this(pushCount((byte)0, isValid), now, now, isValid); 57 public ForgettingCurveParams(int fc, long now, long last) { argument 61 this(fc, now, last, fcToLevel((byte)fc) > 0); 64 private ForgettingCurveParams(int fc, long now, long last, boolean isValid) { argument 68 updateElapsedTime(now); 92 private void updateElapsedTime(long now) { argument 94 (int)((now - mLastTouchedTime) / ELAPSED_TIME_INTERVAL_MILLIS); 99 mLastTouchedTime = now; [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | SymmetricalLinearTween.java | 80 long now = SystemClock.uptimeMillis(); 81 long diff = now - mBase; 82 mBase = now + diff - mDuration; 91 long now = SystemClock.uptimeMillis(); 92 long diff = now-base;
|
H A D | SmoothPagedView.java | 174 final float now = System.nanoTime() / NANOTIME_DIV; 175 final float e = (float) Math.exp((now - mSmoothingTime) / SMOOTHING_CONSTANT); 179 mSmoothingTime = now;
|
/packages/apps/Calendar/tests/src/com/android/calendar/widget/ |
H A D | CalendarAppWidgetServiceTest.java | 42 final long now = 1262340000000L; // Fri Jan 01 2010 02:00:00 GMT-0800 (PST) field in class:CalendarAppWidgetServiceTest 65 // long now = 1270000000000L; 66 // MarkedEvents events = CalendarAppWidgetService.buildMarkedEvents(cursor, null, now); 68 // getTestContext(), cursor, events, now); 96 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title, location, 0)); 123 long tomorrow = now + DateUtils.DAY_IN_MILLIS; 163 final long now = 1262340000000L; // Fri Jan 01 2010 01:00:00 GMT-0700 (PDT) 193 cursor.addRow(getRow(0, now + ONE_HOUR, now [all...] |
/packages/apps/Settings/src/com/android/settings/ |
H A D | DateTimeSettingsSetupWizard.java | 243 final Calendar now = Calendar.getInstance(tz); 248 mDatePicker.updateDate(now.get(Calendar.YEAR), now.get(Calendar.MONTH), 249 now.get(Calendar.DAY_OF_MONTH)); 250 mTimePicker.setCurrentHour(now.get(Calendar.HOUR_OF_DAY)); 251 mTimePicker.setCurrentMinute(now.get(Calendar.MINUTE)); 253 // in prefs mode, we actually change the setting right now, as opposed to waiting 319 final Calendar now = Calendar.getInstance(); 320 mTimeZoneButton.setText(now.getTimeZone().getDisplayName()); 321 mDatePicker.updateDate(now [all...] |
H A D | DateTimeSettings.java | 173 final Calendar now = Calendar.getInstance(); 174 mDummyDate.setTimeZone(now.getTimeZone()); 177 mDummyDate.set(now.get(Calendar.YEAR), 11, 31, 13, 0, 0); 179 mTimePref.setSummary(DateFormat.getTimeFormat(getActivity()).format(now.getTime())); 180 mTimeZone.setSummary(getTimeZoneText(now.getTimeZone())); 181 mDatePref.setSummary(shortDateFormat.format(now.getTime())); 373 Date now = new Date(); 374 return formatOffset(new StringBuilder(), tz, now). 376 append(tz.getDisplayName(tz.inDaylightTime(now), TimeZone.LONG)).toString();
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | TextHighlightingAnimation.java | 222 long now = System.currentTimeMillis(); 225 mTargetTime = now + mDuration; 232 mTargetTime = (now + mDuration) - (mTargetTime - now); 241 long now = System.currentTimeMillis(); 242 long timeLeft = mTargetTime - now;
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
H A D | WorldClockAdapter.java | 113 final Date now = new Date(); 114 return TimeZone.getTimeZone(homeTZ).getOffset(now.getTime()) 115 != TimeZone.getDefault().getOffset(now.getTime()); 127 final Date now = new Date(); 156 int gmOffset1 = TimeZone.getTimeZone(city1.mTimeZone).getOffset(now.getTime()); 157 int gmOffset2 = TimeZone.getTimeZone(city2.mTimeZone).getOffset(now.getTime()); 244 final Calendar now = Calendar.getInstance(); 245 now.setTimeZone(TimeZone.getDefault()); 246 int myDayOfWeek = now.get(Calendar.DAY_OF_WEEK); 249 now [all...] |
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
H A D | ndbdic.c | 101 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; local 589 now = node_mid; 692 while (now < data_top) { 693 if (NODE_IDX_EXIST(now)) { 695 idx_cnt = NODE_IDX_CNT(now); 703 if (NODE_LEFT_EXIST(now)) { 708 if (NODE_DATA_EXIST(now)) { 720 data = (NJ_UINT16)(NJ_INT16_READ(now 1541 NJ_UINT8 *root, *now, *node, *node_mid; local 1975 search_yomi_node(NJ_UINT8 operation, NJ_UINT8 *node, NJ_UINT8 *now, NJ_UINT16 idx_no, NJ_CHAR *yomi, NJ_UINT16 yomilen, NJ_UINT8 * root, NJ_UINT8 * node_mid, NJ_UINT16 bit_left, NJ_UINT16 bit_data, NJ_UINT8 * data_top, NJ_INT16 ytbl_cnt, NJ_UINT16 y, NJ_UINT8 * ytbl_top, NJ_CACHE_INFO * storebuf, NJ_UINT8 ** con_node, NJ_UINT32 * data_offset) argument 2250 get_node_bottom(NJ_CHAR * yomi, NJ_UINT8 * now, NJ_UINT8 * node_mid, NJ_UINT8 * data_top, NJ_UINT16 bit_left, NJ_UINT16 bit_data, NJ_UINT32 top, NJ_DIC_HANDLE handle, NJ_UINT32 * ret_bottom) argument [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
H A D | TimerReceiver.java | 190 long now = Utils.getTimeNow(); 196 long timeLeft = timer.isTicking() ? timer.getTimesupTime() - now : timer.mTimeLeft; 199 nextBroadcastTime = getBroadcastTime(now, timeLeft); 202 TimerObj timer = getNextRunningTimer(timersInUse, false, now); 213 long timeLeft = completionTime - now; 217 TimerObj timerWithUpdate = getNextRunningTimer(timersInUse, true, now); 220 timeLeft = completionTime - now; 221 nextBroadcastTime = getBroadcastTime(now, timeLeft); 224 nextBroadcastTime = getBroadcastTime(now, timeLeft); 231 private long getBroadcastTime(long now, lon argument 327 getNextRunningTimer( ArrayList<TimerObj> timers, boolean requireNextUpdate, long now) argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/widget/ |
H A D | CalendarAppWidgetService.java | 249 final long now = System.currentTimeMillis(); 250 if (!eventInfo.allDay && eventInfo.start <= now && now <= eventInfo.end) { 363 * Query across all calendars for upcoming event instances from now 376 // Search for events from now until some time in the future 402 long now = System.currentTimeMillis(); 404 long begin = now - DateUtils.DAY_IN_MILLIS; 405 long end = now + SEARCH_DURATION + DateUtils.DAY_IN_MILLIS; 422 private long calculateUpdateTime(CalendarAppWidgetModel model, long now, String timeZone) { argument 432 if (now < star 609 formatDebugTime(long unixTime, long now) argument [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
H A D | MosaicFrameProcessor.java | 193 public void calculateTranslationRate(long now) { argument 204 mLastProcessedFrameTimestamp = now; 216 mDeltaTime[idx] = (now - mLastProcessedFrameTimestamp) / 1000.0f; 234 mLastProcessedFrameTimestamp = now;
|
/packages/apps/Email/src/com/android/email/view/ |
H A D | RigidWebView.java | 70 long now = mClock.getTime(); 71 boolean recentlySized = (now - mLastSizeChangeTime < MIN_RESIZE_INTERVAL);
|
/packages/apps/Music/src/com/android/music/ |
H A D | RepeatingImageButton.java | 122 long now = SystemClock.elapsedRealtime(); 124 mListener.onRepeat(this, now - mStartTime, last ? -1 : mRepeatCount++);
|
/packages/apps/VoiceDialer/ |
H A D | Android.mk | 17 # SREC_CONFIG_TARGET_FILES is from external/srec/config/en.us/config.mk and now can be cleaned up.
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | CameraHolder.java | 180 long now = System.currentTimeMillis(); 181 if (now < mKeepBeforeTime) { 183 mKeepBeforeTime - now);
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
H A D | DigitalWidgetViewsFactory.java | 95 final Calendar now = Calendar.getInstance(); 96 now.setTimeInMillis(System.currentTimeMillis()); 97 int myDayOfWeek = now.get(Calendar.DAY_OF_WEEK); 100 now.setTimeZone(TimeZone.getTimeZone(cityTZ)); 101 int cityDayOfWeek = now.get(Calendar.DAY_OF_WEEK); 114 R.string.world_day_of_week_label, now.getDisplayName(
|