/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | OverScroller.java | 230 return Math.max(mScrollerX.mDuration, mScrollerY.mDuration); in getDuration() 305 final int duration = mScrollerX.mDuration; in computeScrollOffset() 565 private int mDuration; field in OverScroller.SplineOverScroller 681 mDuration *= timeCoef; in adjustDuration() 692 mDuration = duration; in startScroll() 715 mDuration = elapsedTime + extend; in extendDuration() 726 mDuration = 0; in springback() 748 mDuration = (int) (1000.0 * Math.sqrt(-2.0 * delta / mDeceleration)); in startSpringback() 755 mDuration = mSplineDuration = 0; in fling() 768 mDuration = mSplineDuration = getSplineFlingDuration(velocity); in fling() [all …]
|
D | Scroller.java | 51 private int mDuration; field in Scroller 177 return mDuration; in getDuration() 256 if (timePassed < mDuration) { in computeScrollOffset() 270 final float t = (float) timePassed / mDuration; in computeScrollOffset() 337 mDuration = duration; in startScroll() 345 mDurationReciprocal = 1.0f / mDuration; in startScroll() 396 mDuration = (int) (1000.0 * Math.exp(l / (DECELERATION_RATE - 1.0))); in fling() 460 mDuration = passed + extend; in extendDuration() 461 mDurationReciprocal = 1.0f / mDuration; in extendDuration()
|
/packages/apps/Dialer/src/com/android/dialer/voicemail/ |
D | VoicemailPlaybackPresenter.java | 152 private final AtomicInteger mDuration = new AtomicInteger(0); field in VoicemailPlaybackPresenter 458 mDuration.set(mPlayer.getDuration()); in resetPrepareStartPlaying() 460 constrain(clipPositionInMillis, 0, mDuration.get()); in resetPrepareStartPlaying() 461 mView.setClipPosition(startPosition, mDuration.get()); in resetPrepareStartPlaying() 472 mPositionUpdater.startUpdating(startPosition, mDuration.get()); in resetPrepareStartPlaying() 487 stopPlaybackAtPosition(0, mDuration.get()); in handleCompletion() 511 stopPlaybackAtPosition(mPlayer.getCurrentPosition(), mDuration.get()); in onStartTrackingTouch() 520 stopPlaybackAtPosition(mPlayer.getCurrentPosition(), mDuration.get()); in onStopTrackingTouch() 558 stopPlaybackAtPosition(mPlayer.getCurrentPosition(), mDuration.get()); in onClick() 585 mView.setClipPosition(currentPosition, mDuration.get()); [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarEventModel.java | 244 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/Mms/src/com/android/mms/model/ |
D | SlideModel.java | 55 private int mDuration; field in SlideModel 66 mDuration = duration; in SlideModel() 81 mDuration = duration; in SlideModel() 212 return mDuration; in getDuration() 219 mDuration = duration; in setDuration() 537 mDuration = DEFAULT_SLIDE_DURATION; in resetDuration() 546 if ((duration > mDuration) in updateDuration() 547 || (mDuration == DEFAULT_SLIDE_DURATION)) { in updateDuration() 548 mDuration = duration; in updateDuration()
|
D | MediaModel.java | 47 protected int mDuration; field in MediaModel 103 return mDuration; in getDuration() 117 mDuration = duration; in setDuration() 222 mDuration = duration; in initMediaDuration()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | EdgeEffect.java | 106 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()
|
D | FlingScroller.java | 40 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()
|
D | Paper.java | 115 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/Music/src/com/android/music/ |
D | AudioPreview.java | 66 private int mDuration; field in AudioPreview 240 mDuration = mPlayer.getDuration(); in showPostPrepareUI() 241 if (mDuration != 0) { in showPostPrepareUI() 242 mSeekBar.setMax(mDuration); in showPostPrepareUI() 307 if (mPlayer != null && !mSeeking && mDuration != 0) { in run() 308 int progress = mPlayer.getCurrentPosition() / mDuration; in run() 354 mSeekBar.setProgress(mDuration); in onCompletion()
|
D | MediaPlaybackActivity.java | 375 mPosOverride = mDuration * progress / 1000; 1151 private long mDuration; field in MediaPlaybackActivity 1173 if ((pos >= 0) && (mDuration > 0)) { in refreshNow() 1175 int progress = (int) (1000 * pos / mDuration); in refreshNow() 1198 long smoothrefreshtime = mDuration / width; in refreshNow() 1310 mDuration = mService.duration(); in updateTrackInfo() 1311 mTotalTime.setText(MusicUtils.makeTimeString(this, mDuration / 1000)); in updateTrackInfo()
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarSyncTestingBase.java | 119 m.put(CalendarContract.Events.DURATION, event.mDuration); in insertEvent() 227 String mDuration; field in CalendarSyncTestingBase.EventInfo 244 mDuration = null; in EventInfo() 255 mDuration = null; in EventInfo() 281 mDuration = null; in init() 320 mDuration = "P" + days + "D"; in init() 323 mDuration = "P" + seconds + "S"; in init()
|
D | CalendarProvider2Test.java | 499 String mDuration; field in CalendarProvider2Test.EventInfo 533 mDuration = null; in init() 575 mDuration = "P" + days + "D"; in init() 578 mDuration = "P" + seconds + "S"; in init() 1179 m.put(Events.DURATION, event.mDuration); in eventInfoToContentValues()
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | TextHighlightingAnimation.java | 52 private final int mDuration; field in TextHighlightingAnimation 174 mDuration = duration; in TextHighlightingAnimation() 225 mTargetTime = now + mDuration; in startAnimation() 232 mTargetTime = (now + mDuration) - (mTargetTime - now); in startAnimation() 251 float virtualTime = (float)timeLeft / mDuration; in run()
|
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
D | Animation.java | 53 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/Launcher2/src/com/android/launcher2/ |
D | SymmetricalLinearTween.java | 31 int mDuration; field in SymmetricalLinearTween 46 mDuration = duration; in SymmetricalLinearTween() 82 mBase = now + diff - mDuration; in start() 93 int duration = mDuration;
|
D | LauncherViewPropertyAnimator.java | 52 long mDuration; field in LauncherViewPropertyAnimator 87 return mDuration; in getDuration() 162 mDuration = duration; in setDuration() 222 mViewPropertyAnimator.setDuration(mDuration); in start()
|
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/ |
D | ProgressBar.java | 204 private int mDuration; field in ProgressBar 264 mDuration = a.getInt(R.styleable.ProgressBar_indeterminateDuration, mDuration); in ProgressBar() 406 mDuration = 4000; in initProgressBar() 821 mAnimation.setDuration(mDuration); in startAnimation()
|
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
D | ProjectPickerAdapter.java | 249 private String mDuration; field in LoadPreviewBitmapTask 261 mDuration = duration; in LoadPreviewBitmapTask() 310 mContextAdapter.drawBottomOverlay(result, mTitle, mDuration); in onPostExecute()
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EditEventHelper.java | 914 String duration = model.mDuration; in addRecurrenceRule() 1096 model.mDuration = cursor.getString(EVENT_INDEX_DURATION); in setModelFromCursor()
|
/packages/apps/Calendar/tests/src/com/android/calendar/event/ |
D | EditEventHelperTest.java | 1347 mModel2.mDuration = null; in testSetModelFromCursor() 1545 model.mDuration = "P3652421990D"; in buildTestModel()
|