/packages/inputmethods/LatinIME/native/jni/src/utils/ |
H A D | time_keeper.cpp | 32 /* static */ void TimeKeeper::startTestModeWithForceCurrentTime(const int currentTime) { argument 33 sCurrentTime = currentTime;
|
H A D | time_keeper.h | 28 static void startTestModeWithForceCurrentTime(const int currentTime);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | Alarm.java | 44 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 D | FirstFrameAnimatorHelper.java | 88 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 D | Alarm.java | 44 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 D | FirstFrameAnimatorHelper.java | 90 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 D | CameraPerformanceTracker.java | 66 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 D | CityGmtOffsetComparator.java | 27 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 D | DelayedTaskHandler.java | 47 final long currentTime = SystemClock.elapsedRealtime(); 50 ((mLastTaskExecuteTime + mDelayMs) < currentTime)) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | ControllerOverlay.java | 54 void setTimes(int currentTime, int totalTime, argument
|
H A D | TrimControllerOverlay.java | 84 public void setTimes(int currentTime, int totalTime, int trimStartTime, int trimEndTime) { argument 85 mTimeBar.setTime(currentTime, totalTime, trimStartTime, trimEndTime);
|
H A D | VideoUtils.java | 267 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 D | AlertServiceTest.java | 401 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 D | com_android_inputmethod_latin_BinaryDictionaryUtils.cpp | 72 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 D | BinaryDictionaryUtils.java | 47 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 D | SearchSettingsImpl.java | 153 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 D | CalendarInteractionUtils.java | 38 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 D | AlertService.java | 257 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 D | AlarmStateManager.java | 649 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 D | Alarm.java | 319 * @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 D | CallLogGroupBuilder.java | 116 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 D | Profile.java | 106 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 D | SearchBaseUrlHelper.java | 77 long currentTime = System.currentTimeMillis(); 80 currentTime - lastUpdateTime >= SEARCH_BASE_URL_EXPIRY_MS) {
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/ |
H A D | UserHistoryDictionaryTestsHelper.java | 74 * @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 D | ContactsManager.java | 84 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);
|