Searched refs:statbuf (Results 1 – 7 of 7) sorted by relevance
/frameworks/av/media/libmedia/ |
D | MediaScanner.cpp | 175 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/ |
D | HyphTool.cpp | 14 struct stat statbuf; in loadHybFile() local 15 int status = stat(fn, &statbuf); in loadHybFile() 20 size_t size = statbuf.st_size; in loadHybFile()
|
/frameworks/native/cmds/service/ |
D | service.cpp | 222 struct stat statbuf; in main() local 223 if (fd < 0 || fstat(fd, &statbuf) != 0) { in main() 229 int afd = ashmem_create_region("test", statbuf.st_size); in main() 230 void* ptr = mmap(NULL, statbuf.st_size, in main() 232 read(fd, ptr, statbuf.st_size); in main()
|
/frameworks/av/media/mtp/ |
D | MtpUtils.cpp | 232 struct stat statbuf; in deletePath() local 234 if (stat(path, &statbuf) == 0) { in deletePath() 235 if (S_ISDIR(statbuf.st_mode)) { in deletePath()
|
/frameworks/wilhelm/tests/examples/ |
D | slesTestDecodeAac.cpp | 417 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() 849 ok = munmap(ptr, statbuf.st_size); in TestDecToBuffQueue()
|
/frameworks/wilhelm/tests/sandbox/ |
D | xaplay.c | 323 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/wilhelm/src/android/ |
D | AudioPlayer_to_android.cpp | 1776 struct stat statbuf; in android_audioPlayer_realize() local 1777 if (!::fstat(fd, &statbuf) && S_ISREG(statbuf.st_mode)) { in android_audioPlayer_realize() 1780 pAudioPlayer->mAPlayer->setDataSource(fd, 0, statbuf.st_size, true); in android_audioPlayer_realize()
|