/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
D | Period.java | 27 public final class Period { class 39 public static Period at(float count, TimeUnit unit) { in at() 41 return new Period(ETimeLimit.NOLIMIT, false, count, unit); in at() 51 public static Period moreThan(float count, TimeUnit unit) { in moreThan() 53 return new Period(ETimeLimit.MT, false, count, unit); in moreThan() 63 public static Period lessThan(float count, TimeUnit unit) { in lessThan() 65 return new Period(ETimeLimit.LT, false, count, unit); in lessThan() 79 public Period and(float count, TimeUnit unit) { in and() 90 public Period omit(TimeUnit unit) { in omit() 99 public Period at() { in at() [all …]
|
D | BasicPeriodBuilderFactory.java | 159 Period createLimited(long duration, boolean inPast) { in createLimited() 163 return Period.moreThan(maxLimit/1000f, maxUnit).inPast(inPast); in createLimited() 173 return Period.lessThan(eml/1000f, emu).inPast(inPast); in createLimited() 310 public Period create(long duration) { in create() 318 public Period createWithReferenceDate(long duration, long referenceDate) { in createWithReferenceDate() 323 Period ts = settings.createLimited(duration, inPast); in createWithReferenceDate() 327 ts = Period.lessThan(1, settings.effectiveMinUnit()).inPast(inPast); in createWithReferenceDate() 348 protected abstract Period handleCreate(long duration, long referenceDate, 375 protected Period handleCreate(long duration, long referenceDate, 381 return Period.at((float)((double)duration/unitDuration), unit) [all …]
|
D | PeriodBuilder.java | 29 Period create(long duration); in create() 40 Period createWithReferenceDate(long duration, long referenceDate); in createWithReferenceDate()
|
D | BasicDurationFormatter.java | 66 Period p = doBuild(duration, referenceDate); 108 protected Period doBuild(long duration, long referenceDate) { in doBuild() 112 protected String doFormat(Period period) { in doFormat()
|
D | PeriodFormatter.java | 30 String format(Period period); in format()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
D | PeriodTest.java | 13 import com.ibm.icu.impl.duration.Period; 26 Period p = Period.at(0, TimeUnit.YEAR); in testIsSet() 36 Period p = Period.moreThan(1, TimeUnit.YEAR); in testMoreLessThan() 49 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan() 53 p = Period.at(1, TimeUnit.YEAR); in testMoreLessThan() 61 Period p = Period.at(1, TimeUnit.YEAR).inFuture(); in testFuturePast() 72 Period p = Period.at(1, TimeUnit.YEAR).and(3, TimeUnit.MONTH) in testAnd() 83 Period.at(-1, TimeUnit.YEAR); in testInvalidCount() 89 Period.moreThan(-1, TimeUnit.YEAR); in testInvalidCount() 95 Period.lessThan(-1, TimeUnit.YEAR); in testInvalidCount() [all …]
|
D | LanguageTestRoot.java | 23 import com.ibm.icu.impl.duration.Period; 171 protected static String timestring(Period ts) { in timestring() 251 Period p = pb.create(approximateDuration(u) * c); in testFullPluralizedForms() 273 Period p = pb.create(approximateDuration(u) * 3); in testMediumForms() 294 Period p = pb.create(approximateDuration(u) * 3); in testShortForms() 312 Period p = Period.at(1, HOUR); in testCustomMinutes() 330 Period p = Period.at(1, MONTH); in testLimitedUnits() 435 Period p = Period.at(c + .5f, u); in testHalfUnits() 465 Period p = Period.at(c, u); in testFractionalUnits() 486 Period p = Period.at(1, units[i]).and(2, units[i + 1]); in testMultipleUnits() [all …]
|
D | PeriodBuilderFactoryTest.java | 14 import com.ibm.icu.impl.duration.Period; 41 Period p = b.create((long)(approxDurations[unit.ordinal()]*2.5)); in testSetAvailableUnitRange() 49 Period p = b.create((long)(approxDurations[unit.ordinal()]*2.5)); in testSetAvailableUnitRange() 97 Period p = pb.create(H1M35S30M100); in testBuilderFactoryPeriodConstruction()
|
/external/libcxx/include/ |
D | condition_variable | 49 template <class Rep, class Period> 52 const chrono::duration<Rep, Period>& rel_time); 54 template <class Rep, class Period, class Predicate> 57 const chrono::duration<Rep, Period>& rel_time, 94 template <class Lock, class Rep, class Period> 97 const chrono::duration<Rep, Period>& rel_time); 99 template <class Lock, class Rep, class Period, class Predicate> 102 const chrono::duration<Rep, Period>& rel_time,
|
D | shared_mutex | 34 template <class Rep, class Period> 35 bool try_lock_for(const chrono::duration<Rep, Period>& rel_time); 43 template <class Rep, class Period> 45 try_lock_shared_for(const chrono::duration<Rep, Period>& rel_time); 67 template <class Rep, class Period> 69 const chrono::duration<Rep, Period>& rel_time); 80 template <class Rep, class Period> 81 bool try_lock_for(const chrono::duration<Rep, Period>& rel_time); 319 template <class Rep, class Period> 320 bool try_lock_for(const chrono::duration<Rep, Period>& rel_time);
|
D | mutex | 65 template <class Rep, class Period> 66 bool try_lock_for(const chrono::duration<Rep, Period>& rel_time); 83 template <class Rep, class Period> 84 bool try_lock_for(const chrono::duration<Rep, Period>& rel_time); 124 template <class Rep, class Period> 125 unique_lock(mutex_type& m, const chrono::duration<Rep, Period>& rel_time); 137 template <class Rep, class Period> 138 bool try_lock_for(const chrono::duration<Rep, Period>& rel_time);
|
D | chrono | 22 template <class ToDuration, class Rep, class Period> 25 duration_cast(const duration<Rep, Period>& fd); 40 template <class Rep, class Period = ratio<1>> 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"); 48 typedef Period period; 156 template <class Rep1, class Period, class Rep2> 158 duration<typename common_type<Rep1, Rep2>::type, Period> 159 operator*(const duration<Rep1, Period>& d, const Rep2& s); 160 template <class Rep1, class Period, class Rep2> [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/languages/ |
D | Test_ja.java | 14 import com.ibm.icu.impl.duration.Period; 62 Period p = Period.at(1, MINUTE).and(0, SECOND).and(1, MILLISECOND); in testOmitZeros()
|
/external/markdown/MarkdownTest/Tests_2004/ |
D | Backslash escapes.text | 27 Period: \. 63 Period: \. 98 Period: `\.`
|
/external/markdown/tests/markdown-test/ |
D | backlash-escapes.txt | 27 Period: \. 63 Period: \. 98 Period: `\.`
|
/external/zlib/src/contrib/ada/ |
D | read.adb | 54 Period : constant Stream_Element_Offset := 200; constant 90 if J < Item'First + Period then 93 Item (J) := Item (J - Period);
|
/external/markdown/MarkdownTest/Tests_2007/ |
D | Backslash escapes.text | 27 Period: \. 63 Period: \. 98 Period: `\.`
|
/external/libcxx/test/std/utilities/time/ |
D | microseconds.pass.cpp | 22 typedef D::period Period; in main() typedef 26 static_assert((std::is_same<Period, std::micro>::value), ""); in main()
|
D | nanoseconds.pass.cpp | 22 typedef D::period Period; in main() typedef 26 static_assert((std::is_same<Period, std::nano>::value), ""); in main()
|
D | milliseconds.pass.cpp | 22 typedef D::period Period; in main() typedef 26 static_assert((std::is_same<Period, std::milli>::value), ""); in main()
|
D | seconds.pass.cpp | 22 typedef D::period Period; in main() typedef 26 static_assert((std::is_same<Period, std::ratio<1> >::value), ""); in main()
|
D | minutes.pass.cpp | 22 typedef D::period Period; in main() typedef 26 static_assert((std::is_same<Period, std::ratio<60> >::value), ""); in main()
|
D | hours.pass.cpp | 22 typedef D::period Period; in main() typedef 26 static_assert((std::is_same<Period, std::ratio<3600> >::value), ""); in main()
|
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/ |
D | try_lock_for.pass.cpp | 28 template <class Rep, class Period> 29 bool try_lock_for(const std::chrono::duration<Rep, Period>& rel_time) in try_lock_for()
|
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/ |
D | try_lock_for.pass.cpp | 30 template <class Rep, class Period> 31 bool try_lock_shared_for(const std::chrono::duration<Rep, Period>& rel_time) in try_lock_shared_for()
|