Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 25 of 53) sorted by relevance

123

/base/startup/init/test/unittest/innerkits/
Dhookmgr_unittest.cpp85 int cnt; variable
87 cnt = HookMgrGetStagesCnt(nullptr);
88 EXPECT_EQ(cnt, 0);
93 cnt = HookMgrGetHooksCnt(nullptr, STAGE_TEST_ONE);
94 EXPECT_EQ(cnt, 1);
95 cnt = HookMgrGetStagesCnt(nullptr);
96 EXPECT_EQ(cnt, 1);
102 cnt = HookMgrGetHooksCnt(nullptr, STAGE_TEST_ONE);
103 EXPECT_EQ(cnt, 1);
109 cnt = HookMgrGetHooksCnt(nullptr, STAGE_TEST_ONE);
[all …]
Dmodulemgr_unittest.cpp98 int cnt = ModuleMgrGetCnt(moduleMgr); variable
99 ASSERT_EQ(cnt, 0);
103 cnt = ModuleMgrGetCnt(moduleMgr);
104 ASSERT_EQ(cnt, 1);
117 cnt = ModuleMgrGetCnt(moduleMgr);
118 ASSERT_GE(cnt, 0);
121 cnt = ModuleMgrGetCnt(moduleMgr);
122 ASSERT_EQ(cnt, 0);
/base/startup/init/test/moduletest/
Dhookmgr_moduletest.cpp79 int cnt; variable
85 cnt = HookMgrGetHooksCnt(g_hookMgr, STAGE_TEST_ONE);
86 EXPECT_EQ(cnt, 1);
94 cnt = HookMgrGetHooksCnt(g_hookMgr, STAGE_TEST_ONE);
95 EXPECT_EQ(cnt, 2);
96 cnt = HookMgrGetStagesCnt(g_hookMgr);
97 EXPECT_EQ(cnt, 1);
111 cnt = HookMgrGetHooksCnt(g_hookMgr, STAGE_TEST_ONE);
112 EXPECT_EQ(cnt, 2);
115 cnt = HookMgrGetHooksCnt(g_hookMgr, STAGE_TEST_ONE);
[all …]
Dmodulemgr_moduletest.cpp38 int cnt; variable
53 cnt = ModuleMgrGetCnt(moduleMgr);
54 EXPECT_EQ(cnt, 0);
/base/security/certificate_framework/test/unittest/common/include/
Dcf_test_sdk_common.h25 int32_t TestConstructParamSetIn(const CfParam *params, uint32_t cnt, CfParamSet **paramSet);
28 const CfParam *params, uint32_t cnt, CfParamSet **outParamSet);
31 const CfParam *params, uint32_t cnt, int32_t optype);
/base/powermgr/powermgr_lite/services/src/
Drunning_lock_mgr.c140 uint32_t cnt = 0; in RunningLockMgrGetLockCount() local
143 cnt = VECTOR_Num(&g_runningLocks[type]); in RunningLockMgrGetLockCount()
146 return cnt; in RunningLockMgrGetLockCount()
151 uint32_t cnt = 0; in RunningLockMgrGetTotalLockCount() local
154 cnt += VECTOR_Num(&g_runningLocks[t]); in RunningLockMgrGetTotalLockCount()
157 POWER_HILOGD("Total lock count: %u", cnt); in RunningLockMgrGetTotalLockCount()
158 return cnt; in RunningLockMgrGetTotalLockCount()
/base/location/services/location_geocode/geocode/source/
Dgeo_convert_callback_host.cpp41 int cnt = data.ReadInt32(); in OnRemoteRequest() local
42 if (cnt > MAX_RESULT) { in OnRemoteRequest()
43 cnt = MAX_RESULT; in OnRemoteRequest()
46 for (int i = 0; i < cnt; i++) { in OnRemoteRequest()
/base/security/certificate_framework/test/unittest/common/src/
Dcf_test_sdk_common.cpp25 int32_t CertframeworkSdkTest::TestConstructParamSetIn(const CfParam *params, uint32_t cnt, CfParamS… in TestConstructParamSetIn() argument
33 ret = CfAddParams(tmp, params, cnt); in TestConstructParamSetIn()
50 const CfParam *params, uint32_t cnt, CfParamSet **outParamSet) in CommonTest() argument
59 ret = TestConstructParamSetIn(params, cnt, &inParamSet); in CommonTest()
77 const CfParam *params, uint32_t cnt, int32_t optype) in AbnormalTest() argument
86 ret = TestConstructParamSetIn(params, cnt, &inParamSet); in AbnormalTest()
/base/security/device_security_level/test/dslm_unit_test/
Ddslm_baselib_utils_test.cpp71 uint32_t cnt = 0; variable
77 cnt = 0;
81 uint32_t ret = Deserialize(nullptr, sizeof(buff), &tlvs[0], MAX_ENTRY, &cnt);
91 cnt = 0;
100 uint32_t ret = Deserialize(buff, sizeof(buff), &tlvs[0], MAX_ENTRY, &cnt);
102 EXPECT_EQ(0U, cnt);
115 uint32_t cnt = 0; variable
121 cnt = 0;
131 uint32_t ret = Deserialize(buff, sizeof(buff), &tlvs[0], MAX_ENTRY, &cnt);
133 EXPECT_EQ(0U, cnt);
/base/startup/init/services/utils/
Dlist.c220 int cnt; in OH_ListGetCnt() local
227 cnt = 0; in OH_ListGetCnt()
229 cnt++; in OH_ListGetCnt()
231 return cnt; in OH_ListGetCnt()
/base/security/device_security_level/oem_property/ohos/common/
Dhks_adapter.c185 uint32_t cnt = 0; in BufferToHksCertChain() local
186 uint32_t ret = Deserialize(data, dataLen, &tlvs[0], MAX_ENTRY, &cnt); in BufferToHksCertChain()
187 if (ret != TLV_OK || cnt == 0 || cnt > MAX_ENTRY) { in BufferToHksCertChain()
191 for (uint32_t i = 0; i < cnt; i++) { in BufferToHksCertChain()
Dexternal_interface_adapter.c191 uint32_t cnt = 0; in ValidateCertChainAdapter() local
192 struct HksBlob *blob = &outputParam->params[cnt].blob; in ValidateCertChainAdapter()
197 blob = &outputParam->params[++cnt].blob; in ValidateCertChainAdapter()
202 blob = &outputParam->params[++cnt].blob; in ValidateCertChainAdapter()
/base/security/certificate_framework/frameworks/core/param/src/
Dcf_param_parse.c25 int32_t CfConstructParamSetOut(const CfParam *params, uint32_t cnt, CfParamSet **out) in CfConstructParamSetOut() argument
34 ret = CfAddParams(tmp, params, cnt); in CfConstructParamSetOut()
/base/security/certificate_framework/frameworks/core/param/inc/
Dcf_param_parse.h25 int32_t CfConstructParamSetOut(const CfParam *params, uint32_t cnt, CfParamSet **out);
/base/hiviewdfx/hicollie/frameworks/native/test/moduletest/common/
Dxcollie_timeout_test.h36 void SetCallbackCnt(int cnt);
Dxcollie_timeout_test.cpp56 void XCollieTimeoutTest::SetCallbackCnt(int cnt) in SetCallbackCnt() argument
58 callbackCnt_ = cnt; in SetCallbackCnt()
/base/hiviewdfx/hiview/base/event_store/dao/
Dsys_event_query_wrapper.cpp35 int cnt = 0; in GetSubStrCount() local
37 return cnt; in GetSubStrCount()
42 cnt++; in GetSubStrCount()
44 return cnt; in GetSubStrCount()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/include/
Dcm_ipc_client_serialization.h38 int32_t CmParamsToParamSet(struct CmParam *params, uint32_t cnt, struct CmParamSet **outParamSet);
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/
Dcm_ipc_service_serialization.h29 … CmParamSetToParams(const struct CmParamSet *paramSet, struct CmParamOut *outParams, uint32_t cnt);
/base/startup/hvb/libhvb/src/crypto/
Dhvb_rsa_verify.c125 uint32_t cnt = 0; in rsa_gen_mask_mgf_v1() local
161 for (cnt = 0; cnt < cnt_maxsize; cnt++) { in rsa_gen_mask_mgf_v1()
163 pc[seed_len + sizeof(uint32_t) - sizeof(uint8_t)] = cnt; in rsa_gen_mask_mgf_v1()
/base/hiviewdfx/hisysevent/test/moduletest/common/
Dhisysevent_delay_test.cpp42 …iteStringWithLength(const std::string testCaseName, const std::string testCaseDescription, int cnt) in WriteStringWithLength() argument
45 param.append(cnt, 'a'); in WriteStringWithLength()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/src/
Dcm_ipc_client_serialization.c242 int32_t CmParamsToParamSet(struct CmParam *params, uint32_t cnt, struct CmParamSet **outParamSet) in CmParamsToParamSet() argument
255 for (uint32_t i = 0; i < cnt; ++i) { in CmParamsToParamSet()
263 ret = CmAddParams(newParamSet, params, cnt); in CmParamsToParamSet()
/base/security/dlp_permission_service/frameworks/test/mock/
Dopenssl_mock.cpp54 typedef int (*EvpDigestUpdate)(EVP_MD_CTX *ctx, const void *d, size_t cnt);
386 int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *d, size_t cnt) in EVP_DigestUpdate() argument
397 return (*func)(ctx, d, cnt); in EVP_DigestUpdate()
/base/security/certificate_framework/test/fuzztest/cfgetandcheck_fuzzer/
Dcfgetandcheck_fuzzer.cpp42 …void TestCommonfunc(const CfObject *object, uint32_t cnt, const CfParam *params, uint32_t functype) in TestCommonfunc() argument
46 int32_t ret = TestConstructParamSetIn(params, cnt, &inParamSet); in TestCommonfunc()
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/core/src/
Dhks_client_check_test.cpp129 uint32_t cnt = 0; variable
131 int32_t ret = HksCheckGetKeyInfoListParams(&processName, &keyInfo, &cnt);
145 uint32_t cnt = 0; variable
146 int32_t ret = HksCheckGetKeyInfoListParams(&processName, nullptr, &cnt);

123