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.cpp39 std::map<std::string, std::string> path_map; in TEST() local
40 ASSERT_TRUE(ResourcePathShortener(path_map).Consume(context.get(), table.get())); in TEST()
43 ASSERT_THAT(path_map.find("res/drawables/xmlfile.xml"), Not(Eq(path_map.end()))); in TEST()
44 ASSERT_THAT(path_map.find("res/drawables/xmlfile2.xml"), Not(Eq(path_map.end()))); in TEST()
47 EXPECT_THAT(path_map.at("res/drawables/xmlfile.xml"), Not(Eq("res/drawables/xmlfile.xml"))); in TEST()
48 EXPECT_THAT(path_map.at("res/drawables/xmlfile2.xml"), Not(Eq("res/drawables/xmlfile2.xml"))); in TEST()
51 EXPECT_THAT(path_map["res/drawables/xmlfile.xml"], in TEST()
52 Not(Eq(path_map["res/drawables/xmlfile2.xml"]))); in TEST()
58 EXPECT_THAT(path_map["res/drawables/xmlfile.xml"], Eq(*ref->path)); in TEST()
64 EXPECT_THAT(path_map.find("res/should/still/be/the/same.png"), Eq(path_map.end())); in TEST()
/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.cpp284 bool WriteShortenedPathsMap(const std::map<std::string, std::string> &path_map, in WriteShortenedPathsMap() argument
287 for (auto it = path_map.cbegin(); it != path_map.cend(); ++it) { in WriteShortenedPathsMap()
DOptimize.h124 bool WriteObfuscatedPathsMap(const std::map<std::string, std::string> &path_map,