Home
last modified time | relevance | path

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

12

/art/libartbase/base/
Dos_linux.cc74 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()
Dscoped_flock.cc68 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()
Dcommon_art_test.cc424 struct stat s; in ClearDirectory()
/art/compiler/optimizing/
Doptimizing_compiler_stats.h150 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/
Dexec_utils_test.cc216 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 …]
Dexec_utils.cc217 /*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()
Dexec_utils.h107 /*out*/ ProcessStat* stat,
121 bool GetStat(pid_t pid, /*out*/ ProcessStat* stat, /*out*/ std::string* error_msg) const;
/art/libnativebridge/tests/
DCodeCacheCreate_test.cpp30 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()
DCodeCacheExists_test.cpp29 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()
DCodeCacheStatFail_test.cpp33 struct stat st; in TEST_F()
34 ASSERT_EQ(-1, stat(codeCacheStatFail(), &st)); in TEST_F()
/art/dexopt_chroot_setup/
Ddexopt_chroot_setup_test.cc129 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/
Dodr_fs_utils.cc46 [[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()
Dodr_fs_utils_test.cc134 struct stat sb; in TEST_F()
135 ASSERT_EQ(0, stat(first_file_path.c_str(), &sb)); in TEST_F()
/art/tools/veridex/
Dappcompat.py21 import stat
/art/libartbase/base/unix_file/
Dfd_file_test.cc225 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()
Dfd_file.cc392 struct stat s; in GetLength()
620 struct stat output_stat; in Copy()
672 struct stat this_stat, current_stat; in FilePathMatchesFd()
/art/artd/
Dartd.h96 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_;
Dartd.cc1043 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()
Dfile_utils_test.cc80 struct stat st; in SetUp()
81 ASSERT_EQ(stat(scratch_dir_->GetPath().c_str(), &st), 0); in SetUp()
Dartd_test.cc308 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/
Dnative_bridge.cc486 struct stat st; in InitializeNativeBridge()
487 if (stat(app_code_cache_dir, &st) == -1) { in InitializeNativeBridge()
/art/test/115-native-bridge/
Dnativebridge.cc430 struct stat st; in native_bridge_initialize()
432 if (stat(app_code_cache_dir, &st) == 0) { in native_bridge_initialize()
/art/runtime/oat/
Doat_file_manager.cc664 struct stat s; in UnlinkLeastRecentlyUsedVdexIfNeeded()
665 int rc = TEMP_FAILURE_RETRY(stat(fullname.c_str(), &s)); in UnlinkLeastRecentlyUsedVdexIfNeeded()
/art/dex2oat/linker/
Doat_writer.h348 bool WriteUpTo16BytesAlignment(OutputStream* out, uint32_t size, uint32_t* stat);
/art/runtime/jit/
Dprofile_saver.cc243 struct stat stat_buffer; in IsProfileEmpty()
244 if (stat(location.c_str(), &stat_buffer) != 0) { in IsProfileEmpty()

12