Searched refs:basepath (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/cmds/installd/ |
D | utils.cpp | 433 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 …]
|
D | installd.h | 185 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);
|