Home
last modified time | relevance | path

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

/art/dexlayout/
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()
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
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()
/art/libdexfile/dex/
Ddex_file-inl.h41 inline int32_t DexFile::GetStringLength(const dex::StringId& string_id) const { in GetStringLength() argument
42 const uint8_t* ptr = DataBegin() + string_id.string_data_off_; in GetStringLength()
46 inline const char* DexFile::GetStringDataAndUtf16Length(const dex::StringId& string_id, in GetStringDataAndUtf16Length() argument
49 const uint8_t* ptr = DataBegin() + string_id.string_data_off_; in GetStringDataAndUtf16Length()
54 inline const char* DexFile::GetStringData(const dex::StringId& string_id) const { in GetStringData() argument
56 return GetStringDataAndUtf16Length(string_id, &ignored); in GetStringData()
65 const dex::StringId& string_id = GetStringId(idx); in StringDataAndUtf16LengthByIdx() local
66 return GetStringDataAndUtf16Length(string_id, utf16_length); in StringDataAndUtf16LengthByIdx()
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()
Ddex_file.h245 dex::StringIndex GetIndexForStringId(const dex::StringId& string_id) const { in GetIndexForStringId() argument
246 CHECK_GE(&string_id, string_ids_) << GetLocation(); in GetIndexForStringId()
247 CHECK_LT(&string_id, string_ids_ + header_->string_ids_size_) << GetLocation(); in GetIndexForStringId()
248 return dex::StringIndex(&string_id - string_ids_); in GetIndexForStringId()
251 int32_t GetStringLength(const dex::StringId& string_id) const;
256 const char* GetStringDataAndUtf16Length(const dex::StringId& string_id,
259 const char* GetStringData(const dex::StringId& string_id) const;
Ddex_file_verifier.cc3062 const dex::StringId* string_id = in GetStringOrError() local
3067 const uint8_t* ptr = begin + string_id->string_data_off_; in GetStringOrError()
/art/runtime/verifier/
Dverifier_deps.cc156 const dex::StringIndex string_id = TryGetClassDescriptorStringId( in GetMethodDeclaringClassStringId() local
160 if (string_id.IsValid()) { in GetMethodDeclaringClassStringId()
162 DCHECK_EQ(GetClassDescriptorStringId(dex_file, method->GetDeclaringClass()), string_id); in GetMethodDeclaringClassStringId()
163 return string_id; in GetMethodDeclaringClassStringId()
175 const dex::StringIndex string_id = TryGetClassDescriptorStringId( in GetFieldDeclaringClassStringId() local
179 if (string_id.IsValid()) { in GetFieldDeclaringClassStringId()
181 DCHECK_EQ(GetClassDescriptorStringId(dex_file, field->GetDeclaringClass()), string_id); in GetFieldDeclaringClassStringId()
182 return string_id; in GetFieldDeclaringClassStringId()
220 const dex::StringId* string_id = dex_file.FindStringId(str.c_str()); in GetIdFromString() local
221 if (string_id != nullptr) { in GetIdFromString()
[all …]
Dverifier_deps.h275 std::string GetStringFromId(const DexFile& dex_file, dex::StringIndex string_id) const;
/art/runtime/
Dtransaction_test.cc500 const dex::StringId* string_id = dex_file->FindStringId(kResolvedString); in TEST_F() local
501 ASSERT_TRUE(string_id != nullptr); in TEST_F()
502 dex::StringIndex string_idx = dex_file->GetIndexForStringId(*string_id); in TEST_F()
Ddebugger.h453 static JDWP::JdwpError StringToUtf8(JDWP::ObjectId string_id, std::string* str)
Ddebugger.cc2017 JDWP::JdwpError Dbg::StringToUtf8(JDWP::ObjectId string_id, std::string* str) { in StringToUtf8() argument
2019 mirror::Object* obj = gRegistry->Get<mirror::Object*>(string_id, &error); in StringToUtf8()
/art/runtime/jdwp/
Djdwp_handler.cc275 ObjectId string_id; in VM_CreateString() local
276 JdwpError status = Dbg::CreateString(str, &string_id); in VM_CreateString()
280 expandBufAddObjectId(pReply, string_id); in VM_CreateString()