Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 127) sorted by relevance

123456

/test/xts/acts/storage/storagefileiojstest/src/main/js/test/module_fileio/members/
Dstat.test.js39 let stat = fileio.statSync(fpath);
40 expect(stat !== null).assertTrue();
84 let stat = fileio.statSync(fpath);
85 expect(isIntNum(stat.dev)).assertTrue();
108 let stat = fileio.statSync(fpath);
109 expect(isBigInt(stat.ino)).assertTrue();
132 let stat = fileio.statSync(fpath);
133 expect(isIntNum(stat.mode)).assertTrue();
156 let stat = fileio.statSync(fpath);
157 expect(isIntNum(stat.nlink)).assertTrue();
[all …]
Dlstat.test.js39 let stat = fileio.lstatSync(fpath);
40 expect(stat !== null).assertTrue();
83 let stat = fileio.lstatSync(fpath);
84 expect(isIntNum(stat.dev)).assertTrue();
105 let stat = fileio.lstatSync(fpath);
106 expect(isBigInt(stat.ino)).assertTrue();
128 let stat = fileio.lstatSync(fpath);
129 expect(isIntNum(stat.mode)).assertTrue();
151 let stat = fileio.lstatSync(fpath);
152 expect(isIntNum(stat.nlink)).assertTrue();
[all …]
Dfchown.test.js37 let stat = fileio.statSync(fpath);
38 expect(isIntNum(stat.uid)).assertTrue();
40 fileio.fchown(fd, stat.uid + 1, stat.gid + 1, (err) => {
45 expect(stat.uid == stat1.uid).assertTrue();
46 expect(stat.gid == stat1.gid).assertTrue();
70 let stat = fileio.statSync(fpath);
71 expect(isIntNum(stat.uid)).assertTrue();
73 await fileio.fchown(fd, stat.uid + 1, stat.gid + 1);
75 expect(stat.uid == stat1.uid).assertTrue();
76 expect(stat.gid == stat1.gid).assertTrue();
[all …]
Dchown.test.js38 let stat = fileio.statSync(fpath);
39 fileio.chownSync(fpath, stat.uid + 1, stat.gid + 1);
41 expect(stat.uid == stat1.uid).assertTrue();
42 expect(stat.gid == stat1.gid).assertTrue();
64 let stat = fileio.statSync(fpath);
65 await fileio.chown(fpath, stat.uid + 1, stat.gid + 1);
67 expect(stat.uid == stat1.uid).assertTrue();
68 expect(stat.gid == stat1.gid).assertTrue();
91 let stat = fileio.statSync(fpath);
92 fileio.chown(fpath, stat.uid, stat.gid, (err) => {
[all …]
Dlchown.test.js38 let stat = fileio.statSync(fpath);
39 fileio.lchownSync(fpath, stat.uid + 1, stat.gid + 1);
41 expect(stat.uid == stat1.uid).assertTrue();
42 expect(stat.gid == stat1.gid).assertTrue();
64 let stat = fileio.statSync(fpath);
65 await fileio.lchown(fpath, stat.uid + 1, stat.gid + 1);
67 expect(stat.uid == stat1.uid).assertTrue();
68 expect(stat.gid == stat1.gid).assertTrue();
91 let stat = fileio.statSync(fpath);
92 fileio.lchown(fpath, stat.uid + 1, stat.gid + 1, (err) => {
[all …]
Dfstat.test.js40 let stat = fileio.fstatSync(fd);
41 expect(stat !== null).assertTrue();
84 let stat = fileio.fstatSync(fd);
85 expect(isIntNum(stat.dev)).assertTrue();
109 let stat = fileio.fstatSync(fd);
110 expect(isBigInt(stat.ino)).assertTrue();
134 let stat = fileio.fstatSync(fd);
135 expect(isIntNum(stat.mode)).assertTrue();
159 let stat = fileio.fstatSync(fd);
160 expect(isIntNum(stat.nlink)).assertTrue();
[all …]
/test/xts/acts/storage/storagefileiojstest/src/main/js/test/
DFileIOStat.test.js39 let stat = fileio.statSync(fpath);
40 expect(stat !== null).assertTrue();
75 let stat = fileio.statSync(dpath);
76 expect(stat !== null).assertTrue();
120 let stat = fileio.statSync(fpath);
121 expect(typeof(stat.dev) == 'number').assertTrue();
139 let stat = fileio.statSync(fpath);
140 expect(typeof(stat.ino) == 'bigint').assertTrue();
158 let stat = fileio.statSync(fpath);
159 expect(typeof(stat.mode) == 'number').assertTrue();
[all …]
/test/xts/acts/storage/storagefileiov9jstest/src/main/js/test/members/
Dstat.test.js44 let stat = fileIO.statSync(fpath);
45 expect(stat !== null).assertTrue();
115 let stat = fileIO.statSync(fpath);
116 expect(isBigInt(stat.ino)).assertTrue();
144 let stat = fileIO.statSync(fpath);
145 expect(isIntNum(stat.mode)).assertTrue();
173 let stat = fileIO.statSync(fpath);
174 expect(isIntNum(stat.uid)).assertTrue();
202 let stat = fileIO.statSync(fpath);
203 expect(isIntNum(stat.gid)).assertTrue();
[all …]
Dlstat.test.js39 let stat = fileIO.lstatSync(fpath);
40 expect(stat !== null).assertTrue();
104 let stat = fileIO.lstatSync(fpath);
105 expect(isBigInt(stat.ino)).assertTrue();
128 let stat = fileIO.lstatSync(fpath);
129 expect(isIntNum(stat.mode)).assertTrue();
152 let stat = fileIO.lstatSync(fpath);
153 expect(isIntNum(stat.uid)).assertTrue();
176 let stat = fileIO.lstatSync(fpath);
177 expect(isIntNum(stat.gid)).assertTrue();
[all …]
Dutimes.test.js40 let stat = fileIO.statSync(fpath);
42 expect(stat.mtime == setime).assertTrue();
67 let stat = fileIO.statSync(fpath);
69 expect(stat.mtime == setime).assertTrue();
94 let stat = fileIO.statSync(fpath);
96 expect(stat.mtime == setime).assertTrue();
DmoveFile.test.js44 let stat = fileIO.statSync(ffpath);
45 expect(stat.size == FILE_CONTENT.length).assertTrue();
182 let stat = fileIO.statSync(ffpath);
183 expect(stat.size == FILE_CONTENT.length).assertTrue();
212 let stat = fileIO.statSync(ffpath);
213 expect(stat.size == FILE_CONTENT.length).assertTrue();
242 let stat = fileIO.statSync(ffpath);
243 expect(stat.size == FILE_CONTENT.length).assertTrue();
277 let stat = fileIO.statSync(ffpath);
278 expect(stat.size == FILE_CONTENT.length).assertTrue();
[all …]
/test/xts/acts/storage/crossplatform/storagefsetstest/src/main/ets/test/members/
Dstat.test.ets24 * @tc.desc : Test stat() interfaces. Promise.
25 * Enter the path or fd parameter to get the file stat.
35 let stat: fileIO.Stat = await fileIO.stat(fpath);
36 expect(stat.size == FILE_CONTENT.length).assertTrue();
39 let stat2: fileIO.Stat = await fileIO.stat(file.fd);
53 * @tc.desc : Test stat() interfaces. Promise.
63 await fileIO.stat(fpath);
75 * @tc.desc : Test stat() interfaces. Promise.
83 await fileIO.stat(-1);
95 * @tc.desc : Test stat() interfaces. Callback.
[all …]
/test/xts/acts/communication_lite/wifiservice_hal/src/
Dwifiservice_func_test.c296 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 = IsWifiActive();
312 TEST_ASSERT_EQUAL_INT(WIFI_STATE_NOT_AVALIABLE, stat);
316 stat = IsWifiActive();
317 TEST_ASSERT_EQUAL_INT(WIFI_STATE_NOT_AVALIABLE, stat);
[all …]
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
Dstat1ndk.cpp56 extern "C" int __fstat_time64(int, struct stat *);
59 struct stat stat {}; in FStat_time64() struct
60 int ret = __fstat_time64(PARAM_UNNORMAL, &stat); in FStat_time64()
66 extern "C" int __lstat_time64(const char *__restrict, struct stat *__restrict);
69 struct stat stat {}; in LStat_time64() struct
70 int ret = __lstat_time64("teststat.txt", &stat); in LStat_time64()
76 extern "C" int __stat_time64(const char *__restrict, struct stat *__restrict);
79 struct stat stat {}; in Stat_time64() struct
80 int ret = __stat_time64("teststat.txt", &stat); in Stat_time64()
96 struct stat st = {PARAM_0}; in Fstatat()
[all …]
Dutimendk.cpp41 struct stat statinfo; in Utime()
52 stat(strTemp, &statinfo); in Utime()
56 stat(strTemp, &statinfo); in Utime()
Dmntentndk1.cpp35 struct stat statbuff; in GetMnTent()
54 ret = stat(TEMP_FILE, &statbuff); in GetMnTent()
83 struct stat statbuff; in GetMnTentR()
102 ret = stat(TEMP_FILE, &statbuff); in GetMnTentR()
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/ets/test/
DStat1Ndk.test.ets17 import stat from 'libstat1ndk.so'
32 expect(stat.__fstat_time64()).assertEqual(-1);
45 expect(stat.__lstat_time64()).assertEqual(-1);
58 expect(stat.__stat_time64()).assertEqual(-1);
71 let result: number = stat.chmod();
85 let result: number = stat.fstatat();
99 let result: number = stat.fstatat64();
113 let data: number = stat.lstat();
127 let data: number = stat.lstat64();
141 let result: number = stat.futimens();
[all …]
DStatNdk.test.ets17 import stat from 'libstatndk.so'
26 * @tc.desc : test stat
33 let c: number = stat.stat(a);
41 * @tc.desc : test stat
49 let c: number = stat.stat(a);
57 * @tc.desc : test stat
64 let c: number = stat.stat64(a);
79 let c: number = stat.stat64(a);
94 let result: number = stat.umask(a);
116 let result: number = stat.utimensat(filesDir + '/utimensat.txt');
[all …]
/test/xts/acts/multimedia/avsource/entry/src/main/cpp/
Dmediaavsourcendk.cpp53 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/testfwk/developer_test/libs/fuzzlib/tools/
Drun_result.py20 import stat
23 MODES = stat.S_IWUSR | stat.S_IRUSR
/test/xts/acts/kernel_lite/fs_posix/src/
DFsStatTest.cpp65 struct stat buf;
77 EXPECT_NE(stat(filePath, &buf), -1) << "> fstat errno = " << errno;
100 struct stat buf;
135 struct stat buf;
239 struct stat buf;
248 EXPECT_NE(stat(fileName, &buf), -1) << "> fstat errno = " << errno;
/test/testfwk/developer_test/examples/detector/src/
Ddetector.cpp57 struct stat myStat; in FileExist()
58 return (!stat(fileName, &myStat)); in FileExist()
/test/xts/tools/lite/checksum/src/
Dmain.c36 struct stat sBuf; in main()
42 int result = stat(filePath, &sBuf); // 获取文件信息,把信息放到sBuf中 in main()
/test/testfwk/developer_test/localCoverage/interfaceCoverage/
Dget_innerkits_json.py23 import stat
26 MODES = stat.S_IWUSR | stat.S_IRUSR
/test/testfwk/developer_test/src/core/command/
Dgen.py22 import stat
27 MODES = stat.S_IWUSR | stat.S_IRUSR

123456