/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/utils/ |
H A D | napi_async_work.cpp | 92 napi_status stat = napi_invalid_arg; in Enqueue() local 94 stat = napi_create_promise(contextBase->env, &contextBase->deferred, &promise); in Enqueue() 95 NAPI_CHECK_ARGS(contextBase, stat == napi_ok, stat, TextErrorCode::ERROR, return nullptr, in Enqueue() 96 "Failed to create promise, stat:%d", static_cast<int>(stat)); in Enqueue() 98 stat = napi_get_undefined(contextBase->env, &promise); in Enqueue() 99 NAPI_CHECK_ARGS(contextBase, stat == napi_ok, stat, TextErrorCode::ERROR, return nullptr, in Enqueue() 100 "Failed to get undefined, stat in Enqueue() 143 napi_status stat = napi_invalid_arg; GenerateOutput() local [all...] |
/third_party/toybox/toys/other/ |
H A D | stat.c | 0 /* stat.c : display file or file system status 5 USE_STAT(NEWTOY(stat, "<1c:(format)fLt", TOYFLAG_BIN)) 8 bool stat 11 usage: stat [-tfL] [-c FORMAT] FILE... 47 struct stat st; 49 } stat; 76 struct stat *stat = (struct stat *)&TT.stat; in print_stat() local [all...] |
/third_party/ltp/testcases/kernel/syscalls/nftw/ |
H A D | nftw.h | 39 #include <sys/stat.h> 112 int test_func1(const char *, const struct stat *, int, struct FTW *); 113 int test_func3(const char *, const struct stat *, int, struct FTW *); 114 int test_func4(const char *, const struct stat *, int, struct FTW *); 115 int test_func5(const char *, const struct stat *, int, struct FTW *); 116 int test_func7(const char *, const struct stat *, int, struct FTW *); 117 int test_func8(const char *, const struct stat *, int, struct FTW *); 118 int test_func9(const char *, const struct stat *, int, struct FTW *); 119 int test_func10(const char *, const struct stat *, int, struct FTW *); 120 int test_func11(const char *, const struct stat *, in [all...] |
/foundation/multimedia/media_library/frameworks/utils/src/ |
H A D | post_event_utils.cpp | 155 void PostEventUtils::PostThumbnailStat(const VariantMap &stat) in PostThumbnailStat() argument 165 "GNUMS", GetIntValue(KEY_GNUMS, stat), in PostThumbnailStat() 166 "ANUMS", GetIntValue(KEY_ANUMS, stat)); in PostThumbnailStat() 172 void PostEventUtils::PostDbUpgradeStat(const VariantMap &stat) in PostDbUpgradeStat() argument 174 int32_t preVersion = GetIntValue(KEY_PRE_VERSION, stat); in PostDbUpgradeStat() 175 int32_t afterVersion = GetIntValue(KEY_AFTER_VERSION, stat); in PostDbUpgradeStat() 203 void PostEventUtils::PostAgingStat(const VariantMap &stat) in PostAgingStat() argument 211 "COUNT", GetIntValue(KEY_COUNT, stat)); in PostAgingStat() 217 void PostEventUtils::PostMscFirstVisitStat(const VariantMap &stat) in PostMscFirstVisitStat() argument 219 string photoId = GetStringValue(KEY_PHOTO_ID, stat); in PostMscFirstVisitStat() 232 PostMscRequestPolicyStat(const VariantMap &stat) PostMscRequestPolicyStat() argument 251 PostMscTriggerRatioStat(const VariantMap &stat) PostMscTriggerRatioStat() argument 266 PostMscTotalTimeCostStat(const VariantMap &stat) PostMscTotalTimeCostStat() argument 281 PostMscResultStat(const VariantMap &stat) PostMscResultStat() argument 333 PostCloudEnhanceStat(const VariantMap &stat) PostCloudEnhanceStat() argument 350 PostStatProcess(const uint32_t &statType, const VariantMap &stat) PostStatProcess() argument [all...] |
/third_party/rust/crates/rustix/tests/fs/ |
H A D | y2038.rs | 47 let stat = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_y2038_with_utimensat() 50 TryInto::<u64>::try_into(stat.st_mtime).unwrap() as u64, in test_y2038_with_utimensat() 55 assert_eq!(stat.st_mtime_nsec as u32, m_nsec); in test_y2038_with_utimensat() 57 assert_eq!(stat.st_mtimensec as u32, m_nsec); in test_y2038_with_utimensat() 59 assert!(TryInto::<u64>::try_into(stat.st_atime).unwrap() as u64 >= a_sec); in test_y2038_with_utimensat() 63 TryInto::<u64>::try_into(stat.st_atime).unwrap() as u64 > a_sec in test_y2038_with_utimensat() 64 || stat.st_atime_nsec as u32 >= a_nsec in test_y2038_with_utimensat() 68 TryInto::<u64>::try_into(stat.st_atime).unwrap() as u64 > a_sec in test_y2038_with_utimensat() 69 || stat.st_atimensec as u32 >= a_nsec in test_y2038_with_utimensat() 74 let stat in test_y2038_with_utimensat() [all...] |
/third_party/node/test/parallel/ |
H A D | test-fs-truncate.js | 34 let stat; 41 stat = fs.statSync(filename); 42 assert.strictEqual(stat.size, 1024 * 16); 45 stat = fs.statSync(filename); 46 assert.strictEqual(stat.size, 1024); 49 stat = fs.statSync(filename); 50 assert.strictEqual(stat.size, 0); 56 stat = fs.statSync(filename); 57 assert.strictEqual(stat.size, 1024 * 16); 60 stat [all...] |
H A D | test-fs-promises.js | 29 stat, 79 function verifyStatObject(stat) { 80 assert.strictEqual(typeof stat, 'object'); 81 assert.strictEqual(typeof stat.dev, 'number'); 82 assert.strictEqual(typeof stat.mode, 'number'); 85 function verifyStatFsObject(stat, isBigint = false) { 88 assert.strictEqual(typeof stat, 'object'); 89 assert.strictEqual(typeof stat.type, valueType); 90 assert.strictEqual(typeof stat.bsize, valueType); 91 assert.strictEqual(typeof stat [all...] |
/third_party/lame/frontend/ |
H A D | brhist.c | 251 stats_line(double *stat) in stats_line() argument 256 n += stats_head(stat[1], " mono"); in stats_line() 257 n += stats_head(stat[2], " IS "); in stats_line() 258 n += stats_head(stat[3], " LR "); in stats_line() 259 n += stats_head(stat[4], " MS "); in stats_line() 262 n += stats_head(stat[5], " long "); in stats_line() 263 n += stats_head(stat[6], "switch"); in stats_line() 264 n += stats_head(stat[7], " short"); in stats_line() 265 n += stats_head(stat[8], " mixed"); in stats_line() 276 console_printf("\n %5.1f ", stat[ in stats_line() 314 double stat[9] = { 0 }; brhist_disp() local [all...] |
H A D | depcomp | 192 stat=$? 193 if test $stat -ne 0; then 195 exit $stat 218 stat=$? 219 if test $stat -ne 0; then 221 exit $stat 260 stat=$? 261 if test $stat -ne 0; then 263 exit $stat 315 stat [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/ |
H A D | distributed_kv_data_manager_test.cpp | 428 Status stat = manager.CloseKvStore(appId, storeId64); in HWTEST_F() local 429 EXPECT_EQ(stat, Status::SUCCESS); in HWTEST_F() 448 Status stat = manager.CloseKvStore(appId, storeId64); in HWTEST_F() local 449 EXPECT_EQ(stat, Status::STORE_NOT_OPEN); in HWTEST_F() 462 Status stat = manager.CloseKvStore(appId, storeIdEmpty); in HWTEST_F() local 463 EXPECT_EQ(stat, Status::INVALID_ARGUMENT); in HWTEST_F() 476 Status stat = manager.CloseKvStore(appId, storeId65); in HWTEST_F() local 477 EXPECT_EQ(stat, Status::INVALID_ARGUMENT); in HWTEST_F() 490 Status stat = manager.CloseKvStore(appId, storeId64); in HWTEST_F() local 491 EXPECT_EQ(stat, Statu in HWTEST_F() 514 Status stat = manager.CloseKvStore(appId, storeId64); HWTEST_F() local 546 Status stat = manager.CloseKvStore(appId, storeId64); HWTEST_F() local 579 Status stat = manager.CloseAllKvStore(appId); HWTEST_F() local 603 Status stat = manager.CloseKvStore(appId, storeId64); HWTEST_F() local 625 Status stat = manager.CloseKvStore(appId, storeId64); HWTEST_F() local 648 Status stat = manager.DeleteKvStore(appId, storeId64, create.baseDir); HWTEST_F() local 662 Status stat = manager.DeleteKvStore(appId, storeId64, create.baseDir); HWTEST_F() local 676 Status stat = manager.DeleteKvStore(appId, storeIdEmpty); HWTEST_F() local 691 Status stat = manager.DeleteKvStore(appId, storeId65); HWTEST_F() local 713 Status stat = manager.CloseKvStore(appId, storeId64); HWTEST_F() local 745 Status stat = manager.CloseKvStore(appId, storeId64); HWTEST_F() local 762 Status stat = manager.DeleteAllKvStore(appId, create.baseDir); HWTEST_F() local 784 Status stat = manager.CloseKvStore(appId, storeId64); HWTEST_F() local [all...] |
/third_party/node/deps/npm/node_modules/isexe/ |
H A D | mode.js | 7 fs.stat(path, function (er, stat) { 8 cb(er, er ? false : checkStat(stat, options)) 16 function checkStat (stat, options) { 17 return stat.isFile() && checkMode(stat, options) 20 function checkMode (stat, options) { 21 var mod = stat.mode 22 var uid = stat.uid 23 var gid = stat [all...] |
/third_party/python/Mac/BuildScript/resources/ |
H A D | install_certificates.command | 14 import stat 18 STAT_0o775 = ( stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR 19 | stat.S_IRGRP | stat.S_IWGRP | stat.S_IXGRP 20 | stat.S_IROTH | stat.S_IXOTH )
|
/third_party/musl/libc-test/src/functionalext/supplement/time/ |
H A D | utime_sup.c | 18 #include <sys/stat.h> 35 struct stat info; in utime_0100() 41 stat(file, &info); in utime_0100() 47 stat(file, &info); in utime_0100() 70 struct stat buf1; in utime_0200() 71 struct stat buf2; in utime_0200() 73 stat(path, &buf1); in utime_0200() 79 stat(path, &buf2); in utime_0200() 99 struct stat info; in utime64_0100() 105 stat(fil in utime64_0100() [all...] |
/base/update/updater/utils/ |
H A D | utils_fs.cpp | 27 #include <sys/stat.h> 39 struct stat info {}; in MkdirRecursive() 55 if (stat(subDir.c_str(), &info) != 0) { in MkdirRecursive() 73 struct stat sb {}; in GetFilesFromDirectory() 74 if (stat(path.c_str(), &sb) == -1) { in GetFilesFromDirectory() 75 LOG(ERROR) << "Failed to stat"; in GetFilesFromDirectory() 83 struct stat st {}; in GetFilesFromDirectory() 84 if (stat(fileName.c_str(), &st) == 0) { in GetFilesFromDirectory() 119 struct stat st {}; in RemoveDir() 121 stat(file_nam in RemoveDir() [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/ |
H A D | nstackx_dfinder_hidump.c | 123 const uint64_t *stat = GetStatistics(); in DumpStatisticsInfo() local 126 stat[STATS_INVALID_OPT_AND_PAYLOAD]); in DumpStatisticsInfo() 127 DUMP_MSG_ADD_CHECK(ret, buf, index, size, "DECODE_FAILED: %" PRIu64 CRLF, stat[STATS_DECODE_FAILED]); in DumpStatisticsInfo() 128 DUMP_MSG_ADD_CHECK(ret, buf, index, size, "ENCODE_FAILED: %" PRIu64 CRLF, stat[STATS_ENCODE_FAILED]); in DumpStatisticsInfo() 129 DUMP_MSG_ADD_CHECK(ret, buf, index, size, "CREATE_HEADER_FAILED: %" PRIu64 CRLF, stat[STATS_CREATE_HEADER_FAILED]); in DumpStatisticsInfo() 130 DUMP_MSG_ADD_CHECK(ret, buf, index, size, "BUILD_PKT_FAILED: %" PRIu64 CRLF, stat[STATS_BUILD_PKT_FAILED]); in DumpStatisticsInfo() 131 DUMP_MSG_ADD_CHECK(ret, buf, index, size, "SOCKET_ERROR: %" PRIu64 CRLF, stat[STATS_SOCKET_ERROR]); in DumpStatisticsInfo() 132 DUMP_MSG_ADD_CHECK(ret, buf, index, size, "EPOLL_ERROR: %" PRIu64 CRLF, stat[STATS_EPOLL_ERROR]); in DumpStatisticsInfo() 133 DUMP_MSG_ADD_CHECK(ret, buf, index, size, "CREATE_SERVER_FAILED: %" PRIu64 CRLF, stat[STATS_CREATE_SERVER_FAILED]); in DumpStatisticsInfo() 134 DUMP_MSG_ADD_CHECK(ret, buf, index, size, "CREATE_CLIENT_FAILED: %" PRIu64 CRLF, stat[STATS_CREATE_CLIENT_FAILE in DumpStatisticsInfo() [all...] |
/third_party/skia/src/gpu/ |
H A D | GrThreadSafePipelineBuilder.h | 46 int numInlineProgramCacheResult(ProgramCacheResult stat) const { in numInlineProgramCacheResult() 47 return fInlineProgramCacheStats[(int) stat]; in numInlineProgramCacheResult() 49 void incNumInlineProgramCacheResult(ProgramCacheResult stat) { in incNumInlineProgramCacheResult() argument 50 ++fInlineProgramCacheStats[(int) stat]; in incNumInlineProgramCacheResult() 56 int numPreProgramCacheResult(ProgramCacheResult stat) const { in numPreProgramCacheResult() 57 return fPreProgramCacheStats[(int) stat]; in numPreProgramCacheResult() 59 void incNumPreProgramCacheResult(ProgramCacheResult stat) { in incNumPreProgramCacheResult() argument 60 ++fPreProgramCacheStats[(int) stat]; in incNumPreProgramCacheResult() 93 void incNumInlineProgramCacheResult(ProgramCacheResult stat) {} in incNumInlineProgramCacheResult() argument 95 void incNumPreProgramCacheResult(ProgramCacheResult stat) {} in incNumPreProgramCacheResult() argument [all...] |
/third_party/python/Lib/ |
H A D | genericpath.py | 7 import stat namespace 19 os.stat(path) 30 st = os.stat(path) 33 return stat.S_ISREG(st.st_mode) 42 st = os.stat(s) 45 return stat.S_ISDIR(st.st_mode) 49 """Return the size of a file, reported by os.stat().""" 50 return os.stat(filename).st_size 54 """Return the last modification time of a file, reported by os.stat().""" 55 return os.stat(filenam [all...] |
/third_party/mesa3d/src/util/ |
H A D | u_hash_table.c | 33 #include <sys/stat.h> 62 struct stat stat; in hash_fd() local 64 fstat(fd, &stat); in hash_fd() 66 return stat.st_dev ^ stat.st_ino ^ stat.st_rdev; in hash_fd() 78 struct stat stat1, stat2; in equal_fd()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | utimes.c | 19 #include <sys/stat.h> 40 struct stat buf1; in utimes_0100() 41 struct stat buf2; in utimes_0100() 43 stat(path, &buf1); in utimes_0100() 51 stat(path, &buf2); in utimes_0100() 74 struct stat st; in utimes_0200() 81 stat(path, &st); in utimes_0200() 103 struct stat buf1; in utimes_time64_0100() 104 struct stat buf2; in utimes_time64_0100() 106 stat(pat in utimes_time64_0100() [all...] |
/foundation/multimedia/media_foundation/engine/scene/common/ |
H A D | media_stat_stub.cpp | 35 for (auto& stat : mediaStats_) { in Append() 36 if (stat.reporter == reporter) { in Append() 48 for (auto& stat : mediaStats_) { in ReceiveEvent() 49 if (stat.reporter == event.srcFilter) { in ReceiveEvent() 50 stat.completeEventReceived = true; in ReceiveEvent() 66 return std::all_of(mediaStats_.begin(), mediaStats_.end(), [](const MediaStat& stat) { in IsEventCompleteAllReceived() 67 return stat.completeEventReceived.load(); in IsEventCompleteAllReceived()
|
/third_party/eudev/ |
H A D | depcomp | 192 stat=$? 193 if test $stat -ne 0; then 195 exit $stat 218 stat=$? 219 if test $stat -ne 0; then 221 exit $stat 260 stat=$? 261 if test $stat -ne 0; then 263 exit $stat 315 stat [all...] |
/third_party/lame/ |
H A D | depcomp | 192 stat=$? 193 if test $stat -ne 0; then 195 exit $stat 218 stat=$? 219 if test $stat -ne 0; then 221 exit $stat 260 stat=$? 261 if test $stat -ne 0; then 263 exit $stat 315 stat [all...] |
/third_party/lame/libmp3lame/ |
H A D | depcomp | 192 stat=$? 193 if test $stat -ne 0; then 195 exit $stat 218 stat=$? 219 if test $stat -ne 0; then 221 exit $stat 260 stat=$? 261 if test $stat -ne 0; then 263 exit $stat 315 stat [all...] |
/third_party/lame/mpglib/ |
H A D | depcomp | 192 stat=$? 193 if test $stat -ne 0; then 195 exit $stat 218 stat=$? 219 if test $stat -ne 0; then 221 exit $stat 260 stat=$? 261 if test $stat -ne 0; then 263 exit $stat 315 stat [all...] |
/third_party/lame/misc/ |
H A D | depcomp | 192 stat=$? 193 if test $stat -ne 0; then 195 exit $stat 218 stat=$? 219 if test $stat -ne 0; then 221 exit $stat 260 stat=$? 261 if test $stat -ne 0; then 263 exit $stat 315 stat [all...] |