/external/protobuf/java/util/src/test/java/com/google/protobuf/util/ |
D | TimeUtilTest.java | 245 Duration duration = TimeUtil.distance(start, end); in testDurationStringFormat() local 246 assertEquals("315537897599.999999999s", TimeUtil.toString(duration)); in testDurationStringFormat() 247 duration = TimeUtil.distance(end, start); in testDurationStringFormat() 248 assertEquals("-315537897599.999999999s", TimeUtil.toString(duration)); in testDurationStringFormat() 251 duration = Duration.newBuilder().setSeconds(1).build(); in testDurationStringFormat() 252 assertEquals("1s", TimeUtil.toString(duration)); in testDurationStringFormat() 253 duration = Duration.newBuilder().setNanos(10000000).build(); in testDurationStringFormat() 254 assertEquals("0.010s", TimeUtil.toString(duration)); in testDurationStringFormat() 255 duration = Duration.newBuilder().setNanos(10000).build(); in testDurationStringFormat() 256 assertEquals("0.000010s", TimeUtil.toString(duration)); in testDurationStringFormat() [all …]
|
/external/libcxx/include/ |
D | chrono | 25 duration_cast(const duration<Rep, Period>& fd); 41 // duration 44 class duration 46 static_assert(!__is_duration<Rep>::value, "A duration representation can not be a duration"); 47 …static_assert(__is_ratio<Period>::value, "Second template parameter of duration must be a std::rat… 48 static_assert(Period::num > 0, "duration period must be positive"); 53 constexpr duration() = default; 55 constexpr explicit duration(const Rep2& r, 65 constexpr duration(const duration<Rep2, Period2>& d, 78 constexpr duration operator+() const; [all …]
|
/external/vogar/src/vogar/util/ |
D | TimeUtilities.java | 27 public static String msToIsoString(long duration) { in msToIsoString() argument 28 long milliseconds = duration % 1000; in msToIsoString() 29 duration /= 1000; in msToIsoString() 30 long seconds = duration % 60; in msToIsoString() 31 duration /= 60; in msToIsoString() 32 long minutes = duration % 60; in msToIsoString() 33 duration /= 60; in msToIsoString() 34 long hours = duration; in msToIsoString() 74 long duration = ns; in nsToString() local 75 long nanoseconds = duration % 1000; in nsToString() [all …]
|
/external/webrtc/talk/app/webrtc/ |
D | dtmfsender_unittest.cc | 77 DtmfInfo(int code, int duration, int gap) in DtmfInfo() 79 duration(duration), in DtmfInfo() 82 int duration; member 99 int duration) override { in InsertDtmf() argument 109 << " duration=" << duration in InsertDtmf() 111 dtmf_info_queue_.push_back(DtmfInfo(code, duration, gap)); in InsertDtmf() 159 void GetDtmfInfoFromString(const std::string& tones, int duration, in GetDtmfInfoFromString() argument 164 int extra_delay = -1 * (inter_tone_gap + duration); in GetDtmfInfoFromString() 174 dtmfs->push_back(FakeDtmfProvider::DtmfInfo(code, duration, in GetDtmfInfoFromString() 175 duration + inter_tone_gap + extra_delay)); in GetDtmfInfoFromString() [all …]
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
D | dtmf_buffer_unittest.cc | 32 static uint32_t MakeDtmfPayload(int event, bool end, int volume, int duration) { in MakeDtmfPayload() argument 42 payload |= (duration & 0xFFFF); in MakeDtmfPayload() 49 return (a.duration == b.duration in EqualEvents() 66 int duration = 4711; in TEST() local 68 uint32_t payload = MakeDtmfPayload(event_no, end_bit, volume, duration); in TEST() 74 EXPECT_EQ(duration, event.duration); in TEST() 88 int duration = 4711; in TEST() local 90 DtmfEvent event(timestamp, event_no, volume, duration, end_bit); in TEST() 106 EXPECT_TRUE(buffer.GetEvent(timestamp + duration / 2, &out_event)); in TEST() 112 EXPECT_TRUE(buffer.GetEvent(timestamp + duration + 10, &out_event)); in TEST() [all …]
|
/external/libcxx/test/std/utilities/time/time.traits/time.traits.specializations/ |
D | duration.pass.cpp | 30 test<std::chrono::duration<int, std::ratio<1, 100> >, in main() 31 std::chrono::duration<long, std::ratio<1, 1000> >, in main() 32 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main() 33 test<std::chrono::duration<long, std::ratio<1, 100> >, in main() 34 std::chrono::duration<int, std::ratio<1, 1000> >, in main() 35 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main() 36 test<std::chrono::duration<char, std::ratio<1, 30> >, in main() 37 std::chrono::duration<short, std::ratio<1, 1000> >, in main() 38 std::chrono::duration<int, std::ratio<1, 3000> > >(); in main() 39 test<std::chrono::duration<double, std::ratio<21, 1> >, in main() [all …]
|
D | time_point.pass.cpp | 34 test<std::chrono::duration<int, std::ratio<1, 100> >, in main() 35 std::chrono::duration<long, std::ratio<1, 1000> >, in main() 36 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main() 37 test<std::chrono::duration<long, std::ratio<1, 100> >, in main() 38 std::chrono::duration<int, std::ratio<1, 1000> >, in main() 39 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main() 40 test<std::chrono::duration<char, std::ratio<1, 30> >, in main() 41 std::chrono::duration<short, std::ratio<1, 1000> >, in main() 42 std::chrono::duration<int, std::ratio<1, 3000> > >(); in main() 43 test<std::chrono::duration<double, std::ratio<21, 1> >, in main() [all …]
|
/external/glide/library/src/main/java/com/bumptech/glide/request/animation/ |
D | DrawableCrossFadeFactory.java | 25 private final int duration; field in DrawableCrossFadeFactory 32 public DrawableCrossFadeFactory(int duration) { in DrawableCrossFadeFactory() argument 33 this(new ViewAnimationFactory<T>(new DefaultAnimationFactory()), duration); in DrawableCrossFadeFactory() 36 public DrawableCrossFadeFactory(Context context, int defaultAnimationId, int duration) { in DrawableCrossFadeFactory() argument 37 this(new ViewAnimationFactory<T>(context, defaultAnimationId), duration); in DrawableCrossFadeFactory() 40 public DrawableCrossFadeFactory(Animation defaultAnimation, int duration) { in DrawableCrossFadeFactory() argument 41 this(new ViewAnimationFactory<T>(defaultAnimation), duration); in DrawableCrossFadeFactory() 44 DrawableCrossFadeFactory(ViewAnimationFactory<T> animationFactory, int duration) { in DrawableCrossFadeFactory() argument 46 this.duration = duration; in DrawableCrossFadeFactory() 57 animation = new DrawableCrossFadeViewAnimation<T>(defaultAnimation, duration); in build()
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/stress/ |
D | StressTest.java | 46 float duration = (time2 - time1) / 1000000; in testPerformance() local 47 System.out.println("Init was " + duration + " ms."); in testPerformance() 53 duration = (time2 - time1) / 1000000; in testPerformance() 54 System.out.println("\nSingle load was " + duration + " ms."); in testPerformance() 65 duration = ((time2 - time1) / 1000000) / (float) number; in testPerformance() 66 System.out.println("Duration for r=" + number + " was " + duration + " ms/load."); in testPerformance() 68 if (duration > 3) { in testPerformance() 69 System.err.println("!!!!!! Too long. Expected <1 but was " + duration); in testPerformance() 82 duration = ((time2 - time1) / 1000000) / (float) number; in testPerformance() 83 System.out.println("Duration for r=" + number + " was " + duration + " ms/load."); in testPerformance() [all …]
|
D | StressEmitterTest.java | 44 float duration = (time2 - time1) / 1000000; in testPerformance() local 45 System.out.println("\nSingle dump was " + duration + " ms."); in testPerformance() 55 duration = ((time2 - time1) / 1000000) / (float) number; in testPerformance() 56 System.out.println("Duration for r=" + number + " was " + duration + " ms/dump."); in testPerformance() 58 if (duration > 3) { in testPerformance() 59 System.err.println("!!!!!! Too long. Expected <1 but was " + duration); in testPerformance() 71 duration = ((time2 - time1) / 1000000) / (float) number; in testPerformance() 72 System.out.println("Duration for r=" + number + " was " + duration + " ms/dump."); in testPerformance() 74 if (duration > 3) { in testPerformance() 75 System.err.println("!!!!!! Too long. Expected <1 but was " + duration); in testPerformance()
|
/external/caliper/caliper/src/main/java/com/google/caliper/bridge/ |
D | GcLogMessage.java | 38 private final ShortDuration duration; field in GcLogMessage 40 GcLogMessage(Type type, ShortDuration duration) { in GcLogMessage() argument 42 this.duration = checkNotNull(duration); in GcLogMessage() 49 public ShortDuration duration() { in duration() method in GcLogMessage 50 return duration; in duration() 60 return Objects.hashCode(type, duration); in hashCode() 70 && this.duration.equals(that.duration); in equals() 80 .add("duration", duration) in toString()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
D | BasicDurationFormatter.java | 10 package com.ibm.icu.impl.duration; 58 long duration = targetDate.getTime() - now; 59 return formatDurationFrom(duration, now); 63 public String formatDurationFromNow(long duration) { 64 return formatDurationFrom(duration, System.currentTimeMillis()); 68 public String formatDurationFrom(long duration, long referenceDate) { 69 String s = doFallback(duration, referenceDate); 71 Period p = doBuild(duration, referenceDate); 106 protected String doFallback(long duration, long referenceDate) { 109 && Math.abs(duration) >= fallbackLimit) { [all …]
|
D | BasicPeriodBuilderFactory.java | 10 package com.ibm.icu.impl.duration; 14 import com.ibm.icu.impl.duration.impl.DataRecord; 15 import com.ibm.icu.impl.duration.impl.PeriodFormatterData; 16 import com.ibm.icu.impl.duration.impl.PeriodFormatterDataService; 161 Period createLimited(long duration, boolean inPast) { in createLimited() argument 164 if (duration * 1000 > maxLimit * maxUnitDuration) { in createLimited() 174 if (duration * 1000 < eml * emud) { in createLimited() 326 public Period create(long duration) { in create() argument 327 return createWithReferenceDate(duration, System.currentTimeMillis()); in create() 335 public Period createWithReferenceDate(long duration, long referenceDate) { in createWithReferenceDate() argument [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
D | BasicDurationFormatter.java | 11 package android.icu.impl.duration; 59 long duration = targetDate.getTime() - now; 60 return formatDurationFrom(duration, now); 64 public String formatDurationFromNow(long duration) { 65 return formatDurationFrom(duration, System.currentTimeMillis()); 69 public String formatDurationFrom(long duration, long referenceDate) { 70 String s = doFallback(duration, referenceDate); 72 Period p = doBuild(duration, referenceDate); 107 protected String doFallback(long duration, long referenceDate) { 110 && Math.abs(duration) >= fallbackLimit) { [all …]
|
D | BasicPeriodBuilderFactory.java | 11 package android.icu.impl.duration; 15 import android.icu.impl.duration.impl.DataRecord; 16 import android.icu.impl.duration.impl.PeriodFormatterData; 17 import android.icu.impl.duration.impl.PeriodFormatterDataService; 162 Period createLimited(long duration, boolean inPast) { in createLimited() argument 165 if (duration * 1000 > maxLimit * maxUnitDuration) { in createLimited() 175 if (duration * 1000 < eml * emud) { in createLimited() 327 public Period create(long duration) { in create() argument 328 return createWithReferenceDate(duration, System.currentTimeMillis()); in create() 336 public Period createWithReferenceDate(long duration, long referenceDate) { in createWithReferenceDate() argument [all …]
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.nonmember/ |
D | op_+.pass.cpp | 36 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 37 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 38 std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; in main() 42 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 43 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main() 44 std::chrono::duration<double, std::ratio<1, 15> > r = s1 + s2; in main() 61 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 62 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 63 constexpr std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; in main() 67 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() [all …]
|
D | op_-.pass.cpp | 37 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 38 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 39 std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; in main() 43 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 44 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main() 45 std::chrono::duration<double, std::ratio<1, 15> > r = s1 - s2; in main() 62 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 63 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 64 constexpr std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; in main() 68 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() [all …]
|
/external/autotest/site_utils/ |
D | dut_status_unittest.py | 42 def _check_duration(self, arguments, duration): argument 43 start_time = (arguments.until - duration * 3600) 84 duration = 4 85 duration_string = '%d' % duration 89 self._check_duration(arguments, duration) 106 duration = 4 107 duration_string = '%d' % duration 111 self._check_duration(arguments, duration) 117 duration = 4 118 duration_string = '%d' % duration [all …]
|
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | TimeUtil.java | 192 public static String toString(Duration duration) in toString() argument 194 if (duration.getSeconds() < DURATION_SECONDS_MIN in toString() 195 || duration.getSeconds() > DURATION_SECONDS_MAX) { in toString() 199 long seconds = duration.getSeconds(); in toString() 200 int nanos = duration.getNanos(); in toString() 292 public static long toMillis(Duration duration) { in toMillis() argument 293 return duration.getSeconds() * MILLIS_PER_SECOND + duration.getNanos() in toMillis() 330 public static long toMicros(Duration duration) { in toMicros() argument 331 return duration.getSeconds() * MICROS_PER_SECOND + duration.getNanos() in toMicros() 361 public static long toNanos(Duration duration) { in toNanos() argument [all …]
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | Lerp.java | 21 public static float lerp(float start, float target, float duration, float timeSinceStart) in lerp() argument 24 if (timeSinceStart > 0.0f && timeSinceStart < duration) in lerp() 27 final float percent = timeSinceStart / duration; in lerp() 30 else if (timeSinceStart >= duration) in lerp() 37 public static float ease(float start, float target, float duration, float timeSinceStart) in ease() argument 40 if (timeSinceStart > 0.0f && timeSinceStart < duration) in ease() 43 final float percent = timeSinceStart / (duration / 2.0f); in ease() 55 else if (timeSinceStart >= duration) in ease()
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.comparisons/ |
D | op_equal.pass.cpp | 54 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 55 std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main() 60 std::chrono::duration<int, std::ratio<2, 3> > s1(10); in main() 61 std::chrono::duration<int, std::ratio<3, 5> > s2(9); in main() 66 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 67 std::chrono::duration<double, std::ratio<3, 5> > s2(10); in main() 97 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 98 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main() 103 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(10); in main() 104 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(9); in main() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
D | Timer.java | 20 private long duration; field in Timer 31 duration = Long.MIN_VALUE; in start() 37 duration = System.nanoTime() - startTime; in getDuration() 40 return duration; in getDuration() 113 if (duration >= timingPeriod) { in timeIterations() 114 duration /= iterations; in timeIterations() 115 return Math.min(duration, shortest); in timeIterations() 116 } else if (duration >= timingPeriod / 4) { in timeIterations() 117 duration /= iterations; in timeIterations() 118 shortest = Math.min(duration, shortest); in timeIterations()
|
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
D | Timer.java | 19 private long duration; field in Timer 30 duration = Long.MIN_VALUE; in start() 36 duration = System.nanoTime() - startTime; in getDuration() 39 return duration; in getDuration() 112 if (duration >= timingPeriod) { in timeIterations() 113 duration /= iterations; in timeIterations() 114 return Math.min(duration, shortest); in timeIterations() 115 } else if (duration >= timingPeriod / 4) { in timeIterations() 116 duration /= iterations; in timeIterations() 117 shortest = Math.min(duration, shortest); in timeIterations()
|
/external/clang/test/SemaCXX/ |
D | cxx1y-user-defined-literals.cpp | 10 struct duration {}; struct 11 duration operator""ns(unsigned long long); 12 duration operator""us(unsigned long long); 13 duration operator""ms(unsigned long long); 14 duration operator""s(unsigned long long); 15 duration operator""min(unsigned long long); 16 duration operator""h(unsigned long long); 33 duration a = 1ns, b = 1us, c = 1ms, d = 1s, e = 1min, f = 1h;
|
/external/v8/src/heap/ |
D | gc-tracer.h | 20 inline BytesAndDuration MakeBytesAndDuration(uint64_t bytes, double duration) { in MakeBytesAndDuration() argument 21 return std::make_pair(bytes, duration); in MakeBytesAndDuration() 100 IncrementalMarkingInfos() : duration(0), longest_step(0), steps(0) {} in IncrementalMarkingInfos() 102 void Update(double duration) { in Update() 104 this->duration += duration; in Update() 105 if (duration > longest_step) { in Update() 106 longest_step = duration; in Update() 111 duration = 0; in ResetCurrentCycle() 116 double duration; member 240 void AddCompactionEvent(double duration, size_t live_bytes_compacted); [all …]
|