Home
last modified time | relevance | path

Searched refs:Period (Results 1 – 25 of 32) sorted by relevance

12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DPeriod.java27 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 …]
DBasicPeriodBuilderFactory.java159 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 …]
DPeriodBuilder.java29 Period create(long duration); in create()
40 Period createWithReferenceDate(long duration, long referenceDate); in createWithReferenceDate()
DBasicDurationFormatter.java66 Period p = doBuild(duration, referenceDate);
108 protected Period doBuild(long duration, long referenceDate) { in doBuild()
112 protected String doFormat(Period period) { in doFormat()
DPeriodFormatter.java30 String format(Period period); in format()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DPeriodTest.java13 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 …]
DLanguageTestRoot.java23 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 …]
DPeriodBuilderFactoryTest.java14 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/
Dcondition_variable49 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,
Dshared_mutex34 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);
Dmutex65 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);
Dchrono22 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/
DTest_ja.java14 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/
DBackslash escapes.text27 Period: \.
63 Period: \.
98 Period: `\.`
/external/markdown/tests/markdown-test/
Dbacklash-escapes.txt27 Period: \.
63 Period: \.
98 Period: `\.`
/external/zlib/src/contrib/ada/
Dread.adb54 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/
DBackslash escapes.text27 Period: \.
63 Period: \.
98 Period: `\.`
/external/libcxx/test/std/utilities/time/
Dmicroseconds.pass.cpp22 typedef D::period Period; in main() typedef
26 static_assert((std::is_same<Period, std::micro>::value), ""); in main()
Dnanoseconds.pass.cpp22 typedef D::period Period; in main() typedef
26 static_assert((std::is_same<Period, std::nano>::value), ""); in main()
Dmilliseconds.pass.cpp22 typedef D::period Period; in main() typedef
26 static_assert((std::is_same<Period, std::milli>::value), ""); in main()
Dseconds.pass.cpp22 typedef D::period Period; in main() typedef
26 static_assert((std::is_same<Period, std::ratio<1> >::value), ""); in main()
Dminutes.pass.cpp22 typedef D::period Period; in main() typedef
26 static_assert((std::is_same<Period, std::ratio<60> >::value), ""); in main()
Dhours.pass.cpp22 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/
Dtry_lock_for.pass.cpp28 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/
Dtry_lock_for.pass.cpp30 template <class Rep, class Period>
31 bool try_lock_shared_for(const std::chrono::duration<Rep, Period>& rel_time) in try_lock_shared_for()

12