Home
last modified time | relevance | path

Searched refs:timecnt (Results 1 – 19 of 19) sorted by relevance

/external/icu/icu4c/source/tools/tzcode/
Dlocaltime.c103 int timecnt; member
277 for (i = 0; i < sp->timecnt; ++i) { in settzname()
392 int timecnt; in tzload() local
397 sp->timecnt = (int) detzcode(up->tzhead.tzh_timecnt); in tzload()
403 sp->timecnt < 0 || sp->timecnt > TZ_MAX_TIMES || in tzload()
409 sp->timecnt * stored + /* ats */ in tzload()
410 sp->timecnt + /* types */ in tzload()
417 timecnt = 0; in tzload()
418 for (i = 0; i < sp->timecnt; ++i) { in tzload()
426 if (i && !timecnt && at != time_t_min) { in tzload()
[all …]
Dzic.c202 static int timecnt; variable
1608 zic_t *ats = emalloc(size_product(timecnt, sizeof *ats + 1)); in writezone()
1609 void *typesptr = ats + timecnt; in writezone()
1615 if (timecnt > 1) in writezone()
1616 (void) qsort(attypes, timecnt, sizeof *attypes, atcomp); in writezone()
1626 while (fromi < timecnt && attypes[fromi].at < min_time) in writezone()
1632 while (fromi < timecnt && attypes[fromi].type == 1) in writezone()
1634 for ( ; fromi < timecnt; ++fromi) { in writezone()
1647 timecnt = toi; in writezone()
1652 for (i = 0; i < timecnt; ++i) { in writezone()
[all …]
Dtz2icu.cpp324 int64_t timecnt = readcoded(file, 0); in readzoneinfo() local
338 vector<int64_t> transitionTimes(timecnt, -1); // temporary in readzoneinfo()
339 vector<int32_t> transitionTypes(timecnt, -1); // temporary in readzoneinfo()
342 for (i=0; i<timecnt; ++i) { in readzoneinfo()
351 for (i=0; i<timecnt; ++i) { in readzoneinfo()
366 if (timecnt > 0) { in readzoneinfo()
368 for (i=0; i<timecnt; ++i) { in readzoneinfo()
395 for (i=0; i<timecnt; ++i) { in readzoneinfo()
422 assert(timecnt > 0); in readzoneinfo()
/external/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_info.cc235 timecnt = static_cast<std::size_t>(v); in Build()
253 len += (time_len + 1) * timecnt; // unix_time + type_index in DataLength()
308 if (hdr.timecnt != 0) index = transitions_[hdr.timecnt - 1].type_index; in ExtendTransitions()
314 if (extending && hdr.timecnt < 2) { in ExtendTransitions()
340 transitions_.reserve(hdr.timecnt + 400 * 2 + 1); in ExtendTransitions()
341 transitions_.resize(hdr.timecnt + 400 * 2); in ExtendTransitions()
349 const Transition* tr0 = &transitions_[hdr.timecnt - 1]; in ExtendTransitions()
350 const Transition* tr1 = &transitions_[hdr.timecnt - 2]; in ExtendTransitions()
364 Transition* tr = &transitions_[hdr.timecnt]; // next trans to fill in ExtendTransitions()
368 assert(tr == &transitions_[hdr.timecnt]); // no reallocation in ExtendTransitions()
[all …]
Dtime_zone_info.h87 std::size_t timecnt; // transition times member
/external/webrtc/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_info.cc235 timecnt = static_cast<std::size_t>(v); in Build()
253 len += (time_len + 1) * timecnt; // unix_time + type_index in DataLength()
308 if (hdr.timecnt != 0) index = transitions_[hdr.timecnt - 1].type_index; in ExtendTransitions()
314 if (extending && hdr.timecnt < 2) { in ExtendTransitions()
340 transitions_.reserve(hdr.timecnt + 400 * 2 + 1); in ExtendTransitions()
341 transitions_.resize(hdr.timecnt + 400 * 2); in ExtendTransitions()
349 const Transition* tr0 = &transitions_[hdr.timecnt - 1]; in ExtendTransitions()
350 const Transition* tr1 = &transitions_[hdr.timecnt - 2]; in ExtendTransitions()
364 Transition* tr = &transitions_[hdr.timecnt]; // next trans to fill in ExtendTransitions()
368 assert(tr == &transitions_[hdr.timecnt]); // no reallocation in ExtendTransitions()
[all …]
Dtime_zone_info.h87 std::size_t timecnt; // transition times member
/external/libbrillo/brillo/timezone/
Dtzif_parser.cc28 int32_t timecnt; member
84 if (!ReadInt(tzfile, &header->timecnt) || header->timecnt < 0) { in ParseTzifHeader()
133 4 * first_header.timecnt + 1 * first_header.timecnt + in GetPosixTimezone()
145 8 * second_header.timecnt + 1 * second_header.timecnt + in GetPosixTimezone()
/external/python/cpython3/Lib/zoneinfo/
D_common.py41 header.timecnt * 5 # Transition times and types
56 timecnt = header.timecnt
60 if timecnt:
62 f">{timecnt}{time_type}", fobj.read(timecnt * time_size)
64 trans_idx = struct.unpack(f">{timecnt}B", fobj.read(timecnt))
/external/libtextclassifier/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_info.cc254 timecnt = static_cast<std::size_t>(v); in Build()
272 len += (time_len + 1) * timecnt; // unix_time + type_index in DataLength()
428 transitions_.reserve(hdr.timecnt + 2); in Load()
429 transitions_.resize(hdr.timecnt); in Load()
430 for (std::size_t i = 0; i != hdr.timecnt; ++i) { in Load()
440 for (std::size_t i = 0; i != hdr.timecnt; ++i) { in Load()
463 if (seen_type_0 && hdr.timecnt != 0) { in Load()
515 while (hdr.timecnt > 1) { in Load()
516 if (!EquivTransitions(transitions_[hdr.timecnt - 1].type_index, in Load()
517 transitions_[hdr.timecnt - 2].type_index)) { in Load()
[all …]
Dtime_zone_info.h87 std::size_t timecnt; // transition times member
/external/angle/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_info.cc254 timecnt = static_cast<std::size_t>(v); in Build()
272 len += (time_len + 1) * timecnt; // unix_time + type_index in DataLength()
428 transitions_.reserve(hdr.timecnt + 2); in Load()
429 transitions_.resize(hdr.timecnt); in Load()
430 for (std::size_t i = 0; i != hdr.timecnt; ++i) { in Load()
440 for (std::size_t i = 0; i != hdr.timecnt; ++i) { in Load()
463 if (seen_type_0 && hdr.timecnt != 0) { in Load()
515 while (hdr.timecnt > 1) { in Load()
516 if (!EquivTransitions(transitions_[hdr.timecnt - 1].type_index, in Load()
517 transitions_[hdr.timecnt - 2].type_index)) { in Load()
[all …]
Dtime_zone_info.h87 std::size_t timecnt; // transition times member
/external/openscreen/third_party/abseil/src/absl/time/internal/cctz/src/
Dtime_zone_info.cc254 timecnt = static_cast<std::size_t>(v); in Build()
272 len += (time_len + 1) * timecnt; // unix_time + type_index in DataLength()
428 transitions_.reserve(hdr.timecnt + 2); in Load()
429 transitions_.resize(hdr.timecnt); in Load()
430 for (std::size_t i = 0; i != hdr.timecnt; ++i) { in Load()
440 for (std::size_t i = 0; i != hdr.timecnt; ++i) { in Load()
463 if (seen_type_0 && hdr.timecnt != 0) { in Load()
515 while (hdr.timecnt > 1) { in Load()
516 if (!EquivTransitions(transitions_[hdr.timecnt - 1].type_index, in Load()
517 transitions_[hdr.timecnt - 2].type_index)) { in Load()
[all …]
Dtime_zone_info.h87 std::size_t timecnt; // transition times member
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_info.cc254 timecnt = static_cast<std::size_t>(v); in Build()
272 len += (time_len + 1) * timecnt; // unix_time + type_index in DataLength()
428 transitions_.reserve(hdr.timecnt + 2); in Load()
429 transitions_.resize(hdr.timecnt); in Load()
430 for (std::size_t i = 0; i != hdr.timecnt; ++i) { in Load()
440 for (std::size_t i = 0; i != hdr.timecnt; ++i) { in Load()
463 if (seen_type_0 && hdr.timecnt != 0) { in Load()
515 while (hdr.timecnt > 1) { in Load()
516 if (!EquivTransitions(transitions_[hdr.timecnt - 1].type_index, in Load()
517 transitions_[hdr.timecnt - 2].type_index)) { in Load()
[all …]
Dtime_zone_info.h87 std::size_t timecnt; // transition times member
/external/python/dateutil/dateutil/tz/
Dtz.py512 timecnt,
531 if timecnt:
532 out.trans_list_utc = list(struct.unpack(">%dl" % timecnt,
533 fileobj.read(timecnt*4)))
544 if timecnt:
545 out.trans_idx = struct.unpack(">%dB" % timecnt,
546 fileobj.read(timecnt))
634 for i in range(timecnt-1, -1, -1):
/external/python/cpython3/Lib/test/test_zoneinfo/
Dtest_zoneinfo.py863 timecnt = len(trans_times)
872 ">6l", isutcnt, isstdcnt, leapcnt, timecnt, typecnt, charcnt
1877 isutcnt, isstdcnt, leapcnt, timecnt, typecnt, charcnt = struct.unpack(
1882 timecnt * 5