Home
last modified time | relevance | path

Searched refs:statbuf (Results 1 - 11 of 11) sorted by relevance

/base/sensors/miscdevice/test/unittest/vibrator/native/
H A Dvibrator_agent_test.cpp264 struct stat64 statbuf = { 0 }; in HWTEST_F() local
265 if (fstat64(fileDescriptor.fd, &statbuf) == 0) { in HWTEST_F()
266 int32_t ret = PlayVibratorCustom(fileDescriptor.fd, 0, statbuf.st_size); in HWTEST_F()
282 struct stat64 statbuf = { 0 }; in HWTEST_F() local
283 if (fstat64(fileDescriptor.fd, &statbuf) == 0) { in HWTEST_F()
284 int32_t ret = PlayVibratorCustom(fileDescriptor.fd, 0, statbuf.st_size); in HWTEST_F()
304 struct stat64 statbuf = { 0 }; in HWTEST_F() local
305 if (fstat64(fileDescriptor.fd, &statbuf) == 0) { in HWTEST_F()
306 ret = PlayVibratorCustom(fileDescriptor.fd, 0, statbuf.st_size); in HWTEST_F()
326 struct stat64 statbuf in HWTEST_F() local
348 struct stat64 statbuf = { 0 }; HWTEST_F() local
366 struct stat64 statbuf = { 0 }; HWTEST_F() local
388 struct stat64 statbuf = { 0 }; HWTEST_F() local
414 struct stat64 statbuf = { 0 }; HWTEST_F() local
436 struct stat64 statbuf = { 0 }; HWTEST_F() local
454 struct stat64 statbuf = { 0 }; HWTEST_F() local
476 struct stat64 statbuf = { 0 }; HWTEST_F() local
498 struct stat64 statbuf = { 0 }; HWTEST_F() local
516 struct stat64 statbuf = { 0 }; HWTEST_F() local
532 struct stat64 statbuf = { 0 }; HWTEST_F() local
548 struct stat64 statbuf = { 0 }; HWTEST_F() local
564 struct stat64 statbuf = { 0 }; HWTEST_F() local
580 struct stat64 statbuf = { 0 }; HWTEST_F() local
596 struct stat64 statbuf = { 0 }; HWTEST_F() local
612 struct stat64 statbuf = { 0 }; HWTEST_F() local
628 struct stat64 statbuf = { 0 }; HWTEST_F() local
645 struct stat64 statbuf = { 0 }; HWTEST_F() local
661 struct stat64 statbuf = { 0 }; HWTEST_F() local
679 struct stat64 statbuf = { 0 }; HWTEST_F() local
719 struct stat64 statbuf = { 0 }; HWTEST_F() local
743 struct stat64 statbuf = { 0 }; HWTEST_F() local
774 struct stat64 statbuf = { 0 }; HWTEST_F() local
965 struct stat64 statbuf = { 0 }; HWTEST_F() local
990 struct stat64 statbuf = { 0 }; HWTEST_F() local
1015 struct stat64 statbuf = { 0 }; HWTEST_F() local
1040 struct stat64 statbuf = { 0 }; HWTEST_F() local
1065 struct stat64 statbuf = { 0 }; HWTEST_F() local
1090 struct stat64 statbuf = { 0 }; HWTEST_F() local
1115 struct stat64 statbuf = { 0 }; HWTEST_F() local
1140 struct stat64 statbuf = { 0 }; HWTEST_F() local
1165 struct stat64 statbuf = { 0 }; HWTEST_F() local
1194 struct stat64 statbuf = { 0 }; HWTEST_F() local
1297 struct stat64 statbuf = { 0 }; HWTEST_F() local
[all...]
/base/sensors/miscdevice/test/unittest/vibrator/capi/
H A Dvibrator_test.cpp158 struct stat64 statbuf = { 0 }; in HWTEST_F() local
159 if (fstat64(fileDescriptor.fd, &statbuf) == 0) { in HWTEST_F()
163 .length = statbuf.st_size in HWTEST_F()
181 struct stat64 statbuf = { 0 }; in HWTEST_F() local
182 if (fstat64(fileDescriptor.fd, &statbuf) == 0) { in HWTEST_F()
186 .length = statbuf.st_size in HWTEST_F()
201 struct stat64 statbuf = { 0 }; in HWTEST_F() local
202 if (fstat64(fileDescriptor.fd, &statbuf) == 0) { in HWTEST_F()
206 .length = statbuf.st_size in HWTEST_F()
221 struct stat64 statbuf in HWTEST_F() local
241 struct stat64 statbuf = { 0 }; HWTEST_F() local
261 struct stat64 statbuf = { 0 }; HWTEST_F() local
281 struct stat64 statbuf = { 0 }; HWTEST_F() local
301 struct stat64 statbuf = { 0 }; HWTEST_F() local
321 struct stat64 statbuf = { 0 }; HWTEST_F() local
344 struct stat64 statbuf = { 0 }; HWTEST_F() local
367 struct stat64 statbuf = { 0 }; HWTEST_F() local
389 struct stat64 statbuf = { 0 }; HWTEST_F() local
412 struct stat64 statbuf = { 0 }; HWTEST_F() local
[all...]
/base/msdp/device_status/intention/services/device_manager/src/
H A Denumerator.cpp56 struct stat statbuf; in ScanAndAddDevices() local
58 if (stat(devPath.c_str(), &statbuf) != 0) { in ScanAndAddDevices()
61 if (!S_ISCHR(statbuf.st_mode)) { in ScanAndAddDevices()
H A Ddevice_manager.cpp178 struct stat statbuf; in AddDevice() local
180 if (stat(devPath.c_str(), &statbuf) != 0) { in AddDevice()
184 if (!S_ISCHR(statbuf.st_mode)) { in AddDevice()
/base/sensors/miscdevice/utils/common/src/
H A Dfile_utils.cpp80 struct stat statbuf = { 0 }; in GetFileSize() local
81 if (stat(filePath.c_str(), &statbuf) != 0) { in GetFileSize()
85 return statbuf.st_size; in GetFileSize()
94 struct stat64 statbuf = { 0 }; in GetFileSize() local
95 if (fstat64(fd, &statbuf) != 0) { in GetFileSize()
99 return statbuf.st_size; in GetFileSize()
/base/sensors/sensor/vibration_convert/core/native/src/
H A Daudio_parsing.cpp62 struct stat64 statbuf = { 0 }; in RawFileDescriptorCheck() local
63 if (fstat64(rawFd_.fd, &statbuf) != 0) { in RawFileDescriptorCheck()
67 int64_t fileSize = static_cast<int64_t>(statbuf.st_size); in RawFileDescriptorCheck()
/base/startup/appspawn/service/hnp/base/
H A Dhnp_file.c139 struct stat statbuf; in HnpDeleteAllFileInPath()
153 if (lstat(filePath, &statbuf) < 0) { in HnpDeleteAllFileInPath()
158 if (S_ISDIR(statbuf.st_mode)) { in HnpDeleteAllFileInPath()
/base/tee/tee_client/services/authentication/
H A Dtcu_authentication.c242 struct stat statbuf; in IsFileExist() local
247 if (stat(name, &statbuf) != 0) { in IsFileExist()
/base/sensors/sensor/vibration_convert/interfaces/js/src/
H A Dvibrator_convert_napi_utils.cpp58 struct stat64 statbuf = { 0 }; in GetFileSize() local
59 if (fstat64(fd, &statbuf) != 0) { in GetFileSize()
63 return static_cast<int64_t>(statbuf.st_size); in GetFileSize()
/base/msdp/device_status/tools/vdev/src/
H A Dvirtual_device_builder.cpp438 struct stat statbuf;
443 if (stat(devPath.c_str(), &statbuf) != 0) {
446 if (!S_ISCHR(statbuf.st_mode)) {
/base/tee/tee_client/services/teecd/src/
H A Dfs_work_agent.c607 struct stat statbuf; in IsFileExist() local
612 if (stat(name, &statbuf) != 0) { in IsFileExist()

Completed in 8 milliseconds