/frameworks/base/libs/androidfw/tests/ |
D | AssetManager2_bench.cpp | 39 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 auto apk = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in BM_AssetManagerGetBag() 160 if (!assets.addAssetPath(String8((GetTestDataPath() + "/styles/styles.apk").data()), in BM_AssetManagerGetBagOld()
|
D | ApkAssets_test.cpp | 38 auto loaded_apk = ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST() 48 const std::string path = GetTestDataPath() + "/basic/basic.apk"; in TEST() 62 auto loaded_apk = ApkAssets::Load(GetTestDataPath() + "/appaslib/appaslib.apk"); in TEST() 70 loaded_apk = ApkAssets::Load(GetTestDataPath() + "/appaslib/appaslib.apk", PROPERTY_DYNAMIC); in TEST() 80 auto loaded_apk = ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST() 91 auto loaded_apk = ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST()
|
D | ResTable_test.cpp | 38 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST() 47 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST() 58 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST() 75 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST() 99 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST() 123 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/lib_one/lib_one.apk", in TEST() 147 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST() 168 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST() 201 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST() 324 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", in TEST() [all …]
|
D | SparseEntry_bench.cpp | 39 BM_SparseEntryGetResourceHelper({GetTestDataPath() + "/sparse/sparse.apk"}, resid, in BM_SparseEntryGetResourceOldSparse() 46 BM_SparseEntryGetResourceHelper({GetTestDataPath() + "/sparse/not_sparse.apk"}, resid, in BM_SparseEntryGetResourceOldNotSparse() 53 BM_SparseEntryGetResourceHelper({GetTestDataPath() + "/sparse/sparse.apk"}, resid, in BM_SparseEntryGetResourceSparse() 60 BM_SparseEntryGetResourceHelper({GetTestDataPath() + "/sparse/not_sparse.apk"}, resid, in BM_SparseEntryGetResourceNotSparse()
|
D | AppAsLib_test.cpp | 31 ReadFileFromZipToString(GetTestDataPath() + "/appaslib/appaslib.apk", in TEST() 48 ReadFileFromZipToString(GetTestDataPath() + "/appaslib/appaslib.apk", in TEST() 67 ReadFileFromZipToString(GetTestDataPath() + "/appaslib/appaslib_lib.apk", in TEST()
|
D | LoadedArsc_test.cpp | 50 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/styles/styles.apk", "resources.arsc", in TEST() 76 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/lib_one/lib_one.apk", "resources.arsc", in TEST() 97 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/libclient/libclient.apk", in TEST() 123 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/appaslib/appaslib.apk", in TEST() 140 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/feature/feature.apk", "resources.arsc", in TEST() 183 ReadFileFromZipToString(GetTestDataPath() + "/out_of_order_types/out_of_order_types.apk", in TEST() 205 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/overlayable/overlayable.apk", in TEST() 251 ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", "resources.arsc", &contents)); in TEST() 299 ASSERT_TRUE(ReadFileFromZipToString(GetTestDataPath() + "/overlayable/overlayable.apk", in TEST() 318 auto asset = AssetsProvider::CreateAssetFromFile(GetTestDataPath() + "/loader/resources.arsc"); in TEST()
|
D | Split_test.cpp | 38 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()
|
D | TestMain.cpp | 25 std::cerr << "using --testdata=" << ::android::GetTestDataPath() << "\n"; in main()
|
D | BenchMain.cpp | 27 std::cerr << "using --testdata=" << ::android::GetTestDataPath() << "\n"; in main()
|
D | CommonHelpers.h | 33 const std::string& GetTestDataPath();
|
D | AttributeResolution_bench.cpp | 39 auto styles_apk = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in BM_ApplyStyle() 88 auto basic_apk = ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in BM_ApplyStyleFramework()
|
D | Theme_test.cpp | 39 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()
|
D | CommonHelpers.cpp | 55 const std::string& GetTestDataPath() { in GetTestDataPath() function
|
D | Idmap_test.cpp | 44 chdir(GetTestDataPath().c_str()); in SetUp() 193 auto asset = AssetsProvider::CreateAssetFromFile(GetTestDataPath() + "/loader/resources.arsc"); in TEST_F()
|
D | AttributeResolution_test.cpp | 37 styles_assets_ = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in SetUp() 70 auto apk_assets = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk", PROPERTY_DYNAMIC); in TEST()
|
/frameworks/base/cmds/idmap2/tests/ |
D | ResourceUtilsTests.cpp | 66 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()
|
D | TestHelpers.h | 208 std::string GetTestDataPath(); 231 target_apk_path_ = GetTestDataPath() + "/target/target.apk"; in SetUp() 232 overlay_apk_path_ = GetTestDataPath() + "/overlay/overlay.apk"; in SetUp()
|
D | IdmapTests.cpp | 189 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() 263 auto path = GetTestDataPath() + "/overlay/res/drawable/android.png"; in TEST() 320 std::string target_apk_path = GetTestDataPath() + "/target/target.apk"; in TEST() 321 std::string overlay_apk_path = GetTestDataPath() + "/overlay/overlay.apk"; in TEST() 342 std::string target_apk_path = GetTestDataPath() + "/target/target.apk"; in TEST() 343 std::string overlay_apk_path = GetTestDataPath() + "/overlay/overlay-shared.apk"; in TEST() [all …]
|
D | PrettyPrintVisitorTests.cpp | 37 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()
|
D | Main.cpp | 25 std::string GetTestDataPath() { in GetTestDataPath() function
|
D | RawPrintVisitorTests.cpp | 50 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()
|
D | Idmap2BinaryTests.cpp | 166 "--idmap-path", GetTestDataPath() + "/DOES-NOT-EXIST"}); in TEST_F() 229 const std::string invalid_target_apk_path = GetTestDataPath() + "/DOES-NOT-EXIST"; in TEST_F()
|
D | ResourceMappingTests.cpp | 50 : (GetTestDataPath() + "/" + local_target_path); in TestGetResourceMapping() 58 : (GetTestDataPath() + "/" + local_overlay_path); in TestGetResourceMapping() 207 auto path = GetTestDataPath() + "/overlay/res/drawable/android.png"; in TEST()
|
D | XmlParserTests.cpp | 29 auto zip = ZipAssetsProvider::Create(GetTestDataPath() + "/target/target.apk", 0 /* flags */); in CreateTestParser()
|
D | FabricatedOverlayTests.cpp | 45 auto path = GetTestDataPath() + "/overlay/res/drawable/android.png"; in TEST()
|