• Home
  • Raw
  • Download

Lines Matching refs:DexFile

34   const DexFile* dex(OpenTestDexFile("Nested"));  in TEST_F()
135 static const DexFile* OpenDexFileBase64(const char* base64, in OpenDexFileBase64()
154 std::vector<const DexFile*> tmp; in OpenDexFileBase64()
155 bool success = DexFile::Open(location, location, &error_msg, &tmp); in OpenDexFileBase64()
158 const DexFile* dex_file = tmp[0]; in OpenDexFileBase64()
166 std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kRawDex, tmp.GetFilename().c_str())); in TEST_F()
169 const DexFile::Header& header = raw->GetHeader(); in TEST_F()
197 const DexFile* raw(OpenTestDexFile("Main")); in TEST_F()
205 EXPECT_TRUE(DexFile::GetChecksum(GetLibCoreDexFileName().c_str(), &checksum, &error_msg)) in TEST_F()
212 const DexFile* raw(OpenTestDexFile("Nested")); in TEST_F()
216 const DexFile::ClassDef& c0 = raw->GetClassDef(0); in TEST_F()
219 const DexFile::ClassDef& c1 = raw->GetClassDef(1); in TEST_F()
225 const DexFile* raw(OpenTestDexFile("GetMethodSignature")); in TEST_F()
229 const DexFile::ClassDef& class_def = raw->GetClassDef(0); in TEST_F()
241 const DexFile::MethodId& method_id = raw->GetMethodId(it.GetMemberIndex()); in TEST_F()
252 const DexFile::MethodId& method_id = raw->GetMethodId(it.GetMemberIndex()); in TEST_F()
263 const DexFile::MethodId& method_id = raw->GetMethodId(it.GetMemberIndex()); in TEST_F()
275 const DexFile* raw(OpenTestDexFile("GetMethodSignature")); in TEST_F()
283 const DexFile::StringId* str_id = raw->FindStringId(str); in TEST_F()
292 const DexFile::StringId* type_str_id = java_lang_dex_file_->FindStringId(type_str); in TEST_F()
295 const DexFile::TypeId* type_id = java_lang_dex_file_->FindTypeId(type_str_idx); in TEST_F()
303 const DexFile::ProtoId& to_find = java_lang_dex_file_->GetProtoId(i); in TEST_F()
304 const DexFile::TypeList* to_find_tl = java_lang_dex_file_->GetProtoParameters(to_find); in TEST_F()
311 const DexFile::ProtoId* found = in TEST_F()
320 const DexFile::MethodId& to_find = java_lang_dex_file_->GetMethodId(i); in TEST_F()
321 const DexFile::TypeId& klass = java_lang_dex_file_->GetTypeId(to_find.class_idx_); in TEST_F()
322 const DexFile::StringId& name = java_lang_dex_file_->GetStringId(to_find.name_idx_); in TEST_F()
323 const DexFile::ProtoId& signature = java_lang_dex_file_->GetProtoId(to_find.proto_idx_); in TEST_F()
324 const DexFile::MethodId* found = java_lang_dex_file_->FindMethodId(klass, name, signature); in TEST_F()
335 const DexFile::FieldId& to_find = java_lang_dex_file_->GetFieldId(i); in TEST_F()
336 const DexFile::TypeId& klass = java_lang_dex_file_->GetTypeId(to_find.class_idx_); in TEST_F()
337 const DexFile::StringId& name = java_lang_dex_file_->GetStringId(to_find.name_idx_); in TEST_F()
338 const DexFile::TypeId& type = java_lang_dex_file_->GetTypeId(to_find.type_idx_); in TEST_F()
339 const DexFile::FieldId* found = java_lang_dex_file_->FindFieldId(klass, name, type); in TEST_F()
351 ASSERT_EQ("/system/app/framework.jar", DexFile::GetMultiDexClassesDexName(0, dex_location)); in TEST_F()
352 …ASSERT_EQ("/system/app/framework.jar:classes2.dex", DexFile::GetMultiDexClassesDexName(1, dex_loca… in TEST_F()
353 …ASSERT_EQ("/system/app/framework.jar:classes101.dex", DexFile::GetMultiDexClassesDexName(100, dex_… in TEST_F()
361 ASSERT_EQ(dex_location, DexFile::GetDexCanonicalLocation(dex_location.c_str())); in TEST_F()
362 std::string multidex_location = DexFile::GetMultiDexClassesDexName(1, dex_location.c_str()); in TEST_F()
363 ASSERT_EQ(multidex_location, DexFile::GetDexCanonicalLocation(multidex_location.c_str())); in TEST_F()
368 ASSERT_EQ(dex_location, DexFile::GetDexCanonicalLocation(dex_location_sym.c_str())); in TEST_F()
370 …std::string multidex_location_sym = DexFile::GetMultiDexClassesDexName(1, dex_location_sym.c_str()… in TEST_F()
371 ASSERT_EQ(multidex_location, DexFile::GetDexCanonicalLocation(multidex_location_sym.c_str())); in TEST_F()