/art/libartbase/base/ |
D | os_linux.cc | 74 struct stat st; in FileExists() 75 if (stat(name, &st) == 0) { in FileExists() 87 struct stat st; in DirectoryExists() 88 if (stat(name, &st) == 0) { in DirectoryExists() 96 struct stat st; in GetFileSizeBytes() 97 if (stat(name, &st) == 0) { in GetFileSizeBytes()
|
D | scoped_flock.cc | 68 struct stat fstat_stat; in Open() 74 struct stat stat_stat; in Open() 75 int stat_result = TEMP_FAILURE_RETRY(stat(filename, &stat_stat)); in Open()
|
D | common_art_test.cc | 424 struct stat s; in ClearDirectory()
|
/art/compiler/optimizing/ |
D | optimizing_compiler_stats.h | 150 void RecordStat(MethodCompilationStat stat, uint32_t count = 1) { 151 size_t stat_index = static_cast<size_t>(stat); 156 uint32_t GetStat(MethodCompilationStat stat) const { in GetStat() argument 157 size_t stat_index = static_cast<size_t>(stat); in GetStat() 202 for (std::atomic<uint32_t>& stat : compile_stats_) { in Reset() 203 stat = 0u; in Reset() 214 MethodCompilationStat stat, 217 compiler_stats->RecordStat(stat, count);
|
/art/runtime/ |
D | exec_utils_test.cc | 216 ProcessStat stat; in TEST_P() local 231 &stat, in TEST_P() 237 EXPECT_EQ(stat.cpu_time_ms, 990); in TEST_P() 238 EXPECT_EQ(stat.wall_time_ms, 1007); in TEST_P() 246 ProcessStat stat; in TEST_P() local 261 &stat, in TEST_P() 267 EXPECT_EQ(stat.cpu_time_ms, 0); in TEST_P() 268 EXPECT_EQ(stat.wall_time_ms, 0); in TEST_P() 276 ProcessStat stat; in TEST_P() local 286 &stat, in TEST_P() [all …]
|
D | exec_utils.cc | 217 /*out*/ ProcessStat* stat) { in ParseProcStat() argument 241 stat->cpu_time_ms = (utime + stime + cutime + cstime) * 1000 / ticks_per_sec; in ParseProcStat() 242 stat->wall_time_ms = uptime_ms - starttime * 1000 / ticks_per_sec; in ParseProcStat() 268 /*out*/ ProcessStat* stat, in ExecAndReturnResult() argument 299 if (stat != nullptr) { in ExecAndReturnResult() 301 if (!GetStat(pid, stat, &local_error_msg)) { in ExecAndReturnResult() 355 /*out*/ ProcessStat* stat, in GetStat() argument 367 if (!ParseProcStat(stat_content, *uptime_ms, ticks_per_sec, stat)) { in GetStat()
|
D | exec_utils.h | 107 /*out*/ ProcessStat* stat, 121 bool GetStat(pid_t pid, /*out*/ ProcessStat* stat, /*out*/ std::string* error_msg) const;
|
/art/libnativebridge/tests/ |
D | CodeCacheCreate_test.cpp | 30 struct stat st; in TEST_F() 31 ASSERT_EQ(-1, stat(codeCache(), &st)); in TEST_F() 42 ASSERT_EQ(0, stat(codeCache(), &st)); in TEST_F()
|
D | CodeCacheExists_test.cpp | 29 struct stat st; in TEST_F() 30 ASSERT_EQ(-1, stat(codeCache(), &st)); in TEST_F() 44 ASSERT_EQ(0, stat(codeCache(), &st)); in TEST_F()
|
D | CodeCacheStatFail_test.cpp | 33 struct stat st; in TEST_F() 34 ASSERT_EQ(-1, stat(codeCacheStatFail(), &st)); in TEST_F()
|
/art/dexopt_chroot_setup/ |
D | dexopt_chroot_setup_test.cc | 129 struct stat st_outside; in TEST_F() 130 ASSERT_EQ(stat(dir.c_str(), &st_outside), 0); in TEST_F() 131 struct stat st_inside; in TEST_F() 132 ASSERT_EQ(stat(PathInChroot(dir).c_str(), &st_inside), 0); in TEST_F()
|
/art/odrefresh/ |
D | odr_fs_utils.cc | 46 [[maybe_unused]] const struct stat* sb, in NftwCleanUpCallback() 133 struct stat sb; in GetUsedSpace() 134 if (stat(entity_name.c_str(), &sb) != 0) { in GetUsedSpace()
|
D | odr_fs_utils_test.cc | 134 struct stat sb; in TEST_F() 135 ASSERT_EQ(0, stat(first_file_path.c_str(), &sb)); in TEST_F()
|
/art/tools/veridex/ |
D | appcompat.py | 21 import stat
|
/art/libartbase/base/unix_file/ |
D | fd_file_test.cc | 225 struct stat src_stat; in TEST_F() 249 struct stat dest_stat; in TEST_F() 333 struct stat src1_stat; in TEST_F() 346 struct stat src2_stat; in TEST_F() 374 struct stat src_stat, dest_stat; in TEST_F() 411 struct stat tmp_stat; in GetFilesystemBlockSize() 459 struct stat src_stat, dest_stat; in TEST_F()
|
D | fd_file.cc | 392 struct stat s; in GetLength() 620 struct stat output_stat; in Copy() 672 struct stat this_stat, current_stat; in FilePathMatchesFd()
|
/art/artd/ |
D | artd.h | 96 std::function<int(int, struct stat*)> fstat_func = fstat, 275 ProcessStat* stat = nullptr) const; 299 android::base::Result<struct stat> Fstat(const art::File& file) const; 332 const std::function<int(int, struct stat*)> fstat_;
|
D | artd.cc | 1043 struct stat dex_st = OR_RETURN_NON_FATAL(Fstat(*dex_file)); in dexopt() 1140 struct stat profile_st = OR_RETURN_NON_FATAL(Fstat(*profile_file)); in dexopt() 1173 ProcessStat stat; in dexopt() local 1175 art_exec_args.Get(), kLongTimeoutSec, cancellation_signal->CreateExecCallbacks(), &stat); in dexopt() 1176 _aidl_return->wallTimeMs = stat.wall_time_ms; in dexopt() 1177 _aidl_return->cpuTimeMs = stat.cpu_time_ms; in dexopt() 1720 ProcessStat* stat) const { in ExecAndReturnCode() 1725 args, timeout_sec, callbacks, /*new_process_group=*/true, stat, &error_msg); in ExecAndReturnCode() 1732 Result<struct stat> Artd::Fstat(const File& file) const { in Fstat() 1733 struct stat st; in Fstat()
|
D | file_utils_test.cc | 80 struct stat st; in SetUp() 81 ASSERT_EQ(stat(scratch_dir_->GetPath().c_str(), &st), 0); in SetUp()
|
D | artd_test.cc | 308 ProcessStat* stat, in ExecAndReturnResult() argument 310 Result<int> code = DoExecAndReturnCode(arg_vector, callbacks, stat); in ExecAndReturnResult() 321 ProcessStat* stat), 370 struct stat st; in SetUp() 371 ASSERT_EQ(stat(scratch_path_.c_str(), &st), 0); in SetUp() 529 MockFunction<int(int, struct stat*)> mock_fstat_; 1295 .WillOnce(DoAll(SetArgPointee<1>((struct stat){ in TEST_F() 1310 .WillOnce(DoAll(SetArgPointee<1>((struct stat){ in TEST_F()
|
/art/libnativebridge/ |
D | native_bridge.cc | 486 struct stat st; in InitializeNativeBridge() 487 if (stat(app_code_cache_dir, &st) == -1) { in InitializeNativeBridge()
|
/art/test/115-native-bridge/ |
D | nativebridge.cc | 430 struct stat st; in native_bridge_initialize() 432 if (stat(app_code_cache_dir, &st) == 0) { in native_bridge_initialize()
|
/art/runtime/oat/ |
D | oat_file_manager.cc | 664 struct stat s; in UnlinkLeastRecentlyUsedVdexIfNeeded() 665 int rc = TEMP_FAILURE_RETRY(stat(fullname.c_str(), &s)); in UnlinkLeastRecentlyUsedVdexIfNeeded()
|
/art/dex2oat/linker/ |
D | oat_writer.h | 348 bool WriteUpTo16BytesAlignment(OutputStream* out, uint32_t size, uint32_t* stat);
|
/art/runtime/jit/ |
D | profile_saver.cc | 243 struct stat stat_buffer; in IsProfileEmpty() 244 if (stat(location.c_str(), &stat_buffer) != 0) { in IsProfileEmpty()
|