Home
last modified time | relevance | path

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

1234

/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()
/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.h64 struct stat s; in ensureDirectoriesExist()
69 if (stat(path.string(),&s) == -1) { in ensureDirectoriesExist()
77 } while (stat(existsPath.string(),&s) == -1); in ensureDirectoriesExist()
/frameworks/base/libs/androidfw/
Dmisc.cpp38 struct stat sb; in getFileType()
40 if (stat(fileName, &sb) < 0) { in getFileType()
77 struct stat sb; in getFileModDate()
79 if (stat(fileName, &sb) < 0) in getFileModDate()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DMouseClickAction.java45 Tapper.Status stat = sendSingleTap(uiController, coordinates, precision); in sendTap() local
47 if (stat == Tapper.Status.FAILURE) { in sendTap()
49 } else if (stat == Tapper.Status.WARNING) { in sendTap()
58 stat = sendSingleTap(uiController, coordinates, precision); in sendTap()
59 if (stat == Tapper.Status.FAILURE) { in sendTap()
61 } else if (stat == Tapper.Status.WARNING) { in sendTap()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java112 StructStat stat = null; in loadFromDisk() local
114 stat = Os.stat(mFile.getPath()); in loadFromDisk()
135 mStatTimestamp = stat.st_mtime; in loadFromDisk()
136 mStatSize = stat.st_size; in loadFromDisk()
169 final StructStat stat; in hasFileChangedUnexpectedly() local
176 stat = Os.stat(mFile.getPath()); in hasFileChangedUnexpectedly()
182 return mStatTimestamp != stat.st_mtime || mStatSize != stat.st_size; in hasFileChangedUnexpectedly()
605 final StructStat stat = Os.stat(mFile.getPath()); in writeToFile() local
607 mStatTimestamp = stat.st_mtime; in writeToFile()
608 mStatSize = stat.st_size; in writeToFile()
/frameworks/base/services/usage/java/com/android/server/usage/
DUserUsageStatsService.java127 for (IntervalStats stat : mCurrentStats) { in init()
128 final int pkgCount = stat.packageStats.size(); in init()
130 UsageStats pkgStats = stat.packageStats.valueAt(i); in init()
133 stat.update(pkgStats.mPackageName, stat.lastTimeSaved, in init()
139 stat.updateConfigurationStats(null, stat.lastTimeSaved); in init()
371 for (IntervalStats stat : mCurrentStats) { in rolloverStats()
372 final int pkgCount = stat.packageStats.size(); in rolloverStats()
374 UsageStats pkgStats = stat.packageStats.valueAt(i); in rolloverStats()
378 stat.update(pkgStats.mPackageName, mDailyExpiryDate.getTimeInMillis() - 1, in rolloverStats()
384 stat.updateConfigurationStats(null, mDailyExpiryDate.getTimeInMillis() - 1); in rolloverStats()
[all …]
/frameworks/base/core/java/android/net/
DTrafficStats.java415 final long stat = nativeGetIfaceStat(iface, TYPE_TCP_RX_PACKETS); in getMobileTcpRxPackets() local
416 if (stat != UNSUPPORTED) { in getMobileTcpRxPackets()
417 total += stat; in getMobileTcpRxPackets()
427 final long stat = nativeGetIfaceStat(iface, TYPE_TCP_TX_PACKETS); in getMobileTcpTxPackets() local
428 if (stat != UNSUPPORTED) { in getMobileTcpTxPackets()
429 total += stat; in getMobileTcpTxPackets()
/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/native/libs/diskusage/
Ddirsize.c25 int64_t stat_size(struct stat *s) in stat_size()
33 struct stat s; in calculate_dir_size()
/frameworks/compile/libbcc/bcinfo/Wrap/
Dfile_wrapper_input.cpp49 struct stat st; in Size()
50 if (stat(_name, &st) == 0) { in Size()
/frameworks/compile/libbcc/lib/Support/
DFileBase.cpp103 struct stat fd_stat, file_stat; in checkFileIntegrity()
117 if (::stat(mName.c_str(), &file_stat) == 0) { in checkFileIntegrity()
251 struct stat file_stat; in getSize()
/frameworks/minikin/app/
DHyphTool.cpp13 struct stat statbuf; in loadHybFile()
14 int status = stat(fn, &statbuf); in loadHybFile()
/frameworks/base/cmds/idmap/
Dcreate.cpp78 struct stat st; in is_idmap_stale_fd()
137 struct stat st; in is_idmap_stale_path()
138 if (stat(idmap_path, &st) == -1) { in is_idmap_stale_path()
/frameworks/av/drm/common/
DReadWriteUtils.cpp42 struct stat sb; in readBytes()
64 struct stat sb; in readBytes()
/frameworks/base/core/tests/SvcMonitor/src/com/android/google/experimental/svcmoniter/
DSvcMonitor.java197 String stat = ""; in getPsStat() local
201 stat = br.readLine(); in getPsStat()
206 return stat; in getPsStat()
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
DDefaultContainerService.java224 final StructStatVfs stat = Os.statvfs(path);
225 final long totalSize = stat.f_blocks * stat.f_bsize;
226 final long availSize = stat.f_bavail * stat.f_bsize;
/frameworks/compile/mclinker/lib/Support/Unix/
DPathV3.inc18 #include <sys/stat.h>
133 struct stat path_stat;
134 if (stat(p.c_str(), &path_stat) != 0) {
156 struct stat path_stat;
/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/core/java/android/os/
DFileUtils.java155 final StructStat stat = Os.stat(from.getAbsolutePath()); in copyPermissions() local
156 Os.chmod(to.getAbsolutePath(), stat.st_mode); in copyPermissions()
157 Os.chown(to.getAbsolutePath(), stat.st_uid, stat.st_gid); in copyPermissions()
168 return Os.stat(path).st_uid; in getUid()
/frameworks/base/tools/aapt2/util/
DFiles.cpp37 struct stat sb; in getFileType()
38 if (stat(path.data(), &sb) < 0) { in getFileType()
175 struct stat fileStats = {}; in mmapPath()
/frameworks/native/include/diskusage/
Ddirsize.h25 int64_t stat_size(struct stat *s);
/frameworks/native/cmds/dumpstate/
Ddumpstate.cpp112 struct stat st; in get_tombstone_fds()
222 static const char stat[] = "/stat"; in skip_not_stat() local
227 return strcmp(path + len - sizeof(stat) + 1, stat); /* .../stat? */ in skip_not_stat()
720 struct stat st; in dumpstate()
744 if (stat(anr_traces_path, &st)) { in dumpstate()
780 if (!stat(PSTORE_LAST_KMSG, &st)) { in dumpstate()
783 } else if (!stat(ALT_PSTORE_LAST_KMSG, &st)) { in dumpstate()

1234