Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/av/media/mtp/
DMtpStorage.cpp66 struct statfs stat; in getMaxCapacity() local
67 if (statfs(getPath(), &stat)) in getMaxCapacity()
69 mMaxCapacity = (uint64_t)stat.f_blocks * (uint64_t)stat.f_bsize; in getMaxCapacity()
75 struct statfs stat; in getFreeSpace() local
76 if (statfs(getPath(), &stat)) in getFreeSpace()
78 uint64_t freeSpace = (uint64_t)stat.f_bavail * (uint64_t)stat.f_bsize; in getFreeSpace()
DMtpDeviceInfo.h20 struct stat;
/frameworks/base/core/jni/
Dandroid_net_TrafficStats.cpp84 static int parseIfaceStat(const char* iface, struct IfaceStat* stat) { in parseIfaceStat() argument
104 stat->rxBytes += rxBytes; in parseIfaceStat()
105 stat->rxPackets += rxPackets; in parseIfaceStat()
106 stat->txBytes += txBytes; in parseIfaceStat()
107 stat->txPackets += txPackets; in parseIfaceStat()
110 stat->rxBytes += devRxBytes; in parseIfaceStat()
111 stat->rxPackets += devRxPackets; in parseIfaceStat()
112 stat->txBytes += devTxBytes; in parseIfaceStat()
113 stat->txPackets += devTxPackets; in parseIfaceStat()
123 struct IfaceStat stat; in getIfaceStatType() local
[all …]
Dandroid_ddm_DdmHandleNativeHeap.cpp68 struct stat sb; in getLeakInfo()
69 int ret = stat(path, &sb); in getLeakInfo()
/frameworks/base/tests/LowStorageTest/src/com/android/lowstoragetest/
DLowStorageTest.java52 StatFs stat = new StatFs(path.getPath()); in onCreate() local
53 int totalBlocks = stat.getBlockCount(); in onCreate()
54 mBlockSize = (int) (stat.getBlockSize()); in onCreate()
80 StatFs stat = new StatFs(path.getPath()); in fillupdisk() local
81 int totalBlocks = stat.getBlockCount(); in fillupdisk()
82 int noOfBlockToFill = stat.getAvailableBlocks(); in fillupdisk()
122 StatFs stat = new StatFs(path.getPath()); in updateInfo() local
123 long availableBlocks = stat.getAvailableBlocks(); in updateInfo()
/frameworks/base/tools/aapt/
DFileFinder.cpp24 struct stat fileStat; in isDirectory()
25 if (stat(filename, &fileStat) == -1) { in isDirectory()
34 struct stat fileStat; in isFile()
35 if (stat(filename, &fileStat) == -1) { in isFile()
80 void SystemFileFinder::checkAndAddFile(String8 path, const struct stat* stats, in checkAndAddFile()
DDirectoryWalker.h33 virtual struct stat* entryStats() = 0;
43 struct stat mStats;
81 stat(fullPath.string(),&mStats); in nextEntry()
85 virtual struct stat* entryStats() { in entryStats()
DCacheUpdater.h59 struct stat s; in ensureDirectoriesExist()
64 if (stat(path.string(),&s) == -1) { in ensureDirectoriesExist()
72 } while (stat(existsPath.string(),&s) == -1); in ensureDirectoriesExist()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java112 StructStat stat = null; in loadFromDiskLocked() local
114 stat = Libcore.os.stat(mFile.getPath()); in loadFromDiskLocked()
136 mStatTimestamp = stat.st_mtime; in loadFromDiskLocked()
137 mStatSize = stat.st_size; in loadFromDiskLocked()
169 final StructStat stat; in hasFileChangedUnexpectedly() local
176 stat = Libcore.os.stat(mFile.getPath()); in hasFileChangedUnexpectedly()
182 return mStatTimestamp != stat.st_mtime || mStatSize != stat.st_size; in hasFileChangedUnexpectedly()
601 final StructStat stat = Libcore.os.stat(mFile.getPath()); in writeToFile() local
603 mStatTimestamp = stat.st_mtime; in writeToFile()
604 mStatSize = stat.st_size; in writeToFile()
/frameworks/base/media/libdrm/mobile1/src/objmng/
Ddrm_file.c90 getFileStat(const uint16_t *name, int32_t nameLen, struct stat *sbuf) in getFileStat()
98 else if (stat(tmpPathBuf1, sbuf) != 0) in getFileStat()
134 struct stat stat_buf; in calcDirSize()
177 exists = stat(path, &stat_buf); in calcDirSize()
309 struct stat sinfo; in DRM_file_listNextEntry()
367 struct stat sbuf; in DRM_file_getFileLength()
399 struct stat sinfo; in DRM_file_delete()
400 if (stat(tmpPathBuf1, &sinfo) != 0){ in DRM_file_delete()
468 struct stat sbuf; in DRM_file_exists()
567 struct stat sbuf; in DRM_file_write()
[all …]
/frameworks/native/libs/utils/
Dmisc.cpp46 struct stat sb; in getFileType()
48 if (stat(fileName, &sb) < 0) { in getFileType()
83 struct stat sb; in getFileModDate()
85 if (stat(fileName, &sb) < 0) in getFileModDate()
DTokenizer.cpp63 struct stat stat; in open() local
64 if (fstat(fd, &stat)) { in open()
68 size_t length = size_t(stat.st_size); in open()
/frameworks/base/cmds/installd/
Dcommands.c39 struct stat libStat; in install()
147 struct stat s; in fix_uid()
160 if (stat(pkgdir, &s) < 0) return -1; in fix_uid()
197 struct stat libStat; in make_user_data()
299 struct stat s; in clone_persona_data()
321 if (stat(pkg_path, &s) < 0) continue; in clone_persona_data()
485 struct stat s; in get_size()
498 if (stat(apkpath, &s) == 0) { in get_size()
505 if (stat(fwdlock_apkpath, &s) == 0) { in get_size()
511 if (stat(path, &s) == 0) { in get_size()
[all …]
/frameworks/av/media/libmedia/
DMediaScanner.cpp175 struct stat statbuf; in doProcessDirectoryEntry()
195 if (stat(path, &statbuf) == 0) { in doProcessDirectoryEntry()
213 if (stat(path, &statbuf) == 0) { in doProcessDirectoryEntry()
229 stat(path, &statbuf); in doProcessDirectoryEntry()
/frameworks/base/libs/diskusage/
Ddirsize.c24 int64_t stat_size(struct stat *s) in stat_size()
40 struct stat s; in calculate_dir_size()
/frameworks/compile/libbcc/bcinfo/Wrap/
Dfile_wrapper_input.cpp49 struct stat st; in Size()
50 if (0 == stat(_name, &st)) { in Size()
/frameworks/compile/libbcc/lib/Support/
DFileBase.cpp83 struct stat fd_stat, file_stat; in checkFileIntegrity()
97 if (::stat(mName.c_str(), &file_stat) == 0) { in checkFileIntegrity()
231 struct stat file_stat; in getSize()
/frameworks/av/drm/common/
DReadWriteUtils.cpp42 struct stat sb; in readBytes()
64 struct stat sb; in readBytes()
/frameworks/av/media/libstagefright/id3/
Dtestid3.cpp113 struct stat st; in scan()
114 if (stat(path, &st) == 0 && S_ISREG(st.st_mode)) { in scan()
/frameworks/base/include/diskusage/
Ddirsize.h25 int64_t stat_size(struct stat *s);
/frameworks/base/cmds/screenshot/
Dscreenshot.c133 struct stat st; in main()
136 while (stat(outfile, &st) == 0) { in main()
/frameworks/rs/
DrsScriptC.cpp58 struct stat statBuf; in createCacheDir()
59 int statReturn = stat(cacheDir, &statBuf); in createCacheDir()
74 statReturn = stat(currentDir.string(), &statBuf); in createCacheDir()
/frameworks/native/cmds/dumpstate/
Ddumpstate.c119 struct stat st; in dumpstate()
124 } else if (stat(anr_traces_path, &st)) { in dumpstate()
139 if (stat(anr_traces_path, &st)) { in dumpstate()
/frameworks/compile/mclinker/lib/Support/Windows/
DSystem.inc11 #include <sys/stat.h>
/frameworks/compile/mclinker/lib/Support/Unix/
DPathV3.inc17 #include <sys/stat.h>
137 struct stat path_stat;
138 if(stat(p.c_str(), &path_stat)!= 0)
165 struct stat path_stat;

123