Home
last modified time | relevance | path

Searched refs:funcs (Results 1 – 25 of 30) sorted by relevance

12

/base/security/device_auth/frameworks/deviceauth_lite/source/key_agreement/
Dkey_agreement_server.c29 void init_server(struct key_agreement_server *handle, const struct server_virtual_func_group *funcs) in init_server() argument
32 check_ptr_return(funcs); in init_server()
34 handle->package_funcs = *funcs; in init_server()
50 const struct server_virtual_func_group *funcs = &server->package_funcs; in send_start_response() local
51 int32_t ret = funcs->parse_start_request_data(handle, receive_data); in send_start_response()
57 ret = funcs->build_start_response_data(handle, send_data); in send_start_response()
82 const struct server_virtual_func_group *funcs = &server->package_funcs; in send_end_response() local
83 int32_t ret = funcs->parse_end_request_data(handle, receive_data); in send_end_response()
89 ret = funcs->build_end_response_data(handle, send_data); in send_end_response()
Dkey_agreement_client.c28 void init_client(struct key_agreement_client *handle, struct client_virtual_func_group *funcs) in init_client() argument
31 check_ptr_return(funcs); in init_client()
33 handle->package_funcs = *funcs; in init_client()
48 struct client_virtual_func_group *funcs = &client->package_funcs; in send_start_request() local
49 int32_t ret = funcs->build_start_request_data(handle, send_data); in send_start_request()
74 struct client_virtual_func_group *funcs = &client->package_funcs; in send_end_request() local
75 int32_t ret = funcs->parse_start_response_data(handle, receive_data); in send_end_request()
81 ret = funcs->build_end_request_data(handle, send_data); in send_end_request()
106 struct client_virtual_func_group *funcs = &client->package_funcs; in receive_end_response() local
107 int32_t ret = funcs->parse_end_response_data(handle, receive_data); in receive_end_response()
Dkey_agreement_server.h35 void init_server(struct key_agreement_server *handle, const struct server_virtual_func_group *funcs
Dkey_agreement_client.h35 void init_client(struct key_agreement_client *handle, struct client_virtual_func_group *funcs);
Dpake_server.c50 …const struct server_virtual_func_group funcs = { parse_start_request_data, build_start_response_da… in build_pake_server() local
52 init_server(&pake_server->server_info, &funcs); in build_pake_server()
/base/update/updater/services/ui/control/
Dcallback_manager.cpp63 static std::unordered_map<std::string, Callback> funcs; in GetFuncs() local
64 return funcs; in GetFuncs()
74 auto &funcs = GetFuncs(); in Register() local
75 auto itFunc = funcs.find(cbCfg.func); in Register()
76 if (itFunc == funcs.end()) { in Register()
/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_core_test.cpp80 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE); variable
81 int32_t ret = instance.GetCurrentFunctions(funcs);
97 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE); variable
98 int32_t ret = instance.GetCurrentFunctions(funcs);
144 int32_t funcs = UsbSrvSupport::FUNCTION_ACM | UsbSrvSupport::FUNCTION_ECM; variable
145 int32_t isok = instance.SetCurrentFunctions(funcs);
175 int32_t funcs = UsbSrvSupport::FUNCTION_ACM | UsbSrvSupport::FUNCTION_HDC; variable
176 int32_t isok = instance.SetCurrentFunctions(funcs);
191 int32_t funcs = UsbSrvSupport::FUNCTION_ECM | UsbSrvSupport::FUNCTION_HDC; variable
192 int32_t isok = instance.SetCurrentFunctions(funcs);
[all …]
/base/usb/usb_manager/interfaces/innerkits/native/include/
Dusb_srv_client.h54 int32_t GetCurrentFunctions(int32_t &funcs);
55 int32_t SetCurrentFunctions(int32_t funcs);
56 int32_t UsbFunctionsFromString(std::string_view funcs);
57 std::string UsbFunctionsToString(int32_t funcs);
Diusb_srv.h34 virtual int32_t GetCurrentFunctions(int32_t &funcs) = 0;
35 virtual int32_t SetCurrentFunctions(int32_t funcs) = 0;
36 virtual int32_t UsbFunctionsFromString(std::string_view funcs) = 0;
37 virtual std::string UsbFunctionsToString(int32_t funcs) = 0;
/base/usb/usb_manager/test/tool/
Dusb_function_port_test.cpp58 int32_t funcs = 0; in GetCurrentFunctionInfo() local
60 int32_t ret = g_usbClient.GetCurrentFunctions(funcs); in GetCurrentFunctionInfo()
65 strFun = g_usbClient.UsbFunctionsToString(funcs); in GetCurrentFunctionInfo()
/base/security/device_security_level/services/dslm/
Ddslm_credential.c34 bool InitDslmCredentialFunctions(const ProcessDslmCredFunctions *funcs) in InitDslmCredentialFunctions() argument
36 if (funcs == NULL) { in InitDslmCredentialFunctions()
40 (void)memcpy_s(cb, sizeof(ProcessDslmCredFunctions), funcs, sizeof(ProcessDslmCredFunctions)); in InitDslmCredentialFunctions()
/base/usb/usb_manager/interfaces/kits/js/
D@ohos.usbManager.d.ts100 function usbFunctionsFromString(funcs: string): number;
112 function usbFunctionsToString(funcs: FunctionType): string;
125 function setCurrentFunctions(funcs: FunctionType): Promise<void>;
/base/usb/usb_manager/test/native/mock/src/
Dusb_core_mock_test.cpp132 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE); variable
134 auto ret = usbSrv_->GetCurrentFunctions(funcs);
175 int32_t funcs = UsbSrvSupport::FUNCTION_ACM | UsbSrvSupport::FUNCTION_ECM; variable
177 int32_t isok = usbSrv_->SetCurrentFunctions(funcs);
204 int32_t funcs = UsbSrvSupport::FUNCTION_ACM | UsbSrvSupport::FUNCTION_HDC; variable
206 int32_t isok = usbSrv_->SetCurrentFunctions(funcs);
219 int32_t funcs = UsbSrvSupport::FUNCTION_ECM | UsbSrvSupport::FUNCTION_HDC; variable
221 int32_t isok = usbSrv_->SetCurrentFunctions(funcs);
318 std::string funcs = "qwerts"; variable
319 int32_t funcCode = usbSrv_->UsbFunctionsFromString(funcs);
[all …]
/base/usb/usb_manager/services/native/include/
Dusb_device_manager.h35 static bool AreSettableFunctions(int32_t funcs);
38 static uint32_t ConvertFromString(std::string_view funcs);
Dusb_service.h73 int32_t GetCurrentFunctions(int32_t &funcs) override;
74 int32_t SetCurrentFunctions(int32_t funcs) override;
75 int32_t UsbFunctionsFromString(std::string_view funcs) override;
76 std::string UsbFunctionsToString(int32_t funcs) override;
/base/usb/usb_manager/services/zidl/include/
Dusb_server_proxy.h40 int32_t GetCurrentFunctions(int32_t &funcs) override;
41 int32_t SetCurrentFunctions(int32_t funcs) override;
42 int32_t UsbFunctionsFromString(std::string_view funcs) override;
43 std::string UsbFunctionsToString(int32_t funcs) override;
/base/usb/usb_manager/interfaces/innerkits/native/src/
Dusb_srv_client.cpp138 int32_t UsbSrvClient::GetCurrentFunctions(int32_t &funcs) in GetCurrentFunctions() argument
141 int32_t ret = proxy_->GetCurrentFunctions(funcs); in GetCurrentFunctions()
149 int32_t UsbSrvClient::SetCurrentFunctions(int32_t funcs) in SetCurrentFunctions() argument
152 int32_t ret = proxy_->SetCurrentFunctions(funcs); in SetCurrentFunctions()
161 int32_t UsbSrvClient::UsbFunctionsFromString(std::string_view funcs) in UsbFunctionsFromString() argument
164 int32_t result = proxy_->UsbFunctionsFromString(funcs); in UsbFunctionsFromString()
169 std::string UsbSrvClient::UsbFunctionsToString(int32_t funcs) in UsbFunctionsToString() argument
173 result = proxy_->UsbFunctionsToString(funcs); in UsbFunctionsToString()
/base/telephony/ril_adapter/services/hril/include/
Dhril_base.h98 F GetFunc(std::map<uint32_t, std::any> &funcs, uint32_t code);
134 F HRilBase::GetFunc(std::map<uint32_t, std::any> &funcs, uint32_t code) in GetFunc() argument
136 auto itFunc = funcs.find(code); in GetFunc()
137 if (itFunc != funcs.end()) { in GetFunc()
/base/usb/usb_manager/
DREADME_zh.md61 | int32_t GetCurrentFunctions(int32_t &funcs); | 获取从设备支持的功能列表(按位域表示) |
62 | int32_t SetCurrentFunctions(int32_t funcs); | 设置从设备支持的功能列表(按位域表示) |
63 | int32_t UsbFunctionsFromString(std::string funcs); | 将给定的功能列表描述字符串转换为功能列表的数字组合掩码 |
64 | std::string UsbFunctionsToString(int32_t funcs); | 将给定的功能列表的数字组合掩码转换为功能列表描述字符串 |
DREADME.md68 | int32_t GetCurrentFunctions(int32_t &funcs); | Obtains the list of functions (represented by…
69 | int32_t SetCurrentFunctions(int32_t funcs); | Sets the list of functions (represented by bi…
70 | int32_t UsbFunctionsFromString(std::string funcs); | Converts the string descriptor of a given US…
71 | std::string UsbFunctionsToString(int32_t funcs); | Converts the numeric mask combination of a g…
/base/usb/usb_manager/services/native/src/
Dusb_device_manager.cpp77 bool UsbDeviceManager::AreSettableFunctions(int32_t funcs) in AreSettableFunctions() argument
79 return static_cast<uint32_t>(funcs) == UsbSrvSupport::FUNCTION_NONE || in AreSettableFunctions()
80 ((~functionSettable_ & static_cast<uint32_t>(funcs)) == 0); in AreSettableFunctions()
/base/usb/usb_manager/test/native/mock/include/
Dusb_impl_mock.h93 MOCK_METHOD1(GetCurrentFunctions, int32_t(int32_t &funcs));
94 MOCK_METHOD1(SetCurrentFunctions, int32_t(int32_t funcs));
/base/usb/usb_manager/services/zidl/src/
Dusb_srv_stub.cpp226 int32_t funcs; in DoSetCurrentFunctions() local
227 READ_PARCEL_WITH_RET(data, Int32, funcs, UEC_SERVICE_READ_PARCEL_ERROR); in DoSetCurrentFunctions()
228 return SetCurrentFunctions(funcs); in DoSetCurrentFunctions()
233 std::string funcs; in DoUsbFunctionsFromString() local
234 READ_PARCEL_WITH_RET(data, String, funcs, UEC_SERVICE_READ_PARCEL_ERROR); in DoUsbFunctionsFromString()
235 …WRITE_PARCEL_WITH_RET(reply, Int32, UsbFunctionsFromString(funcs), UEC_SERVICE_WRITE_PARCEL_ERROR); in DoUsbFunctionsFromString()
241 int32_t funcs; in DoUsbFunctionsToString() local
242 READ_PARCEL_WITH_RET(data, Int32, funcs, UEC_SERVICE_READ_PARCEL_ERROR); in DoUsbFunctionsToString()
243 … WRITE_PARCEL_WITH_RET(reply, String, UsbFunctionsToString(funcs), UEC_SERVICE_WRITE_PARCEL_ERROR); in DoUsbFunctionsToString()
Dusb_srv_proxy.cpp390 int32_t UsbServerProxy::GetCurrentFunctions(int32_t &funcs) in GetCurrentFunctions() argument
410 READ_PARCEL_WITH_RET(reply, Int32, funcs, UEC_INTERFACE_READ_PARCEL_ERROR); in GetCurrentFunctions()
414 int32_t UsbServerProxy::SetCurrentFunctions(int32_t funcs) in SetCurrentFunctions() argument
427 WRITE_PARCEL_WITH_RET(data, Int32, funcs, UEC_INTERFACE_WRITE_PARCEL_ERROR); in SetCurrentFunctions()
436 int32_t UsbServerProxy::UsbFunctionsFromString(std::string_view funcs) in UsbFunctionsFromString() argument
448 WRITE_PARCEL_WITH_RET(data, String, std::string {funcs}, UEC_INTERFACE_WRITE_PARCEL_ERROR); in UsbFunctionsFromString()
460 std::string UsbServerProxy::UsbFunctionsToString(int32_t funcs) in UsbFunctionsToString() argument
474 WRITE_PARCEL_WITH_RET(data, Int32, funcs, INVALID_STRING_VALUE); in UsbFunctionsToString()
/base/usb/usb_manager/interfaces/kits/js/napi/src/
Dusb_info.cpp591 std::string funcs; in CoreUsbFunctionsFromString() local
592 NapiUtil::JsValueToString(env, argv[INDEX_0], STR_DEFAULT_SIZE, funcs); in CoreUsbFunctionsFromString()
594 int32_t numFuncs = g_usbClient.UsbFunctionsFromString(funcs); in CoreUsbFunctionsFromString()
616 int32_t funcs; in CoreUsbFunctionsToString() local
617 napi_get_value_int32(env, argv[INDEX_0], &funcs); in CoreUsbFunctionsToString()
618 std::string strFuncs = g_usbClient.UsbFunctionsToString(funcs); in CoreUsbFunctionsToString()
666 int32_t funcs = 0; in CoreSetCurrentFunctions() local
667 napi_get_value_int32(env, argv[INDEX_0], &funcs); in CoreSetCurrentFunctions()
676 asyncContext->functions = funcs; in CoreSetCurrentFunctions()

12