Lines Matching refs:path
69 char * path = strtok(skipList, ","); in loadSkipList() local
71 while (path) { in loadSkipList()
72 mSkipIndex[i++] = strlen(path); in loadSkipList()
73 path = strtok(NULL, ","); in loadSkipList()
82 const char *path, MediaScannerClient &client) { in processDirectory() argument
83 int pathLength = strlen(path); in processDirectory()
93 strcpy(pathBuffer, path); in processDirectory()
109 bool MediaScanner::shouldSkipDirectory(char *path) { in shouldSkipDirectory() argument
110 if (path && mSkipList && mSkipIndex) { in shouldSkipDirectory()
111 int len = strlen(path); in shouldSkipDirectory()
121 && (strncmp(path, &mSkipList[startPos], len) == 0)) { in shouldSkipDirectory()
132 char *path, int pathRemaining, MediaScannerClient &client, bool noMedia) { in doProcessDirectory() argument
134 char* fileSpot = path + strlen(path); in doProcessDirectory()
137 if (shouldSkipDirectory(path)) { in doProcessDirectory()
138 ALOGD("Skipping: %s", path); in doProcessDirectory()
145 if (access(path, F_OK) == 0) { in doProcessDirectory()
154 DIR* dir = opendir(path); in doProcessDirectory()
156 ALOGW("Error opening directory '%s', skipping: %s.", path, strerror(errno)); in doProcessDirectory()
162 if (doProcessDirectoryEntry(path, pathRemaining, client, noMedia, entry, fileSpot) in doProcessDirectory()
173 char *path, int pathRemaining, MediaScannerClient &client, bool noMedia, in doProcessDirectoryEntry() argument
195 if (stat(path, &statbuf) == 0) { in doProcessDirectoryEntry()
202 ALOGD("stat() failed for %s: %s", path, strerror(errno) ); in doProcessDirectoryEntry()
213 if (stat(path, &statbuf) == 0) { in doProcessDirectoryEntry()
214 status_t status = client.scanFile(path, statbuf.st_mtime, 0, in doProcessDirectoryEntry()
223 MediaScanResult result = doProcessDirectory(path, pathRemaining - nameLength - 1, in doProcessDirectoryEntry()
229 stat(path, &statbuf); in doProcessDirectoryEntry()
230 status_t status = client.scanFile(path, statbuf.st_mtime, statbuf.st_size, in doProcessDirectoryEntry()