Home
last modified time | relevance | path

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

/frameworks/base/cmds/idmap/
Dscan.cpp25 apk_path(a), idmap_path(i), priority(p) {} in Overlay()
33 String8 idmap_path; member
59 fprintf(fout, "%s %s\n", overlay.apk_path.string(), overlay.idmap_path.string()); in writePackagesList()
217 String8 idmap_path(idmap_dir); in idmap_scan() local
218 idmap_path.appendPath(flatten_path(overlay_apk_path + 1)); in idmap_scan()
219 idmap_path.append("@idmap"); in idmap_scan()
221 if (idmap_create_path(target_apk_path, overlay_apk_path, idmap_path.string()) != 0) { in idmap_scan()
223 target_apk_path, overlay_apk_path, idmap_path.string()); in idmap_scan()
227 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.cpp1949 const char *overlay_path, char *idmap_path, size_t N) in flatten_path() argument
1951 if (overlay_path == NULL || idmap_path == NULL) { in flatten_path()
1969 memset(idmap_path, 0, N); in flatten_path()
1970 snprintf(idmap_path, N, "%s%s%s", prefix, overlay_path + 1, suffix); in flatten_path()
1971 char *ch = idmap_path + len_idmap_root; in flatten_path()
1986 char idmap_path[PATH_MAX]; in idmap() local
1989 idmap_path, sizeof(idmap_path)) == -1) { in idmap()
1994 unlink(idmap_path); in idmap()
1995 idmap_fd = open(idmap_path, O_RDWR | O_CREAT | O_EXCL, 0644); in idmap()
1997 ALOGE("idmap cannot open '%s' for output: %s\n", idmap_path, strerror(errno)); in idmap()
[all …]