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

/art/runtime/
H A Ddex_file-inl.h28 inline int32_t DexFile::GetStringLength(const StringId& string_id) const {
29 const uint8_t* ptr = begin_ + string_id.string_data_off_;
33 inline const char* DexFile::GetStringDataAndUtf16Length(const StringId& string_id, argument
36 const uint8_t* ptr = begin_ + string_id.string_data_off_;
41 inline const char* DexFile::GetStringData(const StringId& string_id) const {
43 return GetStringDataAndUtf16Length(string_id, &ignored);
52 const StringId& string_id = GetStringId(idx); local
53 return GetStringDataAndUtf16Length(string_id, utf16_length);
H A Ddex_file.h551 dex::StringIndex GetIndexForStringId(const StringId& string_id) const {
552 CHECK_GE(&string_id, string_ids_) << GetLocation();
553 CHECK_LT(&string_id, string_ids_ + header_->string_ids_size_) << GetLocation();
554 return dex::StringIndex(&string_id - string_ids_);
557 int32_t GetStringLength(const StringId& string_id) const;
559 // Returns a pointer to the UTF-8 string data referred to by the given string_id as well as the
562 const char* GetStringDataAndUtf16Length(const StringId& string_id, uint32_t* utf16_length) const;
564 const char* GetStringData(const StringId& string_id) const;
H A Ddex_file_verifier_test.cc251 const DexFile::StringId& string_id = dex_file->GetStringId(name_index); local
252 const char* str = dex_file->GetStringData(string_id);
856 const DexFile::StringId& string_id = dex_file->GetStringId(name_index); local
857 const char* str = dex_file->GetStringData(string_id);
H A Dtransaction_test.cc506 const DexFile::StringId* string_id = dex_file->FindStringId(kResolvedString); local
507 ASSERT_TRUE(string_id != nullptr);
508 dex::StringIndex string_idx = dex_file->GetIndexForStringId(*string_id);
H A Ddebugger.h421 static JDWP::JdwpError StringToUtf8(JDWP::ObjectId string_id, std::string* str)
H A Ddex_file_verifier.cc2886 const DexFile::StringId* string_id = local
2892 const uint8_t* ptr = begin + string_id->string_data_off_;
H A Ddebugger.cc1968 JDWP::JdwpError Dbg::StringToUtf8(JDWP::ObjectId string_id, std::string* str) { argument
1970 mirror::Object* obj = gRegistry->Get<mirror::Object*>(string_id, &error);
/art/dexlayout/
H A Ddex_visualize.cc115 void DumpStringId(const dex_ir::StringId* string_id, int class_index) { argument
116 DumpAddressRange(string_id, class_index);
117 if (string_id == nullptr) {
120 DumpStringData(string_id->DataItem(), class_index);
196 for (dex_ir::StringId* string_id : *string_ids) {
197 DumpStringId(string_id, class_index);
H A Ddexlayout.cc540 dex_ir::StringId* string_id = data->GetStringId(); local
542 DumpEscapedString(string_id->Data(), out_file_);
544 DumpXmlAttribute(string_id->Data(), out_file_);
1589 for (auto& string_id : header_->GetCollections().StringIds()) {
1590 string_ids.push_back(string_id.get());
1591 const size_t cur_offset = string_id->DataItem()->GetOffset();
1594 dex_ir::StringData* data = string_id->DataItem();
1597 if (is_shorty[string_id->GetIndex()] || from_hot_method[string_id->GetIndex()]) {
1623 for (dex_ir::StringId* string_id
[all...]
H A Ddex_writer.cc247 for (std::unique_ptr<dex_ir::StringId>& string_id : header_->GetCollections().StringIds()) {
248 string_data_off[0] = string_id->DataItem()->GetOffset();
249 Write(string_data_off, string_id->GetSize(), string_id->GetOffset());
H A Ddex_ir.h81 virtual void Dispatch(const StringId* string_id) = 0;
497 explicit TypeId(StringId* string_id) : string_id_(string_id) { size_ = kTypeIdItemSize; } argument
652 void SetStringId(StringId* string_id) { u_.string_val_ = string_id; } argument
H A Ddex_ir.cc353 StringId* string_id = new StringId(string_data); local
354 string_ids_.AddIndexedItem(string_id, StringIdsOffset() + i * StringId::ItemSize(), i);
/art/runtime/verifier/
H A Dverifier_deps.cc139 const dex::StringIndex string_id = TryGetClassDescriptorStringId( local
143 if (string_id.IsValid()) {
145 DCHECK_EQ(GetClassDescriptorStringId(dex_file, method->GetDeclaringClass()), string_id); local
146 return string_id;
158 const dex::StringIndex string_id = TryGetClassDescriptorStringId( local
162 if (string_id.IsValid()) {
164 DCHECK_EQ(GetClassDescriptorStringId(dex_file, field->GetDeclaringClass()), string_id); local
165 return string_id;
203 const DexFile::StringId* string_id = dex_file.FindStringId(str.c_str()); local
204 if (string_id !
[all...]
H A Dverifier_deps.h231 std::string GetStringFromId(const DexFile& dex_file, dex::StringIndex string_id) const;
/art/runtime/jdwp/
H A Djdwp_handler.cc275 ObjectId string_id; local
276 JdwpError status = Dbg::CreateString(str, &string_id);
280 expandBufAddObjectId(pReply, string_id);

Completed in 212 milliseconds