Lines Matching refs:path

69             char * path = strtok(skipList, ",");
71 while (path) {
72 mSkipIndex[i++] = strlen(path);
73 path = strtok(NULL, ",");
82 const char *path, MediaScannerClient &client) {
83 int pathLength = strlen(path);
93 strcpy(pathBuffer, path);
109 bool MediaScanner::shouldSkipDirectory(char *path) {
110 if (path && mSkipList && mSkipIndex) {
111 int len = strlen(path);
113 // track the start position of next path in the comma
117 // no point to match path name if strlen mismatch
119 // pick out the path segment from comma separated list
120 // to compare against current path parameter
121 && (strncmp(path, &mSkipList[startPos], len) == 0)) {
132 char *path, int pathRemaining, MediaScannerClient &client, bool noMedia) {
134 char* fileSpot = path + strlen(path);
137 if (shouldSkipDirectory(path)) {
138 ALOGD("Skipping: %s", path);
145 if (access(path, F_OK) == 0) {
150 // restore path
154 DIR* dir = opendir(path);
156 ALOGW("Error opening directory '%s', skipping: %s.", path, strerror(errno));
162 if (doProcessDirectoryEntry(path, pathRemaining, client, noMedia, entry, fileSpot)
173 char *path, int pathRemaining, MediaScannerClient &client, bool noMedia,
185 // path too long!
195 if (stat(path, &statbuf) == 0) {
202 ALOGD("stat() failed for %s: %s", path, strerror(errno) );
213 if (stat(path, &statbuf) == 0) {
214 status_t status = client.scanFile(path, statbuf.st_mtime, 0,
223 MediaScanResult result = doProcessDirectory(path, pathRemaining - nameLength - 1,
229 stat(path, &statbuf);
230 status_t status = client.scanFile(path, statbuf.st_mtime, statbuf.st_size,