Home
last modified time | relevance | path

Searched refs:string_id (Results 1 – 15 of 15) sorted by relevance

/aosp12/art/libdexfile/dex/
H A Ddex_file-inl.h42 inline int32_t DexFile::GetStringLength(const dex::StringId& string_id) const { in GetStringLength() argument
43 const uint8_t* ptr = DataBegin() + string_id.string_data_off_; in GetStringLength()
47 inline const char* DexFile::GetStringDataAndUtf16Length(const dex::StringId& string_id, in GetStringDataAndUtf16Length() argument
50 const uint8_t* ptr = DataBegin() + string_id.string_data_off_; in GetStringDataAndUtf16Length()
55 inline const char* DexFile::GetStringData(const dex::StringId& string_id) const { in GetStringData() argument
57 return GetStringDataAndUtf16Length(string_id, &ignored); in GetStringData()
66 const dex::StringId& string_id = GetStringId(idx); in StringDataAndUtf16LengthByIdx() local
67 return GetStringDataAndUtf16Length(string_id, utf16_length); in StringDataAndUtf16LengthByIdx()
H A Ddex_file_tracking_registrar.cc221 const dex::StringId & string_id = dex_file_->GetStringId(StringIndex(stringid_ctr)); in SetAllStringDataStartRegistration() local
222 …const void* string_data_begin = reinterpret_cast<const void*>(dex_file_->Begin() + string_id.strin… in SetAllStringDataStartRegistration()
224 … void* string_data_data_begin = reinterpret_cast<const void*>(dex_file_->GetStringData(string_id)); in SetAllStringDataStartRegistration()
H A Ddex_file.h249 dex::StringIndex GetIndexForStringId(const dex::StringId& string_id) const { in GetIndexForStringId() argument
250 CHECK_GE(&string_id, string_ids_) << GetLocation(); in GetIndexForStringId()
251 CHECK_LT(&string_id, string_ids_ + header_->string_ids_size_) << GetLocation(); in GetIndexForStringId()
252 return dex::StringIndex(&string_id - string_ids_); in GetIndexForStringId()
255 int32_t GetStringLength(const dex::StringId& string_id) const;
260 const char* GetStringDataAndUtf16Length(const dex::StringId& string_id,
263 const char* GetStringData(const dex::StringId& string_id) const;
H A Ddex_file_verifier_test.cc249 const dex::StringId& string_id = dex_file->GetStringId(name_index); in FindMethodData() local
250 const char* str = dex_file->GetStringData(string_id); in FindMethodData()
842 const dex::StringId& string_id = dex_file->GetStringId(name_index); in FindFieldData() local
843 const char* str = dex_file->GetStringData(string_id); in FindFieldData()
H A Ddex_file_verifier.cc133 const dex::StringId* string_id = in GetString() local
138 const uint8_t* ptr = begin + string_id->string_data_off_; in GetString()
/aosp12/art/dexlayout/
H A Ddex_visualize.cc117 void DumpStringId(const dex_ir::StringId* string_id, int class_index) { in DumpStringId() argument
118 DumpAddressRange(string_id, class_index); in DumpStringId()
119 if (string_id == nullptr) { in DumpStringId()
122 DumpStringData(string_id->DataItem(), class_index); in DumpStringId()
196 for (dex_ir::StringId* string_id : fixups->StringIds()) { in DumpMethodItem()
197 DumpStringId(string_id, class_index); in DumpMethodItem()
H A Ddexlayout.cc531 dex_ir::StringId* string_id = data->GetStringId(); in DumpEncodedValue() local
533 DumpEscapedString(string_id->Data(), out_file_); in DumpEncodedValue()
535 DumpXmlAttribute(string_id->Data(), out_file_); in DumpEncodedValue()
1054 if (string_id == nullptr) { in StringDataByIdx()
1057 return string_id->Data(); in StringDataByIdx()
1066 if (string_id == nullptr) { in StringDataByTypeIdx()
1069 return string_id->Data(); in StringDataByTypeIdx()
1689 for (auto& string_id : header_->StringIds()) { in LayoutStringData() local
1690 string_ids.push_back(string_id.get()); in LayoutStringData()
1713 for (dex_ir::StringId* string_id : string_ids) { in LayoutStringData()
[all …]
H A Ddex_ir.h86 virtual void Dispatch(const StringId* string_id) = 0;
620 explicit TypeId(StringId* string_id) : string_id_(string_id) { size_ = kTypeIdItemSize; } in TypeId() argument
779 void SetStringId(StringId* string_id) { u_.string_val_ = string_id; } in SetStringId() argument
H A Ddex_writer.cc234 for (auto& string_id : header_->StringIds()) { in WriteStringIds() local
237 stream->Skip(string_id->GetSize()); in WriteStringIds()
239 uint32_t string_data_off = string_id->DataItem()->GetOffset(); in WriteStringIds()
240 stream->Write(&string_data_off, string_id->GetSize()); in WriteStringIds()
/aosp12/art/runtime/verifier/
H A Dverifier_deps.cc141 const dex::StringId* string_id = dex_file.FindStringId(str.c_str()); in GetIdFromString() local
142 if (string_id != nullptr) { in GetIdFromString()
144 return dex_file.GetIndexForStringId(*string_id); in GetIdFromString()
178 std::string VerifierDeps::GetStringFromId(const DexFile& dex_file, dex::StringIndex string_id) in GetStringFromId()
181 if (string_id.index_ < num_ids_in_dex) { in GetStringFromId()
182 return std::string(dex_file.StringDataByIdx(string_id)); in GetStringFromId()
186 string_id.index_ -= num_ids_in_dex; in GetStringFromId()
187 CHECK_LT(string_id.index_, deps->strings_.size()); in GetStringFromId()
188 return deps->strings_[string_id.index_]; in GetStringFromId()
H A Dverifier_deps.h204 std::string GetStringFromId(const DexFile& dex_file, dex::StringIndex string_id) const;
/aosp12/art/runtime/
H A Dvdex_file.cc392 dex::StringIndex string_id, in GetStringFromId() argument
397 if (string_id.index_ < num_ids_in_dex) { in GetStringFromId()
398 return dex_file.StringDataByIdx(string_id); in GetStringFromId()
400 CHECK_LT(string_id.index_ - num_ids_in_dex, number_of_extra_strings); in GetStringFromId()
401 uint32_t offset = extra_strings_offsets[string_id.index_ - num_ids_in_dex]; in GetStringFromId()
H A Dtransaction_test.cc506 const dex::StringId* string_id = dex_file->FindStringId(kResolvedString); in TEST_F() local
507 ASSERT_TRUE(string_id != nullptr); in TEST_F()
508 dex::StringIndex string_idx = dex_file->GetIndexForStringId(*string_id); in TEST_F()
/aosp12/system/logging/logd/
H A DReplayMessages.cpp115 for (const auto& string_id : string_ids) { in BuffersToLogMask() local
117 if (!ParseInt(string_id, &buffer_id, 0, 7)) { in BuffersToLogMask()
118 fprintf(stderr, "Could not parse buffer_id '%s'\n", string_id.c_str()); in BuffersToLogMask()
/aosp12/system/extras/simpleperf/scripts/
H A Dpprof_proto_generator.py161 def string(self, string_id): argument
162 return self.string_table[string_id]