Home
last modified time | relevance | path

Searched refs:stat (Results 1 - 25 of 2444) sorted by relevance

12345678910>>...98

/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/utils/
H A Dnapi_async_work.cpp92 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...]
/foundation/multimedia/media_library/frameworks/utils/src/
H A Dpost_event_utils.cpp155 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...]
/test/xts/acts/storage/storagefileiov9jstest/entry/src/ohosTest/js/test/members/
H A Dstat.test.js33 * 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...]
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/
H A Ddistributed_kv_data_manager_test.cpp428 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...]
/base/update/updater/utils/
H A Dutils_fs.cpp27 #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/multimedia/media_foundation/engine/scene/common/
H A Dmedia_stat_stub.cpp35 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()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/
H A Dnstackx_dfinder_hidump.c123 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...]
/test/xts/acts/communication_lite/wifiservice_hal/src/
H A Dwifiservice_func_test.c123 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 DFstatApiTest.cpp23 #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()
/foundation/filemanagement/app_file_service/tests/mock/b_filesystem/
H A Db_file_mock.cpp34 struct stat stat = {}; in ReadFile() local
35 if (fstat(fd, &stat) == -1) { in ReadFile()
39 off_t fileSize = stat.st_size; in ReadFile()
67 struct stat stat = {}; in SendFile() local
68 if (fstat(inFd, &stat) == -1) { in SendFile()
72 while ((ret = sendfile(outFd, inFd, &offset, stat.st_size)) > 0) { in SendFile()
/foundation/multimedia/media_library/frameworks/utils/include/
H A Dpost_event_utils.h94 void PostStatProcess(const uint32_t &statType, const VariantMap &stat);
102 COMPILE_HIDDEN void PostThumbnailStat(const VariantMap &stat);
103 COMPILE_HIDDEN void PostDbUpgradeStat(const VariantMap &stat);
105 COMPILE_HIDDEN void PostAgingStat(const VariantMap &stat);
106 COMPILE_HIDDEN void PostMscFirstVisitStat(const VariantMap &stat);
107 COMPILE_HIDDEN void PostMscRequestPolicyStat(const VariantMap &stat);
108 COMPILE_HIDDEN void PostMscTriggerRatioStat(const VariantMap &stat);
109 COMPILE_HIDDEN void PostMscTotalTimeCostStat(const VariantMap &stat);
110 COMPILE_HIDDEN void PostMscResultStat(const VariantMap &stat);
111 COMPILE_HIDDEN void PostCloudEnhanceStat(const VariantMap &stat);
[all...]
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
H A Dsqlite_statement.h68 using Action = int32_t (*)(sqlite3_stmt *stat, int index, const ValueObject::Type &object);
69 static int32_t BindNil(sqlite3_stmt *stat, int index, const ValueObject::Type &object);
70 static int32_t BindInteger(sqlite3_stmt *stat, int index, const ValueObject::Type &object);
71 static int32_t BindDouble(sqlite3_stmt *stat, int index, const ValueObject::Type &object);
72 static int32_t BindText(sqlite3_stmt *stat, int index, const ValueObject::Type &object);
73 static int32_t BindBool(sqlite3_stmt *stat, int index, const ValueObject::Type &object);
74 static int32_t BindBlob(sqlite3_stmt *stat, int index, const ValueObject::Type &object);
75 static int32_t BindAsset(sqlite3_stmt *stat, int index, const ValueObject::Type &object);
76 static int32_t BindAssets(sqlite3_stmt *stat, int index, const ValueObject::Type &object);
77 static int32_t BindFloats(sqlite3_stmt *stat, in
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/dfx/src/
H A Dhiview_adapter.cpp227 void HiViewAdapter::ReportDatabaseStatistic(int dfxCode, const DbStat &stat, std::shared_ptr<ExecutorPool> executors) in ReportDatabaseStatistic() argument
229 ExecutorPool::Task task([dfxCode, stat]() { in ReportDatabaseStatistic()
231 if (!dbStat_.count(stat.GetKey())) { in ReportDatabaseStatistic()
232 dbStat_.insert({stat.GetKey(), {stat, 0, dfxCode}}); in ReportDatabaseStatistic()
239 void HiViewAdapter::ReportDbSize(const StatisticWrap<DbStat> &stat) in ReportDbSize() argument
242 if (!stat.val.delegate->GetKvStoreDiskSize(stat.val.storeId, dbSize)) { in ReportDbSize()
248 if (!vh.CalcValueHash(stat.val.userId, userId)) { in ReportDbSize()
259 .v = { .s = const_cast<char *>(stat in ReportDbSize()
302 ReportTrafficStatistic(int dfxCode, const TrafficStat &stat, std::shared_ptr<ExecutorPool> executors) ReportTrafficStatistic() argument
358 ReportVisitStatistic(int dfxCode, const VisitStat &stat, std::shared_ptr<ExecutorPool> executors) ReportVisitStatistic() argument
406 ReportApiPerformanceStatistic(int dfxCode, const ApiPerformanceStat &stat, std::shared_ptr<ExecutorPool> executors) ReportApiPerformanceStatistic() argument
[all...]
/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/include/
H A Ddlp_link_file.h21 #include <sys/stat.h>
33 struct stat fileStat;
42 struct stat GetLinkStat();
74 struct stat GetFileStat() in GetFileStat()
82 struct stat fileStat_;
/test/xts/hats/kernel/syscalls/fileio/ftruncate/
H A DFtruncateApiTest.cpp23 #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()
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/
H A Dfile_operations_helper.cpp55 void FileOperationsHelper::GetInodeAttr(shared_ptr<CloudDiskInode> ino, struct stat *statBuf) in GetInodeAttr()
57 statBuf->st_ino = ino->stat.st_ino; in GetInodeAttr()
58 statBuf->st_uid = ino->stat.st_uid; in GetInodeAttr()
59 statBuf->st_gid = ino->stat.st_gid; in GetInodeAttr()
60 statBuf->st_mtime = ino->stat.st_mtime; in GetInodeAttr()
61 statBuf->st_ctime = ino->stat.st_ctime; in GetInodeAttr()
62 statBuf->st_atime = ino->stat.st_atime; in GetInodeAttr()
63 statBuf->st_mode = ino->stat.st_mode; in GetInodeAttr()
64 statBuf->st_nlink = ino->stat.st_nlink; in GetInodeAttr()
66 statBuf->st_size = ino->stat in GetInodeAttr()
[all...]
/base/startup/init/interfaces/innerkits/fs_manager/erofs_overlay/
H A Derofs_remount_overlay.c17 #include <sys/stat.h>
48 struct stat st; in SetRemountResultFlag()
51 int statRet = stat(REMOUNT_RESULT_PATH, &st); in SetRemountResultFlag()
104 struct stat statInfo; in Exchange2Modem()
136 struct stat statInfo; in OverlayRemountVendorPre()
138 if (!stat(MODEM_DRIVER_MNT_PATH, &statInfo)) { in OverlayRemountVendorPre()
142 if (!stat(MODEM_VENDOR_MNT_PATH, &statInfo)) { in OverlayRemountVendorPre()
146 if (!stat(MODEM_FW_MNT_PATH, &statInfo)) { in OverlayRemountVendorPre()
217 struct stat statInfo; in RemountOverlay()
/foundation/filemanagement/app_file_service/utils/include/b_json/
H A Db_json_entity_ext_manage.h22 #include <sys/stat.h>
31 struct stat sta {};
40 * @param info std::map<string, pair<string, struct stat>>
42 void SetExtManage(const map<string, tuple<string, struct stat, bool>> &info) const;
47 * @param info map<string, tuple<string, struct stat, bool, bool>>
49 void SetExtManageForClone(const map<string, tuple<string, struct stat, bool, bool>> &info) const;
61 * @return map<string, pair<string, struct stat>>
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/auth/
H A Dauth_session_test.c244 int32_t stat = 0; in DiscoveryTestEntry() local
257 if (stat == CREATE_SESSION_CASE) { in DiscoveryTestEntry()
258 stat = TestCreateSessionServer(testWay); in DiscoveryTestEntry()
259 } else if (stat == OPEN_SESSION_CASE) { in DiscoveryTestEntry()
260 stat = TestOpenAuthSession(); in DiscoveryTestEntry()
261 } else if (stat == SEND_DATA_TEST_CASE) { in DiscoveryTestEntry()
270 stat = -1; in DiscoveryTestEntry()
275 stat = -1; in DiscoveryTestEntry()
277 } else if (stat == WAIT_OPEN_SESSION_CASE && g_connectCnt >= count) { in DiscoveryTestEntry()
278 stat in DiscoveryTestEntry()
[all...]
/base/global/timezone/tool/update_tool/
H A Ddownload_iana.py26 import stat namespace
31 modes = stat.S_IWUSR | stat.S_IRUSR
52 modes = stat.S_IWUSR | stat.S_IRUSR
113 modes = stat.S_IWUSR | stat.S_IRUSR
/foundation/multimedia/media_foundation/src/osal/filesystem/
H A Dfile_system.cpp45 struct stat s {}; in IsRegularFile()
46 return (stat(path.c_str(), &s) == 0) && S_ISREG(s.st_mode); in IsRegularFile()
49 bool FileSystem::IsFdValid(int32_t fd, struct stat& s) in IsFdValid()
56 struct stat s {}; in IsRegularFile()
62 struct stat s {}; in IsSocketFile()
73 struct stat s {}; in IsDirectory()
74 return (stat(path.c_str(), &s) == 0) && S_ISDIR(s.st_mode); in IsDirectory()
/test/xts/hats/kernel/syscalls/fileio/fchownat/
H A DFchownatApiTest.cpp25 #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...]
/base/hiviewdfx/hilog/services/hilogd/
H A Dmain.cpp17 #include <sys/stat.h>
19 #include <sys/stat.h>
111 struct stat s; in RedirectStdStreamToLogFile()
112 if (stat(path.c_str(), &s) != -1) { in RedirectStdStreamToLogFile()
120 struct stat st; in RedirectStdStreamToLogFile()
121 if (stat(path, &st) == -1) { in RedirectStdStreamToLogFile()
174 struct stat s; in HilogdEntry()
175 if (stat(path.c_str(), &s) != -1) { in HilogdEntry()
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/
H A Dapp_usage_event_factory.cpp113 for (auto stat : pkgStats) { in GetAppUsageInfosByUserId()
114 std::string package = stat.bundleName_; in GetAppUsageInfosByUserId()
118 uint64_t usage = stat.totalInFrontTime_ > 0 ? static_cast<uint64_t>(stat.totalInFrontTime_) : 0; in GetAppUsageInfosByUserId()
119 uint32_t startNum = stat.startCount_ > 0 ? static_cast<uint32_t>(stat.startCount_) : 0; in GetAppUsageInfosByUserId()
124 std::string version = GetAppVersion(stat.bundleName_); in GetAppUsageInfosByUserId()
125 appUsageInfos.push_back(AppUsageInfo(stat.bundleName_, version, usage, dateStr, startNum)); in GetAppUsageInfosByUserId()
/foundation/filemanagement/app_file_service/utils/src/b_filesystem/
H A Db_dir.cpp60 static tuple<ErrCode, map<string, struct stat>, map<string, size_t>> GetFile(const string &path, off_t size = -1) in GetFile()
62 map<string, struct stat> files; in GetFile()
64 struct stat sta = {}; in GetFile()
65 if (stat(path.data(), &sta) == -1) { in GetFile()
90 static tuple<ErrCode, map<string, struct stat>, map<string, size_t>> GetDirFilesDetail(const string &path, in GetDirFilesDetail()
94 map<string, struct stat> files; in GetDirFilesDetail()
117 struct stat sta = {}; in GetDirFilesDetail()
119 if (CheckOverLongPath(fileName) >= PATH_MAX_LEN || stat(fileName.data(), &sta) == -1) { in GetDirFilesDetail()
205 tuple<ErrCode, map<string, struct stat>, map<string, size_t>> BDir::GetBigFiles(const vector<string> &includes, in GetBigFiles()
210 map<string, struct stat> incFile in GetBigFiles()
[all...]

Completed in 12 milliseconds

12345678910>>...98