/frameworks/base/core/java/android/os/vibrator/ |
D | StepSegment.java | 46 private final int mDuration; field in StepSegment 56 mDuration = duration; in StepSegment() 67 && mDuration == other.mDuration; in equals() 80 return mDuration; in getDuration() 113 VibrationEffectSegment.checkDurationArgument(mDuration, "duration"); in validate() 133 mDuration); in resolve() 144 mDuration); in scale() 156 return Objects.hash(mAmplitude, mFrequencyHz, mDuration); in hashCode() 163 + ", duration=" + mDuration in toString() 177 out.writeInt(mDuration); in writeToParcel()
|
D | RampSegment.java | 47 private final int mDuration; field in RampSegment 60 mDuration = duration; in RampSegment() 73 && mDuration == other.mDuration; in equals() 94 return mDuration; in getDuration() 137 VibrationEffectSegment.checkDurationArgument(mDuration, "duration"); in validate() 162 mDuration); in scale() 175 mDuration); in hashCode() 184 + ", duration=" + mDuration in toString() 200 out.writeInt(mDuration); in writeToParcel()
|
/frameworks/native/cmds/idlcli/vibrator/ |
D | CommandOn.cpp | 56 if (auto duration = args.pop<decltype(mDuration)>()) { in doArgs() 57 mDuration = *duration; in doArgs() 85 auto status = hal->call(&aidl::IVibrator::on, mDuration, callback); in doMain() 90 auto status = hal->call(&V1_0::IVibrator::on, mDuration); in doMain() 101 sleep_for(milliseconds(mDuration)); in doMain() 111 uint32_t mDuration; member in android::idlcli::vibrator::CommandOn
|
/frameworks/base/libs/hwui/ |
D | PropertyValuesAnimatorSet.cpp | 71 if (playTime == 0 && mDuration > 0) { in onPlayTimeChanged() 120 mDuration = mAnimators.empty() ? 0 : mAnimators[mAnimators.size() - 1]->getTotalDuration(); in init() 134 , mDuration(duration) { in PropertyAnimator() 141 mTotalDuration = ((nsecs_t)mRepeatCount + 1) * mDuration + mStartDelay; in PropertyAnimator() 157 iteration = (playTime - mStartDelay) / mDuration; in setCurrentPlayTime() 158 currentIterationFraction = ((playTime - mStartDelay) % mDuration) / (float)mDuration; in setCurrentPlayTime()
|
D | Animator.cpp | 44 , mDuration(300) in BaseRenderNodeAnimator() 75 mDuration = duration; in setDuration() 130 : mDuration; in resolveStagingRequest() 144 mPlayTime = mPlayState == PlayState::Reversing ? 0 : mDuration; in resolveStagingRequest() 196 mStartTime = currentFrameTime - (mDuration - mPlayTime); in pushStaging() 228 if (mDuration < 0) { in transitionToRunning() 229 ALOGW("Your duration is strange and confusing: %" PRId64, mDuration); in transitionToRunning() 243 updatePlayTime(mDuration); in animate() 262 mPlayTime = mPlayState == PlayState::Reversing ? mDuration - playTime : playTime; in updatePlayTime() 276 if ((mPlayState == PlayState::Running || mPlayState == PlayState::Reversing) && mDuration > 0) { in updatePlayTime() [all …]
|
/frameworks/base/core/java/android/view/ |
D | RemoteAnimationAdapter.java | 54 private final long mDuration; field in RemoteAnimationAdapter 77 mDuration = duration; in RemoteAnimationAdapter() 97 mDuration = in.readLong(); in RemoteAnimationAdapter() 108 return mDuration; in getDuration() 158 dest.writeLong(mDuration); in writeToParcel()
|
/frameworks/base/services/core/java/com/android/server/notification/toast/ |
D | ToastRecord.java | 39 private int mDuration; field in ToastRecord 52 mDuration = duration; in ToastRecord() 72 return mDuration; in getDuration() 79 mDuration = duration; in update()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | TextProgressBar.java | 57 int mDuration = -1; field in TextProgressBar 121 mDuration = (int) (durationBase - mChronometer.getBase()); in setDurationBase() 122 if (mDuration <= 0) { in setDurationBase() 123 mDuration = 1; in setDurationBase() 125 mProgressBar.setMax(mDuration); in setDurationBase() 146 mProgressBar.setProgress(mDuration - remaining); in onChronometerTick()
|
/frameworks/base/core/java/android/widget/ |
D | OverScroller.java | 238 return Math.max(mScrollerX.mDuration, mScrollerY.mDuration); in getDuration() 299 final int duration = mScrollerX.mDuration; in computeScrollOffset() 558 private int mDuration; field in OverScroller.SplineOverScroller 671 mDuration *= timeCoef; in adjustDuration() 682 mDuration = duration; in startScroll() 706 mDuration = mSplineDuration = elapsedTime + extend; in extendDuration() 717 mDuration = 0; in springback() 739 mDuration = (int) (1000.0 * Math.sqrt(-2.0 * delta / mDeceleration)); in startSpringback() 746 mDuration = mSplineDuration = 0; in fling() 759 mDuration = mSplineDuration = getSplineFlingDuration(velocity); in fling() [all …]
|
D | Scroller.java | 83 private int mDuration; field in Scroller 234 return mDuration; in getDuration() 313 if (timePassed < mDuration) { in computeScrollOffset() 321 final float t = (float) timePassed / mDuration; in computeScrollOffset() 334 mCurrVelocity = velocityCoef * mDistance / mDuration * 1000.0f; in computeScrollOffset() 396 mDuration = duration; in startScroll() 404 mDurationReciprocal = 1.0f / (float) mDuration; in startScroll() 454 mDuration = getSplineFlingDuration(velocity); in fling() 520 mDuration = passed + extend; in extendDuration() 521 mDurationReciprocal = 1.0f / mDuration; in extendDuration()
|
D | Toast.java | 131 int mDuration; field in Toast 217 service.enqueueToast(pkg, mToken, tn, mDuration, isUiContext, displayId); in show() 222 service.enqueueTextToast(pkg, mToken, mText, mDuration, isUiContext, displayId, in show() 226 service.enqueueToast(pkg, mToken, tn, mDuration, isUiContext, displayId); in show() 298 mDuration = duration; in setDuration() 299 mTN.mDuration = duration; in setDuration() 308 return mDuration; in getDuration() 512 result.mDuration = duration; in makeText() 535 result.mDuration = duration; in makeCustomToastWithIcon() 627 int mDuration; field in Toast.TN [all …]
|
D | EdgeEffect.java | 193 private float mDuration; field in EdgeEffect 349 if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration in onPull() 365 mDuration = PULL_TIME; in onPull() 481 mDuration = RECEDE_TIME; in onRelease() 506 mDuration = 0.15f + (velocity * 0.02f); in onAbsorb() 702 final float t = Math.min((time - mStartTime) / mDuration, 1.f); in update() 718 mDuration = RECEDE_TIME; in update() 730 mDuration = PULL_DECAY_TIME; in update()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | TransitionDrawable.java | 71 private int mDuration; field in TransitionDrawable 118 mDuration = mOriginalDuration = durationMillis; in startTransition() 156 if (time - mStartTimeMillis > mDuration) { in reverseTransition() 168 mDuration = mOriginalDuration = duration; in reverseTransition() 177 mDuration = (int) (mReverse ? time - mStartTimeMillis : in reverseTransition() 196 (SystemClock.uptimeMillis() - mStartTimeMillis) / mDuration; in draw()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/ |
D | Interaction.java | 40 private final long mDuration; field in Interaction 87 mEvents = createInterpolatedEventList(mXPositions, mYPositions, mDuration); in getEvents() 92 mEvents = createInterpolatedEventList(mXPositions, mYPositions, mDuration); in getEvents() 153 mDuration = duration; in Interaction() 162 mDuration = 0; in Interaction() 184 mDuration = duration; in Interaction()
|
/frameworks/wilhelm/src/itf/ |
D | IMIDITime.cpp | 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()
|
/frameworks/base/core/java/android/view/animation/ |
D | Animation.java | 160 long mDuration; field in Animation 455 mDuration = durationMillis; in setDuration() 471 mDuration = 0; in restrictDuration() 476 long dur = mDuration + mStartOffset; in restrictDuration() 478 mDuration = durationMillis-mStartOffset; in restrictDuration() 482 if (mDuration <= 0) { in restrictDuration() 483 mDuration = 0; in restrictDuration() 507 mDuration = (long) (mDuration * scale); in scaleCurrentDuration() 770 return mDuration; in getDuration() 1015 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() 459 final long duration = mDuration; in initialize()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/ |
D | FlingAnimationUtils.java | 154 animator.setDuration(properties.mDuration); in apply() 172 animator.setDuration(properties.mDuration); in apply() 191 animator.setDuration(properties.mDuration); in apply() 224 mAnimatorProperties.mDuration = (long) (durationSeconds * 1000); in getProperties() 268 animator.setDuration(properties.mDuration); in applyDismissing() 288 animator.setDuration(properties.mDuration); in applyDismissing() 321 mAnimatorProperties.mDuration = (long) (durationSeconds * 1000); in getDismissingProperties() 401 long mDuration; field in FlingAnimationUtils.AnimatorProperties
|
/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
D | GraphicBufferMetrics.java | 106 public long mDuration; field in GraphicBufferMetrics.RawEvent 116 mDuration = -1; in RawEvent() 145 System.err.println(mTime + "[" + mDuration + "] " + mName); in dump() 158 public final long mDuration; field in GraphicBufferMetrics.BufferEvent 164 mDuration = duration; in BufferEvent() 171 "[" + mDuration + "]. Buffer: " + mBufferId + "."; in toString() 303 current.mDuration = timeStampMcs - current.mTime; in buildEventModel() 389 new BufferEvent(EVENT_POST_BUFFER, event.mTime, event.mDuration, null)); in processGraphicBufferResult() 445 postTimes.add(bufferEvents.get(i).mDuration); in processGraphicBufferResult() 490 new BufferEvent(type, event.mTime, event.mDuration, bufferName)); in toBufferEvents()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | Voicemail.java | 33 private final Long mDuration; field in Voicemail 48 mDuration = duration; in Voicemail() 193 return mDuration; in getDuration() 264 dest.writeLong(mDuration); in writeToParcel() 308 mDuration = in.readLong(); in Voicemail()
|
/frameworks/base/core/java/android/animation/ |
D | ValueAnimator.java | 218 private long mDuration = 300; field in ValueAnimator 680 mDuration = duration; in setDuration() 700 return (long)(mDuration * resolveDurationScale()); in getScaledDuration() 710 return mDuration; in getDuration() 718 return mStartDelay + (mDuration * (mRepeatCount + 1)); in getTotalDuration() 733 float fraction = mDuration > 0 ? (float) playTime / mDuration : 1; in setCurrentPlayTime() 853 return (long) (mDuration * mSeekFraction); in getCurrentPlayTime() 1442 int iteration = Math.max(0, (int) (currentPlayTime / mDuration)); in animateValuesInRange() 1443 int lastIteration = Math.max(0, (int) (lastPlayTime / mDuration)); in animateValuesInRange() 1454 if (mRepeatCount != INFINITE && currentPlayTime > (mRepeatCount + 1) * mDuration) { in animateValuesInRange() [all …]
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | AssociationState.java | 75 long mDuration; field in AssociationState.SourceState 182 mDuration += now - mStartUptime; in stop() 312 mDuration = 0; in resetSafely() 335 mDuration += nowUptime - mStartUptime; in commitStateTime() 382 mDuration += otherSrc.mDuration; in add() 431 out.writeLong(mDuration); in writeToParcel() 450 mDuration = in.readLong(); in readFromParcel() 646 Slog.w(TAG, "Adding tot duration " + mySrc.mDuration + "+" in add() 647 + otherSrc.mDuration in add() 651 if ((mySrc.mDuration + otherSrc.mDuration) > mTotalDuration) { in add() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Dimmer.java | 357 private final long mDuration; field in Dimmer.AlphaAnimationSpec 364 mDuration = duration; in AlphaAnimationSpec() 369 return mDuration; in getDuration() 383 pw.print(" duration="); pw.println(mDuration); in dump() 391 proto.write(DURATION_MS, mDuration); in dumpDebugInner()
|
/frameworks/libs/net/common/netd/libnetdutils/ |
D | Log.cpp | 67 if (!mDuration.empty()) text.push_back(StringPrintf("(%s)", mDuration.c_str())); in toString() 169 mDuration = duration.str(); in withAutomaticDuration() 174 mDuration = duration; in withDuration()
|
/frameworks/base/cmds/hid/src/com/android/commands/hid/ |
D | Event.java | 66 private int mDuration; field in Event 110 return mDuration; in getDuration() 128 + ", duration=" + mDuration in toString() 181 mEvent.mDuration = duration; in setDuration() 209 if (mEvent.mDuration <= 0) { in build()
|