Home
last modified time | relevance | path

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

/system/logging/liblog/
Dlog_event_list.cpp356 android_log_list_element elem; in android_log_read_next_internal() local
359 memset(&elem, 0, sizeof(elem)); in android_log_read_next_internal()
366 elem.type = EVENT_TYPE_UNKNOWN; in android_log_read_next_internal()
370 elem.type = EVENT_TYPE_LIST_STOP; in android_log_read_next_internal()
372 elem.complete = true; in android_log_read_next_internal()
373 return elem; in android_log_read_next_internal()
382 elem.type = EVENT_TYPE_LIST_STOP; in android_log_read_next_internal()
383 elem.complete = !context->count[0] && (!context->list_nest_depth || in android_log_read_next_internal()
399 return elem; in android_log_read_next_internal()
402 elem.type = EVENT_TYPE_UNKNOWN; in android_log_read_next_internal()
[all …]
/system/logging/logd/
DLogBufferElement.cpp46 LogBufferElement::LogBufferElement(const LogBufferElement& elem) in LogBufferElement() argument
47 : uid_(elem.uid_), in LogBufferElement()
48 pid_(elem.pid_), in LogBufferElement()
49 tid_(elem.tid_), in LogBufferElement()
50 sequence_(elem.sequence_), in LogBufferElement()
51 realtime_(elem.realtime_), in LogBufferElement()
52 msg_len_(elem.msg_len_), in LogBufferElement()
53 log_id_(elem.log_id_) { in LogBufferElement()
55 memcpy(msg_, elem.msg_, msg_len_); in LogBufferElement()
58 LogBufferElement::LogBufferElement(LogBufferElement&& elem) noexcept in LogBufferElement() argument
[all …]
DLogTags.cpp321 android_log_list_element elem; in ReadPersistEventLogTags() local
326 elem = android_log_read_next(ctx); in ReadPersistEventLogTags()
327 if (elem.type != EVENT_TYPE_LIST) { in ReadPersistEventLogTags()
330 elem = android_log_read_next(ctx); in ReadPersistEventLogTags()
331 if (elem.type != EVENT_TYPE_INT) { in ReadPersistEventLogTags()
334 Tag = elem.data.int32; in ReadPersistEventLogTags()
335 elem = android_log_read_next(ctx); in ReadPersistEventLogTags()
336 if (elem.type != EVENT_TYPE_STRING) { in ReadPersistEventLogTags()
339 Name = std::string(elem.data.string, elem.len); in ReadPersistEventLogTags()
340 elem = android_log_read_next(ctx); in ReadPersistEventLogTags()
[all …]
DLogBufferElement.h33 LogBufferElement(const LogBufferElement& elem);
34 LogBufferElement(LogBufferElement&& elem) noexcept;
DSerializedLogEntry.h44 SerializedLogEntry(const SerializedLogEntry& elem) = delete;
45 SerializedLogEntry& operator=(const SerializedLogEntry& elem) = delete;
DSimpleLogBuffer.cpp104 void SimpleLogBuffer::LogInternal(LogBufferElement&& elem) { in LogInternal() argument
105 log_id_t log_id = elem.log_id(); in LogInternal()
107 logs_.emplace_back(std::move(elem)); in LogInternal()
DSimpleLogBuffer.h53 virtual void LogInternal(LogBufferElement&& elem) REQUIRES(logd_lock);
/system/authgraph/core/src/
Dlib.rs65 elem: T, in vec_try_fill_with_alloc_err()
70 v.resize(len, elem); in vec_try_fill_with_alloc_err()
88 { $elem:expr ; $len:expr } => {
89 $crate::vec_try_fill_with_alloc_err($elem, $len)
/system/core/fastboot/fuzzy_fastboot/
Dextensions.cpp70 bool XMLAssert(bool cond, const tinyxml2::XMLElement* elem, const char* msg) { in XMLAssert() argument
72 printf("%s (line %d)\n", msg, elem->GetLineNum()); in XMLAssert()
77 const std::string XMLAttribute(const tinyxml2::XMLElement* elem, const std::string key, in XMLAttribute() argument
79 if (!elem->Attribute(key.c_str())) { in XMLAttribute()
83 return elem->Attribute(key.c_str()); in XMLAttribute()
86 bool XMLYesNo(const tinyxml2::XMLElement* elem, const std::string key, bool* res, in XMLYesNo() argument
88 if (!elem->Attribute(key.c_str())) { in XMLYesNo()
92 const std::string val = elem->Attribute(key.c_str()); in XMLYesNo()
/system/chre/apps/wifi_offload/include/chre/apps/wifi_offload/
Dvector_serialization.h33 for (const auto &elem : native_vector) { in SerializeVector() local
34 offset_vector.push_back(elem.Serialize(builder)); in SerializeVector()
/system/libfmq/tests/
Dmsgq_rust_test_client.rs73 for (i, elem) in data.iter_mut().enumerate() {
74 *elem = i as _;
/system/extras/simpleperf/
DETMDecoder.cpp350 const OcsdTraceElement& elem,
383 const OcsdTraceElement& elem) override { in TraceElemIn() argument
386 callback->ProcessElement(index_sop, trc_chan_id, elem, instruction_decoder_.instr_info); in TraceElemIn()
426 const OcsdTraceElement& elem, const ocsd_instr_info*) { in ProcessElement() argument
427 return element_printer_.TraceElemIn(index_sop, trc_chan_id, elem); in ProcessElement()
452 const OcsdTraceElement& elem, in ProcessElement() argument
454 if (elem.getType() == OCSD_GEN_TRC_ELEM_INSTR_RANGE) { in ProcessElement()
456 const MapEntry* map = map_locator_.FindMap(trace_id, elem.st_addr); in ProcessElement()
461 uint64_t start_addr = map->GetVaddrInFile(elem.st_addr); in ProcessElement()
473 instr_range.end_addr = map->GetVaddrInFile(elem.en_addr - elem.last_instr_sz); in ProcessElement()
[all …]
/system/keymaster/android_keymaster/
Dauthorization_set.cpp264 bool AuthorizationSet::push_back(keymaster_key_param_t elem) { in push_back() argument
271 if (is_blob_tag(elem.tag)) { in push_back()
272 if (indirect_data_capacity_ - indirect_data_size_ < elem.blob.data_length) in push_back()
273 if (!reserve_indirect(2 * (indirect_data_capacity_ + elem.blob.data_length))) in push_back()
276 memcpy(indirect_data_ + indirect_data_size_, elem.blob.data, elem.blob.data_length); in push_back()
277 elem.blob.data = indirect_data_ + indirect_data_size_; in push_back()
278 indirect_data_size_ += elem.blob.data_length; in push_back()
281 elems_[elems_size_++] = elem; in push_back()
/system/logging/liblog/tests/
Dliblog_test.cpp2015 android_log_list_element elem = {}; in android_log_buffer_to_string() local
2027 elem = android_log_read_next(context); in android_log_buffer_to_string()
2028 switch ((int)elem.type) { in android_log_buffer_to_string()
2053 outCount = snprintf(strOut, strOutLen + 1, "%" PRId32, elem.data.int32); in android_log_buffer_to_string()
2068 outCount = snprintf(strOut, strOutLen + 1, "%" PRId64, elem.data.int64); in android_log_buffer_to_string()
2083 outCount = snprintf(strOut, strOutLen + 1, "%f", elem.data.float32); in android_log_buffer_to_string()
2093 elem.complete = true; in android_log_buffer_to_string()
2098 if (elem.complete) { in android_log_buffer_to_string()
2102 elem.data.string = const_cast<char*>("<unknown>"); in android_log_buffer_to_string()
2103 elem.len = strlen(elem.data.string); in android_log_buffer_to_string()
[all …]
/system/keymint/common/src/
Dlib.rs126 { $elem:expr ; $len:expr } => {
127 kmr_wire::vec_try_fill_with_alloc_err($elem, $len, || $crate::alloc_err!($len))
/system/update_engine/aosp/
Dbinder_service_android.cc192 [&callback](const android::sp<IUpdateEngineCallback>& elem) { in UnbindCallback() argument
193 return IUpdateEngineCallback::asBinder(elem).get() == callback; in UnbindCallback()
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/
DHidlTestJava.java1150 byte[] elem = new byte[128]; in client()
1152 elem[j] = (byte)k; in client()
1154 in.add(elem); in client()
1169 byte[] elem = new byte[128 - i]; in client()
1171 elem[j] = (byte)k; in client()
1173 in.add(elem); in client()
1195 boolean[] elem = new boolean[128]; in client()
1197 elem[j] = (k & 4) != 0; in client()
1199 in.add(elem); in client()
1213 double[] elem = new double[128]; in client() local
[all …]
/system/keymint/wire/src/
Dlib.rs64 elem: T, in vec_try_fill_with_alloc_err()
70 v.resize(len, elem); in vec_try_fill_with_alloc_err()
148 { $elem:expr ; $len:expr } => {
149 $crate::vec_try_fill_with_alloc_err($elem, $len, || $crate::CborError::AllocationFailed)
/system/tools/aidl/
Dparser.cpp294 std::find_if(stack_.begin(), stack_.end(), [&](const auto& elem) { return elem == ref; }); in IsCircularReference() argument
/system/nvram/messages/include/nvram/messages/
Dproto.hpp210 for (const ElementType& elem : vector) { in Encode() local
211 if (!EncodeField<ElementCodec>(elem, writer)) { in Encode()
/system/tools/xsdc/build/
Dxsdc.go274 for _, elem := range module.properties.Root_elements {
275 args = args + " -r " + elem
/system/tools/hidl/
DAST.cpp894 [definedTypes](const auto &elem) { in addDefinedTypes() argument
895 if (!elem.second->isTypeDef()) { in addDefinedTypes()
896 definedTypes->insert(elem.first); in addDefinedTypes()
/system/chre/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h2248 bool Verify(size_t elem, size_t elem_len) const {
2251 auto upper_bound = elem + elem_len;
2256 return Check(elem_len < size_ && elem <= size_ - elem_len);
2259 template<typename T> bool VerifyAlignment(size_t elem) const {
2260 return Check((elem & (sizeof(T) - 1)) == 0 || !check_alignment_);
2264 template<typename T> bool Verify(size_t elem) const {
2265 return VerifyAlignment<T>(elem) && Verify(elem, sizeof(T));
/system/core/libsparse/
Doutput_file.cpp59 #define container_of(inner, outer_t, elem) ((outer_t*)((char*)(inner)-offsetof(outer_t, elem))) argument
/system/keymaster/include/keymaster/
Dauthorization_set.h367 bool push_back(keymaster_key_param_t elem);