Home
last modified time | relevance | path

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

12345678

/system/media/audio_utils/tests/
Dstatistics_tests.cpp126 static void verify(const T &stat, const S &refstat) { in verify() argument
127 EXPECT_EQ(refstat.getN(), stat.getN()); in verify()
128 EXPECT_EQ(refstat.getMin(), stat.getMin()); in verify()
129 EXPECT_EQ(refstat.getMax(), stat.getMax()); in verify()
130 TEST_EXPECT_NEAR(refstat.getWeight(), stat.getWeight()); in verify()
131 TEST_EXPECT_NEAR(refstat.getMean(), stat.getMean()); in verify()
132 TEST_EXPECT_NEAR(refstat.getVariance(), stat.getVariance()); in verify()
133 TEST_EXPECT_NEAR(refstat.getStdDev(), stat.getStdDev()); in verify()
134 TEST_EXPECT_NEAR(refstat.getPopVariance(), stat.getPopVariance()); in verify()
135 TEST_EXPECT_NEAR(refstat.getPopStdDev(), stat.getPopStdDev()); in verify()
[all …]
/system/server_configurable_flags/aconfigd/
Daconfigd_util.cpp77 struct stat st; in CopyFile()
96 struct stat st; in GetFileTimeStamp()
97 int result = stat(file.c_str(), &st); in GetFileTimeStamp()
106 struct stat st; in FileExists()
107 return stat(file.c_str(), &st) == 0 ? true : false; in FileExists()
111 struct stat st; in FileNonZeroSize()
112 return stat(file.c_str(), &st) == 0 ? st.st_size > 0 : false; in FileNonZeroSize()
/system/memory/lmkd/libpsi/
Dpsi.cpp111 struct psi_stats *stat = &stats[stall_type]; in parse_psi_line() local
114 type_name, &stat->avg10, &stat->avg60, &stat->avg300, &stat->total) != 5) { in parse_psi_line()
/system/media/audio_utils/benchmarks/
Dstatistics_benchmark.cpp38 Stats stat(alpha); in BM_MeanVariance() local
39 using T = decltype(stat.getMin()); in BM_MeanVariance()
50 stat.add(datum); in BM_MeanVariance()
55 iters, alpha, (double)stat.getMean(), (double)stat.getPopVariance()); in BM_MeanVariance()
56 stat.reset(); in BM_MeanVariance()
/system/core/libcutils/
Dashmem-host.cpp37 static bool ashmem_validate_stat(int fd, struct stat* buf) { in ashmem_validate_stat()
56 struct stat buf; in ashmem_valid()
90 struct stat buf; in ashmem_get_size_region()
/system/apex/apexer/
Druntests.sh120 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/file1` = "1001,1001,-rw-r--r--" ]
121 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/file2` = "1001,1001,-rw-r--r--" ]
122 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/sub` = "1002,1002,drw-r--r--" ]
123 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/sub/file3` = "1003,1003,-rw-r--r--" ]
124 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/sym1` = "1001,1001,lrw-r--r--" ]
125 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/apex_manifest.pb` = "1000,1000,-rw-r--r--" ]
/system/core/fs_mgr/
Dblockdev.cpp53 struct stat statbuf; in PartitionParent()
54 if (stat(path.c_str(), &statbuf) >= 0) { in PartitionParent()
72 struct stat statbuf; in BlockdevName()
73 if (stat(path.c_str(), &statbuf) >= 0 && dev == statbuf.st_rdev) { in BlockdevName()
88 struct stat statbuf; in BlockDeviceQueueDepth()
89 int res = stat(file_path.c_str(), &statbuf); in BlockDeviceQueueDepth()
/system/core/init/
Dbootchart.cpp123 std::string stat; in log_processes() local
124 if (android::base::ReadFileToString(StringPrintf("/proc/%d/stat", pid), &stat)) { in log_processes()
127 size_t open = stat.find('('); in log_processes()
128 size_t close = stat.find_last_of(')'); in log_processes()
130 stat.replace(open + 1, close - open - 1, full_name); in log_processes()
133 fputs(stat.c_str(), log); in log_processes()
/system/apex/apexd/
Dapexd_utils.h88 struct stat stat_data; in CreateDirIfNeeded()
90 if (stat(path.c_str(), &stat_data) != 0) { in CreateDirIfNeeded()
174 struct stat sb; in WaitForFile()
175 if (stat(path.c_str(), &sb) != -1) { in WaitForFile()
229 struct stat stat_buf; in FindFirstExistingDirectory()
230 if (stat(first_dir.c_str(), &stat_buf) != 0) { in FindFirstExistingDirectory()
232 if (stat(second_dir.c_str(), &stat_buf) != 0) { in FindFirstExistingDirectory()
246 if (stat(second_dir.c_str(), &stat_buf) != 0) { in FindFirstExistingDirectory()
259 struct stat stat_buf; in MoveDir()
260 if (stat(to.c_str(), &stat_buf) != 0) { in MoveDir()
Dapexd_private.cpp41 struct stat buf; in BindMount()
42 if (stat(target.c_str(), &buf) != 0) { in BindMount()
/system/extras/simpleperf/doc/
Dexecutable_commands_reference.md15 Simpleperf has three main commands: stat, record and report.
17 The stat command gives a summary of how many events have happened in the profiled processes in a
48 The stat command: profiles processes and prints counter summary.
62 Below describes the most frequently used commands, which are list, stat, record and report.
90 ## The stat command
92 The stat command is used to get event counter values of the profiled processes. By passing options,
98 $ simpleperf stat -p 7394 --duration 10
114 ### Select events to stat
120 $ simpleperf stat -e cpu-cycles -p 11904 --duration 10
123 $ simpleperf stat -e cache-references,cache-misses -p 11904 --duration 10
[all …]
/system/core/bootstat/
Dboot_event_record_store.cpp43 struct stat file_stat; in ParseRecordEventTime()
44 if (stat(path.c_str(), &file_stat) == -1) { in ParseRecordEventTime()
79 struct stat file_stat; in AddBootEventWithValue()
80 if (stat(record_path.c_str(), &file_stat) == -1) { in AddBootEventWithValue()
/system/core/libutils/
DTokenizer.cpp58 struct stat stat; in open() local
59 if (fstat(fd, &stat)) { in open()
63 size_t length = size_t(stat.st_size); in open()
/system/extras/toolchain-extras/
Dprofile-clang-extras-test.cpp51 struct stat stat_buf; in TEST()
52 ASSERT_EQ(stat(OPEN_AT_TEST_FNAME, &stat_buf), 0); in TEST()
/system/core/fs_mgr/libfiemap/
Dutility.cpp82 struct stat userdata, given; in GetDevicePathForFile()
83 if (!stat(bdev_path.c_str(), &given) && !stat(kUserdataDevice, &userdata)) { in GetDevicePathForFile()
100 struct stat st; in F2fsPinBeforeAllocate()
/system/extras/ioshark/
Ddump_ioshark_filenames.c38 struct stat st; in main()
45 if (stat("ioshark_filenames", &st) < 0) { in main()
/system/apex/tools/
Dapexer_with_DCLA_preprocessing_test.py22 import stat
138 os.chmod(apexer_wrapper, stat.S_IRUSR | stat.S_IXUSR);
144 os.chmod(file_path, stat.S_IRUSR | stat.S_IXUSR);
/system/core/trusty/storage/proxy/
Dstorage.c374 struct stat buf = {0}; in open_possibly_mapped_file()
375 if (stat(ssdir_name, &buf) != 0) { in open_possibly_mapped_file()
686 struct stat stat; in storage_file_get_size() local
689 int rc = fstat(fd, &stat); in storage_file_get_size()
699 resp.size = stat.st_size; in storage_file_get_size()
748 struct stat stat; in storage_file_get_max_size() local
751 int rc = fstat(fd, &stat); in storage_file_get_max_size()
758 if ((stat.st_mode & S_IFMT) == S_IFBLK) { in storage_file_get_max_size()
796 struct stat buf = {0}; in determine_max_file_size()
797 int rc = stat(max_file_size_from, &buf); in determine_max_file_size()
/system/extras/tests/directiotest/
Ddirectiotest.c175 struct stat stat; in main() local
193 if (fstat(fd, &stat) == -1) { in main()
196 } else if (!S_ISBLK(stat.st_mode)) { in main()
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dwriter_base.cpp69 struct stat stat {}; in InitFd() struct
70 if (fstat(fd_.get(), &stat) < 0) { in InitFd()
75 is_block_device_ = S_ISBLK(stat.st_mode); in InitFd()
/system/extras/tests/storage/
Dopentest.c32 struct stat statbuf; in main()
49 if (stat(dir, &statbuf)) { in main()
/system/libprocinfo/
Dprocess.cpp144 std::string stat; in GetProcessInfoFromProcPidFd() local
145 if (!android::base::ReadFdToString(stat_fd, &stat)) { in GetProcessInfoFromProcPidFd()
151 const char* end_of_comm = strrchr(stat.c_str(), ')'); in GetProcessInfoFromProcPidFd()
/system/libhwbinder/vts/performance/
DBenchmark_binder.cpp105 int stat, retval; in main() local
106 retval = wait(&stat); in main()
/system/sepolicy/tools/
Dseamendc.c49 struct stat binarydata; in read_binary_policy()
50 rc = stat(path, &binarydata); in read_binary_policy()
121 struct stat filedata; in read_cil_files()
122 rc = stat(path, &filedata); in read_cil_files()
/system/extras/simpleperf/scripts/
Dupdate.py22 import stat
142 exe_stat = os.stat(name)
143 os.chmod(name, exe_stat.st_mode | stat.S_IEXEC)

12345678