/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/fillp/ |
H A D | fillp_flow_control_alg0.c | 33 struct FillpFlowControlAlg0 *alg = (struct FillpFlowControlAlg0 *)flowControl->fcAlg; in FillpAlg0CalSendInterval() local 38 } else if (flowControl->sendRate > alg->maxRateAllowed) { in FillpAlg0CalSendInterval() 39 flowControl->sendRate = alg->maxRateAllowed; in FillpAlg0CalSendInterval() 45 static void FillpAlg0UpdateMaxRecvRate(struct FillpFlowControlAlg0 *alg, FILLP_UINT32 recvRate) in FillpAlg0UpdateMaxRecvRate() argument 47 FillpUpdateRecvRateSample(&alg->historyMaxRecvRate, recvRate, alg->historyMaxRecvRateIndex); in FillpAlg0UpdateMaxRecvRate() 48 alg->historyMaxRecvRateIndex = alg->historyMaxRecvRateIndex + 1; in FillpAlg0UpdateMaxRecvRate() 49 alg->historyMaxRecvRateIndex %= FILLP_FC0_PROBE_HISTORY_PACK_MAX_RATE_NUM; in FillpAlg0UpdateMaxRecvRate() 52 static void FillpAlg0FlowControlInit(struct FillpPcb *pcb, struct FillpFlowControlAlg0 *alg) in FillpAlg0FlowControlInit() argument 81 struct FillpFlowControlAlg0 *alg = FILLP_NULL_PTR; FillpAlg0FcInit() local 120 struct FillpFlowControlAlg0 *alg = (struct FillpFlowControlAlg0 *)pcb->send.flowControl.fcAlg; FillpAlg0FcDeinit() local 145 struct FillpFlowControlAlg0 *alg = (struct FillpFlowControlAlg0 *)pcb->send.flowControl.fcAlg; FillpAlg0CalMaxPackRcvInterval() local 159 struct FillpFlowControlAlg0 *alg = (struct FillpFlowControlAlg0 *)flowControl->fcAlg; FillpAlg0FcHandleInit() local 192 struct FillpFlowControlAlg0 *alg = (struct FillpFlowControlAlg0 *)flowControl->fcAlg; FillpAlg0FcHandleBwProbe() local 209 struct FillpFlowControlAlg0 *alg = (struct FillpFlowControlAlg0 *)flowControl->fcAlg; FillpAlg0PackStateProcess() local [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/ |
H A D | hash.cpp | 36 static HASH_ALGORITHM_TYPE GetHashAlgorithm(const unique_ptr<char[]> &alg, const size_t algLen) in GetHashAlgorithm() argument 38 if (algLen == string_view("md5").length() && string_view(alg.get()).compare("md5") == 0) { in GetHashAlgorithm() 40 } else if (algLen == string_view("sha1").length() && string_view(alg.get()).compare("sha1") == 0) { in GetHashAlgorithm() 42 } else if (algLen == string_view("sha256").length() && string_view(alg.get()).compare("sha256") == 0) { in GetHashAlgorithm() 58 auto [resGetSecondArg, alg, algLen] = NVal(env, funcArg[NARG_POS::SECOND]).ToUTF8String(); in GetHashArgs() 64 HASH_ALGORITHM_TYPE algType = GetHashAlgorithm(alg, algLen); in GetHashArgs()
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/src/ |
H A D | socket_opt.c | 194 static FILLP_INT SockSetFcAlg(struct FtSocket *sock, FILLP_UINT32 alg) in SockSetFcAlg() argument 214 if (alg != FILLP_ALG_ONE && alg != FILLP_ALG_TWO && alg != FILLP_ALG_THREE && in SockSetFcAlg() 215 alg != FILLP_ALG_MSG && alg != FILLP_ALG_BASE) { in SockSetFcAlg() 216 FILLP_LOGERR("alg %u is not supported", alg); in SockSetFcAlg() 220 if (alg != FILLP_ALG_BASE) { in SockSetFcAlg() 221 sock->netconn->pcb->fpcb.fcAlg = (FILLP_UINT8)FILLP_SUPPORT_ALG_N(alg); in SockSetFcAlg() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_hash/ |
H A D | hash.cpp | 32 static HASH_ALGORITHM_TYPE GetHashAlgorithm(const string &alg) in GetHashAlgorithm() argument 34 return (algorithmMaps.find(alg) != algorithmMaps.end()) ? algorithmMaps.at(alg) : HASH_ALGORITHM_TYPE_UNSUPPORTED; in GetHashAlgorithm() 47 auto [resGetSecondArg, alg, ignore] = NVal(env, funcArg[NARG_POS::SECOND]).ToUTF8String(); in GetHashArgs() 54 HASH_ALGORITHM_TYPE algType = GetHashAlgorithm(alg.get()); in GetHashArgs()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_hash/class_hashstream/ |
H A D | hashstream_n_exporter.cpp | 28 static HASH_ALGORITHM_TYPE GetHashAlgorithm(const string &alg) in GetHashAlgorithm() argument 30 return (algorithmMaps.find(alg) != algorithmMaps.end()) ? algorithmMaps.at(alg) : HASH_ALGORITHM_TYPE_UNSUPPORTED; in GetHashAlgorithm() 104 auto [succAlg, alg, ignore] = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in Constructor() 111 HASH_ALGORITHM_TYPE algType = GetHashAlgorithm(alg.get()); in Constructor()
|
/foundation/multimedia/camera_framework/test/fuzztest/smoothzoom_fuzzer/ |
H A D | smooth_zoom_fuzzer.cpp | 68 auto alg = fuzz->GetZoomAlgorithm(mode);
in Test() local 74 alg->GetZoomArray(currentZoom, targetZoom, frameInterval);
in Test()
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/ |
H A D | wifi_hdi_wpa_client_test.cpp | 1460 unsigned int alg = 1; in HWTEST_F() local 1461 int result = wifiHdiWpaClient->PushDeviceConfigAuthAlgorithm(&pConfig, type, alg); in HWTEST_F() 1464 alg = 3; in HWTEST_F() 1465 result = wifiHdiWpaClient->PushDeviceConfigAuthAlgorithm(&pConfig, type, alg); in HWTEST_F() 1468 alg = 5; in HWTEST_F() 1469 result = wifiHdiWpaClient->PushDeviceConfigAuthAlgorithm(&pConfig, type, alg); in HWTEST_F() 1472 alg = 7; in HWTEST_F() 1473 result = wifiHdiWpaClient->PushDeviceConfigAuthAlgorithm(&pConfig, type, alg); in HWTEST_F()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/ |
H A D | wifi_hdi_wpa_client.h | 842 int PushDeviceConfigAuthAlgorithm(SetNetworkConfig *pConfig, DeviceConfigType type, unsigned int alg) const;
|
H A D | wifi_hdi_wpa_client.cpp | 549 SetNetworkConfig *pConfig, DeviceConfigType type, unsigned int alg) const
in PushDeviceConfigAuthAlgorithm() 552 if (alg & 0x1) {
in PushDeviceConfigAuthAlgorithm() 557 if (alg & 0x2) {
in PushDeviceConfigAuthAlgorithm() 562 if (alg & 0x4) {
in PushDeviceConfigAuthAlgorithm()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/idl_client/ |
H A D | wifi_idl_client.h | 1115 int PushDeviceConfigAuthAlgorithm(SetNetworkConfig *pConfig, DeviceConfigType type, unsigned int alg) const;
|
H A D | wifi_idl_client.cpp | 473 SetNetworkConfig *pConfig, DeviceConfigType type, unsigned int alg) const in PushDeviceConfigAuthAlgorithm() 476 if (alg & 0x1) { in PushDeviceConfigAuthAlgorithm() 481 if (alg & 0x2) { in PushDeviceConfigAuthAlgorithm() 486 if (alg & 0x4) { in PushDeviceConfigAuthAlgorithm()
|