Home
last modified time | relevance | path

Searched refs:duration (Results 1 – 25 of 429) sorted by relevance

12345678910>>...18

/frameworks/av/media/libaudioclient/
DToneGenerator.cpp31 … { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1336, 941, 0 }, 0, 0},
32 { .duration = 0 , .waveFreq = { 0 }, 0, 0}},
35 … { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1209, 697, 0 }, 0, 0 },
36 { .duration = 0 , .waveFreq = { 0 }, 0, 0}},
39 … { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1336, 697, 0 }, 0, 0 },
40 { .duration = 0 , .waveFreq = { 0 }, 0, 0}},
43 … { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1477, 697, 0 }, 0, 0 },
44 { .duration = 0 , .waveFreq = { 0 }, 0, 0}},
47 … { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1209, 770, 0 }, 0, 0 },
48 { .duration = 0 , .waveFreq = { 0 }, 0, 0}},
[all …]
/frameworks/base/cmds/statsd/src/metrics/duration_helper/
DMaxDurationTracker.cpp89 DurationInfo& duration = mInfos[key]; in noteStart() local
91 duration.conditionKeys = conditionKey; in noteStart()
95 switch (duration.state) { in noteStart()
97 duration.startCount++; in noteStart()
100 duration.startCount++; in noteStart()
105 duration.state = DurationState::kPaused; in noteStart()
107 duration.state = DurationState::kStarted; in noteStart()
108 duration.lastStartTime = eventTime; in noteStart()
111 duration.startCount = 1; in noteStart()
124 DurationInfo& duration = mInfos[key]; in noteStop() local
[all …]
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DDurationTest.java30 Duration duration = new Duration(); in verifyDuration() local
31 duration.parse(str); in verifyDuration()
33 assertEquals("Duration sign is not equal for " + str, sign, duration.sign); in verifyDuration()
34 assertEquals("Duration weeks is not equal for " + str, weeks, duration.weeks); in verifyDuration()
35 assertEquals("Duration days is not equal for " + str, days, duration.days); in verifyDuration()
36 assertEquals("Duration hours is not equal for " + str, hours, duration.hours); in verifyDuration()
37 assertEquals("Duration minutes is not equal for " + str, minutes, duration.minutes); in verifyDuration()
38 assertEquals("Duration seconds is not equal for " + str, seconds, duration.seconds); in verifyDuration()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/utilities/
DAnimationProps.java69 public AnimationProps(int duration, Interpolator interpolator) { in AnimationProps() argument
70 this(0, duration, interpolator, null); in AnimationProps()
77 public AnimationProps(int duration, Interpolator interpolator, in AnimationProps() argument
79 this(0, duration, interpolator, listener); in AnimationProps()
86 public AnimationProps(int startDelay, int duration, Interpolator interpolator) { in AnimationProps() argument
87 this(startDelay, duration, interpolator, null); in AnimationProps()
94 public AnimationProps(int startDelay, int duration, Interpolator interpolator, in AnimationProps() argument
97 setDuration(ALL, duration); in AnimationProps()
154 public AnimationProps setDuration(@PropType int propertyType, int duration) { in setDuration() argument
158 mPropDuration.append(propertyType, duration); in setDuration()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCodecTest.java105 int duration = mp.getDuration(); in getDuration() local
106 Log.v(TAG, "Duration " + duration); in getDuration()
109 return duration; in getDuration()
173 int duration = 0; in setLooping() local
181 duration = mp.getDuration(); in setLooping()
182 Log.v(TAG, "setLooping duration " + duration); in setLooping()
186 mp.seekTo(duration - 5000); in setLooping()
218 int duration = mp.getDuration(); in pause() local
341 int duration = 0; in videoSeekTo() local
362 duration = mp.getDuration(); in videoSeekTo()
[all …]
/frameworks/base/libs/hwui/
DFrameInfoVisualizer.h63 float duration = mFrameSource[index].duration(start, end) * 0.000001f; in durationMS() local
65 duration = duration > 50.0f ? 50.0f : duration; in durationMS()
66 return duration > 0.0f ? duration : 0.0f; in durationMS()
/frameworks/base/core/java/android/util/
DTimeUtils.java215 private static int formatDurationLocked(long duration, int fieldLen) { in formatDurationLocked() argument
222 if (duration == 0) { in formatDurationLocked()
233 if (duration > 0) { in formatDurationLocked()
237 duration = -duration; in formatDurationLocked()
240 int millis = (int)(duration%1000); in formatDurationLocked()
241 int seconds = (int) Math.floor(duration / 1000); in formatDurationLocked()
287 public static void formatDuration(long duration, StringBuilder builder) { in formatDuration() argument
289 int len = formatDurationLocked(duration, 0); in formatDuration()
295 public static void formatDuration(long duration, StringBuilder builder, int fieldLen) { in formatDuration() argument
297 int len = formatDurationLocked(duration, fieldLen); in formatDuration()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DToneSettings.java27 public Duration duration; field in ToneSettings
31 public ToneSettings(Duration duration, Tone tone, boolean vibrate) { in ToneSettings() argument
32 this.duration = duration; in ToneSettings()
38 duration = in.readParcelable(Duration.class.getClassLoader()); in ToneSettings()
50 dest.writeParcelable(duration, 0); in writeToParcel()
/frameworks/base/core/java/com/android/internal/app/procstats/
DAssociationState.java116 final long duration = mActiveDuration + now - mActiveStartUptime; in startActive() local
117 if (duration != 0) { in startActive()
121 mDurations.addDuration(mActiveProcState, duration); in startActive()
138 final long duration = mActiveDuration + now - mActiveStartUptime; in stopActive() local
140 mDurations.addDuration(mActiveProcState, duration); in stopActive()
142 mActiveDuration = duration; in stopActive()
451 final long duration = src.mActiveDuration + nowUptime - src.mActiveStartUptime; in commitStateTime() local
453 src.mDurations.addDuration(src.mActiveProcState, duration); in commitStateTime()
455 src.mActiveDuration = duration; in commitStateTime()
503 long duration = src.mDuration; in dumpStats() local
[all …]
/frameworks/base/core/java/com/android/internal/view/animation/
DFallbackLUTInterpolator.java42 public FallbackLUTInterpolator(TimeInterpolator interpolator, long duration) { in FallbackLUTInterpolator() argument
44 mLut = createLUT(interpolator, duration); in FallbackLUTInterpolator()
47 private static float[] createLUT(TimeInterpolator interpolator, long duration) { in createLUT() argument
51 int numAnimFrames = Math.max(2, (int) Math.ceil(((double) duration) / animIntervalMs)); in createLUT()
70 public static long createNativeInterpolator(TimeInterpolator interpolator, long duration) { in createNativeInterpolator() argument
71 float[] lut = createLUT(interpolator, duration); in createNativeInterpolator()
/frameworks/wilhelm/tests/listening/
DseekTorture.c86 SLmillisecond duration; in main() local
87 result = (*playerPlay)->GetDuration(playerPlay, &duration); in main()
91 result = (*playerPlay)->GetDuration(playerPlay, &duration); in main()
100 unsigned position, duration; in main() local
101 while (fscanf(fp_map, "%u %u", &position, &duration) == 2) { in main()
102 printf("%u %u\n", position, duration); in main()
106 if (duration > 0) in main()
107 usleep(duration * 1000); in main()
125 SLmillisecond newPos = duration * ((rand() & 65535) / 65536.0); in main()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DPerfMeasurement.java184 long duration = getNextGlDuration(); in stopTimer() local
185 if (duration > 0) { in stopTimer()
186 mCollectedGpuDurations.add(duration); in stopTimer()
192 if (duration == FAILED_TIMING) { in stopTimer()
228 long duration = nativeGetNextGlDuration(mNativeContext); in getNextGlDuration() local
229 if (duration > 0) { in getNextGlDuration()
232 return duration; in getNextGlDuration()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
DInteraction.java57 float endX, float endY, long duration) { in newFling() argument
59 new float[]{startY, endY}, duration); in newFling()
108 float[] xPos, float[] yPos, long duration) { in createInterpolatedEventList() argument
124 float stepT = duration / STEP_COUNT; in createInterpolatedEventList()
141 MotionEvent lastEvent = MotionEvent.obtain(startTime, startTime + duration, in createInterpolatedEventList()
149 float[] xPos, float[] yPos, long duration) { in Interaction() argument
153 mDuration = duration; in Interaction()
166 List<Float> xPositions, List<Float> yPositions, long duration) { in Interaction() argument
184 mDuration = duration; in Interaction()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustArchive.java52 final long duration; field in TrustArchive.Event
59 long duration, int flags, boolean managingTrust) { in Event() argument
65 this.duration = duration; in Event()
74 long duration, int flags) { in logGrantTrust() argument
75 addEvent(new Event(TYPE_GRANT_TRUST, userId, agent, message, duration, in logGrantTrust()
142 ev.message, formatDuration(ev.duration), dumpGrantFlags(ev.flags)); in dump()
154 public static String formatDuration(long duration) { in formatDuration() argument
156 TimeUtils.formatDuration(duration, sb); in formatDuration()
/frameworks/base/core/java/android/widget/
DChronometer.java359 int duration = (int) (ms / DateUtils.SECOND_IN_MILLIS); in formatDuration() local
360 if (duration < 0) { in formatDuration()
361 duration = -duration; in formatDuration()
367 if (duration >= HOUR_IN_SEC) { in formatDuration()
368 h = duration / HOUR_IN_SEC; in formatDuration()
369 duration -= h * HOUR_IN_SEC; in formatDuration()
371 if (duration >= MIN_IN_SEC) { in formatDuration()
372 m = duration / MIN_IN_SEC; in formatDuration()
373 duration -= m * MIN_IN_SEC; in formatDuration()
375 final int s = duration; in formatDuration()
DDateTimeView.java251 long duration = Math.abs(now - mTimeMillis);
256 if (duration < MINUTE_IN_MILLIS) {
260 } else if (duration < HOUR_IN_MILLIS) {
261 count = (int)(duration / MINUTE_IN_MILLIS);
268 } else if (duration < DAY_IN_MILLIS) {
269 count = (int)(duration / HOUR_IN_MILLIS);
276 } else if (duration < YEAR_IN_MILLIS) {
296 count = (int)(duration / YEAR_IN_MILLIS);
361 long duration = Math.abs(now - mTimeMillis); in onInitializeAccessibilityNodeInfoInternal() local
365 if (duration < MINUTE_IN_MILLIS) { in onInitializeAccessibilityNodeInfoInternal()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DStatLogger.java96 final long duration = getTime() - start; in logDurationStat() local
99 mDurationStats[eventId] += duration; in logDurationStat()
102 return duration; in logDurationStat()
104 if (mMaxDurationStats[eventId] < duration) { in logDurationStat()
105 mMaxDurationStats[eventId] = duration; in logDurationStat()
125 mDurationPerSecond[eventId] += duration; in logDurationStat()
127 return duration; in logDurationStat()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSysUIToast.java27 public static Toast makeText(Context context, @StringRes int resId, @Duration int duration) { in makeText() argument
28 return makeText(context, context.getString(resId), duration); in makeText()
31 public static Toast makeText(Context context, CharSequence text, @Duration int duration) { in makeText() argument
32 Toast toast = Toast.makeText(context, text, duration); in makeText()
/frameworks/wilhelm/tests/sandbox/
Durimime.c123 SLmillisecond duration; in main() local
124 result = (*playerPlay)->GetDuration(playerPlay, &duration); in main()
126 if (SL_TIME_UNKNOWN == duration) in main()
129 printf("Duration: %.1f\n", duration / 1000.0f); in main()
147 result = (*playerPlay)->GetDuration(playerPlay, &duration); in main()
149 if (SL_TIME_UNKNOWN == duration) in main()
152 printf("Duration: %.1f\n", duration / 1000.0f); in main()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediaplayback/
DMediaPlayerApiTest.java58 public boolean verifyDuration(int duration, int expectedDuration){ in verifyDuration() argument
59 if ((duration > expectedDuration * 1.1) || (duration < expectedDuration * 0.9)) in verifyDuration()
71 int duration = CodecTest.getDuration(MediaNames.MP3CBR); in testMP3CBRGetDuration() local
72 duratoinWithinTolerence = verifyDuration(duration, MediaNames.MP3CBR_LENGTH); in testMP3CBRGetDuration()
78 int duration = CodecTest.getDuration(MediaNames.MP3VBR); in testMP3VBRGetDuration() local
80 duratoinWithinTolerence = verifyDuration(duration, MediaNames.MP3VBR_LENGTH); in testMP3VBRGetDuration()
86 int duration = CodecTest.getDuration(MediaNames.MIDI); in testMIDIGetDuration() local
87 duratoinWithinTolerence = verifyDuration(duration, MediaNames.MIDI_LENGTH); in testMIDIGetDuration()
93 int duration = CodecTest.getDuration(MediaNames.AMR); in testAMRGetDuration() local
94 duratoinWithinTolerence = verifyDuration(duration, MediaNames.AMR_LENGTH); in testAMRGetDuration()
/frameworks/base/core/java/android/animation/
DLayoutTransition.java329 public void setDuration(long duration) { in setDuration() argument
330 mChangingAppearingDuration = duration; in setDuration()
331 mChangingDisappearingDuration = duration; in setDuration()
332 mChangingDuration = duration; in setDuration()
333 mAppearingDuration = duration; in setDuration()
334 mDisappearingDuration = duration; in setDuration()
489 public void setDuration(int transitionType, long duration) { in setDuration() argument
492 mChangingAppearingDuration = duration; in setDuration()
495 mChangingDisappearingDuration = duration; in setDuration()
498 mChangingDuration = duration; in setDuration()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/
DDisappearAnimationUtils.java34 public DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, in DisappearAnimationUtils() argument
36 this(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator, in DisappearAnimationUtils()
40 public DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, in DisappearAnimationUtils() argument
42 super(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator); in DisappearAnimationUtils()
/frameworks/native/services/inputflinger/reader/mapper/
DVibratorInputMapper.cpp98 nsecs_t duration = mPattern[mIndex]; in nextStep() local
101 ALOGD("nextStep: sending vibrate deviceId=%d, duration=%" PRId64, getDeviceId(), duration); in nextStep()
103 getEventHub()->vibrate(getDeviceId(), duration); in nextStep()
111 mNextStepTime = now + duration; in nextStep()
114 ALOGD("nextStep: scheduled timeout in %0.3fms", duration * 0.000001f); in nextStep()
/frameworks/base/core/tests/coretests/src/android/animation/
DAnimatorSetActivityTest.java168 long duration = list.get(i).getDuration(); in testTotalDuration() local
170 maxDuration = maxDuration > (duration + 100) ? maxDuration : (duration + 100); in testTotalDuration()
190 long duration = a1.getDuration() + a1.getStartDelay() + a2.getDuration() + a2 in testTotalDuration() local
194 duration = Math.max(duration, a4Duration); in testTotalDuration()
195 duration = Math.max(duration, a5Duration); in testTotalDuration()
196 assertEquals(duration, s5.getTotalDuration()); in testTotalDuration()
211 long duration = 200; in testGetDuration()
212 s.setDuration(duration); in testGetDuration()
213 assertEquals(duration, s.getDuration()); in testGetDuration()
223 long duration = 300;
[all …]
/frameworks/wilhelm/src/itf/
DIMIDITime.cpp30 SLuint32 duration = thiz->mDuration; in IMIDITime_GetDuration() local
31 *pDuration = duration; in IMIDITime_GetDuration()
83 SLuint32 duration = thiz->mDuration; in IMIDITime_SetLoopPoints() local
84 if (!((startTick < duration) && (numTicks <= duration - startTick))) { in IMIDITime_SetLoopPoints()

12345678910>>...18