/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/Gallery2/src/com/android/gallery3d/ui/ |
D | FlingScroller.java | 39 private int mDuration; field in FlingScroller 55 return mDuration; in getDuration() 95 mDuration = (int)Math.round(FLING_DURATION_PARAM in fling() 100 velocity * mDuration / DECELERATED_FACTOR / 1000); in fling() 138 Math.pow(1 - progress, DECELERATED_FACTOR - 1) / mDuration; in getV()
|
D | EdgeEffect.java | 103 private float mDuration; field in EdgeEffect 183 if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) { in onPull() 192 mDuration = PULL_TIME; in onPull() 248 mDuration = RECEDE_TIME; in onRelease() 266 mDuration = 0.1f + (velocity * 0.03f); in onAbsorb() 347 final float t = Math.min((time - mStartTime) / mDuration, 1.f); in update() 361 mDuration = RECEDE_TIME; in update() 377 mDuration = PULL_DECAY_TIME; in update()
|
D | Paper.java | 114 private long mDuration; field in EdgeAnimation 125 mDuration = duration; in startAnimation() 154 float t = Utils.clamp((float)(now() - mStartTime) / mDuration, 0.0f, 1.0f); in update()
|
/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 | 51 long mDuration; field in LauncherViewPropertyAnimator 85 return mDuration; in getDuration() 156 mDuration = duration; in setDuration() 211 mViewPropertyAnimator.setDuration(mDuration); in start()
|
/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() 531 mDuration = DEFAULT_SLIDE_DURATION; in resetDuration() 540 if ((duration > mDuration) in updateDuration() 541 || (mDuration == DEFAULT_SLIDE_DURATION)) { in updateDuration() 542 mDuration = duration; in updateDuration()
|
D | MediaModel.java | 46 protected int mDuration; field in MediaModel 102 return mDuration; in getDuration() 116 mDuration = duration; in setDuration() 221 mDuration = duration; in initMediaDuration()
|
/packages/apps/Contacts/src/com/android/contacts/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/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/Calendar/src/com/android/calendar/ |
D | CalendarEventModel.java | 235 public String mDuration = null; field in CalendarEventModel 401 mDuration = null; in clear() 474 result = prime * result + ((mDuration == null) ? 0 : mDuration.hashCode()); in hashCode() 556 if (mDuration == null) { in equals() 557 if (other.mDuration != null) { in equals() 560 } else if (!mDuration.equals(other.mDuration)) { in equals() 645 if (TextUtils.isEmpty(mDuration)) { in isUnchanged() 646 if (!TextUtils.isEmpty(originalModel.mDuration)) { in isUnchanged() 649 } else if (!mDuration.equals(originalModel.mDuration)) { in isUnchanged()
|
/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() 350 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 | 497 String mDuration; field in CalendarProvider2Test.EventInfo 530 mDuration = null; in init() 571 mDuration = "P" + days + "D"; in init() 574 mDuration = "P" + seconds + "S"; in init() 1147 m.put(Events.DURATION, event.mDuration); in eventInfoToContentValues()
|
/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/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/Calendar/src/com/android/calendar/event/ |
D | EditEventHelper.java | 876 String duration = model.mDuration; in addRecurrenceRule() 1050 model.mDuration = cursor.getString(EVENT_INDEX_DURATION); in setModelFromCursor()
|
/packages/apps/Calendar/tests/src/com/android/calendar/event/ |
D | EditEventHelperTest.java | 1324 mModel2.mDuration = null; in testSetModelFromCursor() 1480 model.mDuration = "P3652421990D"; in buildTestModel()
|