Home
last modified time | relevance | path

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

12

/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.cpp47 LogBufferElement::LogBufferElement(const LogBufferElement& elem) in LogBufferElement() argument
48 : uid_(elem.uid_), in LogBufferElement()
49 pid_(elem.pid_), in LogBufferElement()
50 tid_(elem.tid_), in LogBufferElement()
51 sequence_(elem.sequence_), in LogBufferElement()
52 realtime_(elem.realtime_), in LogBufferElement()
53 msg_len_(elem.msg_len_), in LogBufferElement()
54 log_id_(elem.log_id_), in LogBufferElement()
55 dropped_(elem.dropped_) { in LogBufferElement()
57 tag_ = elem.GetTag(); in LogBufferElement()
[all …]
DChattyLogBuffer.cpp51 static enum match_type Identical(const LogBufferElement& elem, const LogBufferElement& last) { in Identical() argument
52 ssize_t lenl = elem.msg_len(); in Identical()
56 if (elem.uid() != last.uid()) return DIFFERENT; in Identical()
57 if (elem.pid() != last.pid()) return DIFFERENT; in Identical()
58 if (elem.tid() != last.tid()) return DIFFERENT; in Identical()
61 if (elem.realtime().nsec() > (last.realtime().nsec() + 60 * NS_PER_SEC)) return DIFFERENT; in Identical()
64 const char* msgl = elem.msg(); in Identical()
69 if (elem.log_id() == LOG_ID_EVENTS && lenl == sizeof(android_log_event_int_t) && in Identical()
71 elem.GetTag() == LIBLOG_LOG_TAG) { in Identical()
102 void ChattyLogBuffer::LogInternal(LogBufferElement&& elem) { in LogInternal() 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.h39 LogBufferElement(const LogBufferElement& elem);
40 LogBufferElement(LogBufferElement&& elem) noexcept;
DSerializedLogEntry.h44 SerializedLogEntry(const SerializedLogEntry& elem) = delete;
45 SerializedLogEntry& operator=(const SerializedLogEntry& elem) = delete;
/system/bt/gd/l2cap/internal/
Ddynamic_channel_allocator.cc43 auto elem = in AllocateChannel() local
45 ASSERT_LOG(elem.second, "Failed to create channel for psm 0x%x device %s", psm, in AllocateChannel()
47 ASSERT(elem.first->second != nullptr); in AllocateChannel()
50 return elem.first->second; in AllocateChannel()
59 auto elem = channels_.try_emplace( in AllocateReservedChannel() local
61 ASSERT_LOG(elem.second, "Failed to create channel for psm 0x%x device %s", psm, in AllocateReservedChannel()
63 ASSERT(elem.first->second != nullptr); in AllocateReservedChannel()
65 return elem.first->second; in AllocateReservedChannel()
123 for (auto& elem : channels_) { in OnAclDisconnected() local
124 elem.second->OnClosed(reason); in OnAclDisconnected()
Dfixed_channel_allocator.h55 …auto elem = channels_.try_emplace(cid, std::make_shared<FixedChannelImplType>(cid, link_, l2cap_ha… in AllocateChannel() local
56 …ASSERT_LOG(elem.second, "Failed to create channel for cid 0x%x link %s", cid, link_->ToString().c_… in AllocateChannel()
57 ASSERT(elem.first->second != nullptr); in AllocateChannel()
58 return elem.first->second; in AllocateChannel()
81 for (auto& elem : channels_) { in OnAclDisconnected()
82 elem.second->OnClosed(hci_status); in OnAclDisconnected()
88 for (auto& elem : channels_) { in GetRefCount()
89 if (elem.second->IsAcquired()) { in GetRefCount()
/system/bt/gd/l2cap/classic/internal/
Dfixed_channel_service_manager_impl.cc73 for (auto& elem : service_map_) { in GetRegisteredServices() local
74 results.emplace_back(elem.first, &elem.second); in GetRegisteredServices()
88 for (const auto& elem : service_map_) { in GetSupportedFixedChannelMask() local
89 Cid cid = elem.first; in GetSupportedFixedChannelMask()
Ddynamic_channel_service_manager_impl.cc71 for (auto& elem : service_map_) { in GetRegisteredServices() local
72 results.emplace_back(elem.first, &elem.second); in GetRegisteredServices()
/system/bt/gd/storage/
Dconfig_cache.cc297 for (const auto& elem : persistent_devices_) { in GetPersistentSections() local
298 paired_devices.emplace_back(elem.first); in GetPersistentSections()
343 for (const auto& elem : *config_section) { in GetSectionNamesWithProperty()
344 auto it = elem.second.find(property); in GetSectionNamesWithProperty()
345 if (it != elem.second.end()) { in GetSectionNamesWithProperty()
346 result.emplace_back(SectionAndPropertyValue{.section = elem.first, .property = it->second}); in GetSectionNamesWithProperty()
351 for (const auto& elem : temporary_devices_) { in GetSectionNamesWithProperty() local
352 auto it = elem.second.find(property); in GetSectionNamesWithProperty()
353 if (it != elem.second.end()) { in GetSectionNamesWithProperty()
354 result.emplace_back(SectionAndPropertyValue{.section = elem.first, .property = it->second}); in GetSectionNamesWithProperty()
[all …]
/system/bt/gd/l2cap/le/internal/
Ddynamic_channel_service_manager_impl.cc69 for (auto& elem : service_map_) { in GetRegisteredServices() local
70 results.emplace_back(elem.first, &elem.second); in GetRegisteredServices()
Dfixed_channel_service_manager_impl.cc73 for (auto& elem : service_map_) { in GetRegisteredServices() local
74 results.emplace_back(elem.first, &elem.second); in GetRegisteredServices()
/system/bt/stack/test/
Dstack_gatt_sr_hash_test.cc35 tGATT_SRV_LIST_ELEM& elem = srv_list_info.back(); in add_item_to_list() local
36 elem.p_db = db; in add_item_to_list()
37 elem.is_primary = is_primary; in add_item_to_list()
/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/bt/stack/gatt/
Dgatt_api.cc300 tGATT_SRV_LIST_ELEM& elem = *rit; in GATTS_AddService() local
301 elem.gatt_if = gatt_if; in GATTS_AddService()
302 elem.s_hdl = list.asgn_range.s_handle; in GATTS_AddService()
303 elem.e_hdl = list.asgn_range.e_handle; in GATTS_AddService()
304 elem.p_db = &list.svc_db; in GATTS_AddService()
305 elem.is_primary = list.asgn_range.is_primary; in GATTS_AddService()
307 elem.app_uuid = list.asgn_range.app_uuid128; in GATTS_AddService()
308 elem.type = list.asgn_range.is_primary ? GATT_UUID_PRI_SERVICE in GATTS_AddService()
311 if (elem.type == GATT_UUID_PRI_SERVICE) { in GATTS_AddService()
312 Uuid* p_uuid = gatts_get_service_uuid(elem.p_db); in GATTS_AddService()
[all …]
/system/extras/simpleperf/
DETMDecoder.cpp324 const OcsdTraceElement& elem,
356 const OcsdTraceElement& elem) override { in TraceElemIn() argument
359 callback->ProcessElement(index_sop, trc_chan_id, elem, instruction_decoder_.instr_info); in TraceElemIn()
399 const OcsdTraceElement& elem, const ocsd_instr_info*) { in ProcessElement() argument
400 return element_printer_.TraceElemIn(index_sop, trc_chan_id, elem); in ProcessElement()
425 const OcsdTraceElement& elem, in ProcessElement() argument
427 if (elem.getType() == OCSD_GEN_TRC_ELEM_INSTR_RANGE) { in ProcessElement()
429 const MapEntry* map = map_locator_.FindMap(trace_id, elem.st_addr); in ProcessElement()
434 uint64_t start_addr = map->GetVaddrInFile(elem.st_addr); in ProcessElement()
446 instr_range.end_addr = map->GetVaddrInFile(elem.en_addr - elem.last_instr_sz); in ProcessElement()
[all …]
/system/keymaster/android_keymaster/
Dauthorization_set.cpp271 bool AuthorizationSet::push_back(keymaster_key_param_t elem) { in push_back() argument
278 if (is_blob_tag(elem.tag)) { in push_back()
279 if (indirect_data_capacity_ - indirect_data_size_ < elem.blob.data_length) in push_back()
280 if (!reserve_indirect(2 * (indirect_data_capacity_ + elem.blob.data_length))) in push_back()
283 memcpy(indirect_data_ + indirect_data_size_, elem.blob.data, elem.blob.data_length); in push_back()
284 elem.blob.data = indirect_data_ + indirect_data_size_; in push_back()
285 indirect_data_size_ += elem.blob.data_length; in push_back()
288 elems_[elems_size_++] = elem; in push_back()
/system/bt/gd/hci/facade/
Dle_advertising_manager_facade.cc54 for (const auto& elem : config_proto.advertisement()) { in AdvertisingConfigFromProto() local
55 config->advertisement.push_back(GapDataFromProto(elem)); in AdvertisingConfigFromProto()
58 for (const auto& elem : config_proto.scan_response()) { in AdvertisingConfigFromProto() local
59 config->scan_response.push_back(GapDataFromProto(elem)); in AdvertisingConfigFromProto()
/system/bt/stack/a2dp/
Da2dp_api.cc70 tSDP_PROTOCOL_ELEM elem; in a2dp_sdp_cback() local
107 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_AVDTP, &elem)) { in a2dp_sdp_cback()
108 a2dp_svc.avdt_version = elem.params[0]; in a2dp_sdp_cback()
/system/logging/liblog/tests/
Dliblog_test.cpp2067 android_log_list_element elem; in android_log_buffer_to_string() local
2076 memset(&elem, 0, sizeof(elem)); in android_log_buffer_to_string()
2081 elem = android_log_read_next(context); in android_log_buffer_to_string()
2082 switch ((int)elem.type) { in android_log_buffer_to_string()
2107 outCount = snprintf(strOut, strOutLen + 1, "%" PRId32, elem.data.int32); in android_log_buffer_to_string()
2122 outCount = snprintf(strOut, strOutLen + 1, "%" PRId64, elem.data.int64); in android_log_buffer_to_string()
2137 outCount = snprintf(strOut, strOutLen + 1, "%f", elem.data.float32); in android_log_buffer_to_string()
2147 elem.complete = true; in android_log_buffer_to_string()
2152 if (elem.complete) { in android_log_buffer_to_string()
2156 elem.data.string = const_cast<char*>("<unknown>"); in android_log_buffer_to_string()
[all …]
/system/bt/stack/avdt/
Davdt_msg.cc527 uint8_t elem = 0; in avdt_msg_prs_cfg() local
552 elem = *p++; in avdt_msg_prs_cfg()
555 if ((elem == 0) || (elem > AVDT_CAT_MAX_CUR)) { in avdt_msg_prs_cfg()
571 AVDT_TRACE_DEBUG("skipping unknown service category=%d len: %d", elem, in avdt_msg_prs_cfg()
577 if ((elem_len > avdt_msg_ie_len_max[elem]) || in avdt_msg_prs_cfg()
578 (elem_len < avdt_msg_ie_len_min[elem])) { in avdt_msg_prs_cfg()
579 err = avdt_msg_ie_err[elem]; in avdt_msg_prs_cfg()
584 p_cfg->psc_mask |= (1 << elem); in avdt_msg_prs_cfg()
585 AVDT_TRACE_DEBUG("elem=%d elem_len: %d psc_mask=0x%x", elem, elem_len, in avdt_msg_prs_cfg()
589 switch (elem) { in avdt_msg_prs_cfg()
[all …]
/system/tools/aidl/
Dparser.cpp115 [&](const auto& elem) { return elem.ref == ref; }); in IsCircularReference() argument
/system/bt/test/mock/
Dmock_stack_gatt.cc35 tGATT_HDL_LIST_ELEM elem; // gatt_add_an_item_to_list variable
83 return elem; in gatt_add_an_item_to_list()

12