Home
last modified time | relevance | path

Searched refs:mDuration (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/base/cmds/statsd/src/metrics/duration_helper/
DOringDurationTracker.cpp92 mStateKeyDurationMap[mEventKey.getStateValuesKey()].mDuration += in noteStop()
118 mStateKeyDurationMap[mEventKey.getStateValuesKey()].mDuration += in noteStopAll()
157 mStateKeyDurationMap[mEventKey.getStateValuesKey()].mDuration += in flushCurrentBucket()
166 if (durationIt.second.mDuration > 0) { in flushCurrentBucket()
170 current_info.mDuration = durationIt.second.mDuration; in flushCurrentBucket()
174 durationIt.second.mDurationFullBucket += durationIt.second.mDuration; in flushCurrentBucket()
175 VLOG(" duration: %lld", (long long)current_info.mDuration); in flushCurrentBucket()
185 durationIt.second.mDuration = 0; in flushCurrentBucket()
193 info.mDuration = mBucketSizeNs; in flushCurrentBucket()
198 addPastBucketToAnomalyTrackers(mEventKey, info.mDuration, mCurrentBucketNum + i); in flushCurrentBucket()
[all …]
DMaxDurationTracker.cpp134 if (duration.lastDuration > mDuration) { in noteStop()
135 mDuration = duration.lastDuration; in noteStop()
136 VLOG("Max: new max duration: %lld", (long long)mDuration); in noteStop()
195 if (mDuration != 0) { in flushCurrentBucket()
199 info.mDuration = mDuration; in flushCurrentBucket()
201 VLOG(" final duration for last bucket: %lld", (long long)mDuration); in flushCurrentBucket()
211 mDuration = 0; in flushCurrentBucket()
312 fprintf(out, "\t\t current duration %lld\n", (long long)mDuration); in dumpStates()
DDurationTracker.h56 int64_t mDuration; member
61 int64_t mDuration; member
83 mDuration(0), in DurationTracker()
202 int64_t mDuration; // current recorded duration result (for partial bucket) variable
/frameworks/native/cmds/idlcli/vibrator/
DCommandOn.cpp39 if (auto duration = args.pop<decltype(mDuration)>()) { in doArgs()
40 mDuration = *duration; in doArgs()
57 auto status = hal->call(&aidl::IVibrator::on, mDuration, nullptr); in doMain()
61 auto status = hal->call(&V1_0::IVibrator::on, mDuration); in doMain()
73 uint32_t mDuration; member in android::idlcli::vibrator::CommandOn
/frameworks/base/libs/hwui/
DPropertyValuesAnimatorSet.cpp71 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()
DAnimator.cpp44 , mDuration(300) in BaseRenderNodeAnimator()
75 mDuration = duration; in setDuration()
130 : mDuration; in resolveStagingRequest()
144 mPlayTime = mPlayState == PlayState::Reversing ? 0 : mDuration; in resolveStagingRequest()
200 mStartTime = currentFrameTime - (mDuration - mPlayTime); in pushStaging()
232 if (mDuration < 0) { in transitionToRunning()
233 ALOGW("Your duration is strange and confusing: %" PRId64, mDuration); in transitionToRunning()
247 updatePlayTime(mDuration); in animate()
266 mPlayTime = mPlayState == PlayState::Reversing ? mDuration - playTime : playTime; in updatePlayTime()
278 if ((mPlayState == PlayState::Running || mPlayState == PlayState::Reversing) && mDuration > 0) { in updatePlayTime()
[all …]
/frameworks/base/core/java/android/view/
DRemoteAnimationAdapter.java52 private final long mDuration; field in RemoteAnimationAdapter
72 mDuration = duration; in RemoteAnimationAdapter()
85 mDuration = in.readLong(); in RemoteAnimationAdapter()
95 return mDuration; in getDuration()
136 dest.writeLong(mDuration); in writeToParcel()
/frameworks/base/services/core/java/com/android/server/notification/toast/
DToastRecord.java38 private int mDuration; field in ToastRecord
49 mDuration = duration; in ToastRecord()
69 return mDuration; in getDuration()
76 mDuration = duration; in update()
/frameworks/base/core/java/android/widget/
DOverScroller.java240 return Math.max(mScrollerX.mDuration, mScrollerY.mDuration); in getDuration()
316 final int duration = mScrollerX.mDuration; in computeScrollOffset()
571 private int mDuration; field in OverScroller.SplineOverScroller
684 mDuration *= timeCoef; in adjustDuration()
695 mDuration = duration; in startScroll()
718 mDuration = elapsedTime + extend; in extendDuration()
729 mDuration = 0; in springback()
751 mDuration = (int) (1000.0 * Math.sqrt(-2.0 * delta / mDeceleration)); in startSpringback()
758 mDuration = mSplineDuration = 0; in fling()
771 mDuration = mSplineDuration = getSplineFlingDuration(velocity); in fling()
[all …]
DEdgeEffect.java99 private float mDuration; field in EdgeEffect
214 if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) { in onPull()
223 mDuration = PULL_TIME; in onPull()
265 mDuration = RECEDE_TIME; in onRelease()
283 mDuration = 0.15f + (velocity * 0.02f); in onAbsorb()
399 final float t = Math.min((time - mStartTime) / mDuration, 1.f); in update()
412 mDuration = RECEDE_TIME; in update()
424 mDuration = PULL_DECAY_TIME; in update()
DScroller.java83 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()
DToast.java123 int mDuration; field in Toast
205 service.enqueueToast(pkg, mToken, tn, mDuration, displayId); in show()
210 service.enqueueTextToast(pkg, mToken, mText, mDuration, displayId, callback); in show()
213 service.enqueueToast(pkg, mToken, tn, mDuration, displayId); in show()
285 mDuration = duration; in setDuration()
286 mTN.mDuration = duration; in setDuration()
295 return mDuration; in getDuration()
494 result.mDuration = duration; in makeText()
500 result.mDuration = duration; in makeText()
594 int mDuration; field in Toast.TN
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DTextProgressBar.java57 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/graphics/java/android/graphics/drawable/
DTransitionDrawable.java71 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/
DInteraction.java40 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/
DIMIDITime.cpp30 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/
DAnimation.java160 long mDuration; field in Animation
446 mDuration = durationMillis; in setDuration()
462 mDuration = 0; in restrictDuration()
467 long dur = mDuration + mStartOffset; in restrictDuration()
469 mDuration = durationMillis-mStartOffset; in restrictDuration()
473 if (mDuration <= 0) { in restrictDuration()
474 mDuration = 0; in restrictDuration()
498 mDuration = (long) (mDuration * scale); in scaleCurrentDuration()
728 return mDuration; in getDuration()
915 final long duration = mDuration; in getTransformation()
DAnimationSet.java209 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()
439 final long duration = mDuration; in initialize()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipConnectionBase.java48 private long mDuration = -1L; field in SipConnectionBase
70 mDuration = getDurationMillis(); in setState()
105 } else if (mDuration < 0) { in getDurationMillis()
108 dur = mDuration; in getDurationMillis()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DGraphicBufferMetrics.java106 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/cmds/statsd/tests/metrics/
DDurationMetricProducer_test.cpp117 EXPECT_EQ(bucketSizeNs - 1LL, buckets[0].mDuration); in TEST()
120 EXPECT_EQ(2LL, buckets[1].mDuration); in TEST()
170 EXPECT_EQ(1LL, buckets2[0].mDuration); in TEST()
217 EXPECT_EQ(1LL, buckets2[0].mDuration); in TEST()
267 EXPECT_EQ(partialBucketSplitTimeNs - startTimeNs, buckets[0].mDuration); in TEST_P()
280 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs - partialBucketSplitTimeNs, buckets[1].mDuration); in TEST_P()
283 EXPECT_EQ(bucketSizeNs, buckets[2].mDuration); in TEST_P()
330 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs - startTimeNs, buckets[0].mDuration); in TEST_P()
333 EXPECT_EQ(partialBucketSplitTimeNs - (bucketStartTimeNs + bucketSizeNs), buckets[1].mDuration); in TEST_P()
347 buckets[2].mDuration); in TEST_P()
[all …]
/frameworks/base/core/java/android/os/
DVibrationEffect.java418 private final long mDuration; field in VibrationEffect.OneShot
422 mDuration = in.readLong(); in OneShot()
427 mDuration = milliseconds; in OneShot()
433 return mDuration; in getDuration()
456 return new OneShot(mDuration, newAmplitude); in scale()
474 return new OneShot(mDuration, defaultAmplitude); in resolve()
486 if (mDuration <= 0) { in validate()
488 "duration must be positive (duration=" + mDuration + ")"); in validate()
498 return other.mDuration == mDuration && other.mAmplitude == mAmplitude; in equals()
504 result += 37 * (int) mDuration; in hashCode()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DVoicemail.java33 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/
DValueAnimator.java214 private long mDuration = 300; field in ValueAnimator
601 mDuration = duration; in setDuration()
621 return (long)(mDuration * resolveDurationScale()); in getScaledDuration()
631 return mDuration; in getDuration()
639 return mStartDelay + (mDuration * (mRepeatCount + 1)); in getTotalDuration()
654 float fraction = mDuration > 0 ? (float) playTime / mDuration : 1; in setCurrentPlayTime()
774 return (long) (mDuration * mSeekFraction); in getCurrentPlayTime()
1380 int iteration = (int) (currentPlayTime / mDuration); in animateBasedOnPlayTime()
1381 int lastIteration = (int) (lastPlayTime / mDuration); in animateBasedOnPlayTime()
1397 if (mRepeatCount != INFINITE && currentPlayTime >= (mRepeatCount + 1) * mDuration) { in animateBasedOnPlayTime()
[all …]
/frameworks/base/core/java/com/android/internal/app/procstats/
DAssociationState.java65 long mDuration; field in AssociationState.SourceState
114 mDuration += now - mStartUptime; in stop()
384 Slog.w(TAG, "Adding tot duration " + mySrc.mDuration + "+" in add()
385 + otherSrc.mDuration in add()
389 if ((mySrc.mDuration + otherSrc.mDuration) > mTotalDuration) { in add()
392 Slog.w(TAG, "Source tot duration " + mySrc.mDuration + "+" in add()
393 + otherSrc.mDuration in add()
416 mySrc.mDuration += otherSrc.mDuration; in add()
480 src.mDuration = 0; in resetSafely()
519 out.writeLong(src.mDuration); in writeToParcel()
[all …]

123