Home | History | Annotate | Download | only in runtime

Lines Matching refs:raw

169   std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kRawDex, tmp.GetFilename().c_str()));
170 ASSERT_TRUE(raw.get() != NULL);
172 const DexFile::Header& header = raw->GetHeader();
195 EXPECT_EQ(header.checksum_, raw->GetLocationChecksum());
200 const DexFile* raw(OpenTestDexFile("Main"));
201 EXPECT_NE(raw->GetHeader().checksum_, raw->GetLocationChecksum());
215 const DexFile* raw(OpenTestDexFile("Nested"));
216 ASSERT_TRUE(raw != NULL);
217 EXPECT_EQ(2U, raw->NumClassDefs());
219 const DexFile::ClassDef& c0 = raw->GetClassDef(0);
220 EXPECT_STREQ("LNested$Inner;", raw->GetClassDescriptor(c0));
222 const DexFile::ClassDef& c1 = raw->GetClassDef(1);
223 EXPECT_STREQ("LNested;", raw->GetClassDescriptor(c1));
228 const DexFile* raw(OpenTestDexFile("GetMethodSignature"));
229 ASSERT_TRUE(raw != NULL);
230 EXPECT_EQ(1U, raw->NumClassDefs());
232 const DexFile::ClassDef& class_def = raw->GetClassDef(0);
233 ASSERT_STREQ("LGetMethodSignature;", raw->GetClassDescriptor(class_def));
235 const byte* class_data = raw->GetClassData(class_def);
237 ClassDataItemIterator it(*raw, class_data);
244 const DexFile::MethodId& method_id = raw->GetMethodId(it.GetMemberIndex());
245 const char* name = raw->StringDataByIdx(method_id.name_idx_);
247 std::string signature(raw->GetMethodSignature(method_id).ToString());
255 const DexFile::MethodId& method_id = raw->GetMethodId(it.GetMemberIndex());
257 const char* name = raw->StringDataByIdx(method_id.name_idx_);
260 std::string signature(raw->GetMethodSignature(method_id).ToString());
266 const DexFile::MethodId& method_id = raw->GetMethodId(it.GetMemberIndex());
268 const char* name = raw->StringDataByIdx(method_id.name_idx_);
271 std::string signature(raw->GetMethodSignature(method_id).ToString());
278 const DexFile* raw(OpenTestDexFile("GetMethodSignature"));
279 ASSERT_TRUE(raw != NULL);
280 EXPECT_EQ(1U, raw->NumClassDefs());
286 const DexFile::StringId* str_id = raw->FindStringId(str);
287 const char* dex_str = raw->GetStringData(*str_id);