Home
last modified time | relevance | path

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

123

/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/utils/
DImsMediaTimer.cpp35 uint32_t mDuration; member
81 uint32_t sleepTime = timer->mDuration; in ImsMediaTimer_run()
83 if (timer->mDuration > 10 && timer->mDuration < 100) in ImsMediaTimer_run()
87 else if (timer->mDuration >= 100 && timer->mDuration < 1000) in ImsMediaTimer_run()
89 sleepTime = timer->mDuration / 10; in ImsMediaTimer_run()
91 else if (timer->mDuration >= 1000) in ImsMediaTimer_run()
113 if (nTimeDiff >= timer->mDuration) in ImsMediaTimer_run()
162 timer->mDuration = duration; in TimerStart()
167 IMLOGD3("[TimerStart] duration[%u], repeat[%d], userData[%x]", timer->mDuration, repeat, in TimerStart()
/packages/modules/StatsD/statsd/src/metrics/duration_helper/
DOringDurationTracker.cpp101 mStateKeyDurationMap[mEventKey.getStateValuesKey()].mDuration += in noteStop()
127 mStateKeyDurationMap[mEventKey.getStateValuesKey()].mDuration += in noteStopAll()
168 mStateKeyDurationMap[mEventKey.getStateValuesKey()].mDuration += in flushCurrentBucket()
177 durationIt.second.mDurationFullBucket += durationIt.second.mDuration; in flushCurrentBucket()
178 if (durationPassesThreshold(uploadThreshold, durationIt.second.mDuration)) { in flushCurrentBucket()
182 current_info.mDuration = durationIt.second.mDuration; in flushCurrentBucket()
186 VLOG(" duration: %lld", (long long)current_info.mDuration); in flushCurrentBucket()
189 (long long)durationIt.second.mDuration); in flushCurrentBucket()
198 durationIt.second.mDuration = 0; in flushCurrentBucket()
210 info.mDuration = mBucketSizeNs; in flushCurrentBucket()
[all …]
DMaxDurationTracker.cpp37 mDuration = 0; in MaxDurationTracker()
141 if (duration.lastDuration > mDuration) { in noteStop()
142 mDuration = duration.lastDuration; in noteStop()
143 VLOG("Max: new max duration: %lld", (long long)mDuration); in noteStop()
164 return !mInfos.empty() || mDuration != 0; in hasAccumulatedDuration()
209 if (durationPassesThreshold(uploadThreshold, mDuration)) { in flushCurrentBucket()
213 info.mDuration = mDuration; in flushCurrentBucket()
216 VLOG(" final duration for last bucket: %lld", (long long)mDuration); in flushCurrentBucket()
218 VLOG(" duration: %lld does not pass set threshold", (long long)mDuration); in flushCurrentBucket()
228 mDuration = 0; in flushCurrentBucket()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DPendingAnimation.java44 private final long mDuration; field in PendingAnimation
47 mDuration = duration; in PendingAnimation()
51 return mDuration; in getDuration()
75 mAnim.play(a.setDuration(mDuration)); in add()
76 addAnimationHoldersRecur(a, mDuration, springProperty, mAnimHolders); in add()
123 add(ValueAnimator.ofFloat(0, 1).setDuration(mDuration)); in buildAnim()
132 return new AnimatorPlaybackController(buildAnim(), mDuration, mAnimHolders); in createPlaybackController()
DSpringAnimationBuilder.java69 private float mDuration = 0; field in SpringAnimationBuilder
129 return getValue(mDuration * fraction); in getInterpolatedValue()
184 mDuration = (float) duration; in computeParams()
189 return (long) (1000.0 * mDuration); in getDuration()
195 ValueAnimator animator = ValueAnimator.ofFloat(0, mDuration); in build()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DOther.java29 private long mDuration; field in Other
40 mDuration = Long.MIN_VALUE; in Other()
59 return mDuration >= 0; in hasDuration()
66 return mDuration; in getDuration()
70 if (duration == mDuration) { in setDuration()
73 mDuration = duration; in setDuration()
/packages/modules/HealthFitness/framework/java/android/health/connect/aidl/
DAggregateDataRequestParcel.java59 private Duration mDuration; field in AggregateDataRequestParcel
82 mDuration = Duration.ofMillis(mEndTime - mStartTime); in AggregateDataRequestParcel()
87 mDuration = duration; in AggregateDataRequestParcel()
93 mDuration = null; in AggregateDataRequestParcel()
118 mDuration = Duration.ofMillis(duration); in AggregateDataRequestParcel()
124 return mDuration; in getDuration()
157 if (mDuration != null) { in writeToParcel()
158 dest.writeLong(mDuration.toMillis()); in writeToParcel()
DAggregateDataResponseParcel.java65 private Duration mDuration; field in AggregateDataResponseParcel
110 mDuration = Duration.ofMillis(duration); in AggregateDataResponseParcel()
137 mDuration = duration; in setDuration()
166 Objects.requireNonNull(mDuration); in getAggregateDataResponseGroupedByDuration()
197 Instant bucketEndTime = bucketStartTime.plus(mDuration); in getAggregateDataResponseForLocalTimeGroupedByDuration()
205 bucketStartTimeOffset = bucketStartTimeOffset.plus(mDuration); in getAggregateDataResponseForLocalTimeGroupedByDuration()
218 Instant buckedEndTime = buckedStartTime.plus(mDuration); in getAggregateDataResponseForInstantTimeGroupedByDuration()
227 offsetDuration = offsetDuration.plus(mDuration); in getAggregateDataResponseForInstantTimeGroupedByDuration()
306 if (mDuration != null) { in writeToParcel()
307 dest.writeLong(mDuration.toMillis()); in writeToParcel()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DExerciseCompletionGoal.java76 private final Duration mDuration; field in ExerciseCompletionGoal.DistanceWithVariableRestGoal
86 this.mDuration = duration; in DistanceWithVariableRestGoal()
98 return mDuration; in getDuration()
112 return Objects.hash(mDistance, mDuration); in hashCode()
150 private final Duration mDuration; field in ExerciseCompletionGoal.DurationGoal
157 this.mDuration = duration; in DurationGoal()
163 return mDuration; in getDuration()
176 return Objects.hash(mDuration); in hashCode()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java227 return Math.max(mScrollerX.mDuration, mScrollerY.mDuration); in getDuration()
302 final int duration = mScrollerX.mDuration; in computeScrollOffset()
562 private int mDuration; field in OverScroller.SplineOverScroller
678 mDuration *= timeCoef; in adjustDuration()
689 mDuration = duration; in startScroll()
712 mDuration = elapsedTime + extend; in extendDuration()
723 mDuration = 0; in springback()
745 mDuration = (int) (1000.0 * Math.sqrt(-2.0 * delta / mDeceleration)); in startSpringback()
752 mDuration = mSplineDuration = 0; in fling()
765 mDuration = mSplineDuration = getSplineFlingDuration(velocity); in fling()
[all …]
DScroller.java50 private int mDuration; field in Scroller
176 return mDuration; in getDuration()
255 if (timePassed < mDuration) { in computeScrollOffset()
269 final float t = (float) timePassed / mDuration; in computeScrollOffset()
336 mDuration = duration; in startScroll()
344 mDurationReciprocal = 1.0f / mDuration; in startScroll()
395 mDuration = (int) (1000.0 * Math.exp(l / (DECELERATION_RATE - 1.0))); in fling()
459 mDuration = passed + extend; in extendDuration()
460 mDurationReciprocal = 1.0f / mDuration; in extendDuration()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DPickResult.java27 private long mDuration; field in PickResult
61 return mDuration; in getDuration()
70 mDuration += currentMillis - mPickStartTime; in increaseDuration()
207 out.writeLong(mDuration); in writeToParcel()
226 result.mDuration = in.readLong();
245 ", mDuration=" + mDuration + in toString()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DExerciseCompletionGoalInternal.java194 parcel.writeLong(this.mDuration.toMillis()); in writeFieldsToParcel()
203 private final Duration mDuration; field in ExerciseCompletionGoalInternal.DurationGoalInternal
206 this.mDuration = duration; in DurationGoalInternal()
211 return mDuration; in getDuration()
217 return new ExerciseCompletionGoal.DurationGoal(mDuration); in toExternalObject()
345 parcel.writeLong(this.mDuration.toMillis()); in writeFieldsToParcel()
358 private final Duration mDuration; field in ExerciseCompletionGoalInternal.DistanceWithVariableRestGoalInternal
363 this.mDuration = duration; in DistanceWithVariableRestGoalInternal()
373 return mDuration; in getDuration()
379 return new ExerciseCompletionGoal.DistanceWithVariableRestGoal(mDistance, mDuration); in toExternalObject()
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/
DDistanceMeasurementParams.java78 private int mDuration; field in DistanceMeasurementParams
91 mDuration = duration; in DistanceMeasurementParams()
117 return mDuration; in getDurationSeconds()
190 out.writeInt(mDuration); in writeToParcel()
224 private int mDuration = REPORT_DURATION_DEFAULT; field in DistanceMeasurementParams.Builder
255 mDuration = duration; in setDurationSeconds()
325 mDevice, mDuration, mFrequency, mMethodId, mChannelSoundingParams); in build()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/request/
DAggregateTransactionRequest.java50 private final Duration mDuration; field in AggregateTransactionRequest
60 mDuration = request.getDuration(); in AggregateTransactionRequest()
81 if (mDuration != null || mPeriod != null) { in AggregateTransactionRequest()
85 mDuration, in AggregateTransactionRequest() local
135 } else if (mDuration != null) { in getAggregateDataResponseParcel()
136 aggregateDataResponseParcel.setDuration(mDuration, mTimeRangeFilter); in getAggregateDataResponseParcel()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DFlingScroller.java40 private int mDuration; field in FlingScroller
56 return mDuration; in getDuration()
96 mDuration = (int)Math.round(FLING_DURATION_PARAM in fling()
101 velocity * mDuration / DECELERATED_FACTOR / 1000); in fling()
139 Math.pow(1 - progress, DECELERATED_FACTOR - 1) / mDuration; in getV()
DEdgeEffect.java106 private float mDuration; field in EdgeEffect
186 if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) { in onPull()
195 mDuration = PULL_TIME; in onPull()
251 mDuration = RECEDE_TIME; in onRelease()
269 mDuration = 0.1f + (velocity * 0.03f); in onAbsorb()
350 final float t = Math.min((time - mStartTime) / mDuration, 1.f); in update()
364 mDuration = RECEDE_TIME; in update()
380 mDuration = PULL_DECAY_TIME; in update()
/packages/apps/Gallery2/src/com/android/gallery3d/anim/
DAnimation.java53 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/Settings/src/com/android/settings/applications/
DProcessStatsDetail.java315 if (lhs.mDuration < rhs.mDuration) {
317 } else if (lhs.mDuration > rhs.mDuration) {
327 if (lhs.mDuration < rhs.mDuration) {
329 } else if (lhs.mDuration > rhs.mDuration) {
338 long mDuration; field in ProcessStatsDetail.PkgService
350 if (pent.mDuration >= mOnePercentTime) { in fillServicesSection()
360 psvc.mDuration += pent.mDuration; in fillServicesSection()
375 service.mDuration / (float) mTotalTime, getActivity())); in fillServicesSection()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DFlingAnimation.java41 protected int mDuration; field in FlingAnimation
71 mDuration = Math.abs(mUY) > Math.abs(mUX) ? initFlingUpDuration() : initFlingLeftDuration(); in run()
73 mAnimationTimeFraction = ((float) mDuration) / (mDuration + DRAG_END_DELAY); in run()
75 final int duration = mDuration + DRAG_END_DELAY; in run()
176 final float time = t * mDuration; in onAnimationUpdate()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/model/
DItem.java61 private long mDuration; field in Item
86 mDuration = duration; in Item()
129 return mDuration; in getDuration()
179 mDuration = getCursorLong(cursor, MediaColumns.DURATION_MILLIS); in updateFromCursor()
208 if (mDuration == -1) { in getDurationText()
211 return DateUtils.formatElapsedTime(mDuration / 1000); in getDurationText()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DCrossFadeHelper.java38 private final int mDuration; field in CrossFadeHelper
56 mDuration = duration; in CrossFadeHelper()
71 fadeInAnimator.setDuration(mDuration); in getFadeInAnimator()
86 fadeOutAnimator.setDuration(mDuration); in getFadeOutAnimator()
/packages/modules/StatsD/statsd/tests/metrics/
DDurationMetricProducer_test.cpp120 EXPECT_EQ(bucketSizeNs - 1LL, buckets[0].mDuration); in TEST()
123 EXPECT_EQ(2LL, buckets[1].mDuration); in TEST()
181 EXPECT_EQ(1LL, buckets2[0].mDuration); in TEST()
231 EXPECT_EQ(1LL, buckets2[0].mDuration); in TEST()
283 EXPECT_EQ(partialBucketSplitTimeNs - startTimeNs, buckets[0].mDuration); in TEST_P()
296 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs - partialBucketSplitTimeNs, buckets[1].mDuration); in TEST_P()
299 EXPECT_EQ(bucketSizeNs, buckets[2].mDuration); in TEST_P()
348 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs - startTimeNs, buckets[0].mDuration); in TEST_P()
351 EXPECT_EQ(partialBucketSplitTimeNs - (bucketStartTimeNs + bucketSizeNs), buckets[1].mDuration); in TEST_P()
365 buckets[2].mDuration); in TEST_P()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DSnackBar.java128 private int mDuration = LONG_DURATION_IN_MS; field in SnackBar.Builder
159 mDuration = duration; in setDuration()
194 private final int mDuration; field in SnackBar
211 mDuration = builder.mDuration; in SnackBar()
257 return mDuration; in getDuration()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DDistanceMeasurementTracker.java37 final int mDuration; // Report duration in s field in DistanceMeasurementTracker
55 mDuration = params.getDurationSeconds(); in DistanceMeasurementTracker()
69 mDuration * 1000L); in startTimer()

123