/frameworks/base/graphics/java/android/graphics/drawable/ |
D | TransitionDrawable.java | 68 private int mDuration; field in TransitionDrawable 113 mDuration = mOriginalDuration = durationMillis; in startTransition() 139 if (time - mStartTimeMillis > mDuration) { in reverseTransition() 151 mDuration = mOriginalDuration = duration; in reverseTransition() 160 mDuration = (int) (mReverse ? time - mStartTimeMillis : in reverseTransition() 179 (SystemClock.uptimeMillis() - mStartTimeMillis) / mDuration; in draw()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | TextProgressBar.java | 58 int mDuration = -1; field in TextProgressBar 118 mDuration = (int) (durationBase - mChronometer.getBase()); in setDurationBase() 119 if (mDuration <= 0) { in setDurationBase() 120 mDuration = 1; in setDurationBase() 122 mProgressBar.setMax(mDuration); in setDurationBase() 143 mProgressBar.setProgress(mDuration - remaining); in onChronometerTick()
|
/frameworks/base/core/java/android/widget/ |
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 / (float) 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()
|
D | EdgeEffect.java | 98 private float mDuration; field in EdgeEffect 206 if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) { in onPull() 215 mDuration = PULL_TIME; in onPull() 271 mDuration = RECEDE_TIME; in onRelease() 289 mDuration = 0.1f + (velocity * 0.03f); in onAbsorb() 381 final float t = Math.min((time - mStartTime) / mDuration, 1.f); in update() 395 mDuration = RECEDE_TIME; in update() 411 mDuration = PULL_DECAY_TIME; in update()
|
D | VideoView.java | 56 private int mDuration; field in VideoView 230 mDuration = -1; in openVideo() 600 if (mDuration > 0) { in getDuration() 601 return mDuration; in getDuration() 603 mDuration = mMediaPlayer.getDuration(); in getDuration() 604 return mDuration; in getDuration() 606 mDuration = -1; in getDuration() 607 return mDuration; in getDuration()
|
D | Toast.java | 79 int mDuration; field in Toast 110 service.enqueueToast(pkg, tn, mDuration); in show() 153 mDuration = duration; in setDuration() 161 return mDuration; in getDuration() 247 result.mDuration = duration; in makeText()
|
D | ProgressBar.java | 209 private int mDuration; field in ProgressBar 271 mDuration = a.getInt(R.styleable.ProgressBar_indeterminateDuration, mDuration); in ProgressBar() 410 mDuration = 4000; in initProgressBar() 882 mAnimation.setDuration(mDuration); in startAnimation()
|
/frameworks/base/core/java/android/view/animation/ |
D | Animation.java | 150 long mDuration; field in Animation 431 mDuration = durationMillis; in setDuration() 447 mDuration = 0; in restrictDuration() 452 long dur = mDuration + mStartOffset; in restrictDuration() 454 mDuration = durationMillis-mStartOffset; in restrictDuration() 458 if (mDuration <= 0) { in restrictDuration() 459 mDuration = 0; in restrictDuration() 483 mDuration = (long) (mDuration * scale); in scaleCurrentDuration() 683 return mDuration; in getDuration() 839 final long duration = mDuration; in getTransformation()
|
D | AnimationSet.java | 209 mLastEnd = mStartOffset + mDuration; in setDuration() 234 mLastEnd = mStartOffset + mDuration; in addAnimation() 237 mDuration = a.getStartOffset() + a.getDuration(); in addAnimation() 238 mLastEnd = mStartOffset + mDuration; in addAnimation() 241 mDuration = mLastEnd - mStartOffset; in addAnimation() 307 duration = mDuration; in getDuration() 443 final long duration = mDuration; in initialize()
|
D | LayoutAnimationController.java | 92 private long mDuration; field in LayoutAnimationController 299 mDuration = mAnimation.getDuration(); in start() 341 mAnimation.getStartTime() + mMaxDelay + mDuration; in isDone()
|
/frameworks/wilhelm/src/itf/ |
D | IMIDITime.c | 30 SLuint32 duration = thiz->mDuration; in IMIDITime_GetDuration() 45 if (!(position < thiz->mDuration)) { in IMIDITime_SetPosition() 83 SLuint32 duration = thiz->mDuration; in IMIDITime_SetLoopPoints() 132 thiz->mDuration = 0; in IMIDITime_init()
|
D | IPlay.c | 163 SLmillisecond duration = thiz->mDuration; in IPlay_GetDuration() 180 thiz->mDuration = duration; in IPlay_GetDuration() 461 thiz->mDuration = SL_TIME_UNKNOWN; // will be set by containing player object in IPlay_init()
|
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/ |
D | VariableSpeed.java | 65 @GuardedBy("lock") private int mDuration; field in VariableSpeed 210 mDuration = 0; in reset() 234 mDuration = mediaPlayer.getDuration(); in prepare() 244 return mDuration; in getDuration() 256 mStartPosition = Math.min(startPosition, mDuration); in seekTo() 359 return mDuration; in getCurrentPosition()
|
/frameworks/av/media/libmedia/ |
D | mediaplayer.cpp | 50 mDuration = -1; in MediaPlayer() 93 mDuration = -1; in clear_l() 402 if (mDuration <= 0) in getDuration_l() 403 ret = mPlayer->getDuration(&mDuration); in getDuration_l() 405 *msec = mDuration; in getDuration_l() 425 } else if ((mDuration > 0) && (msec > mDuration)) { in seekTo_l() 426 ALOGW("Attempt to seek to past end of file: request = %d, EOF = %d", msec, mDuration); in seekTo_l() 427 msec = mDuration; in seekTo_l()
|
D | MediaProfiles.cpp | 333 profile->mDuration = atoi(atts[5]); in createCamcorderProfile() 675 profile->mDuration = 60; in createDefaultCamcorderTimeLapseQcifProfile() 692 profile->mDuration = 60; in createDefaultCamcorderTimeLapse480pProfile() 727 profile->mDuration = 30; in createDefaultCamcorderQcifProfile() 744 profile->mDuration = 60; in createDefaultCamcorderCifProfile() 1113 if (!strcmp("duration", name)) return mCamcorderProfiles[index]->mDuration; in getCamcorderProfileParamByName()
|
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/ |
D | ManageDialog.java | 50 private TextView mDuration; field in ManageDialog 77 mDuration = (TextView) view.findViewById(R.id.duration); in onResume() 141 mDuration.setText(String.format("%02d:%02d:%02d", in handleMessage()
|
/frameworks/av/include/media/ |
D | MediaProfiles.h | 268 mDuration(0), in CamcorderProfile() 276 mDuration = copy.mDuration; in CamcorderProfile() 289 int mDuration; member
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | MediaRecorderStressTestRunner.java | 47 public static int mDuration = 10 * 1000; // 10 seconds field in MediaRecorderStressTestRunner 98 mDuration = Integer.parseInt(record_duration); in onCreate()
|
/frameworks/base/core/java/android/animation/ |
D | ValueAnimator.java | 165 private long mDuration = (long)(300 * sDurationScale); field in ValueAnimator 471 mDuration = (long)(duration * sDurationScale); in setDuration() 993 long timeLeft = mDuration - currentPlayTime; in reverse() 1084 float fraction = mDuration > 0 ? (float)(currentTime - mStartTime) / mDuration : 1f; in animationFrame() 1099 mStartTime += mDuration; in animationFrame()
|
D | AnimatorSet.java | 121 private long mDuration = -1; field in AnimatorSet 407 return mDuration; in getDuration() 424 mDuration = duration; in setDuration() 455 if (mDuration >= 0) { in start() 460 node.animation.setDuration(mDuration); in start()
|
/frameworks/av/media/libmediaplayerservice/ |
D | MidiFile.cpp | 57 mPlayTime(-1), mDuration(-1), mState(EAS_STATE_ERROR), in MidiFile() 314 *duration = mDuration; in getDuration() 345 mDuration = *duration = int(temp); in getDuration() 402 mDuration = -1; in reset_nosync()
|
D | MidiFile.h | 77 EAS_I32 mDuration; variable
|
/frameworks/wilhelm/src/desktop/ |
D | SndFile.c | 201 if (pos > audioPlayer->mPlay.mDuration) { in audioPlayerTransportUpdate() 202 pos = audioPlayer->mPlay.mDuration; in audioPlayerTransportUpdate() 261 thiz->mPlay.mDuration = (SLmillisecond) (((long long) thiz->mSndFile.mSfInfo.frames * in SndFile_Realize()
|
/frameworks/base/core/java/android/view/ |
D | ViewPropertyAnimator.java | 61 private long mDuration; field in ViewPropertyAnimator 253 mDuration = duration; in setDuration() 267 return mDuration; in getDuration() 758 animator.setDuration(mDuration); in startAnimation()
|