Home
last modified time | relevance | path

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

12345678910>>...96

/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...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/
H A Dmali_pmu.c82 u32 stat; in mali_pmu_power_up_all() local
92 stat = mali_hw_core_register_read(&pmu->hw_core, PMU_REG_ADDR_MGMT_STATUS); in mali_pmu_power_up_all()
93 mali_pmu_power_up(pmu, stat); in mali_pmu_power_up_all()
100 u32 stat; in mali_pmu_power_down() local
112 stat = mali_hw_core_register_read(&pmu->hw_core, PMU_REG_ADDR_MGMT_STATUS); in mali_pmu_power_down()
118 MALI_DEBUG_ASSERT((stat & mask) == 0); in mali_pmu_power_down()
122 if (mask == 0 || ((~stat) & mask) == 0) { in mali_pmu_power_down()
133 if (mali_is_mali450() || mali_is_mali470() || pmu->registered_cores_mask != (mask | stat)) { in mali_pmu_power_down()
144 stat = mali_hw_core_register_read(&pmu->hw_core, PMU_REG_ADDR_MGMT_STATUS); in mali_pmu_power_down()
145 MALI_DEBUG_ASSERT(mask == (stat in mali_pmu_power_down()
153 u32 stat; mali_pmu_power_down_all() local
169 u32 stat; mali_pmu_power_up() local
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/
H A Dmali_pmu.c87 u32 stat; in mali_pmu_power_up_all() local
97 stat = mali_hw_core_register_read(&pmu->hw_core, in mali_pmu_power_up_all()
99 mali_pmu_power_up(pmu, stat); in mali_pmu_power_up_all()
106 u32 stat; in mali_pmu_power_down_all() local
114 stat = mali_hw_core_register_read(&pmu->hw_core, in mali_pmu_power_down_all()
116 mali_pmu_power_down(pmu, (~stat) & pmu->registered_cores_mask); in mali_pmu_power_down_all()
123 u32 stat; in mali_pmu_power_down() local
137 stat = mali_hw_core_register_read(&pmu->hw_core, in mali_pmu_power_down()
144 MALI_DEBUG_ASSERT(0 == (stat & mask)); in mali_pmu_power_down()
148 if (0 == mask || 0 == ((~stat) in mali_pmu_power_down()
180 u32 stat; mali_pmu_power_up() local
[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...]
/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...]
/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()
/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/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...]
/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...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include/sys/
H A Dstat.h2 * @defgroup stat Stat
31 #include <bits/stat.h>
86 * @ingroup stat
89 * The stat() function shall obtain information about the named file and write it to the area pointed to by the buf
92 * @param buf [IN] A pointer to a stat structure, defined in the <sys/stat.h> header,
132 * <ul><li>stat.h</li></ul>
135 int stat(const char *__restrict, struct stat *__restrict);
138 * @ingroup stat
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/
H A Ddrv_trng_v100.c35 rng_stat stat; in drv_trng_randnum() local
60 stat.u32 = trng_read(RNG_STAT); in drv_trng_randnum()
61 if (stat.bits.rng_data_count == 0x00) { in drv_trng_randnum()
68 stat.u32 = trng_read(RNG_STAT); in drv_trng_randnum()
69 if (stat.bits.rng_data_count > 0x00) { in drv_trng_randnum()
82 stat.u32 = trng_read(RNG_STAT); in drv_trng_randnum()
83 if (stat.bits.rng_data_count > 0x00) { in drv_trng_randnum()
H A Ddrv_trng_v200.c31 hisec_com_trng_data_st stat; in drv_trng_randnum() local
57 stat.u32 = trng_read(HISEC_COM_TRNG_DATA_ST); in drv_trng_randnum()
58 if (stat.bits.trng_fifo_data_cnt == 0) { in drv_trng_randnum()
64 stat.u32 = trng_read(HISEC_COM_TRNG_DATA_ST); in drv_trng_randnum()
65 if (stat.bits.trng_fifo_data_cnt > 0) { in drv_trng_randnum()
/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...]
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A Ddhd_dbg_ring.c80 memset(&ring->stat, 0, sizeof(ring->stat)); in dhd_dbg_ring_deinit()
119 if (ring->stat.written_bytes > ring->stat.read_bytes) { in dhd_dbg_ring_get_pending_len()
120 pending_len = ring->stat.written_bytes - ring->stat.read_bytes; in dhd_dbg_ring_get_pending_len()
121 } else if (ring->stat.written_bytes < ring->stat.read_bytes) { in dhd_dbg_ring_get_pending_len()
122 pending_len = PENDING_LEN_MAX - ring->stat.read_bytes + ring->stat in dhd_dbg_ring_get_pending_len()
[all...]
/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...]
/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/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/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()
/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...]
/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...]

Completed in 15 milliseconds

12345678910>>...96