/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
TestAll.java | 10 package com.ibm.icu.dev.test.duration; 25 "com.ibm.icu.dev.test.duration.ICUDurationTest", 26 "com.ibm.icu.dev.test.duration.DataReadWriteTest", 27 "com.ibm.icu.dev.test.duration.PeriodBuilderFactoryTest", 28 "com.ibm.icu.dev.test.duration.PeriodBuilderTest", 29 "com.ibm.icu.dev.test.duration.PeriodTest", 30 "com.ibm.icu.dev.test.duration.ResourceBasedPeriodFormatterDataServiceTest", 31 "com.ibm.icu.dev.test.duration.languages.TestAll", 33 "Duration Tests"); 36 public static final String CLASS_TARGET_NAME = "Duration"; [all...] |
/packages/apps/Messaging/src/com/android/messaging/sms/ |
SmsReleaseStorage.java | 36 * Class representing a time duration specified by Gservices 38 public static class Duration { 39 // Time duration unit types 49 public Duration(final int count, final int unit) { 57 private static final Duration DEFAULT_DURATION = new Duration(1, Duration.UNIT_MONTH); 61 * Parse message retaining time duration specified by Gservices 63 * @return The parsed time duration from Gservices 65 public static Duration parseMessageRetainingDuration() [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
DurationFormatter.java | 8 package com.ibm.icu.impl.duration; 19 * Formats the duration between now and a target date. 24 * <code>targetDate.getTime()</code> as the duration. 32 * Formats a duration expressed in milliseconds. 37 * @param duration the duration in milliseconds 41 String formatDurationFromNow(long duration); 44 * Formats a duration expressed in milliseconds from a reference date. 49 * The duration is expressed as the number of milliseconds in the 53 * @param duration the duration in millisecond [all...] |
/prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/util/ |
time_util.h | 43 #include <google/protobuf/duration.pb.h> 52 typedef google::protobuf::Duration Duration; 55 // The min/max Timestamp/Duration values we support. 82 // Converts Duration to/from string format. The string format will contains 84 // represent the exact Duration value. For example: 86 // The range that can be represented by Duration is from -315,576,000,000 88 static string ToString(const Duration& duration); 89 static bool FromString(const string& value, Duration* timestamp) [all...] |
/external/libchrome/base/profiler/ |
tracked_time.h | 20 // of duration between those values. This means we can only handle durations 26 class BASE_EXPORT Duration { // Similar to base::TimeDelta. 28 Duration(); 30 Duration& operator+=(const Duration& other); 31 Duration operator+(const Duration& other) const; 33 bool operator==(const Duration& other) const; 34 bool operator!=(const Duration& other) const; 35 bool operator>(const Duration& other) const [all...] |
/prebuilts/ndk/current/sources/cxx-stl/gnu-libstdc++/4.9/include/ |
chrono | 64 struct duration; 66 template<typename _Clock, typename _Dur = typename _Clock::duration> 74 // 20.11.4.3 specialization of common_type (for duration, sfinae-friendly) 86 typedef __success_type<chrono::duration<__cr, __r>> type; 94 struct common_type<chrono::duration<_Rep1, _Period1>, 95 chrono::duration<_Rep2, _Period2>> 133 __cast(const duration<_Rep, _Period>& __d) 147 __cast(const duration<_Rep, _Period>& __d) 159 __cast(const duration<_Rep, _Period>& __d) 172 __cast(const duration<_Rep, _Period>& __d [all...] |
/external/libcxx/test/std/utilities/time/time.point/time.point.cons/ |
duration.pass.cpp | 14 // explicit time_point(const duration& d); 22 typedef std::chrono::milliseconds Duration; 24 std::chrono::time_point<Clock, Duration> t(Duration(3)); 25 assert(t.time_since_epoch() == Duration(3)); 28 std::chrono::time_point<Clock, Duration> t(std::chrono::seconds(3)); 29 assert(t.time_since_epoch() == Duration(3000)); 33 constexpr std::chrono::time_point<Clock, Duration> t(Duration(3)); 34 static_assert(t.time_since_epoch() == Duration(3), "") [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/actions/ |
DelayAction.java | 22 private float duration, time;
field in class:DelayAction 27 public DelayAction (float duration) {
28 this.duration = duration;
32 if (time < duration) {
34 if (time < duration) return false;
35 delta = time - duration;
43 time = duration;
62 return duration;
66 public void setDuration (float duration) {
[all...] |
/external/robolectric/v1/src/test/resources/res/drawable/ |
animation_list.xml | 3 <item android:drawable="@drawable/an_image" android:duration="400"/> 4 <item android:drawable="@drawable/an_other_image" android:duration="400"/> 5 <item android:drawable="@drawable/third_image" android:duration="400"/>
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.cons/ |
duration.pass.cpp | 14 // explicit time_point(const duration& d); 22 typedef std::chrono::milliseconds Duration; 24 std::chrono::time_point<Clock, Duration> t(Duration(3)); 25 assert(t.time_since_epoch() == Duration(3)); 28 std::chrono::time_point<Clock, Duration> t(std::chrono::seconds(3)); 29 assert(t.time_since_epoch() == Duration(3000)); 33 constexpr std::chrono::time_point<Clock, Duration> t(Duration(3)); 34 static_assert(t.time_since_epoch() == Duration(3), "") [all...] |
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
DurationTest.java | 30 Duration duration = new Duration(); local 31 duration.parse(str); 33 assertEquals("Duration sign is not equal for " + str, sign, duration.sign); 34 assertEquals("Duration weeks is not equal for " + str, weeks, duration.weeks); 35 assertEquals("Duration days is not equal for " + str, days, duration.days) [all...] |
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/res/raw/ |
music_consumption_example.json | 5 "duration": "1:38", 13 "duration": "1:42", 21 "duration": "1:21", 29 "duration": "2:06", 37 "duration": "2:43", 45 "duration": "0:05", 53 "duration": "2:54", 61 "duration": "2:38", 69 "duration": "2:40",
|
/frameworks/support/v7/mediarouter/res/drawable/ |
mr_group_collapse.xml | 19 <item android:drawable="@drawable/ic_group_collapse_00" android:duration="13" /> 20 <item android:drawable="@drawable/ic_group_collapse_01" android:duration="13" /> 21 <item android:drawable="@drawable/ic_group_collapse_02" android:duration="13" /> 22 <item android:drawable="@drawable/ic_group_collapse_03" android:duration="13" /> 23 <item android:drawable="@drawable/ic_group_collapse_04" android:duration="13" /> 24 <item android:drawable="@drawable/ic_group_collapse_05" android:duration="13" /> 25 <item android:drawable="@drawable/ic_group_collapse_06" android:duration="13" /> 26 <item android:drawable="@drawable/ic_group_collapse_07" android:duration="13" /> 27 <item android:drawable="@drawable/ic_group_collapse_08" android:duration="13" /> 28 <item android:drawable="@drawable/ic_group_collapse_09" android:duration="13" / [all...] |
mr_group_expand.xml | 19 <item android:drawable="@drawable/ic_group_expand_00" android:duration="13" /> 20 <item android:drawable="@drawable/ic_group_expand_01" android:duration="13" /> 21 <item android:drawable="@drawable/ic_group_expand_02" android:duration="13" /> 22 <item android:drawable="@drawable/ic_group_expand_03" android:duration="13" /> 23 <item android:drawable="@drawable/ic_group_expand_04" android:duration="13" /> 24 <item android:drawable="@drawable/ic_group_expand_05" android:duration="13" /> 25 <item android:drawable="@drawable/ic_group_expand_06" android:duration="13" /> 26 <item android:drawable="@drawable/ic_group_expand_07" android:duration="13" /> 27 <item android:drawable="@drawable/ic_group_expand_08" android:duration="13" /> 28 <item android:drawable="@drawable/ic_group_expand_09" android:duration="13" / [all...] |
/prebuilts/sdk/current/support/v7/mediarouter/res/drawable/ |
mr_group_collapse.xml | 19 <item android:drawable="@drawable/ic_group_collapse_00" android:duration="13" /> 20 <item android:drawable="@drawable/ic_group_collapse_01" android:duration="13" /> 21 <item android:drawable="@drawable/ic_group_collapse_02" android:duration="13" /> 22 <item android:drawable="@drawable/ic_group_collapse_03" android:duration="13" /> 23 <item android:drawable="@drawable/ic_group_collapse_04" android:duration="13" /> 24 <item android:drawable="@drawable/ic_group_collapse_05" android:duration="13" /> 25 <item android:drawable="@drawable/ic_group_collapse_06" android:duration="13" /> 26 <item android:drawable="@drawable/ic_group_collapse_07" android:duration="13" /> 27 <item android:drawable="@drawable/ic_group_collapse_08" android:duration="13" /> 28 <item android:drawable="@drawable/ic_group_collapse_09" android:duration="13" / [all...] |
mr_group_expand.xml | 19 <item android:drawable="@drawable/ic_group_expand_00" android:duration="13" /> 20 <item android:drawable="@drawable/ic_group_expand_01" android:duration="13" /> 21 <item android:drawable="@drawable/ic_group_expand_02" android:duration="13" /> 22 <item android:drawable="@drawable/ic_group_expand_03" android:duration="13" /> 23 <item android:drawable="@drawable/ic_group_expand_04" android:duration="13" /> 24 <item android:drawable="@drawable/ic_group_expand_05" android:duration="13" /> 25 <item android:drawable="@drawable/ic_group_expand_06" android:duration="13" /> 26 <item android:drawable="@drawable/ic_group_expand_07" android:duration="13" /> 27 <item android:drawable="@drawable/ic_group_expand_08" android:duration="13" /> 28 <item android:drawable="@drawable/ic_group_expand_09" android:duration="13" / [all...] |
/cts/libs/vogar-expect/src/vogar/util/ |
TimeUtilities.java | 25 * Returns the ISO 8601-format String corresponding to the given duration (measured in milliseconds). 27 public static String msToIsoString(long duration) { 28 long milliseconds = duration % 1000; 29 duration /= 1000; 30 long seconds = duration % 60; 31 duration /= 60; 32 long minutes = duration % 60; 33 duration /= 60; 34 long hours = duration; 74 long duration = ns local [all...] |
/external/vogar/src/vogar/util/ |
TimeUtilities.java | 25 * Returns the ISO 8601-format String corresponding to the given duration (measured in milliseconds). 27 public static String msToIsoString(long duration) { 28 long milliseconds = duration % 1000; 29 duration /= 1000; 30 long seconds = duration % 60; 31 duration /= 60; 32 long minutes = duration % 60; 33 duration /= 60; 34 long hours = duration; 74 long duration = ns local [all...] |
/system/update_engine/ |
metrics_utils_unittest.cc | 83 base::TimeDelta duration; local 96 &duration)); 101 &duration)); 102 EXPECT_EQ(duration.InSeconds(), 0); 108 &duration)); 109 EXPECT_EQ(duration.InSeconds(), 0); 112 &duration)); 113 EXPECT_EQ(duration.InSeconds(), 0); 120 &duration)); 121 EXPECT_EQ(duration.InSeconds(), 1) 156 base::TimeDelta duration; local [all...] |
/libcore/luni/src/main/java/javax/xml/datatype/ |
Duration.java | 18 //$Id: Duration.java 759828 2009-03-30 01:26:29Z mrglavas $ 33 * <p>A Duration object represents a period of Gregorian time, 40 * A negative sign indicates a negative duration.</p> 43 * to use for the duration datatype of XML Schema 1.0 with 47 * <p>Duration objects only have partial order, where two values A and B 52 * <li>A==B (A and B are of the same duration) 57 * The {@link #compare(Duration duration)} method implements this 60 * <p>See the {@link #isLongerThan(Duration)} method for details about 61 * the order relationship among <code>Duration</code> objects.</p [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/ |
chrono | 63 struct duration; 65 template<typename _Clock, typename _Dur = typename _Clock::duration> 73 // 20.11.4.3 specialization of common_type (for duration, sfinae-friendly) 85 typedef __success_type<chrono::duration<__cr, __r>> type; 93 struct common_type<chrono::duration<_Rep1, _Period1>, 94 chrono::duration<_Rep2, _Period2>> 132 __cast(const duration<_Rep, _Period>& __d) 146 __cast(const duration<_Rep, _Period>& __d) 158 __cast(const duration<_Rep, _Period>& __d) 171 __cast(const duration<_Rep, _Period>& __d [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/ |
chrono | 63 struct duration; 65 template<typename _Clock, typename _Dur = typename _Clock::duration> 73 // 20.11.4.3 specialization of common_type (for duration, sfinae-friendly) 85 typedef __success_type<chrono::duration<__cr, __r>> type; 93 struct common_type<chrono::duration<_Rep1, _Period1>, 94 chrono::duration<_Rep2, _Period2>> 132 __cast(const duration<_Rep, _Period>& __d) 146 __cast(const duration<_Rep, _Period>& __d) 158 __cast(const duration<_Rep, _Period>& __d) 171 __cast(const duration<_Rep, _Period>& __d [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/ |
chrono | 63 struct duration; 65 template<typename _Clock, typename _Dur = typename _Clock::duration> 73 // 20.11.4.3 specialization of common_type (for duration, sfinae-friendly) 85 typedef __success_type<chrono::duration<__cr, __r>> type; 93 struct common_type<chrono::duration<_Rep1, _Period1>, 94 chrono::duration<_Rep2, _Period2>> 132 __cast(const duration<_Rep, _Period>& __d) 146 __cast(const duration<_Rep, _Period>& __d) 158 __cast(const duration<_Rep, _Period>& __d) 171 __cast(const duration<_Rep, _Period>& __d [all...] |
/external/libcxx/test/std/utilities/time/time.traits/time.traits.specializations/ |
duration.pass.cpp | 13 // struct common_type<chrono::duration<Rep1, Period1>, chrono::duration<Rep2, Period2>> 15 // typedef chrono::duration<typename common_type<Rep1, Rep2>::type, see below }> type; 30 test<std::chrono::duration<int, std::ratio<1, 100> >, 31 std::chrono::duration<long, std::ratio<1, 1000> >, 32 std::chrono::duration<long, std::ratio<1, 1000> > >(); 33 test<std::chrono::duration<long, std::ratio<1, 100> >, 34 std::chrono::duration<int, std::ratio<1, 1000> >, 35 std::chrono::duration<long, std::ratio<1, 1000> > >(); 36 test<std::chrono::duration<char, std::ratio<1, 30> > [all...] |
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/stress/ |
StressEmitterTest.java | 44 float duration = (time2 - time1) / 1000000; local 45 System.out.println("\nSingle dump was " + duration + " ms."); 55 duration = ((time2 - time1) / 1000000) / (float) number; 56 System.out.println("Duration for r=" + number + " was " + duration + " ms/dump."); 58 if (duration > 3) { 59 System.err.println("!!!!!! Too long. Expected <1 but was " + duration); 71 duration = ((time2 - time1) / 1000000) / (float) number; 72 System.out.println("Duration for r=" + number + " was " + duration + " ms/dump.") [all...] |