Home
last modified time | relevance | path

Searched refs:path_map (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tools/aapt2/optimize/
DResourcePathShortener_test.cpp52 std::map<std::string, std::string> path_map; in TEST() local
53 ASSERT_TRUE(ResourcePathShortener(path_map).Consume(context.get(), table.get())); in TEST()
56 ASSERT_THAT(path_map.find("res/drawables/xmlfile.xml"), Not(Eq(path_map.end()))); in TEST()
57 ASSERT_THAT(path_map.find("res/drawables/xmlfile2.xml"), Not(Eq(path_map.end()))); in TEST()
60 EXPECT_THAT(path_map.at("res/drawables/xmlfile.xml"), Not(Eq("res/drawables/xmlfile.xml"))); in TEST()
61 EXPECT_THAT(path_map.at("res/drawables/xmlfile2.xml"), Not(Eq("res/drawables/xmlfile2.xml"))); in TEST()
64 EXPECT_THAT(path_map["res/drawables/xmlfile.xml"], in TEST()
65 Not(Eq(path_map["res/drawables/xmlfile2.xml"]))); in TEST()
71 EXPECT_THAT(path_map["res/drawables/xmlfile.xml"], Eq(*ref->path)); in TEST()
77 EXPECT_THAT(path_map.find("res/should/still/be/the/same.png"), Eq(path_map.end())); in TEST()
[all …]
/frameworks/wilhelm/tools/permute/
Dpermute.c284 char *path_map = malloc(strlen(path_in) + 8); in permute() local
285 assert(path_map != NULL); in permute()
286 strcpy(path_map, path_in); in permute()
287 strcat(path_map, ".map"); in permute()
288 FILE *fp_map = fopen(path_map, "w"); in permute()
290 perror(path_map); in permute()
/frameworks/base/tools/aapt2/cmd/
DOptimize.cpp290 bool WriteShortenedPathsMap(const std::map<std::string, std::string> &path_map, in WriteShortenedPathsMap() argument
293 for (auto it = path_map.cbegin(); it != path_map.cend(); ++it) { in WriteShortenedPathsMap()
DOptimize.h122 bool WriteObfuscatedPathsMap(const std::map<std::string, std::string> &path_map,