HomeSort by relevance Sort by last modified time
    Searched refs:epoch (Results 1 - 25 of 31) sorted by null

1 2

  /bionic/tests/
time_test.cpp 26 struct tm epoch; local
27 memset(&epoch, 0, sizeof(tm));
28 epoch.tm_year = 1970 - 1900;
29 epoch.tm_mon = 1;
30 epoch.tm_mday = 1;
33 ASSERT_EQ(2678400, mktime_tz(&epoch, "Africa/Abidjan"));
36 ASSERT_EQ(2678400, mktime_tz(&epoch, "Zulu"));
39 ASSERT_EQ(2707200, mktime_tz(&epoch, "America/Los_Angeles"));
42 ASSERT_EQ(2678400, mktime_tz(&epoch, "PST"));
  /external/compiler-rt/lib/tsan/rtl/
tsan_mutexset.cc 25 void MutexSet::Add(u64 id, bool write, u64 epoch) {
30 descs_[i].epoch = epoch;
39 if (descs_[i].epoch < minepoch) {
40 minepoch = descs_[i].epoch;
50 descs_[size_].epoch = epoch;
tsan_mutexset.h 28 u64 epoch; member in struct:__tsan::MutexSet::Desc
35 void Add(u64 id, bool write, u64 epoch);
55 void MutexSet::Add(u64 id, bool write, u64 epoch) {}
tsan_rtl_mutex.cc 73 RestoreStack(last.tid(), last.epoch(), &trace, 0);
102 thr->clock.set(thr->tid, thr->fast_state.epoch());
111 thr->mset.Add(s->GetId(), true, thr->fast_state.epoch());
140 thr->clock.set(thr->tid, thr->fast_state.epoch());
141 thr->fast_synch_epoch = thr->fast_state.epoch();
165 thr->clock.set(thr->tid, thr->fast_state.epoch());
169 thr->mset.Add(s->GetId(), false, thr->fast_state.epoch());
187 thr->clock.set(thr->tid, thr->fast_state.epoch());
188 thr->fast_synch_epoch = thr->fast_state.epoch();
208 thr->clock.set(thr->tid, thr->fast_state.epoch());
    [all...]
tsan_rtl.h 143 // epoch : kClkBits
148 FastState(u64 tid, u64 epoch) {
150 x_ |= epoch << kClkShift;
152 DCHECK_EQ(epoch, this->epoch());
174 u64 epoch() const { function in class:__tsan::FastState
180 u64 old_epoch = epoch();
182 DCHECK_EQ(old_epoch + 1, epoch());
208 return epoch() & mask;
223 // epoch : kClkBit
    [all...]
tsan_rtl_thread.cc 60 // Can't increment epoch w/o writing to the trace as well.
62 args->thr->clock.set(args->thr->tid, args->thr->fast_state.epoch());
63 args->thr->fast_synch_epoch = args->thr->fast_state.epoch();
118 DPrintf("#%d: ThreadStart epoch=%zu stk_addr=%zx stk_size=%zx "
128 // Can't increment epoch w/o writing to the trace as well.
130 thr->clock.set(thr->tid, thr->fast_state.epoch());
131 thr->fast_synch_epoch = thr->fast_state.epoch();
143 epoch1 = thr->fast_state.epoch();
tsan_rtl.cc 78 ThreadState::ThreadState(Context *ctx, int tid, int unique_id, u64 epoch,
81 : fast_state(tid, epoch)
289 unsigned trace = (thr->fast_state.epoch() / kTracePartSize) % TraceParts();
291 hdr->epoch0 = thr->fast_state.epoch();
351 return old.epoch() >= thr->fast_synch_epoch;
355 return thr->clock.get(old.TidWithIgnore()) >= old.epoch();
424 StoreShadow(shadow_mem + (cur.epoch() % kShadowCnt), store_word);
tsan_rtl_report.cc 372 void RestoreStack(int tid, const u64 epoch, StackTrace *stk, MutexSet *mset) {
373 // This function restores stack trace and mutex set for the thread/epoch.
375 // trace part, and then replaying the trace till the given epoch.
395 const int partidx = (epoch / kTracePartSize) % TraceParts();
397 if (epoch < hdr->epoch0)
399 const u64 epoch0 = RoundDown(epoch, TraceSize());
400 const u64 eend = epoch % TraceSize();
402 DPrintf("#%d: RestoreStack epoch=%zu ebegin=%zu eend=%zu partidx=%d\n",
403 tid, (uptr)epoch, (uptr)ebegin, (uptr)eend, partidx);
635 RestoreStack(s2.tid(), s2.epoch(), &traces[1], mset2.data())
    [all...]
tsan_interface_atomic.cc 257 thr->clock.set(thr->tid, thr->fast_state.epoch());
281 thr->clock.set(thr->tid, thr->fast_state.epoch());
294 thr->clock.set(thr->tid, thr->fast_state.epoch());
354 thr->clock.set(thr->tid, thr->fast_state.epoch());
  /external/compiler-rt/lib/tsan/tests/unit/
tsan_shadow_test.cc 22 EXPECT_EQ(s.epoch(), (u64)22);
31 EXPECT_EQ(s.epoch(), (u64)23);
33 EXPECT_EQ(s.epoch(), (u64)24);
tsan_mutexset_test.cc 18 static void Expect(const MutexSet &mset, uptr i, u64 id, bool write, u64 epoch,
23 EXPECT_EQ(epoch, d.epoch);
  /external/openssl/include/openssl/
dtls1.h 137 unsigned short epoch; member in struct:dtls1_retransmit_state
171 unsigned short epoch; member in struct:record_pqueue_st
190 * The current data and handshake epoch. This is initially
197 /* records being received in the current epoch */
ssl3.h 356 /*r */ unsigned long epoch; /* epoch number, needed by DTLS1 */ member in struct:ssl3_record_st
  /external/openssl/ssl/
dtls1.h 137 unsigned short epoch; member in struct:dtls1_retransmit_state
171 unsigned short epoch; member in struct:record_pqueue_st
190 * The current data and handshake epoch. This is initially
197 /* records being received in the current epoch */
d1_both.c     [all...]
d1_pkt.c 287 /* retrieve a buffered record that belongs to the new epoch, i.e., not processed
293 /* retrieve a buffered record that belongs to the current epoch, ie, processed */
306 /* Check if epoch is current. */
307 if (s->d1->unprocessed_rcds.epoch != s->d1->r_epoch)
321 /* sync epoch numbers once all the unprocessed records
323 s->d1->processed_rcds.epoch = s->d1->r_epoch;
324 s->d1->unprocessed_rcds.epoch = s->d1->r_epoch + 1;
563 /* The epoch may have changed. If so, process all the
598 /* sequence number is 64 bits, with top 2 bytes = epoch */
599 n2s(p,rr->epoch);
    [all...]
ssl3.h 356 /*r */ unsigned long epoch; /* epoch number, needed by DTLS1 */ member in struct:ssl3_record_st
  /external/libogg/
libogg.spec 13 # We're forced to use an epoch since both Red Hat and Ximian use it in their
15 Epoch: 2
18 Provides: %{name} = %{epoch}:1.0rc3-%{release}
19 Provides: %{name} = %{epoch}:1.0beta4-%{release}
31 Provides: %{name}-devel = %{epoch}:1.0rc3-%{release}
32 Provides: %{name}-devel = %{epoch}:1.0beta4-%{release}
  /external/libvorbis/
libvorbis.spec 13 # We're forced to use an epoch since both Red Hat and Ximian use it in their
15 Epoch: 2
18 Provides: %{name} = %{epoch}:1.0rc3-%{release}
19 Provides: %{name} = %{epoch}:1.0beta4-%{release}
36 Provides: %{name}-devel = %{epoch}:1.0rc3-%{release}
37 Provides: %{name}-devel = %{epoch}:1.0beta4-%{release}
  /external/tcpdump/
rx.h 60 u_int32_t epoch; member in struct:rx_header
print-rx.c 718 #define UBIK_VERSIONOUT() {int32_t epoch; int32_t counter; \
720 epoch = EXTRACT_32BITS(bp); \
724 printf(" %d.%d", epoch, counter); \
    [all...]
  /libcore/luni/src/test/java/libcore/java/text/
SimpleDateFormatTest.java 237 Date epoch = new Date(0); local
243 assertEquals("1969-12-31 18:00:00 -0600", sdf.format(epoch));
246 assertEquals("1969-12-31 16:00:00 -0800", sdf.format(epoch));
248 assertEquals("1970-01-01 00:00:00 +0000", sdf.format(epoch));
255 assertEquals("1969-12-31 18:00:00 -0600", sdf.format(epoch));
258 assertEquals("1969-12-31 16:00:00 -0800", sdf.format(epoch));
260 assertEquals("1970-01-01 00:00:00 +0000", sdf.format(epoch));
  /external/v8/test/mjsunit/
date.js 45 // Test limits (+/-1e8 days from epoch)
206 // Check epoch.
  /external/icu4c/i18n/
astro.cpp 525 // Parameters of the Sun's orbit as of the epoch Jan 0.0 1990
528 #define JD_EPOCH 2447891.5 // Julian day of epoch
530 #define SUN_ETA_G (279.403303 * CalendarAstronomer::PI/180) // Ecliptic longitude at epoch
537 // given above for an arbitrary epoch (whatever time the object is
566 // // constant he gives for the 1990 EPOCH.
641 double day = jDay - JD_EPOCH; // Days since epoch
644 // circular orbit has travelled since the epoch.
647 // The epoch wasn't at the sun's perigee; find the angular distance
914 // // Compute day number for 0.0 Jan 2000 epoch
1416 const double epoch = 2451545.0; \/\/ 2000 AD, January 1.5 local
    [all...]
  /external/icu4c/test/intltest/
dtfmrgts.cpp 532 UDate epoch = date(0, 0, 0); local
536 calA->setTime(epoch, status);
538 calB->setTime(epoch, status);
    [all...]

Completed in 803 milliseconds

1 2