Searched defs:now (Results 1 - 17 of 17) sorted by relevance

/packages/apps/Calendar/tests/src/com/android/calendar/widget/
H A DCalendarAppWidgetServiceTest.java43 long now; field in class:CalendarAppWidgetServiceTest
66 // long now = 1270000000000L;
67 // MarkedEvents events = CalendarAppWidgetService.buildMarkedEvents(cursor, null, now);
69 // getTestContext(), cursor, events, now);
87 now = time.normalize(false);
106 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title, location, 0));
113 eventInfo.when = Utils.formatDateRange(getContext(), now + ONE_HOUR, now + TWO_HOURS,
140 eventInfo.when = Utils.formatDateRange(context, now
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DFadeTexture.java40 mStartTime = now();
66 if (now() - mStartTime >= DURATION) {
74 float r = (float)(now() - mStartTime) / DURATION;
78 private long now() { method in class:FadeTexture
/packages/apps/DeskClock/src/com/android/deskclock/timer/
H A DTimerReceiver.java190 long now = Utils.getTimeNow();
197 long timeLeft = timerIsTicking ? timer.getTimesupTime() - now : timer.mTimeLeft;
200 nextBroadcastTime = getBroadcastTime(now, timeLeft);
203 TimerObj timer = getNextRunningTimer(timersInUse, false, now);
214 long timeLeft = completionTime - now;
218 TimerObj timerWithUpdate = getNextRunningTimer(timersInUse, true, now);
221 timeLeft = completionTime - now;
222 nextBroadcastTime = getBroadcastTime(now, timeLeft);
225 nextBroadcastTime = getBroadcastTime(now, timeLeft);
232 private long getBroadcastTime(long now, lon argument
328 getNextRunningTimer( ArrayList<TimerObj> timers, boolean requireNextUpdate, long now) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DPaper.java127 mStartTime = now();
155 float t = Utils.clamp((float)(now() - mStartTime) / mDuration, 0.0f, 1.0f);
180 private long now() { method in class:EdgeAnimation
/packages/apps/Nfc/nci/jni/
H A DNfcTag.cpp233 struct timespec now; local
234 clock_gettime(CLOCK_REALTIME, &now);
242 if (TimeDiff(mLastKovioTime, now) < 500)
257 mLastKovioTime = now;
H A DSecureElement.cpp364 struct timespec now; local
365 int ret = clock_gettime(CLOCK_MONOTONIC, &now);
370 if (TimeDiff(mLastRfFieldToggle, now) < 50) {
1259 NFA_EeUpdateNow (); //apply new routes now
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DUserHistoryForgettingCurveUtils.java52 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/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadService.java294 final long now = mSystemFacade.currentTimeMillis();
313 updateDownload(reader, info, now);
315 info = insertDownloadLocked(reader, now);
344 nextActionMillis = Math.min(info.nextActionMillis(now), nextActionMillis);
367 mAlarmManager.set(AlarmManager.RTC_WAKEUP, now + nextActionMillis,
378 private DownloadInfo insertDownloadLocked(DownloadInfo.Reader reader, long now) { argument
393 private void updateDownload(DownloadInfo.Reader reader, DownloadInfo info, long now) { argument
H A DDownloadInfo.java303 public long restartTime(long now) { argument
305 return now;
336 final long now = mSystemFacade.currentTimeMillis();
337 return restartTime(now) <= now;
558 public long nextActionMillis(long now) { argument
565 long when = restartTime(now);
566 if (when <= now) {
569 return when - now;
605 // downloads; this is safe default for now
[all...]
/packages/apps/Calendar/src/com/android/calendar/widget/
H A DCalendarAppWidgetService.java250 final long now = System.currentTimeMillis();
251 if (!eventInfo.allDay && eventInfo.start <= now && now <= eventInfo.end) {
364 * Query across all calendars for upcoming event instances from now
377 // Search for events from now until some time in the future
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) { argument
433 if (now < star
610 formatDebugTime(long unixTime, long now) argument
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DMosaicFrameProcessor.java193 public void calculateTranslationRate(long now) { argument
204 mLastProcessedFrameTimestamp = now;
216 mDeltaTime[idx] = (now - mLastProcessedFrameTimestamp) / 1000.0f;
234 mLastProcessedFrameTimestamp = now;
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEditEventHelper.java152 // This allows us to flag the event if something is wrong with it, right now
601 protected long constructDefaultStartTime(long now) { argument
603 defaultStart.set(now);
607 if (now < defaultStartMillis) {
991 // not sure why this needs to be zero, but set it for now.
1084 // For now the array contains the values 0, 2, and 3. We subtract
1286 // For now the array contains the values 0, 2, and 3. We add one to match.
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DShortcutRepositoryImplLog.java265 final long now = System.currentTimeMillis();
266 reportClickAtTime(suggestions, position, now);
271 final long now = System.currentTimeMillis();
275 allowWebSearchShortcuts, now);
317 boolean allowWebSearchShortcuts, long now) {
320 String[] params = buildShortcutQueryParams(query, now);
473 private static String[] buildShortcutQueryParams(String query, long now) { argument
474 return new String[]{ query, nextString(query), String.valueOf(now) };
639 int position, long now) {
671 click.put(ClickLog.hit_time.name(), now);
316 getShortcutsForQuery(String query, Collection<Corpus> allowedCorpora, boolean allowWebSearchShortcuts, long now) argument
638 reportClickAtTime(SuggestionCursor suggestion, int position, long now) argument
[all...]
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DShortcutRepositoryTest.java785 protected void reportClick(String query, SuggestionData suggestion, long now) { argument
786 reportClickAtTime(new ListSuggestionCursor(query, suggestion), 0, now);
793 protected void reportClickAtTime(SuggestionCursor suggestions, int position, long now) { argument
794 mRepo.reportClickAtTime(suggestions, position, now);
845 protected void sourceImpression(Source source, boolean click, long now) { argument
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A 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; 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/inputmethods/OpenWnn/libs/libwnnDictionary/include/
H A Dnj_lib.h121 NJ_UINT8 *now; member in struct:__anon35
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
H A DResearchLogger.java272 final long now) {
274 if (now - lastCleanupTime < DURATION_BETWEEN_DIR_CLEANUP_IN_MS) return;
275 final long oldestAllowedFileTime = now - MAX_LOGFILE_AGE_IN_MS;
277 ResearchSettings.writeResearchLastDirCleanupTime(mPrefs, now);
697 // MainLogBuffer now has an out-of-date Suggest object. Close down MainLogBuffer and create
271 cleanLogDirectoryIfNeeded(final ResearchLogDirectory researchLogDirectory, final long now) argument

Completed in 449 milliseconds