/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...] |
/external/webrtc/talk/app/webrtc/ |
dtmfsender_unittest.cc | 77 DtmfInfo(int code, int duration, int gap) 79 duration(duration), 82 int duration; member in struct:FakeDtmfProvider::DtmfInfo 99 int duration) override { 109 << " duration=" << duration 111 dtmf_info_queue_.push_back(DtmfInfo(code, duration, gap)); 157 // Constructs a list of DtmfInfo from |tones|, |duration| and 159 void GetDtmfInfoFromString(const std::string& tones, int duration, 247 int duration = 100; local 261 int duration = 100; local 283 int duration = 100; local 297 int duration = 100; local 312 int duration = 100; local 332 int duration = 100; local 343 int duration = 100; local 351 int duration = 100; local [all...] |
dtmfsenderinterface.h | 71 // The |duration| parameter indicates the duration in ms to use for each 73 // The duration cannot be more than 6000 or less than 70. 80 virtual bool InsertDtmf(const std::string& tones, int duration, 89 // Returns the current tone duration value in ms. 92 virtual int duration() const = 0;
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.nonmember/ |
op_divide_duration.pass.cpp | 12 // duration 17 // operator/(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs); 37 std::chrono::duration<int, std::ratio<2, 3> > s1(30); 38 std::chrono::duration<int, std::ratio<3, 5> > s2(5); 42 std::chrono::duration<int, std::ratio<2, 3> > s1(30); 43 std::chrono::duration<double, std::ratio<3, 5> > s2(5); 58 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(30); 59 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); 63 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(30) [all...] |
op_+.pass.cpp | 12 // duration 15 // typename common_type<duration<Rep1, Period1>, duration<Rep2, Period2>>::type 16 // operator+(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs); 38 std::chrono::duration<int, std::ratio<2, 3> > s1(3); 39 std::chrono::duration<int, std::ratio<3, 5> > s2(5); 40 std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; 44 std::chrono::duration<int, std::ratio<2, 3> > s1(3); 45 std::chrono::duration<double, std::ratio<3, 5> > s2(5) [all...] |
op_-.pass.cpp | 12 // duration 16 // typename common_type<duration<Rep1, Period1>, duration<Rep2, Period2>>::type 17 // operator-(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs); 39 std::chrono::duration<int, std::ratio<2, 3> > s1(3); 40 std::chrono::duration<int, std::ratio<3, 5> > s2(5); 41 std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; 45 std::chrono::duration<int, std::ratio<2, 3> > s1(3); 46 std::chrono::duration<double, std::ratio<3, 5> > s2(5) [all...] |
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
LatencyTrackerCompat.java | 31 public static void logToggleRecents(int duration) { 32 LatencyTracker.logAction(LatencyTracker.ACTION_TOGGLE_RECENTS, duration);
|
/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/core/ktx/src/main/java/androidx/core/widget/ |
Toast.kt | 28 * @param duration Toast duration, defaults to [Toast.LENGTH_SHORT] 30 inline fun Context.toast(text: CharSequence, duration: Int = Toast.LENGTH_SHORT): Toast { 31 return Toast.makeText(this, text, duration).apply { show() } 38 * @param duration Toast duration, defaults to [Toast.LENGTH_SHORT] 40 inline fun Context.toast(@StringRes resId: Int, duration: Int = Toast.LENGTH_SHORT): Toast { 41 return Toast.makeText(this, resId, duration).apply { show() }
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
PlaybackSeekProviderSample.java | 23 public PlaybackSeekProviderSample(long duration, int numSeekPositions) { 24 this(0, duration, numSeekPositions);
|
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
FloatAnimation.java | 25 public FloatAnimation(float from, float to, int duration) { 29 setDuration(duration);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/time/time.duration/time.duration.nonmember/ |
op_divide_duration.pass.cpp | 12 // duration 17 // operator/(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs); 37 std::chrono::duration<int, std::ratio<2, 3> > s1(30); 38 std::chrono::duration<int, std::ratio<3, 5> > s2(5); 42 std::chrono::duration<int, std::ratio<2, 3> > s1(30); 43 std::chrono::duration<double, std::ratio<3, 5> > s2(5); 58 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(30); 59 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); 63 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(30) [all...] |
op_+.pass.cpp | 12 // duration 15 // typename common_type<duration<Rep1, Period1>, duration<Rep2, Period2>>::type 16 // operator+(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs); 38 std::chrono::duration<int, std::ratio<2, 3> > s1(3); 39 std::chrono::duration<int, std::ratio<3, 5> > s2(5); 40 std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; 44 std::chrono::duration<int, std::ratio<2, 3> > s1(3); 45 std::chrono::duration<double, std::ratio<3, 5> > s2(5) [all...] |
op_-.pass.cpp | 12 // duration 16 // typename common_type<duration<Rep1, Period1>, duration<Rep2, Period2>>::type 17 // operator-(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs); 39 std::chrono::duration<int, std::ratio<2, 3> > s1(3); 40 std::chrono::duration<int, std::ratio<3, 5> > s2(5); 41 std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; 45 std::chrono::duration<int, std::ratio<2, 3> > s1(3); 46 std::chrono::duration<double, std::ratio<3, 5> > s2(5) [all...] |
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowOverScroller.java | 17 private long duration; field in class:ShadowOverScroller 33 return dt >= duration ? finalX : startX + (int) ((deltaX() * dt) / duration); 39 return dt >= duration ? finalY : startY + (int) ((deltaY() * dt) / duration); 54 return (int) duration; 58 public void startScroll(int startX, int startY, int dx, int dy, int duration) { 64 this.duration = duration; 72 }, 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/glide/library/src/main/java/com/bumptech/glide/request/animation/ |
DrawableCrossFadeViewAnimation.java | 16 private final int duration; field in class:DrawableCrossFadeViewAnimation 19 * Constructor that takes a default animation and a duration in milliseconds that the cross fade animation should 21 * @param duration The duration that the cross fade animation should run if there is something to cross fade from 24 public DrawableCrossFadeViewAnimation(GlideAnimation<T> defaultAnimation, int duration) { 26 this.duration = duration; 34 * <li>Using the cross fade animation with the duration provided in the constructor if the previous 48 transitionDrawable.startTransition(duration);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
Timer.java | 22 private long duration; field in class:Timer 33 duration = Long.MIN_VALUE; 39 duration = System.nanoTime() - startTime; 42 return duration; 101 // Once we get to within 1/4 of the timingPeriod, we change to adding 33%, plus 1. We also remember the shortest duration from this point on. 115 if (duration >= timingPeriod) { 116 duration /= iterations; 117 return Math.min(duration, shortest); 118 } else if (duration >= timingPeriod / 4) { 119 duration /= iterations [all...] |
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
Timer.java | 19 private long duration; field in class:Timer 30 duration = Long.MIN_VALUE; 36 duration = System.nanoTime() - startTime; 39 return duration; 98 // Once we get to within 1/4 of the timingPeriod, we change to adding 33%, plus 1. We also remember the shortest duration from this point on. 112 if (duration >= timingPeriod) { 113 duration /= iterations; 114 return Math.min(duration, shortest); 115 } else if (duration >= timingPeriod / 4) { 116 duration /= iterations [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...] |
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/ |
TimeUtilTest.java | 33 import com.google.protobuf.Duration; 245 Duration duration = TimeUtil.distance(start, end); local 246 assertEquals("315537897599.999999999s", TimeUtil.toString(duration)); 247 duration = TimeUtil.distance(end, start); 248 assertEquals("-315537897599.999999999s", TimeUtil.toString(duration)); 251 duration = Duration.newBuilder().setSeconds(1).build(); 252 assertEquals("1s", TimeUtil.toString(duration)); 253 duration = Duration.newBuilder().setNanos(10000000).build() 395 Duration duration = TimeUtil.parseDuration("1.111111111s"); local 422 Duration duration = TimeUtil.distance(start, end); local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
BasicDurationFormatter.java | 11 package android.icu.impl.duration; 28 * Creates a basic duration formatter with the given formatter, 59 long duration = targetDate.getTime() - now; 60 return formatDurationFrom(duration, now); 64 public String formatDurationFromNow(long duration) { 65 return formatDurationFrom(duration, System.currentTimeMillis()); 69 public String formatDurationFrom(long duration, long referenceDate) { 70 String s = doFallback(duration, referenceDate); 72 Period p = doBuild(duration, referenceDate); 107 protected String doFallback(long duration, long referenceDate) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
BasicDurationFormatter.java | 10 package com.ibm.icu.impl.duration; 27 * Creates a basic duration formatter with the given formatter, 58 long duration = targetDate.getTime() - now; 59 return formatDurationFrom(duration, now); 63 public String formatDurationFromNow(long duration) { 64 return formatDurationFrom(duration, System.currentTimeMillis()); 68 public String formatDurationFrom(long duration, long referenceDate) { 69 String s = doFallback(duration, referenceDate); 71 Period p = doBuild(duration, referenceDate); 106 protected String doFallback(long duration, long referenceDate) [all...] |
/external/autotest/client/site_tests/platform_Quipper/ |
platform_Quipper.py | 16 def _get_quipper_command(self, duration, perf_options): 17 return ('quipper', str(duration), 'perf', 'record', '-a') + \ 21 def _get_perf_command(self, duration, perf_options): 23 ('--', 'sleep', str(duration)) 31 duration = 2 60 perf_command = self._get_perf_command(duration, options) 64 quipper_command = self._get_quipper_command(duration, options)
|
/frameworks/base/libs/hwui/ |
FrameInfoVisualizer.h | 63 float duration = mFrameSource[index].duration(start, end) * 0.000001f; local 65 duration = duration > 50.0f ? 50.0f : duration; 66 return duration > 0.0f ? duration : 0.0f;
|