/external/v8/src/ |
D | date.h | 53 static int DaysFromTime(int64_t time_ms) { in DaysFromTime() argument 54 if (time_ms < 0) time_ms -= (kMsPerDay - 1); in DaysFromTime() 55 return static_cast<int>(time_ms / kMsPerDay); in DaysFromTime() 61 static int TimeInDay(int64_t time_ms, int days) { in TimeInDay() argument 62 return static_cast<int>(time_ms - days * kMsPerDay); in TimeInDay() 86 const char* LocalTimezone(int64_t time_ms) { in LocalTimezone() argument 87 if (time_ms < 0 || time_ms > kMaxEpochTimeInMs) { in LocalTimezone() 88 time_ms = EquivalentTime(time_ms); in LocalTimezone() 90 bool is_dst = DaylightSavingsOffsetInMs(time_ms) != 0; in LocalTimezone() 93 *name = tz_cache_->LocalTimezone(static_cast<double>(time_ms)); in LocalTimezone() [all …]
|
D | date.cc | 210 void DateCache::BreakDownTime(int64_t time_ms, int* year, int* month, int* day, in BreakDownTime() argument 213 int const days = DaysFromTime(time_ms); in BreakDownTime() 214 int const time_in_day_ms = TimeInDay(time_ms, days); in BreakDownTime() 225 int DateCache::GetLocalOffsetFromOS(int64_t time_ms, bool is_utc) { in GetLocalOffsetFromOS() argument 229 offset = tz_cache_->LocalTimeOffset(static_cast<double>(time_ms), is_utc); in GetLocalOffsetFromOS() 273 tz_cache_->LocalTimeOffset(static_cast<double>(time_ms), is_utc); in GetLocalOffsetFromOS() 278 time_ms -= (offset + kMsPerHour); in GetLocalOffsetFromOS() 280 offset += DaylightSavingsOffsetInMs(time_ms); in GetLocalOffsetFromOS() 308 int DateCache::DaylightSavingsOffsetInMs(int64_t time_ms) { in DaylightSavingsOffsetInMs() argument 309 int time_sec = (time_ms >= 0 && time_ms <= kMaxEpochTimeInMs) in DaylightSavingsOffsetInMs() [all …]
|
D | intl.h | 59 const char* LocalTimezone(double time_ms) override; 61 double DaylightSavingsOffset(double time_ms) override; 63 double LocalTimeOffset(double time_ms, bool is_utc) override; 70 bool GetOffsets(double time_ms, bool is_utc, int32_t* raw_offset,
|
D | intl.cc | 353 const char* ICUTimezoneCache::LocalTimezone(double time_ms) { in LocalTimezone() argument 354 bool is_dst = DaylightSavingsOffset(time_ms) != 0; in LocalTimezone() 375 bool ICUTimezoneCache::GetOffsets(double time_ms, bool is_utc, in GetOffsets() argument 389 GetTimeZone()->getOffset(time_ms, false, *raw_offset, *dst_offset, status); in GetOffsets() 392 ->getOffsetFromLocal(time_ms, icu::BasicTimeZone::kFormer, in GetOffsets() 400 double ICUTimezoneCache::DaylightSavingsOffset(double time_ms) { in DaylightSavingsOffset() argument 402 if (!GetOffsets(time_ms, true, &raw_offset, &dst_offset)) return 0; in DaylightSavingsOffset() 406 double ICUTimezoneCache::LocalTimeOffset(double time_ms, bool is_utc) { in LocalTimeOffset() argument 408 if (!GetOffsets(time_ms, is_utc, &raw_offset, &dst_offset)) return 0; in LocalTimeOffset()
|
/external/webrtc/webrtc/modules/bitrate_controller/ |
D | bitrate_controller_unittest.cc | 105 int64_t time_ms = 1001; in TEST_F() local 112 bandwidth_observer_->OnReceivedRtcpReceiverReport(report_blocks, 50, time_ms); in TEST_F() 114 time_ms += 2000; in TEST_F() 121 bandwidth_observer_->OnReceivedRtcpReceiverReport(report_blocks, 50, time_ms); in TEST_F() 125 time_ms += 1000; in TEST_F() 129 bandwidth_observer_->OnReceivedRtcpReceiverReport(report_blocks, 50, time_ms); in TEST_F() 133 time_ms += 1000; in TEST_F() 137 bandwidth_observer_->OnReceivedRtcpReceiverReport(report_blocks, 50, time_ms); in TEST_F() 139 time_ms += 1000; in TEST_F() 143 bandwidth_observer_->OnReceivedRtcpReceiverReport(report_blocks, 50, time_ms); in TEST_F() [all …]
|
/external/webrtc/webrtc/modules/audio_processing/transient/ |
D | transient_suppressor_unittest.cc | 30 for (int time_ms = 0; time_ms < 3990; time_ms += ts::kChunkSizeMs) { in TEST() local 44 for (int time_ms = 0; time_ms < 990; time_ms += ts::kChunkSizeMs) { in TEST() local 61 for (int time_ms = 0; time_ms < 1000; time_ms += ts::kChunkSizeMs) { in TEST() local 73 for (int time_ms = 0; time_ms < 3990; time_ms += ts::kChunkSizeMs) { in TEST() local 78 for (int time_ms = 0; time_ms < 1000; time_ms += ts::kChunkSizeMs) { in TEST() local
|
/external/v8/src/heap/ |
D | memory-reducer.cc | 39 double time_ms = heap->MonotonicallyIncreasingTimeInMs(); in RunInternal() local 40 heap->tracer()->SampleAllocation(time_ms, heap->NewSpaceAllocationCounter(), in RunInternal() 51 event.time_ms = time_ms; in RunInternal() 95 ScheduleTimer(state_.next_gc_start_ms - event.time_ms); in NotifyTimer() 99 state_.next_gc_start_ms - event.time_ms); in NotifyTimer() 111 ScheduleTimer(state_.next_gc_start_ms - event.time_ms); in NotifyMarkCompact() 128 ScheduleTimer(state_.next_gc_start_ms - event.time_ms); in NotifyPossibleGarbage() 135 event.time_ms > state.last_gc_time_ms + kWatchdogDelayMs; in WatchdogGC() 156 return State(kWait, 0, event.time_ms + kLongDelayMs, in Step() 157 event.type == kMarkCompact ? event.time_ms in Step() [all …]
|
/external/tensorflow/tensorflow/lite/experimental/micro/tools/make/targets/ecm3531/ |
D | _main.c | 55 uint64_t time_ms; in _main() local 65 time_ms = EtaCspTimerCountGetMs(); // read time in _main() 66 EtaPrintExecutionTime(time_ms); // print execution time in _main() 69 void EtaPrintExecutionTime(uint64_t time_ms) { in EtaPrintExecutionTime() argument 75 if (time_ms < 100000) // Convert time to a string in EtaPrintExecutionTime() 78 c = time_ms % 10; in EtaPrintExecutionTime() 79 time_ms = time_ms / 10; in EtaPrintExecutionTime()
|
/external/v8/src/builtins/ |
D | builtins-date.cc | 145 int64_t time_ms = static_cast<int64_t>(time_val); in ToDateString() local 146 int64_t local_time_ms = date_cache->ToLocal(time_ms); in ToDateString() 150 int timezone_offset = -date_cache->TimezoneOffset(time_ms); in ToDateString() 153 const char* local_timezone = date_cache->LocalTimezone(time_ms); in ToDateString() 363 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN() local 364 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN() 385 int64_t const time_ms = static_cast<int64_t>(date->value()->Number()); in BUILTIN() local 386 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN() 421 int64_t const time_ms = static_cast<int64_t>(time_val); in BUILTIN() local 422 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN() [all …]
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/ |
D | packet_sender.cc | 97 void VideoSender::RunFor(int64_t time_ms, Packets* in_out) { in RunFor() argument 99 in_out, clock_.TimeInMilliseconds() + time_ms, source_->flow_id()); in RunFor() 100 ProcessFeedbackAndGeneratePackets(time_ms, &feedbacks, in_out); in RunFor() 104 int64_t time_ms, in ProcessFeedbackAndGeneratePackets() argument 109 int64_t time_to_run_ms = std::min<int64_t>(time_ms, 100); in ProcessFeedbackAndGeneratePackets() 114 std::max<int64_t>(std::min(time_ms, time_until_feedback_ms), 0); in ProcessFeedbackAndGeneratePackets() 136 time_ms -= time_to_run_ms; in ProcessFeedbackAndGeneratePackets() 137 } while (time_ms > 0); in ProcessFeedbackAndGeneratePackets() 176 void PacedVideoSender::RunFor(int64_t time_ms, Packets* in_out) { in RunFor() argument 177 int64_t end_time_ms = clock_.TimeInMilliseconds() + time_ms; in RunFor() [all …]
|
D | packet_sender.h | 74 void RunFor(int64_t time_ms, Packets* in_out) override; 89 void ProcessFeedbackAndGeneratePackets(int64_t time_ms, 110 void RunFor(int64_t time_ms, Packets* in_out) override; 145 void RunFor(int64_t time_ms, Packets* in_out) override; 155 time_ms(packet.send_time_ms()) {} in InFlight() 158 : sequence_number(seq_num), time_ms(now_ms) {} in InFlight() 166 int64_t time_ms; // Time of when the packet left the sender, or when the member
|
D | bwe_test_baselinefile.cc | 67 virtual void Estimate(int64_t time_ms, uint32_t estimate_bps) { in Estimate() argument 71 if (reader_->Read(&read_ms) && read_ms == time_ms && in Estimate() 75 static_cast<uint32_t>(time_ms), estimate_bps, read_bps); in Estimate() 112 virtual void Estimate(int64_t time_ms, uint32_t estimate_bps) { in Estimate() argument 113 verifier_->Estimate(time_ms, estimate_bps); in Estimate() 114 output_content_.push_back(static_cast<uint32_t>(time_ms)); in Estimate()
|
D | metric_recorder.h | 49 time_ms(0), in PlotInformation() 54 time_ms = now_ms; in Update() 60 int64_t time_ms; member 79 int64_t time_ms, 85 void UpdateTimeMs(int64_t time_ms);
|
D | bwe_test_framework.h | 210 virtual void RunFor(int64_t time_ms, Packets* in_out) = 0; 247 virtual void RunFor(int64_t time_ms, Packets* in_out); 267 virtual void RunFor(int64_t time_ms, Packets* in_out); 283 virtual void RunFor(int64_t time_ms, Packets* in_out); 299 virtual void RunFor(int64_t time_ms, Packets* in_out); 320 virtual void RunFor(int64_t time_ms, Packets* in_out); 341 virtual void RunFor(int64_t time_ms, Packets* in_out); 368 virtual void RunFor(int64_t time_ms, Packets* in_out); 400 virtual void RunFor(int64_t time_ms, Packets* in_out);
|
D | metric_recorder.cc | 136 plot_information_[metric].time_ms, in PlotDynamics() 145 int64_t time_ms, in PlotLine() argument 147 BWE_TEST_LOGGING_PLOT_WITH_NAME(windows_id, prefix, time_ms, in PlotLine() 151 void MetricRecorder::UpdateTimeMs(int64_t time_ms) { in UpdateTimeMs() argument 152 now_ms_ = std::max(now_ms_, time_ms); in UpdateTimeMs() 230 (arrival_time_ms - plot_information_[kThroughput].time_ms)) / in PushThroughputBytes() 238 (arrival_time_ms - plot_information_[kThroughput].time_ms)) / in PushThroughputBytes()
|
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/ |
D | packet.cc | 23 double time_ms, in Packet() argument 31 time_ms_(time_ms) { in Packet() 38 double time_ms, in Packet() argument 46 time_ms_(time_ms) { in Packet() 50 Packet::Packet(uint8_t* packet_memory, size_t allocated_bytes, double time_ms) in Packet() argument 57 time_ms_(time_ms) { in Packet() 65 double time_ms) in Packet() argument 72 time_ms_(time_ms) { in Packet()
|
D | packet.h | 39 double time_ms, 51 double time_ms, 58 Packet(uint8_t* packet_memory, size_t allocated_bytes, double time_ms); 63 double time_ms); 98 double time_ms() const { return time_ms_; } in time_ms() function
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/tools/ |
D | bwe_rtp_play.cc | 66 first_rtp_time_ms = packet.time_ms; in main() 67 packet.time_ms = packet.time_ms - first_rtp_time_ms; in main() 91 packet.time_ms = packet.time_ms - first_rtp_time_ms; in main() 92 next_rtp_time_ms = packet.time_ms; in main()
|
/external/perf_data_converter/src/quipper/ |
D | perf_stat_parser.cc | 31 uint64_t time_ms = 0; in ParsePerfStatOutputToProto() local 57 !SecondsStringToMillisecondsUint64(first_token, &time_ms)) { in ParsePerfStatOutputToProto() 58 time_ms = 0; in ParsePerfStatOutputToProto() 61 if (time_ms != 0) { in ParsePerfStatOutputToProto() 63 proto->mutable_line(i)->set_time_ms(time_ms); in ParsePerfStatOutputToProto()
|
D | perf_recorder_test.cc | 116 EXPECT_GE(stat.line(0).time_ms(), 200); in TEST_F() 153 EXPECT_GE(stat.line(0).time_ms(), 200); in TEST_F() 159 EXPECT_GE(stat.line(1).time_ms(), 200); in TEST_F() 165 EXPECT_GE(stat.line(2).time_ms(), 200); in TEST_F() 171 EXPECT_GE(stat.line(3).time_ms(), 200); in TEST_F()
|
D | perf_stat_parser_test.cc | 101 EXPECT_EQ(2001, line1.time_ms()); in TEST() 106 EXPECT_EQ(2001, line2.time_ms()); in TEST() 111 EXPECT_EQ(2001, line3.time_ms()); in TEST() 116 EXPECT_EQ(2001, line4.time_ms()); in TEST()
|
/external/v8/src/base/platform/ |
D | platform-aix.cc | 42 double LocalTimeOffset(double time_ms, bool is_utc) override; 47 const char* AIXTimezoneCache::LocalTimezone(double time_ms) { in LocalTimezone() argument 48 if (std::isnan(time_ms)) return ""; in LocalTimezone() 49 time_t tv = static_cast<time_t>(floor(time_ms / msPerSecond)); in LocalTimezone() 56 double AIXTimezoneCache::LocalTimeOffset(double time_ms, bool is_utc) { in LocalTimeOffset() argument
|
/external/u-boot/arch/arm/cpu/armv7/s5p-common/ |
D | timer.c | 66 unsigned long long time_ms; in get_timer() local 79 time_ms = gd->arch.timer_reset_value; in get_timer() 80 do_div(time_ms, 1000); in get_timer() 81 return time_ms - base; in get_timer()
|
/external/webrtc/webrtc/modules/audio_coding/codecs/tools/ |
D | audio_codec_speed_test.cc | 101 float time_ms; in EncodeDecode() local 108 time_ms = EncodeABlock(&in_data_[data_pointer_], &bit_stream_[0], in EncodeDecode() 110 encoding_time_ms_ += time_ms; in EncodeDecode() 111 time_ms = DecodeABlock(&bit_stream_[0], encoded_bytes_, &out_data_[0]); in EncodeDecode() 112 decoding_time_ms_ += time_ms; in EncodeDecode()
|
/external/v8/src/base/ |
D | timezone-cache.h | 14 virtual const char* LocalTimezone(double time_ms) = 0; 18 virtual double DaylightSavingsOffset(double time_ms) = 0; 24 virtual double LocalTimeOffset(double time_ms, bool is_utc) = 0;
|