Home | History | Annotate | Download | only in installd

Lines Matching refs:basepath

425 int lookup_media_dir(char basepath[PATH_MAX], const char *dir)
430 char* dirpos = basepath + strlen(basepath);
437 CACHE_NOISY(ALOGI("Looking up %s in %s\n", dir, basepath));
440 if ((dirpos-basepath+strlen(dir)) >= (PATH_MAX-1)) {
441 ALOGW("Path exceeds limit: %s%s", basepath, dir);
447 if (stat(basepath, &s) >= 0) {
448 CACHE_NOISY(ALOGI("Found direct: %s\n", basepath));
456 d = opendir(basepath);
465 CACHE_NOISY(ALOGI("Found search: %s\n", basepath));
470 ALOGW("Couldn't find %s in %s", dir, basepath);
733 void add_cache_files(cache_t* cache, const char *basepath, const char *cachedir)
739 CACHE_NOISY(ALOGI("add_cache_files: base=%s cachedir=%s\n", basepath, cachedir));
741 d = opendir(basepath);
758 strcpy(dirname, basepath);