Lines Matching refs:before_
37 before_ = &dst_[0]; in ResetDateCache()
202 after_ = LeastRecentlyUsedDST(before_); in ExtendTheAfterSegment()
228 if (before_->start_sec <= time_sec && in DaylightSavingsOffsetInMs()
229 time_sec <= before_->end_sec) { in DaylightSavingsOffsetInMs()
231 before_->last_used = ++dst_usage_counter_; in DaylightSavingsOffsetInMs()
232 return before_->offset_ms; in DaylightSavingsOffsetInMs()
237 DCHECK(InvalidSegment(before_) || before_->start_sec <= time_sec); in DaylightSavingsOffsetInMs()
240 if (InvalidSegment(before_)) { in DaylightSavingsOffsetInMs()
242 before_->start_sec = time_sec; in DaylightSavingsOffsetInMs()
243 before_->end_sec = time_sec; in DaylightSavingsOffsetInMs()
244 before_->offset_ms = GetDaylightSavingsOffsetFromOS(time_sec); in DaylightSavingsOffsetInMs()
245 before_->last_used = ++dst_usage_counter_; in DaylightSavingsOffsetInMs()
246 return before_->offset_ms; in DaylightSavingsOffsetInMs()
249 if (time_sec <= before_->end_sec) { in DaylightSavingsOffsetInMs()
251 before_->last_used = ++dst_usage_counter_; in DaylightSavingsOffsetInMs()
252 return before_->offset_ms; in DaylightSavingsOffsetInMs()
255 if (time_sec > before_->end_sec + kDefaultDSTDeltaInSec) { in DaylightSavingsOffsetInMs()
261 DST* temp = before_; in DaylightSavingsOffsetInMs()
262 before_ = after_; in DaylightSavingsOffsetInMs()
270 before_->last_used = ++dst_usage_counter_; in DaylightSavingsOffsetInMs()
274 if (before_->end_sec + kDefaultDSTDeltaInSec <= after_->start_sec) { in DaylightSavingsOffsetInMs()
275 int new_after_start_sec = before_->end_sec + kDefaultDSTDeltaInSec; in DaylightSavingsOffsetInMs()
287 if (before_->offset_ms == after_->offset_ms) { in DaylightSavingsOffsetInMs()
289 before_->end_sec = after_->end_sec; in DaylightSavingsOffsetInMs()
291 return before_->offset_ms; in DaylightSavingsOffsetInMs()
297 int delta = after_->start_sec - before_->end_sec; in DaylightSavingsOffsetInMs()
298 int middle_sec = (i == 0) ? time_sec : before_->end_sec + delta / 2; in DaylightSavingsOffsetInMs()
300 if (before_->offset_ms == offset_ms) { in DaylightSavingsOffsetInMs()
301 before_->end_sec = middle_sec; in DaylightSavingsOffsetInMs()
302 if (time_sec <= before_->end_sec) { in DaylightSavingsOffsetInMs()
310 DST* temp = before_; in DaylightSavingsOffsetInMs()
311 before_ = after_; in DaylightSavingsOffsetInMs()
325 DCHECK(before_ != after_); in ProbeDST()
342 before = InvalidSegment(before_) ? before_ : LeastRecentlyUsedDST(after); in ProbeDST()
357 before_ = before; in ProbeDST()