Searched refs:sequence (Results 1 - 23 of 23) sorted by relevance

/system/core/logd/
H A DLogReader.cpp119 uint64_t sequence = 1; local
120 // Convert realtime to sequence number
127 uint64_t &sequence; member in class:LogFindStart
132 LogFindStart(unsigned logMask, pid_t pid, log_time &start, uint64_t &sequence, bool isMonotonic) : argument
137 sequence(sequence),
138 last(sequence),
147 me->sequence = element->getSequence();
153 me->sequence = me->last;
166 } logFindStart(logMask, pid, start, sequence,
[all...]
H A Dlibaudit.c35 * The current sequence number were acking on
63 SLOGW("Expected sequence number between user space and kernel space is out of skew, "
81 * This function returns a positive sequence number on success, else -errno.
86 static int16_t sequence = 0; local
103 * to always blindly increment the sequence number
121 * Only increment the sequence number on a guarantee
124 * Also, the sequence is defined as a u32 in the kernel
132 req.nlh.nlmsg_seq = ++sequence;
150 rc = get_ack(fd, sequence);
152 /* If the ack failed, return the error, else return the sequence numbe
[all...]
H A DLogBufferElement.h51 static atomic_int_fast64_t sequence; member in class:LogBufferElement
77 static uint64_t getCurrentSequence(void) { return sequence.load(memory_order_relaxed); }
H A DLogBufferElement.cpp35 atomic_int_fast64_t LogBufferElement::sequence(1);
45 mSequence(sequence.fetch_add(1, memory_order_relaxed)),
/system/connectivity/shill/net/
H A Drtnl_handler_unittest.cc94 void SetRequestSequence(uint32_t sequence) { argument
95 RTNLHandler::GetInstance()->request_sequence_ = sequence;
98 bool IsSequenceInErrorMaskWindow(uint32_t sequence) { argument
99 return RTNLHandler::GetInstance()->IsSequenceInErrorMaskWindow(sequence);
102 void SetErrorMask(uint32_t sequence, argument
104 return RTNLHandler::GetInstance()->SetErrorMask(sequence, error_mask);
107 RTNLHandler::ErrorMask GetAndClearErrorMask(uint32_t sequence) { argument
108 return RTNLHandler::GetInstance()->GetAndClearErrorMask(sequence);
126 void ReturnError(uint32_t sequence, int error_number);
181 void RTNLHandlerTest::ReturnError(uint32_t sequence, in argument
[all...]
H A Drtnl_handler.h116 // successfully, the sequence number in |message| is set, and the
169 // Returns whether |sequence| lies within the current error mask window.
170 bool IsSequenceInErrorMaskWindow(uint32_t sequence);
172 // Saves an error mask to be associated with this sequence number.
173 void SetErrorMask(uint32_t sequence, const ErrorMask& error_mask);
176 // number. If this sequence number now lies outside the receive window
178 ErrorMask GetAndClearErrorMask(uint32_t sequence);
H A Dnetlink_packet.cc131 void MutableNetlinkPacket::SetMessageSequence(uint32_t sequence) { argument
132 mutable_header()->nlmsg_seq = sequence;
H A Drtnl_handler.cc164 0, // sequence to be filled in by RTNLHandler::SendMessage().
184 0, // sequence to be filled in by RTNLHandler::SendMessage().
291 << " sequence " << hdr->nlmsg_seq;
307 message << "sequence " << hdr->nlmsg_seq << " received error "
445 VLOG(5) << __func__ << " sequence " << request_sequence_
458 VLOG(5) << "RTNL sending payload with request sequence "
488 bool RTNLHandler::IsSequenceInErrorMaskWindow(uint32_t sequence) { argument
489 return (request_sequence_ - sequence) < kErrorWindowSize;
492 void RTNLHandler::SetErrorMask(uint32_t sequence, const ErrorMask& error_mask) { argument
493 if (IsSequenceInErrorMaskWindow(sequence)) {
498 GetAndClearErrorMask(uint32_t sequence) argument
[all...]
H A Dnetlink_packet.h51 // Get the sequence number from the header.
119 // Set the sequence number in the header.
120 void SetMessageSequence(uint32_t sequence);
/system/connectivity/shill/
H A Drouting_table.h53 Query() : sequence(0), tag(0), table_id(0) {}
58 : sequence(sequence_in),
63 uint32_t sequence; member in struct:shill::RoutingTable::Query
H A Dicmp.cc84 icmp_header.un.echo.sequence = seq_num;
H A Dicmp_session.cc196 uint16_t received_seq_num = received_icmp_header->un.echo.sequence;
H A Drouting_table.cc356 << ", next query seq: " << route_queries_.front().sequence;
358 // Purge queries that have expired (sequence number of this message is
359 // greater than that of the head of the route query sequence). Do the
362 while (route_queries_.front().sequence - message.seq() > kuint32max / 2) {
363 LOG(ERROR) << __func__ << ": Purging un-replied route request sequence "
364 << route_queries_.front().sequence
372 if (query.sequence == message.seq()) {
540 // Save the sequence number of the request so we can create a route for
H A Dicmp_unittest.cc173 icmp_header.un.echo.sequence = 1;
/system/extras/verity/
H A DBootSignature.java94 ASN1Sequence sequence = (ASN1Sequence) stream.readObject();
96 formatVersion = (ASN1Integer) sequence.getObjectAt(0);
101 certificate = sequence.getObjectAt(1);
109 ASN1Sequence algId = (ASN1Sequence) sequence.getObjectAt(2);
113 ASN1Sequence attrs = (ASN1Sequence) sequence.getObjectAt(3);
117 this.signature = (DEROctetString) sequence.getObjectAt(4);
H A DKeystoreSigner.java126 ASN1Sequence sequence = (ASN1Sequence) stream.readObject();
128 formatVersion = (ASN1Integer) sequence.getObjectAt(0);
133 ASN1Sequence keys = (ASN1Sequence) sequence.getObjectAt(1);
139 ASN1Object sig = sequence.getObjectAt(2).toASN1Primitive();
/system/core/fastboot/
H A Dudp_test.cpp27 // Some possible corner case sequence numbers we want to check.
37 static std::string ErrorPacket(uint16_t sequence, const std::string& message = "", argument
39 return std::string{kIdError, flags} + PacketValue(sequence) + message;
43 static std::string QueryPacket(uint16_t sequence) { argument
44 return std::string{kIdDeviceQuery, kFlagNone} + PacketValue(sequence);
48 static std::string QueryPacket(uint16_t sequence, uint16_t new_sequence) { argument
49 return std::string{kIdDeviceQuery, kFlagNone} + PacketValue(sequence) +
54 static std::string InitPacket(uint16_t sequence, uint16_t version, uint16_t max_packet_size) { argument
55 return std::string{kIdInitialization, kFlagNone} + PacketValue(sequence) +
60 static std::string FastbootPacket(uint16_t sequence, cons argument
[all...]
H A Dudp.cpp73 void Set(uint8_t id, uint16_t sequence, Flag flag);
86 void Header::Set(uint8_t id, uint16_t sequence, Flag flag) { argument
89 bytes_[kIndexSeqH] = sequence >> 8;
90 bytes_[kIndexSeqL] = sequence;
168 // The first two bytes contain the next expected sequence number.
/system/core/liblog/
H A Dpmsg_reader.c338 /* Check for invalid sequence number */
464 /* Remove any file fragments that match our sequence number */
483 /* Insert in sequence number sorted order, to ease reconstruction */
498 size_t sequence, tag_len; local
505 sequence = 0;
529 /* Missing sequence numbers */
530 while (sequence < content->entry.nsec) {
538 sequence += ANDROID_LOG_PMSG_FILE_SEQUENCE;
560 sequence = content->entry.nsec + ANDROID_LOG_PMSG_FILE_SEQUENCE;
/system/tpm/trunks/
H A Dresource_manager_test.cc231 // Creates a TPMS_CONTEXT with the given sequence field.
232 TPMS_CONTEXT CreateContext(UINT64 sequence) { argument
235 context.sequence = sequence;
239 // Creates a serialized TPMS_CONTEXT with the given sequence field.
240 std::string CreateContextParameter(UINT64 sequence) { argument
242 Serialize_TPMS_CONTEXT(CreateContext(sequence), &buffer);
761 EXPECT_CALL(tpm_, ContextLoadSync(Field(&TPMS_CONTEXT::sequence, Eq(1u)),
H A Dtpm_generated.h1602 UINT64 sequence; member in struct:trunks::TPMS_CONTEXT
H A Dtpm_generated.cc9189 result = Serialize_UINT64(value.sequence, buffer);
9220 &value->sequence,
[all...]
/system/connectivity/shill/ethernet/
H A Dethernet_unittest.cc571 InSequence sequence; local

Completed in 863 milliseconds