Searched refs:string_id (Results 1 – 12 of 12) sorted by relevance
/art/dexlayout/ |
D | dex_visualize.cc | 117 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()
|
D | dexlayout.cc | 531 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() 1053 dex_ir::StringId* string_id = header->GetStringIdOrNullPtr(idx); in StringDataByIdx() local 1054 if (string_id == nullptr) { in StringDataByIdx() 1057 return string_id->Data(); in StringDataByIdx() 1065 dex_ir::StringId* string_id = type_id->GetStringId(); in StringDataByTypeIdx() local 1066 if (string_id == nullptr) { in StringDataByTypeIdx() 1069 return string_id->Data(); in StringDataByTypeIdx() 1686 for (auto& string_id : header_->StringIds()) { in LayoutStringData() local [all …]
|
D | dex_ir.h | 86 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
|
D | dex_writer.cc | 234 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/ |
D | dex_file-inl.h | 42 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()
|
D | dex_file_tracking_registrar.cc | 221 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()
|
D | dex_file.h | 248 dex::StringIndex GetIndexForStringId(const dex::StringId& string_id) const { in GetIndexForStringId() argument 249 CHECK_GE(&string_id, string_ids_) << GetLocation(); in GetIndexForStringId() 250 CHECK_LT(&string_id, string_ids_ + header_->string_ids_size_) << GetLocation(); in GetIndexForStringId() 251 return dex::StringIndex(&string_id - string_ids_); in GetIndexForStringId() 254 int32_t GetStringLength(const dex::StringId& string_id) const; 259 const char* GetStringDataAndUtf16Length(const dex::StringId& string_id, 262 const char* GetStringData(const dex::StringId& string_id) const;
|
D | dex_file_verifier_test.cc | 249 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()
|
D | dex_file_verifier.cc | 133 const dex::StringId* string_id = in GetString() local 138 const uint8_t* ptr = begin + string_id->string_data_off_; in GetString()
|
/art/runtime/verifier/ |
D | verifier_deps.cc | 156 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 …]
|
D | verifier_deps.h | 275 std::string GetStringFromId(const DexFile& dex_file, dex::StringIndex string_id) const;
|
/art/runtime/ |
D | transaction_test.cc | 506 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()
|