Home | History | Annotate | Download | only in runtime

Lines Matching refs:raw

85   UniquePtr<const DexFile> raw(OpenDexFileBase64(kRawDex, tmp.GetFilename()));
86 ASSERT_TRUE(raw.get() != NULL);
88 const DexFile::Header& header = raw->GetHeader();
111 EXPECT_EQ(header.checksum_, raw->GetLocationChecksum());
116 const DexFile* raw(OpenTestDexFile("Main"));
117 EXPECT_NE(raw->GetHeader().checksum_, raw->GetLocationChecksum());
129 const DexFile* raw(OpenTestDexFile("Nested"));
130 ASSERT_TRUE(raw != NULL);
131 EXPECT_EQ(2U, raw->NumClassDefs());
133 const DexFile::ClassDef& c0 = raw->GetClassDef(0);
134 EXPECT_STREQ("LNested$Inner;", raw->GetClassDescriptor(c0));
136 const DexFile::ClassDef& c1 = raw->GetClassDef(1);
137 EXPECT_STREQ("LNested;", raw->GetClassDescriptor(c1));
142 const DexFile* raw(OpenTestDexFile("CreateMethodSignature"));
143 ASSERT_TRUE(raw != NULL);
144 EXPECT_EQ(1U, raw->NumClassDefs());
146 const DexFile::ClassDef& class_def = raw->GetClassDef(0);
147 ASSERT_STREQ("LCreateMethodSignature;", raw->GetClassDescriptor(class_def));
149 const byte* class_data = raw->GetClassData(class_def);
151 ClassDataItemIterator it(*raw, class_data);
158 const DexFile::MethodId& method_id = raw->GetMethodId(it.GetMemberIndex());
160 const char* name = raw->StringDataByIdx(method_id.name_idx_);
163 std::string signature(raw->CreateMethodSignature(proto_idx, &length));
171 const DexFile::MethodId& method_id = raw->GetMethodId(it.GetMemberIndex());
173 const char* name = raw->StringDataByIdx(method_id.name_idx_);
178 std::string signature(raw->CreateMethodSignature(proto_idx, &length));
184 const DexFile::MethodId& method_id = raw->GetMethodId(it.GetMemberIndex());
186 const char* name = raw->StringDataByIdx(method_id.name_idx_);
191 std::string signature(raw->CreateMethodSignature(proto_idx, &length));
198 const DexFile* raw(OpenTestDexFile("CreateMethodSignature"));
199 ASSERT_TRUE(raw != NULL);
200 EXPECT_EQ(1U, raw->NumClassDefs());
206 const DexFile::StringId* str_id = raw->FindStringId(str);
207 const char* dex_str = raw->GetStringData(*str_id);