Searched refs:stat (Results 1 - 25 of 100) sorted by relevance

1234

/frameworks/av/media/mtp/
H A DMtpStorage.cpp24 #include <sys/stat.h>
66 struct statfs stat; local
67 if (statfs(getPath(), &stat))
69 mMaxCapacity = (uint64_t)stat.f_blocks * (uint64_t)stat.f_bsize;
75 struct statfs stat; local
76 if (statfs(getPath(), &stat))
78 uint64_t freeSpace = (uint64_t)stat.f_bavail * (uint64_t)stat.f_bsize;
H A DMtpDeviceInfo.h20 struct stat;
/frameworks/base/include/diskusage/
H A Ddirsize.h25 int64_t stat_size(struct stat *s);
/frameworks/base/tools/aapt/
H A DDirectoryWalker.h13 #include <sys/stat.h>
33 virtual struct stat* entryStats() = 0;
43 struct stat mStats;
81 stat(fullPath.string(),&mStats);
85 virtual struct stat* entryStats() {
H A DFileFinder.cpp13 #include <sys/stat.h>
24 struct stat fileStat;
25 if (stat(filename, &fileStat) == -1) {
34 struct stat fileStat;
35 if (stat(filename, &fileStat) == -1) {
80 void SystemFileFinder::checkAndAddFile(String8 path, const struct stat* stats,
H A DCacheUpdater.h12 #include <sys/stat.h>
59 struct stat s;
64 if (stat(path.string(),&s) == -1) {
72 } while (stat(existsPath.string(),&s) == -1);
H A DFileFinder.h62 * checkAndAddFile looks at a single file path and stat combo
75 static void checkAndAddFile(String8 path, const struct stat* stats,
/frameworks/base/libs/diskusage/
H A Ddirsize.c20 #include <sys/stat.h>
24 int64_t stat_size(struct stat *s)
40 struct stat s;
/frameworks/compile/libbcc/bcinfo/Wrap/
H A Dfile_wrapper_input.cpp17 #include <sys/stat.h>
49 struct stat st;
50 if (0 == stat(_name, &st)) {
H A Din_memory_wrapper_input.cpp17 #include <sys/stat.h>
/frameworks/base/core/jni/
H A Dandroid_net_TrafficStats.cpp22 #include <sys/stat.h>
84 static int parseIfaceStat(const char* iface, struct IfaceStat* stat) { argument
104 stat->rxBytes += rxBytes;
105 stat->rxPackets += rxPackets;
106 stat->txBytes += txBytes;
107 stat->txPackets += txPackets;
110 stat->rxBytes += devRxBytes;
111 stat->rxPackets += devRxPackets;
112 stat->txBytes += devTxBytes;
113 stat
123 struct IfaceStat stat; local
149 struct IfaceStat stat; local
152 uint64_t stat = getIfaceStatType(ifaceChars, (IfaceStatType) type); local
[all...]
H A Dandroid_ddm_DdmHandleNativeHeap.cpp30 #include <sys/stat.h>
68 struct stat sb;
69 int ret = stat(path, &sb);
H A Dandroid_os_ParcelFileDescriptor.cpp22 #include <sys/stat.h>
86 struct stat st;
H A Dandroid_os_FileUtils.cpp27 #include <sys/stat.h>
/frameworks/native/libs/utils/
H A Dmisc.cpp25 #include <sys/stat.h>
46 struct stat sb;
48 if (stat(fileName, &sb) < 0) {
83 struct stat sb;
85 if (stat(fileName, &sb) < 0)
H A DTokenizer.cpp24 #include <sys/stat.h>
63 struct stat stat; local
64 if (fstat(fd, &stat)) {
68 size_t length = size_t(stat.st_size);
81 // The length we obtained from stat is wrong too (it will always be 4096)
/frameworks/base/tests/LowStorageTest/src/com/android/lowstoragetest/
H A DLowStorageTest.java52 StatFs stat = new StatFs(path.getPath());
53 int totalBlocks = stat.getBlockCount();
54 mBlockSize = (int) (stat.getBlockSize());
80 StatFs stat = new StatFs(path.getPath());
81 int totalBlocks = stat.getBlockCount();
82 int noOfBlockToFill = stat.getAvailableBlocks();
118 // The stat didn't relect the correct data right away
122 StatFs stat = new StatFs(path.getPath());
123 long availableBlocks = stat.getAvailableBlocks();
/frameworks/base/core/java/android/app/
H A DSharedPreferencesImpl.java112 StructStat stat = null;
114 stat = Libcore.os.stat(mFile.getPath());
136 mStatTimestamp = stat.st_mtime;
137 mStatSize = stat.st_size;
169 final StructStat stat;
176 stat = Libcore.os.stat(mFile.getPath());
182 return mStatTimestamp != stat.st_mtime || mStatSize != stat
[all...]
/frameworks/av/media/libmedia/
H A DMediaScanner.cpp24 #include <sys/stat.h>
175 struct stat statbuf;
192 // If the type is unknown, stat() the file instead.
195 if (stat(path, &statbuf) == 0) {
202 ALOGD("stat() failed for %s: %s", path, strerror(errno) );
213 if (stat(path, &statbuf) == 0) {
229 stat(path, &statbuf);
/frameworks/av/drm/common/
H A DReadWriteUtils.cpp23 #include <sys/stat.h>
42 struct stat sb;
64 struct stat sb;
/frameworks/av/media/libstagefright/id3/
H A Dtestid3.cpp19 #include <sys/stat.h>
113 struct stat st;
114 if (stat(path, &st) == 0 && S_ISREG(st.st_mode)) {
/frameworks/base/media/libdrm/mobile1/src/objmng/
H A Ddrm_file.c21 #include <sys/stat.h>
82 * Perform a stat() call on the given filename.
86 * @param sbuf stat buffer
90 getFileStat(const uint16_t *name, int32_t nameLen, struct stat *sbuf)
98 else if (stat(tmpPathBuf1, sbuf) != 0)
100 Trace("getFileStat %s: stat() errno=%d", tmpPathBuf1, errno);
134 struct stat stat_buf;
177 exists = stat(path, &stat_buf);
309 struct stat sinfo;
339 Trace("DRM_file_listNextEntry: stat FAILUR
[all...]
/frameworks/compile/libbcc/lib/Support/
H A DFileBase.cpp20 #include <sys/stat.h>
83 struct stat fd_stat, file_stat;
97 if (::stat(mName.c_str(), &file_stat) == 0) {
231 struct stat file_stat;
/frameworks/compile/linkloader/android/
H A Dtest-librsloader.c27 #include <sys/stat.h>
80 struct stat sb;
82 fprintf(stderr, "ERROR: Unable to stat the file: %s\n", argv[1]);
/frameworks/base/cmds/installd/
H A Dcommands.c39 struct stat libStat;
73 ALOGE("couldn't stat lib dir: %s\n", strerror(errno));
147 struct stat s;
160 if (stat(pkgdir, &s) < 0) return -1;
197 struct stat libStat;
224 ALOGE("couldn't stat lib dir for non-primary: %s\n", strerror(errno));
299 struct stat s;
320 /* Get the file stat */
321 if (stat(pkg_path, &s) < 0) continue;
485 struct stat
[all...]

Completed in 2920 milliseconds

1234