Searched refs:stat (Results 1 - 25 of 283) sorted by relevance

1234567891011>>

/system/core/adb/sysdeps/
H A Dstat_test.cpp25 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 Dstat.h19 #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 DCodeCacheCreate_test.cpp20 #include <sys/stat.h>
29 struct stat st;
30 ASSERT_EQ(-1, stat(kCodeCache, &st));
41 ASSERT_EQ(0, stat(kCodeCache, &st));
H A DCodeCacheExists_test.cpp20 #include <sys/stat.h>
29 struct stat st;
30 ASSERT_EQ(-1, stat(kCodeCache, &st));
44 ASSERT_EQ(0, stat(kCodeCache, &st));
H A DCodeCacheStatFail_test.cpp20 #include <sys/stat.h>
33 struct stat st;
34 ASSERT_EQ(-1, stat(kCodeCacheStatFail, &st));
H A DPreInitializeNativeBridgeFail1_test.cpp24 #include <sys/stat.h>
H A DPreInitializeNativeBridgeFail2_test.cpp22 #include <sys/stat.h>
/system/update_engine/payload_generator/
H A Dfilesystem_interface.h26 #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 Dtest_subprocess.cc23 #include <sys/stat.h>
48 struct stat buf;
/system/core/libunwindstack/tools/
H A Dunwind_symbols.cpp22 #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 Ddump_ioshark_filenames.c23 #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 Dopentest.c18 #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 Dbootchart.cpp24 #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 Ddiskconfig.c28 #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 DBenchmark_binder.cpp102 int stat; local
105 int stat, retval; local
106 retval = wait(&stat);
/system/bt/osi/src/
H A Dosi.cc26 #include <sys/stat.h>
/system/extras/tests/cpueater/
H A Dcpueater.c25 #include <sys/stat.h>
/system/core/libcutils/
H A Dandroid_get_control_file.cpp35 #include <sys/stat.h>
80 struct stat s;
H A Dashmem-host.c29 #include <sys/stat.h>
75 struct stat buf;
/system/core/storaged/include/
H A Dstoraged_uid_monitor.h98 void init(charger_stat_t stat);
105 void set_charger_state(charger_stat_t stat);
/system/tpm/attestation/server/
H A Dattestationd-seccomp-amd64.policy57 stat: 1
/system/tpm/tpm_manager/server/
H A Dtpm_managerd-seccomp-amd64.policy59 stat: 1
/system/tpm/trunks/
H A Dtrunksd-seccomp-amd64.policy43 stat: 1
H A Dtrunksd-seccomp-x86_64.policy43 stat: 1
/system/core/bootstat/
H A Dboot_event_record_store.cpp21 #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).

Completed in 519 milliseconds

1234567891011>>