Home
last modified time | relevance | path

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

/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/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/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/ui/
DFadeTexture.java29 private final long mStartTime; field in FadeTexture
39 mStartTime = now(); in FadeTexture()
65 if (now() - mStartTime >= DURATION) { in isAnimating()
73 float r = (float)(now() - mStartTime) / DURATION; in getRatio()
DEdgeEffect.java103 private long mStartTime; field in EdgeEffect
184 if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) { in onPull()
192 mStartTime = now; in onPull()
248 mStartTime = AnimationTime.get(); in onRelease()
266 mStartTime = AnimationTime.get(); in onAbsorb()
348 final float t = Math.min((time - mStartTime) / mDuration, 1.f); in update()
361 mStartTime = AnimationTime.get(); in update()
377 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/DeskClock/src/com/android/deskclock/timer/
DTimerObj.java41 public long mStartTime; // With mTimeLeft , used to calculate the correct time field in TimerObj
83 editor.putLong (key, mStartTime); in writeToSharedPref()
104 mStartTime = prefs.getLong(key, 0); in readFromSharedPref()
148 dest.writeLong(mStartTime); in writeToParcel()
158 mStartTime = p.readLong(); in TimerObj()
176 mStartTime = Utils.getTimeNow(); in init()
184 mTimeLeft = mOriginalLength - (millis - mStartTime); in updateTimeLeft()
198 mTimeLeft = mOriginalLength - (Utils.getTimeNow() - mStartTime); in addTime()
205 return mStartTime + mOriginalLength; in getTimesupTime()
DTimerFragment.java516 t.mTimeLeft = t.mOriginalLength - (now - t.mStartTime); in onResume()
748 t.mStartTime = Utils.getTimeNow();
787 t.mStartTime = Utils.getTimeNow() - (t.mOriginalLength - t.mTimeLeft);
805 t.mStartTime = Utils.getTimeNow() - (t.mOriginalLength - t.mTimeLeft);
954 t.mTimeLeft = t.mOriginalLength - (now - t.mStartTime);
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchService.java31 private long mStartTime; field in StopwatchService
49 mStartTime = 0; in onCreate()
60 if (mStartTime == 0 || mElapsedTime == 0 || mNumLaps == 0) { in onStartCommand()
70 mStartTime = actionTime; in onStartCommand()
71 writeSharedPrefsStarted(mStartTime, updateCircle); in onStartCommand()
73 setNotification(mStartTime - mElapsedTime, true, mNumLaps); in onStartCommand()
75 saveNotification(mStartTime - mElapsedTime, true, mNumLaps); in onStartCommand()
79 long lapTimeElapsed = actionTime - mStartTime + mElapsedTime; in onStartCommand()
82 setNotification(mStartTime - mElapsedTime, true, mNumLaps); in onStartCommand()
84 saveNotification(mStartTime - mElapsedTime, true, mNumLaps); in onStartCommand()
[all …]
DStopwatchFragment.java59 long mStartTime = 0; field in StopwatchFragment
238 mAccumulatedTime += (curTime - mStartTime); in rightButtonAction()
401 mStartTime = time; in doStart()
613 long curTime = time - mStartTime + mAccumulatedTime; in addLapTime()
667 long totalTime = mAccumulatedTime + (curTime - mStartTime);
680 editor.putLong (Stopwatches.PREF_START_TIME, mStartTime); in writeToSharedPref()
694 editor.putLong(Stopwatches.NOTIF_CLOCK_BASE, mStartTime-mAccumulatedTime); in writeToSharedPref()
711 mStartTime = prefs.getLong(Stopwatches.PREF_START_TIME, 0); in readFromSharedPref()
733 doStart(mStartTime); in readFromSharedPref()
/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/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/Email/emailcommon/src/com/android/emailcommon/service/
DServiceProxy.java56 private long mStartTime; field in ServiceProxy
153 mStartTime = System.currentTimeMillis(); in setTask()
195 (System.currentTimeMillis() - mStartTime) + "ms"); in test()
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventView.java207 private Time mStartTime; field in EditEventView
232 Time startTime = mStartTime; in onTimeSet()
305 Time startTime = mStartTime; in onDateSet()
362 long startMillis = mStartTime.toMillis(false /* use isDst */); in populateWhen()
370 mStartDateButton.setOnClickListener(new DateClickListener(mStartTime)); in populateWhen()
373 mStartTimeButton.setOnClickListener(new TimeClickListener(mStartTime)); in populateWhen()
434 Time time = mStartTime; in populateRepeats()
583 if (mStartTime.weekDay != Time.SUNDAY && mStartTime.weekDay != Time.SATURDAY) { in isWeekdayEvent()
886 mStartTime.hour = 0; in fillModelFromUI()
887 mStartTime.minute = 0; in fillModelFromUI()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmKlaxon.java52 private long mStartTime; field in AlarmKlaxon
146 long millis = System.currentTimeMillis() - mStartTime; in sendKillBroadcast()
231 mStartTime = System.currentTimeMillis(); in play()
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis1/
DVisualization1.java59 private long mStartTime; field in Visualization1.CubeEngine
87 mStartTime = SystemClock.elapsedRealtime(); in onCreate()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageDetail.java125 private long mStartTime; field in PowerUsageDetail
159 mStartTime = android.os.Process.getElapsedCpuTime(); in onResume()