/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | MemoryStatUtilTest.java | 131 MemoryStat stat = parseMemoryStatFromMemcg(MEMORY_STAT_CONTENTS); in testParseMemoryStatFromMemcg_parsesCorrectValues() local 132 assertEquals(1, stat.pgfault); in testParseMemoryStatFromMemcg_parsesCorrectValues() 133 assertEquals(2, stat.pgmajfault); in testParseMemoryStatFromMemcg_parsesCorrectValues() 134 assertEquals(3, stat.rssInBytes); in testParseMemoryStatFromMemcg_parsesCorrectValues() 135 assertEquals(4, stat.cacheInBytes); in testParseMemoryStatFromMemcg_parsesCorrectValues() 136 assertEquals(5, stat.swapInBytes); in testParseMemoryStatFromMemcg_parsesCorrectValues() 141 MemoryStat stat = parseMemoryStatFromMemcg(""); in testParseMemoryStatFromMemcg_emptyMemoryStatContents() local 142 assertNull(stat); in testParseMemoryStatFromMemcg_emptyMemoryStatContents() 144 stat = parseMemoryStatFromMemcg(null); in testParseMemoryStatFromMemcg_emptyMemoryStatContents() 145 assertNull(stat); in testParseMemoryStatFromMemcg_emptyMemoryStatContents() [all …]
|
/frameworks/native/libs/binder/ndk/tests/ |
D | iface.cpp | 48 binder_status_t stat = STATUS_FAILED_TRANSACTION; in IFoo_Class_onTransact() local 57 stat = AParcel_readInt32(in, &valueIn); in IFoo_Class_onTransact() 58 if (stat != STATUS_OK) break; in IFoo_Class_onTransact() 59 stat = foo->doubleNumber(valueIn, &valueOut); in IFoo_Class_onTransact() 60 if (stat != STATUS_OK) break; in IFoo_Class_onTransact() 61 stat = AParcel_writeInt32(out, valueOut); in IFoo_Class_onTransact() 65 stat = foo->die(); in IFoo_Class_onTransact() 70 return stat; in IFoo_Class_onTransact() 87 binder_status_t stat = STATUS_OK; in doubleNumber() local 90 stat = AIBinder_prepareTransaction(mBinder, &parcelIn); in doubleNumber() [all …]
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | DiskStatsFileLogger.java | 127 PackageStats stat = entry.getValue(); in addAppsToJson() local 128 long appSize = stat.codeSize; in addAppsToJson() 129 long appDataSize = stat.dataSize; in addAppsToJson() 130 long cacheSize = stat.cacheSize; in addAppsToJson() 132 appSize += stat.externalCodeSize; in addAppsToJson() 133 appDataSize += stat.externalDataSize; in addAppsToJson() 134 cacheSize += stat.externalCacheSize; in addAppsToJson() 140 names.put(stat.packageName); in addAppsToJson() 161 for (PackageStats stat : mPackageStats) { in filterOnlyPrimaryUser() 162 if (stat.userHandle != UserHandle.USER_SYSTEM) { in filterOnlyPrimaryUser() [all …]
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySavingStats.java | 240 Stat stat = mStats.get(stateIndex); in getStat() local 241 if (stat == null) { in getStat() 242 stat = new Stat(); in getStat() 243 mStats.put(stateIndex, stat); in getStat() 245 return stat; in getStat() 340 final Stat stat = getStat(mCurrentState); 342 stat.endBatteryLevel = batteryLevel; 343 stat.endBatteryPercent = batteryPercent; 344 stat.endTime = now; 346 final long deltaTime = stat.endTime - stat.startTime; [all …]
|
/frameworks/av/media/mtp/ |
D | MtpStorage.cpp | 63 struct statfs stat; in getMaxCapacity() local 64 if (statfs(getPath(), &stat)) in getMaxCapacity() 66 mMaxCapacity = (uint64_t)stat.f_blocks * (uint64_t)stat.f_bsize; in getMaxCapacity() 72 struct statfs stat; in getFreeSpace() local 73 if (statfs(getPath(), &stat)) in getFreeSpace() 75 return (uint64_t)stat.f_bavail * (uint64_t)stat.f_bsize; in getFreeSpace()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | RcsStats.java | 393 SipDelegateStats stat = new SipDelegateStats(); in getDefaultSipDelegateStat() local 394 stat.dimension = RANDOM.nextInt(); in getDefaultSipDelegateStat() 395 stat.carrierId = getCarrierId(subId); in getDefaultSipDelegateStat() 396 stat.slotId = getSlotId(subId); in getDefaultSipDelegateStat() 397 return stat; in getDefaultSipDelegateStat() 1512 LastSipDelegateStat stat = null; in getLastSipDelegateStat() local 1515 stat = lastStat; in getLastSipDelegateStat() 1520 if (stat == null) { in getLastSipDelegateStat() 1521 stat = new LastSipDelegateStat(subId, supportedTags); in getLastSipDelegateStat() 1522 mLastSipDelegateStatList.add(stat); in getLastSipDelegateStat() [all …]
|
/frameworks/base/libs/hwui/service/ |
D | GraphicsStatsService.cpp | 122 struct stat sb; in parseFromFile() 381 void mergeStat(const protos::GraphicsStatsProto& stat); 394 void GraphicsStatsService::Dump::mergeStat(const protos::GraphicsStatsProto& stat) { in mergeStat() argument 395 auto dumpKey = std::make_pair(stat.package_name(), stat.version_code()); in mergeStat() 398 mStats[dumpKey] = stat; in mergeStat() 401 summary->set_total_frames(summary->total_frames() + stat.summary().total_frames()); in mergeStat() 402 summary->set_janky_frames(summary->janky_frames() + stat.summary().janky_frames()); in mergeStat() 404 stat.summary().missed_vsync_count()); in mergeStat() 406 stat.summary().high_input_latency_count()); in mergeStat() 408 stat.summary().slow_ui_thread_count()); in mergeStat() [all …]
|
/frameworks/base/cmds/incidentd/src/ |
D | report_directory.cpp | 36 static bool stat_mtime_cmp(const std::pair<String8, struct stat>& a, in stat_mtime_cmp() 37 const std::pair<String8, struct stat>& b) { in stat_mtime_cmp() 44 struct stat st; in clean_directory() 46 std::vector<std::pair<String8, struct stat>> files; in clean_directory() 65 if (stat(filename.c_str(), &st) != 0) { in clean_directory() 72 files.push_back(std::pair<String8, struct stat>(filename, st)); in clean_directory() 89 for (std::vector<std::pair<String8, struct stat>>::iterator it = files.begin(); in clean_directory()
|
/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 | 43 struct stat sb; in getFileType() 45 if (stat(fileName, &sb) < 0) { in getFileType() 80 struct stat sb; in getFileModDate() 81 if (stat(fileName, &sb) < 0) { in getFileModDate() 88 struct stat sb; in getFileModDate()
|
D | AssetsProvider.cpp | 107 struct stat sb{.st_mtime = -1}; in Create() 110 if ((released_fd < 0 ? stat(path.c_str(), &sb) : fstat(released_fd, &sb)) < 0) { in Create() 140 struct stat sb{.st_mtime = -1}; in Create() 289 struct stat sb{}; in IsUpToDate() 302 struct stat sb; in Create() 303 const int result = stat(path.c_str(), &sb); in Create() 328 struct stat sb{}; in OpenInternal() 329 *file_exists = (stat(resolved_path.c_str(), &sb) != -1) && S_ISREG(sb.st_mode); in OpenInternal() 353 struct stat sb; in IsUpToDate() 354 if (stat(dir_.c_str(), &sb) < 0) { in IsUpToDate()
|
/frameworks/base/tools/aapt/ |
D | FileFinder.cpp | 25 struct stat fileStat; in isDirectory() 26 if (stat(filename, &fileStat) == -1) { in isDirectory() 35 struct stat fileStat; in isFile() 36 if (stat(filename, &fileStat) == -1) { in isFile() 81 void SystemFileFinder::checkAndAddFile(const String8& path, const struct stat* stats, in checkAndAddFile()
|
D | DirectoryWalker.h | 34 virtual struct stat* entryStats() = 0; 44 struct stat mStats; 82 stat(fullPath.c_str(),&mStats); in nextEntry() 86 virtual struct stat* entryStats() { in entryStats()
|
D | CacheUpdater.h | 67 struct stat s; in ensureDirectoriesExist() 72 if (stat(path.c_str(),&s) == -1) { in ensureDirectoriesExist() 80 } while (stat(existsPath.c_str(),&s) == -1); in ensureDirectoriesExist()
|
/frameworks/libs/binary_translation/kernel_api/ |
D | open_emulation.cc | 183 struct stat cur_stat; in IsProcSelfMaps() 184 struct stat proc_stat; in IsProcSelfMaps() 187 return stat(path, &cur_stat) == 0 && stat(PROC_SELF_MAPS, &proc_stat) == 0 && in IsProcSelfMaps() 201 struct stat cur_stat; in TryTranslateProcCpuinfoPath() 202 struct stat cpuinfo_stat; in TryTranslateProcCpuinfoPath() 204 if (stat(path, &cur_stat) == -1 || stat("/proc/cpuinfo", &cpuinfo_stat) == -1) { in TryTranslateProcCpuinfoPath()
|
D | main_executable_real_path_emulation.cc | 34 struct stat cur_stat; in TryReadLinkToMainExecutableRealPath() 35 struct stat exe_stat; in TryReadLinkToMainExecutableRealPath()
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | MouseClickAction.java | 47 Tapper.Status stat = sendSingleTap(uiController, coordinates, precision, in sendTap() local 50 if (stat == Tapper.Status.FAILURE) { in sendTap() 52 } else if (stat == Tapper.Status.WARNING) { in sendTap() 61 stat = sendSingleTap(uiController, coordinates, precision, inputDevice, in sendTap() 63 if (stat == Tapper.Status.FAILURE) { in sendTap() 65 } else if (stat == Tapper.Status.WARNING) { in sendTap()
|
/frameworks/base/tools/lint/utils/checks/src/main/java/com/google/android/lint/aidl/ |
D | AnnotatedAidlCounter.kt | 66 for ((packageName, stat) in packagesStats) { in afterCheckRootProject() variable 67 context.client.log(null, "package $packageName => $stat") in afterCheckRootProject() 68 total.unannotated += stat.unannotated in afterCheckRootProject() 69 total.enforced += stat.enforced in afterCheckRootProject() 70 total.notRequired += stat.notRequired in afterCheckRootProject()
|
/frameworks/native/cmds/installd/tests/ |
D | installd_service_test.cpp | 157 struct stat buf; in stat_gid() 158 EXPECT_EQ(::stat(get_full_path(path).c_str(), &buf), 0); in stat_gid() 163 struct stat buf; in stat_mode() 164 EXPECT_EQ(::stat(get_full_path(path).c_str(), &buf), 0); in stat_mode() 492 struct stat s; in TEST_F() 496 if (stat(externalPicDir.c_str(), &s) == 0) { in TEST_F() 656 struct stat sb; in mkdirs() 657 if (stat(path.c_str(), &sb) != -1 && S_ISDIR(sb.st_mode)) { in mkdirs() 730 struct stat buf; in TEST_F() 732 ASSERT_EQ(0, stat((rollback_ce_dir + "/com.foo").c_str(), &buf)); in TEST_F() [all …]
|
/frameworks/base/core/jni/ |
D | fd_utils.cpp | 190 const struct stat stat; member in FileDescriptorInfo 203 FileDescriptorInfo(struct stat stat, const std::string& file_path, int fd, int open_flags, 221 struct stat f_stat; in CreateFromFd() 327 struct stat f_stat; in RefersToSameFile() 333 return f_stat.st_ino == stat.st_ino && f_stat.st_dev == stat.st_dev; in RefersToSameFile() 400 stat(), in FileDescriptorInfo() 408 FileDescriptorInfo::FileDescriptorInfo(struct stat stat, const std::string& file_path, in FileDescriptorInfo() argument 412 stat(stat), in FileDescriptorInfo()
|
/frameworks/base/core/java/android/app/ |
D | SharedPreferencesImpl.java | 170 StructStat stat = null; in loadFromDisk() local 173 stat = Os.stat(mFile.getPath()); in loadFromDisk() 204 mStatTimestamp = stat.st_mtim; in loadFromDisk() 205 mStatSize = stat.st_size; in loadFromDisk() 246 final StructStat stat; in hasFileChangedUnexpectedly() local 253 stat = Os.stat(mFile.getPath()); in hasFileChangedUnexpectedly() 259 return !stat.st_mtim.equals(mStatTimestamp) || mStatSize != stat.st_size; in hasFileChangedUnexpectedly() 827 final StructStat stat = Os.stat(mFile.getPath()); in writeToFile() local 829 mStatTimestamp = stat.st_mtim; in writeToFile() 830 mStatSize = stat.st_size; in writeToFile()
|
/frameworks/native/libs/gui/ |
D | BLASTBufferQueue.cpp | 291 for (auto stat : stats) { in findMatchingStat() local 292 if (SurfaceControl::isSameSurface(sc, stat.surfaceControl)) { in findMatchingStat() 293 return stat; in findMatchingStat() 318 std::optional<SurfaceControlStats> stat = findMatchingStat(stats, pendingSC); in transactionCommittedCallback() local 319 if (stat) { in transactionCommittedCallback() 320 uint64_t currFrameNumber = stat->frameEventStats.frameNumber; in transactionCommittedCallback() 365 SurfaceControlStats stat = *statsOptional; in transactionCallback() local 366 if (stat.transformHint) { in transactionCallback() 367 mTransformHint = *stat.transformHint; in transactionCallback() 373 if (stat.latchTime > 0) { in transactionCallback() [all …]
|
/frameworks/native/libs/vr/libpdx_default_transport/ |
D | pdx_tool.cpp | 98 typedef int (*CallbackType)(const char* path, const struct stat* sb, 101 int ReloadCommandCallback(const char* path, const struct stat* sb, 103 int DumpCommandCallback(const char* path, const struct stat* sb, int type_flag, 158 int ReloadCommandCallback(const char* path, const struct stat*, int type_flag, in ReloadCommandCallback() argument 165 int DumpCommandCallback(const char* path, const struct stat*, int type_flag, in DumpCommandCallback() argument
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BinderCallsStats.java | 474 for (CallStat stat : entry.getCallStatsList()) { in getExportedCallStats() 475 ExportedCallStat e = getExportedCallStat(entry.workSourceUid, stat); in getExportedCallStats() 516 for (CallStat stat : entry.getCallStatsList()) { in getExportedCallStats() 517 ExportedCallStat e = getExportedCallStat(workSourceUid, stat); in getExportedCallStats() 530 private ExportedCallStat getExportedCallStat(int workSourceUid, CallStat stat) { in getExportedCallStat() argument 533 exported.callingUid = stat.callingUid; in getExportedCallStat() 534 exported.className = stat.binderClass.getName(); in getExportedCallStat() 535 exported.binderClass = stat.binderClass; in getExportedCallStat() 536 exported.transactionCode = stat.transactionCode; in getExportedCallStat() 537 exported.screenInteractive = stat.screenInteractive; in getExportedCallStat() [all …]
|
/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()
|