/external/webrtc/webrtc/modules/pacing/ |
bitrate_prober_unittest.cc | 21 int64_t now_ms = 0; local 22 EXPECT_EQ(-1, prober.TimeUntilNextProbe(now_ms)); 30 EXPECT_EQ(0, prober.TimeUntilNextProbe(now_ms)); 31 prober.PacketSent(now_ms, 1000); 34 EXPECT_EQ(8, prober.TimeUntilNextProbe(now_ms)); 35 now_ms += 4; 36 EXPECT_EQ(4, prober.TimeUntilNextProbe(now_ms)); 37 now_ms += 4; 38 EXPECT_EQ(0, prober.TimeUntilNextProbe(now_ms)); 39 prober.PacketSent(now_ms, 1000) [all...] |
paced_sender.cc | 308 int64_t now_ms = clock_->TimeInMilliseconds(); local 310 capture_time_ms = now_ms; 313 capture_time_ms, now_ms, bytes,
|
/external/skia/tools/VisualBench/ |
TimingStateMachine.cpp | 17 static double now_ms() { return SkTime::GetNSecs() * 1e-6; } function 33 fStartTime = now_ms(); 48 double elapsedMs = now_ms() - fStartTime; 62 double now = now_ms();
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/ |
rate_statistics_unittest.cc | 25 int64_t now_ms = 0; local 27 EXPECT_EQ(0u, stats_.Rate(now_ms)); 28 stats_.Update(1500, now_ms); 30 EXPECT_EQ(24000u, stats_.Rate(now_ms)); 33 EXPECT_EQ(0u, stats_.Rate(now_ms)); 35 if (now_ms % 10 == 0) { 36 stats_.Update(1500, now_ms); 40 if (now_ms > 0 && now_ms % 500 == 0) { 41 EXPECT_NEAR(1200000u, stats_.Rate(now_ms), 24000u) 52 int64_t now_ms = 0; local [all...] |
remote_bitrate_estimator_abs_send_time_unittest.cc | 108 int64_t now_ms = clock_.TimeInMilliseconds(); local 112 now_ms = clock_.TimeInMilliseconds(); 113 IncomingPacket(0, 1000, now_ms, 90 * now_ms, AbsSendTime(now_ms, 1000), 120 now_ms = clock_.TimeInMilliseconds(); 121 IncomingPacket(0, 1000, now_ms, 90 * now_ms, AbsSendTime(now_ms, 1000), 133 int64_t now_ms = clock_.TimeInMilliseconds() local 157 int64_t now_ms = clock_.TimeInMilliseconds(); local 186 int64_t now_ms = clock_.TimeInMilliseconds(); local 205 int64_t now_ms = clock_.TimeInMilliseconds(); local 223 int64_t now_ms = clock_.TimeInMilliseconds(); local 243 int64_t now_ms = clock_.TimeInMilliseconds(); local 262 int64_t now_ms = clock_.TimeInMilliseconds(); local [all...] |
remote_bitrate_estimator_single_stream.cc | 77 int64_t now_ms = clock_->TimeInMilliseconds(); local 89 ssrc, new Detector(now_ms, OverUseDetectorOptions(), true))); 93 estimator->last_packet_time_ms = now_ms; 94 incoming_bitrate_.Update(payload_size, now_ms); 107 estimator->estimator.num_of_deltas(), now_ms); 110 uint32_t incoming_bitrate_bps = incoming_bitrate_.Rate(now_ms); 112 remote_rate_->TimeToReduceFurther(now_ms, incoming_bitrate_bps)) { 116 UpdateEstimate(now_ms); 144 void RemoteBitrateEstimatorSingleStream::UpdateEstimate(int64_t now_ms) { 152 now_ms - time_of_last_received_packet > kStreamTimeOutMs) [all...] |
overuse_detector_unittest.cc | 665 int64_t now_ms = 0; local 673 overuse_detector_->Detect(kOffset, kTsDelta, num_deltas, now_ms); 678 now_ms += 5; 686 overuse_detector_->Detect(1.1 * kOffset, kTsDelta, num_deltas, now_ms); 691 now_ms += 5; 699 overuse_detector_->Detect(kOffset, kTsDelta, num_deltas, now_ms); 704 now_ms += 5; 711 overuse_detector_->Detect(0.7 * kOffset, kTsDelta, num_deltas, now_ms); 716 now_ms += 5; 723 overuse_detector_->Detect(kOffset, kTsDelta, num_deltas, now_ms); 737 int64_t now_ms = 0; local [all...] |
/external/webrtc/webrtc/voice_engine/ |
network_predictor.cc | 29 int64_t now_ms = clock_->TimeInMilliseconds(); local 32 static_cast<float>(now_ms - last_loss_rate_update_time_ms_), 34 last_loss_rate_update_time_ms_ = now_ms;
|
/external/webrtc/webrtc/modules/bitrate_controller/ |
send_side_bandwidth_estimation_unittest.cc | 26 int64_t now_ms = 0; local 28 bwe.UpdateReceiverBlock(0, 50, 1, now_ms); 31 bwe.UpdateReceiverEstimate(now_ms, kRembBps); 32 bwe.UpdateEstimate(now_ms); 40 now_ms += 2001; 41 bwe.UpdateReceiverEstimate(now_ms, kSecondRembBps); 42 bwe.UpdateEstimate(now_ms); 58 int64_t now_ms = 0; local 68 bwe.UpdateReceiverBlock(kFractionLoss, kRttMs, 100, now_ms); 70 now_ms += 2000 [all...] |
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
remote_ntp_time_estimator.cc | 68 int64_t now_ms = clock_->TimeInMilliseconds(); local 69 if (now_ms - last_timing_log_ms_ > kTimingLogIntervalMs) { 74 last_timing_log_ms_ = now_ms;
|
/external/webrtc/webrtc/common_video/ |
incoming_video_stream.cc | 76 int64_t now_ms = TickTime::MillisecondTimestamp(); local 77 if (now_ms >= last_rate_calculation_time_ms_ + kFrameRatePeriodMs) { 80 (now_ms - last_rate_calculation_time_ms_)); 82 last_rate_calculation_time_ms_ = now_ms;
|
/external/webrtc/webrtc/modules/video_coding/ |
generic_decoder.cc | 68 const int64_t now_ms = _clock->TimeInMilliseconds(); local 71 static_cast<int32_t>(now_ms - frameInfo->decodeStartTimeMs); 73 _timing->StopDecodeTimer(decodedImage.timestamp(), decode_time_ms, now_ms,
|
receiver.cc | 116 const int64_t now_ms = clock_->TimeInMilliseconds(); local 118 *next_render_time_ms = timing_->RenderTimeMs(frame_timestamp, now_ms); 124 } else if (std::abs(*next_render_time_ms - now_ms) > max_video_delay_ms_) { 125 int frame_delay = static_cast<int>(std::abs(*next_render_time_ms - now_ms)); 256 const int64_t now_ms = clock_->TimeInMilliseconds(); local 259 uint32_t render_start = timing_->RenderTimeMs(timestamp_start, now_ms); 260 uint32_t render_end = timing_->RenderTimeMs(timestamp_end, now_ms);
|
media_optimization.cc | 330 const int64_t now_ms = clock_->TimeInMilliseconds(); local 331 PurgeOldFrameSamples(now_ms); 332 UpdateSentBitrate(now_ms); 341 const int64_t now_ms = clock_->TimeInMilliseconds(); local 342 PurgeOldFrameSamples(now_ms); 349 encoded_frame_samples_.back().time_complete_ms = now_ms; 352 EncodedFrameSample(encoded_length, timestamp, now_ms)); 354 UpdateSentBitrate(now_ms); 484 void MediaOptimization::PurgeOldFrameSamples(int64_t now_ms) { 486 if (now_ms - encoded_frame_samples_.front().time_complete_ms [all...] |
/external/webrtc/webrtc/test/ |
fake_audio_device.cc | 110 int64_t now_ms = clock_->TimeInMilliseconds(); local 111 uint32_t time_since_last_playout_ms = now_ms - last_playout_ms_;
|
/development/ndk/samples/hello-neon/jni/ |
helloneon.c | 35 now_ms(void) function 100 t0 = now_ms(); 107 t1 = now_ms(); 142 t0 = now_ms(); 149 t1 = now_ms();
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/estimators/ |
nada.cc | 92 FeedbackPacket* NadaBweReceiver::GetFeedback(int64_t now_ms) { 95 if (now_ms - last_feedback_ms_ < 100) { 108 static_cast<float>(now_ms - last_feedback_ms_); 110 last_feedback_ms_ = now_ms; 118 latest->send_time_ms + now_ms - latest->arrival_time_ms; 123 return new NadaFeedback(flow_id_, now_ms * 1000, exp_smoothed_delay_ms_, 186 int64_t now_ms = clock_->TimeInMilliseconds(); local 187 float delta_s = now_ms - last_feedback_ms_; 188 last_feedback_ms_ = now_ms; 194 int64_t rtt_ms = now_ms - fb.latest_send_time_ms() [all...] |
/external/webrtc/webrtc/system_wrappers/source/ |
clock.cc | 252 int64_t now_ms = TimeInMilliseconds(); local 253 seconds = (now_ms / 1000) + kNtpJan1970; 255 static_cast<uint32_t>((now_ms % 1000) * kMagicNtpFractionalUnit / 1000);
|
/external/webrtc/webrtc/video/ |
vie_receiver.cc | 278 int64_t now_ms = clock_->TimeInMilliseconds(); local 282 arrival_time_ms = now_ms; 287 if (now_ms - last_packet_log_ms_ > kPacketLogIntervalMs) { 298 last_packet_log_ms_ = now_ms;
|
vie_encoder.cc | 285 int64_t now_ms = TickTime::MillisecondTimestamp(); local 286 if (now_ms - time_of_last_frame_activity_ms > kStopPaddingThresholdMs)
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
ScanDetailCache.java | 178 long now_ms = System.currentTimeMillis(); local 205 if ((now_ms - result.seen) > age) continue; 234 long now_ms = System.currentTimeMillis(); local 245 if ((now_ms - result.seen) > age) continue; 303 long now_ms = System.currentTimeMillis(); local 307 long milli = now_ms - scanDetail.getSeen(); 313 if (now_ms > scanDetail.getSeen() && scanDetail.getSeen() > 0) {
|
/system/bt/osi/src/ |
wakelock.c | 277 const period_ms_t now_ms = now(); local 293 wakelock_stats.last_acquired_timestamp_ms = now_ms; 297 metrics_wake_event(WAKE_EVENT_ACQUIRED, NULL, WAKE_LOCK_ID, now_ms); 309 const period_ms_t now_ms = now(); local 325 wakelock_stats.last_released_timestamp_ms = now_ms; 328 period_ms_t delta_ms = now_ms - wakelock_stats.last_acquired_timestamp_ms; 341 metrics_wake_event(WAKE_EVENT_RELEASED, NULL, WAKE_LOCK_ID, now_ms); 345 const period_ms_t now_ms = now(); local 359 delta_ms = now_ms - wakelock_stats.last_acquired_timestamp_ms; 389 (unsigned long long)(now_ms - wakelock_stats.last_reset_timestamp_ms)) [all...] |
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/ |
bwe_test_framework_unittest.cc | 432 int64_t now_ms = 0; local 441 packets.push_back(new MediaPacket(now_ms * 1000, sequence_number)); 442 original.push_back(new MediaPacket(now_ms * 1000, sequence_number)); 444 now_ms += 5 * max_jitter_ms; 508 int64_t now_ms = 0; local 510 for (uint16_t i = 0; i < kPacketCount; ++i, now_ms += 10) { 511 packets.push_back(new MediaPacket(now_ms * 1000, sequence_number++)); 519 filter.RunFor(now_ms, &packets); [all...] |
/development/ndk/platforms/android-8/samples/bitmap-plasma/jni/ |
plasma.c | 37 static double now_ms(void) function 290 s->lastTime = now_ms(); 299 s->frameTime = now_ms(); 305 double now = now_ms();
|
/development/ndk/platforms/android-9/samples/native-plasma/jni/ |
plasma.c | 42 static double now_ms(void) function 299 s->lastTime = now_ms(); 308 s->frameTime = now_ms(); 314 double now = now_ms();
|