/frameworks/base/core/java/android/os/vibrator/ |
D | StepSegment.java | 45 private final int mDuration; field in StepSegment 55 mDuration = duration; in StepSegment() 66 && mDuration == other.mDuration; in equals() 79 return mDuration; in getDuration() 99 VibrationEffectSegment.checkDurationArgument(mDuration, "duration"); in validate() 119 mDuration); in resolve() 130 mDuration); in scale() 142 return Objects.hash(mAmplitude, mFrequencyHz, mDuration); in hashCode() 149 + ", duration=" + mDuration in toString() 163 out.writeInt(mDuration); in writeToParcel()
|
D | RampSegment.java | 46 private final int mDuration; field in RampSegment 59 mDuration = duration; in RampSegment() 72 && mDuration == other.mDuration; in equals() 93 return mDuration; in getDuration() 113 VibrationEffectSegment.checkDurationArgument(mDuration, "duration"); in validate() 138 mDuration); in scale() 151 mDuration); in hashCode() 160 + ", duration=" + mDuration in toString() 176 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() 554 private int mDuration; field in OverScroller.SplineOverScroller 667 mDuration *= timeCoef; in adjustDuration() 678 mDuration = duration; in startScroll() 702 mDuration = mSplineDuration = elapsedTime + extend; in extendDuration() 713 mDuration = 0; in springback() 735 mDuration = (int) (1000.0 * Math.sqrt(-2.0 * delta / mDeceleration)); in startSpringback() 742 mDuration = mSplineDuration = 0; in fling() 755 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 | 130 int mDuration; field in Toast 215 service.enqueueToast(pkg, mToken, tn, mDuration, displayId); in show() 220 service.enqueueTextToast(pkg, mToken, mText, mDuration, displayId, callback); in show() 223 service.enqueueToast(pkg, mToken, tn, mDuration, displayId); in show() 295 mDuration = duration; in setDuration() 296 mTN.mDuration = duration; in setDuration() 305 return mDuration; in getDuration() 509 result.mDuration = duration; in makeText() 532 result.mDuration = duration; in makeCustomToastWithIcon() 624 int mDuration; field in Toast.TN [all …]
|
/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/native/services/surfaceflinger/tests/unittests/ |
D | MessageQueueTest.cpp | 74 EXPECT_NO_FATAL_FAILURE(mEventQueue.initVsync(mVSyncDispatch, mTokenManager, mDuration)); in SetUp() 83 constexpr static auto mDuration = std::chrono::nanoseconds(100ms); member 92 const auto timing = scheduler::VSyncDispatch::ScheduleTiming{.workDuration = mDuration.count(), in TEST_F() 106 const auto timing = scheduler::VSyncDispatch::ScheduleTiming{.workDuration = mDuration.count(), in TEST_F() 125 const auto timing = scheduler::VSyncDispatch::ScheduleTiming{.workDuration = mDuration.count(), in TEST_F() 136 const auto endTime = startTime + mDuration.count(); in TEST_F() 149 scheduler::VSyncDispatch::ScheduleTiming{.workDuration = mDuration.count(), in TEST_F()
|
/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/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/libs/WindowManager/Shell/src/com/android/wm/shell/animation/ |
D | FlingAnimationUtils.java | 140 animator.setDuration(properties.mDuration); in apply() 159 animator.setDuration(properties.mDuration); in apply() 192 mAnimatorProperties.mDuration = (long) (durationSeconds * 1000); in getProperties() 236 animator.setDuration(properties.mDuration); in applyDismissing() 256 animator.setDuration(properties.mDuration); in applyDismissing() 289 mAnimatorProperties.mDuration = (long) (durationSeconds * 1000); in getDismissingProperties() 369 long mDuration; field in FlingAnimationUtils.AnimatorProperties
|
/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 | 225 private long mDuration = 300; field in ValueAnimator 684 mDuration = duration; in setDuration() 704 return (long)(mDuration * resolveDurationScale()); in getScaledDuration() 714 return mDuration; in getDuration() 722 return mStartDelay + (mDuration * (mRepeatCount + 1)); in getTotalDuration() 737 float fraction = mDuration > 0 ? (float) playTime / mDuration : 1; in setCurrentPlayTime() 857 return (long) (mDuration * mSeekFraction); in getCurrentPlayTime() 1463 int iteration = (int) (currentPlayTime / mDuration); in animateBasedOnPlayTime() 1464 int lastIteration = (int) (lastPlayTime / mDuration); in animateBasedOnPlayTime() 1480 if (mRepeatCount != INFINITE && currentPlayTime >= (mRepeatCount + 1) * mDuration) { in animateBasedOnPlayTime() [all …]
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | AssociationState.java | 74 long mDuration; field in AssociationState.SourceState 181 mDuration += now - mStartUptime; in stop() 311 mDuration = 0; in resetSafely() 334 mDuration += nowUptime - mStartUptime; in commitStateTime() 381 mDuration += otherSrc.mDuration; in add() 430 out.writeLong(mDuration); in writeToParcel() 449 mDuration = in.readLong(); in readFromParcel() 645 Slog.w(TAG, "Adding tot duration " + mySrc.mDuration + "+" in add() 646 + otherSrc.mDuration in add() 650 if ((mySrc.mDuration + otherSrc.mDuration) > mTotalDuration) { in add() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Dimmer.java | 344 private final long mDuration; field in Dimmer.AlphaAnimationSpec 351 mDuration = duration; in AlphaAnimationSpec() 356 return mDuration; in getDuration() 370 pw.print(" duration="); pw.println(mDuration); in dump() 378 proto.write(DURATION_MS, mDuration); in dumpDebugInner()
|
/frameworks/base/cmds/hid/src/com/android/commands/hid/ |
D | Event.java | 64 private int mDuration; field in Event 107 return mDuration; in getDuration() 121 + ", duration=" + mDuration in toString() 173 mEvent.mDuration = duration; in setDuration() 187 if (mEvent.mDuration <= 0) { in build()
|
/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()
|