/external/webrtc/webrtc/modules/pacing/ |
D | paced_sender_unittest.cc | 68 clock_(clock) {} in PacedSenderProbing() 88 int64_t now_ms = clock_->TimeInMilliseconds(); in ExpectAndCountPacket() 102 Clock* clock_; member in webrtc::test::PacedSenderProbing 107 PacedSenderTest() : clock_(123456) { in PacedSenderTest() 110 send_bucket_.reset(new PacedSender(&clock_, in PacedSenderTest() 135 SimulatedClock clock_; member in webrtc::test::PacedSenderTest 147 clock_.TimeInMilliseconds(), in TEST_F() 153 clock_.TimeInMilliseconds(), in TEST_F() 159 clock_.TimeInMilliseconds(), in TEST_F() 162 int64_t queued_packet_timestamp = clock_.TimeInMilliseconds(); in TEST_F() [all …]
|
D | paced_sender.cc | 93 clock_(clock), in PacketQueue() 95 time_last_updated_(clock_->TimeInMilliseconds()) {} in PacketQueue() 196 Clock* const clock_; member in webrtc::paced_sender::PacketQueue 251 : clock_(clock), in PacedSender() 308 int64_t now_ms = clock_->TimeInMilliseconds(); in InsertPacket() 335 return clock_->TimeInMilliseconds() - oldest_packet; in QueueInMs() 340 packets_->UpdateQueueTime(clock_->TimeInMilliseconds()); in AverageQueueTimeMs() 347 int64_t ret = prober_->TimeUntilNextProbe(clock_->TimeInMilliseconds()); in TimeUntilNextProcess() 351 int64_t elapsed_time_us = clock_->TimeInMicroseconds() - time_last_update_us_; in TimeUntilNextProcess() 357 int64_t now_us = clock_->TimeInMicroseconds(); in Process() [all …]
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/ |
D | remote_bitrate_estimator_abs_send_time_unittest.cc | 23 bitrate_observer_.get(), &clock_)); in SetUp() 97 IncomingPacket(0, 1000, clock_.TimeInMilliseconds(), 0, 0, true); in TEST_F() 98 clock_.AdvanceTimeMilliseconds(kStreamTimeOutMs + 1); in TEST_F() 101 clock_.AdvanceTimeMilliseconds(kProcessIntervalMs); in TEST_F() 108 int64_t now_ms = clock_.TimeInMilliseconds(); in TEST_F() 111 clock_.AdvanceTimeMilliseconds(10); in TEST_F() 112 now_ms = clock_.TimeInMilliseconds(); in TEST_F() 119 clock_.AdvanceTimeMilliseconds(5); in TEST_F() 120 now_ms = clock_.TimeInMilliseconds(); in TEST_F() 133 int64_t now_ms = clock_.TimeInMilliseconds(); in TEST_F() [all …]
|
D | remote_bitrate_estimator_unittest_helper.cc | 193 : clock_(0), in RemoteBitrateEstimatorTest() 197 clock_.TimeInMicroseconds())) {} in RemoteBitrateEstimatorTest() 248 &packets, clock_.TimeInMicroseconds()); in GenerateAndProcessFrame() 255 clock_.AdvanceTimeMicroseconds(packet->arrival_time - in GenerateAndProcessFrame() 256 clock_.TimeInMicroseconds()); in GenerateAndProcessFrame() 270 clock_.AdvanceTimeMicroseconds(next_time_us - clock_.TimeInMicroseconds()); in GenerateAndProcessFrame() 318 clock_.AdvanceTimeMilliseconds(1000); in InitialBehaviorTestHelper() 323 clock_.AdvanceTimeMilliseconds(1000); in InitialBehaviorTestHelper() 325 IncomingPacket(kDefaultSsrc, kMtu, clock_.TimeInMilliseconds(), timestamp, in InitialBehaviorTestHelper() 334 IncomingPacket(kDefaultSsrc, kMtu, clock_.TimeInMilliseconds(), timestamp, in InitialBehaviorTestHelper() [all …]
|
D | send_time_history_unittest.cc | 27 : clock_(0), history_(&clock_, kDefaultHistoryLengthMs) {} in SendTimeHistoryTest() 42 webrtc::SimulatedClock clock_; member in webrtc::test::SendTimeHistoryTest 145 clock_.AdvanceTimeMilliseconds(100); in TEST_F() 153 clock_.AdvanceTimeMilliseconds(101); in TEST_F() 169 clock_.AdvanceTimeMilliseconds(100); in TEST_F() 172 clock_.AdvanceTimeMilliseconds(100); in TEST_F() 175 clock_.AdvanceTimeMilliseconds(kDefaultHistoryLengthMs - 200 + 1); in TEST_F() 191 clock_.AdvanceTimeMilliseconds(100); in TEST_F()
|
/external/webrtc/webrtc/modules/video_coding/ |
D | receiver_unittest.cc | 35 : clock_(new SimulatedClock(0)), in TestVCMReceiver() 36 timing_(clock_.get()), in TestVCMReceiver() 37 receiver_(&timing_, clock_.get(), &event_factory_) { in TestVCMReceiver() 39 new StreamGenerator(0, clock_->TimeInMilliseconds())); in TestVCMReceiver() 66 (frame_type == kEmptyFrame) ? 1 : 0, clock_->TimeInMilliseconds()); in InsertFrame() 73 clock_->AdvanceTimeMilliseconds(kDefaultFramePeriodMs); in InsertFrame() 87 rtc::scoped_ptr<SimulatedClock> clock_; member in webrtc::TestVCMReceiver 165 clock_->AdvanceTimeMilliseconds(kMinDelayMs); in TEST_F() 201 int64_t key_frame_inserted = clock_->TimeInMilliseconds(); in TEST_F() 210 clock_->AdvanceTimeMilliseconds(kMinDelayMs - clock_->TimeInMilliseconds() - in TEST_F() [all …]
|
D | video_coding_robustness_unittest.cc | 36 clock_.reset(new SimulatedClock(0)); in SetUp() 37 ASSERT_TRUE(clock_.get() != NULL); in SetUp() 38 vcm_ = VideoCodingModule::Create(clock_.get(), &event_factory_); in SetUp() 78 rtc::scoped_ptr<SimulatedClock> clock_; member in webrtc::VCMRobustnessTest 103 clock_->AdvanceTimeMilliseconds(1000 / 30); in TEST_F() 108 clock_->AdvanceTimeMilliseconds(1000 / 30); in TEST_F() 114 clock_->AdvanceTimeMilliseconds(10); in TEST_F() 121 clock_->AdvanceTimeMilliseconds(10); in TEST_F() 128 clock_->AdvanceTimeMilliseconds(10); in TEST_F() 148 clock_->AdvanceTimeMilliseconds(10); in TEST_F() [all …]
|
D | video_sender_unittest.cc | 88 : clock_(clock), start_time_ms_(clock_->TimeInMilliseconds()) {} in PacketizationCallback() 103 start_time_ms_ = clock_->TimeInMilliseconds(); in Reset() 137 int64_t diff = (clock_->TimeInMilliseconds() - start_time_ms_); in interval_ms() 166 Clock* clock_; member in webrtc::vcm::__anon6bfc03b10111::PacketizationCallback 175 TestVideoSender() : clock_(1000), packetization_callback_(&clock_) {} in TestVideoSender() 179 new VideoSender(&clock_, &post_encode_callback_, nullptr, nullptr)); in SetUp() 188 SimulatedClock clock_; member in webrtc::vcm::__anon6bfc03b10111::TestVideoSender 311 int64_t start_time = clock_.TimeInMilliseconds(); in TEST_F() 312 while (clock_.TimeInMilliseconds() < start_time + kRateStatsWindowMs) { in TEST_F() 314 clock_.AdvanceTimeMilliseconds(1000 / kInputFps); in TEST_F() [all …]
|
D | media_optimization.cc | 77 clock_(clock), in MediaOptimization() 85 new VCMLossProtectionLogic(clock_->TimeInMilliseconds())), in MediaOptimization() 121 loss_prot_logic_->Reset(clock_->TimeInMilliseconds()); in Reset() 126 loss_prot_logic_->Reset(clock_->TimeInMilliseconds()); in Reset() 166 last_change_time_ = clock_->TimeInMilliseconds(); in SetEncodingDataInternal() 221 clock_->TimeInMilliseconds(), filter_mode, fraction_lost); in SetTargetRates() 313 ProcessIncomingFrameRate(clock_->TimeInMilliseconds()); in InputFrameRateInternal() 323 PurgeOldFrameSamples(clock_->TimeInMilliseconds()); in SentFrameRateInternal() 330 const int64_t now_ms = clock_->TimeInMilliseconds(); in SentBitRate() 341 const int64_t now_ms = clock_->TimeInMilliseconds(); in UpdateWithEncodedData() [all …]
|
D | receiver.cc | 44 clock_(clock), in VCMReceiver() 45 jitter_buffer_(clock_, std::move(jitter_buffer_event)), in VCMReceiver() 89 timing_->IncomingTimestamp(packet.timestamp, clock_->TimeInMilliseconds()); in InsertPacket() 102 const int64_t start_time_ms = clock_->TimeInMilliseconds(); in FrameForDecoding() 116 const int64_t now_ms = clock_->TimeInMilliseconds(); in FrameForDecoding() 149 static_cast<int32_t>(clock_->TimeInMilliseconds() - start_time_ms); in FrameForDecoding() 153 *next_render_time_ms, clock_->TimeInMilliseconds()); in FrameForDecoding() 256 const int64_t now_ms = clock_->TimeInMilliseconds(); in RenderBufferSizeMs()
|
D | video_receiver_unittest.cc | 33 TestVideoReceiver() : clock_(0) {} in TestVideoReceiver() 36 receiver_.reset(new VideoReceiver(&clock_, &event_factory_)); in SetUp() 72 SimulatedClock clock_; member in webrtc::vcm::__anon6960ade50111::TestVideoReceiver 99 clock_.AdvanceTimeMilliseconds(33); in TEST_F() 125 clock_.AdvanceTimeMilliseconds(33); in TEST_F() 150 clock_.AdvanceTimeMilliseconds(33); in TEST_F() 184 clock_.AdvanceTimeMilliseconds(33); in TEST_F() 194 clock_.AdvanceTimeMilliseconds(33); in TEST_F()
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/ |
D | packet_sender.cc | 48 metric_recorder_->UpdateTimeMs(clock_.TimeInMilliseconds()); in RecordBitrate() 79 &clock_)), in VideoSender() 99 in_out, clock_.TimeInMilliseconds() + time_ms, source_->flow_id()); in RunFor() 112 feedbacks->front()->send_time_ms() - clock_.TimeInMilliseconds(); in ProcessFeedbackAndGeneratePackets() 126 clock_.AdvanceTimeMilliseconds(time_to_run_ms); in ProcessFeedbackAndGeneratePackets() 160 pacer_(&clock_, in PacedVideoSender() 177 int64_t end_time_ms = clock_.TimeInMilliseconds() + time_ms; in RunFor() 189 feedbacks.front()->send_time_ms() - clock_.TimeInMilliseconds(), 0); in RunFor() 198 if (clock_.TimeInMilliseconds() + time_until_next_event_ms > end_time_ms) in RunFor() 199 time_until_next_event_ms = end_time_ms - clock_.TimeInMilliseconds(); in RunFor() [all …]
|
/external/webrtc/webrtc/video/ |
D | overuse_frame_detector_unittest.cc | 55 clock_.reset(new SimulatedClock(1234)); in SetUp() 62 overuse_detector_.reset(new OveruseFrameDetector(clock_.get(), options_, in ReinitializeOveruseDetector() 78 int64_t capture_time_ms = clock_->TimeInMilliseconds(); in InsertAndSendFramesWithInterval() 80 clock_->AdvanceTimeMilliseconds(delay_ms); in InsertAndSendFramesWithInterval() 82 clock_->AdvanceTimeMilliseconds(interval_ms - delay_ms); in InsertAndSendFramesWithInterval() 108 rtc::scoped_ptr<SimulatedClock> clock_; member in webrtc::OveruseFrameDetectorTest 134 new OveruseFrameDetector(clock_.get(), options_, nullptr, this)); in TEST_F() 152 overuse_detector_.reset(new OveruseFrameDetector(clock_.get(), options_, in TEST_F() 158 clock_->AdvanceTimeMilliseconds(kProcessIntervalMs); in TEST_F() 235 clock_->AdvanceTimeMilliseconds(kProcessingTimeMs); in TEST_F() [all …]
|
/external/libchrome/base/timer/ |
D | mock_timer.cc | 27 : OneShotTimer(&clock_), in MockOneShotTimer() 41 clock_.Advance(std::max(TimeDelta(), desired_run_time() - clock_.NowTicks())); in Fire() 46 : RepeatingTimer(&clock_), in MockRepeatingTimer() 60 clock_.Advance(std::max(TimeDelta(), desired_run_time() - clock_.NowTicks())); in Fire() 65 : RetainingOneShotTimer(&clock_), in MockRetainingOneShotTimer() 79 clock_.Advance(std::max(TimeDelta(), desired_run_time() - clock_.NowTicks())); in Fire()
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/estimators/ |
D | remb.cc | 30 clock_(clock) { in RembBweSender() 48 report_blocks, 0, clock_->TimeInMilliseconds()); in GiveFeedback() 68 clock_(0), in RembReceiver() 69 recv_stats_(ReceiveStatistics::Create(&clock_)), in RembReceiver() 72 estimator_(new RemoteBitrateEstimatorAbsSendTime(this, &clock_)) { in RembReceiver() 92 while ((clock_.TimeInMilliseconds() + step_ms) < arrival_time_ms) { in ReceivePacket() 93 clock_.AdvanceTimeMilliseconds(step_ms); in ReceivePacket() 99 clock_.AdvanceTimeMilliseconds(arrival_time_ms - clock_.TimeInMilliseconds()); in ReceivePacket() 100 ASSERT_TRUE(arrival_time_ms == clock_.TimeInMilliseconds()); in ReceivePacket() 125 clock_.TimeInMilliseconds(), estimated_kbps); in GetFeedback()
|
D | nada.cc | 35 clock_(0), in NadaBweReceiver() 37 recv_stats_(ReceiveStatistics::Create(&clock_)), in NadaBweReceiver() 55 clock_.AdvanceTimeMilliseconds(arrival_time_ms - clock_.TimeInMilliseconds()); in ReceivePacket() 62 if (clock_.TimeInMilliseconds() < 10 * 60 * 1000) { in ReceivePacket() 157 clock_(clock), in NadaBweSender() 164 clock_(clock), in NadaBweSender() 186 int64_t now_ms = clock_->TimeInMilliseconds(); in GiveFeedback()
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | receive_statistics_unittest.cc | 27 clock_(0), in ReceiveStatisticsTest() 28 receive_statistics_(ReceiveStatistics::Create(&clock_)) { in ReceiveStatisticsTest() 38 SimulatedClock clock_; member in webrtc::ReceiveStatisticsTest 49 clock_.AdvanceTimeMilliseconds(100); in TEST_F() 102 clock_.AdvanceTimeMilliseconds(1000); in TEST_F() 110 clock_.AdvanceTimeMilliseconds(7000); in TEST_F() 115 clock_.AdvanceTimeMilliseconds(1000); in TEST_F() 177 clock_.AdvanceTimeMilliseconds(7); in TEST_F() 181 clock_.AdvanceTimeMilliseconds(9); in TEST_F() 185 clock_.AdvanceTimeMilliseconds(13); in TEST_F() [all …]
|
D | remote_ntp_time_estimator.cc | 24 : clock_(clock), in RemoteNtpTimeEstimator() 25 ts_extrapolator_(new TimestampExtrapolator(clock_->TimeInMilliseconds())), in RemoteNtpTimeEstimator() 46 int64_t receiver_arrival_time_ms = clock_->TimeInMilliseconds(); in UpdateRtcpTimestamp() 66 clock_->CurrentNtpInMilliseconds() - clock_->TimeInMilliseconds(); in Estimate() 68 int64_t now_ms = clock_->TimeInMilliseconds(); in Estimate()
|
D | rtp_rtcp_impl_unittest.cc | 56 clock_(NULL), in SendTransport() 65 clock_ = clock; in SimulateNetworkDelay() 83 if (clock_) { in SendRtcp() 84 clock_->AdvanceTimeMilliseconds(delay_ms_); in SendRtcp() 92 SimulatedClock* clock_; member in webrtc::__anon865dfefd0111::SendTransport 163 : clock_(133590000000000), in RtpRtcpImplTest() 164 sender_(&clock_), in RtpRtcpImplTest() 165 receiver_(&clock_) { in RtpRtcpImplTest() 190 SimulatedClock clock_; member in webrtc::RtpRtcpImplTest 245 clock_.AdvanceTimeMilliseconds(5); in TEST_F() [all …]
|
/external/libbrillo/brillo/message_loops/ |
D | fake_message_loop_unittest.cc | 38 base::SimpleTestClock clock_; member in brillo::FakeMessageLoopTest 67 clock_.SetNow(start); in TEST_F() 68 loop_.reset(new FakeMessageLoop(&clock_)); in TEST_F() 73 EXPECT_EQ(start, clock_.Now()); in TEST_F() 78 EXPECT_EQ(start + TimeDelta::FromSeconds(1), clock_.Now()); in TEST_F() 82 clock_.SetNow(start + TimeDelta::FromSeconds(3)); in TEST_F() 85 EXPECT_EQ(start + TimeDelta::FromSeconds(3), clock_.Now()); in TEST_F()
|
/external/webrtc/webrtc/modules/audio_coding/acm2/ |
D | acm_receive_test_oldapi.cc | 105 : clock_(0), in AcmReceiveTestOldApi() 106 acm_(webrtc::AudioCodingModule::Create(0, &clock_)), in AcmReceiveTestOldApi() 157 while (clock_.TimeInMilliseconds() < packet->time_ms()) { in Run() 174 clock_.AdvanceTimeMilliseconds(10); in Run() 209 last_toggle_time_ms_(clock_.TimeInMilliseconds()) { in AcmReceiveTestToggleOutputFreqOldApi() 213 if (clock_.TimeInMilliseconds() >= last_toggle_time_ms_ + toggle_period_ms_) { in AfterGetAudio() 217 last_toggle_time_ms_ = clock_.TimeInMilliseconds(); in AfterGetAudio()
|
D | acm_send_test_oldapi.cc | 30 : clock_(0), in AcmSendTestOldApi() 31 acm_(webrtc::AudioCodingModule::Create(0, &clock_)), in AcmSendTestOldApi() 85 while (clock_.TimeInMilliseconds() < test_duration_ms_) { in NextPacket() 86 clock_.AdvanceTimeMilliseconds(kBlockSizeMs); in NextPacket() 151 new Packet(packet_memory, allocated_bytes, clock_.TimeInMilliseconds()); in CreatePacket()
|
/external/webrtc/webrtc/voice_engine/ |
D | network_predictor_unittest.cc | 23 : clock_(0), in TestNetworkPredictor() 24 network_predictor_(new NetworkPredictor(&clock_)) {} in TestNetworkPredictor() 25 SimulatedClock clock_; member in webrtc::voe::TestNetworkPredictor 35 clock_.AdvanceTimeMilliseconds(1000); in TEST_F()
|
/external/webrtc/webrtc/modules/bitrate_controller/ |
D | bitrate_controller_impl.cc | 87 : clock_(clock), in BitrateControllerImpl() 89 last_bitrate_update_ms_(clock_->TimeInMilliseconds()), in BitrateControllerImpl() 140 bandwidth_estimation_.UpdateReceiverEstimate(clock_->TimeInMilliseconds(), in OnReceivedEstimatedBitrate() 150 clock_->TimeInMilliseconds() - last_bitrate_update_ms_; in TimeUntilNextProcess() 160 bandwidth_estimation_.UpdateEstimate(clock_->TimeInMilliseconds()); in Process() 163 last_bitrate_update_ms_ = clock_->TimeInMilliseconds(); in Process()
|
/external/drm_hwcomposer/ |
D | drmmode.cpp | 28 clock_(m->clock), in DrmMode() 46 return clock_ == m.clock && h_display_ == m.hdisplay && in operator ==() 55 m->clock = clock_; in ToDrmModeModeInfo() 81 return clock_; in clock() 126 : clock_ / (float)(v_total_ * h_total_) * 1000.0f; in v_refresh()
|