Home
last modified time | relevance | path

Searched refs:mStartTime (Results 1 – 25 of 33) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/anim/
DAnimation.java52 private long mStartTime = NO_ANIMATION; field in Animation
65 mStartTime = ANIMATION_START; in start()
69 mStartTime = time; in setStartTime()
73 return mStartTime != NO_ANIMATION; in isActive()
77 mStartTime = NO_ANIMATION; in forceStop()
81 if (mStartTime == NO_ANIMATION) return false; in calculate()
82 if (mStartTime == ANIMATION_START) mStartTime = currentTimeMillis; in calculate()
83 int elapse = (int) (currentTimeMillis - mStartTime); in calculate()
87 if (elapse >= mDuration) mStartTime = NO_ANIMATION; in calculate()
88 return mStartTime != NO_ANIMATION; in calculate()
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventView.java217 private Time mStartTime; field in EditEventView
243 Time startTime = mStartTime; in onTimeSet()
341 Time startTime = mStartTime; in onDateSet()
398 long startMillis = mStartTime.toMillis(false /* use isDst */); in populateWhen()
406 mStartDateButton.setOnClickListener(new DateClickListener(mStartTime)); in populateWhen()
409 mStartTimeButton.setOnClickListener(new TimeClickListener(mStartTime)); in populateWhen()
422 mStartTime.timezone = mTimezone; in setTimezone()
423 long timeMillis = mStartTime.normalize(true); in setTimezone()
443 b.putLong(TimeZonePickerDialog.BUNDLE_START_TIME_MILLIS, mStartTime.toMillis(false)); in showTimezoneDialog()
600 mStartTime.toMillis(false)); in onClick()
[all …]
/packages/apps/Calendar/src/com/android/calendar/alerts/
DGlobalDismissManager.java55 public final long mStartTime; field in GlobalDismissManager.GlobalDismissId
66 mStartTime = startTime; in GlobalDismissId()
80 if (mStartTime != that.mStartTime) { in equals()
97 result = 31 * result + (int) (mStartTime ^ (mStartTime >>> 32)); in hashCode()
106 public final long mStartTime; field in GlobalDismissManager.LocalDismissId
119 mStartTime = startTime; in LocalDismissId()
136 if (mStartTime != that.mStartTime) { in equals()
154 result = 31 * result + (int) (mStartTime ^ (mStartTime >>> 32)); in hashCode()
310 long startTime = dismissId.mStartTime; in syncSenderDismissCache()
505 CalendarAlerts.BEGIN + "=" + globalDismissId.mStartTime; in syncReceiverDismissCache()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchService.java28 private long mStartTime; field in StopwatchService
46 mStartTime = 0; in onCreate()
57 if (mStartTime == 0 || mElapsedTime == 0 || mNumLaps == 0) { in onStartCommand()
67 mStartTime = actionTime; in onStartCommand()
68 writeSharedPrefsStarted(mStartTime, updateCircle); in onStartCommand()
70 setNotification(mStartTime - mElapsedTime, true, mNumLaps); in onStartCommand()
72 saveNotification(mStartTime - mElapsedTime, true, mNumLaps); in onStartCommand()
76 long lapTimeElapsed = actionTime - mStartTime + mElapsedTime; in onStartCommand()
79 setNotification(mStartTime - mElapsedTime, true, mNumLaps); in onStartCommand()
81 saveNotification(mStartTime - mElapsedTime, true, mNumLaps); in onStartCommand()
[all …]
DStopwatchFragment.java60 long mStartTime = 0; field in StopwatchFragment
266 mAccumulatedTime += (curTime - mStartTime); in toggleStopwatchState()
491 mStartTime = time; in doStart()
575 final long curTime = time - mStartTime + mAccumulatedTime; in addLapTime()
695 long totalTime = mAccumulatedTime + (curTime - mStartTime);
708 editor.putLong (Stopwatches.PREF_START_TIME, mStartTime); in writeToSharedPref()
722 editor.putLong(Stopwatches.NOTIF_CLOCK_BASE, mStartTime-mAccumulatedTime); in writeToSharedPref()
739 mStartTime = prefs.getLong(Stopwatches.PREF_START_TIME, 0); in readFromSharedPref()
761 doStart(mStartTime); in readFromSharedPref()
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DOverScrollerSGV.java305 final long elapsedTime = time - mScrollerX.mStartTime; in computeScrollOffset()
530 final long startTime = Math.min(mScrollerX.mStartTime, mScrollerY.mStartTime); in timePassed()
564 private long mStartTime; field in OverScrollerSGV.SplineOverScroller
690 mStartTime = AnimationUtils.currentAnimationTimeMillis(); in startScroll()
713 final int elapsedTime = (int) (time - mStartTime); in extendDuration()
724 mStartTime = AnimationUtils.currentAnimationTimeMillis(); in springback()
755 mStartTime = AnimationUtils.currentAnimationTimeMillis(); in fling()
810 mStartTime -= (int) (1000.0f * (totalDuration - durationToApex)); in fitOnBounceCurve()
849 mStartTime = AnimationUtils.currentAnimationTimeMillis(); in notifyEdgeReached()
883 mStartTime += mDuration; in continueWhenFinished()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java303 final long elapsedTime = time - mScrollerX.mStartTime; in computeScrollOffset()
528 final long startTime = Math.min(mScrollerX.mStartTime, mScrollerY.mStartTime); in timePassed()
562 private long mStartTime; field in OverScroller.SplineOverScroller
691 mStartTime = AnimationUtils.currentAnimationTimeMillis(); in startScroll()
714 final int elapsedTime = (int) (time - mStartTime); in extendDuration()
725 mStartTime = AnimationUtils.currentAnimationTimeMillis(); in springback()
756 mStartTime = AnimationUtils.currentAnimationTimeMillis(); in fling()
811 mStartTime -= (int) (1000.0f * (totalDuration - durationToApex)); in fitOnBounceCurve()
849 mStartTime = AnimationUtils.currentAnimationTimeMillis(); in notifyEdgeReached()
883 mStartTime += mDuration; in continueWhenFinished()
[all …]
DScroller.java50 private long mStartTime; field in Scroller
254 int timePassed = (int)(AnimationUtils.currentAnimationTimeMillis() - mStartTime); in computeScrollOffset()
338 mStartTime = AnimationUtils.currentAnimationTimeMillis(); in startScroll()
397 mStartTime = AnimationUtils.currentAnimationTimeMillis(); in fling()
471 return (int)(AnimationUtils.currentAnimationTimeMillis() - mStartTime); in timePassed()
/packages/apps/Music/src/com/android/music/
DRepeatingImageButton.java33 private long mStartTime; field in RepeatingImageButton
65 mStartTime = SystemClock.elapsedRealtime(); in performLongClick()
76 if (mStartTime != 0) { in onTouchEvent()
78 mStartTime = 0; in onTouchEvent()
104 if (mStartTime != 0) { in onKeyUp()
106 mStartTime = 0; in onKeyUp()
124 mListener.onRepeat(this, now - mStartTime, last ? -1 : mRepeatCount++); in doRepeat()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerObj.java46 public long mStartTime; // With mTimeLeft , used to calculate the correct time field in TimerObj
89 editor.putLong(PREF_START_TIME + id, mStartTime); in writeToSharedPref()
105 mStartTime = prefs.getLong(key, 0); in readFromSharedPref()
157 dest.writeLong(mStartTime); in writeToParcel()
167 mStartTime = p.readLong(); in TimerObj()
197 mStartTime = Utils.getTimeNow(); in init()
215 mTimeLeft = mOriginalLength - (millis - mStartTime); in updateTimeLeft()
235 mTimeLeft = mOriginalLength - (Utils.getTimeNow() - mStartTime); in addTime()
246 return mStartTime + mOriginalLength; in getTimesupTime()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DEdgeEffect.java105 private long mStartTime; field in EdgeEffect
186 if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) { in onPull()
194 mStartTime = now; in onPull()
250 mStartTime = AnimationTime.get(); in onRelease()
268 mStartTime = AnimationTime.get(); in onAbsorb()
350 final float t = Math.min((time - mStartTime) / mDuration, 1.f); in update()
363 mStartTime = AnimationTime.get(); in update()
379 mStartTime = AnimationTime.get(); in update()
DPaper.java114 private long mStartTime; field in EdgeAnimation
127 mStartTime = now(); in startAnimation()
155 float t = Utils.clamp((float)(now() - mStartTime) / mDuration, 0.0f, 1.0f); in update()
/packages/apps/Launcher2/src/com/android/launcher2/
DFirstFrameAnimatorHelper.java39 private long mStartTime = -1; field in FirstFrameAnimatorHelper
89 if (mStartTime == -1) { in onAnimationUpdate()
91 mStartTime = currentTime; in onAnimationUpdate()
107 if (frameNum == 0 && currentTime < mStartTime + MAX_DELAY) { in onAnimationUpdate()
116 } else if (frameNum == 1 && currentTime < mStartTime + MAX_DELAY && in onAnimationUpdate()
118 currentTime > mStartTime + IDEAL_FRAME_DURATION) { in onAnimationUpdate()
/packages/apps/Launcher3/src/com/android/launcher3/
DFirstFrameAnimatorHelper.java39 private long mStartTime = -1; field in FirstFrameAnimatorHelper
89 if (mStartTime == -1) { in onAnimationUpdate()
91 mStartTime = currentTime; in onAnimationUpdate()
108 if (frameNum == 0 && currentTime < mStartTime + MAX_DELAY && currentPlayTime > 0) { in onAnimationUpdate()
116 } else if (frameNum == 1 && currentTime < mStartTime + MAX_DELAY && in onAnimationUpdate()
118 currentTime > mStartTime + IDEAL_FRAME_DURATION && in onAnimationUpdate()
DLauncherScroller.java47 private long mStartTime; field in LauncherScroller
283 int timePassed = (int)(AnimationUtils.currentAnimationTimeMillis() - mStartTime); in computeScrollOffset()
375 mStartTime = AnimationUtils.currentAnimationTimeMillis(); in startScroll()
433 mStartTime = AnimationUtils.currentAnimationTimeMillis(); in fling()
523 return (int)(AnimationUtils.currentAnimationTimeMillis() - mStartTime); in timePassed()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DEyePosition.java65 private long mStartTime = NOT_STARTED; field in EyePosition
98 mStartTime = NOT_STARTED; in resetPosition()
151 mStartTime = now; in onGyroscopeChanged()
163 float t = (now - mStartTime) / 1000f * mUserDistance * (-mZ); in onGyroscopeChanged()
164 mStartTime = now; in onGyroscopeChanged()
220 mStartTime = NOT_STARTED; in resume()
/packages/apps/UnifiedEmail/src/com/android/mail/
DMinTimeProgressView.java37 private long mStartTime = -1; field in MinTimeProgressView
66 mStartTime = System.currentTimeMillis();
74 long diff = System.currentTimeMillis() - mStartTime; in hide()
75 if (diff >= sMinShowTime || mStartTime == -1) { in hide()
90 mStartTime = -1; in show()
DMinTimeProgressDialog.java39 private long mStartTime = -1; field in MinTimeProgressDialog
74 long diff = System.currentTimeMillis() - mStartTime; in dismiss()
75 if (diff >= mMinShowTime || mStartTime == -1) { in dismiss()
109 mStartTime = System.currentTimeMillis(); in onShow()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
DServiceProxy.java59 private long mStartTime; field in ServiceProxy
104 (System.currentTimeMillis() - mStartTime) + "ms"); in onServiceConnected()
152 (System.currentTimeMillis() - mStartTime) + "ms"); in onServiceDisconnected()
177 mStartTime = System.currentTimeMillis(); in setTask()
229 (System.currentTimeMillis() - mStartTime) + "ms"); in test()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DLatencyTracker.java31 private long mStartTime; field in LatencyTracker
37 mStartTime = SystemClock.uptimeMillis(); in LatencyTracker()
44 mStartTime = SystemClock.uptimeMillis(); in reset()
52 return (int) (now - mStartTime); in getLatency()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DFadeTexture.java30 private final long mStartTime; field in FadeTexture
40 mStartTime = now(); in FadeTexture()
66 if (now() - mStartTime >= DURATION) { in isAnimating()
74 float r = (float)(now() - mStartTime) / DURATION; in getRatio()
/packages/apps/Email/provider_src/com/android/email/service/
DAttachmentService.java182 long mStartTime; field in AttachmentService.DownloadRequest
224 mStartTime = orig.mStartTime; in DownloadRequest()
1010 req.mStartTime = System.currentTimeMillis(); in startDownload()
1307 LogUtils.d(LOG_TAG, "Start Time: %d", req.mStartTime); in dumpInProgressDownloads()
1362 pw.println(" Started: " + req.mStartTime + ", Callback: " + in dump()
1364 pw.println(" Elapsed: " + ((time - req.mStartTime) / 1000L) + "s"); in dump()
/packages/apps/Nfc/src/com/android/nfc/beam/
DBeamTransferManager.java138 Long mStartTime; field in BeamTransferManager
150 mStartTime = 0L; in BeamTransferManager()
182 if (mStartTime > 0) { in start()
187 mStartTime = System.currentTimeMillis(); in start()
294 notBuilder.setWhen(mStartTime); in updateNotification()
/packages/apps/UnifiedEmail/src/com/android/mail/perf/
DSimpleTimer.java35 private long mStartTime; field in SimpleTimer
58 mStartTime = mLastMarkTime = SystemClock.uptimeMillis(); in start()
65 LogUtils.d(getTag(), "[%s] %sms elapsed (%sms since last mark)", msg, now - mStartTime, in mark()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAddAccessoryActivity.java119 private static long mStartTime; field in AddAccessoryActivity
297 mStartTime = SystemClock.elapsedRealtime(); in onStart()
436 if (mActionView == null || mStartTime == 0) { in updateView()
475 long delay = ANIMATE_IN_DELAY - (SystemClock.elapsedRealtime() - mStartTime); in updateView()

12