Searched refs:string_id (Results 1 – 12 of 12) sorted by relevance
28 inline int32_t DexFile::GetStringLength(const StringId& string_id) const { in GetStringLength() argument29 const byte* ptr = begin_ + string_id.string_data_off_; in GetStringLength()33 inline const char* DexFile::GetStringDataAndUtf16Length(const StringId& string_id, in GetStringDataAndUtf16Length() argument36 const byte* ptr = begin_ + string_id.string_data_off_; in GetStringDataAndUtf16Length()
463 uint32_t GetIndexForStringId(const StringId& string_id) const { in GetIndexForStringId() argument464 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() argument478 return GetStringDataAndUtf16Length(string_id, &ignored); in GetStringData()487 const StringId& string_id = GetStringId(idx); in StringDataAndUtf16LengthByIdx() local488 return GetStringDataAndUtf16Length(string_id, utf16_length); in StringDataAndUtf16LengthByIdx()
192 const DexFile::StringId* string_id = dex_file->FindStringId(utf8.c_str()); in LookupStringFromImage() local193 if (string_id != nullptr) { in LookupStringFromImage()194 uint32_t string_idx = dex_file->GetIndexForStringId(*string_id); in LookupStringFromImage()
436 const StringId* string_id = FindStringId(descriptor); in FindClassDef() local437 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() local679 if (string_id == NULL) { in CreateTypeList()682 const DexFile::TypeId* type_id = FindTypeId(GetIndexForStringId(*string_id)); in CreateTypeList()
995 const DexFile::StringId* string_id = dex_file->FindStringId("LStaticsFromCode;"); in TEST_F() local996 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()
409 static JDWP::JdwpError StringToUtf8(JDWP::ObjectId string_id, std::string* str)
3451 const DexFile::StringId* string_id = dex_file->FindStringId(descriptor); in LookupClassFromImage() local3452 if (string_id != nullptr) { in LookupClassFromImage()3454 dex_file->FindTypeId(dex_file->GetIndexForStringId(*string_id)); in LookupClassFromImage()
1933 JDWP::JdwpError Dbg::StringToUtf8(JDWP::ObjectId string_id, std::string* str) { in StringToUtf8() argument1934 mirror::Object* obj = gRegistry->Get<mirror::Object*>(string_id); in StringToUtf8()
137 const DexFile::StringId* string_id = in IsFastStaticField() local140 if (string_id != nullptr) { in IsFastStaticField()142 dex_file->FindTypeId(dex_file->GetIndexForStringId(*string_id)); in IsFastStaticField()
582 const DexFile::StringId* string_id = dex_file->FindStringId(kClassCacheNames[index]); in FindClassIndex() local583 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() local606 if (string_id == nullptr) { in FindNameIndex()610 *name_index = dex_file->GetIndexForStringId(*string_id); in FindNameIndex()
614 const DexFile::StringId* string_id; in ComputeEagerResolvedStringsCallback() local616 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()
275 const DexFile::StringId* string_id = java_lang_dex_file_->FindStringId("[I"); in TEST_F() local276 ASSERT_TRUE(string_id != NULL); in TEST_F()278 java_lang_dex_file_->GetIndexForStringId(*string_id)); in TEST_F()