Home
last modified time | relevance | path

Searched refs:st (Results 1 – 25 of 95) sorted by relevance

1234

/system/chre/external/kiss_fft/
Dkiss_fftr.c38 kiss_fftr_cfg st = NULL; in kiss_fftr_alloc() local
53 st = (kiss_fftr_cfg) KISS_FFT_MALLOC (memneeded); in kiss_fftr_alloc()
56 st = (kiss_fftr_cfg) mem; in kiss_fftr_alloc()
59 if (!st) in kiss_fftr_alloc()
62 st->substate = (kiss_fft_cfg) (st + 1); /*just beyond kiss_fftr_state struct */ in kiss_fftr_alloc()
63 st->tmpbuf = (kiss_fft_cpx *) (((char *) st->substate) + subsize); in kiss_fftr_alloc()
64 st->super_twiddles = st->tmpbuf + nfft; in kiss_fftr_alloc()
65 kiss_fft_alloc(nfft, inverse_fft, st->substate, &subsize); in kiss_fftr_alloc()
72 kf_cexp (st->super_twiddles+i,phase); in kiss_fftr_alloc()
74 return st; in kiss_fftr_alloc()
[all …]
Dkiss_fft.c32 const kiss_fft_cfg st, in kf_bfly2() argument
37 kiss_fft_cpx * tw1 = st->twiddles; in kf_bfly2()
55 const kiss_fft_cfg st, in kf_bfly4() argument
66 tw3 = tw2 = tw1 = st->twiddles; in kf_bfly4()
85 if(st->inverse) { in kf_bfly4()
103 const kiss_fft_cfg st, in kf_bfly3() argument
112 epi3 = st->twiddles[fstride*m]; in kf_bfly3()
114 tw1=tw2=st->twiddles; in kf_bfly3()
147 const kiss_fft_cfg st, in kf_bfly5() argument
154 kiss_fft_cpx * twiddles = st->twiddles; in kf_bfly5()
[all …]
/system/chre/apps/nearby/third_party/nanopb/
Dpb.h401 #define pb_membersize(st, m) (sizeof((st *)0)->m) argument
403 #define pb_arraysize(st, m) (pb_membersize(st, m) / pb_membersize(st, m[0])) argument
405 #define pb_delta(st, m1, m2) ((int)offsetof(st, m1) - (int)offsetof(st, m2)) argument
412 #define PB_DATAOFFSET_FIRST(st, m1, m2) (offsetof(st, m1)) argument
414 #define PB_DATAOFFSET_OTHER(st, m1, m2) \ argument
415 (offsetof(st, m1) - offsetof(st, m2) - pb_membersize(st, m2))
417 #define PB_DATAOFFSET_UNION(st, m1, m2) (PB_SIZE_MAX) argument
420 #define PB_DATAOFFSET_CHOOSE(st, m1, m2) \ argument
421 (int)(offsetof(st, m1) == offsetof(st, m2) \
422 ? PB_DATAOFFSET_FIRST(st, m1, m2) \
[all …]
/system/server_configurable_flags/aconfigd/
Daconfigd_util.cpp77 struct stat st; in CopyFile() local
78 if (fstat(src_fd.get(), &st) == -1) { in CopyFile()
81 auto len = st.st_size; in CopyFile()
96 struct stat st; in GetFileTimeStamp() local
97 int result = stat(file.c_str(), &st); in GetFileTimeStamp()
101 uint64_t timestamp = st.st_mtim.tv_sec*1000000000 + st.st_mtim.tv_nsec; in GetFileTimeStamp()
106 struct stat st; in FileExists() local
107 return stat(file.c_str(), &st) == 0 ? true : false; in FileExists()
111 struct stat st; in FileNonZeroSize() local
112 return stat(file.c_str(), &st) == 0 ? st.st_size > 0 : false; in FileNonZeroSize()
/system/core/libcutils/
Dashmem-dev.cpp179 struct stat st; in __ashmem_open_locked() local
180 int ret = TEMP_FAILURE_RETRY(fstat(fd, &st)); in __ashmem_open_locked()
187 if (!S_ISCHR(st.st_mode) || !st.st_rdev) { in __ashmem_open_locked()
193 __ashmem_rdev = st.st_rdev; in __ashmem_open_locked()
212 struct stat st; in __ashmem_is_ashmem() local
214 if (fstat(fd, &st) < 0) { in __ashmem_is_ashmem()
219 if (S_ISCHR(st.st_mode) && st.st_rdev) { in __ashmem_is_ashmem()
236 if (st.st_rdev == rdev) { in __ashmem_is_ashmem()
244 fd, st.st_mode, major(st.st_rdev), minor(st.st_rdev), in __ashmem_is_ashmem()
249 fd, st.st_mode, major(st.st_rdev), minor(st.st_rdev), in __ashmem_is_ashmem()
/system/core/run-as/
Drun-as.cpp74 struct stat st; in check_directory() local
75 if (TEMP_FAILURE_RETRY(lstat(path, &st)) == -1) { in check_directory()
80 if (!S_ISDIR(st.st_mode)) { in check_directory()
81 error(1, 0, "%s not a directory: %o", path, st.st_mode); in check_directory()
85 if (st.st_uid != uid || st.st_gid != uid) { in check_directory()
86 error(1, 0, "%s has wrong owner: %d/%d, not %d", path, st.st_uid, st.st_gid, uid); in check_directory()
90 if ((st.st_mode & (S_IROTH | S_IWOTH)) != 0) { in check_directory()
91 error(1, 0, "%s readable or writable by others: %o", path, st.st_mode); in check_directory()
/system/extras/ioshark/
Dcompile_ioshark_subr.c41 struct ioshark_file_state st; in files_db_write_objects() local
48 st.fileno = db_node->fileno; in files_db_write_objects()
49 st.size = db_node->size; in files_db_write_objects()
50 st.global_filename_ix = in files_db_write_objects()
52 if (ioshark_write_file_state(fp, &st) != 1) { in files_db_write_objects()
117 struct stat st; in init_filename_cache() local
120 if (stat("ioshark_filenames", &st) < 0) { in init_filename_cache()
130 filename_cache_num_entries = st.st_size / in init_filename_cache()
Ddump_ioshark_filenames.c38 struct stat st; in main() local
45 if (stat("ioshark_filenames", &st) < 0) { in main()
50 filename_cache_num_entries = st.st_size / in main()
/system/core/fs_mgr/libfiemap/
Dutility.cpp100 struct stat st; in F2fsPinBeforeAllocate() local
101 if (fstat(file_fd, &st) < 0) { in F2fsPinBeforeAllocate()
106 if (!BlockDeviceToName(major(st.st_dev), minor(st.st_dev), &bdev)) { in F2fsPinBeforeAllocate()
107 LOG(ERROR) << "Failed to get block device name for " << major(st.st_dev) << ":" in F2fsPinBeforeAllocate()
108 << minor(st.st_dev); in F2fsPinBeforeAllocate()
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/
DITestService.cpp2912 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
2913 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
2970 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
2971 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
3001 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
3002 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
3032 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
3033 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
3063 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
3064 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
[all …]
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-cpp-source/gen/android/aidl/tests/
DITestService.cpp2912 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
2913 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
2970 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
2971 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
3001 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
3002 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
3032 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
3033 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
3063 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
3064 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
[all …]
/system/tools/aidl/tests/golden_output/frozen/aidl-cpp-java-test-interface-cpp-source/gen/android/aidl/tests/
DICppJavaTests.cpp390 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
391 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
422 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
423 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
457 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
458 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
493 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
494 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
529 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
530 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
[all …]
/system/tools/aidl/tests/golden_output/aidl-cpp-java-test-interface-cpp-source/gen/android/aidl/tests/
DICppJavaTests.cpp390 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
391 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
422 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
423 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
457 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
458 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
493 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
494 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
529 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
530 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
[all …]
/system/apex/apexd/
Dapexd_verity.cpp164 if (auto st = CreateDirIfNeeded(Dirname(hashtree_file), 0700); !st.ok()) { in PrepareHashTree() local
165 return st.error(); in PrepareHashTree()
189 if (auto st = GenerateHashTree(apex, verity_data, hashtree_file); in PrepareHashTree() local
190 !st.ok()) { in PrepareHashTree()
191 return st.error(); in PrepareHashTree()
/system/timezone/input_tools/android/zone_compactor/main/java/
DZoneCompactor.java76 StringTokenizer st = new StringTokenizer(s); in ZoneCompactor() local
77 String lineType = st.nextToken(); in ZoneCompactor()
79 String to = st.nextToken(); in ZoneCompactor()
80 String from = st.nextToken(); in ZoneCompactor()
83 String zoneId = st.nextToken(); in ZoneCompactor()
/system/unwinding/libunwindstack/tools/
Dunwind_symbols.cpp41 struct stat st; in main() local
42 if (stat(argv[1], &st) == -1) { in main()
46 if (!S_ISREG(st.st_mode)) { in main()
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/nested/
DINestedService.cpp139 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
140 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
174 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
175 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
341 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
342 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-cpp-source/gen/android/aidl/tests/nested/
DINestedService.cpp139 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
140 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
174 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
175 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
341 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
342 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
/system/extras/kexec_tools/
Dkexecload.c30 struct stat st; in get_file_size() local
31 fstat(f, &st); in get_file_size()
32 return st.st_size; in get_file_size()
/system/tools/aidl/tests/golden_output/aidl-test-versioned-interface-V1-cpp-source/gen/android/aidl/versioned/tests/
DIFooInterface.cpp276 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
277 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
318 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
319 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
357 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
358 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
/system/tools/aidl/tests/golden_output/frozen/aidl-test-versioned-interface-V1-cpp-source/gen/android/aidl/versioned/tests/
DIFooInterface.cpp276 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
277 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
318 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
319 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
357 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
358 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
/system/core/trusty/apploader/
Dapploader.cpp96 struct stat64 st; in read_file() local
104 rc = fstat64(file_fd, &st); in read_file()
110 if (st.st_size == 0) { in read_file()
115 file_size = st.st_size; in read_file()
/system/update_engine/payload_generator/
Dboot_img_filesystem.cc49 struct stat st {}; in CreateFromFile() struct
50 if (fstat(fd.get(), &st) < 0) { in CreateFromFile()
53 if (static_cast<size_t>(st.st_size) < sizeof(boot_img_hdr_v0)) { in CreateFromFile()
55 << " is too small to be a boot image. file size: " << st.st_size; in CreateFromFile()
/system/tools/aidl/tests/golden_output/aidl-test-versioned-interface-V3-cpp-source/gen/android/aidl/versioned/tests/
DIFooInterface.cpp306 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
307 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
348 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
349 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
387 if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) { in onTransact() local
388 _aidl_ret_status = st.writeToParcel(_aidl_reply); in onTransact()
/system/extras/simpleperf/
Dutils.cpp212 struct stat st; in IsDir() local
213 if (stat(dirpath.c_str(), &st) == 0) { in IsDir()
214 if (S_ISDIR(st.st_mode)) { in IsDir()
222 struct stat st; in IsRegularFile() local
223 if (stat(filename.c_str(), &st) == 0) { in IsRegularFile()
224 if (S_ISREG(st.st_mode)) { in IsRegularFile()
232 struct stat st; in GetFileSize() local
233 if (stat(filename.c_str(), &st) == 0) { in GetFileSize()
234 return static_cast<uint64_t>(st.st_size); in GetFileSize()

1234