/external/openscreen/cast/streaming/ |
D | rtp_packetizer.cc | 57 const int num_packets = ComputeNumberOfPackets(frame); in GeneratePacket() local 58 OSP_DCHECK_GT(num_packets, 0); in GeneratePacket() 59 OSP_DCHECK_LT(int{packet_id}, num_packets); in GeneratePacket() 60 const bool is_last_packet = int{packet_id} == (num_packets - 1); in GeneratePacket() 100 AppendField<uint16_t>(num_packets - 1, &buffer); in GeneratePacket() 125 int num_packets = DividePositivesRoundingUp( in ComputeNumberOfPackets() local 130 num_packets = std::max(1, num_packets); in ComputeNumberOfPackets() 133 return num_packets <= int{kMaxAllowedFramePacketId} ? num_packets : -1; in ComputeNumberOfPackets()
|
D | rtp_packetizer_unittest.cc | 75 const int num_packets = 1 + frame_payload_size / packet_payload_size; in TestGeneratePacket() local 93 EXPECT_EQ(static_cast<FramePacketId>(num_packets - 1), in TestGeneratePacket() 116 const int expected_payload_size = (int{packet_id} == (num_packets - 1)) in TestGeneratePacket() 151 const int num_packets = packetizer()->ComputeNumberOfPackets(frame); in TEST_F() local 152 ASSERT_EQ(is_key_frame ? 34 : 7, num_packets); in TEST_F() 154 for (int j = 0; j < num_packets; ++j) { in TEST_F() 169 const int num_packets = packetizer()->ComputeNumberOfPackets(frame); in TEST_F() local 170 ASSERT_EQ(27, num_packets); in TEST_F() 172 for (int i = 0; i < num_packets; ++i) { in TEST_F() 197 const int num_packets = packetizer()->ComputeNumberOfPackets(frame); in TEST_F() local [all …]
|
/external/webrtc/modules/rtp_rtcp/source/ |
D | rtcp_sender_unittest.cc | 150 EXPECT_EQ(1, parser()->sender_report()->num_packets()); in TEST_F() 174 EXPECT_EQ(1, parser()->sender_report()->num_packets()); in TEST_F() 182 EXPECT_EQ(packets + 1, parser()->sender_report()->num_packets()); in TEST_F() 207 EXPECT_EQ(0, parser()->sender_report()->num_packets()); in TEST_F() 209 EXPECT_EQ(0, parser()->sender_report()->num_packets()); in TEST_F() 212 EXPECT_EQ(1, parser()->pli()->num_packets()); in TEST_F() 230 EXPECT_EQ(0, parser()->pli()->num_packets()); in TEST_F() 236 EXPECT_EQ(1, parser()->receiver_report()->num_packets()); in TEST_F() 246 EXPECT_EQ(1, parser()->receiver_report()->num_packets()); in TEST_F() 262 EXPECT_EQ(1, parser()->receiver_report()->num_packets()); in TEST_F() [all …]
|
D | rtcp_transceiver_impl_unittest.cc | 111 int num_packets() const { return num_packets_; } in num_packets() function in __anon6fae36350111::RtcpParserTransport 362 ASSERT_GT(rtcp_parser.receiver_report()->num_packets(), 0); in TEST() 364 ASSERT_GT(rtcp_parser.sdes()->num_packets(), 0); in TEST() 382 EXPECT_EQ(transport.num_packets(), 1); in TEST() 383 EXPECT_EQ(rtcp_parser.remb()->num_packets(), 0); in TEST() 399 EXPECT_EQ(rtcp_parser.remb()->num_packets(), 1); in TEST() 418 EXPECT_EQ(rtcp_parser.remb()->num_packets(), 1); in TEST() 425 EXPECT_EQ(rtcp_parser.remb()->num_packets(), 2); in TEST() 442 EXPECT_EQ(rtcp_parser.remb()->num_packets(), 1); in TEST() 448 EXPECT_EQ(rtcp_parser.remb()->num_packets(), 1); in TEST() [all …]
|
D | ulpfec_receiver_unittest.cc | 170 EXPECT_EQ(2U, counter.num_packets); in InjectGarbagePacketLength() 196 EXPECT_EQ(0u, counter.num_packets); in TEST_F() 205 EXPECT_EQ(1u, counter.num_packets); in TEST_F() 219 EXPECT_EQ(2u, counter.num_packets); in TEST_F() 234 EXPECT_EQ(0u, counter.num_packets); in TEST_F() 243 EXPECT_EQ(1u, counter.num_packets); in TEST_F() 256 EXPECT_EQ(2u, counter.num_packets); in TEST_F()
|
D | rtp_sender_video.cc | 542 const size_t num_packets = packetizer->NumPackets(); in SendVideo() local 544 if (num_packets == 0) in SendVideo() 549 for (size_t i = 0; i < num_packets; ++i) { in SendVideo() 553 if (num_packets == 1) { in SendVideo() 561 } else if (i == num_packets - 1) { in SendVideo() 616 if (i == num_packets - 1) { in SendVideo()
|
/external/webrtc/modules/rtp_rtcp/source/rtcp_packet/ |
D | compound_packet_unittest.cc | 53 EXPECT_EQ(1, parser.receiver_report()->num_packets()); in TEST() 56 EXPECT_EQ(1, parser.fir()->num_packets()); in TEST() 80 EXPECT_EQ(1, parser.sender_report()->num_packets()); in TEST() 81 EXPECT_EQ(1, parser.receiver_report()->num_packets()); in TEST() 83 EXPECT_EQ(1, parser.bye()->num_packets()); in TEST() 84 EXPECT_EQ(1, parser.fir()->num_packets()); in TEST() 108 EXPECT_EQ(1, parser.receiver_report()->num_packets()); in TEST() 110 EXPECT_EQ(1, parser.fir()->num_packets()); in TEST() 136 EXPECT_EQ(1, parser.receiver_report()->num_packets()); in TEST() 138 EXPECT_EQ(0, parser.fir()->num_packets()); in TEST() [all …]
|
/external/webrtc/video/end_to_end_tests/ |
D | extended_reports_tests.cc | 90 sent_rtcp_rr_ += parser.receiver_report()->num_packets(); in OnReceiveRtcp() 91 EXPECT_EQ(0, parser.sender_report()->num_packets()); in OnReceiveRtcp() 92 EXPECT_GE(1, parser.xr()->num_packets()); in OnReceiveRtcp() 93 if (parser.xr()->num_packets() > 0) { in OnReceiveRtcp() 115 sent_rtcp_sr_ += parser.sender_report()->num_packets(); in OnSendRtcp() 116 EXPECT_LE(parser.xr()->num_packets(), 1); in OnSendRtcp() 117 if (parser.xr()->num_packets() > 0) { in OnSendRtcp()
|
D | rtp_rtcp_tests.cc | 63 EXPECT_EQ(0, parser.sender_report()->num_packets()); in RespectsRtcpMode() 69 if (parser.receiver_report()->num_packets() == 0 && in RespectsRtcpMode() 70 parser.transport_feedback()->num_packets() == 0) { in RespectsRtcpMode() 81 if (parser.receiver_report()->num_packets() == 0) in RespectsRtcpMode() 261 if (rtcp_parser.sender_report()->num_packets() > 0) { in TestRtpStatePreservation()
|
/external/webrtc/test/fuzzers/ |
D | rtp_packetizer_av1_fuzzer.cc | 40 size_t num_packets = packetizer.NumPackets(); in FuzzOneInput() local 41 if (num_packets == 0) { in FuzzOneInput() 48 if (num_packets == 1) { in FuzzOneInput() 59 for (size_t i = 1; i < num_packets - 1; ++i) { in FuzzOneInput()
|
D | audio_decoder_fuzzer.cc | 55 for (size_t num_packets = 0; num_packets < kMaxNumFuzzedPackets; in FuzzAudioDecoder() local 56 ++num_packets) { in FuzzAudioDecoder()
|
/external/perfetto/src/tracing/test/ |
D | fake_packet.cc | 114 num_packets == 0); in AddPacket() 119 num_packets++; in AddPacket() 125 num_packets++; in AddPacket() 130 num_packets++; in IncrementNumPackets() 162 num_packets, flags, chunk_complete, in CopyIntoTraceBuffer()
|
/external/perfetto/src/tracing/core/ |
D | packet_stream_validator_benchmark.cc | 55 for (size_t num_packets = 0; num_packets < 10; num_packets++) { in BM_PacketStreamValidator() local
|
/external/webrtc/modules/audio_coding/neteq/ |
D | statistics_calculator.cc | 244 void StatisticsCalculator::PacketsDiscarded(size_t num_packets) { in PacketsDiscarded() argument 245 operations_and_state_.discarded_primary_packets += num_packets; in PacketsDiscarded() 248 void StatisticsCalculator::SecondaryPacketsDiscarded(size_t num_packets) { in SecondaryPacketsDiscarded() argument 249 discarded_secondary_packets_ += num_packets; in SecondaryPacketsDiscarded() 250 lifetime_stats_.fec_packets_discarded += num_packets; in SecondaryPacketsDiscarded() 253 void StatisticsCalculator::SecondaryPacketsReceived(size_t num_packets) { in SecondaryPacketsReceived() argument 254 lifetime_stats_.fec_packets_received += num_packets; in SecondaryPacketsReceived()
|
D | statistics_calculator.h | 69 virtual void PacketsDiscarded(size_t num_packets); 72 virtual void SecondaryPacketsDiscarded(size_t num_packets); 75 virtual void SecondaryPacketsReceived(size_t num_packets);
|
/external/webrtc/modules/audio_coding/neteq/mock/ |
D | mock_statistics_calculator.h | 21 MOCK_METHOD(void, PacketsDiscarded, (size_t num_packets), (override)); 24 (size_t num_packets),
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/events/cfg80211/cfg80211_cqm_pktloss_notify/ |
D | format | 12 field:u32 num_packets; offset:36; size:4; signed:0; 14 …%s(%d), peer: %pM, num of lost packets: %u", REC->name, REC->ifindex, (REC->peer), REC->num_packets
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/cfg80211/cfg80211_cqm_pktloss_notify/ |
D | format | 12 field:u32 num_packets; offset:36; size:4; signed:0; 14 …%s(%d), peer: %pM, num of lost packets: %u", REC->name, REC->ifindex, (REC->peer), REC->num_packets
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/cfg80211/cfg80211_cqm_pktloss_notify/ |
D | format | 12 field:u32 num_packets; offset:36; size:4; signed:0; 14 …%s(%d), peer: %pM, num of lost packets: %u", REC->name, REC->ifindex, (REC->peer), REC->num_packets
|
/external/autotest/server/site_tests/network_WiFi_RateControl/ |
D | network_WiFi_RateControl.py | 99 for index, num_packets in counts.iteritems(): 100 if num_packets > num_packets_sent: 102 num_packets_sent = num_packets
|
/external/webrtc/test/ |
D | rtp_file_writer_unittest.cc | 32 void WriteRtpPackets(int num_packets) { in WriteRtpPackets() argument 35 for (int i = 1; i <= num_packets; ++i) { in WriteRtpPackets()
|
/external/webrtc/test/fuzzers/utils/ |
D | rtp_replayer.cc | 145 int num_packets = 0; in ReplayPackets() local 167 ++num_packets; in ReplayPackets() 202 RTC_LOG(LS_INFO) << "num_packets: " << num_packets; in ReplayPackets()
|
/external/webrtc/test/network/ |
D | traffic_route.cc | 68 void TrafficRoute::TriggerPacketBurst(size_t num_packets, size_t packet_size) { in TriggerPacketBurst() argument 69 for (size_t i = 0; i < num_packets; ++i) { in TriggerPacketBurst()
|
/external/ltp/testcases/kernel/sched/cfs-scheduler/ |
D | hackbench.c | 83 unsigned int num_packets; member 169 for (i = 0; i < ctx->num_packets; i++) { in receiver() 260 ctx->num_packets = num_fds * loops; in group()
|
/external/autotest/client/tests/hackbench/src/ |
D | hackbench.c | 111 unsigned int num_packets; member 196 for (i = 0; i < ctx->num_packets; i++) { in receiver() 283 ctx->num_packets = num_fds*loops; in group()
|