Searched refs:statbuf (Results 1 – 9 of 9) 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 | 204 struct stat statbuf; in main() local 205 if (fd < 0 || fstat(fd, &statbuf) != 0) { in main() 212 int afd = ashmem_create_region("test", statbuf.st_size); in main() 213 void* ptr = mmap(NULL, statbuf.st_size, in main() 215 (void)read(fd, ptr, statbuf.st_size); in main()
|
/frameworks/av/media/mtp/ |
D | MtpUtils.cpp | 233 struct stat statbuf; in deletePath() local 235 if (stat(path, &statbuf) == 0) { in deletePath() 236 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 | 1736 struct stat statbuf; in android_audioPlayer_realize() local 1737 if (!::fstat(fd, &statbuf) && S_ISREG(statbuf.st_mode)) { in android_audioPlayer_realize() 1740 pAudioPlayer->mAPlayer->setDataSource(fd, 0, statbuf.st_size, true); in android_audioPlayer_realize()
|
/frameworks/native/services/inputflinger/reader/ |
D | EventHub.cpp | 203 struct stat statbuf; in getSysfsRootPath() local 204 if (stat(devicePath, &statbuf) == -1) { in getSysfsRootPath() 209 unsigned int major_num = major(statbuf.st_rdev); in getSysfsRootPath() 210 unsigned int minor_num = minor(statbuf.st_rdev); in getSysfsRootPath()
|
/frameworks/av/media/libstagefright/ |
D | MPEG4Writer.cpp | 1201 struct stat statbuf; in release() local 1202 if (fstat(mFd, &statbuf) == 0) { in release() 1203 filesize = statbuf.st_size; in release()
|