/system/core/adb/sysdeps/ |
D | stat_test.cpp | 25 TEST(sysdeps, stat) { in TEST() argument 29 struct stat st; in TEST() 30 ASSERT_EQ(0, stat(td.path, &st)); in TEST() 34 ASSERT_EQ(0, stat((std::string(td.path) + '/').c_str(), &st)); in TEST() 38 ASSERT_EQ(0, stat((std::string(td.path) + '\\').c_str(), &st)); in TEST() 43 ASSERT_EQ(-1, stat(nonexistent_path.c_str(), &st)); in TEST() 46 ASSERT_EQ(-1, stat((nonexistent_path + "/").c_str(), &st)); in TEST() 50 ASSERT_EQ(-1, stat((nonexistent_path + "\\").c_str(), &st)); in TEST() 54 ASSERT_EQ(0, stat(tf.path, &st)); in TEST() 58 ASSERT_EQ(-1, stat((std::string(tf.path) + '/').c_str(), &st)); in TEST() [all …]
|
D | stat.h | 38 struct adb_stat : public stat {}; 40 #undef stat 41 #define stat adb_stat macro
|
/system/iorap/src/inode2filename/ |
D | system_call.h | 30 virtual int stat(const char *pathname, struct stat *statbuf) = 0; 50 virtual int stat(const char *pathname, struct stat *statbuf) override { in stat() function 51 return ::stat(pathname, statbuf); in stat()
|
/system/media/audio_utils/tests/ |
D | statistics_tests.cpp | 126 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 …]
|
D | statistics_benchmark.cpp | 38 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/libnativebridge/tests/ |
D | CodeCacheCreate_test.cpp | 29 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()
|
D | CodeCacheExists_test.cpp | 29 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()
|
D | CodeCacheStatFail_test.cpp | 33 struct stat st; in TEST_F() 34 ASSERT_EQ(-1, stat(kCodeCacheStatFail, &st)); in TEST_F()
|
/system/core/libdiskconfig/ |
D | diskconfig.c | 240 struct stat stat; in sync_ptable() local 245 if (fstat(fd, &stat)) { in sync_ptable() 250 if (S_ISBLK(stat.st_mode) && ((rv = ioctl(fd, BLKRRPART, NULL)) < 0)) { in sync_ptable() 277 struct stat stat; in validate() local 287 if (fstat(fd, &stat)) { in validate() 298 if (S_ISBLK(stat.st_mode)) { in validate() 320 } else if (S_ISREG(stat.st_mode)) { in validate() 329 dinfo->num_lba = (uint32_t)(stat.st_size / dinfo->sect_size); in validate() 330 disk_size = (uint64_t)stat.st_size; in validate() 372 if (S_ISBLK(stat.st_mode) && total_size > disk_size) { in validate()
|
/system/apex/apexer/ |
D | runtests.sh | 114 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/file1` = "1001,1001,-rw-r--r--" ] 115 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/file2` = "1001,1001,-rw-r--r--" ] 116 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/sub` = "1002,1002,drw-r--r--" ] 117 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/sub/file3` = "1003,1003,-rw-r--r--" ] 118 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/sym1` = "1001,1001,lrw-r--r--" ] 119 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/apex_manifest.json` = "1000,1000,-rw-r--r--" ]
|
/system/core/init/ |
D | bootchart.cpp | 123 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()
|
D | first_stage_init.cpp | 67 struct stat info; in FreeRamdisk() 189 struct stat old_root_info; in FirstStageMain() 190 if (stat("/", &old_root_info) != 0) { in FirstStageMain() 222 struct stat new_root_info; in FirstStageMain() 223 if (stat("/", &new_root_info) != 0) { in FirstStageMain()
|
D | util.cpp | 168 struct stat sb; in ReadFile() 216 struct stat info; in mkdir_recursive() 217 if (stat(directory.c_str(), &info) != 0) { in mkdir_recursive() 230 struct stat sb; in wait_for_file() 231 if (stat(filename, &sb) != -1) { in wait_for_file() 275 struct stat info; in is_dir() 276 if (stat(pathname, &info) == -1) { in is_dir()
|
D | reboot.cpp | 165 static void LogShutdownTime(UmountStat stat, Timer* t) { in LogShutdownTime() argument 167 << stat; in LogShutdownTime() 271 UmountStat stat = UmountPartitions(timeout - t.duration()); in TryUmountAndFsck() local 272 if (stat != UMOUNT_STAT_SUCCESS) { in TryUmountAndFsck() 281 if (stat == UMOUNT_STAT_SUCCESS && runFsck) { in TryUmountAndFsck() 288 return stat; in TryUmountAndFsck() 500 UmountStat stat = TryUmountAndFsck(runFsck, shutdown_timeout - t.duration()); in DoReboot() local 509 LogShutdownTime(stat, &t); in DoReboot()
|
/system/core/bootstat/ |
D | boot_event_record_store.cpp | 43 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/ |
D | Tokenizer.cpp | 57 struct stat stat; in open() local 58 if (fstat(fd, &stat)) { in open() 62 size_t length = size_t(stat.st_size); in open()
|
/system/extras/ioshark/ |
D | dump_ioshark_filenames.c | 38 struct stat st; in main() 45 if (stat("ioshark_filenames", &st) < 0) { in main()
|
/system/apex/apexd/ |
D | apexd_private.cpp | 40 struct stat buf; in BindMount() 41 if (stat(target.c_str(), &buf) != 0) { in BindMount()
|
D | apexd_utils.h | 126 struct stat stat_data; in createDirIfNeeded() 128 if (stat(path.c_str(), &stat_data) != 0) { in createDirIfNeeded() 193 struct stat sb; in WaitForFile() 194 if (stat(path.c_str(), &sb) != -1) { in WaitForFile()
|
/system/core/adb/ |
D | adb_utils.cpp | 77 struct stat sb; in directory_exists() 78 return stat(path.c_str(), &sb) != -1 && S_ISDIR(sb.st_mode); in directory_exists() 124 struct stat sb; in mkdirs() 125 if (stat(path.c_str(), &sb) != -1 && S_ISDIR(sb.st_mode)) { in mkdirs() 313 struct stat buf; in adb_get_android_dir_path() 314 if (stat(android_dir.c_str(), &buf) == -1) { in adb_get_android_dir_path()
|
/system/core/adb/client/ |
D | file_sync_client.cpp | 320 bool FinishStat(struct stat* st) { in FinishStat() 429 struct stat st; in SendLargeFile() 430 if (stat(lpath, &st) == -1) { in SendLargeFile() 636 static bool sync_stat(SyncConnection& sc, const char* path, struct stat* st) { in sync_stat() 640 static bool sync_lstat(SyncConnection& sc, const char* path, struct stat* st) { in sync_lstat() 644 static bool sync_stat_fallback(SyncConnection& sc, const char* path, struct stat* st) { in sync_stat_fallback() 665 struct stat tmp_st; in sync_stat_fallback() 682 struct stat st; in sync_send() 708 struct stat st; in sync_send() 709 if (stat(lpath, &st) == -1) { in sync_send() [all …]
|
/system/bt/osi/src/ |
D | alarm.cc | 156 static void update_stat(stat_t* stat, uint64_t delta_ms) { in update_stat() argument 157 if (stat->max_ms < delta_ms) stat->max_ms = delta_ms; in update_stat() 158 stat->total_ms += delta_ms; in update_stat() 159 stat->count++; in update_stat() 722 static void dump_stat(int fd, stat_t* stat, const char* description) { in dump_stat() argument 724 if (stat->count != 0) average_time_ms = stat->total_ms / stat->count; in dump_stat() 727 (unsigned long long)stat->total_ms, (unsigned long long)stat->max_ms, in dump_stat()
|
/system/extras/tests/storage/ |
D | opentest.c | 32 struct stat statbuf; in main() 49 if (stat(dir, &statbuf)) { in main()
|
/system/extras/tests/directiotest/ |
D | directiotest.c | 175 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/libhwbinder/vts/performance/ |
D | Benchmark_binder.cpp | 105 int stat, retval; in main() local 106 retval = wait(&stat); in main()
|