Home
last modified time | relevance | path

Searched refs:statbuf (Results 1 – 7 of 7) sorted by relevance

/frameworks/av/media/libmedia/
DMediaScanner.cpp175 struct stat statbuf; in doProcessDirectoryEntry() local
195 if (stat(path, &statbuf) == 0) { in doProcessDirectoryEntry()
196 if (S_ISREG(statbuf.st_mode)) { in doProcessDirectoryEntry()
198 } else if (S_ISDIR(statbuf.st_mode)) { in doProcessDirectoryEntry()
213 if (stat(path, &statbuf) == 0) { in doProcessDirectoryEntry()
214 status_t status = client.scanFile(path, statbuf.st_mtime, 0, in doProcessDirectoryEntry()
229 stat(path, &statbuf); in doProcessDirectoryEntry()
230 status_t status = client.scanFile(path, statbuf.st_mtime, statbuf.st_size, in doProcessDirectoryEntry()
/frameworks/minikin/app/
DHyphTool.cpp13 struct stat statbuf; in loadHybFile() local
14 int status = stat(fn, &statbuf); in loadHybFile()
19 size_t size = statbuf.st_size; in loadHybFile()
/frameworks/wilhelm/tests/examples/
DslesTestDecodeAac.cpp417 struct stat statbuf; in TestDecToBuffQueue() local
418 ok = fstat(fd, &statbuf); in TestDecToBuffQueue()
425 if (!S_ISREG(statbuf.st_mode)) { in TestDecToBuffQueue()
431 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0); in TestDecToBuffQueue()
437 filelen = statbuf.st_size; in TestDecToBuffQueue()
848 ok = munmap(ptr, statbuf.st_size); in TestDecToBuffQueue()
/frameworks/wilhelm/tests/sandbox/
Dxaplay.c323 struct stat statbuf; in main() local
324 ok = fstat(fd, &statbuf); in main()
329 if (!S_ISREG(statbuf.st_mode)) { in main()
334 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0); in main()
339 size_t filelen = statbuf.st_size; in main()
/frameworks/av/media/mtp/
DMtpServer.cpp1118 struct stat statbuf; in deletePath() local
1119 if (stat(path, &statbuf) == 0) { in deletePath()
1120 if (S_ISDIR(statbuf.st_mode)) { in deletePath()
/frameworks/wilhelm/src/android/
DAudioPlayer_to_android.cpp1728 struct stat statbuf; in android_audioPlayer_realize() local
1729 if (!::fstat(fd, &statbuf) && S_ISREG(statbuf.st_mode)) { in android_audioPlayer_realize()
1732 pAudioPlayer->mAPlayer->setDataSource(fd, 0, statbuf.st_size, true); in android_audioPlayer_realize()
/frameworks/native/cmds/installd/
Dcommands.cpp1848 struct stat* statbuf) in mkinnerdirs() argument
1853 if (lstat(path, statbuf) < 0) { in mkinnerdirs()