/frameworks/av/media/mtp/ |
H A D | MtpStorage.cpp | 24 #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 D | MtpDeviceInfo.h | 20 struct stat;
|
/frameworks/base/include/diskusage/ |
H A D | dirsize.h | 25 int64_t stat_size(struct stat *s);
|
/frameworks/base/tools/aapt/ |
H A D | DirectoryWalker.h | 13 #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 D | FileFinder.cpp | 13 #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 D | CacheUpdater.h | 12 #include <sys/stat.h> 59 struct stat s; 64 if (stat(path.string(),&s) == -1) { 72 } while (stat(existsPath.string(),&s) == -1);
|
H A D | FileFinder.h | 62 * 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 D | dirsize.c | 20 #include <sys/stat.h> 24 int64_t stat_size(struct stat *s) 40 struct stat s;
|
/frameworks/compile/libbcc/bcinfo/Wrap/ |
H A D | file_wrapper_input.cpp | 17 #include <sys/stat.h> 49 struct stat st; 50 if (0 == stat(_name, &st)) {
|
H A D | in_memory_wrapper_input.cpp | 17 #include <sys/stat.h>
|
/frameworks/base/core/jni/ |
H A D | android_net_TrafficStats.cpp | 22 #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 D | android_ddm_DdmHandleNativeHeap.cpp | 30 #include <sys/stat.h> 68 struct stat sb; 69 int ret = stat(path, &sb);
|
H A D | android_os_ParcelFileDescriptor.cpp | 22 #include <sys/stat.h> 86 struct stat st;
|
H A D | android_os_FileUtils.cpp | 27 #include <sys/stat.h>
|
/frameworks/native/libs/utils/ |
H A D | misc.cpp | 25 #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 D | Tokenizer.cpp | 24 #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 D | LowStorageTest.java | 52 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 D | SharedPreferencesImpl.java | 112 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 D | MediaScanner.cpp | 24 #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 D | ReadWriteUtils.cpp | 23 #include <sys/stat.h> 42 struct stat sb; 64 struct stat sb;
|
/frameworks/av/media/libstagefright/id3/ |
H A D | testid3.cpp | 19 #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 D | drm_file.c | 21 #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 D | FileBase.cpp | 20 #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 D | test-librsloader.c | 27 #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 D | commands.c | 39 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...] |