Home
last modified time | relevance | path

Searched refs:current_time (Results 1 – 25 of 145) sorted by relevance

123456

/external/chromium_org/remoting/base/
Drate_counter.cc23 base::Time current_time = CurrentTime(); in Record() local
24 EvictOldDataPoints(current_time); in Record()
26 data_points_.push(std::make_pair(current_time, value)); in Record()
36 void RateCounter::SetCurrentTimeForTest(base::Time current_time) { in SetCurrentTimeForTest() argument
38 DCHECK(current_time >= current_time_for_test_); in SetCurrentTimeForTest()
40 current_time_for_test_ = current_time; in SetCurrentTimeForTest()
43 void RateCounter::EvictOldDataPoints(base::Time current_time) { in EvictOldDataPoints() argument
45 base::Time window_start = current_time - time_window_; in EvictOldDataPoints()
/external/chromium_org/net/quic/crypto/
Dstrike_register_test.cc196 SlowStrikeRegister(unsigned max_entries, uint32 current_time, in SlowStrikeRegister() argument
200 creation_time_(current_time), in SlowStrikeRegister()
201 horizon_(ExternalTimeToInternal(current_time + window_secs) + 1) { in SlowStrikeRegister()
212 const uint32 current_time = ExternalTimeToInternal(current_time_external); in Insert() local
229 if ((current_time > window_secs_ && in Insert()
230 nonce_time < (current_time - window_secs_)) || in Insert()
231 nonce_time > (current_time + window_secs_)) { in Insert()
249 const uint32 current_time = ExternalTimeToInternal(current_time_external); in GetCurrentValidWindowSecs() local
250 if (horizon_ > current_time) { in GetCurrentValidWindowSecs()
253 return 1 + min(current_time - horizon_, window_secs_); in GetCurrentValidWindowSecs()
[all …]
Dstrike_register.cc94 uint32 current_time, in StrikeRegister() argument
100 internal_epoch_(current_time > kCreationTimeFromInternalEpoch in StrikeRegister()
101 ? current_time - kCreationTimeFromInternalEpoch in StrikeRegister()
104 ExternalTimeToInternal(current_time), window_secs, startup)) { in StrikeRegister()
141 const uint32 current_time = ExternalTimeToInternal(current_time_external); in Insert() local
144 if (memcmp(nonce + sizeof(current_time), orbit_, sizeof(orbit_))) { in Insert()
152 StrikeRegister::GetValidRange(current_time); in Insert()
275 uint32 current_time = ExternalTimeToInternal(current_time_external); in GetCurrentValidWindowSecs() local
277 current_time); in GetCurrentValidWindowSecs()
279 return valid_range.second - current_time + 1; in GetCurrentValidWindowSecs()
/external/chromium_org/chrome/browser/net/
Devicted_domain_cookie_counter.cc102 Time current_time(cookie_counter_delegate_->CurrentTime()); in OnCookieChanged() local
105 StoreEvictedCookie(key, cookie, current_time); in OnCookieChanged()
107 ProcessNewCookie(key, cookie, current_time); in OnCookieChanged()
133 void EvictedDomainCookieCounter::GarbageCollect(const Time& current_time) { in GarbageCollect() argument
149 if (it->second->is_expired(current_time)) { in GarbageCollect()
177 const Time& current_time) { in StoreEvictedCookie() argument
181 new EvictedCookie(current_time, cookie.ExpiryDate(), is_google); in StoreEvictedCookie()
191 GarbageCollect(current_time); in StoreEvictedCookie()
197 const Time& current_time) { in ProcessNewCookie() argument
200 if (!it->second->is_expired(current_time)) // Reinstatement. in ProcessNewCookie()
[all …]
Devicted_domain_cookie_counter.h54 bool is_expired(const base::Time& current_time) const { in is_expired()
55 return !expiry_time.is_null() && current_time >= expiry_time; in is_expired()
115 void GarbageCollect(const base::Time& current_time);
121 const base::Time& current_time);
127 const base::Time& current_time);
/external/chromium_org/content/browser/android/
Doverscroll_glow.cc105 base::TimeTicks current_time, in OnOverscrolled() argument
124 Release(current_time); in OnOverscrolled()
141 Absorb(current_time, velocity, x_overscroll_started, y_overscroll_started); in OnOverscrolled()
143 Pull(current_time, overscroll_delta, displacement); in OnOverscrolled()
149 bool OverscrollGlow::Animate(base::TimeTicks current_time) { in Animate() argument
156 if (edge_effects_[i]->Update(current_time)) { in Animate()
225 void OverscrollGlow::Pull(base::TimeTicks current_time, in Pull() argument
258 current_time, std::abs(edge_pull[i]), edge_displacement[i]); in Pull()
259 GetOppositeEdge(i)->Release(current_time); in Pull()
263 void OverscrollGlow::Absorb(base::TimeTicks current_time, in Absorb() argument
[all …]
Dedge_effect_l.cc100 void EdgeEffectL::Pull(base::TimeTicks current_time, in Pull() argument
104 if (state_ == STATE_PULL_DECAY && current_time - start_time_ < duration_) { in Pull()
112 start_time_ = current_time; in Pull()
135 void EdgeEffectL::Release(base::TimeTicks current_time) { in Release() argument
148 start_time_ = current_time; in Release()
152 void EdgeEffectL::Absorb(base::TimeTicks current_time, float velocity) { in Absorb() argument
157 start_time_ = current_time; in Absorb()
177 bool EdgeEffectL::Update(base::TimeTicks current_time) { in Update() argument
181 const double dt = (current_time - start_time_).InMilliseconds(); in Update()
193 start_time_ = current_time; in Update()
[all …]
Doverscroll_glow.h54 base::TimeTicks current_time,
62 bool Animate(base::TimeTicks current_time);
81 void Pull(base::TimeTicks current_time,
84 void Absorb(base::TimeTicks current_time,
88 void Release(base::TimeTicks current_time);
Dedge_effect_base.h32 virtual void Pull(base::TimeTicks current_time,
35 virtual void Absorb(base::TimeTicks current_time, float velocity) = 0;
36 virtual bool Update(base::TimeTicks current_time) = 0;
37 virtual void Release(base::TimeTicks current_time) = 0;
Dedge_effect.cc155 void EdgeEffect::Pull(base::TimeTicks current_time, in Pull() argument
158 if (state_ == STATE_PULL_DECAY && current_time - start_time_ < duration_) { in Pull()
166 start_time_ = current_time; in Pull()
199 void EdgeEffect::Release(base::TimeTicks current_time) { in Release() argument
216 start_time_ = current_time; in Release()
220 void EdgeEffect::Absorb(base::TimeTicks current_time, float velocity) { in Absorb() argument
224 start_time_ = current_time; in Absorb()
255 bool EdgeEffect::Update(base::TimeTicks current_time) { in Update() argument
259 const double dt = (current_time - start_time_).InMilliseconds(); in Update()
272 start_time_ = current_time; in Update()
[all …]
Dedge_effect.h31 virtual void Pull(base::TimeTicks current_time,
34 virtual void Absorb(base::TimeTicks current_time, float velocity) OVERRIDE;
35 virtual bool Update(base::TimeTicks current_time) OVERRIDE;
36 virtual void Release(base::TimeTicks current_time) OVERRIDE;
Dedge_effect_l.h34 virtual void Pull(base::TimeTicks current_time,
37 virtual void Absorb(base::TimeTicks current_time, float velocity) OVERRIDE;
38 virtual bool Update(base::TimeTicks current_time) OVERRIDE;
39 virtual void Release(base::TimeTicks current_time) OVERRIDE;
/external/chromium_org/net/ftp/
Dftp_directory_listing_parser.cc47 const base::Time& current_time, in ParseListing() argument
58 base::Bind(&ParseFtpDirectoryListingLs, lines, current_time, entries), in ParseListing()
71 lines, current_time, entries), in ParseListing()
95 const base::Time& current_time, in DecodeAndParse() argument
115 current_time, in DecodeAndParse()
137 const base::Time& current_time, in ParseFtpDirectoryListing() argument
140 int rv = DecodeAndParse(text, current_time, entries, &server_type); in ParseFtpDirectoryListing()
Dftp_directory_listing_parser_ls.cc60 const base::Time& current_time, in DetectColumnOffsetSizeAndModificationTime() argument
84 current_time, in DetectColumnOffsetSizeAndModificationTime()
99 current_time, in DetectColumnOffsetSizeAndModificationTime()
127 const base::Time& current_time, in ParseFtpDirectoryListingLs() argument
162 current_time, in ParseFtpDirectoryListingLs()
/external/chromium_org/native_client_sdk/src/gonacl_appengine/src/common/
Dfps.h47 double current_time = getseconds(); in FpsStep() local
51 if (current_time < state->last_time + kFpsUpdateSecs) in FpsStep()
54 *out_fps = state->frame_count / (current_time - state->last_time); in FpsStep()
55 state->last_time = current_time; in FpsStep()
/external/ceres-solver/internal/ceres/
Dwall_time.cc83 const double current_time = WallTimeInSeconds(); in AddEvent() local
84 const double relative_time_delta = current_time - last_event_time_; in AddEvent()
85 const double absolute_time_delta = current_time - start_time_; in AddEvent()
86 last_event_time_ = current_time; in AddEvent()
/external/chromium_org/third_party/webrtc/base/
Dratetracker.cc31 uint32 current_time = Time(); in units_second() local
33 int delta = rtc::TimeDiff(current_time, last_units_second_time_); in units_second()
43 last_units_second_time_ = current_time - fraction_time; in units_second()
48 last_units_second_time_ = current_time; in units_second()
/external/chromium_org/third_party/webrtc/modules/video_coding/main/source/test/
Dstream_generator.cc26 int64_t current_time) in StreamGenerator() argument
30 start_time_(current_time) {} in StreamGenerator()
34 int64_t current_time) { in Init() argument
38 start_time_ = current_time; in Init()
45 int64_t current_time) { in GenerateFrame() argument
46 timestamp_ = 90 * (current_time - start_time_); in GenerateFrame()
Dstream_generator.h33 int64_t current_time);
36 int64_t current_time);
41 int64_t current_time);
/external/chromium_org/net/quic/congestion_control/
Dhybrid_slow_start.cc78 QuicTime current_time = clock_->ApproximateNow(); in ShouldExitSlowStart() local
92 if (current_time.Subtract(last_close_ack_pair_time_).ToMicroseconds() <= in ShouldExitSlowStart()
94 last_close_ack_pair_time_ = current_time; in ShouldExitSlowStart()
95 if (current_time.Subtract(round_start_).ToMicroseconds() >= in ShouldExitSlowStart()
102 last_close_ack_pair_time_ = round_start_ = current_time; in ShouldExitSlowStart()
Dcubic.cc109 QuicTime current_time = clock_->ApproximateNow(); in CongestionWindowAfterAck() local
113 (current_time.Subtract(last_update_time_) <= MaxCubicTimeInterval())) { in CongestionWindowAfterAck()
118 last_update_time_ = current_time; in CongestionWindowAfterAck()
123 epoch_ = current_time; // Start of epoch. in CongestionWindowAfterAck()
141 (current_time.Add(delay_min).Subtract(epoch_).ToMicroseconds() << 10) / in CongestionWindowAfterAck()
/external/qemu/hw/timer/
Di8254.c62 static void pit_irq_timer_update(PITChannelState *s, int64_t current_time);
89 static int pit_get_out1(PITChannelState *s, int64_t current_time) in pit_get_out1() argument
94 d = muldiv64(current_time - s->count_load_time, PIT_FREQ, get_ticks_per_sec()); in pit_get_out1()
120 int pit_get_out(PITState *pit, int channel, int64_t current_time) in pit_get_out() argument
123 return pit_get_out1(s, current_time); in pit_get_out()
128 int64_t current_time) in pit_get_next_transition_time() argument
133 d = muldiv64(current_time - s->count_load_time, PIT_FREQ, get_ticks_per_sec()); in pit_get_next_transition_time()
172 if (next_time <= current_time) in pit_get_next_transition_time()
173 next_time = current_time + 1; in pit_get_next_transition_time()
363 static void pit_irq_timer_update(PITChannelState *s, int64_t current_time) in pit_irq_timer_update() argument
[all …]
/external/chromium_org/net/http/
Dtransport_security_state_unittest.cc74 const base::Time current_time(base::Time::Now()); in TEST_F() local
75 const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); in TEST_F()
86 const base::Time current_time(base::Time::Now()); in TEST_F() local
87 const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); in TEST_F()
98 const base::Time current_time(base::Time::Now()); in TEST_F() local
99 const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); in TEST_F()
110 const base::Time current_time(base::Time::Now()); in TEST_F() local
111 const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); in TEST_F()
127 const base::Time current_time(base::Time::Now()); in TEST_F() local
128 const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); in TEST_F()
[all …]
/external/chromium_org/chrome/common/variations/
Dexperiment_labels.cc29 const base::Time& current_time) { in CreateSingleExperimentLabel() argument
40 label += installer::BuildExperimentDateString(current_time); in CreateSingleExperimentLabel()
51 const base::Time current_time(base::Time::Now()); in BuildGoogleUpdateExperimentLabel() local
66 current_time); in BuildGoogleUpdateExperimentLabel()
/external/ipsec-tools/src/racoon/
Dschedule.c72 static time_t current_time __P((void));
86 now = current_time(); in schedular()
114 now = current_time(); in schedular()
147 new->xtime = current_time() + tick;
180 current_time() in current_time() function

123456