/test/xts/acts/storage/storagefileiov9jstest/entry/src/ohosTest/js/test/members/ |
H A D | stat.test.js | 33 * Enter the path or fd parameter to get the file stat. 44 let stat = fileIO.statSync(fpath); 45 expect(stat !== null).assertTrue(); 104 * Enter the path or fd parameter to get stat.ino of the file. 115 let stat = fileIO.statSync(fpath); 116 expect(isBigInt(stat.ino)).assertTrue(); 133 * Enter the path or fd parameter to get stat.mode of the file. 144 let stat = fileIO.statSync(fpath); 145 expect(isIntNum(stat.mode)).assertTrue(); 162 * Enter the path or fd parameter to get stat [all...] |
/test/xts/acts/communication_lite/wifiservice_hal/src/ |
H A D | wifiservice_func_test.c | 123 printf("WifiConnectionChanged:info is null, stat is %d.\n", state); in OnWifiConnectionChangedHandler() 215 // check wifi stat in WifiServiceFuncTestSuiteSetUp() 229 // check AP stat in WifiServiceFuncTestSuiteSetUp() 296 int stat = IsWifiActive(); variable 297 TEST_ASSERT_EQUAL_INT(WIFI_STATE_NOT_AVALIABLE, stat); 301 stat = IsWifiActive(); 302 TEST_ASSERT_EQUAL_INT(WIFI_STATE_AVAILABLE, stat); 306 stat = IsWifiActive(); 307 TEST_ASSERT_EQUAL_INT(WIFI_STATE_AVAILABLE, stat); 311 stat 330 int stat = IsWifiActive(); global() variable 511 int stat = IsHotspotActive(); global() variable 592 int stat = IsWifiActive(); global() variable 646 int stat = IsWifiActive(); global() variable 674 int stat = IsWifiActive(); global() variable 719 int stat = IsWifiActive(); global() variable [all...] |
/test/xts/hats/kernel/syscalls/fileio/fstat/ |
H A D | FstatApiTest.cpp | 23 #include <sys/stat.h> 64 struct stat stat = { 0 }; in HWTEST_F() local 68 int ret = fstat(fd, &stat); in HWTEST_F() 85 struct stat stat = { 0 }; in HWTEST_F() local 87 int ret = fstat(-1, &stat); in HWTEST_F()
|
/test/xts/hats/kernel/syscalls/fileio/fchownat/ |
H A D | FchownatApiTest.cpp | 25 #include <sys/stat.h> 72 struct stat stat1; in HWTEST_F() 73 struct stat stat2; in HWTEST_F() 108 struct stat stat1; in HWTEST_F() 109 struct stat stat2; in HWTEST_F() 164 struct stat stat1; in HWTEST_F() 165 struct stat stat2; in HWTEST_F() 207 struct stat stat1; in HWTEST_F() 208 struct stat stat2; in HWTEST_F() 250 struct stat stat in HWTEST_F() [all...] |
/test/xts/acts/multimedia/avsource/entry/src/main/cpp/ |
H A D | mediaavsourcendk.cpp | 24 #include <sys/stat.h>
53 struct stat fileStatus {};
in AVSourceCreateWithFD() 55 if (stat(fileName, &fileStatus) == ZEROVAL) {
in AVSourceCreateWithFD() 82 struct stat fileStatus {};
in AVSourceDestroy() 84 if (stat(fileName, &fileStatus) == ZEROVAL) {
in AVSourceDestroy() 110 struct stat fileStatus {};
in AVSourceGetSourceFormat() 112 if (stat(fileName, &fileStatus) == ZEROVAL) {
in AVSourceGetSourceFormat() 141 struct stat fileStatus {};
in AVSourceGetTrackFormat() 143 if (stat(fileName, &fileStatus) == ZEROVAL) {
in AVSourceGetTrackFormat()
|
/test/xts/acts/ |
H A D | get_dependency.py | 21 import stat namespace 112 file_descriptor = os.open(file_name, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP) 119 file_descriptor = os.open(file_name, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP)
|
/test/xts/hats/kernel/syscalls/fileio/utimensat/ |
H A D | UtimensatApiTest.cpp | 27 #include <sys/stat.h> 74 struct stat fileStat1; in HWTEST_F() 75 struct stat fileStat2; in HWTEST_F() 88 ret = stat(UTIMENSAT_TEST_FILE, &fileStat1); in HWTEST_F() 101 ret = stat(UTIMENSAT_TEST_FILE, &fileStat2); in HWTEST_F() 123 struct stat fileStat1; in HWTEST_F() 136 ret = stat(UTIMENSAT_TEST_FILE, &fileStat1); in HWTEST_F()
|
/test/xts/hats/kernel/syscalls/fileio/ftruncate/ |
H A D | FtruncateApiTest.cpp | 23 #include <sys/stat.h> 66 struct stat stat; in HWTEST_F() local 73 ret = fstat(fd, &stat); in HWTEST_F() 77 EXPECT_EQ(stat.st_size, len); in HWTEST_F()
|
/test/xts/acts/kernel_lite/fs_posix/src/ |
H A D | FsStatTest.cpp | 20 #include <sys/stat.h>
57 * @tc.name basic function test : Run the stat function to test limt.
65 struct stat buf;
in HWTEST_F() 77 EXPECT_NE(stat(filePath, &buf), -1) << "> fstat errno = " << errno;
in HWTEST_F() 100 struct stat buf;
in HWTEST_F() 135 struct stat buf;
in HWTEST_F() 239 struct stat buf;
in HWTEST_F() 248 EXPECT_NE(stat(fileName, &buf), -1) << "> fstat errno = " << errno;
in HWTEST_F()
|
H A D | FsUnistdTest.cpp | 19 #include <sys/stat.h> 185 struct stat statbuf; in HWTEST_F() 196 EXPECT_NE(stat(FILE0, &statbuf), -1) << "> fstat errno = " << errno; in HWTEST_F() 257 struct stat statbuf; in HWTEST_F() 267 EXPECT_NE(stat(FILE0, &statbuf), -1) << "> fstat errno = " << errno; in HWTEST_F()
|
/test/xts/hats/kernel/syscalls/fileio/openat/ |
H A D | OpenatApiTest.cpp | 23 #include <sys/stat.h> 232 struct stat buf; in HWTEST_F() 237 stat(TEST_FILE, &buf); in HWTEST_F() 241 EXPECT_TRUE(stat(TEST_FILE, &buf) == 0); in HWTEST_F() 260 struct stat buf; in HWTEST_F() 267 stat(TEST_FILE, &buf); in HWTEST_F() 274 stat(TEST_FILE, &buf); in HWTEST_F() 322 struct stat bufFirst; in HWTEST_F() 323 struct stat bufSecond; in HWTEST_F() 329 stat(TEST_FIL in HWTEST_F() [all...] |
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | mntentndk1.cpp | 23 #include <sys/stat.h>
35 struct stat statbuff;
in GetMnTent() 54 ret = stat(TEMP_FILE, &statbuff);
in GetMnTent() 86 struct stat statbuff;
in GetMnTentR() 105 ret = stat(TEMP_FILE, &statbuff);
in GetMnTentR()
|
H A D | statndk.cpp | 27 #include <sys/stat.h>
71 struct stat sb = {PARAM_0};
in Stat() 73 intValue = stat(PATH, &sb);
in Stat() 75 intValue = stat(nullptr, &sb);
in Stat() 213 struct stat sb = {PARAM_0};
in Fstat() 231 struct stat sb = {PARAM_0};
in Fstat64() 249 struct stat st = {PARAM_0};
in Fstatat() 267 struct stat st = {PARAM_0};
in Fstatat64() 337 struct stat newFifo = {PARAM_0};
in MkNodAt() 340 ret = stat(pat in MkNodAt() [all...] |
H A D | mmanndk1.cpp | 23 #include <sys/stat.h>
35 struct stat statbuff;
in Mmap() 53 ret = stat(g_tempFile, &statbuff);
in Mmap()
|
H A D | utimendk.cpp | 42 struct stat statinfo;
in Utime() 53 stat(strTemp, &statinfo);
in Utime() 57 stat(strTemp, &statinfo);
in Utime()
|
/test/xts/acts/commonlibrary/thirdparty/musl32/entry/src/main/cpp/ |
H A D | fnmatchndk32.cpp | 32 #include <sys/stat.h>
122 extern "C" int __fstat_time64(int, struct stat *);
127 struct stat stat {};
in FStat_time64() struct 128 returnParam = __fstat_time64(fileDescribe, &stat);
in FStat_time64() 135 extern "C" int __lstat_time64(const char *__restrict, struct stat *__restrict);
140 struct stat stat {};
in LStat_time64() struct 141 returnParam = __lstat_time64(test, &stat);
in LStat_time64() 147 extern "C" int __stat_time64(const char *__restrict, struct stat *__restric 152 struct stat stat {}; Stat_time64() struct [all...] |
/test/testfwk/developer_test/examples/detector/src/ |
H A D | detector.cpp | 21 #include <sys/stat.h>
57 struct stat myStat;
in FileExist() 58 return (!stat(fileName, &myStat));
in FileExist()
|
/test/xts/tools/lite/checksum/src/ |
H A D | main.c | 25 #include <sys/stat.h> 36 struct stat sBuf; in main() 42 int result = stat(filePath, &sBuf); // 获取文件信息,把信息放到sBuf中 in main() 44 printf("error: fail to get the stat of %s: %s.\n", filePath, strerror(errno)); in main()
|
/test/testfwk/developer_test/local_coverage/ |
H A D | utils.py | 21 import stat namespace 179 file_states = os.stat(filepath) 180 file_mode = file_states[stat.ST_MODE] 181 if not stat.S_ISREG(file_mode):
|
/test/xts/hats/kernel/syscalls/fileio/truncate/ |
H A D | TruncateApiTest.cpp | 26 #include <sys/stat.h> 127 struct stat fileStat; in HWTEST_F() 137 ret = stat(TRUNCATE_TEST_FILE, &fileStat); in HWTEST_F() 144 ret = stat(TRUNCATE_TEST_FILE, &fileStat); in HWTEST_F()
|
/test/testfwk/xdevice/src/xdevice/_core/testkit/ |
H A D | kit.py | 21 import stat namespace 150 modes = stat.S_IWUSR | stat.S_IRUSR 163 modes = stat.S_IWUSR | stat.S_IRUSR 258 if not oct(os.stat(tool_file).st_mode)[-3:] == "755":
|
/test/testfwk/developer_test/libs/fuzzlib/tools/ |
H A D | run_result.py | 20 import stat namespace 23 MODES = stat.S_IWUSR | stat.S_IRUSR
|
/test/testfwk/developer_test/src/core/command/ |
H A D | gen.py | 22 import stat namespace 27 MODES = stat.S_IWUSR | stat.S_IRUSR
|
/test/testfwk/developer_test/local_coverage/interface_coverage/ |
H A D | get_innerkits_json.py | 23 import stat namespace 26 MODES = stat.S_IWUSR | stat.S_IRUSR
|
/test/xts/hats/kernel/syscalls/fileio/fchown/ |
H A D | FchownApiTest.cpp | 25 #include <sys/stat.h> 67 struct stat stat1; in HWTEST_F() 68 struct stat stat2; in HWTEST_F()
|