Searched defs:statbuf (Results 1 - 7 of 7) sorted by relevance

/frameworks/minikin/app/
H A DHyphTool.cpp13 struct stat statbuf; local
14 int status = stat(fn, &statbuf);
19 size_t size = statbuf.st_size;
/frameworks/av/media/libmedia/
H A DMediaScanner.cpp175 struct stat statbuf; local
195 if (stat(path, &statbuf) == 0) {
196 if (S_ISREG(statbuf.st_mode)) {
198 } else if (S_ISDIR(statbuf.st_mode)) {
213 if (stat(path, &statbuf) == 0) {
214 status_t status = client.scanFile(path, statbuf.st_mtime, 0,
229 stat(path, &statbuf);
230 status_t status = client.scanFile(path, statbuf.st_mtime, statbuf.st_size,
/frameworks/wilhelm/tests/examples/
H A DslesTestDecodeAac.cpp417 struct stat statbuf; local
418 ok = fstat(fd, &statbuf);
425 if (!S_ISREG(statbuf.st_mode)) {
431 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0);
437 filelen = statbuf.st_size;
848 ok = munmap(ptr, statbuf.st_size);
/frameworks/wilhelm/tests/sandbox/
H A Dxaplay.c323 struct stat statbuf; local
324 ok = fstat(fd, &statbuf);
329 if (!S_ISREG(statbuf.st_mode)) {
334 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0);
339 size_t filelen = statbuf.st_size;
/frameworks/av/media/mtp/
H A DMtpServer.cpp1114 struct stat statbuf; local
1115 if (stat(path, &statbuf) == 0) {
1116 if (S_ISDIR(statbuf.st_mode)) {
/frameworks/wilhelm/src/android/
H A DAudioPlayer_to_android.cpp1583 struct stat statbuf; local
1584 if (!::fstat(fd, &statbuf) && S_ISREG(statbuf.st_mode)) {
1587 pAudioPlayer->mAPlayer->setDataSource(fd, 0, statbuf.st_size, true);
/frameworks/native/cmds/installd/
H A Dcommands.cpp1616 struct stat* statbuf)
1621 if (lstat(path, statbuf) < 0) {
1615 mkinnerdirs(char* path, int basepos, mode_t mode, int uid, int gid, struct stat* statbuf) argument

Completed in 175 milliseconds