/external/libcxx/include/ |
D | chrono | 25 duration_cast(const duration<Rep, Period>& fd); 38 // duration 41 class duration 43 static_assert(!__is_duration<Rep>::value, "A duration representation can not be a duration"); 44 …static_assert(__is_ratio<Period>::value, "Second template parameter of duration must be a std::rat… 45 static_assert(Period::num > 0, "duration period must be positive"); 50 constexpr duration() = default; 52 constexpr explicit duration(const Rep2& r, 62 constexpr duration(const duration<Rep2, Period2>& d, 75 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/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/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
D | BasicDurationFormatter.java | 8 package com.ibm.icu.impl.duration; 55 long duration = targetDate.getTime() - now; 56 return formatDurationFrom(duration, now); 59 public String formatDurationFromNow(long duration) { 60 return formatDurationFrom(duration, System.currentTimeMillis()); 63 public String formatDurationFrom(long duration, long referenceDate) { 64 String s = doFallback(duration, referenceDate); 66 Period p = doBuild(duration, referenceDate); 99 protected String doFallback(long duration, long referenceDate) { 102 && Math.abs(duration) >= fallbackLimit) { [all …]
|
D | BasicPeriodBuilderFactory.java | 8 package com.ibm.icu.impl.duration; 12 import com.ibm.icu.impl.duration.impl.DataRecord; 13 import com.ibm.icu.impl.duration.impl.PeriodFormatterData; 14 import com.ibm.icu.impl.duration.impl.PeriodFormatterDataService; 159 Period createLimited(long duration, boolean inPast) { in createLimited() argument 162 if (duration * 1000 > maxLimit * maxUnitDuration) { in createLimited() 172 if (duration * 1000 < eml * emud) { in createLimited() 310 public Period create(long duration) { in create() argument 311 return createWithReferenceDate(duration, System.currentTimeMillis()); in create() 318 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 …]
|
D | op_divide_duration.pass.cpp | 35 std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() 36 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 40 std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() 41 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main() 56 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() 57 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 61 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() 62 constexpr std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main()
|
/external/jmonkeyengine/engine/src/core-effects/com/jme3/post/filters/ |
D | FadeFilter.java | 57 private float duration = 1; field in FadeFilter 70 public FadeFilter(float duration) { in FadeFilter() argument 72 this.duration = duration; in FadeFilter() 89 value += tpf * direction / duration; in preFrame() 109 return duration; in getDuration() 116 public void setDuration(float duration) { in setDuration() argument 117 this.duration = duration; in setDuration() 147 oc.write(duration, "duration", 1); in write() 154 duration = ic.readFloat("duration", 1); in read()
|
/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/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
D | Timer.java | 17 private long duration; field in Timer 28 duration = Long.MIN_VALUE; in start() 34 duration = System.nanoTime() - startTime; in getDuration() 37 return duration; in getDuration() 110 if (duration >= timingPeriod) { in timeIterations() 111 duration /= iterations; in timeIterations() 112 return Math.min(duration, shortest); in timeIterations() 113 } else if (duration >= timingPeriod / 4) { in timeIterations() 114 duration /= iterations; in timeIterations() 115 shortest = Math.min(duration, shortest); in timeIterations()
|
/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 …]
|
D | op_less.pass.cpp | 72 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 73 std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main() 80 std::chrono::duration<int, std::ratio<2, 3> > s1(10); in main() 81 std::chrono::duration<int, std::ratio<3, 5> > s2(9); in main() 88 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 89 std::chrono::duration<double, std::ratio<3, 5> > s2(10); in main() 129 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 130 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main() 137 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(10); in main() 138 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(9); in main() [all …]
|
/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/lldb/test/pexpect-2.4/examples/ |
D | uptime.py | 34 duration, users, av1, av5, av15 = p.match.groups() variable 43 if 'day' in duration: 44 p.match = re.search('([0-9]+)\s+day',duration) 46 if ':' in duration: 47 p.match = re.search('([0-9]+):([0-9]+)',duration) 50 if 'min' in duration: 51 p.match = re.search('([0-9]+)\s+min',duration)
|
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/ |
D | wait_until.pass.cpp | 28 typedef std::chrono::milliseconds duration; typedef 29 typedef duration::rep rep; 30 typedef duration::period period; 37 return time_point(duration_cast<duration>( in now() 62 Clock::time_point t = t0 + Clock::duration(250); in f() 68 assert(t1 - t0 < Clock::duration(250)); in f() 73 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
|
D | wait_until_pred.pass.cpp | 30 typedef std::chrono::milliseconds duration; typedef 31 typedef duration::rep rep; 32 typedef duration::period period; 39 return time_point(duration_cast<duration>( in now() 73 Clock::time_point t = t0 + Clock::duration(250); in f() 78 assert(t1 - t0 < Clock::duration(250)); in f() 84 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
|
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvar/ |
D | wait_until.pass.cpp | 29 typedef std::chrono::milliseconds duration; typedef 30 typedef duration::rep rep; 31 typedef duration::period period; 38 return time_point(duration_cast<duration>( in now() 59 Clock::time_point t = t0 + Clock::duration(250); in f() 65 assert(t1 - t0 < Clock::duration(250)); in f() 70 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
|
D | wait_until_pred.pass.cpp | 30 typedef std::chrono::milliseconds duration; typedef 31 typedef duration::rep rep; 32 typedef duration::period period; 39 return time_point(duration_cast<duration>( in now() 69 Clock::time_point t = t0 + Clock::duration(250); in f() 74 assert(t1 - t0 < Clock::duration(250)); in f() 80 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowToast.java | 23 private int duration; field in ShadowToast 30 public static Toast makeText(Context context, int resId, int duration) { in makeText() argument 31 return makeText(context, context.getResources().getString(resId), duration); in makeText() 35 public static Toast makeText(Context context, CharSequence text, int duration) { in makeText() argument 37 toast.setDuration(duration); in makeText() 68 public void setDuration(int duration) { in setDuration() argument 69 this.duration = duration; in setDuration() 74 return duration; in getDuration()
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
D | MediaHeaderBox.java | 36 private long duration; field in MediaHeaderBox 56 return duration; in getDuration() 88 public void setDuration(long duration) { in setDuration() argument 89 this.duration = duration; in setDuration() 103 duration = IsoTypeReader.readUInt64(content); in _parseDetails() 108 duration = IsoTypeReader.readUInt32(content); in _parseDetails() 137 IsoTypeWriter.writeUInt64(byteBuffer, duration); in getContent() 142 IsoTypeWriter.writeUInt32(byteBuffer, duration); in getContent()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderFactory.java | 165 builder.expireAfterWrite(expireAfterWrite.duration, expireAfterWrite.unit); 168 builder.expireAfterAccess(expireAfterAccess.duration, expireAfterAccess.unit); 171 builder.refreshAfterWrite(refresh.duration, refresh.unit); 183 private final long duration; 186 private DurationSpec(long duration, TimeUnit unit) { 187 this.duration = duration; 191 public static DurationSpec of(long duration, TimeUnit unit) { 192 return new DurationSpec(duration, unit); 197 return Objects.hashCode(duration, unit); 204 return unit.toNanos(duration) == that.unit.toNanos(that.duration); [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/languages/ |
D | Test_ja.java | 10 package com.ibm.icu.dev.test.duration.languages; 12 import com.ibm.icu.dev.test.duration.LanguageTestRoot; 13 import com.ibm.icu.impl.duration.BasicPeriodFormatterFactory; 14 import com.ibm.icu.impl.duration.Period; 15 import com.ibm.icu.impl.duration.PeriodFormatter; 16 import com.ibm.icu.impl.duration.TimeUnitConstants;
|