/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/ |
D | DateTimeSettingsSetupWizard.java | 243 final Calendar now = Calendar.getInstance(tz); in onItemClick() local 247 mDatePicker.updateDate(now.get(Calendar.YEAR), now.get(Calendar.MONTH), in onItemClick() 248 now.get(Calendar.DAY_OF_MONTH)); in onItemClick() 249 mTimePicker.setCurrentHour(now.get(Calendar.HOUR_OF_DAY)); in onItemClick() 250 mTimePicker.setCurrentMinute(now.get(Calendar.MINUTE)); in onItemClick() 318 final Calendar now = Calendar.getInstance(); in updateTimeAndDateDisplay() local 319 mTimeZoneButton.setText(now.getTimeZone().getDisplayName()); in updateTimeAndDateDisplay() 320 mDatePicker.updateDate(now.get(Calendar.YEAR), now.get(Calendar.MONTH), in updateTimeAndDateDisplay() 321 now.get(Calendar.DAY_OF_MONTH)); in updateTimeAndDateDisplay() 322 mTimePicker.setCurrentHour(now.get(Calendar.HOUR_OF_DAY)); in updateTimeAndDateDisplay() [all …]
|
D | DateTimeSettings.java | 159 final Calendar now = Calendar.getInstance(); in updateTimeAndDateDisplay() local 160 mDummyDate.setTimeZone(now.getTimeZone()); in updateTimeAndDateDisplay() 163 mDummyDate.set(now.get(Calendar.YEAR), 11, 31, 13, 0, 0); in updateTimeAndDateDisplay() 165 mDatePref.setSummary(DateFormat.getLongDateFormat(context).format(now.getTime())); in updateTimeAndDateDisplay() 166 mTimePref.setSummary(DateFormat.getTimeFormat(getActivity()).format(now.getTime())); in updateTimeAndDateDisplay() 167 mTimeZone.setSummary(getTimeZoneText(now.getTimeZone(), true)); in updateTimeAndDateDisplay() 348 Date now = new Date(); in getTimeZoneText() local 353 String gmtString = gmtFormatter.format(now); in getTimeZoneText() 369 String zoneNameString = zoneNameFormatter.format(now); in getTimeZoneText()
|
/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/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/DeskClock/src/com/android/deskclock/worldclock/ |
D | WorldClockAdapter.java | 123 final Date now = new Date(); in needHomeCity() local 124 return TimeZone.getTimeZone(homeTZ).getOffset(now.getTime()) in needHomeCity() 125 != TimeZone.getDefault().getOffset(now.getTime()); in needHomeCity() 137 final Date now = new Date(); in sortList() local 166 int gmOffset1 = TimeZone.getTimeZone(city1.mTimeZone).getOffset(now.getTime()); in sortList() 167 int gmOffset2 = TimeZone.getTimeZone(city2.mTimeZone).getOffset(now.getTime()); in sortList() 241 final Calendar now = Calendar.getInstance(); in updateView() local 242 now.setTimeZone(TimeZone.getDefault()); in updateView() 243 int myDayOfWeek = now.get(Calendar.DAY_OF_WEEK); in updateView() 246 now.setTimeZone(TimeZone.getTimeZone(cityTZ)); in updateView() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerReceiver.java | 257 long now = Utils.getTimeNow(); in showInUseNotification() local 263 long timeLeft = timerIsTicking ? timer.getTimesupTime() - now : timer.mTimeLeft; in showInUseNotification() 266 nextBroadcastTime = getBroadcastTime(now, timeLeft); in showInUseNotification() 269 TimerObj timer = getNextRunningTimer(timersInUse, false, now); in showInUseNotification() 280 long timeLeft = completionTime - now; in showInUseNotification() 284 TimerObj timerWithUpdate = getNextRunningTimer(timersInUse, true, now); in showInUseNotification() 287 timeLeft = completionTime - now; in showInUseNotification() 288 nextBroadcastTime = getBroadcastTime(now, timeLeft); in showInUseNotification() 291 nextBroadcastTime = getBroadcastTime(now, timeLeft); in showInUseNotification() 298 private long getBroadcastTime(long now, long timeUntilBroadcast) { in getBroadcastTime() argument [all …]
|
/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/ |
D | Utils.java | 348 long now = System.currentTimeMillis(); in run() local 349 long adjust = (now % 60000); in run() 370 long now = System.currentTimeMillis(); in getAlarmOnQuarterHour() local 371 long delta = alarmOnQuarterHour - now; in getAlarmOnQuarterHour() 375 alarmOnQuarterHour = now + 901000; in getAlarmOnQuarterHour() 387 long now = System.currentTimeMillis(); in setMidnightUpdater() local 389 time.set(now); in setMidnightUpdater() 498 Date now = new Date(); in updateDate() local 505 dateDisplay.setText(sdf.format(now)); in updateDate() 509 dateDisplay.setContentDescription(sdf.format(now)); in updateDate()
|
/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/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadInfo.java | 310 public long restartTime(long now) { in restartTime() argument 312 return now; in restartTime() 343 final long now = mSystemFacade.currentTimeMillis(); in isReadyToDownload() local 344 return restartTime(now) <= now; in isReadyToDownload() 574 public long nextActionMillis(long now) { in nextActionMillis() argument 581 long when = restartTime(now); in nextActionMillis() 582 if (when <= now) { in nextActionMillis() 585 return when - now; in nextActionMillis()
|
D | DownloadService.java | 352 final long now = mSystemFacade.currentTimeMillis(); in updateLocked() local 371 updateDownload(reader, info, now); in updateLocked() 373 info = insertDownloadLocked(reader, now); in updateLocked() 402 nextActionMillis = Math.min(info.nextActionMillis(now), nextActionMillis); in updateLocked() 425 mAlarmManager.set(AlarmManager.RTC_WAKEUP, now + nextActionMillis, in updateLocked() 436 private DownloadInfo insertDownloadLocked(DownloadInfo.Reader reader, long now) { in insertDownloadLocked() argument 450 private void updateDownload(DownloadInfo.Reader reader, DownloadInfo info, long now) { in updateDownload() argument
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictDecoderEncoderTests.java | 178 long now = -1, diff = -1; in timeWritingDictToFile() local 183 now = System.currentTimeMillis(); in timeWritingDictToFile() 188 diff = System.currentTimeMillis() - now; in timeWritingDictToFile() 245 long now, diff = -1; in timeReadingAndCheckDict() local 251 now = System.currentTimeMillis(); in timeReadingAndCheckDict() 253 diff = System.currentTimeMillis() - now; in timeReadingAndCheckDict() 409 long now = -1, diff = -1; 413 now = System.currentTimeMillis(); 415 diff = System.currentTimeMillis() - now; 508 final long now = System.nanoTime(); [all …]
|
/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/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/DeskClock/src/com/android/alarmclock/ |
D | DigitalWidgetViewsFactory.java | 98 final Calendar now = Calendar.getInstance(); in updateView() local 99 now.setTimeInMillis(System.currentTimeMillis()); in updateView() 100 int myDayOfWeek = now.get(Calendar.DAY_OF_WEEK); in updateView() 103 now.setTimeZone(TimeZone.getTimeZone(cityTZ)); in updateView() 104 int cityDayOfWeek = now.get(Calendar.DAY_OF_WEEK); in updateView() 118 R.string.world_day_of_week_label, now.getDisplayName( in updateView()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | DateTimeActivity.java | 123 Calendar now = Calendar.getInstance(); in setSampleDate() local 124 mDummyDate.setTimeZone(now.getTimeZone()); in setSampleDate() 127 mDummyDate.set(now.get(Calendar.YEAR), 11, 31, 15, 14, 0); in setSampleDate() 199 final Calendar now = Calendar.getInstance(); in updateTimeAndDateStrings() local 201 mNowDate = dateFormat.format(now.getTime()); in updateTimeAndDateStrings() 203 mNowTime = timeFormat.format(now.getTime()); in updateTimeAndDateStrings() 472 final Calendar now = Calendar.getInstance(); in getCurrentTimeZoneName() local 473 TimeZone tz = now.getTimeZone(); in getCurrentTimeZoneName()
|
/packages/apps/Email/tests/src/com/android/email/service/ |
D | AttachmentServiceTests.java | 409 final long now = System.currentTimeMillis(); in testAttachmentWatchdogAlarm() local 415 dr.mLastCallbackTime = now; in testAttachmentWatchdogAlarm() 420 final boolean shouldCancel = watchdog.validateDownloadRequest(dr, 60000, now); in testAttachmentWatchdogAlarm() 434 final long now = System.currentTimeMillis(); in testAttachmentWatchdogAlarmNeedsCancel() local 440 dr.mLastCallbackTime = now - 60000; // Set this request to be 60 seconds old. in testAttachmentWatchdogAlarmNeedsCancel() 445 final boolean shouldCancel = watchdog.validateDownloadRequest(dr, 1000, now); in testAttachmentWatchdogAlarmNeedsCancel()
|
/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/src/com/android/calendar/ |
D | CalendarViewAdapter.java | 112 long now = System.currentTimeMillis(); in refresh() local 113 time.set(now); in refresh() 114 mTodayJulianDay = Time.getJulianDay(now, time.gmtoff); in refresh() 124 long now = System.currentTimeMillis(); in setMidnightHandler() local 126 time.set(now); in setMidnightHandler()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | DictionaryService.java | 199 final long now = System.currentTimeMillis(); in checkTimeAndMaybeSetupUpdateAlarm() local 200 final long alarmTime = now + new Random().nextInt(MAX_ALARM_DELAY); in checkTimeAndMaybeSetupUpdateAlarm() 217 final long now = System.currentTimeMillis(); in isLastUpdateAtLeastThisOld() local 220 return lastUpdate + time < now; in isLastUpdateAtLeastThisOld()
|
/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/apps/Settings/src/com/android/settings/location/ |
D | RecentLocationApps.java | 112 final long now = System.currentTimeMillis(); in getAppList() local 129 Preference preference = getPreferenceFromOps(um, now, ops); in getAppList() 146 private Preference getPreferenceFromOps(final UserManager um, long now, in getPreferenceFromOps() argument 153 long recentLocationCutoffTime = now - RECENT_TIME_INTERVAL_MILLIS; in getPreferenceFromOps()
|