/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...] |
/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...] |
/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...] |
/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()
|
/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...] |
/foundation/filemanagement/app_file_service/tests/mock/b_filesystem/ |
H A D | b_file_mock.cpp | 34 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 D | post_event_utils.h | 94 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 D | sqlite_statement.h | 68 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 D | hiview_adapter.cpp | 227 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...] |
H A D | hiview_adapter.h | 43 static void ReportVisitStatistic(int dfxCode, const VisitStat &stat, std::shared_ptr<ExecutorPool> executors); 44 static void ReportTrafficStatistic(int dfxCode, const TrafficStat &stat, std::shared_ptr<ExecutorPool> executors); 45 static void ReportDatabaseStatistic(int dfxCode, const DbStat &stat, std::shared_ptr<ExecutorPool> executors); 46 static void ReportApiPerformanceStatistic(int dfxCode, const ApiPerformanceStat &stat, 64 static void ReportDbSize(const StatisticWrap<DbStat> &stat);
|
/foundation/filemanagement/app_file_service/utils/include/b_json/ |
H A D | b_json_entity_ext_manage.h | 22 #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/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/ |
H A D | file_operations_helper.cpp | 55 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...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/auth/ |
H A D | auth_session_test.c | 244 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...] |
/foundation/multimedia/media_foundation/src/osal/filesystem/ |
H A D | file_system.cpp | 45 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()
|
/foundation/arkui/ace_engine_lite/frameworks/tools/profiler/ |
H A D | js_profiler.py | 20 import stat namespace 50 modes = stat.S_IWUSR | stat.S_IRUSR 70 modes = stat.S_IWUSR | stat.S_IRUSR
|
/foundation/filemanagement/app_file_service/utils/src/b_filesystem/ |
H A D | b_dir.cpp | 60 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...] |
H A D | b_file.cpp | 22 #include <sys/stat.h> 40 struct stat stat = {}; in ReadFile() local 41 if (fstat(fd, &stat) == -1) { in ReadFile() 44 off_t fileSize = stat.st_size; in ReadFile() 67 struct stat stat = {}; in SendFile() local 68 if (fstat(inFd, &stat) == -1) { in SendFile() 71 while ((ret = sendfile(outFd, inFd, &offset, stat.st_size)) > 0) { in SendFile()
|
/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/ |
H A D | scanner_utils.cpp | 33 struct stat statInfo {}; in IsExists() 40 return ((stat(path.c_str(), &statInfo)) == ERR_SUCCESS); in IsExists() 76 struct stat s; in IsDirectory() 79 if (stat(path.c_str(), &s) == 0) { in IsDirectory() 92 struct stat s; in IsRegularFile() 94 if (stat(path.c_str(), &s) == 0) { in IsRegularFile()
|
/foundation/multimedia/ringtone_library/services/ringtone_scanner/src/ |
H A D | ringtone_scanner_utils.cpp | 28 struct stat statInfo {}; in IsExists() 35 return ((stat(path.c_str(), &statInfo)) == ERR_SUCCESS); in IsExists() 71 struct stat s; in IsDirectory() 74 if (stat(path.c_str(), &s) == 0) { in IsDirectory() 87 struct stat s; in IsRegularFile() 89 if (stat(path.c_str(), &s) == 0) { in IsRegularFile()
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/ |
H A D | store_util_test.cpp | 20 #include <sys/stat.h>
148 struct stat buf;
in HWTEST_F() 149 int ret = stat(path.c_str(), &buf);
in HWTEST_F() 156 ret = stat(fileName.c_str(), &buf);
in HWTEST_F() 174 struct stat buf;
in HWTEST_F() 175 ret = stat(path.c_str(), &buf);
in HWTEST_F() 182 ret = stat(path.c_str(), &buf);
in HWTEST_F() 190 ret = stat(fileName.c_str(), &buf);
in HWTEST_F() 196 ret = stat(fileName.c_str(), &buf);
in HWTEST_F()
|
/foundation/arkui/ace_engine_lite/frameworks/tools/snapshot/ |
H A D | framework2char.py | 17 import stat namespace 69 input_modes = stat.S_IWUSR | stat.S_IRUSR 73 modes = stat.S_IWUSR | stat.S_IRUSR 109 modes = stat.S_IWUSR | stat.S_IRUSR
|
/foundation/multimedia/media_foundation/engine/foundation/osal/filesystem/ |
H A D | file_system.cpp | 43 struct stat s {}; in IsRegularFile() 44 return (stat(path.c_str(), &s) == 0) && S_ISREG(s.st_mode); in IsRegularFile() 47 bool FileSystem::IsFdValid(int32_t fd, struct stat& s) in IsFdValid() 54 struct stat s {}; in IsRegularFile() 60 struct stat s {}; in IsSocketFile() 71 struct stat s {}; in IsDirectory() 72 return (stat(path.c_str(), &s) == 0) && S_ISDIR(s.st_mode); in IsDirectory()
|
/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/mock/ |
H A D | file_operations_helper_mock.cpp | 61 void FileOperationsHelper::GetInodeAttr(shared_ptr<CloudDiskInode> ino, struct stat *statBuf) in GetInodeAttr() 63 statBuf->st_ino = ino->stat.st_ino; in GetInodeAttr() 64 statBuf->st_uid = ino->stat.st_uid; in GetInodeAttr() 65 statBuf->st_gid = ino->stat.st_gid; in GetInodeAttr() 66 statBuf->st_mtime = ino->stat.st_mtime; in GetInodeAttr() 67 statBuf->st_ctime = ino->stat.st_ctime; in GetInodeAttr() 68 statBuf->st_atime = ino->stat.st_atime; in GetInodeAttr() 69 statBuf->st_mode = ino->stat.st_mode; in GetInodeAttr() 70 statBuf->st_nlink = ino->stat.st_nlink; in GetInodeAttr() 72 statBuf->st_size = ino->stat in GetInodeAttr() [all...] |
/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/ |
H A D | pre_process.py | 21 import stat namespace 37 mode = stat.S_IWUSR | stat.S_IRUSR
|
/foundation/multimodalinput/input/intention/services/device_manager/src/ |
H A D | enumerator.cpp | 19 #include <sys/stat.h> 56 struct stat statbuf; in ScanAndAddDevices() 58 if (stat(devPath.c_str(), &statbuf) != 0) { in ScanAndAddDevices()
|