Home
last modified time | relevance | path

Searched refs:idmap_fd (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/cmds/idmap/
Dcreate.cpp75 bool is_idmap_stale_fd(const char *target_apk_path, const char *overlay_apk_path, int idmap_fd) in is_idmap_stale_fd() argument
79 if (fstat(idmap_fd, &st) == -1) { in is_idmap_stale_fd()
89 if (lseek(idmap_fd, 0, SEEK_SET) < 0) { in is_idmap_stale_fd()
93 ssize_t r = TEMP_FAILURE_RETRY(read(idmap_fd, buf + N - bytesLeft, bytesLeft)); in is_idmap_stale_fd()
147 int idmap_fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY)); in is_idmap_stale_path() local
148 if (idmap_fd == -1) { in is_idmap_stale_path()
151 bool is_stale = is_idmap_stale_fd(target_apk_path, overlay_apk_path, idmap_fd); in is_idmap_stale_path()
152 close(idmap_fd); in is_idmap_stale_path()
Didmap.cpp134 int idmap_fd = strtol(idmap_str, &endptr, 10); in maybe_create_fd() local
150 return idmap_create_fd(target_apk_path, overlay_apk_path, idmap_fd); in maybe_create_fd()
178 int idmap_fd = strtol(idmap_str, &endptr, 10); in maybe_verify_fd() local
194 return idmap_verify_fd(target_apk_path, overlay_apk_path, idmap_fd); in maybe_verify_fd()
/frameworks/native/cmds/installd/
DInstalldNativeService.cpp2251 static void run_idmap(const char *target_apk, const char *overlay_apk, int idmap_fd) in run_idmap() argument
2254 StringPrintf("%d", idmap_fd).c_str(), (char*)nullptr); in run_idmap()
2258 static void run_verify_idmap(const char *target_apk, const char *overlay_apk, int idmap_fd) in run_verify_idmap() argument
2261 StringPrintf("%d", idmap_fd).c_str(), (char*)nullptr); in run_verify_idmap()
2267 int idmap_fd = open(idmap_path, O_RDWR); in delete_stale_idmap() local
2268 if (idmap_fd < 0) { in delete_stale_idmap()
2286 if (flock(idmap_fd, LOCK_EX | LOCK_NB) != 0) { in delete_stale_idmap()
2291 run_verify_idmap(target_apk, overlay_apk, idmap_fd); in delete_stale_idmap()
2295 close(idmap_fd); in delete_stale_idmap()
2353 int idmap_fd = -1; in idmap() local
[all …]