/frameworks/av/media/libaudioclient/ |
D | ToneGenerator.cpp | 31 … { .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/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/test/java/com/google/protobuf/util/ |
D | TimeUtilTest.java | 246 Duration duration = TimeUtil.distance(start, end); in testDurationStringFormat() local 247 assertEquals("315537897599.999999999s", TimeUtil.toString(duration)); in testDurationStringFormat() 248 duration = TimeUtil.distance(end, start); in testDurationStringFormat() 249 assertEquals("-315537897599.999999999s", TimeUtil.toString(duration)); in testDurationStringFormat() 252 duration = Duration.newBuilder().setSeconds(1).build(); in testDurationStringFormat() 253 assertEquals("1s", TimeUtil.toString(duration)); in testDurationStringFormat() 254 duration = Duration.newBuilder().setNanos(10000000).build(); in testDurationStringFormat() 255 assertEquals("0.010s", TimeUtil.toString(duration)); in testDurationStringFormat() 256 duration = Duration.newBuilder().setNanos(10000).build(); in testDurationStringFormat() 257 assertEquals("0.000010s", TimeUtil.toString(duration)); in testDurationStringFormat() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/main/java/com/google/protobuf/util/ |
D | TimeUtil.java | 107 public static String toString(Duration duration) { in toString() argument 108 return Durations.toString(duration); in toString() 165 public static long toMillis(Duration duration) { in toMillis() argument 166 return Durations.toMillis(duration); in toMillis() 211 public static long toMicros(Duration duration) { in toMicros() argument 212 return Durations.toMicros(duration); in toMicros() 251 public static long toNanos(Duration duration) { in toNanos() argument 252 return Durations.toNanos(duration); in toNanos() 328 public static Duration multiply(Duration duration, double times) { in multiply() argument 329 double result = duration.getSeconds() * times + duration.getNanos() * times / 1000000000.0; in multiply() [all …]
|
D | Durations.java | 63 public static boolean isValid(Duration duration) { in isValid() argument 64 return isValid(duration.getSeconds(), duration.getNanos()); in isValid() 116 public static String toString(Duration duration) { in toString() argument 117 long seconds = duration.getSeconds(); in toString() 118 int nanos = duration.getNanos(); in toString() 189 public static long toMillis(Duration duration) { in toMillis() argument 190 return duration.getSeconds() * MILLIS_PER_SECOND + duration.getNanos() / NANOS_PER_MILLISECOND; in toMillis() 207 public static long toMicros(Duration duration) { in toMicros() argument 208 return duration.getSeconds() * MICROS_PER_SECOND + duration.getNanos() / NANOS_PER_MICROSECOND; in toMicros() 222 public static long toNanos(Duration duration) { in toNanos() argument [all …]
|
/frameworks/base/cmds/statsd/src/metrics/duration_helper/ |
D | MaxDurationTracker.cpp | 89 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/ |
D | DurationTest.java | 30 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/ |
D | AnimationProps.java | 69 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/libs/hwui/ |
D | FrameInfoVisualizer.h | 63 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/ |
D | CodecTest.java | 105 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/core/java/android/util/ |
D | TimeUtils.java | 209 private static int formatDurationLocked(long duration, int fieldLen) { in formatDurationLocked() argument 216 if (duration == 0) { in formatDurationLocked() 227 if (duration > 0) { in formatDurationLocked() 231 duration = -duration; in formatDurationLocked() 234 int millis = (int)(duration%1000); in formatDurationLocked() 235 int seconds = (int) Math.floor(duration / 1000); in formatDurationLocked() 281 public static void formatDuration(long duration, StringBuilder builder) { in formatDuration() argument 283 int len = formatDurationLocked(duration, 0); in formatDuration() 289 public static void formatDuration(long duration, StringBuilder builder, int fieldLen) { in formatDuration() argument 291 int len = formatDurationLocked(duration, fieldLen); in formatDuration() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | ToneSettings.java | 27 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(null); in ToneSettings() 50 dest.writeParcelable(duration, 0); in writeToParcel()
|
/frameworks/base/core/java/com/android/internal/view/animation/ |
D | FallbackLUTInterpolator.java | 42 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/base/core/java/com/android/internal/app/procstats/ |
D | AssociationState.java | 116 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/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/ |
D | duration.proto | 36 option go_package = "github.com/golang/protobuf/ptypes/duration"; 54 // Duration duration = ...; 56 // duration.seconds = end.seconds - start.seconds; 57 // duration.nanos = end.nanos - start.nanos; 59 // if (duration.seconds < 0 && duration.nanos > 0) { 60 // duration.seconds += 1; 61 // duration.nanos -= 1000000000; 62 // } else if (durations.seconds > 0 && duration.nanos < 0) { 63 // duration.seconds -= 1; 64 // duration.nanos += 1000000000; [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/ |
D | time_util.cc | 175 string TimeUtil::ToString(const Duration& duration) { in ToString() argument 177 int64 seconds = duration.seconds(); in ToString() 178 int32 nanos = duration.nanos(); in ToString() 200 bool TimeUtil::FromString(const string& value, Duration* duration) { in FromString() argument 232 duration->set_seconds(seconds); in FromString() 233 duration->set_nanos(static_cast<int32>(nanos)); in FromString() 266 int64 TimeUtil::DurationToNanoseconds(const Duration& duration) { in DurationToNanoseconds() argument 267 return duration.seconds() * kNanosPerSecond + duration.nanos(); in DurationToNanoseconds() 270 int64 TimeUtil::DurationToMicroseconds(const Duration& duration) { in DurationToMicroseconds() argument 271 return duration.seconds() * kMicrosPerSecond + in DurationToMicroseconds() [all …]
|
/frameworks/wilhelm/tests/listening/ |
D | seekTorture.c | 86 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/ |
D | PerfMeasurement.java | 184 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/ |
D | Interaction.java | 57 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/ |
D | TrustArchive.java | 52 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/ |
D | Chronometer.java | 359 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()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | StatLogger.java | 96 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/ |
D | SysUIToast.java | 27 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/base/core/java/android/animation/ |
D | LayoutTransition.java | 329 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/wilhelm/tests/sandbox/ |
D | urimime.c | 123 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/ |
D | MediaPlayerApiTest.java | 58 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()
|