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

/frameworks/base/cmds/idmap/
H A Didmap.h22 const char *idmap_path);
32 int idmap_inspect(const char *idmap_path);
H A Didmap.cpp149 const char *idmap_path)
166 return idmap_create_path(target_apk_path, overlay_apk_path, idmap_path);
195 int maybe_inspect(const char *idmap_path) argument
198 if (!verify_file_readable(idmap_path)) {
199 ALOGD("error: failed to read idmap %s: %s\n", idmap_path, strerror(errno));
202 return idmap_inspect(idmap_path);
148 maybe_create_path(const char *target_apk_path, const char *overlay_apk_path, const char *idmap_path) argument
H A Dcreate.cpp134 const char *idmap_path)
137 if (stat(idmap_path, &st) == -1) {
142 int idmap_fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY));
198 const char *idmap_path)
200 if (!is_idmap_stale_path(target_apk_path, overlay_apk_path, idmap_path)) {
205 int fd = open_idmap(idmap_path);
213 unlink(idmap_path);
133 is_idmap_stale_path(const char *target_apk_path, const char *overlay_apk_path, const char *idmap_path) argument
197 idmap_create_path(const char *target_apk_path, const char *overlay_apk_path, const char *idmap_path) argument
H A Dscan.cpp22 apk_path(a), idmap_path(i), priority(p) {}
31 String8 idmap_path; member in struct:__anon782::Overlay
44 fprintf(fout, "%s %s\n", overlay.apk_path.string(), overlay.idmap_path.string());
224 String8 idmap_path(idmap_dir);
225 idmap_path.appendPath(flatten_path(overlay_apk_path + 1));
226 idmap_path.append("@idmap");
228 if (idmap_create_path(target_apk_path, overlay_apk_path, idmap_path.string()) != 0) {
230 target_apk_path, overlay_apk_path, idmap_path.string());
234 Overlay overlay(String8(overlay_apk_path), idmap_path, priority); local
H A Dinspect.cpp33 status_t init(const char *idmap_path) { argument
37 if (stat(idmap_path, &st) < 0) {
38 printe("failed to stat idmap '%s': %s\n", idmap_path, strerror(errno));
42 if ((fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY))) < 0) {
43 printe("failed to open idmap '%s': %s\n", idmap_path, strerror(errno));
294 int idmap_inspect(const char *idmap_path) { argument
296 if (buf.init(idmap_path) < 0) {
/frameworks/native/cmds/installd/
H A Dcommands.c1457 const char *overlay_path, char *idmap_path, size_t N)
1459 if (overlay_path == NULL || idmap_path == NULL) {
1477 memset(idmap_path, 0, N);
1478 snprintf(idmap_path, N, "%s%s%s", prefix, overlay_path + 1, suffix);
1479 char *ch = idmap_path + len_idmap_root;
1494 char idmap_path[PATH_MAX]; local
1497 idmap_path, sizeof(idmap_path)) == -1) {
1502 unlink(idmap_path);
1503 idmap_fd = open(idmap_path, O_RDW
1456 flatten_path(const char *prefix, const char *suffix, const char *overlay_path, char *idmap_path, size_t N) argument
[all...]

Completed in 340 milliseconds