Home
last modified time | relevance | path

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

123

/packages/wallpapers/Basic/res/raw/
Dgrass.rs92 float brightness, float xOffset, float now) {
114 float newAngle = (turbulencef2(turbulenceX, now, 4.0f) - 0.5f) * 0.5f;
201 float now = uptimeMillis() * 0.00004f;
204 int offset = drawBlade(bladeStruct, bladeBuffer, bladeColor, brightness, xOffset, now);
220 float now = time(State->isPreview);
229 if (now >= 0.0f && now < dawn) { // Draw night
232 } else if (now >= dawn && now <= morning) { // Draw sunrise
234 if (now <= half) { // Draw night->sunrise
236 newB = normf(dawn, half, now);
241 alpha(normf(half, morning, now));
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarAppWidgetService.java108 long now = -1; in run() local
125 now = AppWidgetShared.sLastRequest; in run()
131 if (LOGD) Log.d(TAG, "processing requested update now=" + now); in run()
132 performUpdate(this, appWidgetIds, changedEventIds, now); in run()
146 Set<Long> changedEventIds, long now) { in performUpdate() argument
154 cursor = getUpcomingInstancesCursor(resolver, SEARCH_DURATION, now); in performUpdate()
156 MarkedEvents events = buildMarkedEvents(cursor, changedEventIds, now); in performUpdate()
198 if (triggerTime == -1 || triggerTime < now) { in performUpdate()
199 … if (LOGD) Log.w(TAG, "Encountered bad trigger time " + formatDebugTime(triggerTime, now)); in performUpdate()
200 triggerTime = now + UPDATE_NO_EVENTS; in performUpdate()
[all …]
DCalendarAppWidgetProvider.java200 long now = System.currentTimeMillis(); in performUpdate() local
202 long delta = Math.abs(now - AppWidgetShared.sLastRequest); in performUpdate()
221 if (LOGD) Log.d(TAG, "setting request now=" + now); in performUpdate()
222 AppWidgetShared.sLastRequest = now; in performUpdate()
/packages/apps/Launcher2/src/com/android/launcher2/
DSymmetricalLinearTween.java82 long now = SystemClock.uptimeMillis(); in start() local
83 long diff = now - mBase; in start()
84 mBase = now + diff - mDuration; in start()
93 long now = SystemClock.uptimeMillis();
94 long diff = now-base;
/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/wallpapers/Basic/src/com/android/wallpaper/nexus/
DNexusWallpaper.java71 public void step(long now) { } in step() argument
97 public Pulse(long now, int x, int y, int dx, int dy) { in Pulse() argument
99 start(now, x, y, dx, dy); in Pulse()
122 public void start(long now, int x, int y, int dx, int dy) { in start() argument
128 startTime = now; in start()
133 public void startRandomEdge(long now, boolean diag) { in startRandomEdge() argument
162 startTime = now + (long)(Math.random() * PULSE_DELAY); in startRandomEdge()
180 public void step(long now) { in step() argument
181 if (now < startTime) return; in step()
278 final long now = AnimationUtils.currentAnimationTimeMillis(); in initializeState() local
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadInfo.java123 public boolean isReadyToStart(long now) { in isReadyToStart() argument
146 if (restartTime() < now) { in isReadyToStart()
162 public boolean isReadyToRestart(long now) { in isReadyToRestart() argument
180 if (restartTime() < now) { in isReadyToRestart()
DDownloadService.java308 long now = System.currentTimeMillis(); in run() local
364 insertDownload(cursor, arrayPos, networkAvailable, networkRoaming, now); in run()
377 long next = nextAction(arrayPos, now); in run()
403 networkAvailable, networkRoaming, now); in run()
413 long next = nextAction(arrayPos, now); in run()
430 networkAvailable, networkRoaming, now); in run()
440 long next = nextAction(arrayPos, now); in run()
549 boolean networkAvailable, boolean networkRoaming, long now) { in insertDownload() argument
649 if (info.isReadyToStart(now)) { in insertDownload()
687 boolean networkAvailable, boolean networkRoaming, long now) { in updateDownload() argument
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DMonthActivity.java123 Time now = new Time(); in goToToday() local
124 now.set(System.currentTimeMillis()); in goToToday()
125 now.minute = 0; in goToToday()
126 now.second = 0; in goToToday()
127 now.normalize(false); in goToToday()
130 title.setText(Utils.formatMonthYear(now)); in goToToday()
131 mTime = now; in goToToday()
134 view.setSelectedTime(now); in goToToday()
DAgendaActivity.java217 Time now = new Time(); in goToToday() local
218 now.set(System.currentTimeMillis()); in goToToday()
219 goTo(now, true); in goToToday()
DAgendaByDayAdapter.java187 long now = System.currentTimeMillis(); in calculateDays() local
188 time.set(now); in calculateDays()
189 mTodayJulianDay = Time.getJulianDay(now, time.gmtoff); in calculateDays()
/packages/apps/Camera/src/com/android/camera/
DCameraHolder.java139 long now = System.currentTimeMillis(); in releaseCamera() local
140 if (now < mKeepBeforeTime) { in releaseCamera()
142 mKeepBeforeTime - now); in releaseCamera()
/packages/apps/Gallery/src/com/android/camera/
DCameraHolder.java139 long now = System.currentTimeMillis(); in releaseCamera() local
140 if (now < mKeepBeforeTime) { in releaseCamera()
142 mKeepBeforeTime - now); in releaseCamera()
/packages/apps/GlobalSearch/src/com/android/globalsearch/
DShortcutRepositoryImplLog.java202 ArrayList<SuggestionData> getShortcutsForQuery(String query, long now) { in getShortcutsForQuery() argument
204 String[] params = buildShortcutQueryParams(query, now); in getShortcutsForQuery()
229 private static String[] buildShortcutQueryParams(String query, long now) { in buildShortcutQueryParams() argument
230 return new String[]{ query, nextString(query), String.valueOf(now) }; in buildShortcutQueryParams()
316 void reportStats(SessionStats stats, long now) { in reportStats() argument
317 logClicked(stats, now); in reportStats()
318 logSourceEvents(stats, now); in reportStats()
319 postSourceEventCleanup(now); in reportStats()
351 private void logClicked(SessionStats stats, long now) { in logClicked() argument
383 cv.put(ClickLog.hit_time.name(), now); in logClicked() local
[all …]
DShortcutRefresher.java184 final long now = System.nanoTime(); in logLatency() local
189 long durationMillis = ms(now - mStartTime); in logLatency()
190 long total = ms(now - mScheduledTime); in logLatency()
DQueryMultiplexer.java263 final long now = System.nanoTime(); in logLatency() local
268 long durationMillis = ms(now - mStartTime); in logLatency()
269 long total = ms(now - mScheduledTime); in logLatency()
DSuggestionCursor.java382 long now = SystemClock.uptimeMillis(); in onNewResults() local
383 if (now < mNextNotify) { in onNewResults()
387 mNextNotify = now + CURSOR_NOTIFY_WINDOW_MS; in onNewResults()
/packages/apps/Mms/src/com/android/mms/ui/
DClassZeroActivity.java120 long now = SystemClock.uptimeMillis(); in onCreate() local
125 mTimerSet = now + DEFAULT_TIMER; in onCreate()
134 long now = SystemClock.uptimeMillis(); in onStart() local
135 if (mTimerSet <= now) { in onStart()
/packages/apps/Music/src/com/android/music/
DRepeatingImageButton.java122 long now = SystemClock.elapsedRealtime(); in doRepeat() local
124 mListener.onRepeat(this, now - mStartTime, last ? -1 : mRepeatCount++); in doRepeat()
/packages/inputmethods/LatinIME/src/com/android/inputmethod/latin/
DContactsDictionary.java75 long now = SystemClock.uptimeMillis(); in loadDictionaryAsyncLocked() local
77 || now - mLastLoadedContacts > 30 * 60 * 1000 /* 30 minutes */) { in loadDictionaryAsyncLocked()
/packages/apps/AlarmClock/src/com/android/alarmclock/
DAlarms.java240 long now = System.currentTimeMillis(); in calculateNextAlert() local
251 } else if (a.time < now) { in calculateNextAlert()
273 long now = System.currentTimeMillis(); in disableExpiredAlarms() local
280 if (alarm.time != 0 && alarm.time < now) { in disableExpiredAlarms()
282 Log.v("** DISABLE " + alarm.id + " now " + now +" set " in disableExpiredAlarms()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarms.java255 long now = System.currentTimeMillis(); in calculateNextAlert() local
266 } else if (a.time < now) { in calculateNextAlert()
288 long now = System.currentTimeMillis(); in disableExpiredAlarms() local
295 if (alarm.time != 0 && alarm.time < now) { in disableExpiredAlarms()
297 Log.v("** DISABLE " + alarm.id + " now " + now +" set " in disableExpiredAlarms()
DAlarmReceiver.java76 long now = System.currentTimeMillis(); in onReceive() local
82 if (now > alarm.time + STALE_WINDOW * 1000) { in onReceive()
/packages/apps/Mms/tests/src/com/android/mms/ui/
DComposeMessageActivityTests.java154 long now = System.currentTimeMillis(); in testSendMessage() local
158 if (System.currentTimeMillis() - now > 10000) { in testSendMessage()
/packages/apps/Phone/src/com/android/phone/
DCallTime.java86 long now = SystemClock.uptimeMillis(); in periodicUpdateTimer() local
89 while (now >= nextReport) { in periodicUpdateTimer()

123