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

12345678

/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/native/include/diskusage/
H A Ddirsize.h25 int64_t stat_size(struct stat *s);
/frameworks/base/libs/androidfw/
H A Dmisc.cpp24 #include <sys/stat.h>
38 struct stat sb;
40 if (stat(fileName, &sb) < 0) {
77 struct stat sb;
79 if (stat(fileName, &sb) < 0)
/frameworks/base/services/core/java/com/android/server/storage/
H A DDiskStatsFileLogger.java123 PackageStats stat = entry.getValue();
124 long appSize = stat.codeSize + stat.dataSize;
125 long cacheSize = stat.cacheSize;
127 appSize += stat.externalCodeSize + stat.externalDataSize;
128 cacheSize += stat.externalCacheSize;
133 names.put(stat.packageName);
151 for (PackageStats stat : mPackageStats) {
152 if (stat
[all...]
/frameworks/base/core/jni/
H A Dfd_utils.h27 #include <sys/stat.h>
84 const struct stat stat; member in class:FileDescriptorInfo
95 FileDescriptorInfo(struct stat stat, const std::string& file_path, int fd, int open_flags,
/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(const String8& path, const struct stat* stats,
H A DCacheUpdater.h12 #include <sys/stat.h>
64 struct stat s;
69 if (stat(path.string(),&s) == -1) {
77 } while (stat(existsPath.string(),&s) == -1);
/frameworks/compile/libbcc/bcinfo/Wrap/
H A Dfile_wrapper_input.cpp17 #include <sys/stat.h>
49 struct stat st;
50 if (stat(_name, &st) == 0) {
H A Din_memory_wrapper_input.cpp17 #include <sys/stat.h>
/frameworks/native/libs/diskusage/
H A Ddirsize.c20 #include <sys/stat.h>
25 int64_t stat_size(struct stat *s)
33 struct stat s;
/frameworks/minikin/tests/util/
H A DFileUtils.cpp20 #include <sys/stat.h>
28 struct stat st;
H A DMinikinFontForTest.cpp25 #include <sys/stat.h>
45 struct stat st = {};
/frameworks/base/cmds/incidentd/src/
H A Dreport_directory.cpp26 #include <sys/stat.h>
39 struct stat st;
55 if (stat(dir, &st) == 0) {
89 if (stat(directory, &st) != 0) {
90 ALOGE("No incident reports today. Can't stat: %s", directory);
113 stat_mtime_cmp(const pair<String8,struct stat>& a, const pair<String8,struct stat>& b)
123 struct stat st;
125 vector<pair<String8,struct stat>> files;
143 if (stat(filenam
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DMouseClickAction.java45 Tapper.Status stat = sendSingleTap(uiController, coordinates, precision);
47 if (stat == Tapper.Status.FAILURE) {
49 } else if (stat == Tapper.Status.WARNING) {
58 stat = sendSingleTap(uiController, coordinates, precision);
59 if (stat == Tapper.Status.FAILURE) {
61 } else if (stat == Tapper.Status.WARNING) {
/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/minikin/tests/perftests/
H A Dmain.cpp24 #include <sys/stat.h>
31 struct stat st;
/frameworks/minikin/tests/unittest/
H A DICUTestBase.h26 #include <sys/stat.h>
37 struct stat sb;
/frameworks/minikin/app/
H A DHyphTool.cpp2 #include <sys/stat.h>
15 struct stat statbuf;
16 int status = stat(fn, &statbuf);
/frameworks/base/cmds/interrupter/
H A Dinterrupter.c32 #include <sys/stat.h>
/frameworks/native/cmds/installd/
H A DCacheItem.h25 #include <sys/stat.h>
/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/compile/libbcc/lib/
H A DFileBase.cpp21 #include <sys/stat.h>
100 struct stat fd_stat, file_stat;
114 if (::stat(mName.c_str(), &file_stat) == 0) {

Completed in 503 milliseconds

12345678