Home
last modified time | relevance | path

Searched refs:basepath (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/cmds/installd/
Dutils.cpp433 int lookup_media_dir(char basepath[PATH_MAX], const char *dir) in lookup_media_dir()
438 char* dirpos = basepath + strlen(basepath); in lookup_media_dir()
445 CACHE_NOISY(ALOGI("Looking up %s in %s\n", dir, basepath)); in lookup_media_dir()
448 if ((dirpos-basepath+strlen(dir)) >= (PATH_MAX-1)) { in lookup_media_dir()
449 ALOGW("Path exceeds limit: %s%s", basepath, dir); in lookup_media_dir()
455 if (stat(basepath, &s) >= 0) { in lookup_media_dir()
456 CACHE_NOISY(ALOGI("Found direct: %s\n", basepath)); in lookup_media_dir()
464 d = opendir(basepath); in lookup_media_dir()
473 CACHE_NOISY(ALOGI("Found search: %s\n", basepath)); in lookup_media_dir()
478 ALOGW("Couldn't find %s in %s", dir, basepath); in lookup_media_dir()
[all …]
Dinstalld.h185 int lookup_media_dir(char basepath[PATH_MAX], const char *dir);
191 void add_cache_files(cache_t* cache, const char *basepath, const char *cachedir);