Searched refs:idmap_path (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/cmds/idmap/ |
D | idmap.cpp | 149 const char *idmap_path) in maybe_create_path() argument 166 return idmap_create_path(target_apk_path, overlay_apk_path, idmap_path); in maybe_create_path() 195 int maybe_inspect(const char *idmap_path) in maybe_inspect() argument 198 if (!verify_file_readable(idmap_path)) { in maybe_inspect() 199 ALOGD("error: failed to read idmap %s: %s\n", idmap_path, strerror(errno)); in maybe_inspect() 202 return idmap_inspect(idmap_path); in maybe_inspect()
|
D | scan.cpp | 22 apk_path(a), idmap_path(i), priority(p) {} in Overlay() 31 String8 idmap_path; member 44 fprintf(fout, "%s %s\n", overlay.apk_path.string(), overlay.idmap_path.string()); in writePackagesList() 224 String8 idmap_path(idmap_dir); in idmap_scan() local 225 idmap_path.appendPath(flatten_path(overlay_apk_path + 1)); in idmap_scan() 226 idmap_path.append("@idmap"); in idmap_scan() 228 if (idmap_create_path(target_apk_path, overlay_apk_path, idmap_path.string()) != 0) { in idmap_scan() 230 target_apk_path, overlay_apk_path, idmap_path.string()); in idmap_scan() 234 Overlay overlay(String8(overlay_apk_path), idmap_path, priority); in idmap_scan()
|
D | create.cpp | 134 const char *idmap_path) in is_idmap_stale_path() argument 137 if (stat(idmap_path, &st) == -1) { in is_idmap_stale_path() 142 int idmap_fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY)); in is_idmap_stale_path() 198 const char *idmap_path) in idmap_create_path() argument 200 if (!is_idmap_stale_path(target_apk_path, overlay_apk_path, idmap_path)) { in idmap_create_path() 205 int fd = open_idmap(idmap_path); in idmap_create_path() 213 unlink(idmap_path); in idmap_create_path()
|
D | inspect.cpp | 33 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()
|
D | idmap.h | 22 const char *idmap_path); 32 int idmap_inspect(const char *idmap_path);
|
/frameworks/native/cmds/installd/ |
D | commands.c | 1381 const char *overlay_path, char *idmap_path, size_t N) in flatten_path() argument 1383 if (overlay_path == NULL || idmap_path == NULL) { in flatten_path() 1401 memset(idmap_path, 0, N); in flatten_path() 1402 snprintf(idmap_path, N, "%s%s%s", prefix, overlay_path + 1, suffix); in flatten_path() 1403 char *ch = idmap_path + len_idmap_root; in flatten_path() 1418 char idmap_path[PATH_MAX]; in idmap() local 1421 idmap_path, sizeof(idmap_path)) == -1) { in idmap() 1426 unlink(idmap_path); in idmap() 1427 idmap_fd = open(idmap_path, O_RDWR | O_CREAT | O_EXCL, 0644); in idmap() 1429 ALOGE("idmap cannot open '%s' for output: %s\n", idmap_path, strerror(errno)); in idmap() [all …]
|