Searched refs:statbuf (Results 1 - 6 of 6) sorted by relevance

/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/base/cmds/installd/
H A Dcommands.c801 struct stat* statbuf)
806 if (lstat(path, statbuf) < 0) {
822 int dstuid, int dstgid, struct stat* statbuf)
831 if (lstat(srcpath, statbuf) < 0) {
836 if ((statbuf->st_mode&S_IFDIR) == 0) {
838 dstuid, dstgid, statbuf);
884 if (movefileordir(srcpath, dstpath, dstbasepos, dstuid, dstgid, statbuf) != 0) {
800 mkinnerdirs(char* path, int basepos, mode_t mode, int uid, int gid, struct stat* statbuf) argument
821 movefileordir(char* srcpath, char* dstpath, int dstbasepos, int dstuid, int dstgid, struct stat* statbuf) argument
/frameworks/wilhelm/tests/examples/
H A DslesTestDecodeAac.cpp418 struct stat statbuf; local
419 ok = fstat(fd, &statbuf);
426 if (!S_ISREG(statbuf.st_mode)) {
432 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0);
438 filelen = statbuf.st_size;
849 ok = munmap(ptr, statbuf.st_size);
/frameworks/wilhelm/tests/sandbox/
H A Dxaplay.c322 struct stat statbuf; local
323 ok = fstat(fd, &statbuf);
328 if (!S_ISREG(statbuf.st_mode)) {
333 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0);
338 size_t filelen = statbuf.st_size;
/frameworks/av/media/mtp/
H A DMtpServer.cpp1030 struct stat statbuf; local
1031 if (stat(path, &statbuf) == 0) {
1032 if (S_ISDIR(statbuf.st_mode)) {
/frameworks/wilhelm/src/android/
H A DAudioPlayer_to_android.cpp1519 struct stat statbuf; local
1520 if (!::fstat(fd, &statbuf) && S_ISREG(statbuf.st_mode)) {
1523 pAudioPlayer->mAPlayer->setDataSource(fd, 0, statbuf.st_size, true);

Completed in 115 milliseconds