/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 | 544 dex_ir::StringId* string_id = data->GetStringId(); in DumpEncodedValue() local 546 DumpEscapedString(string_id->Data(), out_file_); in DumpEncodedValue() 548 DumpXmlAttribute(string_id->Data(), out_file_); in DumpEncodedValue() 1087 dex_ir::StringId* string_id = collections.GetStringIdOrNullPtr(idx); in StringDataByIdx() local 1088 if (string_id == nullptr) { in StringDataByIdx() 1091 return string_id->Data(); in StringDataByIdx() 1099 dex_ir::StringId* string_id = type_id->GetStringId(); in StringDataByTypeIdx() local 1100 if (string_id == nullptr) { in StringDataByTypeIdx() 1103 return string_id->Data(); in StringDataByTypeIdx() 1681 for (auto& string_id : header_->GetCollections().StringIds()) { in LayoutStringData() local [all …]
|
D | dex_ir.h | 84 virtual void Dispatch(const StringId* string_id) = 0; 642 explicit TypeId(StringId* string_id) : string_id_(string_id) { size_ = kTypeIdItemSize; } in TypeId() argument 797 void SetStringId(StringId* string_id) { u_.string_val_ = string_id; } in SetStringId() argument
|
D | dex_writer.cc | 234 for (std::unique_ptr<dex_ir::StringId>& string_id : header_->GetCollections().StringIds()) { in WriteStringIds() 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()
|
D | dex_ir.cc | 324 StringId* string_id = new StringId(string_data); in CreateStringId() local 325 AddIndexedItem(string_ids_, string_id, StringIdsOffset() + i * StringId::ItemSize(), i); in CreateStringId()
|
/art/libdexfile/dex/ |
D | dex_file-inl.h | 30 inline int32_t DexFile::GetStringLength(const StringId& string_id) const { in GetStringLength() argument 31 const uint8_t* ptr = DataBegin() + string_id.string_data_off_; in GetStringLength() 35 inline const char* DexFile::GetStringDataAndUtf16Length(const StringId& string_id, in GetStringDataAndUtf16Length() argument 38 const uint8_t* ptr = DataBegin() + string_id.string_data_off_; in GetStringDataAndUtf16Length() 43 inline const char* DexFile::GetStringData(const StringId& string_id) const { in GetStringData() argument 45 return GetStringDataAndUtf16Length(string_id, &ignored); in GetStringData() 54 const StringId& string_id = GetStringId(idx); in StringDataAndUtf16LengthByIdx() local 55 return GetStringDataAndUtf16Length(string_id, utf16_length); in StringDataAndUtf16LengthByIdx()
|
D | dex_file_tracking_registrar.cc | 247 const DexFile::StringId & string_id = dex_file_->GetStringId(StringIndex(stringid_ctr)); in SetAllStringDataStartRegistration() local 248 …const void* string_data_begin = reinterpret_cast<const void*>(dex_file_->Begin() + string_id.strin… in SetAllStringDataStartRegistration() 250 … void* string_data_data_begin = reinterpret_cast<const void*>(dex_file_->GetStringData(string_id)); in SetAllStringDataStartRegistration()
|
D | dex_file.h | 482 dex::StringIndex GetIndexForStringId(const StringId& string_id) const { in GetIndexForStringId() argument 483 CHECK_GE(&string_id, string_ids_) << GetLocation(); in GetIndexForStringId() 484 CHECK_LT(&string_id, string_ids_ + header_->string_ids_size_) << GetLocation(); in GetIndexForStringId() 485 return dex::StringIndex(&string_id - string_ids_); in GetIndexForStringId() 488 int32_t GetStringLength(const StringId& string_id) const; 493 const char* GetStringDataAndUtf16Length(const StringId& string_id, uint32_t* utf16_length) const; 495 const char* GetStringData(const StringId& string_id) const;
|
D | dex_file_verifier_test.cc | 246 const DexFile::StringId& string_id = dex_file->GetStringId(name_index); in FindMethodData() local 247 const char* str = dex_file->GetStringData(string_id); in FindMethodData() 851 const DexFile::StringId& string_id = dex_file->GetStringId(name_index); in FindFieldData() local 852 const char* str = dex_file->GetStringData(string_id); in FindFieldData()
|
D | dex_file_verifier.cc | 2911 const DexFile::StringId* string_id = in GetStringOrError() local 2917 const uint8_t* ptr = begin + string_id->string_data_off_; in GetStringOrError()
|
/art/runtime/verifier/ |
D | verifier_deps.cc | 139 const dex::StringIndex string_id = TryGetClassDescriptorStringId( in GetMethodDeclaringClassStringId() local 143 if (string_id.IsValid()) { in GetMethodDeclaringClassStringId() 145 DCHECK_EQ(GetClassDescriptorStringId(dex_file, method->GetDeclaringClass()), string_id); in GetMethodDeclaringClassStringId() 146 return string_id; in GetMethodDeclaringClassStringId() 158 const dex::StringIndex string_id = TryGetClassDescriptorStringId( in GetFieldDeclaringClassStringId() local 162 if (string_id.IsValid()) { in GetFieldDeclaringClassStringId() 164 DCHECK_EQ(GetClassDescriptorStringId(dex_file, field->GetDeclaringClass()), string_id); in GetFieldDeclaringClassStringId() 165 return string_id; in GetFieldDeclaringClassStringId() 203 const DexFile::StringId* string_id = dex_file.FindStringId(str.c_str()); in GetIdFromString() local 204 if (string_id != nullptr) { in GetIdFromString() [all …]
|
D | verifier_deps.h | 233 std::string GetStringFromId(const DexFile& dex_file, dex::StringIndex string_id) const;
|
/art/runtime/ |
D | transaction_test.cc | 491 const DexFile::StringId* string_id = dex_file->FindStringId(kResolvedString); in TEST_F() local 492 ASSERT_TRUE(string_id != nullptr); in TEST_F() 493 dex::StringIndex string_idx = dex_file->GetIndexForStringId(*string_id); in TEST_F()
|
D | debugger.h | 441 static JDWP::JdwpError StringToUtf8(JDWP::ObjectId string_id, std::string* str)
|
D | debugger.cc | 2050 JDWP::JdwpError Dbg::StringToUtf8(JDWP::ObjectId string_id, std::string* str) { in StringToUtf8() argument 2052 mirror::Object* obj = gRegistry->Get<mirror::Object*>(string_id, &error); in StringToUtf8()
|
/art/runtime/jdwp/ |
D | jdwp_handler.cc | 275 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()
|