Home
last modified time | relevance | path

Searched refs:idmap_path (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/cmds/idmap/
Dscan.cpp24 apk_path(a), idmap_path(i), priority(p) {} in Overlay()
32 String8 idmap_path; member
45 fprintf(fout, "%s %s\n", overlay.apk_path.string(), overlay.idmap_path.string()); in writePackagesList()
204 String8 idmap_path(idmap_dir); in idmap_scan() local
205 idmap_path.appendPath(flatten_path(overlay_apk_path + 1)); in idmap_scan()
206 idmap_path.append("@idmap"); in idmap_scan()
208 if (idmap_create_path(target_apk_path, overlay_apk_path, idmap_path.string()) != 0) { in idmap_scan()
210 target_apk_path, overlay_apk_path, idmap_path.string()); in idmap_scan()
214 Overlay overlay(String8(overlay_apk_path), idmap_path, priority); in idmap_scan()
Didmap.cpp150 const char *idmap_path) in maybe_create_path() argument
167 return idmap_create_path(target_apk_path, overlay_apk_path, idmap_path); in maybe_create_path()
200 int maybe_inspect(const char *idmap_path) in maybe_inspect() argument
203 if (!verify_file_readable(idmap_path)) { in maybe_inspect()
204 ALOGD("error: failed to read idmap %s: %s\n", idmap_path, strerror(errno)); in maybe_inspect()
207 return idmap_inspect(idmap_path); in maybe_inspect()
Dcreate.cpp135 const char *idmap_path) in is_idmap_stale_path() argument
138 if (stat(idmap_path, &st) == -1) { in is_idmap_stale_path()
143 int idmap_fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY)); in is_idmap_stale_path()
199 const char *idmap_path) in idmap_create_path() argument
201 if (!is_idmap_stale_path(target_apk_path, overlay_apk_path, idmap_path)) { in idmap_create_path()
206 int fd = open_idmap(idmap_path); in idmap_create_path()
214 unlink(idmap_path); in idmap_create_path()
Dinspect.cpp33 status_t init(const char *idmap_path) { in init() argument
37 if (stat(idmap_path, &st) < 0) { in init()
38 printe("failed to stat idmap '%s': %s\n", idmap_path, strerror(errno)); in init()
42 if ((fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY))) < 0) { in init()
43 printe("failed to open idmap '%s': %s\n", idmap_path, strerror(errno)); in init()
294 int idmap_inspect(const char *idmap_path) { in idmap_inspect() argument
296 if (buf.init(idmap_path) < 0) { in idmap_inspect()
Didmap.h24 const char *idmap_path);
34 int idmap_inspect(const char *idmap_path);
/frameworks/native/cmds/installd/
Dcommands.cpp1717 const char *overlay_path, char *idmap_path, size_t N) in flatten_path() argument
1719 if (overlay_path == NULL || idmap_path == NULL) { in flatten_path()
1737 memset(idmap_path, 0, N); in flatten_path()
1738 snprintf(idmap_path, N, "%s%s%s", prefix, overlay_path + 1, suffix); in flatten_path()
1739 char *ch = idmap_path + len_idmap_root; in flatten_path()
1754 char idmap_path[PATH_MAX]; in idmap() local
1757 idmap_path, sizeof(idmap_path)) == -1) { in idmap()
1762 unlink(idmap_path); in idmap()
1763 idmap_fd = open(idmap_path, O_RDWR | O_CREAT | O_EXCL, 0644); in idmap()
1765 ALOGE("idmap cannot open '%s' for output: %s\n", idmap_path, strerror(errno)); in idmap()
[all …]