Searched refs:basepath (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/cmds/installd/ |
D | utils.c | 425 int lookup_media_dir(char basepath[PATH_MAX], const char *dir) in lookup_media_dir() 430 char* dirpos = basepath + strlen(basepath); in lookup_media_dir() 437 CACHE_NOISY(ALOGI("Looking up %s in %s\n", dir, basepath)); in lookup_media_dir() 440 if ((dirpos-basepath+strlen(dir)) >= (PATH_MAX-1)) { in lookup_media_dir() 441 ALOGW("Path exceeds limit: %s%s", basepath, dir); in lookup_media_dir() 447 if (stat(basepath, &s) >= 0) { in lookup_media_dir() 448 CACHE_NOISY(ALOGI("Found direct: %s\n", basepath)); in lookup_media_dir() 456 d = opendir(basepath); in lookup_media_dir() 465 CACHE_NOISY(ALOGI("Found search: %s\n", basepath)); in lookup_media_dir() 470 ALOGW("Couldn't find %s in %s", dir, basepath); in lookup_media_dir() [all …]
|
D | installd.h | 170 int lookup_media_dir(char basepath[PATH_MAX], const char *dir); 176 void add_cache_files(cache_t* cache, const char *basepath, const char *cachedir);
|