Home
last modified time | relevance | path

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

/art/runtime/
Ddex_file-inl.h28 inline int32_t DexFile::GetStringLength(const StringId& string_id) const { in GetStringLength() argument
29 const byte* ptr = begin_ + string_id.string_data_off_; in GetStringLength()
33 inline const char* DexFile::GetStringDataAndUtf16Length(const StringId& string_id, in GetStringDataAndUtf16Length() argument
36 const byte* ptr = begin_ + string_id.string_data_off_; in GetStringDataAndUtf16Length()
Ddex_file.h463 uint32_t GetIndexForStringId(const StringId& string_id) const { in GetIndexForStringId() argument
464 CHECK_GE(&string_id, string_ids_) << GetLocation(); in GetIndexForStringId()
465 CHECK_LT(&string_id, string_ids_ + header_->string_ids_size_) << GetLocation(); in GetIndexForStringId()
466 return &string_id - string_ids_; in GetIndexForStringId()
469 int32_t GetStringLength(const StringId& string_id) const;
474 const char* GetStringDataAndUtf16Length(const StringId& string_id, uint32_t* utf16_length) const;
476 const char* GetStringData(const StringId& string_id) const { in GetStringData() argument
478 return GetStringDataAndUtf16Length(string_id, &ignored); in GetStringData()
487 const StringId& string_id = GetStringId(idx); in StringDataAndUtf16LengthByIdx() local
488 return GetStringDataAndUtf16Length(string_id, utf16_length); in StringDataAndUtf16LengthByIdx()
Dintern_table.cc192 const DexFile::StringId* string_id = dex_file->FindStringId(utf8.c_str()); in LookupStringFromImage() local
193 if (string_id != nullptr) { in LookupStringFromImage()
194 uint32_t string_idx = dex_file->GetIndexForStringId(*string_id); in LookupStringFromImage()
Ddex_file.cc436 const StringId* string_id = FindStringId(descriptor); in FindClassDef() local
437 if (string_id != nullptr) { in FindClassDef()
438 const TypeId* type_id = FindTypeId(GetIndexForStringId(*string_id)); in FindClassDef()
678 const DexFile::StringId* string_id = FindStringId(descriptor.c_str()); in CreateTypeList() local
679 if (string_id == NULL) { in CreateTypeList()
682 const DexFile::TypeId* type_id = FindTypeId(GetIndexForStringId(*string_id)); in CreateTypeList()
Dclass_linker_test.cc995 const DexFile::StringId* string_id = dex_file->FindStringId("LStaticsFromCode;"); in TEST_F() local
996 ASSERT_TRUE(string_id != NULL); in TEST_F()
997 const DexFile::TypeId* type_id = dex_file->FindTypeId(dex_file->GetIndexForStringId(*string_id)); in TEST_F()
Ddebugger.h409 static JDWP::JdwpError StringToUtf8(JDWP::ObjectId string_id, std::string* str)
Dclass_linker.cc3451 const DexFile::StringId* string_id = dex_file->FindStringId(descriptor); in LookupClassFromImage() local
3452 if (string_id != nullptr) { in LookupClassFromImage()
3454 dex_file->FindTypeId(dex_file->GetIndexForStringId(*string_id)); in LookupClassFromImage()
Ddebugger.cc1933 JDWP::JdwpError Dbg::StringToUtf8(JDWP::ObjectId string_id, std::string* str) { in StringToUtf8() argument
1934 mirror::Object* obj = gRegistry->Get<mirror::Object*>(string_id); in StringToUtf8()
/art/compiler/driver/
Dcompiler_driver-inl.h137 const DexFile::StringId* string_id = in IsFastStaticField() local
140 if (string_id != nullptr) { in IsFastStaticField()
142 dex_file->FindTypeId(dex_file->GetIndexForStringId(*string_id)); in IsFastStaticField()
/art/compiler/dex/quick/
Ddex_file_method_inliner.cc582 const DexFile::StringId* string_id = dex_file->FindStringId(kClassCacheNames[index]); in FindClassIndex() local
583 if (string_id == nullptr) { in FindClassIndex()
587 uint32_t string_index = dex_file->GetIndexForStringId(*string_id); in FindClassIndex()
605 const DexFile::StringId* string_id = dex_file->FindStringId(kNameCacheNames[index]); in FindNameIndex() local
606 if (string_id == nullptr) { in FindNameIndex()
610 *name_index = dex_file->GetIndexForStringId(*string_id); in FindNameIndex()
/art/compiler/
Dimage_writer.cc614 const DexFile::StringId* string_id; in ComputeEagerResolvedStringsCallback() local
616 string_id = dex_file.FindStringId(""); in ComputeEagerResolvedStringsCallback()
618 string_id = dex_file.FindStringId(utf16_string); in ComputeEagerResolvedStringsCallback()
620 if (string_id != nullptr) { in ComputeEagerResolvedStringsCallback()
622 uint32_t string_idx = dex_file.GetIndexForStringId(*string_id); in ComputeEagerResolvedStringsCallback()
/art/runtime/mirror/
Dobject_test.cc275 const DexFile::StringId* string_id = java_lang_dex_file_->FindStringId("[I"); in TEST_F() local
276 ASSERT_TRUE(string_id != NULL); in TEST_F()
278 java_lang_dex_file_->GetIndexForStringId(*string_id)); in TEST_F()