Lines Matching refs:deps
43 std::unique_ptr<DexFileDeps> deps(new DexFileDeps(dex_file->NumClassDefs())); in VerifierDeps() local
44 dex_deps_.emplace(dex_file, std::move(deps)); in VerifierDeps()
232 DexFileDeps* deps = singleton->GetDexFileDeps(dex_file); in GetIdFromString() local
233 DCHECK(deps != nullptr); in GetIdFromString()
240 if (FindExistingStringId(deps->strings_, str, &found_id)) { in GetIdFromString()
246 if (FindExistingStringId(deps->strings_, str, &found_id)) { in GetIdFromString()
249 deps->strings_.push_back(str); in GetIdFromString()
250 dex::StringIndex new_id(num_ids_in_dex + deps->strings_.size() - 1); in GetIdFromString()
263 const DexFileDeps* deps = GetDexFileDeps(dex_file); in GetStringFromId() local
264 DCHECK(deps != nullptr); in GetStringFromId()
266 CHECK_LT(string_id.index_, deps->strings_.size()); in GetStringFromId()
267 return deps->strings_[string_id.index_]; in GetStringFromId()
728 const DexFileDeps& deps = *GetDexFileDeps(*dex_file); in Encode() local
729 EncodeStringVector(buffer, deps.strings_); in Encode()
730 EncodeSet(buffer, deps.assignable_types_); in Encode()
731 EncodeSet(buffer, deps.unassignable_types_); in Encode()
732 EncodeSet(buffer, deps.classes_); in Encode()
733 EncodeSet(buffer, deps.fields_); in Encode()
734 EncodeSet(buffer, deps.methods_); in Encode()
735 EncodeUint16SparseBitVector(buffer, deps.verified_classes_, /* sparse_value= */ false); in Encode()
736 EncodeUint16SparseBitVector(buffer, deps.redefined_classes_, /* sparse_value= */ true); in Encode()
740 void VerifierDeps::DecodeDexFileDeps(DexFileDeps& deps, in DecodeDexFileDeps() argument
743 DecodeStringVector(data_start, data_end, &deps.strings_); in DecodeDexFileDeps()
744 DecodeSet(data_start, data_end, &deps.assignable_types_); in DecodeDexFileDeps()
745 DecodeSet(data_start, data_end, &deps.unassignable_types_); in DecodeDexFileDeps()
746 DecodeSet(data_start, data_end, &deps.classes_); in DecodeDexFileDeps()
747 DecodeSet(data_start, data_end, &deps.fields_); in DecodeDexFileDeps()
748 DecodeSet(data_start, data_end, &deps.methods_); in DecodeDexFileDeps()
751 &deps.verified_classes_, in DecodeDexFileDeps()
755 &deps.redefined_classes_, in DecodeDexFileDeps()
771 DexFileDeps* deps = GetDexFileDeps(*dex_file); in VerifierDeps() local
772 DecodeDexFileDeps(*deps, &data_start, data_end); in VerifierDeps()
789 DexFileDeps deps(dex_file->NumClassDefs()); in ParseVerifiedClasses() local
790 DecodeDexFileDeps(deps, &data_start, data_end); in ParseVerifiedClasses()
791 verified_classes_per_dex.push_back(std::move(deps.verified_classes_)); in ParseVerifiedClasses()
1200 const DexFileDeps& deps, in VerifyDexFile() argument
1206 deps.verified_classes_, in VerifyDexFile()
1207 deps.redefined_classes_, in VerifyDexFile()
1211 deps.assignable_types_, in VerifyDexFile()
1217 deps.unassignable_types_, in VerifyDexFile()
1221 VerifyClasses(class_loader, dex_file, deps.classes_, self, error_msg) && in VerifyDexFile()
1222 VerifyFields(class_loader, dex_file, deps.fields_, self, error_msg) && in VerifyDexFile()
1223 VerifyMethods(class_loader, dex_file, deps.methods_, self, error_msg); in VerifyDexFile()