Home | History | Annotate | Download | only in runtime

Lines Matching refs:DexFile

34   const DexFile* dex(OpenTestDexFile("Nested"));
135 static const DexFile* OpenDexFileBase64(const char* base64,
157 std::vector<const DexFile*> tmp;
158 bool success = DexFile::Open(location, location, &error_msg, &tmp);
161 const DexFile* dex_file = tmp[0];
169 std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kRawDex, tmp.GetFilename().c_str()));
172 const DexFile::Header& header = raw->GetHeader();
200 const DexFile* raw(OpenTestDexFile("Main"));
208 EXPECT_TRUE(DexFile::GetChecksum(GetLibCoreDexFileName().c_str(), &checksum, &error_msg))
215 const DexFile* raw(OpenTestDexFile("Nested"));
219 const DexFile::ClassDef& c0 = raw->GetClassDef(0);
222 const DexFile::ClassDef& c1 = raw->GetClassDef(1);
228 const DexFile* raw(OpenTestDexFile("GetMethodSignature"));
232 const DexFile::ClassDef& class_def = raw->GetClassDef(0);
244 const DexFile::MethodId& method_id = raw->GetMethodId(it.GetMemberIndex());
255 const DexFile::MethodId& method_id = raw->GetMethodId(it.GetMemberIndex());
266 const DexFile::MethodId& method_id = raw->GetMethodId(it.GetMemberIndex());
278 const DexFile* raw(OpenTestDexFile("GetMethodSignature"));
286 const DexFile::StringId* str_id = raw->FindStringId(str);
295 const DexFile::StringId* type_str_id = java_lang_dex_file_->FindStringId(type_str);
298 const DexFile::TypeId* type_id = java_lang_dex_file_->FindTypeId(type_str_idx);
306 const DexFile::ProtoId& to_find = java_lang_dex_file_->GetProtoId(i);
307 const DexFile::TypeList* to_find_tl = java_lang_dex_file_->GetProtoParameters(to_find);
314 const DexFile::ProtoId* found =
323 const DexFile::MethodId& to_find = java_lang_dex_file_->GetMethodId(i);
324 const DexFile::TypeId& klass = java_lang_dex_file_->GetTypeId(to_find.class_idx_);
325 const DexFile::StringId& name = java_lang_dex_file_->GetStringId(to_find.name_idx_);
326 const DexFile::ProtoId& signature = java_lang_dex_file_->GetProtoId(to_find.proto_idx_);
327 const DexFile::MethodId* found = java_lang_dex_file_->FindMethodId(klass, name, signature);
338 const DexFile::FieldId& to_find = java_lang_dex_file_->GetFieldId(i);
339 const DexFile::TypeId& klass = java_lang_dex_file_->GetTypeId(to_find.class_idx_);
340 const DexFile::StringId& name = java_lang_dex_file_->GetStringId(to_find.name_idx_);
341 const DexFile::TypeId& type = java_lang_dex_file_->GetTypeId(to_find.type_idx_);
342 const DexFile::FieldId* found = java_lang_dex_file_->FindFieldId(klass, name, type);
354 ASSERT_EQ("/system/app/framework.jar", DexFile::GetMultiDexClassesDexName(0, dex_location));
355 ASSERT_EQ("/system/app/framework.jar:classes2.dex", DexFile::GetMultiDexClassesDexName(1, dex_location));
356 ASSERT_EQ("/system/app/framework.jar:classes101.dex", DexFile::GetMultiDexClassesDexName(100, dex_location));
364 ASSERT_EQ(dex_location, DexFile::GetDexCanonicalLocation(dex_location.c_str()));
365 std::string multidex_location = DexFile::GetMultiDexClassesDexName(1, dex_location.c_str());
366 ASSERT_EQ(multidex_location, DexFile::GetDexCanonicalLocation(multidex_location.c_str()));
371 ASSERT_EQ(dex_location, DexFile::GetDexCanonicalLocation(dex_location_sym.c_str()));
373 std::string multidex_location_sym = DexFile::GetMultiDexClassesDexName(1, dex_location_sym.c_str());
374 ASSERT_EQ(multidex_location, DexFile::GetDexCanonicalLocation(multidex_location_sym.c_str()));