/system/core/adb/sysdeps/ |
H A D | stat_test.cpp | 25 TEST(sysdeps, stat) { 29 struct stat st; 30 ASSERT_EQ(0, stat(td.path, &st)); 34 ASSERT_EQ(0, stat((std::string(td.path) + '/').c_str(), &st)); 38 ASSERT_EQ(0, stat((std::string(td.path) + '\\').c_str(), &st)); 43 ASSERT_EQ(-1, stat(nonexistent_path.c_str(), &st)); 46 ASSERT_EQ(-1, stat((nonexistent_path + "/").c_str(), &st)); 50 ASSERT_EQ(-1, stat((nonexistent_path + "\\").c_str(), &st)); 54 ASSERT_EQ(0, stat(tf.path, &st)); 58 ASSERT_EQ(-1, stat((st [all...] |
H A D | stat.h | 19 #include <sys/stat.h> 24 // stat is broken on Win32: stat on a path with a trailing slash or backslash will always fail with 28 // We later define a macro mapping 'stat' to 'adb_stat'. This causes: 29 // struct stat s; 30 // stat(filename, &s); 35 // 'struct stat'. Note that this definition of 'struct adb_stat' uses the 36 // *current* macro definition of stat, so it may actually be inheriting from 38 struct adb_stat : public stat {}; 40 #undef stat macro 41 #define stat macro [all...] |
/system/core/libnativebridge/tests/ |
H A D | CodeCacheCreate_test.cpp | 20 #include <sys/stat.h> 29 struct stat st; 30 ASSERT_EQ(-1, stat(kCodeCache, &st)); 41 ASSERT_EQ(0, stat(kCodeCache, &st));
|
H A D | CodeCacheExists_test.cpp | 20 #include <sys/stat.h> 29 struct stat st; 30 ASSERT_EQ(-1, stat(kCodeCache, &st)); 44 ASSERT_EQ(0, stat(kCodeCache, &st));
|
H A D | CodeCacheStatFail_test.cpp | 20 #include <sys/stat.h> 33 struct stat st; 34 ASSERT_EQ(-1, stat(kCodeCacheStatFail, &st));
|
H A D | PreInitializeNativeBridgeFail1_test.cpp | 24 #include <sys/stat.h>
|
H A D | PreInitializeNativeBridgeFail2_test.cpp | 22 #include <sys/stat.h>
|
/system/update_engine/payload_generator/ |
H A D | filesystem_interface.h | 26 #include <sys/stat.h> 51 // The stat struct for the file. This is invalid (inode 0) for some 53 struct stat file_stat;
|
/system/update_engine/ |
H A D | test_subprocess.cc | 23 #include <sys/stat.h> 48 struct stat buf;
|
/system/core/libunwindstack/tools/ |
H A D | unwind_symbols.cpp | 22 #include <sys/stat.h> 36 struct stat st; 37 if (stat(argv[1], &st) == -1) { 38 printf("Cannot stat %s: %s\n", argv[1], strerror(errno));
|
/system/extras/ioshark/ |
H A D | dump_ioshark_filenames.c | 23 #include <sys/stat.h> 38 struct stat st; 45 if (stat("ioshark_filenames", &st) < 0) { 46 fprintf(stderr, "%s Can't stat ioshark_filenames file\n",
|
/system/extras/tests/storage/ |
H A D | opentest.c | 18 #include <sys/stat.h> 32 struct stat statbuf; 49 if (stat(dir, &statbuf)) { 50 fprintf(stderr, "Cannot stat %s\n", dir);
|
/system/core/init/ |
H A D | bootchart.cpp | 24 #include <sys/stat.h> 114 // /proc/<pid>/stat only has truncated task names, so get the full 120 // Read process stat line. 121 std::string stat; local 122 if (android::base::ReadFileToString(StringPrintf("/proc/%d/stat", pid), &stat)) { 125 size_t open = stat.find('('); 126 size_t close = stat.find_last_of(')'); 128 stat.replace(open + 1, close - open - 1, full_name); 131 fputs(stat [all...] |
/system/core/libdiskconfig/ |
H A D | diskconfig.c | 28 #include <sys/stat.h> 240 struct stat stat; local 245 if (fstat(fd, &stat)) { 246 ALOGE("Cannot stat, errno=%d.", errno); 250 if (S_ISBLK(stat.st_mode) && ((rv = ioctl(fd, BLKRRPART, NULL)) < 0)) { 277 struct stat stat; local 287 if (fstat(fd, &stat)) { 288 ALOGE("Cannot stat fil [all...] |
/system/libhwbinder/vts/performance/ |
H A D | Benchmark_binder.cpp | 102 int stat; local 105 int stat, retval; local 106 retval = wait(&stat);
|
/system/bt/osi/src/ |
H A D | osi.cc | 26 #include <sys/stat.h>
|
/system/extras/tests/cpueater/ |
H A D | cpueater.c | 25 #include <sys/stat.h>
|
/system/core/libcutils/ |
H A D | android_get_control_file.cpp | 35 #include <sys/stat.h> 80 struct stat s;
|
H A D | ashmem-host.c | 29 #include <sys/stat.h> 75 struct stat buf;
|
/system/core/storaged/include/ |
H A D | storaged_uid_monitor.h | 98 void init(charger_stat_t stat); 105 void set_charger_state(charger_stat_t stat);
|
/system/tpm/attestation/server/ |
H A D | attestationd-seccomp-amd64.policy | 57 stat: 1
|
/system/tpm/tpm_manager/server/ |
H A D | tpm_managerd-seccomp-amd64.policy | 59 stat: 1
|
/system/tpm/trunks/ |
H A D | trunksd-seccomp-amd64.policy | 43 stat: 1
|
H A D | trunksd-seccomp-x86_64.policy | 43 stat: 1
|
/system/core/bootstat/ |
H A D | boot_event_record_store.cpp | 21 #include <sys/stat.h> 43 struct stat file_stat; 44 if (stat(path.c_str(), &file_stat) == -1) { 78 // Fill out the stat structure for |record_path| in order to get the atime to 80 struct stat file_stat; 81 if (stat(record_path.c_str(), &file_stat) == -1) { 88 // preserving the |actime| (as read by stat).
|