/frameworks/base/core/tests/vibrator/src/android/os/ |
D | CombinedVibrationTest.java | 122 VibrationEffect.createOneShot(1, 1)).getDuration()); in testDurationMono() 124 VibrationEffect.get(VibrationEffect.EFFECT_CLICK)).getDuration()); in testDurationMono() 130 .getDuration()); in testDurationMono() 133 new long[]{1, 2, 3}, new int[]{1, 2, 3}, 0)).getDuration()); in testDurationMono() 143 .getDuration()); in testDurationStereo() 149 .getDuration()); in testDurationStereo() 155 .getDuration()); in testDurationStereo() 165 .getDuration()); in testDurationSequential() 171 .getDuration()); in testDurationSequential() 177 .getDuration()); in testDurationSequential()
|
/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 | SplitSegmentsAdapter.java | 59 int splits = ((int) ramp.getDuration() + maxRampDuration - 1) / maxRampDuration; in adaptToVibrator() 82 long splitDuration = ramp.getDuration() / splits; in splitRampSegment() 89 float durationRatio = (float) accumulatedDuration / ramp.getDuration(); in splitRampSegment() 104 endFrequencyHz, (int) (ramp.getDuration() - accumulatedDuration))); in splitRampSegment()
|
D | SetAmplitudeVibratorStep.java | 103 if (stepSegment.getDuration() == 0) { in play() 127 long nextStartTime = startTime + segment.getDuration(); in play() 184 || (segment.getDuration() > 0 && ((StepSegment) segment).getAmplitude() == 0)) { in getVibratorOnDuration() 187 timing += segment.getDuration(); in getVibratorOnDuration()
|
D | RampToStepAdapter.java | 77 (int) ramp.getDuration())); in convertRampToSteps() 81 int stepCount = (int) (ramp.getDuration() + mStepDuration - 1) / mStepDuration; in convertRampToSteps() 92 int duration = (int) ramp.getDuration() - mStepDuration * (stepCount - 1); in convertRampToSteps()
|
/frameworks/base/core/tests/coretests/src/android/animation/ |
D | AnimatorSetActivityTest.java | 156 totalDuration += list.get(i).getDuration(); in testTotalDuration() 172 long duration = list.get(i).getDuration(); in testTotalDuration() 194 long duration = a1.getDuration() + a1.getStartDelay() + a2.getDuration() + a2 in testTotalDuration() 195 .getStartDelay() + a3.getDuration() + a3.getStartDelay(); in testTotalDuration() 196 long a4Duration = a4.getDuration() + a4.getStartDelay(); in testTotalDuration() 197 long a5Duration = a5.getDuration() + a5.getStartDelay(); in testTotalDuration() 211 assertTrue(s.getDuration() < 0); in testGetDuration() 213 assertTrue(s.getDuration() < 0); in testGetDuration() 217 assertEquals(duration, s.getDuration()); in testGetDuration() 225 assertTrue(s.getDuration() < 0); [all …]
|
/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 | 107 public long getDuration() { in createAnimationSpec() method 108 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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/activityembedding/ |
D | ActivityEmbeddingAnimationRunnerTests.java | 111 assertEquals(0, animator.getDuration()); in testChangesBehindStartingWindow() 126 assertEquals(0, animator.getDuration()); in testTransitionTypeDragResize() 144 assertEquals(0, animator.getDuration()); in testInvalidCustomAnimation_disableAnimationOptionsPerChange() 162 assertEquals(0, animator.getDuration()); in testInvalidCustomAnimation_enableAnimationOptionsPerChange()
|
/frameworks/base/core/java/android/os/ |
D | ParcelDuration.java | 74 public Duration getDuration() { in getDuration() method in ParcelDuration 81 return getDuration().toString(); in toString()
|
D | CombinedVibration.java | 113 public abstract long getDuration(); in getDuration() method in CombinedVibration 376 public long getDuration() { in getDuration() method in CombinedVibration.Mono 377 return mEffect.getDuration(); in getDuration() 520 public long getDuration() { in getDuration() method in CombinedVibration.Stereo 524 long duration = mEffects.valueAt(i).getDuration(); in getDuration() 725 public long getDuration() { 731 long duration = effect.getDuration();
|
D | VibrationEffect.java | 517 public abstract long getDuration(); in getDuration() method in VibrationEffect 780 patternBuffer[patternIndex] += stepSegment.getDuration(); in computeCreateWaveformOffOnTimingsOrNull() 795 hasNonZeroDuration |= segment.getDuration() != 0; in validate() 809 public long getDuration() { in getDuration() method in VibrationEffect.Composed 816 long segmentDuration = mSegments.get(i).getDuration(); in getDuration() 839 long totalDuration = getDuration(); in isHapticFeedbackCandidate() 857 long segmentDuration = mSegments.get(i).getDuration(); in isHapticFeedbackCandidate() 1185 Preconditions.checkArgument(effect.getDuration() < Long.MAX_VALUE, in repeatEffectIndefinitely()
|
/frameworks/base/core/tests/vibrator/src/android/os/vibrator/ |
D | PrebakedSegmentTest.java | 43 assertEquals(-1, prebaked.getDuration()); in testCreation() 119 .getDuration()); in testDuration() 122 .getDuration()); in testDuration() 125 .getDuration()); in testDuration() 128 .getDuration()); in testDuration()
|
D | PrimitiveSegmentTest.java | 44 assertEquals(-1, primitive.getDuration()); in testCreation() 155 VibrationEffect.Composition.PRIMITIVE_NOOP, 1, 10).getDuration()); in testDuration() 157 VibrationEffect.Composition.PRIMITIVE_CLICK, 1, 100).getDuration()); in testDuration() 159 VibrationEffect.Composition.PRIMITIVE_SPIN, 1, 0).getDuration()); in testDuration()
|
/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 | 69 int duration = CodecTest.getDuration(MediaNames.MP3CBR); in testMP3CBRGetDuration() 76 int duration = CodecTest.getDuration(MediaNames.MP3VBR); in testMP3VBRGetDuration() 84 int duration = CodecTest.getDuration(MediaNames.MIDI); in testMIDIGetDuration() 91 int duration = CodecTest.getDuration(MediaNames.AMR); in testAMRGetDuration()
|
/frameworks/av/media/module/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 | LayoutAnimationController.java | 301 mDuration = mAnimation.getDuration(); in start() 378 final float delay = mDelay * mAnimation.getDuration(); in getDelayForView()
|
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()
|