/frameworks/av/media/mtp/ |
D | MtpStorage.cpp | 66 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/ |
D | LowStorageTest.java | 52 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/ |
D | FileFinder.cpp | 24 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()
|
D | DirectoryWalker.h | 33 virtual struct stat* entryStats() = 0; 43 struct stat mStats; 81 stat(fullPath.string(),&mStats); in nextEntry() 85 virtual struct stat* entryStats() { in entryStats()
|
D | CacheUpdater.h | 64 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/ |
D | misc.cpp | 38 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/ |
D | MouseClickAction.java | 45 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/ |
D | SharedPreferencesImpl.java | 112 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/ |
D | UserUsageStatsService.java | 127 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/ |
D | TrafficStats.java | 415 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/ |
D | MediaScanner.cpp | 175 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/ |
D | dirsize.c | 25 int64_t stat_size(struct stat *s) in stat_size() 33 struct stat s; in calculate_dir_size()
|
/frameworks/compile/libbcc/bcinfo/Wrap/ |
D | file_wrapper_input.cpp | 49 struct stat st; in Size() 50 if (stat(_name, &st) == 0) { in Size()
|
/frameworks/compile/libbcc/lib/Support/ |
D | FileBase.cpp | 103 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/ |
D | HyphTool.cpp | 13 struct stat statbuf; in loadHybFile() 14 int status = stat(fn, &statbuf); in loadHybFile()
|
/frameworks/base/cmds/idmap/ |
D | create.cpp | 78 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/ |
D | ReadWriteUtils.cpp | 42 struct stat sb; in readBytes() 64 struct stat sb; in readBytes()
|
/frameworks/base/core/tests/SvcMonitor/src/com/android/google/experimental/svcmoniter/ |
D | SvcMonitor.java | 197 String stat = ""; in getPsStat() local 201 stat = br.readLine(); in getPsStat() 206 return stat; in getPsStat()
|
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/ |
D | DefaultContainerService.java | 224 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/ |
D | PathV3.inc | 18 #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/ |
D | testid3.cpp | 113 struct stat st; in scan() 114 if (stat(path, &st) == 0 && S_ISREG(st.st_mode)) { in scan()
|
/frameworks/base/core/java/android/os/ |
D | FileUtils.java | 155 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/ |
D | Files.cpp | 37 struct stat sb; in getFileType() 38 if (stat(path.data(), &sb) < 0) { in getFileType() 175 struct stat fileStats = {}; in mmapPath()
|
/frameworks/native/include/diskusage/ |
D | dirsize.h | 25 int64_t stat_size(struct stat *s);
|
/frameworks/native/cmds/dumpstate/ |
D | dumpstate.cpp | 112 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()
|