Home
last modified time | relevance | path

Searched refs:seq_num (Results 1 – 25 of 70) sorted by relevance

123

/external/webrtc/webrtc/modules/audio_coding/neteq/
Dnack_unittest.cc41 int seq_num = nack_list[k]; in IsNackListCorrect() local
44 if (seq_num == lost_sequence_numbers[n]) { in IsNackListCorrect()
61 int seq_num = 1; in TEST() local
66 nack->UpdateLastReceivedPacket(seq_num, timestamp); in TEST()
68 seq_num++; in TEST()
79 int seq_num = 1; in TEST() local
83 nack->UpdateLastReceivedPacket(seq_num, timestamp); in TEST()
91 seq_num + num_late_packets, in TEST()
114 uint16_t seq_num = sequence_num_lost_packets[0] - 1; in TEST() local
119 nack->UpdateLastReceivedPacket(seq_num, timestamp); in TEST()
[all …]
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Dforward_error_correction.cc77 return IsNewerSequenceNumber(second->seq_num, first->seq_num); in LessThan()
276 uint16_t seq_num = ParseSequenceNumber((*media_list_it)->data); in GenerateFecBitStrings() local
277 media_pkt_idx += static_cast<uint16_t>(seq_num - prev_seq_num); in GenerateFecBitStrings()
278 prev_seq_num = seq_num; in GenerateFecBitStrings()
333 uint16_t seq_num = ParseSequenceNumber((*it)->data); in InsertZerosInBitMasks() local
335 static_cast<uint16_t>(seq_num - prev_seq_num - 1); in InsertZerosInBitMasks()
345 prev_seq_num = seq_num; in InsertZerosInBitMasks()
489 if (rx_packet->seq_num == (*recovered_packet_list_it)->seq_num) { in InsertMediaPacket()
501 recoverd_packet_to_insert->seq_num = rx_packet->seq_num; in InsertMediaPacket()
520 (*protected_it)->seq_num == packet->seq_num) { in UpdateCoveringFECPackets()
[all …]
Dproducer_fec_unittest.cc22 void VerifyHeader(uint16_t seq_num, in VerifyHeader() argument
34 EXPECT_EQ(seq_num, (data[2] << 8) + data[3]); in VerifyHeader()
67 uint16_t seq_num; in TEST_F() member
90 ByteWriter<uint16_t>::WriteBigEndian(&packet[2], p.seq_num); in TEST_F()
128 uint16_t seq_num = generator_->NextSeqNum(); in TEST_F() local
131 seq_num, in TEST_F()
135 VerifyHeader(seq_num, last_timestamp, in TEST_F()
171 uint16_t seq_num = generator_->NextSeqNum(); in TEST_F() local
174 seq_num, in TEST_F()
178 VerifyHeader(seq_num, last_timestamp, kRedPayloadType, kFecPayloadType, in TEST_F()
Dproducer_fec.cc63 void RedPacket::SetSeqNum(int seq_num) { in SetSeqNum() argument
64 assert(seq_num >= 0 && seq_num < (1<<16)); in SetSeqNum()
66 ByteWriter<uint16_t>::WriteBigEndian(&data_[2], seq_num); in SetSeqNum()
/external/scapy/scapy/layers/tls/crypto/
Dcipher_aead.py128 def auth_encrypt(self, P, A, seq_num=None): argument
160 def auth_decrypt(self, A, C, seq_num=None, add_length=True): argument
296 def _get_nonce(self, seq_num): argument
297 padlen = self.fixed_iv_len - len(seq_num)
298 padded_seq_num = b"\x00" * padlen + seq_num
301 def auth_encrypt(self, P, A, seq_num): argument
314 self._cipher.mode._initialization_vector = self._get_nonce(seq_num)
322 res = self._cipher.encrypt(self._get_nonce(seq_num), P, A,
325 res = self._cipher.encrypt(self._get_nonce(seq_num), P, A)
328 def auth_decrypt(self, A, C, seq_num): argument
[all …]
/external/webrtc/talk/media/base/
Drtputils_unittest.cc87 int seq_num; in TEST() local
88 EXPECT_TRUE(GetRtpSeqNum(kPcmuFrame, sizeof(kPcmuFrame), &seq_num)); in TEST()
89 EXPECT_EQ(1, seq_num); in TEST()
102 EXPECT_EQ(1, header.seq_num); in TEST()
107 EXPECT_FALSE(GetRtpSeqNum(kInvalidPacket, sizeof(kInvalidPacket), &seq_num)); in TEST()
127 EXPECT_EQ(1111, header.seq_num); in TEST()
Drtpdataengine.cc106 void RtpClock::Tick(double now, int* seq_num, uint32_t* timestamp) { in Tick() argument
107 *seq_num = ++last_seq_num_; in Tick()
248 << header.ssrc << ":" << header.seq_num in OnPacketReceived()
280 params.seq_num = header.seq_num; in OnPacketReceived()
347 now, &header.seq_num, &header.timestamp); in SendData()
358 << ", seqnum=" << header.seq_num in SendData()
Drtputils.cc148 GetRtpSeqNum(data, len, &(header->seq_num)) && in GetRtpHeader()
181 header.seq_num < 0 || header.seq_num > UINT16_MAX) { in SetRtpHeader()
187 static_cast<uint16_t>(header.seq_num)) && in SetRtpHeader()
Drtpdataengine_unittest.cc289 EXPECT_NE(0, header0.seq_num); in TEST_F()
305 EXPECT_EQ(static_cast<uint16_t>(header0.seq_num + 1), in TEST_F()
306 static_cast<uint16_t>(header1.seq_num)); in TEST_F()
365 EXPECT_EQ(static_cast<uint16_t>(header1a.seq_num + 1), in TEST_F()
366 static_cast<uint16_t>(header1b.seq_num)); in TEST_F()
368 EXPECT_EQ(static_cast<uint16_t>(header2a.seq_num + 1), in TEST_F()
369 static_cast<uint16_t>(header2b.seq_num)); in TEST_F()
/external/libxcam/modules/ocl/
Dpriority_buffer_queue.h35 uint32_t seq_num; member
40 , seq_num (0) in PriorityBuffer()
44 seq_num = value; in set_seq_num()
47 return seq_num; in get_seq_num()
Dpriority_buffer_queue.cpp31 ((int32_t)(buf.seq_num - this->seq_num) * XCAM_PRIORITY_BUFFER_FIXED_DELAY + in priority_greater_than()
34 return (int32_t)(buf.seq_num - this->seq_num) > 0; in priority_greater_than()
/external/ltp/lib/
Dtst_crypto.c39 ses->seq_num = 0; in tst_crypto_open()
58 if (nh->nlmsg_seq != ses->seq_num) { in tst_crypto_recv_ack()
61 nh->nlmsg_type, nh->nlmsg_seq, ses->seq_num); in tst_crypto_recv_ack()
86 .nlmsg_seq = ++(ses->seq_num), in tst_crypto_add_alg()
107 nh.nlmsg_seq = ++(ses->seq_num), in tst_crypto_del_alg()
/external/webrtc/webrtc/modules/video_coding/test/
Drtp_player.cc47 uint16_t seq_num) in RawRtpPacket() argument
52 seq_num_(seq_num) { in RawRtpPacket()
62 uint16_t seq_num() const { return seq_num_; } in seq_num() function in webrtc::rtpplayer::RawRtpPacket
99 printf("Throw: %08x:%u\n", packet->ssrc(), packet->seq_num()); in AddPacket()
103 packet->seq_num()); in AddPacket()
115 if (ssrc == packet->ssrc() && resendSeqNum == packet->seq_num() && in SetResendTime()
118 fprintf(debug_file_, "Resend %u at %u\n", packet->seq_num(), in SetResendTime()
157 fprintf(debug_file_, "Resent %u at %u\n", packet->seq_num(), in LogPacketResent()
170 printf("%u, ", (*it)->seq_num()); in Print()
355 printf("Resend: %08x:%u\n", packet->ssrc(), packet->seq_num()); in NextPacket()
[all …]
/external/scapy/scapy/layers/
Dipsec.py759 def __init__(self, proto, spi, seq_num=1, crypt_algo=None, crypt_key=None, argument
784 self.seq_num = seq_num
830 def _encrypt_esp(self, pkt, seq_num=None, iv=None): argument
838 esp = _ESPPlain(spi=self.spi, seq=seq_num or self.seq_num, iv=iv)
880 if seq_num is None:
881 self.seq_num += 1
885 def _encrypt_ah(self, pkt, seq_num=None): argument
887 ah = AH(spi=self.spi, seq=seq_num or self.seq_num,
930 if seq_num is None:
931 self.seq_num += 1
[all …]
/external/wpa_supplicant_8/src/ap/
Diapp.c79 be16 seq_num; member
100 u16 seq_num; member
111 u16 seq_num; member
128 u16 seq_num; member
141 u16 seq_num; member
174 static void iapp_send_add(struct iapp_data *iapp, u8 *mac_addr, u16 seq_num) in iapp_send_add() argument
195 add->seq_num = host_to_be16(seq_num); in iapp_send_add()
279 be_to_host16(add->seq_num), in iapp_process_add_notify()
/external/adhd/cras/src/tests/
Da2dp_info_unittest.cc84 ASSERT_EQ(a2dp.seq_num, 0); in TEST()
114 a2dp.seq_num = 11; in TEST()
121 ASSERT_EQ(a2dp.seq_num, 0); in TEST()
143 ASSERT_EQ(0, a2dp.seq_num); in TEST()
151 ASSERT_EQ(0, a2dp.seq_num); in TEST()
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/
Dbwe.cc197 uint16_t seq_num = (*node_it)->sequence_number; in RecentPacketLossRatio() local
198 if (IsNewerSequenceNumber(seq_num, newest_seq_num)) { in RecentPacketLossRatio()
199 newest_seq_num = seq_num; in RecentPacketLossRatio()
201 if (IsNewerSequenceNumber(oldest_seq_num, seq_num)) { in RecentPacketLossRatio()
202 oldest_seq_num = seq_num; in RecentPacketLossRatio()
/external/scapy/scapy/layers/tls/
Drecord_sslv2.py96 read_seq_num = struct.pack("!I", self.tls_session.rcs.seq_num)
166 self.tls_session.prcs.seq_num += 1
167 self.tls_session.rcs.seq_num += 1
189 write_seq_num = struct.pack("!I", self.tls_session.wcs.seq_num)
269 self.tls_session.pwcs.seq_num += 1
270 self.tls_session.wcs.seq_num += 1
Drecord_tls13.py113 read_seq_num = struct.pack("!Q", rcs.seq_num)
114 rcs.seq_num += 1
178 write_seq_num = struct.pack("!Q", wcs.seq_num)
179 wcs.seq_num += 1
Drecord.py309 read_seq_num = struct.pack("!Q", self.tls_session.rcs.seq_num)
310 self.tls_session.rcs.seq_num += 1
345 read_seq_num = struct.pack("!Q", self.tls_session.rcs.seq_num)
346 self.tls_session.rcs.seq_num += 1
544 write_seq_num = struct.pack("!Q", self.tls_session.wcs.seq_num)
545 self.tls_session.wcs.seq_num += 1
563 write_seq_num = struct.pack("!Q", self.tls_session.wcs.seq_num)
564 self.tls_session.wcs.seq_num += 1
/external/webrtc/webrtc/modules/audio_coding/test/
Dinsert_packet_with_timing.cc37 DEFINE_string(seq_num, "seq_num", "Sequence number file.");
169 int seq_num = SequenceNumber(); in TickOneMillisecond() local
172 channel_->set_sequence_number(seq_num); in TickOneMillisecond()
180 std::cout << "\nInserting packet number " << seq_num in TickOneMillisecond()
183 std::cout << "\nLost packet number " << seq_num in TickOneMillisecond()
/external/adhd/cras/src/server/
Dcras_a2dp_info.c81 a2dp->seq_num = 0; in init_a2dp()
112 a2dp->seq_num = 0; in a2dp_drain()
129 header->sequence_number = htons(a2dp->seq_num); in avdtp_write()
145 a2dp->seq_num++; in avdtp_write()
/external/ltp/include/
Dtst_crypto.h49 uint32_t seq_num; member
61 .seq_num = 0, \
/external/boringssl/src/ssl/
Ddtls_record.cc141 const uint8_t seq_num[8]) { in dtls1_bitmap_should_discard()
144 uint64_t seq_num_u = to_u64_be(seq_num); in dtls1_bitmap_should_discard()
156 const uint8_t seq_num[8]) { in dtls1_bitmap_record()
159 uint64_t seq_num_u = to_u64_be(seq_num); in dtls1_bitmap_record()
/external/ltp/testcases/kernel/crypto/
Dcrypto_user01.c140 if (nh->nlmsg_seq != ses.seq_num) { in validate_alg_list()
143 nh->nlmsg_type, nh->nlmsg_seq, ses.seq_num); in validate_alg_list()
163 .nlmsg_seq = ++(ses.seq_num), in run()

123