Home
last modified time | relevance | path

Searched refs:funcs (Results 1 – 25 of 27) 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()
Dpake_client.c46 struct client_virtual_func_group funcs = { build_start_request_data, parse_start_response_data, in build_pake_client() local
49 init_client(&pake_client->client_info, &funcs); in build_pake_client()
Dsec_clone_server.c66 struct server_virtual_func_group funcs = { parse_start_request_data, in build_sec_clone_server() local
71 init_server(&server->server_info, &funcs); in build_sec_clone_server()
/base/usb/usb_manager/services/native/include/
Dusb_device_manager.h33 static bool AreSettableFunctions(int32_t funcs);
35 static uint32_t ConvertFromString(std::string_view funcs);
Dusb_service.h69 int32_t GetCurrentFunctions(int32_t &funcs) override;
70 int32_t SetCurrentFunctions(int32_t funcs) override;
71 int32_t UsbFunctionsFromString(std::string_view funcs) override;
72 std::string UsbFunctionsToString(int32_t funcs) override;
/base/usb/usb_manager/test/tool/
Dusb_function_port_test.cpp54 int32_t funcs = 0; in GetCurrentFunctionInfo() local
56 int32_t ret = g_usbClient.GetCurrentFunctions(funcs); in GetCurrentFunctionInfo()
61 strFun = g_usbClient.UsbFunctionsToString(funcs); in GetCurrentFunctionInfo()
/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.h70 virtual int32_t GetCurrentFunctions(int32_t &funcs) = 0;
71 virtual int32_t SetCurrentFunctions(int32_t funcs) = 0;
72 virtual int32_t UsbFunctionsFromString(std::string_view funcs) = 0;
73 virtual std::string UsbFunctionsToString(int32_t funcs) = 0;
/base/usb/usb_manager/interfaces/kits/js/
D@ohos.usbManager.d.ts100 function usbFunctionsFromString(funcs: string): number;
112 function usbFunctionsToString(funcs: FunctionType): string;
124 function setCurrentFunctions(funcs: FunctionType): Promise<void>;
/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/test/native/service_unittest/src/
Dusb_core_test.cpp75 int32_t funcs = 0; variable
76 funcs = instance.GetCurrentFunctions(funcs);
77 USB_HILOGI(MODULE_USB_SERVICE, "UsbCoreTest::funcs=%{public}d", funcs);
78 ASSERT_TRUE(funcs == 0);
256 std::string funcs = "qwerts"; variable
257 int32_t funcCode = instance.UsbFunctionsFromString(funcs);
272 std::string funcs = "zxcbvx"; variable
273 int32_t funcCode = instance.UsbFunctionsFromString(funcs);
/base/usb/usb_manager/services/zidl/include/
Dusb_server_proxy.h39 int32_t GetCurrentFunctions(int32_t &funcs) override;
40 int32_t SetCurrentFunctions(int32_t funcs) override;
41 int32_t UsbFunctionsFromString(std::string_view funcs) override;
42 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/usb/usb_manager/services/native/src/
Dusb_device_manager.cpp52 bool UsbDeviceManager::AreSettableFunctions(int32_t funcs) in AreSettableFunctions() argument
54 return static_cast<uint32_t>(funcs) == UsbSrvSupport::FUNCTION_NONE || in AreSettableFunctions()
55 ((~functionSettable_ & static_cast<uint32_t>(funcs)) == 0); in AreSettableFunctions()
Dusb_service.cpp366 int32_t UsbService::UsbFunctionsFromString(std::string_view funcs) in UsbFunctionsFromString() argument
377 return UsbDeviceManager::ConvertFromString(funcs); in UsbFunctionsFromString()
380 std::string UsbService::UsbFunctionsToString(int32_t funcs) in UsbFunctionsToString() argument
391 return UsbDeviceManager::ConvertToString(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/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.cpp366 int32_t UsbServerProxy::GetCurrentFunctions(int32_t &funcs) in GetCurrentFunctions() argument
386 READ_PARCEL_WITH_RET(reply, Int32, funcs, UEC_INTERFACE_READ_PARCEL_ERROR); in GetCurrentFunctions()
390 int32_t UsbServerProxy::SetCurrentFunctions(int32_t funcs) in SetCurrentFunctions() argument
403 WRITE_PARCEL_WITH_RET(data, Int32, funcs, UEC_INTERFACE_WRITE_PARCEL_ERROR); in SetCurrentFunctions()
412 int32_t UsbServerProxy::UsbFunctionsFromString(std::string_view funcs) in UsbFunctionsFromString() argument
424 WRITE_PARCEL_WITH_RET(data, String, std::string {funcs}, UEC_INTERFACE_WRITE_PARCEL_ERROR); in UsbFunctionsFromString()
436 std::string UsbServerProxy::UsbFunctionsToString(int32_t funcs) in UsbFunctionsToString() argument
450 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()
614 int32_t funcs; in CoreUsbFunctionsToString() local
615 napi_get_value_int32(env, argv[INDEX_0], &funcs); in CoreUsbFunctionsToString()
616 std::string strFuncs = g_usbClient.UsbFunctionsToString(funcs); in CoreUsbFunctionsToString()
656 int32_t funcs = 0; in CoreSetCurrentFunctions() local
657 napi_get_value_int32(env, argv[INDEX_0], &funcs); in CoreSetCurrentFunctions()
666 asyncContext->functions = funcs; in CoreSetCurrentFunctions()

12