Home
last modified time | relevance | path

Searched refs:GetTestDataPath (Results 1 – 25 of 26) sorted by relevance

12

/aosp12/frameworks/base/libs/androidfw/tests/
H A DAssetManager2_bench.cpp39 std::string path = GetTestDataPath() + "/basic/basic.apk"; in BM_AssetManagerLoadAssets()
49 String8 path((GetTestDataPath() + "/basic/basic.apk").data()); in BM_AssetManagerLoadAssetsOld()
85 GetResourceBenchmark({GetTestDataPath() + "/basic/basic.apk"}, nullptr /*config*/, resid, state); in BM_AssetManagerGetResource()
91 GetResourceBenchmarkOld({GetTestDataPath() + "/basic/basic.apk"}, nullptr /*config*/, resid, in BM_AssetManagerGetResourceOld()
99 {GetTestDataPath() + "/lib_two/lib_two.apk", GetTestDataPath() + "/lib_one/lib_one.apk", in BM_AssetManagerGetLibraryResource()
100 GetTestDataPath() + "/libclient/libclient.apk"}, in BM_AssetManagerGetLibraryResource()
107 {GetTestDataPath() + "/lib_two/lib_two.apk", GetTestDataPath() + "/lib_one/lib_one.apk", in BM_AssetManagerGetLibraryResourceOld()
108 GetTestDataPath() + "/libclient/libclient.apk"}, in BM_AssetManagerGetLibraryResourceOld()
132 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in BM_AssetManagerGetBag()
160 if (!assets.addAssetPath(String8((GetTestDataPath() + "/styles/styles.apk").data()), in BM_AssetManagerGetBagOld()
H A DApkAssets_test.cpp39 ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST()
49 const std::string path = GetTestDataPath() + "/basic/basic.apk"; in TEST()
64 ApkAssets::Load(GetTestDataPath() + "/appaslib/appaslib.apk"); in TEST()
72 loaded_apk = ApkAssets::Load(GetTestDataPath() + "/appaslib/appaslib.apk", PROPERTY_DYNAMIC); in TEST()
83 ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST()
95 ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST()
H A DResTable_test.cpp37 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST()
74 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST()
85 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST()
102 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST()
126 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST()
150 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/lib_one/lib_one.apk", in TEST()
174 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST()
195 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST()
228 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST()
351 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST()
[all …]
H A DSparseEntry_bench.cpp31 GetResourceBenchmarkOld({GetTestDataPath() + "/sparse/sparse.apk"}, &config, resid, state); in BM_SparseEntryGetResourceOldSparse()
40 GetResourceBenchmarkOld({GetTestDataPath() + "/sparse/not_sparse.apk"}, &config, resid, state); in BM_SparseEntryGetResourceOldNotSparse()
49 GetResourceBenchmark({GetTestDataPath() + "/sparse/sparse.apk"}, &config, resid, state); in BM_SparseEntryGetResourceSparse()
58 GetResourceBenchmark({GetTestDataPath() + "/sparse/not_sparse.apk"}, &config, resid, state); in BM_SparseEntryGetResourceNotSparse()
H A DLoadedArsc_test.cpp50 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/styles/styles.apk", "resources.arsc", in TEST()
76 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/sparse/sparse.apk", "resources.arsc", in TEST()
100 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/sparse/sparse.apk", "resources.arsc", in TEST()
132 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/lib_one/lib_one.apk", "resources.arsc", in TEST()
153 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/libclient/libclient.apk", in TEST()
179 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/appaslib/appaslib.apk", in TEST()
196 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/feature/feature.apk", "resources.arsc", in TEST()
239 ReadFileFromZipToString(GetTestDataPath() + "/out_of_order_types/out_of_order_types.apk", in TEST()
261 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/overlayable/overlayable.apk", in TEST()
355 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/overlayable/overlayable.apk", in TEST()
[all …]
H A DSplit_test.cpp38 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in SetUp()
41 ReadFileFromZipToString(GetTestDataPath() + "/basic/basic_de_fr.apk", in SetUp()
44 ReadFileFromZipToString(GetTestDataPath() + "/basic/basic_hdpi-v4.apk", in SetUp()
47 ReadFileFromZipToString(GetTestDataPath() + "/basic/basic_xhdpi-v4.apk", in SetUp()
50 GetTestDataPath() + "/basic/basic_xxhdpi-v4.apk", "resources.arsc", in SetUp()
53 ReadFileFromZipToString(GetTestDataPath() + "/feature/feature.apk", in SetUp()
H A DAppAsLib_test.cpp31 ReadFileFromZipToString(GetTestDataPath() + "/appaslib/appaslib.apk", in TEST()
48 ReadFileFromZipToString(GetTestDataPath() + "/appaslib/appaslib.apk", in TEST()
67 ReadFileFromZipToString(GetTestDataPath() + "/appaslib/appaslib_lib.apk", in TEST()
H A DTheme_test.cpp39 system_assets_ = ApkAssets::Load(GetTestDataPath() + "/system/system.apk", PROPERTY_SYSTEM); in SetUp()
42 style_assets_ = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in SetUp()
45 libclient_assets_ = ApkAssets::Load(GetTestDataPath() + "/libclient/libclient.apk"); in SetUp()
48 lib_one_assets_ = ApkAssets::Load(GetTestDataPath() + "/lib_one/lib_one.apk"); in SetUp()
51 lib_two_assets_ = ApkAssets::Load(GetTestDataPath() + "/lib_two/lib_two.apk"); in SetUp()
H A DAttributeResolution_bench.cpp40 ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in BM_ApplyStyle()
90 ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in BM_ApplyStyleFramework()
H A DTestMain.cpp25 std::cerr << "using --testdata=" << ::android::GetTestDataPath() << "\n"; in main()
H A DBenchMain.cpp27 std::cerr << "using --testdata=" << ::android::GetTestDataPath() << "\n"; in main()
H A DCommonHelpers.h33 const std::string& GetTestDataPath();
H A DCommonHelpers.cpp55 const std::string& GetTestDataPath() { in GetTestDataPath() function
H A DIdmap_test.cpp44 chdir(GetTestDataPath().c_str()); in SetUp()
200 auto asset = AssetsProvider::CreateAssetFromFile(GetTestDataPath() + "/loader/resources.arsc"); in TEST_F()
H A DAttributeResolution_test.cpp37 styles_assets_ = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in SetUp()
70 auto apk_assets = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk", PROPERTY_DYNAMIC); in TEST()
/aosp12/frameworks/base/cmds/idmap2/tests/
H A DTestHelpers.h147 std::string GetTestDataPath();
159 target_apk_path_ = GetTestDataPath() + "/target/target.apk"; in SetUp()
160 overlay_apk_path_ = GetTestDataPath() + "/overlay/overlay.apk"; in SetUp()
H A DResourceUtilsTests.cpp66 OverlayResourceContainer::FromPath(GetTestDataPath() + "/overlay/overlay-invalid.apk"); in TEST_F()
75 OverlayResourceContainer::FromPath(GetTestDataPath() + "/overlay/overlay-invalid.apk"); in TEST_F()
84 OverlayResourceContainer::FromPath(GetTestDataPath() + "/overlay/overlay-invalid.apk"); in TEST_F()
H A DIdmapTests.cpp189 std::string target_apk_path = GetTestDataPath() + "/target/target.apk"; in TEST()
190 std::string overlay_apk_path = GetTestDataPath() + "/overlay/overlay.apk"; in TEST()
218 std::string target_apk_path = GetTestDataPath() + "/target/target.apk"; in TEST()
219 std::string overlay_apk_path = GetTestDataPath() + "/overlay/overlay.apk"; in TEST()
259 std::string target_apk_path = GetTestDataPath() + "/target/target.apk"; in TEST()
301 std::string target_apk_path = GetTestDataPath() + "/target/target.apk"; in TEST()
302 std::string overlay_apk_path = GetTestDataPath() + "/overlay/overlay.apk"; in TEST()
323 std::string target_apk_path = GetTestDataPath() + "/target/target.apk"; in TEST()
324 std::string overlay_apk_path = GetTestDataPath() + "/overlay/overlay-shared.apk"; in TEST()
375 const std::string target_path(GetTestDataPath() + local_target_path); in TestIdmapDataFromApkAssets()
[all …]
H A DPrettyPrintVisitorTests.cpp37 const std::string target_apk_path(GetTestDataPath() + "/target/target.apk"); in TEST()
41 const std::string overlay_apk_path(GetTestDataPath() + "/overlay/overlay.apk"); in TEST()
H A DMain.cpp25 std::string GetTestDataPath() { in GetTestDataPath() function
H A DRawPrintVisitorTests.cpp50 const std::string target_apk_path(GetTestDataPath() + "/target/target.apk"); in TEST()
54 const std::string overlay_apk_path(GetTestDataPath() + "/overlay/overlay.apk"); in TEST()
H A DIdmap2BinaryTests.cpp167 "--idmap-path", GetTestDataPath() + "/DOES-NOT-EXIST"}); in TEST_F()
230 const std::string invalid_target_apk_path = GetTestDataPath() + "/DOES-NOT-EXIST"; in TEST_F()
H A DXmlParserTests.cpp29 auto zip = ZipAssetsProvider::Create(GetTestDataPath() + "/target/target.apk", 0 /* flags */); in CreateTestParser()
H A DResourceMappingTests.cpp51 : (GetTestDataPath() + "/" + local_target_path); in TestGetResourceMapping()
59 : (GetTestDataPath() + "/" + local_overlay_path); in TestGetResourceMapping()
/aosp12/packages/modules/ExtServices/native/tests/
H A DImageHashManager_test.cpp40 std::string GetTestDataPath(const std::string& fn) { in GetTestDataPath() function
47 const std::string full_filename = GetTestDataPath(filename); in NewFrameFromJpeg()

12