Home
last modified time | relevance | path

Searched refs:FindFile (Results 1 – 15 of 15) sorted by relevance

/aosp14/frameworks/base/tools/aapt2/
H A DLoadedApk.cpp39 if (apk->FindFile(kApkResourceTablePath) != nullptr) { in DetermineApkFormat()
41 } else if (apk->FindFile(kProtoResourceTablePath) != nullptr) { in DetermineApkFormat()
45 io::IFile* manifest_file = apk->FindFile(kAndroidManifestPath); in DetermineApkFormat()
102 io::IFile* table_file = collection->FindFile(kProtoResourceTablePath); in LoadProtoApkFromFileCollection()
126 io::IFile* manifest_file = collection->FindFile(kAndroidManifestPath); in LoadProtoApkFromFileCollection()
161 io::IFile* table_file = collection->FindFile(kApkResourceTablePath); in LoadBinaryApkFromFileCollection()
176 io::IFile* manifest_file = collection->FindFile(kAndroidManifestPath); in LoadBinaryApkFromFileCollection()
316 io::IFile* file = apk_->FindFile(file_path); in LoadXml()
/aosp14/frameworks/base/tools/aapt2/cmd/
H A DCompile_test.cpp135 ASSERT_NE(zip->FindFile("drawable_image.png.flat"), nullptr); in TEST_F()
136 ASSERT_NE(zip->FindFile("layout_layout.xml.flat"), nullptr); in TEST_F()
137 ASSERT_NE(zip->FindFile("values_values.arsc.flat"), nullptr); in TEST_F()
164 ASSERT_NE(zip->FindFile("drawable_image.png.flat"), nullptr); in TEST_F()
165 ASSERT_NE(zip->FindFile("layout_layout.xml.flat"), nullptr); in TEST_F()
166 ASSERT_NE(zip->FindFile("values_values.arsc.flat"), nullptr); in TEST_F()
328 apk.get()->GetFileCollection()->FindFile("resources.pb"); in TEST_F()
H A DLink_test.cpp121 auto file = zip->FindFile("assets/testtxt"); in TEST_F()
125 file = zip->FindFile("assets/testtxt2"); in TEST_F()
129 file = zip->FindFile("assets/test.txt"); in TEST_F()
133 file = zip->FindFile("assets/test.hello.txt"); in TEST_F()
137 file = zip->FindFile("assets/test.hello.xml"); in TEST_F()
169 auto file = zip->FindFile("res/raw/testtxt"); in TEST_F()
173 file = zip->FindFile("res/raw/test.txt"); in TEST_F()
177 file = zip->FindFile("res/raw/test1.hello.hello.txt"); in TEST_F()
181 file = zip->FindFile("res/raw/test2.goodbye.goodbye.xml"); in TEST_F()
H A DDump.cpp357 io::IFile* file = apk->GetFileCollection()->FindFile(xml_file); in Dump()
564 auto file = apk->GetFileCollection()->FindFile("resources.arsc"); in Dump()
H A DConvert.cpp284 io::IFile* manifest = apk->GetFileCollection()->FindFile(kAndroidManifestPath); in Convert()
H A DLink.cpp851 if (zip_collection->FindFile(kProtoResourceTablePath) != nullptr) { in LoadSymbolsFromIncludePaths()
/aosp14/frameworks/base/tools/aapt2/io/
H A DFileSystem.h67 IFile* FindFile(android::StringPiece path) override;
H A DFile.h104 virtual IFile* FindFile(android::StringPiece path) = 0;
H A DZipArchive.h67 io::IFile* FindFile(android::StringPiece path) override;
H A DZipArchive.cpp147 IFile* ZipFileCollection::FindFile(StringPiece path) { in FindFile() function in aapt::io::ZipFileCollection
H A DFileSystem.cpp131 IFile* FileCollection::FindFile(StringPiece path) { in FindFile() function in aapt::io::FileCollection
/aosp14/frameworks/base/tools/aapt2/format/proto/
H A DProtoSerialize_test.cpp38 MOCK_METHOD1(FindFile, io::IFile*(StringPiece path));
180 EXPECT_CALL(files, FindFile(Eq("res/layout/main.xml"))) in TEST()
407 EXPECT_CALL(files, FindFile(Eq("res/layout/main.xml"))) in TEST()
774 EXPECT_CALL(files, FindFile(Eq("res/layout/bar.xml"))) in TEST()
986 EXPECT_CALL(files, FindFile(Eq("res/layout/bar.xml"))).WillRepeatedly(::testing::Return(&file_a)); in TEST()
H A DProtoDeserialize.cpp998 file_ref->file = files->FindFile(*file_ref->path); in DeserializeItemFromPb()
/aosp14/frameworks/base/tools/aapt2/format/
H A DArchive_test.cpp73 std::unique_ptr<io::InputStream> stream = zip->FindFile(file)->OpenInputStream(); in VerifyZipFile()
/aosp14/frameworks/base/tools/aapt2/format/binary/
H A DBinaryResourceParser.cpp570 file_ref->file = files_->FindFile(*file_ref->path); in ParseValue()