Home
last modified time | relevance | path

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

12345

/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/
DPeriod.java31 public final class Period { class
43 public static Period at(float count, TimeUnit unit) { in at()
45 return new Period(ETimeLimit.NOLIMIT, false, count, unit); in at()
55 public static Period moreThan(float count, TimeUnit unit) { in moreThan()
57 return new Period(ETimeLimit.MT, false, count, unit); in moreThan()
67 public static Period lessThan(float count, TimeUnit unit) { in lessThan()
69 return new Period(ETimeLimit.LT, false, count, unit); in lessThan()
83 public Period and(float count, TimeUnit unit) { in and()
94 public Period omit(TimeUnit unit) { in omit()
103 public Period at() { in at()
[all …]
DBasicPeriodBuilderFactory.java162 Period createLimited(long duration, boolean inPast) { in createLimited()
166 return Period.moreThan(maxLimit/1000f, maxUnit).inPast(inPast); in createLimited()
176 return Period.lessThan(eml/1000f, emu).inPast(inPast); in createLimited()
327 public Period create(long duration) { in create()
336 public Period createWithReferenceDate(long duration, long referenceDate) { in createWithReferenceDate()
341 Period ts = settings.createLimited(duration, inPast); in createWithReferenceDate()
345 ts = Period.lessThan(1, settings.effectiveMinUnit()).inPast(inPast); in createWithReferenceDate()
368 protected abstract Period handleCreate(long duration, long referenceDate,
397 protected Period handleCreate(long duration, long referenceDate,
403 return Period.at((float)((double)duration/unitDuration), unit)
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DPeriod.java29 public final class Period { class
41 public static Period at(float count, TimeUnit unit) { in at()
43 return new Period(ETimeLimit.NOLIMIT, false, count, unit); in at()
53 public static Period moreThan(float count, TimeUnit unit) { in moreThan()
55 return new Period(ETimeLimit.MT, false, count, unit); in moreThan()
65 public static Period lessThan(float count, TimeUnit unit) { in lessThan()
67 return new Period(ETimeLimit.LT, false, count, unit); in lessThan()
81 public Period and(float count, TimeUnit unit) { in and()
92 public Period omit(TimeUnit unit) { in omit()
101 public Period at() { in at()
[all …]
DBasicPeriodBuilderFactory.java161 Period createLimited(long duration, boolean inPast) { in createLimited()
165 return Period.moreThan(maxLimit/1000f, maxUnit).inPast(inPast); in createLimited()
175 return Period.lessThan(eml/1000f, emu).inPast(inPast); in createLimited()
326 public Period create(long duration) { in create()
335 public Period createWithReferenceDate(long duration, long referenceDate) { in createWithReferenceDate()
340 Period ts = settings.createLimited(duration, inPast); in createWithReferenceDate()
344 ts = Period.lessThan(1, settings.effectiveMinUnit()).inPast(inPast); in createWithReferenceDate()
367 protected abstract Period handleCreate(long duration, long referenceDate,
396 protected Period handleCreate(long duration, long referenceDate,
402 return Period.at((float)((double)duration/unitDuration), unit)
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DPeriodTest.java19 import com.ibm.icu.impl.duration.Period;
26 Period p = Period.at(0, TimeUnit.YEAR); in testIsSet()
37 Period p = Period.moreThan(1, TimeUnit.YEAR); in testMoreLessThan()
50 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan()
54 p = Period.at(1, TimeUnit.YEAR); in testMoreLessThan()
63 Period p = Period.at(1, TimeUnit.YEAR).inFuture(); in testFuturePast()
75 Period p = Period.at(1, TimeUnit.YEAR).and(3, TimeUnit.MONTH) in testAnd()
87 Period.at(-1, TimeUnit.YEAR); in testInvalidCount()
93 Period.moreThan(-1, TimeUnit.YEAR); in testInvalidCount()
99 Period.lessThan(-1, TimeUnit.YEAR); in testInvalidCount()
[all …]
DLanguageTestFmwk.java29 import com.ibm.icu.impl.duration.Period;
178 protected static String timestring(Period ts) { in timestring()
259 Period p = pb.create(approximateDuration(u) * c); in testFullPluralizedForms()
282 Period p = pb.create(approximateDuration(u) * 3); in testMediumForms()
304 Period p = pb.create(approximateDuration(u) * 3); in testShortForms()
323 Period p = Period.at(1, HOUR); in testCustomMinutes()
342 Period p = Period.at(1, MONTH); in testLimitedUnits()
448 Period p = Period.at(c + .5f, u); in testHalfUnits()
479 Period p = Period.at(c, u); in testFractionalUnits()
501 Period p = Period.at(1, units[i]).and(2, units[i + 1]); in testMultipleUnits()
[all …]
DPeriodBuilderFactoryTest.java20 import com.ibm.icu.impl.duration.Period;
42 Period p = b.create((long)(approxDurations[unit.ordinal()]*2.5)); in testSetAvailableUnitRange()
50 Period p = b.create((long)(approxDurations[unit.ordinal()]*2.5)); in testSetAvailableUnitRange()
100 Period p = pb.create(H1M35S30M100); in testBuilderFactoryPeriodConstruction()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
DPeriodTest.java20 import android.icu.impl.duration.Period;
29 Period p = Period.at(0, TimeUnit.YEAR); in testIsSet()
40 Period p = Period.moreThan(1, TimeUnit.YEAR); in testMoreLessThan()
53 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan()
57 p = Period.at(1, TimeUnit.YEAR); in testMoreLessThan()
66 Period p = Period.at(1, TimeUnit.YEAR).inFuture(); in testFuturePast()
78 Period p = Period.at(1, TimeUnit.YEAR).and(3, TimeUnit.MONTH) in testAnd()
90 Period.at(-1, TimeUnit.YEAR); in testInvalidCount()
96 Period.moreThan(-1, TimeUnit.YEAR); in testInvalidCount()
102 Period.lessThan(-1, TimeUnit.YEAR); in testInvalidCount()
[all …]
DLanguageTestFmwk.java30 import android.icu.impl.duration.Period;
179 protected static String timestring(Period ts) { in timestring()
260 Period p = pb.create(approximateDuration(u) * c); in testFullPluralizedForms()
283 Period p = pb.create(approximateDuration(u) * 3); in testMediumForms()
305 Period p = pb.create(approximateDuration(u) * 3); in testShortForms()
324 Period p = Period.at(1, HOUR); in testCustomMinutes()
343 Period p = Period.at(1, MONTH); in testLimitedUnits()
449 Period p = Period.at(c + .5f, u); in testHalfUnits()
480 Period p = Period.at(c, u); in testFractionalUnits()
502 Period p = Period.at(1, units[i]).and(2, units[i + 1]); in testMultipleUnits()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DTimeline.java372 public static final class Period { class in Timeline
399 public Period() { in Period() method in Timeline.Period
418 public Period set( in set()
444 public Period set( in set()
624 Period that = (Period) obj; in equals()
666 public Period getPeriod(int periodIndex, Period period, boolean setIds) {
812 public final int getNextPeriodIndex(int periodIndex, Period period, Window window, in getNextPeriodIndex()
836 public final boolean isLastPeriod(int periodIndex, Period period, Window window, in isLastPeriod()
847 Window window, Period period, int windowIndex, long windowPositionUs) { in getPeriodPosition()
870 Period period, in getPeriodPosition()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DTimelineTest.java167 Timeline.Period period = new Timeline.Period(); in periodEquals()
168 assertThat(period).isEqualTo(new Timeline.Period()); in periodEquals()
170 Timeline.Period otherPeriod = new Timeline.Period(); in periodEquals()
174 otherPeriod = new Timeline.Period(); in periodEquals()
178 otherPeriod = new Timeline.Period(); in periodEquals()
182 otherPeriod = new Timeline.Period(); in periodEquals()
186 otherPeriod = new Timeline.Period(); in periodEquals()
203 Timeline.Period period = new Timeline.Period(); in periodHashCode()
204 Timeline.Period otherPeriod = new Timeline.Period(); in periodHashCode()
/external/exoplayer/tree/library/dash/src/test/java/com/google/android/exoplayer2/source/dash/
DDashUtilTest.java26 import com.google.android.exoplayer2.source.dash.manifest.Period;
42 Period period = newPeriod(newAdaptationSet(newRepresentation(newDrmInitData()))); in loadDrmInitDataFromManifest()
49 Period period = newPeriod(newAdaptationSet(newRepresentation(null /* no init data */))); in loadDrmInitDataMissing()
56 Period period = newPeriod(newAdaptationSet(/* no representation */ )); in loadDrmInitDataNoRepresentations()
63 Period period = newPeriod(/* no adaptation set */ ); in loadDrmInitDataNoAdaptationSets()
68 private static Period newPeriod(AdaptationSet... adaptationSets) { in newPeriod()
69 return new Period("", 0, Arrays.asList(adaptationSets)); in newPeriod()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/
DDashManifest.java91 private final List<Period> periods;
109 List<Period> periods) { in DashManifest()
137 List<Period> periods) { in DashManifest()
156 public final Period getPeriod(int index) { in getPeriod()
176 ArrayList<Period> copyPeriods = new ArrayList<>(); in copy()
186 Period period = getPeriod(periodIndex); in copy()
189 Period copiedPeriod = new Period(period.id, period.startMs - shiftMs, copyAdaptationSets, in copy()
DPeriod.java26 public class Period { class
56 public Period(@Nullable String id, long startMs, List<AdaptationSet> adaptationSets) { in Period() method in Period
66 public Period(@Nullable String id, long startMs, List<AdaptationSet> adaptationSets, in Period() method in Period
78 public Period( in Period() method in Period
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DChrono.h93 template <typename Period> struct unit { static const char value[]; };
94 template <typename Period> const char unit<Period>::value[] = "";
104 template <typename Rep, typename Period>
105 struct format_provider<std::chrono::duration<Rep, Period>> {
107 typedef std::chrono::duration<Rep, Period> Dur;
132 return {D.count(), detail::unit<Period>::value};
/external/swiftshader/third_party/marl/include/marl/
Devent.h64 template <typename Rep, typename Period>
66 const std::chrono::duration<Rep, Period>& duration) const;
109 template <typename Rep, typename Period>
110 inline bool wait_for(const std::chrono::duration<Rep, Period>& duration);
153 template <typename Rep, typename Period>
155 const std::chrono::duration<Rep, Period>& duration) { in wait_for()
197 template <typename Rep, typename Period>
198 bool Event::wait_for(const std::chrono::duration<Rep, Period>& duration) const { in wait_for()
Dconditionvariable.h55 template <typename Rep, typename Period, typename Predicate>
57 const std::chrono::duration<Rep, Period>& duration,
143 template <typename Rep, typename Period, typename Predicate>
146 const std::chrono::duration<Rep, Period>& duration, in wait_for()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DTimelineAsserts.java23 import com.google.android.exoplayer2.Timeline.Period;
111 Period period = new Period(); in assertPeriodDurations()
133 Period period = new Period(); in assertPeriodCounts()
166 Period period = new Period(); in assertAdGroupCounts()
DFakeAdaptiveMediaSource.java20 import com.google.android.exoplayer2.Timeline.Period;
51 Period period = Util.castNonNull(getTimeline()).getPeriodByUid(id.periodUid, new Period()); in createFakeMediaPeriod()
/external/fmtlib/include/fmt/
Dchrono.h443 template <typename Period> FMT_CONSTEXPR const char* get_units() {
728 template <typename Rep, typename Period,
731 std::chrono::duration<Rep, Period> d) {
751 template <typename Rep, typename Period,
754 std::chrono::duration<Rep, Period> d) {
756 auto ms = mod(d.count() * static_cast<common_type>(Period::num) /
757 static_cast<common_type>(Period::den) * 1000,
769 template <typename Period, typename OutputIt>
771 if (const char* unit = get_units<Period>()) return format_to(out, "{}", unit);
772 if (Period::den == 1) return format_to(out, "[{}]s", Period::num);
[all …]
/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,
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/languages/
DTest_ja.java19 import android.icu.impl.duration.Period;
61 Period p = Period.at(1, MINUTE).and(0, SECOND).and(1, MILLISECOND); in testOmitZeros()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/languages/
DTest_ja.java18 import com.ibm.icu.impl.duration.Period;
58 Period p = Period.at(1, MINUTE).and(0, SECOND).and(1, MILLISECOND); in testOmitZeros()
/external/markdown/tests/markdown-test/
Dbacklash-escapes.txt27 Period: \.
63 Period: \.
98 Period: `\.`
/external/markdown/MarkdownTest/Tests_2004/
DBackslash escapes.text27 Period: \.
63 Period: \.
98 Period: `\.`

12345