Home
last modified time | relevance | path

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

12345678910>>...19

/frameworks/base/cmds/statsd/src/metrics/duration_helper/
DMaxDurationTracker.cpp66 DurationInfo& duration = mInfos[key]; in noteStart() local
68 duration.conditionKeys = conditionKey; in noteStart()
72 switch (duration.state) { in noteStart()
74 duration.startCount++; in noteStart()
77 duration.startCount++; in noteStart()
82 duration.state = DurationState::kPaused; in noteStart()
84 duration.state = DurationState::kStarted; in noteStart()
85 duration.lastStartTime = eventTime; in noteStart()
88 duration.startCount = 1; in noteStart()
100 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/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/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/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/graphics/java/android/graphics/animation/
DFallbackLUTInterpolator.java43 public FallbackLUTInterpolator(TimeInterpolator interpolator, long duration) { in FallbackLUTInterpolator() argument
45 mLut = createLUT(interpolator, duration); in FallbackLUTInterpolator()
48 private static float[] createLUT(TimeInterpolator interpolator, long duration) { in createLUT() argument
52 int numAnimFrames = Math.max(2, (int) Math.ceil(((double) duration) / animIntervalMs)); in createLUT()
71 public static long createNativeInterpolator(TimeInterpolator interpolator, long duration) { in createNativeInterpolator() argument
72 float[] lut = createLUT(interpolator, duration); in createNativeInterpolator()
/frameworks/base/core/java/android/util/
DTimeUtils.java216 private static int formatDurationLocked(long duration, int fieldLen) { in formatDurationLocked() argument
223 if (duration == 0) { in formatDurationLocked()
234 if (duration > 0) { in formatDurationLocked()
238 duration = -duration; in formatDurationLocked()
241 int millis = (int)(duration%1000); in formatDurationLocked()
242 int seconds = (int) Math.floor(duration / 1000); in formatDurationLocked()
288 public static void formatDuration(long duration, StringBuilder builder) { in formatDuration() argument
290 int len = formatDurationLocked(duration, 0); in formatDuration()
296 public static void formatDuration(long duration, StringBuilder builder, int fieldLen) { in formatDuration() argument
298 int len = formatDurationLocked(duration, fieldLen); in formatDuration()
[all …]
/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/packages/SystemUI/src/com/android/systemui/
DSysUIToast.java26 public static Toast makeText(Context context, @StringRes int resId, @Duration int duration) { in makeText() argument
27 return makeText(context, context.getString(resId), duration); in makeText()
30 public static Toast makeText(Context context, CharSequence text, @Duration int duration) { in makeText() argument
31 return Toast.makeText(context, text, duration); in makeText()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DSeekBarViewModel.kt53 private fun PlaybackState.computePosition(duration: Long): Long { in computePosition()
61 if (duration >= 0 && position > duration) { in computePosition()
62 position = duration.toLong() in computePosition()
189 val duration = mediaMetadata?.getLong(MediaMetadata.METADATA_KEY_DURATION)?.toInt() in updateController() constant
192 (duration != null && duration <= 0)) false else true in updateController()
193 _data = Progress(enabled, seekAvailable, position, duration) in updateController()
224 val duration = _data.duration ?: -1 in checkPlaybackPosition() constant
225 val currentPosition = playbackState?.computePosition(duration.toLong())?.toInt() in checkPlaybackPosition()
411 val duration: Int? constant in com.android.systemui.media.SeekBarViewModel.Progress
/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/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/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/surfaceflinger/FrameTracer/
DFrameTracer.cpp64 nsecs_t duration) { in traceTimestamp() argument
66 duration](FrameTracerDataSource::TraceContext ctx) { in traceTimestamp()
76 traceLocked(ctx, layerId, bufferID, frameNumber, timestamp, type, duration); in traceTimestamp()
137 FrameEvent::BufferEventType type, nsecs_t duration) { in traceLocked() argument
154 if (duration > 0) { in traceLocked()
155 event->set_duration_ns(duration); in traceLocked()
164 nsecs_t duration = 0; in traceSpanLocked() local
167 duration = endTime - startTime; in traceSpanLocked()
169 traceLocked(ctx, layerId, bufferID, frameNumber, timestamp, type, duration); in traceSpanLocked()
/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 getDeviceContext().vibrate(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/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/services/core/java/com/android/server/notification/toast/
DToastRecord.java41 String pkg, IBinder token, int duration, Binder windowToken, int displayId) { in ToastRecord() argument
49 mDuration = duration; in ToastRecord()
75 public void update(int duration) { in update() argument
76 mDuration = duration; in update()
/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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DSpeedClassifier.java36 float duration = (float) stroke.getDurationNanos() / NANOS_TO_SECONDS; in getFalseTouchEvaluation() local
37 if (duration == 0.0f) { in getFalseTouchEvaluation()
40 return SpeedEvaluator.evaluate(stroke.getTotalLength() / duration); in getFalseTouchEvaluation()

12345678910>>...19