/base/startup/init/test/unittest/innerkits/ |
D | hookmgr_unittest.cpp | 85 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 …]
|
D | modulemgr_unittest.cpp | 98 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/ |
D | hookmgr_moduletest.cpp | 79 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 …]
|
D | modulemgr_moduletest.cpp | 38 int cnt; variable 53 cnt = ModuleMgrGetCnt(moduleMgr); 54 EXPECT_EQ(cnt, 0);
|
/base/security/certificate_framework/test/unittest/common/include/ |
D | cf_test_sdk_common.h | 25 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/ |
D | running_lock_mgr.c | 140 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/ |
D | geo_convert_callback_host.cpp | 41 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/ |
D | cf_test_sdk_common.cpp | 25 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/ |
D | dslm_baselib_utils_test.cpp | 71 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/ |
D | list.c | 220 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/ |
D | hks_adapter.c | 185 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()
|
D | external_interface_adapter.c | 191 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/ |
D | cf_param_parse.c | 25 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/ |
D | cf_param_parse.h | 25 int32_t CfConstructParamSetOut(const CfParam *params, uint32_t cnt, CfParamSet **out);
|
/base/hiviewdfx/hicollie/frameworks/native/test/moduletest/common/ |
D | xcollie_timeout_test.h | 36 void SetCallbackCnt(int cnt);
|
D | xcollie_timeout_test.cpp | 56 void XCollieTimeoutTest::SetCallbackCnt(int cnt) in SetCallbackCnt() argument 58 callbackCnt_ = cnt; in SetCallbackCnt()
|
/base/hiviewdfx/hiview/base/event_store/dao/ |
D | sys_event_query_wrapper.cpp | 35 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/ |
D | cm_ipc_client_serialization.h | 38 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/ |
D | cm_ipc_service_serialization.h | 29 … CmParamSetToParams(const struct CmParamSet *paramSet, struct CmParamOut *outParams, uint32_t cnt);
|
/base/startup/hvb/libhvb/src/crypto/ |
D | hvb_rsa_verify.c | 125 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/ |
D | hisysevent_delay_test.cpp | 42 …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/ |
D | cm_ipc_client_serialization.c | 242 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/ |
D | openssl_mock.cpp | 54 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/ |
D | cfgetandcheck_fuzzer.cpp | 42 …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/ |
D | hks_client_check_test.cpp | 129 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);
|