Home
last modified time | relevance | path

Searched refs:getDuration (Results 1 – 25 of 177) sorted by relevance

12345678

/frameworks/base/core/tests/coretests/src/android/os/
DCombinedVibrationTest.java125 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/
DAnimatorSetActivityTest.java152 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/
DQSDetailClipper.java85 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/
DStepToRampAdapter.java91 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()
DRampToStepAdapter.java75 (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()
DSetAmplitudeVibratorStep.java94 if (stepSegment.getDuration() == 0) { in play()
121 long nextStartTime = startTime + segment.getDuration(); in play()
173 timing += segment.getDuration(); in getVibratorOnDuration()
DClippingAmplitudeAndFrequencyAdapter.java57 (int) segment.getDuration()); in apply()
68 (int) segment.getDuration()); in apply()
/frameworks/base/core/tests/coretests/src/android/os/vibrator/
DPrebakedSegmentTest.java44 assertEquals(-1, prebaked.getDuration()); in testCreation()
114 .getDuration()); in testDuration()
117 .getDuration()); in testDuration()
120 .getDuration()); in testDuration()
123 .getDuration()); in testDuration()
DPrimitiveSegmentTest.java43 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/
DLocalAnimationAdapter.java77 return mSpec.getDuration(); in getDurationHint()
133 long getDuration(); in getDuration() method
164 final float duration = getDuration(); in getFraction()
DWindowChangeAnimationSpec.java73 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()
DFadeAnimationController.java101 public long getDuration() { in createAnimationSpec() method
102 return animation.getDuration(); in createAnimationSpec()
DWindowAnimationSpec.java107 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/
DCombinedVibration.java111 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();
DParcelDuration.java74 public Duration getDuration() { in getDuration() method in ParcelDuration
81 return getDuration().toString(); in toString()
DVibrationEffect.java490 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/
DCodecTest.java87 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/
DTextToastRecord.java65 mStatusBar.showToast(uid, pkg, token, text, windowToken, getDuration(), mCallback, in show()
91 + " duration=" + getDuration() in toString()
/frameworks/av/media/libmediaplayerservice/
DTestPlayerStub.h98 virtual status_t getDuration(int *d) {return mPlayer->getDuration(d);} in getDuration() function
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediaplayback/
DMediaPlayerApiTest.java71 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/
DMP3Seeker.h29 virtual bool getDuration(int64_t *durationUs) = 0;
DVBRISeeker.h33 virtual bool getDuration(int64_t *durationUs);
DXINGSeeker.h31 virtual bool getDuration(int64_t *durationUs);
/frameworks/base/core/java/android/view/animation/
DAnimationSet.java237 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/
DEventIndex.java160 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()

12345678