Home
last modified time | relevance | path

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

123

/frameworks/base/core/jni/
Dandroid_os_StatFs.cpp45 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); in android_os_StatFs_getBlockSize() local
46 return stat->f_bsize; in android_os_StatFs_getBlockSize()
52 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); in android_os_StatFs_getBlockCount() local
53 return stat->f_blocks; in android_os_StatFs_getBlockCount()
59 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); in android_os_StatFs_getFreeBlocks() local
60 return stat->f_bfree; in android_os_StatFs_getFreeBlocks()
66 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); in android_os_StatFs_getAvailableBlocks() local
67 return stat->f_bavail; in android_os_StatFs_getAvailableBlocks()
79 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); in android_os_StatFs_native_restat() local
80 if (stat == NULL) { in android_os_StatFs_native_restat()
[all …]
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_os_FileUtils.cpp83 struct stat st; in android_os_FileUtils_getPermissions()
84 if (stat(file8.string(), &st) != 0) { in android_os_FileUtils_getPermissions()
134 struct stat s; in android_os_FileUtils_getFileStatus()
135 int res = stat(pathStr, &s); in android_os_FileUtils_getFileStatus()
Dandroid_ddm_DdmHandleNativeHeap.cpp68 struct stat sb; in getLeakInfo()
69 int ret = stat(path, &sb); in getLeakInfo()
/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/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/cmds/installd/
Dcommands.c115 struct stat s; in fix_uid()
128 if (stat(pkgdir, &s) < 0) return -1; in fix_uid()
197 struct stat s; in clone_persona_data()
219 if (stat(pkg_path, &s) < 0) continue; in clone_persona_data()
355 struct stat s; in protect()
363 if (stat(pkgpath, &s) < 0) return -1; in protect()
386 struct stat s; in get_size()
399 if (stat(apkpath, &s) == 0) { in get_size()
406 if (stat(fwdlock_apkpath, &s) == 0) { in get_size()
412 if (stat(path, &s) == 0) { in get_size()
[all …]
/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/base/core/java/android/app/
DSharedPreferencesImpl.java108 FileStatus stat = new FileStatus(); in loadFromDiskLocked() local
109 if (FileUtils.getFileStatus(mFile.getPath(), stat) && mFile.canRead()) { in loadFromDiskLocked()
126 mStatTimestamp = stat.mtime; in loadFromDiskLocked()
127 mStatSize = stat.size; in loadFromDiskLocked()
158 FileStatus stat = new FileStatus(); in hasFileChangedUnexpectedly() local
159 if (!FileUtils.getFileStatus(mFile.getPath(), stat)) { in hasFileChangedUnexpectedly()
163 return mStatTimestamp != stat.mtime || mStatSize != stat.size; in hasFileChangedUnexpectedly()
580 FileStatus stat = new FileStatus(); in writeToFile() local
581 if (FileUtils.getFileStatus(mFile.getPath(), stat)) { in writeToFile()
583 mStatTimestamp = stat.mtime; in writeToFile()
[all …]
/frameworks/native/libs/utils/
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()
Dmisc.cpp130 struct stat sb; in getFileType()
132 if (stat(fileName, &sb) < 0) { in getFileType()
167 struct stat sb; in getFileModDate()
169 if (stat(fileName, &sb) < 0) in getFileModDate()
/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/compile/libbcc/bcinfo/Wrap/
Dfile_wrapper_input.cpp49 struct stat st; in Size()
50 if (0 == stat(_name, &st)) { in Size()
/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/av/drm/common/
DReadWriteUtils.cpp42 struct stat sb; in readBytes()
64 struct stat sb; in readBytes()
/frameworks/compile/libbcc/lib/ExecutionEngine/
DFileHandle.cpp83 struct stat sfd, sfname; in open()
85 if (fstat(mFD, &sfd) == -1 || stat(filename, &sfname) == -1 || in open()
/frameworks/compile/mclinker/lib/Support/
DMemoryArea.cpp67 struct stat st; in map()
68 int stat_result = ::stat(m_FilePath.native().c_str(), &st); in map()
91 struct stat st; in map()
92 int stat_result = ::stat(m_FilePath.native().c_str(), &st); in map()
/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/compile/libbcc/bcinfo/tools/
Dmain.cpp149 struct stat statInFile; in readBitcode()
150 if (stat(inFile, &statInFile) < 0) { in readBitcode()

123