Home
last modified time | relevance | path

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

1234

/aosp_15_r20/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 auto 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 auto loaded_apk = ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST()
49 const std::string path = GetTestDataPath() + "/basic/basic.apk"; in TEST()
63 auto loaded_apk = ApkAssets::Load(GetTestDataPath() + "/appaslib/appaslib.apk"); in TEST()
71 loaded_apk = ApkAssets::Load(GetTestDataPath() + "/appaslib/appaslib.apk", PROPERTY_DYNAMIC); in TEST()
81 auto loaded_apk = ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST()
92 auto loaded_apk = ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST()
116 auto loaded_apk = ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST()
127 = ZipAssetsProvider::Create(GetTestDataPath() + "/bad/bad.apk", 0); in TEST()
H A DResTable_test.cpp38 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 …]
H A DLoadedArsc_test.cpp50 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()
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 DSparseEntry_bench.cpp39 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()
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()
/aosp_15_r20/external/perfetto/src/traced/probes/filesystem/
H A Dinode_file_data_source_unittest.cc57 lstat(base::GetTestDataPath("src/traced/probes/filesystem/testdata") in TestInodeFileDataSource()
62 base::GetTestDataPath("src/traced/probes/filesystem/testdata")); in TestInodeFileDataSource()
100 lstat(base::GetTestDataPath("src/traced/probes/filesystem/testdata/file2") in TEST_F()
107 {base::GetTestDataPath("src/traced/probes/filesystem/testdata/file2")}); in TEST_F()
123 base::GetTestDataPath("src/traced/probes/filesystem/testdata"), in TEST_F()
128 lstat(base::GetTestDataPath("src/traced/probes/filesystem/testdata/file2") in TEST_F()
134 {base::GetTestDataPath("src/traced/probes/filesystem/testdata/file2")}); in TEST_F()
146 base::GetTestDataPath("src/traced/probes/filesystem/testdata"), in TEST_F()
151 lstat(base::GetTestDataPath("src/traced/probes/filesystem/testdata/file2") in TEST_F()
157 {base::GetTestDataPath("src/traced/probes/filesystem/testdata/file2")}); in TEST_F()
H A Dfile_scanner_unittest.cc106 {base::GetTestDataPath("src/traced/probes/filesystem/testdata")}, in TEST()
126 {base::GetTestDataPath("src/traced/probes/filesystem/testdata")}, in TEST()
146 {base::GetTestDataPath("src/traced/probes/filesystem/testdata")}, in TEST()
154 base::GetTestDataPath( in TEST()
157 Eq(StatFileEntry(base::GetTestDataPath( in TEST()
161 base::GetTestDataPath( in TEST()
178 {base::GetTestDataPath("src/traced/probes/filesystem/testdata")}, in TEST()
188 base::GetTestDataPath( in TEST()
191 Eq(StatFileEntry(base::GetTestDataPath( in TEST()
195 base::GetTestDataPath( in TEST()
/aosp_15_r20/external/python/apitools/apitools/gen/
Dgen_client_test.py25 def GetTestDataPath(*path): function
49 '--infile', GetTestDataPath('dns', 'dns_v1.json'),
64 '--infile', GetTestDataPath('dns', 'dns_v1.json'),
85 '--infile', GetTestDataPath('dns', 'dns_v1.json'),
100 '--infile', GetTestDataPath('dns', 'dns_v1.json'),
115 '--infile', GetTestDataPath('dns', 'dns_v1.json'),
129 '--infile', GetTestDataPath('dns', 'dns_v1.json'),
/aosp_15_r20/hardware/google/gfxstream/host/tests/
DCompositorVk_unittest.cpp25 std::string GetTestDataPath(const std::string& basename) { in GetTestDataPath() function
406 auto source = createSourceImageFromPng(GetTestDataPath("256x256_android.png")); in TEST_F()
453 GetTestDataPath("256x256_golden_simple_composition.png"), in TEST_F()
462 createSourceImageFromPng(GetTestDataPath("256x256_android_with_transparency.png")); in TEST_F()
509 GetTestDataPath("256x256_golden_blend_premultiplied.png"), in TEST_F()
517 auto source = createSourceImageFromPng(GetTestDataPath("256x256_android.png")); in TEST_F()
563 compareImageWithGoldenPng(target.get(), GetTestDataPath("256x256_golden_crop.png"), in TEST_F()
605 compareImageWithGoldenPng(target.get(), GetTestDataPath("256x256_golden_solid_color.png"), in TEST_F()
614 createSourceImageFromPng(GetTestDataPath("256x256_android_with_transparency.png")); in TEST_F()
682 compareImageWithGoldenPng(target.get(), GetTestDataPath("256x256_golden_solid_color_below.png"), in TEST_F()
[all …]
/aosp_15_r20/frameworks/base/cmds/idmap2/tests/
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 auto target = TargetResourceContainer::FromPath(GetTestDataPath() + "/target/target-bad.apk"); in TEST()
232 std::string target_apk_path = GetTestDataPath() + "/target/target.apk"; in TEST()
233 std::string overlay_apk_path = GetTestDataPath() + "/overlay/overlay.apk"; in TEST()
273 std::string target_apk_path = GetTestDataPath() + "/target/target.apk"; in TEST()
277 auto path = GetTestDataPath() + "/overlay/res/drawable/android.png"; in TEST()
334 std::string target_apk_path = GetTestDataPath() + "/target/target.apk"; in TEST()
335 std::string overlay_apk_path = GetTestDataPath() + "/overlay/overlay.apk"; in TEST()
356 std::string target_apk_path = GetTestDataPath() + "/target/target.apk"; in TEST()
[all …]
H A DTestHelpers.h208 std::string GetTestDataPath();
231 target_apk_path_ = GetTestDataPath() + "/target/target.apk"; in SetUp()
232 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 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()
/aosp_15_r20/external/cronet/base/
H A Dfile_version_info_win_unittest.cc24 FilePath GetTestDataPath() { in GetTestDataPath() function
99 FilePath dll_path = GetTestDataPath(); in TYPED_TEST()
130 FilePath dll_path = GetTestDataPath(); in TYPED_TEST()
164 FilePath dll_path = GetTestDataPath(); in TYPED_TEST()
/aosp_15_r20/external/libtextclassifier/native/utils/
H A Dbert_tokenizer_test.cc49 std::make_unique<BertTokenizer>(GetTestDataPath(kTestVocabPath)); in TEST()
67 std::make_unique<BertTokenizer>(GetTestDataPath(kTestVocabPath)); in TEST()
77 std::make_unique<BertTokenizer>(GetTestDataPath(kTestVocabPath)); in TEST()
90 std::make_unique<BertTokenizer>(GetTestDataPath(kTestVocabPath)); in TEST()
H A Dtest-data-test-utils.h28 inline std::string GetTestDataPath(const std::string& relative_path) { in GetTestDataPath() function
33 const std::string full_path = GetTestDataPath(relative_path); in GetTestFileContent()
/aosp_15_r20/external/google-breakpad/src/processor/
H A Dminidump_processor_unittest.cc209 static string GetTestDataPath() { in GetTestDataPath() function
261 *symbol_file = GetTestDataPath() + "symbols/test_app.pdb/" + in GetSymbolFile()
470 string minidump_file = GetTestDataPath() + "minidump2.dmp"; in TEST_F()
510 string minidump_file = GetTestDataPath() + "minidump2.dmp"; in TEST_F()
752 string minidump_file = GetTestDataPath() + "minidump_32bit_crash_addr.dmp"; in TEST_F()
772 string minidump_file = GetTestDataPath() in TEST_F()
795 string minidump_file = GetTestDataPath() in TEST_F()
814 string minidump_file = GetTestDataPath() in TEST_F()
/aosp_15_r20/external/federated-compute/fcp/testing/
H A Dtesting.cc49 std::string GetTestDataPath(absl::string_view relative_path) { in GetTestDataPath() function
159 std::string baseline_file_str = GetTestDataPath(baseline_file); in ComputeDiff()
213 new_baseline_file = GetTestDataPath(baseline_file); in VerifyAgainstBaseline()
/aosp_15_r20/external/perfetto/src/kallsyms/
H A Dkernel_symbol_map_benchmark.cc104 kallsyms.Parse(perfetto::base::GetTestDataPath("test/data/kallsyms.txt")); in BM_KallSymsFind()
130 perfetto::base::GetTestDataPath("test/data/kallsyms.txt"); in BM_KallSymsLoad()
/aosp_15_r20/external/perfetto/src/protozero/test/
H A Dproto_ring_buffer_benchmark.cc27 perfetto::base::ReadFile(perfetto::base::GetTestDataPath(kTestTrace), in BM_ProtoRingBufferReadLargeChunks()
51 perfetto::base::ReadFile(perfetto::base::GetTestDataPath(kTestTrace), in BM_ProtoRingBufferRead()
/aosp_15_r20/external/perfetto/src/profiling/memory/
H A Dparse_smaps_unittest.cc40 base::GetTestDataPath("src/profiling/memory/test/data/cat_smaps").c_str(), in TEST()
66 base::GetTestDataPath("src/profiling/memory/test/data/cat_smaps_noeol") in TEST()
/aosp_15_r20/external/protobuf/src/google/protobuf/compiler/
H A Dcommand_line_interface_unittest.cc2683 RedirectStdinFromFile(TestUtil::GetTestDataPath( in TEST_P()
2692 ExpectStdoutMatchesBinaryFile(TestUtil::GetTestDataPath( in TEST_P()
2698 RedirectStdinFromFile(TestUtil::GetTestDataPath( in TEST_P()
2703 ExpectStdoutMatchesTextFile(TestUtil::GetTestDataPath( in TEST_P()
2752 RedirectStdinFromFile(TestUtil::GetTestDataPath( in TEST_P()
2762 ExpectStdoutMatchesBinaryFile(TestUtil::GetTestDataPath( in TEST_P()
2768 RedirectStdinFromFile(TestUtil::GetTestDataPath( in TEST_P()

1234