/packages/modules/StatsD/statsd/src/metrics/duration_helper/ |
D | OringDurationTracker.cpp | 92 mStateKeyDurationMap[mEventKey.getStateValuesKey()].mDuration += in noteStop() 118 mStateKeyDurationMap[mEventKey.getStateValuesKey()].mDuration += in noteStopAll() 158 mStateKeyDurationMap[mEventKey.getStateValuesKey()].mDuration += in flushCurrentBucket() 167 if (durationPassesThreshold(uploadThreshold, durationIt.second.mDuration)) { in flushCurrentBucket() 171 current_info.mDuration = durationIt.second.mDuration; in flushCurrentBucket() 175 durationIt.second.mDurationFullBucket += durationIt.second.mDuration; in flushCurrentBucket() 176 VLOG(" duration: %lld", (long long)current_info.mDuration); in flushCurrentBucket() 178 VLOG(" duration: %lld does not pass set threshold", (long long)mDuration); in flushCurrentBucket() 188 durationIt.second.mDuration = 0; in flushCurrentBucket() 196 info.mDuration = mBucketSizeNs; in flushCurrentBucket() [all …]
|
D | MaxDurationTracker.cpp | 134 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 (durationPassesThreshold(uploadThreshold, mDuration)) { in flushCurrentBucket() 199 info.mDuration = mDuration; in flushCurrentBucket() 201 VLOG(" final duration for last bucket: %lld", (long long)mDuration); in flushCurrentBucket() 203 VLOG(" duration: %lld does not pass set threshold", (long long)mDuration); in flushCurrentBucket() 213 mDuration = 0; in flushCurrentBucket() 315 fprintf(out, "\t\t current duration %lld\n", (long long)mDuration); in dumpStates()
|
/packages/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/ |
D | ServerToSystemTest.java | 137 private Duration mDuration; field in ServerToSystemTest 205 mDuration = Duration.ofMillis(System.currentTimeMillis()); in setUp() 218 assertPoolStatus(0, 0, 0, 0, mDuration); in testFullRoundTrip() 220 assertPoolStatus(numTestKeys, 0, 0, 0, mDuration); in testFullRoundTrip() 230 assertPoolStatus(numTestKeys, numTestKeys, numTestKeys, 0, mDuration); in testFullRoundTrip() 234 numTestKeys, mDuration.plusDays(180)); in testFullRoundTrip() 244 AttestationPoolStatus pool = sBinder.getPoolStatus(mDuration.toMillis(), in testPeriodicProvisionerRoundTrip() 261 final AttestationPoolStatus pool = sBinder.getPoolStatus(mDuration.toMillis(), in testPeriodicProvisionerNoop() 271 assertPoolStatus(pool.total, pool.attested, pool.unassigned, pool.expiring, mDuration); in testPeriodicProvisionerNoop() 285 AttestationPoolStatus pool = sBinder.getPoolStatus(mDuration.toMillis(), in testPeriodicProvisionerDataBudgetEmpty() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
D | PendingAnimation.java | 43 private final long mDuration; field in PendingAnimation 46 mDuration = duration; in PendingAnimation() 50 return mDuration; in getDuration() 67 mAnim.play(a.setDuration(mDuration)); in add() 68 addAnimationHoldersRecur(a, mDuration, springProperty, mAnimHolders); in add() 92 add(ValueAnimator.ofFloat(0, 1).setDuration(mDuration)); in buildAnim() 101 return new AnimatorPlaybackController(buildAnim(), mDuration, mAnimHolders); in createPlaybackController()
|
D | SpringAnimationBuilder.java | 69 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()
|
D | AnimatorPlaybackController.java | 66 private final long mDuration; field in AnimatorPlaybackController 79 mDuration = duration; in AnimatorPlaybackController() 111 return mDuration; in getDuration() 273 float playPos = mDuration * fraction; in clampDuration() 277 return Math.min((long) playPos, mDuration); in clampDuration()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | OverScroller.java | 227 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 …]
|
D | Scroller.java | 50 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/UniversalMediaPlayer/java/com/android/pump/db/ |
D | Other.java | 29 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/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | PickResult.java | 27 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/apps/Settings/src/com/android/settings/applications/ |
D | ProcessStatsDetail.java | 316 if (lhs.mDuration < rhs.mDuration) { 318 } else if (lhs.mDuration > rhs.mDuration) { 328 if (lhs.mDuration < rhs.mDuration) { 330 } else if (lhs.mDuration > rhs.mDuration) { 339 long mDuration; field in ProcessStatsDetail.PkgService 351 if (pent.mDuration >= mOnePercentTime) { in fillServicesSection() 361 psvc.mDuration += pent.mDuration; in fillServicesSection() 376 service.mDuration / (float) mTotalTime, getActivity())); in fillServicesSection()
|
D | ProcStatsEntry.java | 234 if (service.mDuration > thisRunTime) { in evaluateTargetPackage() 237 + " run time is " + service.mDuration); in evaluateTargetPackage() 238 thisRunTime = service.mDuration; in evaluateTargetPackage() 319 final long mDuration; field in ProcStatsEntry.Service 325 mDuration = service.dumpTime(null, null, in Service() 333 mDuration = in.readLong(); in Service() 346 dest.writeLong(mDuration); in writeToParcel()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | EdgeEffect.java | 106 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()
|
D | FlingScroller.java | 40 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()
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | DurationMetricProducer_test.cpp | 118 EXPECT_EQ(bucketSizeNs - 1LL, buckets[0].mDuration); in TEST() 121 EXPECT_EQ(2LL, buckets[1].mDuration); in TEST() 172 EXPECT_EQ(1LL, buckets2[0].mDuration); in TEST() 220 EXPECT_EQ(1LL, buckets2[0].mDuration); in TEST() 271 EXPECT_EQ(partialBucketSplitTimeNs - startTimeNs, buckets[0].mDuration); in TEST_P() 284 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs - partialBucketSplitTimeNs, buckets[1].mDuration); in TEST_P() 287 EXPECT_EQ(bucketSizeNs, buckets[2].mDuration); in TEST_P() 335 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs - startTimeNs, buckets[0].mDuration); in TEST_P() 338 EXPECT_EQ(partialBucketSplitTimeNs - (bucketStartTimeNs + bucketSizeNs), buckets[1].mDuration); in TEST_P() 352 buckets[2].mDuration); in TEST_P() [all …]
|
D | OringDurationTracker_test.cpp | 79 EXPECT_EQ(durationTimeNs, buckets[eventKey][0].mDuration); in TEST() 108 EXPECT_EQ(2003LL, buckets[eventKey][0].mDuration); in TEST() 138 EXPECT_EQ(2003LL, buckets[eventKey][0].mDuration); in TEST() 166 EXPECT_EQ(bucketSizeNs - 1, buckets[eventKey][0].mDuration); in TEST() 167 EXPECT_EQ(bucketSizeNs, buckets[eventKey][1].mDuration); in TEST() 174 EXPECT_EQ(bucketSizeNs - 1, buckets[eventKey][0].mDuration); in TEST() 175 EXPECT_EQ(bucketSizeNs, buckets[eventKey][1].mDuration); in TEST() 212 EXPECT_EQ(5LL, buckets[eventKey][0].mDuration); in TEST() 253 EXPECT_EQ(1005LL, buckets[eventKey][0].mDuration); in TEST() 291 EXPECT_EQ(15LL, buckets[eventKey][0].mDuration); in TEST() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
D | Animation.java | 53 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/providers/MediaProvider/src/com/android/providers/media/photopicker/data/model/ |
D | Item.java | 51 private long mDuration; field in Item 72 mDuration = duration; in Item() 115 return mDuration; in getDuration() 166 mDuration = getCursorLong(cursor, MediaColumns.DURATION_MILLIS); in updateFromCursor() 194 if (mDuration == -1) { in getDurationText() 197 return DateUtils.formatElapsedTime(mDuration / 1000); in getDurationText()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | FlingAnimation.java | 41 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/apps/Messaging/src/com/android/messaging/ui/ |
D | SnackBar.java | 128 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/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | CrossFadeHelper.java | 38 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/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | MultiValueUpdateListener.java | 39 float newPercent = Math.min(1f, time / prop.mDuration); in onAnimationUpdate() 59 private final float mDuration; field in MultiValueUpdateListener.FloatProp 66 mDuration = duration; in FloatProp()
|
/packages/apps/Music/kotlin/src/com/android/music/ |
D | AudioPreview.kt | 64 private var mDuration = 0 variable 229 mDuration = mPlayer!!.getDuration() in showPostPrepareUI() 230 if (mDuration != 0) { in showPostPrepareUI() 231 mSeekBar.setMax(mDuration) in showPostPrepareUI() 294 if (mPlayer != null && !mSeeking && mDuration != 0) { in run() 343 mSeekBar.setProgress(mDuration) in onCompletion()
|
/packages/apps/Music/src/com/android/music/ |
D | AudioPreview.java | 67 private int mDuration; field in AudioPreview 256 mDuration = mPlayer.getDuration(); in showPostPrepareUI() 257 if (mDuration != 0) { in showPostPrepareUI() 258 mSeekBar.setMax(mDuration); in showPostPrepareUI() 329 if (mPlayer != null && !mSeeking && mDuration != 0) { in run() 377 mSeekBar.setProgress(mDuration); in onCompletion()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | FolderAnimationManager.java | 75 private final int mDuration; field in FolderAnimationManager 104 mDuration = res.getInteger(R.integer.config_materialFolderExpandDuration); in FolderAnimationManager() 223 footerStartDelay = mDuration - footerAlphaDuration; in getAnimator() 230 footerAlphaDuration = mDuration; in getAnimator() 255 mIsOpening ? mDuration - FOLDER_NAME_ALPHA_DURATION : FOLDER_NAME_ALPHA_DURATION); in getAnimator() 264 int midDuration = mDuration / 2; in getAnimator() 432 play(as, a, a.getStartDelay(), mDuration); in play()
|