Searched refs:currentTime (Results 1 - 25 of 48) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/utils/
H A Dtime_keeper.cpp32 /* static */ void TimeKeeper::startTestModeWithForceCurrentTime(const int currentTime) { argument
33 sCurrentTime = currentTime;
H A Dtime_keeper.h28 static void startTestModeWithForceCurrentTime(const int currentTime);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DAlarm.java44 long currentTime = System.currentTimeMillis();
46 mAlarmTriggerTime = currentTime + millisecondsInFuture;
48 mHandler.postDelayed(this, mAlarmTriggerTime - currentTime);
62 long currentTime = System.currentTimeMillis();
63 if (mAlarmTriggerTime > currentTime) {
66 mHandler.postDelayed(this, Math.max(0, mAlarmTriggerTime - currentTime));
H A DFirstFrameAnimatorHelper.java88 final long currentTime = System.currentTimeMillis();
91 mStartTime = currentTime;
107 if (frameNum == 0 && currentTime < mStartTime + MAX_DELAY) {
116 } else if (frameNum == 1 && currentTime < mStartTime + MAX_DELAY &&
118 currentTime > mStartTime + IDEAL_FRAME_DURATION) {
/packages/apps/Launcher3/src/com/android/launcher3/
H A DAlarm.java44 long currentTime = System.currentTimeMillis();
46 mAlarmTriggerTime = currentTime + millisecondsInFuture;
48 mHandler.postDelayed(this, mAlarmTriggerTime - currentTime);
62 long currentTime = System.currentTimeMillis();
63 if (mAlarmTriggerTime > currentTime) {
66 mHandler.postDelayed(this, Math.max(0, mAlarmTriggerTime - currentTime));
H A DFirstFrameAnimatorHelper.java90 final long currentTime = System.currentTimeMillis();
93 mStartTime = currentTime;
110 if (frameNum == 0 && currentTime < mStartTime + MAX_DELAY && currentPlayTime > 0) {
118 } else if (frameNum == 1 && currentTime < mStartTime + MAX_DELAY &&
120 currentTime > mStartTime + IDEAL_FRAME_DURATION &&
/packages/apps/Camera2/src/android/util/
H A DCameraPerformanceTracker.java66 long currentTime = System.currentTimeMillis();
69 sInstance.mAppStartTime = currentTime;
75 sInstance.mAppResumeTime = currentTime;
82 currentTime - sInstance.mAppStartTime;
86 currentTime - sInstance.mAppResumeTime;
90 sInstance.mModeSwitchDuration = currentTime - sInstance.mModeSwitchStartTime;
95 sInstance.mModeSwitchStartTime = currentTime;
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
H A DCityGmtOffsetComparator.java27 long currentTime = System.currentTimeMillis();
28 int offset = TimeZone.getTimeZone(c1.mTimeZone).getOffset(currentTime);
29 int offset2 = TimeZone.getTimeZone(c2.mTimeZone).getOffset(currentTime);
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DDelayedTaskHandler.java47 final long currentTime = SystemClock.elapsedRealtime();
50 ((mLastTaskExecuteTime + mDelayMs) < currentTime)) {
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DControllerOverlay.java54 void setTimes(int currentTime, int totalTime, argument
H A DTrimControllerOverlay.java84 public void setTimes(int currentTime, int totalTime, int trimStartTime, int trimEndTime) { argument
85 mTimeBar.setTime(currentTime, totalTime, trimStartTime, trimEndTime);
H A DVideoUtils.java267 double currentTime = 0;
277 if (currentTime <= startTime) {
281 if (currentTime <= endTime) {
289 currentTime += (double) entry.getDelta()
304 double currentTime = 0;
312 track.getSyncSamples(), currentSample + 1)] = currentTime;
314 currentTime += (double) entry.getDelta()
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
H A DAlertServiceTest.java401 long currentTime = 1000000;
403 at.getAlertCursor(), currentTime, AlertService.MAX_NOTIFICATIONS);
419 long currentTime = 1000000;
422 AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), currentTime,
428 currentTime = 2300000;
431 AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), currentTime,
436 currentTime = 4300000;
439 AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), currentTime,
453 long currentTime = createTimeInMillis(5, 0);
492 currentTime, maxNotification
[all...]
/packages/inputmethods/LatinIME/native/jni/
H A Dcom_android_inputmethod_latin_BinaryDictionaryUtils.cpp72 jint currentTime) {
73 if (currentTime >= 0) {
74 TimeKeeper::startTestModeWithForceCurrentTime(currentTime);
71 latinime_BinaryDictionaryUtils_setCurrentTimeForTest(JNIEnv *env, jclass clazz, jint currentTime) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DBinaryDictionaryUtils.java47 private static native int setCurrentTimeForTestNative(int currentTime); argument
116 * Control the current time to be used in the native code. If currentTime >= 0, this method sets
119 * If currentTime < 0, quit the test mode and returns to using time() to get the current time.
121 * @param currentTime seconds since the unix epoch
125 public static int setCurrentTimeForTest(final int currentTime) { argument
126 return setCurrentTimeForTestNative(currentTime);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSearchSettingsImpl.java153 long currentTime = System.currentTimeMillis();
159 .putLong(FIRST_VOICE_HINT_DISPLAY_TIME, currentTime));
160 firstHintTime = currentTime;
162 if (currentTime - firstHintTime > getConfig().getVoiceSearchHintActivePeriod()) {
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DCalendarInteractionUtils.java38 Time currentTime = new Time(localTimezone);
39 currentTime.set(currentMillis);
46 if (singleDayEvent(localStartMillis, localEndMillis, currentTime.gmtoff)) {
49 localStartMillis, currentMillis, currentTime.gmtoff);
64 if (singleDayEvent(startMillis, endMillis, currentTime.gmtoff)) {
71 currentMillis, currentTime.gmtoff);
/packages/apps/Calendar/src/com/android/calendar/alerts/
H A DAlertService.java257 final long currentTime = System.currentTimeMillis();
261 Long.toString(currentTime), Integer.toString(CalendarAlerts.STATE_SCHEDULED)
269 final long currentTime = System.currentTimeMillis();
290 (ACTIVE_ALERTS_SELECTION + currentTime), ACTIVE_ALERTS_SELECTION_ARGS,
304 alertCursor, currentTime, MAX_NOTIFICATIONS);
309 final long currentTime, final int maxNotifications) {
318 int numFired = processQuery(alertCursor, context, currentTime, highPriorityEvents,
349 nextRefreshTime = Math.min(nextRefreshTime, getNextRefreshTime(info, currentTime));
367 nextRefreshTime = Math.min(nextRefreshTime, getNextRefreshTime(info, currentTime));
421 if (nextRefreshTime < Long.MAX_VALUE && nextRefreshTime > currentTime) {
307 generateAlerts(Context context, NotificationMgr nm, AlarmManagerInterface alarmMgr, SharedPreferences prefs, Cursor alertCursor, final long currentTime, final int maxNotifications) argument
513 getNextRefreshTime(NotificationInfo info, long currentTime) argument
550 processQuery(final Cursor alertCursor, final Context context, final long currentTime, ArrayList<NotificationInfo> highPriorityEvents, ArrayList<NotificationInfo> mediumPriorityEvents, ArrayList<NotificationInfo> lowPriorityEvents) argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
H A DAlarmStateManager.java649 final Calendar currentTime = getCurrentTime();
664 boolean hasTimeout = timeoutTime != null && currentTime.after(timeoutTime);
670 if (currentTime.before(alarmTime)) {
688 if (currentTime.before(alarmTime)) {
697 if (currentTime.after(missedTTL)) {
700 } else if (currentTime.after(alarmTime)) {
707 if (currentTime.before(alarmBuffer)) {
718 } else if (currentTime.after(highNotificationTime)) {
720 } else if (currentTime.after(lowNotificationTime)) {
763 final Calendar currentTime
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/provider/
H A DAlarm.java319 * @param currentTime
322 public Calendar getPreviousAlarmTime(Calendar currentTime) { argument
324 previousInstanceTime.set(Calendar.YEAR, currentTime.get(Calendar.YEAR));
325 previousInstanceTime.set(Calendar.MONTH, currentTime.get(Calendar.MONTH));
326 previousInstanceTime.set(Calendar.DAY_OF_MONTH, currentTime.get(Calendar.DAY_OF_MONTH));
341 public Calendar getNextAlarmTime(Calendar currentTime) { argument
343 nextInstanceTime.set(Calendar.YEAR, currentTime.get(Calendar.YEAR));
344 nextInstanceTime.set(Calendar.MONTH, currentTime.get(Calendar.MONTH));
345 nextInstanceTime.set(Calendar.DAY_OF_MONTH, currentTime.get(Calendar.DAY_OF_MONTH));
351 // If we are still behind the passed in currentTime, the
[all...]
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DCallLogGroupBuilder.java116 long currentTime = System.currentTimeMillis();
132 int currentGroupDayGroup = getDayGroup(firstDate, currentTime);
175 currentGroupDayGroup = getDayGroup(date, currentTime);
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DProfile.java106 int currentTime = (int) (System.nanoTime() / NS_PER_MS);
110 if (currentTime > entry.wakeTime) {
121 long delay = nextWakeTime - currentTime;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
H A DSearchBaseUrlHelper.java77 long currentTime = System.currentTimeMillis();
80 currentTime - lastUpdateTime >= SEARCH_BASE_URL_EXPIRY_MS) {
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
H A DUserHistoryDictionaryTestsHelper.java74 * @param currentTime timestamp that would be used for adding the words.
79 final int currentTime) {
82 addWordsToDictionary(dict, words, currentTime);
77 addAndWriteRandomWords(final UserHistoryDictionary dict, final int numberOfWords, final Random random, final boolean checkContents, final int currentTime) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DContactsManager.java84 void computeAffinity(final int maxTimesContacted, final long currentTime) { argument
87 Math.max(0, currentTime - mLastContactedTime),
181 final long currentTime = System.currentTimeMillis();
183 contact.computeAffinity(maxTimesContacted, currentTime);

Completed in 934 milliseconds

12