Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 270) sorted by relevance

1234567891011

/base/telephony/cellular_call/test/fuzztest/getcscalldata_fuzzer/
Dgetcscalldata_fuzzer.cpp45 void GetCsCallData(std::shared_ptr<CellularCallHandler> handle, AppExecFwk::InnerEvent::Pointer eve… in GetCsCallData() argument
60 handle->GetCsCallData(event); in GetCsCallData()
61 handle->GetImsCallData(event); in GetCsCallData()
62 handle->ImsCallStatusInfoReport(event); in GetCsCallData()
63 handle->CellularCallIncomingStartTrace(state); in GetCsCallData()
64 handle->GetCsCallsDataResponse(event); in GetCsCallData()
65 handle->GetImsCallsDataResponse(event); in GetCsCallData()
66 handle->DialResponse(event); in GetCsCallData()
67 handle->SendDtmfResponse(event); in GetCsCallData()
68 handle->StartDtmfResponse(event); in GetCsCallData()
[all …]
/base/security/device_security_level/baselib/utils/src/
Dutils_json.c38 void DestroyJson(JsonHandle handle) in DestroyJson() argument
40 if (handle != NULL) { in DestroyJson()
41 cJSON_Delete((cJSON *)handle); in DestroyJson()
45 int32_t GetJsonFieldInt(JsonHandle handle, const char *field) in GetJsonFieldInt() argument
49 if (handle == NULL) { in GetJsonFieldInt()
54 return ((cJSON *)handle)->valueint; in GetJsonFieldInt()
60 objValue = (cJSON *)GetJsonFieldJson(handle, field); in GetJsonFieldInt()
73 uint32_t GetJsonFieldIntArray(JsonHandle handle, const char *field, int32_t *array, int32_t arrayLe… in GetJsonFieldIntArray() argument
75 if (handle == NULL || field == NULL || array == NULL) { in GetJsonFieldIntArray()
79 cJSON *objValue = cJSON_GetObjectItem(handle, field); in GetJsonFieldIntArray()
[all …]
Dutils_timer.c23 timerHandle_t handle = NULL; in UtilsStartPeriodicTimerTask() local
24 StartTimerTask(TRUE, interval, callback, context, &handle); in UtilsStartPeriodicTimerTask()
25 return (TimerHandle)handle; in UtilsStartPeriodicTimerTask()
30 timerHandle_t handle = NULL; in UtilsStartOnceTimerTask() local
31 StartTimerTask(FALSE, interval, callback, context, &handle); in UtilsStartOnceTimerTask()
32 return (TimerHandle)handle; in UtilsStartOnceTimerTask()
35 void UtilsStopTimerTask(TimerHandle handle) in UtilsStopTimerTask() argument
37 StopTimerTask((timerHandle_t)handle); in UtilsStopTimerTask()
/base/security/device_auth/frameworks/deviceauth_lite/source/schedule/
Ddistribution.c34 static int32_t proc_pake_request_message(struct hichain *handle, struct header_analysis *nav,
36 static int32_t proc_pake_response_message(struct hichain *handle, struct header_analysis *nav,
38 static int32_t proc_sts_request_message(struct hichain *handle, struct header_analysis *nav,
40 static int32_t proc_exchange_request_message(struct hichain *handle, struct header_analysis *nav,
42 static int32_t proc_exchange_response_message(struct hichain *handle, struct header_analysis *nav,
44 static int32_t proc_add_request_message(struct hichain *handle, struct header_analysis *nav,
46 static int32_t proc_remove_request_message(struct hichain *handle, struct header_analysis *nav,
48 static int32_t proc_add_response_message(struct hichain *handle, struct header_analysis *nav,
50 static int32_t proc_remove_response_message(struct hichain *handle, struct header_analysis *nav,
52 static int32_t proc_sec_clone_request_message(struct hichain *handle, struct header_analysis *nav,
[all …]
/base/security/device_security_level/baselib/utils/include/
Dutils_json.h29 void DestroyJson(JsonHandle handle);
31 int32_t GetJsonFieldInt(JsonHandle handle, const char *field);
32 uint32_t GetJsonFieldIntArray(JsonHandle handle, const char *field, int32_t *array, int32_t arrayLe…
33 const char *GetJsonFieldString(JsonHandle handle, const char *field);
34 JsonHandle GetJsonFieldJson(JsonHandle handle, const char *field);
36 JsonHandle GetJsonFieldJsonArray(JsonHandle handle, uint32_t num);
37 int32_t GetJsonFieldJsonArraySize(JsonHandle handle);
39 void AddFieldIntToJson(JsonHandle handle, const char *field, int32_t value);
40 void AddFieldIntArrayToJson(JsonHandle handle, const char *field, const int32_t *array, int32_t arr…
41 void AddFieldBoolToJson(JsonHandle handle, const char *field, bool value);
[all …]
/base/security/device_auth/frameworks/deviceauth_lite/source/key_agreement/
Dkey_agreement.c29 void init_protocol(struct key_agreement_protocol *handle) in init_protocol() argument
31 check_ptr_return(handle); in init_protocol()
32 handle->state = PROTOCOL_INIT; in init_protocol()
33 handle->last_state = PROTOCOL_INIT; in init_protocol()
34 handle->last_time_sec = 0; in init_protocol()
35 handle->sn = g_sn_generator++; in init_protocol()
38 void set_state(struct key_agreement_protocol *handle, enum protocol_state new_state) in set_state() argument
40 check_ptr_return(handle); in set_state()
41 enum protocol_state ori_state = handle->state; in set_state()
43 DBG_OUT("Object %u state is %u, new state is %u", handle->sn, ori_state, new_state); in set_state()
[all …]
Dkey_agreement_client.c26 static bool is_state_error(struct key_agreement_client *handle, enum protocol_action action);
28 void init_client(struct key_agreement_client *handle, struct client_virtual_func_group *funcs) in init_client() argument
30 check_ptr_return(handle); in init_client()
32 init_protocol(&handle->protocol_base_info); in init_client()
33 handle->package_funcs = *funcs; in init_client()
36 int32_t send_start_request(void *handle, void *send_data) in send_start_request() argument
38 check_ptr_return_val(handle, HC_INPUT_ERROR); in send_start_request()
40 struct key_agreement_client *client = (struct key_agreement_client *)handle; in send_start_request()
49 int32_t ret = funcs->build_start_request_data(handle, send_data); in send_start_request()
61 int32_t send_end_request(void *handle, void *receive_data, void *send_data) in send_end_request() argument
[all …]
Dkey_agreement_server.c26 static bool is_state_error(struct key_agreement_server *handle, enum protocol_action action);
29 void init_server(struct key_agreement_server *handle, const struct server_virtual_func_group *funcs) in init_server() argument
31 check_ptr_return(handle); in init_server()
33 init_protocol(&handle->protocol_base_info); in init_server()
34 handle->package_funcs = *funcs; in init_server()
37 int32_t send_start_response(void *handle, void *receive_data, void *send_data) in send_start_response() argument
39 check_ptr_return_val(handle, HC_INPUT_ERROR); in send_start_response()
42 struct key_agreement_server *server = handle; in send_start_response()
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()
[all …]
/base/telephony/cellular_call/services/connection/src/
Dcellular_call_connection_cs.cpp34 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); in DialRequest() local
35 if (handle == nullptr) { in DialRequest()
43 slotId, RadioEvent::RADIO_DIAL, phoneNumber_, dialRequest.clirMode, handle); in DialRequest()
57 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); in HangUpRequest() local
58 if (handle == nullptr) { in HangUpRequest()
65 CoreManagerInner::GetInstance().Hangup(slotId, RadioEvent::RADIO_HANGUP_CONNECT, index, handle); in HangUpRequest()
78 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); in AnswerRequest() local
79 if (handle == nullptr) { in AnswerRequest()
85 CoreManagerInner::GetInstance().Answer(slotId, RadioEvent::RADIO_ACCEPT_CALL, handle); in AnswerRequest()
98 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); in RejectRequest() local
[all …]
/base/security/selinux_adapter/test/unittest/parameter_static/
Dunit_test.cpp92 HashTab *handle = nullptr; variable
93 EXPECT_EQ(0, HashMapCreate(&handle));
94 HashMapDestroy(handle);
105 HashTab *handle = nullptr; variable
106 HashMapDestroy(handle);
107 ASSERT_EQ(nullptr, handle);
118 HashTab *handle = nullptr; variable
119 ASSERT_TRUE(HashMapCreate(&handle) == 0);
120 ASSERT_TRUE(handle != nullptr);
125 ASSERT_EQ(HashMapAdd(handle, &(groupNode->hashNode)), 0);
[all …]
/base/startup/init/services/begetctl/shell/
Dshell_bas.c22 char *BShellEnvErrString(BShellHandle handle, int32_t err) in BShellEnvErrString() argument
39 BSH_CHECK(handle != NULL, return "System unknown err", "Invalid shell env"); in BShellEnvErrString()
40 BShellEnv *shell = (BShellEnv *)handle; in BShellEnvErrString()
48 static void BShellCmdOutputCmdHelp(BShellHandle handle, BShellCommand *cmd) in BShellCmdOutputCmdHelp() argument
50 BShellEnvOutputString(handle, " "); in BShellCmdOutputCmdHelp()
51 int32_t spaceLength = BShellEnvOutputString(handle, cmd->help); in BShellCmdOutputCmdHelp()
55 BShellEnvOutputString(handle, " "); in BShellCmdOutputCmdHelp()
57 BShellEnvOutputString(handle, "--"); in BShellCmdOutputCmdHelp()
58 BShellEnvOutputString(handle, cmd->desc); in BShellCmdOutputCmdHelp()
59 BShellEnvOutputString(handle, "\r\n"); in BShellCmdOutputCmdHelp()
[all …]
Dshell.h31 typedef int32_t (*BShellCmdExecuter_)(BShellHandle handle, int32_t argc, char *argv[]);
92 int BShellEnvInit(BShellHandle *handle, const BShellInfo *info);
93 int BShellEnvStart(BShellHandle handle);
94 void BShellEnvDestory(BShellHandle handle);
96 int BShellEnvRegisterCmd(BShellHandle handle, const CmdInfo *cmdInfo);
97 int BShellEnvSetParam(BShellHandle handle, const char *name, const char *desc, BShellParamType type…
98 const BShellParam *BShellEnvGetParam(BShellHandle handle, const char *name);
99 int BShellEnvRegisterKeyHandle(BShellHandle handle, uint8_t code, BShellkeyHandle keyHandle);
100 void BShellEnvLoop(BShellHandle handle);
101 const ParamInfo *BShellEnvGetReservedParam(BShellHandle handle, const char *name);
[all …]
Dshell_main.c69 BShellHandle handle = GetShellHandle(); in main() local
70 if (handle == NULL) { in main()
74 … const ParamInfo *param = BShellEnvGetReservedParam(handle, PARAM_REVERESD_NAME_CURR_PARAMETER); in main()
76 BShellEnvSetParam(handle, param->name, param->desc, param->type, (void *)""); in main()
78 int ret = SetParamShellPrompt(handle, args[1]); in main()
83 BShellParamCmdRegister(handle, 1); in main()
85 BShellCmdRegister(handle, 1); in main()
87 BShellEnvStart(handle); in main()
88 BShellEnvLoop(handle); in main()
/base/security/device_auth/services/frameworks/src/plugin_adapter/
Ddynamic_plugin_adapter.c42 static const ExtPartProxy *GetPluginFuncFromLib(void *handle) in GetPluginFuncFromLib() argument
45 g_pluginFunc.initExtPartFunc = DevAuthDlsym(handle, FUNC_NAME_INIT_EXT_PART); in GetPluginFuncFromLib()
50 g_pluginFunc.getPluginListFunc = DevAuthDlsym(handle, FUNC_NAME_EXT_PLUGIN_LIST); in GetPluginFuncFromLib()
55 g_pluginFunc.destroyExtPartFunc = DevAuthDlsym(handle, FUNC_NAME_DESTROY_EXT_PART); in GetPluginFuncFromLib()
65 static const CredPlugin *GetCredPluginFromLib(void *handle) in GetCredPluginFromLib() argument
67 GetCredPluginFunc getCredPluginFunc = (GetCredPluginFunc)DevAuthDlsym(handle, CRED_PLUGIN_FUNC); in GetCredPluginFromLib()
75 static const AuthModuleBase *GetAuthModulePluginFromLib(void *handle) in GetAuthModulePluginFromLib() argument
78 (GetAuthModulePluginFunc)DevAuthDlsym(handle, AUTH_MODULE_PLUGIN_FUNC); in GetAuthModulePluginFromLib()
86 static int32_t LoadDynamicPlugin(void *handle) in LoadDynamicPlugin() argument
88 const CredPlugin *credPlugin = GetCredPluginFromLib(handle); in LoadDynamicPlugin()
[all …]
/base/request/request/frameworks/js/napi/src/legacy/
Ddownload_task.cpp97 std::unique_ptr<CURL, decltype(&curl_easy_cleanup)> handle(curl_easy_init(), curl_easy_cleanup); in GetFileSize() local
99 if (!handle) { in GetFileSize()
104 curl_easy_setopt(handle.get(), CURLOPT_URL, option_.url_.c_str()); in GetFileSize()
105 curl_easy_setopt(handle.get(), CURLOPT_HEADER, 1L); in GetFileSize()
106 curl_easy_setopt(handle.get(), CURLOPT_NOBODY, 1L); in GetFileSize()
107 CURLcode code = curl_easy_perform(handle.get()); in GetFileSize()
109 curl_easy_getinfo(handle.get(), CURLINFO_CONTENT_LENGTH_DOWNLOAD, &size); in GetFileSize()
127 bool DownloadTask::SetOption(CURL *handle, curl_slist *&headers) in SetOption() argument
133 curl_easy_setopt(handle, CURLOPT_WRITEDATA, filp_); in SetOption()
139 curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, errorBuffer_); in SetOption()
[all …]
/base/security/certificate_manager/test/unittest/src/
Dcm_init_test.cpp87 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; variable
89 int32_t ret = CmInit(authUri, &spec, &handle);
105 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; variable
107 int32_t ret = CmInit(&authUri, &spec, &handle);
123 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; variable
125 int32_t ret = CmInit(&authUri, &spec, &handle);
141 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; variable
143 int32_t ret = CmInit(&authUri, &spec, &handle);
159 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; variable
161 int32_t ret = CmInit(&authUri, &spec, &handle);
[all …]
Dcm_abort_test.cpp61 struct CmBlob *handle = nullptr; variable
62 int32_t ret = CmAbort(handle);
75 struct CmBlob handle = { 0, (uint8_t *)&handleValue }; variable
76 int32_t ret = CmAbort(&handle);
88 struct CmBlob handle = { sizeof(uint64_t), nullptr }; variable
89 int32_t ret = CmAbort(&handle);
102 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; variable
103 int32_t ret = CmAbort(&handle);
123 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; variable
126 ret = CmInit(&keyUri, &spec, &handle);
[all …]
/base/security/selinux_adapter/interfaces/policycoreutils/src/
Dselinux_map.c55 int32_t HashMapCreate(HashTab **handle) in HashMapCreate() argument
57 if (handle == NULL) { in HashMapCreate()
65 *handle = tab; in HashMapCreate()
93 int32_t HashMapAdd(HashTab *handle, HashNode *node) in HashMapAdd() argument
95 if (handle == NULL || !(node != NULL && node->next == NULL)) { in HashMapAdd()
103 HashNode *tmp = GetHashNodeByNode(handle->buckets[hashCode], node); in HashMapAdd()
107 node->next = handle->buckets[hashCode]; in HashMapAdd()
108 handle->buckets[hashCode] = node; in HashMapAdd()
112 HashNode *HashMapGet(HashTab *handle, const char *key, uint32_t len) in HashMapGet() argument
118 return GetHashNodeByKey(handle->buckets[hashCode], key); in HashMapGet()
[all …]
/base/startup/init/services/utils/
Dinit_hashmap.c30 int32_t OH_HashMapCreate(HashMapHandle *handle, const HashInfo *info) in OH_HashMapCreate() argument
32 INIT_ERROR_CHECK(handle != NULL, return -1, "Invalid hash handle"); in OH_HashMapCreate()
45 *handle = (HashMapHandle)tab; in OH_HashMapCreate()
76 int32_t OH_HashMapAdd(HashMapHandle handle, HashNode *node) in OH_HashMapAdd() argument
78 INIT_ERROR_CHECK(handle != NULL, return -1, "Invalid hash handle"); in OH_HashMapAdd()
80 HashTab *tab = (HashTab *)handle; in OH_HashMapAdd()
97 void OH_HashMapRemove(HashMapHandle handle, const void *key) in OH_HashMapRemove() argument
99 INIT_ERROR_CHECK(handle != NULL && key != NULL, return, "Invalid hash handle key:%s", key); in OH_HashMapRemove()
100 HashTab *tab = (HashTab *)handle; in OH_HashMapRemove()
123 HashNode *OH_HashMapGet(HashMapHandle handle, const void *key) in OH_HashMapGet() argument
[all …]
/base/security/huks/interfaces/kits/liteapi/src/
Dhks_lite_api_init_session.cpp28 struct HksBlob *handle) in HksCallInitSession() argument
30 handle->data = static_cast<uint8_t *>(HksMalloc(HKS_HANDLE_SIZE)); in HksCallInitSession()
31 if (handle->data == nullptr) { in HksCallInitSession()
35 handle->size = HKS_HANDLE_SIZE; in HksCallInitSession()
41 ret = HksInit(aliasBlob, paramSet, handle, nullptr); in HksCallInitSession()
56 struct HksBlob handle = { 0, nullptr }; in initSession() local
67 ret = HksCallInitSession(&aliasBlob, paramSet, &handle); in initSession()
70 struct HksLiteApiResult result = { nullptr, &handle, false }; in initSession()
77 HKS_FREE_BLOB(handle); in initSession()
/base/startup/init/services/include/
Dinit_hashmap.h54 int OH_HashMapIsEmpty(HashMapHandle handle);
55 int32_t OH_HashMapCreate(HashMapHandle *handle, const HashInfo *info);
56 void OH_HashMapDestory(HashMapHandle handle, void *context);
57 int32_t OH_HashMapAdd(HashMapHandle handle, HashNode *hashNode);
58 void OH_HashMapRemove(HashMapHandle handle, const void *key);
59 HashNode *OH_HashMapGet(HashMapHandle handle, const void *key);
60 HashNode *OH_HashMapFind(HashMapHandle handle,
62 void OH_HashMapTraverse(HashMapHandle handle, void (*hashNodeTraverse)(const HashNode *node, const …
/base/hiviewdfx/hiview_lite/
Dhiview_util.c164 int32 handle = hiview_open(path, O_RDWR | O_CREAT, 0); in HIVIEW_FileOpen() local
165 if (handle < 0) { in HIVIEW_FileOpen()
168 return handle; in HIVIEW_FileOpen()
171 int32 HIVIEW_FileClose(int32 handle) in HIVIEW_FileClose() argument
173 if (handle < 0) { in HIVIEW_FileClose()
176 return hiview_close(handle); in HIVIEW_FileClose()
179 int32 HIVIEW_FileRead(int32 handle, uint8 *buf, uint32 len) in HIVIEW_FileRead() argument
181 if (handle < 0) { in HIVIEW_FileRead()
184 return hiview_read(handle, (char *)buf, len); in HIVIEW_FileRead()
187 int32 HIVIEW_FileWrite(int32 handle, const uint8 *buf, uint32 len) in HIVIEW_FileWrite() argument
[all …]
/base/msdp/device_status/frameworks/js/napi/interaction/coordination/include/
Djs_coordination_manager.h33 napi_value Prepare(napi_env env, napi_value handle = nullptr);
34 napi_value Unprepare(napi_env env, napi_value handle = nullptr);
36 napi_value handle = nullptr);
37 napi_value Deactivate(napi_env env, bool isUnchained, napi_value handle = nullptr);
38 …napi_value GetCrossingSwitchState(napi_env env, const std::string &networkId, napi_value handle = …
39 void RegisterListener(napi_env env, const std::string &type, napi_value handle);
40 void UnregisterListener(napi_env env, const std::string &type, napi_value handle = nullptr);
/base/security/device_security_level/services/dslm/
Ddslm_msg_utils.c149 JsonHandle handle = CreateJson((const char *)msg->buff); in ParseDeviceSecInfoRequest() local
150 if (handle == NULL) { in ParseDeviceSecInfoRequest()
154 const char *nonceStr = GetJsonFieldString(handle, FIELD_CHALLENGE); in ParseDeviceSecInfoRequest()
156 DestroyJson(handle); in ParseDeviceSecInfoRequest()
162 DestroyJson(handle); in ParseDeviceSecInfoRequest()
166 obj->version = (uint32_t)GetJsonFieldInt(handle, FIELD_VERSION); in ParseDeviceSecInfoRequest()
167 …obj->arraySize = GetJsonFieldIntArray(handle, FIELD_SUPPORT, (int32_t *)obj->credArray, MAX_CRED_A… in ParseDeviceSecInfoRequest()
169 DestroyJson(handle); in ParseDeviceSecInfoRequest()
205 JsonHandle handle = CreateJson((const char *)msg->buff); in ParseDeviceSecInfoResponse() local
206 if (handle == NULL) { in ParseDeviceSecInfoResponse()
[all …]
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_session_manager.c38 uint8_t *handle = (uint8_t *)HksMalloc(sizeof(uint64_t)); in DeleteKeyNode() local
39 if (handle == NULL) { in DeleteKeyNode()
43 (void)memcpy_s(handle, sizeof(uint64_t), &operationHandle, sizeof(uint64_t)); in DeleteKeyNode()
44 struct HksBlob handleBlob = { sizeof(uint64_t), handle }; in DeleteKeyNode()
48 HksFree(handle); in DeleteKeyNode()
55 HksFree(handle); in DeleteKeyNode()
81 DeleteKeyNode(operation->handle); in DeleteFirstAbortableOperation()
137 static int32_t ConstructOperationHandle(const struct HksBlob *operationHandle, uint64_t *handle) in ConstructOperationHandle() argument
139 if (operationHandle->size < sizeof(*handle)) { in ConstructOperationHandle()
143 if (memcpy_s(handle, sizeof(*handle), operationHandle->data, operationHandle->size) != EOK) { in ConstructOperationHandle()
[all …]

1234567891011