/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
D | hks_mbedtls_engine.c | 47 Hmac func = (Hmac)GetAbility(HKS_CRYPTO_ABILITY_HMAC); in HksCryptoHalHmac() local 48 HKS_IF_NULL_RETURN(func, HKS_ERROR_INVALID_ARGUMENT) in HksCryptoHalHmac() 49 return func(key, digestAlg, msg, mac); in HksCryptoHalHmac() 59 HmacInit func = (HmacInit)GetAbility(HKS_CRYPTO_ABILITY_HMAC_INIT); in HksCryptoHalHmacInit() local 60 HKS_IF_NULL_RETURN(func, HKS_ERROR_INVALID_ARGUMENT) in HksCryptoHalHmacInit() 62 return func(ctx, key, digestAlg); in HksCryptoHalHmacInit() 72 HmacUpdate func = (HmacUpdate)GetAbility(HKS_CRYPTO_ABILITY_HMAC_UPDATE); in HksCryptoHalHmacUpdate() local 73 HKS_IF_NULL_RETURN(func, HKS_ERROR_INVALID_ARGUMENT) in HksCryptoHalHmacUpdate() 75 return func(ctx, chunk); in HksCryptoHalHmacUpdate() 85 HmacFinal func = (HmacFinal)GetAbility(HKS_CRYPTO_ABILITY_HMAC_FINAL); in HksCryptoHalHmacFinal() local [all …]
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
D | hks_openssl_engine.c | 174 FillRandom func = (FillRandom)GetAbility(HKS_CRYPTO_ABILITY_FILL_RANDOM); in HksCryptoHalFillRandom() 175 HKS_IF_NULL_RETURN(func, HKS_ERROR_INVALID_ARGUMENT) in HksCryptoHalFillRandom() 176 return func(randomData); in HksCryptoHalFillRandom() 183 FillRandom func = (FillRandom)GetAbility(HKS_CRYPTO_ABILITY_FILL_PRI_RANDOM); in HksCryptoHalFillPrivRandom() 184 HKS_IF_NULL_RETURN(func, HKS_ERROR_INVALID_ARGUMENT) in HksCryptoHalFillPrivRandom() 185 return func(randomData); in HksCryptoHalFillPrivRandom() 202 PubKey func = (PubKey)GetAbility(HKS_CRYPTO_ABILITY_GET_PUBLIC_KEY(key->keyAlg)); in HksCryptoHalGetPubKey() local 203 HKS_IF_NULL_LOGE_RETURN(func, HKS_ERROR_INVALID_ARGUMENT, in HksCryptoHalGetPubKey() 205 return func(keyIn, keyOut); in HksCryptoHalGetPubKey() 210 GetMainKey func = (GetMainKey)GetAbility(HKS_CRYPTO_ABILITY_GET_MAIN_KEY); in HksCryptoHalGetMainKey() local [all …]
|
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/src/ |
D | cJSON.c | 64 cJSON* (*func)(const cJSON* const object, const char* const string); in cJSON_GetObjectItem() local 65 …func = (cJSON* (*)(const cJSON* const object, const char* const string))dlsym(handle, "cJSON_GetOb… in cJSON_GetObjectItem() 66 if (func == NULL) { in cJSON_GetObjectItem() 69 cJSON* res = func(object, string); in cJSON_GetObjectItem() 83 cJSON_bool (*func)(const cJSON* const item); in cJSON_IsNumber() local 84 func = (cJSON_bool (*)(const cJSON* const item))dlsym(handle, "cJSON_IsNumber"); in cJSON_IsNumber() 85 if (func == NULL) { in cJSON_IsNumber() 88 cJSON_bool res = func(item); in cJSON_IsNumber() 106 cJSON_bool (*func)(const cJSON* const item); in cJSON_IsString() local 107 func = (cJSON_bool (*)(const cJSON* const item))dlsym(handle, "cJSON_IsString"); in cJSON_IsString() [all …]
|
/base/security/device_auth/frameworks/deviceauth_lite/source/log/ |
D | log.c | 32 static void hc_logd(const char *tag, const char *func, const char *format, ...); 33 static void hc_logi(const char *tag, const char *func, const char *format, ...); 34 static void hc_logw(const char *tag, const char *func, const char *format, ...); 35 static void hc_loge(const char *tag, const char *func, const char *format, ...); 78 static void hc_logd(const char *tag, const char *func, const char *format, ...) in hc_logd() argument 81 (void)func; in hc_logd() 85 static void hc_logi(const char *tag, const char *func, const char *format, ...) in hc_logi() argument 88 (void)func; in hc_logi() 92 static void hc_logw(const char *tag, const char *func, const char *format, ...) in hc_logw() argument 95 (void)func; in hc_logw() [all …]
|
/base/usb/usb_manager/test/fuzztest/usbmgrusbfunctionstostring_fuzzer/ |
D | usbmgrusbfunctionstostring_fuzzer.cpp | 30 int32_t func = reinterpret_cast<int32_t>(data); in UsbMgrUsbFunctionsToStringFuzzTest() local 31 if (func <= MAX_FUNC_NUM) { in UsbMgrUsbFunctionsToStringFuzzTest() 32 func += MAX_FUNC_NUM; in UsbMgrUsbFunctionsToStringFuzzTest() 35 if (usbSrvClient.UsbFunctionsToString(func) != "") { in UsbMgrUsbFunctionsToStringFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/usbmgrsetcurrentfunctions_fuzzer/ |
D | usbmgrsetcurrentfunctions_fuzzer.cpp | 30 int32_t func = reinterpret_cast<int32_t>(data); in UsbMgrSetCurrentFunctionsFuzzTest() local 31 if (func <= MAX_FUNC_NUM) { in UsbMgrSetCurrentFunctionsFuzzTest() 32 func += MAX_FUNC_NUM; in UsbMgrSetCurrentFunctionsFuzzTest() 35 if (usbSrvClient.SetCurrentFunctions(func) == UEC_OK) { in UsbMgrSetCurrentFunctionsFuzzTest()
|
/base/hiviewdfx/hilog_lite/frameworks/mini/ |
D | hiview_output_log.h | 73 void HiviewRegisterHilogProc(HilogProc func); 78 void HiviewUnRegisterHilogProc(HilogProc func); 92 void HiviewRegisterHiLogFileWatcher(FileProc func, const char *dest); 99 void HiviewUnRegisterHiLogFileWatcher(FileProc func);
|
D | hiview_log.c | 191 void HiLogRegisterProc(HilogProc func) in HiLogRegisterProc() argument 193 HiviewRegisterHilogProc(func); in HiLogRegisterProc() 196 void HiLogUnRegisterProc(HilogProc func) in HiLogUnRegisterProc() argument 198 HiviewUnRegisterHilogProc(func); in HiLogUnRegisterProc() 201 void HiLogFileAddWatcher(FileProc func, const char *path) in HiLogFileAddWatcher() argument 203 HiviewRegisterHiLogFileWatcher(func, path); in HiLogFileAddWatcher() 206 void HiLogFileRemoveWatcher(FileProc func) in HiLogFileRemoveWatcher() argument 208 HiviewUnRegisterHiLogFileWatcher(func); in HiLogFileRemoveWatcher()
|
/base/security/huks/frameworks/huks_standard/main/common/src/ |
D | hks_ability.c | 25 int32_t RegisterAbility(uint32_t id, void *func) in RegisterAbility() argument 34 g_abilityList[i].func = func; in RegisterAbility() 46 return g_abilityList[i].func; in GetAbility()
|
/base/hiviewdfx/hievent_lite/frameworks/ |
D | hiview_output_event.h | 75 void HiviewRegisterHieventProc(HieventProc func); 80 void HiviewUnRegisterHieventProc(HieventProc func); 98 void HiviewRegisterHieventFileWatcher(uint8 type, FileProc func, const char *dest); 105 void HiviewUnRegisterHieventFileWatcher(uint8 type, FileProc func);
|
D | hiview_event.c | 178 void HiEventRegisterProc(HieventProc func) in HiEventRegisterProc() argument 180 HiviewRegisterHieventProc(func); in HiEventRegisterProc() 183 void HiEventUnRegisterProc(HieventProc func) in HiEventUnRegisterProc() argument 185 HiviewUnRegisterHieventProc(func); in HiEventUnRegisterProc() 188 void HiEventFileAddWatcher(uint8 type, FileProc func, const char *path) in HiEventFileAddWatcher() argument 190 HiviewRegisterHieventFileWatcher(type, func, path); in HiEventFileAddWatcher() 193 void HiEventFileRemoveWatcher(uint8 type, FileProc func) in HiEventFileRemoveWatcher() argument 195 HiviewUnRegisterHieventFileWatcher(type, func); in HiEventFileRemoveWatcher()
|
/base/telephony/ril_adapter/services/hril/src/ |
D | hril_timer_callback.cpp | 48 if (pCbMsg->func != nullptr) { in TimerCallback() 49 pCbMsg->func(pCbMsg->param); in TimerCallback() 69 HRilCallbackFun func, uint8_t *param, const struct timeval *tv) in HRilSetTimerCallbackInfo() argument 77 pCbMsg->func = func; in HRilSetTimerCallbackInfo() 113 …auto func = std::bind(&HRilTimerCallback::FdTriggerCallback, this, std::placeholders::_1, std::pla… in EventLoop() local 115 event_->SetTimerEvent(fdTriggerEvent_, triggerReadFd_, true, func, NULL); in EventLoop()
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
D | write_controller.cpp | 37 const char* func, int64_t line) in CheckLimitWritingEvent() argument 41 std::string key = ConcatenateInfoAsKey(eventName, func, line); in CheckLimitWritingEvent() 65 stat.count - param.threshold, domain, eventName, func); in CheckLimitWritingEvent() 69 std::string WriteController::ConcatenateInfoAsKey(const char* eventName, const char* func, int64_t … in ConcatenateInfoAsKey() argument 72 ss << eventName << STR_CONCAT << std::string(func) << STR_CONCAT << line; in ConcatenateInfoAsKey()
|
/base/hiviewdfx/hicollie/frameworks/native/test/moduletest/common/ |
D | xcollie_timeout_test.cpp | 102 auto func = [this](void *data) { in __anon81ec7d920102() variable 109 int id = XCollie::GetInstance().SetTimer("TimeoutTimer", 1, func, this, XCOLLIE_FLAG_NOOP); 134 auto func = [this](void *data) { in __anon81ec7d920202() variable 143 … id[i] = XCollie::GetInstance().SetTimer("TimeoutTimer", 1, func, this, XCOLLIE_FLAG_DEFAULT); 183 auto func = [this](void *data) { in __anon81ec7d920302() variable 191 … int last = XCollie::GetInstance().SetTimer("TimeoutTimer", 61, func, nullptr, XCOLLIE_FLAG_NOOP);
|
/base/security/device_auth/services/frameworks/src/hiview_adapter/ |
D | hidump_adapter.c | 28 void RegisterDumpFunc(DumpCallBack func) in RegisterDumpFunc() argument 30 g_dumpCallBack = func; in RegisterDumpFunc()
|
D | hiview_mock.c | 40 void RegisterDumpFunc(DumpCallBack func) in RegisterDumpFunc() argument 42 (void)func; in RegisterDumpFunc()
|
/base/security/device_security_level/oem_property/ohos/ |
D | dslm_ohos_credential.c | 25 const ProcessDslmCredFunctions func = { in Constructor() local 32 InitDslmCredentialFunctions(&func); in Constructor()
|
/base/telephony/ril_adapter/services/hril/include/ |
D | hril_base.h | 88 …int32_t serial, int32_t requestId, ReqFuncSet reqFuncSet, FuncPointer func, ValueTypes &&... vals); 107 … int32_t serial, int32_t requestId, ReqFuncSet reqFuncSet, FuncPointer func, ValueTypes &&... vals) in RequestVendor() argument 109 if (reqFuncSet == nullptr || (reqFuncSet->*func) == nullptr) { in RequestVendor() 129 (reqFuncSet->*func)(requestInfo, std::forward<ValueTypes>(vals)...); in RequestVendor() 150 auto func = GetFunc<RespFunc>(respMemberFuncMap_, code); in ProcessResponse() local 151 if (func != nullptr) { in ProcessResponse() 152 return (static_cast<T *>(this)->*func)(code, responseInfo, response, responseLen); in ProcessResponse() 167 auto func = GetFunc<NotiFunc>(notiMemberFuncMap_, code); in ProcessNotify() local 168 if (func != nullptr) { in ProcessNotify() 169 return (static_cast<T *>(this)->*func)(notifyType, error, response, responseLen); in ProcessNotify()
|
/base/powermgr/power_manager/utils/setting/src/ |
D | setting_observer.cpp | 40 void SettingObserver::SetUpdateFunc(UpdateFunc& func) in SetUpdateFunc() argument 42 update_ = func; in SetUpdateFunc()
|
/base/security/device_auth/services/group_manager/src/ |
D | group_manager_common.c | 23 static int32_t InitGroupManagerTask(GroupManagerTask *task, GMTaskParams *taskParams, TaskFunc func) in InitGroupManagerTask() argument 25 task->base.doAction = func; in InitGroupManagerTask() 80 …InitAndPushGMTask(int32_t osAccountId, int32_t opCode, int64_t reqId, CJson *params, TaskFunc func) in InitAndPushGMTask() argument 92 if (InitGroupManagerTask(task, &taskParams, func) != HC_SUCCESS) { in InitAndPushGMTask()
|
/base/customization/enterprise_device_management/framework/extension/src/ |
D | enterprise_admin_stub.cpp | 75 auto func = memberFuncMap_.find(code); in OnRemoteRequest() local 76 if (func != memberFuncMap_.end()) { in OnRemoteRequest() 77 auto memberFunc = func->second; in OnRemoteRequest()
|
/base/hiviewdfx/hievent_lite/interfaces/native/innerkits/ |
D | hiview_event.h | 126 void HiEventRegisterProc(HieventProc func); 131 void HiEventUnRegisterProc(HieventProc func); 140 void HiEventFileAddWatcher(uint8 type, FileProc func, const char *dest); 148 void HiEventFileRemoveWatcher(uint8 type, FileProc func);
|
/base/hiviewdfx/hiview/base/ |
D | plugin_factory.cpp | 49 void PluginFactory::RegisterPlugin(const std::string& name, std::shared_ptr<PluginRegistInfo> func) in RegisterPlugin() argument 51 if (func->getPluginObject == nullptr) { in RegisterPlugin() 58 pluginMap->insert(std::pair<std::string, std::shared_ptr<PluginRegistInfo>>(name, func)); in RegisterPlugin()
|
/base/hiviewdfx/hicollie/frameworks/native/ |
D | xcollie.cpp | 37 … XCollie::SetTimer(const std::string &name, unsigned int timeout, std::function<void(void *)> func, in SetTimer() argument 40 return XCollieInner::GetInstance().SetTimer(name, timeout, func, arg, flag); in SetTimer()
|
/base/hiviewdfx/hiview_lite/ |
D | hiview_service.c | 117 void HiviewRegisterInitFunc(HiviewComponentType type, HiviewInitFunc func) in HiviewRegisterInitFunc() argument 119 g_hiviewInitFuncList[type] = func; in HiviewRegisterInitFunc() 122 void HiviewRegisterMsgHandle(HiviewInnerMessage type, HiviewMsgHandle func) in HiviewRegisterMsgHandle() argument 124 g_hiviewMsgHandleList[type] = func; in HiviewRegisterMsgHandle()
|