/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
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; 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/Settings/src/com/android/settings/widget/ |
D | DotsPageIndicator.java | 555 private void setSelectedPage(int now) { in setSelectedPage() argument 556 if (now == currentPage || pageCount == 0) { in setSelectedPage() 561 currentPage = now; in setSelectedPage() 571 final int steps = Math.abs(now - was); in setSelectedPage() 572 moveAnimation = createMoveSelectedAnimator(dotCenterX[now], was, now, steps); in setSelectedPage() 579 joiningAnimations[i] = createJoiningAnimator(now > was ? was + i : was - 1 - i, in setSelectedPage() 590 private ValueAnimator createMoveSelectedAnimator(final float moveTo, int was, int now, in createMoveSelectedAnimator() argument 596 retreatAnimation = new PendingRetreatAnimator(was, now, steps, in createMoveSelectedAnimator() 597 now > was in createMoveSelectedAnimator() 757 public PendingRetreatAnimator(int was, int now, int steps, StartPredicate predicate) { in PendingRetreatAnimator() argument [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/widget/ |
D | CalendarAppWidgetServiceTest.java | 43 long now; field in CalendarAppWidgetServiceTest 87 now = time.normalize(false); in setUp() 106 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title, location, 0)); in testGetAppWidgetModel_1Event() 113 eventInfo.when = Utils.formatDateRange(getContext(), now + ONE_HOUR, now + TWO_HOURS, in testGetAppWidgetModel_1Event() 140 eventInfo.when = Utils.formatDateRange(context, now + ONE_HOUR, now + TWO_HOURS, in testGetAppWidgetModel_AllDayEventLater() 145 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title + i, location + i, 0)); in testGetAppWidgetModel_AllDayEventLater() 150 time.set(now); in testGetAppWidgetModel_AllDayEventLater()
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.java | 250 final long now = System.currentTimeMillis(); 251 if (!eventInfo.allDay && eventInfo.start <= now && now <= eventInfo.end) { 403 long now = System.currentTimeMillis(); 405 long begin = now - DateUtils.DAY_IN_MILLIS; 406 long end = now + SEARCH_DURATION + DateUtils.DAY_IN_MILLIS; 423 private long calculateUpdateTime(CalendarAppWidgetModel model, long now, String timeZone) { 433 if (now < start) { 435 } else if (now < end) { 492 final long now = System.currentTimeMillis(); 513 long triggerTime = calculateUpdateTime(mModel, now, tz); [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | Dates.java | 66 final long now = System.currentTimeMillis(); in getRelativeTimeSpanString() local 67 if (now - time < DateUtils.MINUTE_IN_MILLIS) { in getRelativeTimeSpanString() 77 return DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS, in getRelativeTimeSpanString() 127 public static CharSequence getTimestamp(final long time, final long now, in getTimestamp() argument 130 final long timeDiff = now - time; in getTimestamp() 136 } else if (getNumberOfDaysPassed(time, now) == 0) { in getTimestamp() 239 final long now = System.currentTimeMillis(); in getShortRelativeTimeSpanString() local 240 final long duration = Math.abs(now - time); in getShortRelativeTimeSpanString() 254 count = getNumberOfDaysPassed(time, now); in getShortRelativeTimeSpanString()
|
/packages/apps/Email/src/com/android/email/ |
D | StopWatch.java | 54 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 63 + (now - mLastSplit) in stop() 64 + " (total " + (now - mStart) + ")"); in stop()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GLRootView.java | 161 long now = SystemClock.uptimeMillis(); in setContentPane() local 163 now, now, MotionEvent.ACTION_CANCEL, 0, 0, 0); in setContentPane() 328 long now = System.nanoTime(); in outputFps() local 330 mFrameCountingStart = now; in outputFps() 331 } else if ((now - mFrameCountingStart) > 1000000000) { in outputFps() 333 * 1000000000 / (now - mFrameCountingStart)); in outputFps() 334 mFrameCountingStart = now; in outputFps() 419 long now = AnimationTime.get(); in onDrawFrameLocked() local 421 mAnimations.get(i).setStartTime(now); in onDrawFrameLocked()
|
D | ProgressSpinner.java | 60 long now = AnimationTime.get(); in draw() local 61 if (mAnimationTimestamp == -1) mAnimationTimestamp = now; in draw() 62 mOuterDegree += (now - mAnimationTimestamp) * ROTATE_SPEED_OUTER; in draw() 63 mInnerDegree += (now - mAnimationTimestamp) * ROTATE_SPEED_INNER; in draw() 65 mAnimationTimestamp = now; in draw()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | Timer.java | 28 import static com.android.deskclock.Utils.now; 152 final long timeSinceStart = now() - mLastStartTime; in getRemainingTime() 198 return new Timer(mId, RUNNING, mLength, mTotalLength, now(), wallClock(), mRemainingTime, in start() 226 return new Timer(mId, EXPIRED, mLength, 0L, now(), wallClock(), remainingTime, mLabel, in expire() 239 return new Timer(mId, MISSED, mLength, 0L, now(), wallClock(), remainingTime, mLabel, in miss() 263 final long timeSinceBoot = now(); in updateAfterReboot() 281 final long timeSinceBoot = now(); in updateAfterTimeSet() 348 lastStartTime = now(); in setRemainingTime()
|
D | Stopwatch.java | 19 import static com.android.deskclock.Utils.now; 74 final long timeSinceStart = now() - mLastStartTime; in getTotalTime() 93 return new Stopwatch(RUNNING, now(), wallClock(), getTotalTime()); in start() 123 final long timeSinceBoot = now(); in updateAfterReboot() 140 final long timeSinceBoot = now(); in updateAfterTimeSet()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | ProcessPendingMessagesAction.java | 219 final long now = System.currentTimeMillis(); in getHavePendingMessages() local 221 final String toSendMessageId = findNextMessageToSend(db, now); in getHavePendingMessages() 225 final String toDownloadMessageId = findNextMessageToDownload(db, now); in getHavePendingMessages() 242 final long now = System.currentTimeMillis(); in queueActions() local 248 final String toSendMessageId = findNextMessageToSend(db, now); in queueActions() 249 final String toDownloadMessageId = findNextMessageToDownload(db, now); in queueActions() 296 private static String findNextMessageToSend(final DatabaseWrapper db, final long now) { in findNextMessageToSend() argument 334 if (message.getInResendWindow(now)) { in findNextMessageToSend() 391 private static String findNextMessageToDownload(final DatabaseWrapper db, final long now) { in findNextMessageToDownload() argument
|
D | SyncMessagesAction.java | 81 final long now = System.currentTimeMillis(); in fullSync() local 83 final long startTimestamp = now - smsSyncBackoffTimeMillis; in fullSync() 99 final long now = System.currentTimeMillis(); in sync() local 101 final long startTimestamp = now - smsSyncBackoffTimeMillis; in sync() 111 final long now = System.currentTimeMillis(); in immediateSync() local 113 final long startTimestamp = now; in immediateSync() 464 final long now = System.currentTimeMillis(); in processBackgroundResponse() local 467 final SyncCursorPair recents = new SyncCursorPair(startTimestamp, now); in processBackgroundResponse() 476 new SyncMessagesAction(startTimestamp, now, 0, startTimestamp); in processBackgroundResponse() 477 syncManager.startSyncBatch(now); in processBackgroundResponse()
|
/packages/services/BuiltInPrintService/jni/plugins/ |
D | wprint_mupdf.c | 36 struct timespec now; in get_millis() local 37 clock_gettime(CLOCK_MONOTONIC, &now); in get_millis() 38 return (long) (((int64_t) now.tv_sec * 1000000000LL + now.tv_nsec) / 1000000); in get_millis() 75 long now = get_millis(); in _mupdf_get_hdr() local 84 LOGI("Render complete in %ld ms", get_millis() - now); in _mupdf_get_hdr()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | DateTimeFragment.java | 136 final Calendar now = Calendar.getInstance(); in updateTimeAndDateDisplay() local 137 mDummyDate.setTimeZone(now.getTimeZone()); in updateTimeAndDateDisplay() 140 mDummyDate.set(now.get(Calendar.YEAR), 11, 31, 13, 0, 0); in updateTimeAndDateDisplay() 142 mDatePref.setSummary(DateFormat.getLongDateFormat(context).format(now.getTime())); in updateTimeAndDateDisplay() 143 mTimePref.setSummary(DateFormat.getTimeFormat(getActivity()).format(now.getTime())); in updateTimeAndDateDisplay() 145 now.getTimeZone(), now.getTime())); in updateTimeAndDateDisplay()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | ContactsManagerTest.java | 87 final long now = System.currentTimeMillis(); in testGetValidNamesAffinity() local 88 final long month_ago = now - TimeUnit.MILLISECONDS.convert(31, TimeUnit.DAYS); in testGetValidNamesAffinity() 90 mMatrixCursor.addRow(new Object[] { i, "name" + i, i, now, 1 }); in testGetValidNamesAffinity() 106 final long now = System.currentTimeMillis(); in testComputeAffinity() local 107 final long month_ago = now - TimeUnit.MILLISECONDS.convert(31, TimeUnit.DAYS); in testComputeAffinity() 117 contact.computeAffinity(2, now); in testComputeAffinity()
|
/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
D | PeriodicCallbackModel.java | 138 static long getDelay(long now, Period period, long offset) { in getDelay() argument 139 final long periodStart = now - offset; in getDelay() 145 return nextMinute - now + offset; in getDelay() 150 return nextQuarterHour - now + offset; in getDelay() 155 return nextHour - now + offset; in getDelay() 165 return nextMidnight.getTimeInMillis() - now + offset; in getDelay()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmTimeClickHandler.java | 106 final Calendar now = Calendar.getInstance(); in setAlarmRepeatEnabled() local 107 final Calendar oldNextAlarmTime = alarm.getNextAlarmTime(now); in setAlarmRepeatEnabled() 128 final Calendar newNextAlarmTime = alarm.getNextAlarmTime(now); in setAlarmRepeatEnabled() 136 final Calendar now = Calendar.getInstance(); in setDayOfWeekEnabled() local 137 final Calendar oldNextAlarmTime = alarm.getNextAlarmTime(now); in setDayOfWeekEnabled() 143 final Calendar newNextAlarmTime = alarm.getNextAlarmTime(now); in setDayOfWeekEnabled()
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaListView.java | 116 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/UnifiedEmail/src/com/android/mail/perf/ |
D | SimpleTimer.java | 64 long now = SystemClock.uptimeMillis(); in mark() local 65 LogUtils.d(getTag(), "[%s] %sms elapsed (%sms since last mark)", msg, now - mStartTime, in mark() 66 now - mLastMarkTime); in mark() 67 mLastMarkTime = now; in mark()
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | FadeTexture.java | 40 mStartTime = now(); in FadeTexture() 66 if (now() - mStartTime >= DURATION) { in isAnimating() 74 float r = (float)(now() - mStartTime) / DURATION; in getRatio() 78 private long now() { in now() method in FadeTexture
|
/packages/apps/Calendar/tests/src/com/android/calendar/event/ |
D | EditEventHelperTest.java | 915 long now = 0; in testConstructDefaultStartTime() local 916 long expected = now + 30 * DateUtils.MINUTE_IN_MILLIS; in testConstructDefaultStartTime() 917 assertEquals(expected, mHelper.constructDefaultStartTime(now)); in testConstructDefaultStartTime() 920 now = 1262340000000L; // Fri Jan 01 2010 02:00:00 GMT-0800 (PST) in testConstructDefaultStartTime() 921 expected = now + 30 * DateUtils.MINUTE_IN_MILLIS; in testConstructDefaultStartTime() 922 assertEquals(expected, mHelper.constructDefaultStartTime(now)); in testConstructDefaultStartTime() 925 now += DateUtils.MINUTE_IN_MILLIS; in testConstructDefaultStartTime() 926 assertEquals(expected, mHelper.constructDefaultStartTime(now)); in testConstructDefaultStartTime() 929 now += DateUtils.MINUTE_IN_MILLIS; in testConstructDefaultStartTime() 930 assertEquals(expected, mHelper.constructDefaultStartTime(now)); in testConstructDefaultStartTime() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
D | MosaicFrameProcessor.java | 193 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/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | DictionaryService.java | 229 final long now = System.currentTimeMillis(); in checkTimeAndMaybeSetupUpdateAlarm() local 230 final long alarmTime = now + new Random().nextInt(MAX_ALARM_DELAY_MILLIS); in checkTimeAndMaybeSetupUpdateAlarm() 247 final long now = System.currentTimeMillis(); in isLastUpdateAtLeastThisOld() local 250 return lastUpdate + time < now; in isLastUpdateAtLeastThisOld()
|
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/recorder/ |
D | SchedulerTest.java | 98 long now = mFakeClock.currentTimeMillis(); in testUpdate_nextIn12Hours() local 99 long startTime = now + TimeUnit.HOURS.toMillis(12); in testUpdate_nextIn12Hours() 118 long now = mFakeClock.currentTimeMillis(); in testStartsWithin() local 119 long startTime = now + 3; in testStartsWithin()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | ClassZeroActivity.java | 142 final long now = SystemClock.uptimeMillis(); in displayZeroMessage() local 143 mTimerSet = now + DEFAULT_TIMER; in displayZeroMessage() 155 final long now = SystemClock.uptimeMillis(); in onStart() local 156 if (mTimerSet <= now) { in onStart()
|