Searched defs:st (Results 1 - 25 of 54) sorted by relevance

123

/system/core/libnativebridge/tests/
H A DCodeCacheCreate_test.cpp29 struct stat st; local
30 ASSERT_EQ(-1, stat(kCodeCache, &st));
41 ASSERT_EQ(0, stat(kCodeCache, &st));
42 ASSERT_TRUE(S_ISDIR(st.st_mode));
H A DCodeCacheExists_test.cpp29 struct stat st; local
30 ASSERT_EQ(-1, stat(kCodeCache, &st));
44 ASSERT_EQ(0, stat(kCodeCache, &st));
45 ASSERT_TRUE(S_ISDIR(st.st_mode));
H A DCodeCacheStatFail_test.cpp33 struct stat st; local
34 ASSERT_EQ(-1, stat(kCodeCacheStatFail, &st));
/system/core/adb/sysdeps/
H A Dstat_test.cpp29 struct stat st; local
30 ASSERT_EQ(0, stat(td.path, &st));
31 ASSERT_FALSE(S_ISREG(st.st_mode));
32 ASSERT_TRUE(S_ISDIR(st.st_mode));
34 ASSERT_EQ(0, stat((std::string(td.path) + '/').c_str(), &st));
35 ASSERT_TRUE(S_ISDIR(st.st_mode));
38 ASSERT_EQ(0, stat((std::string(td.path) + '\\').c_str(), &st));
39 ASSERT_TRUE(S_ISDIR(st.st_mode));
43 ASSERT_EQ(-1, stat(nonexistent_path.c_str(), &st));
46 ASSERT_EQ(-1, stat((nonexistent_path + "/").c_str(), &st));
[all...]
/system/core/adb/sysdeps/win32/
H A Dstat.cpp55 struct adb_stat st; local
56 int result = wstat(path_wide.c_str(), &st);
58 if (!S_ISDIR(st.st_mode)) {
64 memcpy(s, &st, sizeof(st));
/system/extras/ioshark/
H A Ddump_ioshark_filenames.c38 struct stat st; local
45 if (stat("ioshark_filenames", &st) < 0) {
50 filename_cache_num_entries = st.st_size /
H A Dcompile_ioshark_subr.c40 struct ioshark_file_state st; local
47 st.fileno = db_node->fileno;
48 st.size = db_node->size;
49 st.global_filename_ix =
51 if (fwrite(&st, sizeof(st), 1, fp) != 1) {
116 struct stat st; local
119 if (stat("ioshark_filenames", &st) < 0) {
129 filename_cache_num_entries = st.st_size /
/system/core/libunwindstack/
H A Dunwind_info.cpp84 struct stat st; local
85 if (stat(argv[1], &st) == -1) {
89 if (!S_ISREG(st.st_mode)) {
93 if (S_ISDIR(st.st_mode)) {
/system/core/libcutils/
H A Dashmem-dev.c51 struct stat st; local
58 ret = TEMP_FAILURE_RETRY(fstat(fd, &st));
65 if (!S_ISCHR(st.st_mode) || !st.st_rdev) {
71 __ashmem_rdev = st.st_rdev;
90 struct stat st; local
92 if (TEMP_FAILURE_RETRY(fstat(fd, &st)) < 0) {
97 if (S_ISCHR(st.st_mode) && st.st_rdev) {
114 if (st
[all...]
/system/core/run-as/
H A Drun-as.cpp69 struct stat st; local
70 if (TEMP_FAILURE_RETRY(lstat(path, &st)) == -1) return false;
76 if (!S_ISDIR(st.st_mode)) return false;
79 if (st.st_uid != uid || st.st_gid != uid) return false;
82 if ((st.st_mode & (S_IROTH|S_IWOTH)) != 0) return false;
/system/extras/kexec_tools/
H A Dkexecload.c31 struct stat st; local
32 fstat(f, &st);
33 return st.st_size;
/system/extras/tests/timetest/
H A Drtc_test.cpp39 struct stat st; local
40 ret = TEMP_FAILURE_RETRY(stat(rtc, &st));
43 } else if (!(st.st_mode & (S_IWUSR|S_IWGRP|S_IWOTH))) {
/system/core/libutils/
H A DLooper.cpp88 void Looper::threadDestructor(void *st) { argument
89 Looper* const self = static_cast<Looper*>(st);
/system/bt/stack/hid/
H A Dhidh_api.cc269 tHID_STATUS st; local
276 st = hidh_conn_reg();
277 if (st != HID_SUCCESS) {
278 return st;
/system/bt/stack/srvc/
H A Dsrvc_battery.cc70 tGATT_STATUS st = GATT_NOT_FOUND; local
91 st = GATT_WRITE_NOT_PERMIT;
95 *p_status = st;
107 tGATT_STATUS st = GATT_NOT_FOUND; local
114 if (is_long) st = GATT_NOT_LONG;
132 st = GATT_ERR_UNLIKELY;
138 *p_status = st;
274 void Battery_Rsp(uint8_t app_id, tGATT_STATUS st, uint8_t event, argument
297 srvc_sr_rsp(p_inst->pending_clcb_idx, st, &rsp);
305 srvc_sr_rsp(p_inst->pending_clcb_idx, st,
[all...]
H A Dsrvc_dis.cc133 tGATT_STATUS st = GATT_NOT_FOUND; local
140 st = GATT_NOT_LONG;
143 st = GATT_SUCCESS;
164 st = GATT_INVALID_OFFSET;
190 *p_status = st;
401 tDIS_STATUS st = DIS_SUCCESS; local
411 st = DIS_ILLEGAL_PARAM;
422 st = DIS_SUCCESS;
429 return st;
H A Dsrvc_eng.cc425 void srvc_sr_rsp(uint8_t clcb_idx, tGATT_STATUS st, tGATTS_RSP* p_rsp) { argument
428 srvc_eng_cb.clcb[clcb_idx].trans_id, st, p_rsp);
/system/core/adb/
H A Dfile_sync_service.cpp110 struct stat st = {}; local
111 lstat(path, &st);
112 msg.stat_v1.mode = st.st_mode;
113 msg.stat_v1.size = st.st_size;
114 msg.stat_v1.time = st.st_mtime;
129 struct stat st = {}; local
130 int rc = stat_fn(path, &st);
134 msg.stat_v2.dev = st.st_dev;
135 msg.stat_v2.ino = st.st_ino;
136 msg.stat_v2.mode = st
161 struct stat st; local
381 struct stat st; local
[all...]
/system/core/base/
H A Dfile.cpp173 struct stat st; local
176 int result = stat(path.c_str(), &st);
177 bool file_type_removable = (result == 0 && S_ISREG(st.st_mode));
179 int result = lstat(path.c_str(), &st);
180 bool file_type_removable = (result == 0 && (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)));
/system/core/debuggerd/
H A Dcrash_dump.cpp75 struct stat st; local
77 return fstatat(pid_proc_fd, task_path.c_str(), &st, 0) == 0;
/system/core/debuggerd/tombstoned/
H A Dtombstoned.cpp88 struct stat st; local
89 if (stat(path.c_str(), &st) != 0) {
99 if (st.st_mtime < oldest_time) {
101 oldest_time = st.st_mtime;
/system/core/libbacktrace/
H A Dbacktrace_offline_test.cpp290 struct stat st; local
291 if (stat(testlib_path.c_str(), &st) == -1) {
367 struct stat st; local
368 ASSERT_EQ(0, stat(testlib_path.c_str(), &st)) << "can't find testlib " << testlib_path;
/system/core/toolbox/upstream-netbsd/bin/dd/
H A Ddd.c79 STAT st; /* statistics */ variable
280 (void)gettimeofday(&st.start, NULL); /* Statistics timestamp. */
339 if (cpy_cnt && (st.in_full + st.in_part) >= cpy_cnt)
392 ++st.in_full;
397 ++st.in_full;
406 ++st.in_part;
423 ++st.swab;
542 st.bytes += pending;
543 st
[all...]
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
H A Dutil.c291 size_t st = 0; local
296 while (st <= l->len) {
297 pmatch.rm_so = st;
311 st = pmatch.rm_eo;
316 st = pmatch.rm_eo;
357 if (st == (size_t)pmatch.rm_so)
/system/extras/libfec/
H A Dfec_open.cpp367 struct stat st; local
369 if (fstat(f->fd, &st) == -1) {
374 if (S_ISBLK(st.st_mode)) {
381 } else if (S_ISREG(st.st_mode)) {
383 f->size = st.st_size;
385 error("unsupported type %d", (int)st.st_mode);

Completed in 1454 milliseconds

123