/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()
|
D | MtpDeviceInfo.h | 20 struct stat;
|
/frameworks/av/camera/ |
D | ProCamera.cpp | 215 status_t stat = c->createStream(width, height, format, bufferProducer, in createStream() local 218 if (stat == OK) { in createStream() 224 return stat; in createStream() 333 status_t stat = BAD_VALUE; in waitForFrameBuffer() local 344 stat = mWaitCondition.waitRelative(mWaitMutex, in waitForFrameBuffer() 346 if (stat != OK) { in waitForFrameBuffer() 348 __FUNCTION__, stat); in waitForFrameBuffer() 349 return stat; in waitForFrameBuffer() 361 return stat; in waitForFrameBuffer() 395 status_t stat = BAD_VALUE; in waitForFrameMetadata() local [all …]
|
/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/libs/androidfw/ |
D | misc.cpp | 38 struct stat sb; in getFileType() 40 if (stat(fileName, &sb) < 0) { in getFileType() 75 struct stat sb; in getFileModDate() 77 if (stat(fileName, &sb) < 0) in getFileModDate()
|
/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 | 62 struct stat s; in ensureDirectoriesExist() 67 if (stat(path.string(),&s) == -1) { in ensureDirectoriesExist() 75 } while (stat(existsPath.string(),&s) == -1); in ensureDirectoriesExist()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UserUsageStatsService.java | 105 for (IntervalStats stat : mCurrentStats) { in init() 106 final int pkgCount = stat.packageStats.size(); in init() 108 UsageStats pkgStats = stat.packageStats.valueAt(i); in init() 111 stat.update(pkgStats.mPackageName, stat.lastTimeSaved, in init() 117 stat.updateConfigurationStats(null, stat.lastTimeSaved); in init() 343 for (IntervalStats stat : mCurrentStats) { in rolloverStats() 344 final int pkgCount = stat.packageStats.size(); in rolloverStats() 346 UsageStats pkgStats = stat.packageStats.valueAt(i); in rolloverStats() 350 stat.update(pkgStats.mPackageName, mDailyExpiryDate.getTimeInMillis() - 1, in rolloverStats() 356 stat.updateConfigurationStats(null, mDailyExpiryDate.getTimeInMillis() - 1); in rolloverStats() [all …]
|
/frameworks/base/core/java/android/app/ |
D | SharedPreferencesImpl.java | 111 StructStat stat = null; in loadFromDiskLocked() local 113 stat = Os.stat(mFile.getPath()); in loadFromDiskLocked() 135 mStatTimestamp = stat.st_mtime; in loadFromDiskLocked() 136 mStatSize = stat.st_size; in loadFromDiskLocked() 168 final StructStat stat; in hasFileChangedUnexpectedly() local 175 stat = Os.stat(mFile.getPath()); in hasFileChangedUnexpectedly() 181 return mStatTimestamp != stat.st_mtime || mStatSize != stat.st_size; in hasFileChangedUnexpectedly() 602 final StructStat stat = Os.stat(mFile.getPath()); in writeToFile() local 604 mStatTimestamp = stat.st_mtime; in writeToFile() 605 mStatSize = stat.st_size; in writeToFile()
|
/frameworks/base/core/java/android/net/ |
D | TrafficStats.java | 357 final long stat = nativeGetIfaceStat(iface, TYPE_TCP_RX_PACKETS); in getMobileTcpRxPackets() local 358 if (stat != UNSUPPORTED) { in getMobileTcpRxPackets() 359 total += stat; in getMobileTcpRxPackets() 369 final long stat = nativeGetIfaceStat(iface, TYPE_TCP_TX_PACKETS); in getMobileTcpTxPackets() local 370 if (stat != UNSUPPORTED) { in getMobileTcpTxPackets() 371 total += stat; in getMobileTcpTxPackets()
|
/frameworks/native/cmds/installd/ |
D | commands.c | 38 struct stat libStat; in install() 146 struct stat s; in fix_uid() 159 if (stat(pkgdir, &s) < 0) return -1; in fix_uid() 195 struct stat libStat; in make_user_data() 316 struct stat s; in delete_code_cache() 476 struct stat s; in get_size() 489 if (stat(apkpath, &s) == 0) { in get_size() 496 if (stat(fwdlock_apkpath, &s) == 0) { in get_size() 502 if (stat(path, &s) == 0) { in get_size() 520 if (stat(asecpath, &s) == 0) { in get_size() [all …]
|
/frameworks/compile/libbcc/bcinfo/Wrap/ |
D | file_wrapper_input.cpp | 49 struct stat st; in Size() 50 if (0 == stat(_name, &st)) { in Size()
|
/frameworks/native/libs/diskusage/ |
D | dirsize.c | 24 int64_t stat_size(struct stat *s) in stat_size() 41 struct stat s; in calculate_dir_size()
|
/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/action/ |
D | Tap.java | 87 Tapper.Status stat = SINGLE.sendTap(uiController, coordinates, precision); in sendTap() local 88 if (stat == Tapper.Status.FAILURE) { in sendTap() 98 if (secondStat == Tapper.Status.WARNING || stat == Tapper.Status.WARNING) { in sendTap()
|
/frameworks/av/camera/tests/ |
D | ProCameraTests.cpp | 101 status_t stat = mCondition.waitRelative(mMutex, in waitForStatusChange() local 104 if (stat == OK) { in waitForStatusChange() 109 return stat; in waitForStatusChange() 637 ServiceListener::Status stat = ServiceListener::STATUS_UNKNOWN; in TEST_F() local 640 while (listener->waitForStatusChange(/*out*/stat) != OK); in TEST_F() 642 if (currentStatus != stat) { in TEST_F() 643 if (stat == ServiceListener::STATUS_PRESENT) { in TEST_F() 646 } else if (stat == ServiceListener::STATUS_NOT_AVAILABLE) { in TEST_F() 649 } else if (stat == ServiceListener::STATUS_NOT_PRESENT) { in TEST_F() 654 << std::hex << stat << std::endl; in TEST_F() [all …]
|
/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/base/cmds/idmap/ |
D | scan.cpp | 71 struct stat st; in mkdir_p() 73 if (stat(path.string(), &st) == 0) { in mkdir_p() 209 struct stat st; in idmap_scan() 212 if (stat(overlay_apk_path, &st) < 0) { in idmap_scan()
|
D | create.cpp | 77 struct stat st; in is_idmap_stale_fd() 136 struct stat st; in is_idmap_stale_path() 137 if (stat(idmap_path, &st) == -1) { in is_idmap_stale_path()
|
/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/av/drm/common/ |
D | ReadWriteUtils.cpp | 42 struct stat sb; in readBytes() 64 struct stat sb; in readBytes()
|
/frameworks/native/include/diskusage/ |
D | dirsize.h | 25 int64_t stat_size(struct stat *s);
|
/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/compile/mclinker/lib/Support/Unix/ |
D | PathV3.inc | 15 #include <sys/stat.h> 136 struct stat path_stat; 137 if(stat(p.c_str(), &path_stat)!= 0) 164 struct stat path_stat;
|
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/ |
D | DefaultContainerService.java | 221 final StructStatVfs stat = Os.statvfs(path); 222 final long totalSize = stat.f_blocks * stat.f_bsize; 223 final long availSize = stat.f_bavail * stat.f_bsize;
|