Searched refs:basepath (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/cmds/installd/ |
D | utils.c | 312 int lookup_media_dir(char basepath[PATH_MAX], const char *dir) in lookup_media_dir() 317 char* dirpos = basepath + strlen(basepath); in lookup_media_dir() 324 CACHE_NOISY(ALOGI("Looking up %s in %s\n", dir, basepath)); in lookup_media_dir() 327 if ((dirpos-basepath+strlen(dir)) >= (PATH_MAX-1)) { in lookup_media_dir() 328 ALOGW("Path exceeds limit: %s%s", basepath, dir); in lookup_media_dir() 334 if (stat(basepath, &s) >= 0) { in lookup_media_dir() 335 CACHE_NOISY(ALOGI("Found direct: %s\n", basepath)); in lookup_media_dir() 343 d = opendir(basepath); in lookup_media_dir() 352 CACHE_NOISY(ALOGI("Found search: %s\n", basepath)); in lookup_media_dir() 357 ALOGW("Couldn't find %s in %s", dir, basepath); in lookup_media_dir() [all …]
|
D | installd.h | 163 int lookup_media_dir(char basepath[PATH_MAX], const char *dir); 169 void add_cache_files(cache_t* cache, const char *basepath, const char *cachedir);
|