Lines Matching refs:string_id
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()
206 return dex_file.GetIndexForStringId(*string_id); in GetIdFromString()
240 std::string VerifierDeps::GetStringFromId(const DexFile& dex_file, dex::StringIndex string_id) in GetStringFromId()
243 if (string_id.index_ < num_ids_in_dex) { in GetStringFromId()
244 return std::string(dex_file.StringDataByIdx(string_id)); in GetStringFromId()
248 string_id.index_ -= num_ids_in_dex; in GetStringFromId()
249 CHECK_LT(string_id.index_, deps->strings_.size()); in GetStringFromId()
250 return deps->strings_[string_id.index_]; in GetStringFromId()