Home
last modified time | relevance | path

Searched refs:mDuration (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java227 return Math.max(mScrollerX.mDuration, mScrollerY.mDuration); in getDuration()
302 final int duration = mScrollerX.mDuration; in computeScrollOffset()
562 private int mDuration; field in OverScroller.SplineOverScroller
678 mDuration *= timeCoef; in adjustDuration()
689 mDuration = duration; in startScroll()
712 mDuration = elapsedTime + extend; in extendDuration()
723 mDuration = 0; in springback()
745 mDuration = (int) (1000.0 * Math.sqrt(-2.0 * delta / mDeceleration)); in startSpringback()
752 mDuration = mSplineDuration = 0; in fling()
765 mDuration = mSplineDuration = getSplineFlingDuration(velocity); in fling()
[all …]
DScroller.java50 private int mDuration; field in Scroller
176 return mDuration; in getDuration()
255 if (timePassed < mDuration) { in computeScrollOffset()
269 final float t = (float) timePassed / mDuration; in computeScrollOffset()
336 mDuration = duration; in startScroll()
344 mDurationReciprocal = 1.0f / mDuration; in startScroll()
395 mDuration = (int) (1000.0 * Math.exp(l / (DECELERATION_RATE - 1.0))); in fling()
459 mDuration = passed + extend; in extendDuration()
460 mDurationReciprocal = 1.0f / mDuration; in extendDuration()
/packages/apps/Settings/src/com/android/settings/applications/
DProcessStatsDetail.java314 if (lhs.mDuration < rhs.mDuration) {
316 } else if (lhs.mDuration > rhs.mDuration) {
326 if (lhs.mDuration < rhs.mDuration) {
328 } else if (lhs.mDuration > rhs.mDuration) {
337 long mDuration; field in ProcessStatsDetail.PkgService
349 if (pent.mDuration >= mOnePercentTime) { in fillServicesSection()
359 psvc.mDuration += pent.mDuration; in fillServicesSection()
374 service.mDuration / (float) mTotalTime, getActivity())); in fillServicesSection()
DProcStatsEntry.java234 if (service.mDuration > thisRunTime) { in evaluateTargetPackage()
237 + " run time is " + service.mDuration); in evaluateTargetPackage()
238 thisRunTime = service.mDuration; in evaluateTargetPackage()
315 final long mDuration; field in ProcStatsEntry.Service
321 mDuration = service.dumpTime(null, null, in Service()
329 mDuration = in.readLong(); in Service()
342 dest.writeLong(mDuration); in writeToParcel()
DProcStatsData.java65 private long mDuration; field in ProcStatsData
125 if (duration != mDuration) { in setDuration()
126 mDuration = duration; in setDuration()
132 return mDuration; in getDuration()
345 ParcelFileDescriptor pfd = mProcessStats.getStatsOverTime(mDuration); in load()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherScroller.java47 private int mDuration; field in LauncherScroller
205 return mDuration; in getDuration()
284 if (timePassed < mDuration) { in computeScrollOffset()
298 final float t = (float) timePassed / mDuration; in computeScrollOffset()
311 mCurrVelocity = velocityCoef * mDistance / mDuration * 1000.0f; in computeScrollOffset()
373 mDuration = duration; in startScroll()
381 mDurationReciprocal = 1.0f / (float) mDuration; in startScroll()
431 mDuration = getSplineFlingDuration(velocity); in fling()
511 mDuration = passed + extend; in extendDuration()
512 mDurationReciprocal = 1.0f / mDuration; in extendDuration()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DLauncherEdgeEffect.java68 private float mDuration; field in LauncherEdgeEffect
174 if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) { in onPull()
183 mDuration = PULL_TIME; in onPull()
225 mDuration = RECEDE_TIME; in onRelease()
243 mDuration = 0.15f + (velocity * 0.02f); in onAbsorb()
322 final float t = Math.min((time - mStartTime) / mDuration, 1.f); in update()
335 mDuration = RECEDE_TIME; in update()
347 mDuration = PULL_DECAY_TIME; in update()
DFlingAnimation.java35 protected int mDuration; field in FlingAnimation
63 mDuration = Math.abs(mUY) > Math.abs(mUX) ? initFlingUpDuration() : initFlingLeftDuration(); in run()
65 mAnimationTimeFraction = ((float) mDuration) / (mDuration + DRAG_END_DELAY); in run()
70 final int duration = mDuration + DRAG_END_DELAY; in run()
172 final float time = t * mDuration; in onAnimationUpdate()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DEdgeEffect.java106 private float mDuration; field in EdgeEffect
186 if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) { in onPull()
195 mDuration = PULL_TIME; in onPull()
251 mDuration = RECEDE_TIME; in onRelease()
269 mDuration = 0.1f + (velocity * 0.03f); in onAbsorb()
350 final float t = Math.min((time - mStartTime) / mDuration, 1.f); in update()
364 mDuration = RECEDE_TIME; in update()
380 mDuration = PULL_DECAY_TIME; in update()
DFlingScroller.java40 private int mDuration; field in FlingScroller
56 return mDuration; in getDuration()
96 mDuration = (int)Math.round(FLING_DURATION_PARAM in fling()
101 velocity * mDuration / DECELERATED_FACTOR / 1000); in fling()
139 Math.pow(1 - progress, DECELERATED_FACTOR - 1) / mDuration; in getV()
DPaper.java115 private long mDuration; field in EdgeAnimation
126 mDuration = duration; in startAnimation()
155 float t = Utils.clamp((float)(now() - mStartTime) / mDuration, 0.0f, 1.0f); in update()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarEventModel.java244 public String mDuration = null; field in CalendarEventModel
416 mDuration = null; in clear()
489 result = prime * result + ((mDuration == null) ? 0 : mDuration.hashCode()); in hashCode()
571 if (mDuration == null) { in equals()
572 if (other.mDuration != null) { in equals()
575 } else if (!mDuration.equals(other.mDuration)) { in equals()
660 if (TextUtils.isEmpty(mDuration)) { in isUnchanged()
661 if (!TextUtils.isEmpty(originalModel.mDuration)) { in isUnchanged()
664 } else if (!mDuration.equals(originalModel.mDuration)) { in isUnchanged()
/packages/apps/Messaging/src/com/android/messaging/ui/
DSnackBar.java128 private int mDuration = LONG_DURATION_IN_MS; field in SnackBar.Builder
159 mDuration = duration; in setDuration()
194 private final int mDuration; field in SnackBar
211 mDuration = builder.mDuration; in SnackBar()
257 return mDuration; in getDuration()
DSmsStorageLowWarningFragment.java161 private Duration mDuration; field in SmsStorageLowWarningFragment.ConfirmationDialog
179 mDuration = SmsReleaseStorage.parseMessageRetainingDuration(); in onCreateDialog()
180 mDurationString = SmsReleaseStorage.getMessageRetainingDurationString(mDuration); in onCreateDialog()
214 SmsReleaseStorage.durationToTimeInMillis(mDuration); in handleAction()
/packages/apps/Gallery2/src/com/android/gallery3d/anim/
DAnimation.java53 private int mDuration; field in Animation
61 mDuration = duration; in setDuration()
84 float x = Utils.clamp((float) elapse / mDuration, 0f, 1f); in calculate()
87 if (elapse >= mDuration) mStartTime = NO_ANIMATION; in calculate()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailPlaybackPresenter.java123 private final AtomicInteger mDuration = new AtomicInteger(0); field in VoicemailPlaybackPresenter
297 mView.setClipPosition(0, mDuration.get()); in setPlaybackView()
346 mView.setClipPosition(0, mDuration.get()); in pausePresenter()
417 mDuration.set(duration > 0 ? duration * 1000 : 0); in queryHasContent()
545 mDuration.set(mMediaPlayer.getDuration()); in onPrepared()
548 mView.setClipPosition(mPosition, mDuration.get()); in onPrepared()
597 mView.setClipPosition(0, mDuration.get()); in onCompletion()
660 mPosition = Math.max(0, Math.min(mPosition, mDuration.get())); in resumePlayback()
677 mView.onPlaybackStarted(mDuration.get(), getScheduledExecutorServiceInstance()); in resumePlayback()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DVoicemail.java32 private final Long mDuration; field in Voicemail
56 mDuration = duration; in Voicemail()
210 return mDuration; in getDuration()
277 dest.writeLong(mDuration); in writeToParcel()
321 mDuration = in.readLong(); in Voicemail()
/packages/apps/Music/src/com/android/music/
DAudioPreview.java67 private int mDuration; field in AudioPreview
256 mDuration = mPlayer.getDuration(); in showPostPrepareUI()
257 if (mDuration != 0) { in showPostPrepareUI()
258 mSeekBar.setMax(mDuration); in showPostPrepareUI()
329 if (mPlayer != null && !mSeeking && mDuration != 0) { in run()
377 mSeekBar.setProgress(mDuration); in onCompletion()
DMediaPlaybackActivity.java364 mPosOverride = mDuration * progress / 1000;
1127 private long mDuration; field in MediaPlaybackActivity
1148 if ((pos >= 0) && (mDuration > 0)) { in refreshNow()
1150 int progress = (int) (1000 * pos / mDuration); in refreshNow()
1174 long smoothrefreshtime = mDuration / width; in refreshNow()
1290 mDuration = mService.duration(); in updateTrackInfo()
1291 mTotalTime.setText(MusicUtils.makeTimeString(this, mDuration / 1000)); in updateTrackInfo()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherViewPropertyAnimator.java51 long mDuration; field in LauncherViewPropertyAnimator
86 return mDuration; in getDuration()
161 mDuration = duration; in setDuration()
221 mViewPropertyAnimator.setDuration(mDuration); in start()
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/ac3/
DAudioTrackMonitor.java41 private long mDuration; field in AudioTrackMonitor
47 mExpireMs += mDuration; in flush()
60 mDuration = duration; in reset()
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DSetupAnimationHelper.java73 private long mDuration = sFragmentTransitionDuration; field in SetupAnimationHelper.TransitionBuilder
95 mDuration = duration; in setDuration()
123 transition.setDuration(mDuration); in build()
/packages/apps/Messaging/src/com/android/messaging/ui/animation/
DViewGroupItemVerticalExplodeAnimation.java91 private final int mDuration; field in ViewGroupItemVerticalExplodeAnimation.ViewExplodeAnimationJellyBeanMR2
97 mDuration = duration; in ViewExplodeAnimationJellyBeanMR2()
176 .setDuration(mDuration) in startAnimation()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrPlaybackMediaSessionHelper.java214 private long mDuration; field in DvrPlaybackMediaSessionHelper.ProgramPosterArtCallback
222 mDuration = duration; in ProgramPosterArtCallback()
229 mCardSubtitleText, mDuration, posterArt, null); in onBitmapLoaded()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java507 String mDuration; field in CalendarProvider2Test.EventInfo
541 mDuration = null; in init()
583 mDuration = "P" + days + "D"; in init()
586 mDuration = "P" + seconds + "S"; in init()
1198 m.put(Events.DURATION, event.mDuration); in eventInfoToContentValues()

12