Home
last modified time | relevance | path

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

/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.cc68 nftw(path_.c_str(), [](const char* name, const struct stat*, int type, struct FTW *) { in ~ScratchDir() argument
356 struct stat s; in ClearDirectory()
/art/compiler/optimizing/
Doptimizing_compiler_stats.h118 void RecordStat(MethodCompilationStat stat, uint32_t count = 1) {
119 size_t stat_index = static_cast<size_t>(stat);
124 uint32_t GetStat(MethodCompilationStat stat) const { in GetStat() argument
125 size_t stat_index = static_cast<size_t>(stat); in GetStat()
170 for (std::atomic<uint32_t>& stat : compile_stats_) { in Reset()
171 stat = 0u; in Reset()
182 MethodCompilationStat stat,
185 compiler_stats->RecordStat(stat, count);
Dinliner.cc81 #define LOG_FAIL(stats_ptr, stat) MaybeRecordStat(stats_ptr, stat); LOG_INTERNAL("Fail: ") argument
/art/libnativebridge/tests/
DCodeCacheCreate_test.cpp29 struct stat st; in TEST_F()
30 ASSERT_EQ(-1, stat(kCodeCache, &st)); in TEST_F()
41 ASSERT_EQ(0, stat(kCodeCache, &st)); in TEST_F()
DCodeCacheExists_test.cpp29 struct stat st; in TEST_F()
30 ASSERT_EQ(-1, stat(kCodeCache, &st)); in TEST_F()
44 ASSERT_EQ(0, stat(kCodeCache, &st)); in TEST_F()
DCodeCacheStatFail_test.cpp33 struct stat st; in TEST_F()
34 ASSERT_EQ(-1, stat(kCodeCacheStatFail, &st)); in TEST_F()
/art/runtime/
Dprebuilt_tools_test.cc34 struct stat exec_st; in CheckToolsExist()
36 if (stat(exec_path.c_str(), &exec_st) != 0) { in CheckToolsExist()
Doat_file_manager.cc883 struct stat s; in UnlinkLeastRecentlyUsedVdexIfNeeded()
884 int rc = TEMP_FAILURE_RETRY(stat(fullname.c_str(), &s)); in UnlinkLeastRecentlyUsedVdexIfNeeded()
Doat_file_assistant.cc754 struct stat s; in Status()
Doat_file.cc308 struct stat s; in LoadVdex()
/art/libnativebridge/
Dnative_bridge.cc431 struct stat st; in InitializeNativeBridge()
432 if (stat(app_code_cache_dir, &st) == -1) { in InitializeNativeBridge()
/art/libnativeloader/
Dpublic_libraries.cpp204 struct stat s; in InitDefaultPublicLibraries()
207 if (stat(path.c_str(), &s) != 0) { in InitDefaultPublicLibraries()
/art/libartbase/base/unix_file/
Dfd_file.cc383 struct stat s; in GetLength()
528 struct stat this_stat, current_stat; in Unlink()
/art/compiler/utils/
Dassembler_test_base.h468 struct stat buf; in FileExists()
469 return stat(copy.c_str(), &buf) == 0; in FileExists()
/art/test/115-native-bridge/
Dnativebridge.cc423 struct stat st; in native_bridge_initialize()
425 if (stat(app_code_cache_dir, &st) == 0) { in native_bridge_initialize()
/art/libdexfile/external/
Ddex_file_ext.cc212 struct stat sbuf; in ExtDexFileOpenFromFd()
/art/dex2oat/linker/
Doat_writer.h347 bool WriteUpTo16BytesAlignment(OutputStream* out, uint32_t size, uint32_t* stat);
Doat_writer.cc4016 bool OatWriter::WriteUpTo16BytesAlignment(OutputStream* out, uint32_t size, uint32_t* stat) { in WriteUpTo16BytesAlignment() argument
4024 *stat += size; in WriteUpTo16BytesAlignment()
/art/libdexfile/dex/
Dart_dex_file_loader.cc321 struct stat sbuf; in OpenFile()
/art/imgdiag/
Dimgdiag.cc1145 struct stat sts; in Init()
1148 if (stat(proc_pid_str.c_str(), &sts) == -1) { in Init()
/art/libprofile/profile/
Dprofile_compilation_info.cc1282 struct stat stat_buffer; in HasEmptyContent()
2146 struct stat stat_buffer; in IsProfileFile()
/art/dex2oat/
Ddex2oat.cc1510 struct stat s; in OpenFile()