/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/llvm/unittests/Support/ |
TimeValueTest.cpp | 26 sys::TimeValue epoch; local 30 epoch.fromWin32Time(ft1970); 33 EXPECT_EQ(ns / 100, epoch.toPosixTime()); 36 EXPECT_EQ(ft1970, epoch.toWin32Time());
|
/external/chromium_org/ppapi/shared_impl/ |
time_conversion_unittest.cc | 54 // Should be able to round-trip from epoch time. 55 base::Time epoch = base::Time::UnixEpoch(); local 56 base::Time converted = ppapi::PPTimeToTime(TimeToPPTime(epoch)); 58 abs(static_cast<int>((converted - epoch).ToInternalValue()))); 61 base::Time one_second_from_epoch = epoch + base::TimeDelta::FromSeconds(1); 63 ppapi::TimeToPPTime(one_second_from_epoch) - ppapi::TimeToPPTime(epoch); 66 // Epoch time should be equal to a PP_Time of 0.0. 67 EXPECT_GE(kTimeSecondsSlop, fabs(ppapi::TimeToPPTime(epoch) - 0.0)); 70 (ppapi::PPTimeToTime(0.0) - epoch).ToInternalValue())));
|
/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); 103 thr->clock.set(thr->tid, thr->fast_state.epoch()); 112 thr->mset.Add(s->GetId(), true, thr->fast_state.epoch()); 143 thr->clock.set(thr->tid, thr->fast_state.epoch()); 144 thr->fast_synch_epoch = thr->fast_state.epoch(); 169 thr->clock.set(thr->tid, thr->fast_state.epoch()); 173 thr->mset.Add(s->GetId(), false, thr->fast_state.epoch()); 191 thr->clock.set(thr->tid, thr->fast_state.epoch()); 192 thr->fast_synch_epoch = thr->fast_state.epoch(); 212 thr->clock.set(thr->tid, thr->fast_state.epoch()); [all...] |
tsan_rtl.h | 147 // epoch : kClkBits 152 FastState(u64 tid, u64 epoch) { 154 x_ |= epoch << kClkShift; 156 DCHECK_EQ(epoch, this->epoch()); 178 u64 epoch() const { function in class:__tsan::FastState 184 u64 old_epoch = epoch(); 186 DCHECK_EQ(old_epoch + 1, epoch()); 212 return epoch() & mask; 227 // 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(); 119 DPrintf("#%d: ThreadStart epoch=%zu stk_addr=%zx stk_size=%zx " 129 // Can't increment epoch w/o writing to the trace as well. 131 thr->clock.set(thr->tid, thr->fast_state.epoch()); 132 thr->fast_synch_epoch = thr->fast_state.epoch(); 136 epoch1 = thr->fast_state.epoch();
|
tsan_rtl.cc | 81 ThreadState::ThreadState(Context *ctx, int tid, int unique_id, u64 epoch, 84 : fast_state(tid, epoch) 319 unsigned trace = (thr->fast_state.epoch() / kTracePartSize) % TraceParts(); 321 hdr->epoch0 = thr->fast_state.epoch(); 385 return old.epoch() >= thr->fast_synch_epoch; 389 return thr->clock.get(old.TidWithIgnore()) >= old.epoch(); 458 StoreShadow(shadow_mem + (cur.epoch() % kShadowCnt), store_word);
|
tsan_rtl_report.cc | 388 void RestoreStack(int tid, const u64 epoch, StackTrace *stk, MutexSet *mset) { 389 // This function restores stack trace and mutex set for the thread/epoch. 391 // trace part, and then replaying the trace till the given epoch. 404 const int partidx = (epoch / kTracePartSize) % TraceParts(); 406 if (epoch < hdr->epoch0) 408 const u64 epoch0 = RoundDown(epoch, TraceSize()); 409 const u64 eend = epoch % TraceSize(); 411 DPrintf("#%d: RestoreStack epoch=%zu ebegin=%zu eend=%zu partidx=%d\n", 412 tid, (uptr)epoch, (uptr)ebegin, (uptr)eend, partidx); 672 RestoreStack(s2.tid(), s2.epoch(), &traces[1], mset2.data()) [all...] |
/external/chromium_org/net/cookies/ |
cookie_util_unittest.cc | 29 const time_t epoch; member in struct:__anon11018 109 EXPECT_EQ(tests[i].epoch, parsed_time.ToTimeT()) << tests[i].str;
|
/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/chromium_org/third_party/cld/base/ |
vlog_is_on.h | 50 // We pack an int16 verbosity level and an int16 epoch into an 52 // whether the site should log, and the epoch determines whether the 59 // with a stale epoch and a verbosity level of kUseFlag. 91 // comparing its epoch to this global epoch. Whenever the program's 93 // global epoch is advanced, invalidating all site epochs. 99 // Log sites use FLAGS_v by default, and have an initial epoch of 0. 102 // The global epoch is the least significant half of an Atomic32, and 108 // The least significant half of a site is the epoch. 114 // Construct a logging site from a logging level and epoch [all...] |
/external/chromium_org/third_party/openssl/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 */
|
/external/chromium_org/third_party/openssl/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 */
|
/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 */
|
/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 */
|
/external/chromium_org/v8/src/ |
optimizing-compiler-thread.cc | 51 int64_t epoch = 0; local 52 if (FLAG_trace_parallel_recompilation) epoch = OS::Ticks(); 68 time_spent_total_ = OS::Ticks() - epoch;
|
/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
|
/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/chromium_org/net/third_party/nss/ssl/ |
dtlscon.c | 103 dtls_AllocQueuedMessage(PRUint16 epoch, SSL3ContentType type, 120 msg->epoch = epoch; 461 msg = dtls_AllocQueuedMessage(ss->ssl3.cwSpec->epoch, type, pIn, nIn); 620 sent = ssl3_SendRecord(ss, msg->epoch, msg->type, 697 sent = ssl3_SendRecord(ss, msg->epoch, msg->type, 761 * the epoch using epoch value. If use_epoch is PR_TRUE then 762 * we use the provided epoch. If use_epoch is PR_FALSE then 769 DTLSEpoch epoch, [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/api/browsingData/basic/ |
popup.js | 52 * Given a string, return milliseconds since epoch. If the string isn't 57 * @returns {number} Milliseconds since epoch.
|