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

123456

/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/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>
64 struct stat s;
69 if (stat(path.string(),&s) == -1) {
77 } 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/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/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/
H A DICUTestBase.h26 #include <sys/stat.h>
35 struct stat sb;
/frameworks/minikin/app/
H A DHyphTool.cpp2 #include <sys/stat.h>
13 struct stat statbuf;
14 int status = stat(fn, &statbuf);
/frameworks/base/cmds/interrupter/
H A Dinterrupter.c32 #include <sys/stat.h>
/frameworks/base/core/java/android/app/
H A DSharedPreferencesImpl.java112 StructStat stat = null;
114 stat = Os.stat(mFile.getPath());
135 mStatTimestamp = stat.st_mtime;
136 mStatSize = stat.st_size;
169 final StructStat stat;
176 stat = Os.stat(mFile.getPath());
182 return mStatTimestamp != stat.st_mtime || mStatSize != stat
[all...]
/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/cmds/idmap/
H A Dcreate.cpp11 #include <sys/stat.h>
78 struct stat st;
137 struct stat st;
138 if (stat(idmap_path, &st) == -1) {
/frameworks/compile/libbcc/lib/Support/
H A DFileBase.cpp22 #include <sys/stat.h>
103 struct stat fd_stat, file_stat;
117 if (::stat(mName.c_str(), &file_stat) == 0) {
251 struct stat file_stat;
/frameworks/base/core/java/android/net/
H A DTrafficStats.java415 final long stat = nativeGetIfaceStat(iface, TYPE_TCP_RX_PACKETS);
416 if (stat != UNSUPPORTED) {
417 total += stat;
427 final long stat = nativeGetIfaceStat(iface, TYPE_TCP_TX_PACKETS);
428 if (stat != UNSUPPORTED) {
429 total += stat;
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUserUsageStatsService.java120 // Set up the expiry date to be one day from the latest daily stat.
127 for (IntervalStats stat : mCurrentStats) {
128 final int pkgCount = stat.packageStats.size();
130 UsageStats pkgStats = stat.packageStats.valueAt(i);
133 stat.update(pkgStats.mPackageName, stat.lastTimeSaved,
139 stat.updateConfigurationStats(null, stat.lastTimeSaved);
238 // Nothing saved to disk yet, so every stat is just as equal (no rollover has
371 for (IntervalStats 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/base/packages/DefaultContainerService/jni/
H A Dcom_android_defcontainer_MeasurementUtils.cpp25 #include <sys/stat.h>

Completed in 484 milliseconds

123456