Home
last modified time | relevance | path

Searched refs:statbuf (Results 1 – 9 of 9) 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.cpp14 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/
Dservice.cpp204 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/
DMtpUtils.cpp233 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/
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()
849 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/wilhelm/src/android/
DAudioPlayer_to_android.cpp1736 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/
DEventHub.cpp203 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/
DMPEG4Writer.cpp1201 struct stat statbuf; in release() local
1202 if (fstat(mFd, &statbuf) == 0) { in release()
1203 filesize = statbuf.st_size; in release()