Searched refs:Duration (Results 1 - 25 of 56) sorted by relevance

123

/external/chromium_org/base/profiler/
H A Dtracked_time.cc15 Duration::Duration() : ms_(0) {} function in class:tracked_objects::Duration
16 Duration::Duration(int32 duration) : ms_(duration) {} function in class:tracked_objects::Duration
18 Duration& Duration::operator+=(const Duration& other) {
23 Duration Duration::operator+(const Duration
[all...]
H A Dtracked_time.h26 class BASE_EXPORT Duration { // Similar to base::TimeDelta. class in namespace:tracked_objects
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;
37 static Duration FromMillisecond
[all...]
H A Dtracked_time_unittest.cc21 Duration::FromMilliseconds(kSomeMilliseconds);
39 Duration first = Duration::FromMilliseconds(kFirstMilliseconds);
40 Duration second = Duration::FromMilliseconds(kSecondMilliseconds);
45 Duration sum = first + second;
64 Duration before = now - TrackedTime(ticks_before);
66 Duration after = now - TrackedTime(ticks_after);
100 Duration before = now - TrackedTime(ticks_before);
102 Duration afte
[all...]
/external/libcxx/test/utilities/time/time.point/time.point.arithmetic/
H A Dop_+=.pass.cpp22 typedef std::chrono::milliseconds Duration; typedef
23 std::chrono::time_point<Clock, Duration> t(Duration(3));
24 t += Duration(2);
25 assert(t.time_since_epoch() == Duration(5));
H A Dop_-=.pass.cpp22 typedef std::chrono::milliseconds Duration; typedef
23 std::chrono::time_point<Clock, Duration> t(Duration(3));
24 t -= Duration(2);
25 assert(t.time_since_epoch() == Duration(1));
/external/libcxx/test/utilities/time/time.point/time.point.cons/
H A Dduration.fail.cpp23 typedef std::chrono::milliseconds Duration; typedef
24 std::chrono::time_point<Clock, Duration> t = Duration(3);
H A Dduration.pass.cpp22 typedef std::chrono::milliseconds Duration; typedef
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), "");
37 constexpr std::chrono::time_point<Clock, Duration>
[all...]
H A Ddefault.pass.cpp24 typedef std::chrono::duration<Rep, std::milli> Duration; typedef
26 std::chrono::time_point<Clock, Duration> t;
27 assert(t.time_since_epoch() == Duration::zero());
31 constexpr std::chrono::time_point<Clock, Duration> t;
32 static_assert(t.time_since_epoch() == Duration::zero(), "");
/external/libcxx/test/utilities/time/time.point/time.point.special/
H A Dmax.pass.cpp22 typedef std::chrono::milliseconds Duration; typedef
23 typedef std::chrono::time_point<Clock, Duration> TP;
24 assert(TP::max() == TP(Duration::max()));
H A Dmin.pass.cpp22 typedef std::chrono::milliseconds Duration; typedef
23 typedef std::chrono::time_point<Clock, Duration> TP;
24 assert(TP::min() == TP(Duration::min()));
/external/chromium_org/media/base/
H A Ddecoder_buffer_queue_unittest.cc48 EXPECT_EQ(1, queue.Duration().InSeconds());
52 EXPECT_EQ(0, queue.Duration().InSeconds());
55 TEST(DecoderBufferQueueTest, Duration) {
57 EXPECT_EQ(0, queue.Duration().InSeconds());
60 EXPECT_EQ(0, queue.Duration().InSeconds());
63 EXPECT_EQ(1, queue.Duration().InSeconds());
66 EXPECT_EQ(2, queue.Duration().InSeconds());
69 EXPECT_EQ(4, queue.Duration().InSeconds());
72 EXPECT_EQ(3, queue.Duration().InSeconds());
75 EXPECT_EQ(2, queue.Duration()
[all...]
H A Ddecoder_buffer_queue.h52 base::TimeDelta Duration();
62 // increasing timestamp order. Used to calculate Duration() while ignoring
/external/chromium_org/cc/animation/
H A Dscroll_offset_animation_curve_unittest.cc14 TEST(ScrollOffsetAnimationCurveTest, Duration) {
22 EXPECT_DOUBLE_EQ(0.0, curve->Duration());
26 EXPECT_DOUBLE_EQ(0.1, curve->Duration());
30 EXPECT_DOUBLE_EQ(0.15, curve->Duration());
34 EXPECT_DOUBLE_EQ(0.2, curve->Duration());
38 EXPECT_DOUBLE_EQ(0.05, curve->Duration());
42 EXPECT_DOUBLE_EQ(3.0, curve->Duration());
46 EXPECT_DOUBLE_EQ(0.15, curve->Duration());
50 EXPECT_DOUBLE_EQ(2.0, curve->Duration());
54 EXPECT_DOUBLE_EQ(0.05, curve->Duration());
[all...]
H A Danimation.cc158 iterations_ * curve_->Duration() / std::abs(playback_rate_) <=
195 double start_offset = iteration_start_ * curve_->Duration();
206 if (curve_->Duration() <= 0)
209 double repeated_duration = iterations_ * curve_->Duration();
228 iteration_time = curve_->Duration();
230 iteration_time = fmod(scaled_active_time, curve_->Duration());
236 else if (iteration_time == curve_->Duration())
239 iteration = static_cast<int>(scaled_active_time / curve_->Duration());
249 iteration_time = curve_->Duration() - iteration_time;
H A Dkeyframed_animation_curve.h126 virtual double Duration() const OVERRIDE;
152 virtual double Duration() const OVERRIDE;
179 virtual double Duration() const OVERRIDE;
212 virtual double Duration() const OVERRIDE;
H A Dscroll_offset_animation_curve.h31 virtual double Duration() const OVERRIDE;
/external/qemu/android/
H A Dlooper.h28 /* An Duration represents a duration in milliseconds */
29 typedef int64_t Duration; typedef
31 /* A special Duration value used to mean "infinite" */
32 #define DURATION_INFINITE ((Duration)INT64_MAX)
91 Duration (*now) (Looper* looper);
94 int (*run) (Looper* looper, Duration deadline_ms);
118 void (*startRelative)(void* impl, Duration timeout_ms);
119 void (*startAbsolute)(void* impl, Duration deadline_ms);
151 loopTimer_startRelative(LoopTimer* timer, Duration timeout_ms)
163 loopTimer_startAbsolute(LoopTimer* timer, Duration deadline_m
[all...]
H A Dasync-socket.h210 Duration deadline);
238 Duration deadline);
261 extern Duration async_socket_deadline(AsyncSocket* as, int rel);
/external/chromium_org/ui/compositor/
H A Dfloat_animation_curve_adapter.h24 virtual double Duration() const OVERRIDE;
H A Dfloat_animation_curve_adapter.cc20 double FloatAnimationCurveAdapter::Duration() const { function in class:ui::FloatAnimationCurveAdapter
H A Dtransform_animation_curve_adapter.h28 virtual double Duration() const OVERRIDE;
58 virtual double Duration() const OVERRIDE;
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
H A Dtry_lock_until.pass.cpp14 // template <class Clock, class Duration>
15 // bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
26 template <class Clock, class Duration>
27 bool try_lock_shared_until(const std::chrono::time_point<Clock, Duration>& abs_time)
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
H A Dtry_lock_until.pass.cpp14 // template <class Clock, class Duration>
15 // bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
24 template <class Clock, class Duration>
25 bool try_lock_until(const std::chrono::time_point<Clock, Duration>& abs_time)
/external/chromium_org/cc/blink/
H A Dweb_scroll_offset_animation_curve_impl.cc42 return curve_->Duration();
/external/libnfc-nxp/src/
H A DphHciNfc_PollingLoop.c386 if(p_poll_cfg->Duration > PL_MAX_DURATION)
388 p_poll_cfg->Duration = PL_MAX_DURATION;
395 p_poll_cfg->Duration = ((p_poll_cfg->Duration <
399 p_poll_cfg->Duration );
404 p_poll_cfg->Duration = ((p_poll_cfg->Duration <
407 p_poll_cfg->Duration);
414 PL_DURATION_CALC(p_poll_cfg->Duration);

Completed in 414 milliseconds

123