Searched refs:idmap_path (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/cmds/idmap/ |
D | idmap.cpp | 154 const char *idmap_path) in maybe_create_path() argument 171 return idmap_create_path(target_apk_path, overlay_apk_path, idmap_path); in maybe_create_path() 227 int maybe_inspect(const char *idmap_path) in maybe_inspect() argument 230 if (!verify_file_readable(idmap_path)) { in maybe_inspect() 231 ALOGD("error: failed to read idmap %s: %s\n", idmap_path, strerror(errno)); in maybe_inspect() 234 return idmap_inspect(idmap_path); in maybe_inspect()
|
D | create.cpp | 135 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()
|
D | scan.cpp | 27 apk_path(a), idmap_path(i), priority(p) {} in Overlay() 35 String8 idmap_path; member 61 fprintf(fout, "%s %s\n", overlay.apk_path.string(), overlay.idmap_path.string()); in writePackagesList() 265 String8 idmap_path(idmap_dir); in idmap_scan() local 266 idmap_path.appendPath(flatten_path(overlay_apk_path + 1)); in idmap_scan() 267 idmap_path.append("@idmap"); in idmap_scan() 269 if (idmap_create_path(target_apk_path, overlay_apk_path, idmap_path.string()) != 0) { in idmap_scan() 271 target_apk_path, overlay_apk_path, idmap_path.string()); in idmap_scan() 275 Overlay overlay(String8(overlay_apk_path), idmap_path, priority); in idmap_scan()
|
D | inspect.cpp | 34 status_t init(const char *idmap_path) { in init() argument 38 if (stat(idmap_path, &st) < 0) { in init() 39 printe("failed to stat idmap '%s': %s\n", idmap_path, strerror(errno)); in init() 43 if ((fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY))) < 0) { in init() 44 printe("failed to open idmap '%s': %s\n", idmap_path, strerror(errno)); in init() 295 int idmap_inspect(const char *idmap_path) { in idmap_inspect() argument 297 if (buf.init(idmap_path) < 0) { in idmap_inspect()
|
D | idmap.h | 24 const char *idmap_path); 36 int idmap_inspect(const char *idmap_path);
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.cpp | 1992 const char* idmap_path, int32_t uid) { in delete_stale_idmap() argument 1993 int idmap_fd = open(idmap_path, O_RDWR); in delete_stale_idmap() 1995 PLOG(ERROR) << "idmap open failed: " << idmap_path; in delete_stale_idmap() 1996 unlink(idmap_path); in delete_stale_idmap() 2013 PLOG(ERROR) << "flock(" << idmap_path << ") failed during idmap"; in delete_stale_idmap() 2025 LOG(DEBUG) << "delete stale idmap: " << idmap_path; in delete_stale_idmap() 2026 unlink(idmap_path); in delete_stale_idmap() 2036 const char *overlay_path, char *idmap_path, size_t N) in flatten_path() argument 2038 if (overlay_path == NULL || idmap_path == NULL) { in flatten_path() 2056 memset(idmap_path, 0, N); in flatten_path() [all …]
|