/system/core/liblog/ |
D | log_event_list.cpp | 356 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/core/logd/ |
D | LogBufferElement.cpp | 47 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 …]
|
D | ChattyLogBuffer.cpp | 51 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 …]
|
D | LogTags.cpp | 320 android_log_list_element elem; in ReadPersistEventLogTags() local 325 elem = android_log_read_next(ctx); in ReadPersistEventLogTags() 326 if (elem.type != EVENT_TYPE_LIST) { in ReadPersistEventLogTags() 329 elem = android_log_read_next(ctx); in ReadPersistEventLogTags() 330 if (elem.type != EVENT_TYPE_INT) { in ReadPersistEventLogTags() 333 Tag = elem.data.int32; in ReadPersistEventLogTags() 334 elem = android_log_read_next(ctx); in ReadPersistEventLogTags() 335 if (elem.type != EVENT_TYPE_STRING) { in ReadPersistEventLogTags() 338 Name = std::string(elem.data.string, elem.len); in ReadPersistEventLogTags() 339 elem = android_log_read_next(ctx); in ReadPersistEventLogTags() [all …]
|
D | LogBufferElement.h | 39 LogBufferElement(const LogBufferElement& elem); 40 LogBufferElement(LogBufferElement&& elem) noexcept;
|
D | SerializedLogEntry.h | 44 SerializedLogEntry(const SerializedLogEntry& elem) = delete; 45 SerializedLogEntry& operator=(const SerializedLogEntry& elem) = delete;
|
D | ChattyLogBuffer.h | 58 void LogInternal(LogBufferElement&& elem) REQUIRES(lock_) override;
|
/system/bt/gd/l2cap/internal/ |
D | fixed_channel_allocator.h | 48 …auto elem = channels_.try_emplace(cid, std::make_shared<FixedChannelImplType>(cid, link_, l2cap_ha… in AllocateChannel() local 49 …ASSERT_LOG(elem.second, "Failed to create channel for cid 0x%x link %s", cid, link_->ToString().c_… in AllocateChannel() 50 ASSERT(elem.first->second != nullptr); in AllocateChannel() 51 return elem.first->second; in AllocateChannel() 74 for (auto& elem : channels_) { in OnAclDisconnected() 75 elem.second->OnClosed(hci_status); in OnAclDisconnected() 81 for (auto& elem : channels_) { in GetRefCount() 82 if (elem.second->IsAcquired()) { in GetRefCount()
|
D | dynamic_channel_allocator.cc | 45 auto elem = in AllocateChannel() local 47 ASSERT_LOG(elem.second, "Failed to create channel for psm 0x%x device %s", psm, in AllocateChannel() 49 ASSERT(elem.first->second != nullptr); in AllocateChannel() 52 return elem.first->second; in AllocateChannel() 63 auto elem = channels_.try_emplace( in AllocateReservedChannel() local 65 ASSERT_LOG(elem.second, "Failed to create channel for psm 0x%x device %s", psm, in AllocateReservedChannel() 67 ASSERT(elem.first->second != nullptr); in AllocateReservedChannel() 69 return elem.first->second; in AllocateReservedChannel() 127 for (auto& elem : channels_) { in OnAclDisconnected() local 128 elem.second->OnClosed(reason); in OnAclDisconnected()
|
/system/bt/gd/l2cap/classic/internal/ |
D | fixed_channel_service_manager_impl.cc | 73 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()
|
D | dynamic_channel_service_manager_impl.cc | 71 for (auto& elem : service_map_) { in GetRegisteredServices() local 72 results.emplace_back(elem.first, &elem.second); in GetRegisteredServices()
|
/system/bt/gd/storage/ |
D | config_cache.cc | 297 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/ |
D | fixed_channel_service_manager_impl.cc | 73 for (auto& elem : service_map_) { in GetRegisteredServices() local 74 results.emplace_back(elem.first, &elem.second); in GetRegisteredServices()
|
D | dynamic_channel_service_manager_impl.cc | 74 for (auto& elem : service_map_) { in GetRegisteredServices() local 75 results.emplace_back(elem.first, &elem.second); in GetRegisteredServices()
|
/system/core/fastboot/fuzzy_fastboot/ |
D | extensions.cpp | 70 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/ |
D | vector_serialization.h | 33 for (const auto &elem : native_vector) { in SerializeVector() local 34 offset_vector.push_back(elem.Serialize(builder)); in SerializeVector()
|
/system/core/adb/ |
D | adb_trace.cpp | 134 for (const auto& elem : elements) { in setup_trace_mask() local 135 const auto& flag = trace_flags.find(elem); in setup_trace_mask() 137 LOG(ERROR) << "Unknown trace flag: " << elem; in setup_trace_mask()
|
/system/bt/stack/gatt/ |
D | gatt_api.cc | 276 tGATT_SRV_LIST_ELEM& elem = *rit; in GATTS_AddService() local 277 elem.gatt_if = gatt_if; in GATTS_AddService() 278 elem.s_hdl = list.asgn_range.s_handle; in GATTS_AddService() 279 elem.e_hdl = list.asgn_range.e_handle; in GATTS_AddService() 280 elem.p_db = &list.svc_db; in GATTS_AddService() 281 elem.is_primary = list.asgn_range.is_primary; in GATTS_AddService() 283 elem.app_uuid = list.asgn_range.app_uuid128; in GATTS_AddService() 284 elem.type = list.asgn_range.is_primary ? GATT_UUID_PRI_SERVICE in GATTS_AddService() 287 if (elem.type == GATT_UUID_PRI_SERVICE) { in GATTS_AddService() 288 Uuid* p_uuid = gatts_get_service_uuid(elem.p_db); in GATTS_AddService() [all …]
|
/system/security/keystore/ |
D | operation_proto_handler.cpp | 133 for (auto elem : protoMap) { in uploadOpAsProto() local 135 event->mutable_op_config()->ParseFromString(elem.first); in uploadOpAsProto() 136 event->set_count(elem.second); in uploadOpAsProto()
|
/system/extras/simpleperf/ |
D | ETMDecoder.cpp | 315 const OcsdTraceElement& elem, 347 const OcsdTraceElement& elem) override { in TraceElemIn() argument 350 callback->ProcessElement(index_sop, trc_chan_id, elem, instruction_decoder_.instr_info); in TraceElemIn() 390 const OcsdTraceElement& elem, const ocsd_instr_info*) { in ProcessElement() argument 391 return element_printer_.TraceElemIn(index_sop, trc_chan_id, elem); in ProcessElement() 416 const OcsdTraceElement& elem, in ProcessElement() argument 418 if (elem.getType() == OCSD_GEN_TRC_ELEM_INSTR_RANGE) { in ProcessElement() 420 const MapEntry* map = map_locator_.FindMap(trace_id, elem.st_addr); in ProcessElement() 425 uint64_t start_addr = map->GetVaddrInFile(elem.st_addr); in ProcessElement() 437 instr_range.end_addr = map->GetVaddrInFile(elem.en_addr - elem.last_instr_sz); in ProcessElement() [all …]
|
/system/keymaster/android_keymaster/ |
D | authorization_set.cpp | 286 bool AuthorizationSet::push_back(keymaster_key_param_t elem) { in push_back() argument 294 if (is_blob_tag(elem.tag)) { in push_back() 295 if (indirect_data_capacity_ - indirect_data_size_ < elem.blob.data_length) in push_back() 296 if (!reserve_indirect(2 * (indirect_data_capacity_ + elem.blob.data_length))) in push_back() 299 memcpy(indirect_data_ + indirect_data_size_, elem.blob.data, elem.blob.data_length); in push_back() 300 elem.blob.data = indirect_data_ + indirect_data_size_; in push_back() 301 indirect_data_size_ += elem.blob.data_length; in push_back() 304 elems_[elems_size_++] = elem; in push_back()
|
/system/bt/gd/hci/facade/ |
D | le_advertising_manager_facade.cc | 54 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/core/liblog/tests/ |
D | liblog_test.cpp | 2067 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/a2dp/ |
D | a2dp_api.cc | 70 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/bt/stack/avdt/ |
D | avdt_msg.cc | 525 uint8_t elem = 0; in avdt_msg_prs_cfg() local 550 elem = *p++; in avdt_msg_prs_cfg() 553 if ((elem == 0) || (elem > AVDT_CAT_MAX_CUR)) { in avdt_msg_prs_cfg() 569 AVDT_TRACE_DEBUG("skipping unknown service category=%d len: %d", elem, in avdt_msg_prs_cfg() 575 if ((elem_len > avdt_msg_ie_len_max[elem]) || in avdt_msg_prs_cfg() 576 (elem_len < avdt_msg_ie_len_min[elem])) { in avdt_msg_prs_cfg() 577 err = avdt_msg_ie_err[elem]; in avdt_msg_prs_cfg() 582 p_cfg->psc_mask |= (1 << elem); in avdt_msg_prs_cfg() 583 AVDT_TRACE_DEBUG("elem=%d elem_len: %d psc_mask=0x%x", elem, elem_len, in avdt_msg_prs_cfg() 587 switch (elem) { in avdt_msg_prs_cfg() [all …]
|