/frameworks/base/core/tests/coretests/src/android/os/ |
D | CombinedVibrationTest.java | 125 VibrationEffect.createOneShot(1, 1)).getDuration()); in testDurationMono() 127 VibrationEffect.get(VibrationEffect.EFFECT_CLICK)).getDuration()); in testDurationMono() 133 .getDuration()); in testDurationMono() 136 new long[]{1, 2, 3}, new int[]{1, 2, 3}, 0)).getDuration()); in testDurationMono() 146 .getDuration()); in testDurationStereo() 152 .getDuration()); in testDurationStereo() 158 .getDuration()); in testDurationStereo() 168 .getDuration()); in testDurationSequential() 174 .getDuration()); in testDurationSequential() 180 .getDuration()); in testDurationSequential()
|
/frameworks/base/core/tests/coretests/src/android/animation/ |
D | AnimatorSetActivityTest.java | 152 totalDuration += list.get(i).getDuration(); in testTotalDuration() 168 long duration = list.get(i).getDuration(); in testTotalDuration() 190 long duration = a1.getDuration() + a1.getStartDelay() + a2.getDuration() + a2 in testTotalDuration() 191 .getStartDelay() + a3.getDuration() + a3.getStartDelay(); in testTotalDuration() 192 long a4Duration = a4.getDuration() + a4.getStartDelay(); in testTotalDuration() 193 long a5Duration = a5.getDuration() + a5.getStartDelay(); in testTotalDuration() 207 assertTrue(s.getDuration() < 0); in testGetDuration() 209 assertTrue(s.getDuration() < 0); in testGetDuration() 213 assertEquals(duration, s.getDuration()); in testGetDuration() 221 assertTrue(s.getDuration() < 0); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSDetailClipper.java | 85 mAnimator.setDuration(animate ? (long) (mAnimator.getDuration() * 1.5) : 0); in updateCircularClip() 90 mBackground.startTransition(animate ? (int) (mAnimator.getDuration() * 0.6) : 0); in updateCircularClip() 94 animate ? (long) (mAnimator.getDuration() * 0.65) : 0); in updateCircularClip() 98 return mAnimator.getDuration(); in updateCircularClip() 105 mBackground.reverseTransition((int)(mAnimator.getDuration() * 0.35));
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | StepToRampAdapter.java | 91 int splits = ((int) ramp.getDuration() + maxDuration - 1) / maxDuration; in splitLongRampSegments() 111 frequencyHz, frequencyHz, (int) segment.getDuration()); in convertStepToRamp() 119 long splitDuration = ramp.getDuration() / splits; in splitRampSegment() 126 float durationRatio = (float) accumulatedDuration / ramp.getDuration(); in splitRampSegment() 141 endFrequencyHz, (int) (ramp.getDuration() - accumulatedDuration))); in splitRampSegment()
|
D | RampToStepAdapter.java | 75 (int) ramp.getDuration())); in apply() 79 int stepCount = (int) (ramp.getDuration() + mStepDuration - 1) / mStepDuration; in apply() 90 int duration = (int) ramp.getDuration() - mStepDuration * (stepCount - 1); in apply()
|
D | SetAmplitudeVibratorStep.java | 94 if (stepSegment.getDuration() == 0) { in play() 121 long nextStartTime = startTime + segment.getDuration(); in play() 173 timing += segment.getDuration(); in getVibratorOnDuration()
|
D | ClippingAmplitudeAndFrequencyAdapter.java | 57 (int) segment.getDuration()); in apply() 68 (int) segment.getDuration()); in apply()
|
/frameworks/base/core/tests/coretests/src/android/os/vibrator/ |
D | PrebakedSegmentTest.java | 44 assertEquals(-1, prebaked.getDuration()); in testCreation() 114 .getDuration()); in testDuration() 117 .getDuration()); in testDuration() 120 .getDuration()); in testDuration() 123 .getDuration()); in testDuration()
|
D | PrimitiveSegmentTest.java | 43 assertEquals(-1, primitive.getDuration()); in testCreation() 134 VibrationEffect.Composition.PRIMITIVE_NOOP, 1, 10).getDuration()); in testDuration() 136 VibrationEffect.Composition.PRIMITIVE_CLICK, 1, 100).getDuration()); in testDuration() 138 VibrationEffect.Composition.PRIMITIVE_SPIN, 1, 0).getDuration()); in testDuration()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | LocalAnimationAdapter.java | 77 return mSpec.getDuration(); in getDurationHint() 133 long getDuration(); in getDuration() method 164 final float duration = getDuration(); in getFraction()
|
D | WindowChangeAnimationSpec.java | 73 public long getDuration() { in getDuration() method in WindowChangeAnimationSpec 74 return mAnimation.getDuration(); in getDuration() 169 return Math.max(uptime, uptime + ((long) (((float) mAnimation.getDuration()) * 0.99f)) in calculateStatusBarTransitionStartTime() 185 pw.print(prefix); pw.println(mAnimation.getDuration()); in dump()
|
D | FadeAnimationController.java | 101 public long getDuration() { in createAnimationSpec() method 102 return animation.getDuration(); in createAnimationSpec()
|
D | WindowAnimationSpec.java | 107 public long getDuration() { in getDuration() method in WindowAnimationSpec 175 + (long) (openTranslateAnimation.getDuration() * t) in calculateStatusBarTransitionStartTime() 185 + (long) (openTranslateAnimation.getDuration() * t) in calculateStatusBarTransitionStartTime()
|
/frameworks/base/core/java/android/os/ |
D | CombinedVibration.java | 111 public abstract long getDuration(); in getDuration() method in CombinedVibration 325 public long getDuration() { in getDuration() method in CombinedVibration.Mono 326 return mEffect.getDuration(); in getDuration() 430 public long getDuration() { in getDuration() method in CombinedVibration.Stereo 434 long duration = mEffects.valueAt(i).getDuration(); in getDuration() 582 public long getDuration() { 588 long duration = effect.getDuration();
|
D | ParcelDuration.java | 74 public Duration getDuration() { in getDuration() method in ParcelDuration 81 return getDuration().toString(); in toString()
|
D | VibrationEffect.java | 490 public abstract long getDuration(); in getDuration() method in VibrationEffect 659 hasNonZeroDuration |= segment.getDuration() != 0; in validate() 673 public long getDuration() { in getDuration() method in VibrationEffect.Composed 680 long segmentDuration = mSegments.get(i).getDuration(); in getDuration() 692 long totalDuration = getDuration(); in isHapticFeedbackCandidate() 710 long segmentDuration = mSegments.get(i).getDuration(); in isHapticFeedbackCandidate() 986 Preconditions.checkArgument(effect.getDuration() < Long.MAX_VALUE, in repeatEffectIndefinitely()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CodecTest.java | 87 public static int getDuration(String filePath) { in getDuration() method in CodecTest 96 int duration = mp.getDuration(); in getDuration() 172 duration = mp.getDuration(); in setLooping() 209 int duration = mp.getDuration(); in pause() 353 duration = mp.getDuration(); in videoSeekTo() 385 duration = mp.getDuration(); in seekToEnd() 413 duration = mp.getDuration(); in shortMediaStop() 470 duration = mp.getDuration(); in seektoBeforeStart() 508 duration = mp.getDuration(); in mediaRecorderRecord() 578 duration = mp.getDuration(); in resourcesPlayback() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/toast/ |
D | TextToastRecord.java | 65 mStatusBar.showToast(uid, pkg, token, text, windowToken, getDuration(), mCallback, in show() 91 + " duration=" + getDuration() in toString()
|
/frameworks/av/media/libmediaplayerservice/ |
D | TestPlayerStub.h | 98 virtual status_t getDuration(int *d) {return mPlayer->getDuration(d);} in getDuration() function
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediaplayback/ |
D | MediaPlayerApiTest.java | 71 int duration = CodecTest.getDuration(MediaNames.MP3CBR); in testMP3CBRGetDuration() 78 int duration = CodecTest.getDuration(MediaNames.MP3VBR); in testMP3VBRGetDuration() 86 int duration = CodecTest.getDuration(MediaNames.MIDI); in testMIDIGetDuration() 93 int duration = CodecTest.getDuration(MediaNames.AMR); in testAMRGetDuration()
|
/frameworks/av/media/extractors/mp3/include/ |
D | MP3Seeker.h | 29 virtual bool getDuration(int64_t *durationUs) = 0;
|
D | VBRISeeker.h | 33 virtual bool getDuration(int64_t *durationUs);
|
D | XINGSeeker.h | 31 virtual bool getDuration(int64_t *durationUs);
|
/frameworks/base/core/java/android/view/animation/ |
D | AnimationSet.java | 237 mDuration = a.getStartOffset() + a.getDuration(); in addAnimation() 240 mLastEnd = Math.max(mLastEnd, mStartOffset + a.getStartOffset() + a.getDuration()); in addAnimation() 300 public long getDuration() { in getDuration() method in AnimationSet 310 duration = Math.max(duration, animations.get(i).getDuration()); in getDuration()
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | EventIndex.java | 160 long offset = getDuration(lastTimeSlot) * numberOfTrailingZeros; in getMostRecentActiveTimeSlot() 315 private static long getDuration(Range<Long> timeSlot) { in getDuration() method in EventIndex 327 return (int) ((toSlot.getLower() - fromSlot.getLower()) / getDuration(fromSlot)); in diffTimeSlots() 338 final long duration = getDuration(latestTimeSlot); in getActiveTimeSlotsForType()
|