Home
last modified time | relevance | path

Searched refs:handle (Results 1 - 25 of 363) sorted by relevance

12345678910>>...15

/base/telephony/cellular_call/test/fuzztest/getcscalldata_fuzzer/
H A Dgetcscalldata_fuzzer.cpp47 void GetCsCallData(std::shared_ptr<CellularCallHandler> handle, AppExecFwk::InnerEvent::Pointer event, in GetCsCallData() argument
62 handle->GetCsCallData(event); in GetCsCallData()
63 handle->GetImsCallData(event); in GetCsCallData()
64 handle->GetSatelliteCallData(event); in GetCsCallData()
65 handle->ImsCallStatusInfoReport(event); in GetCsCallData()
66 handle->SatelliteCallStatusInfoReport(event); in GetCsCallData()
67 handle->CellularCallIncomingStartTrace(state); in GetCsCallData()
68 handle->GetCsCallsDataResponse(event); in GetCsCallData()
69 handle->GetImsCallsDataResponse(event); in GetCsCallData()
70 handle in GetCsCallData()
87 RegisterHandler(std::shared_ptr<CellularCallHandler> handle, AppExecFwk::InnerEvent::Pointer event, const uint8_t *data, size_t size) RegisterHandler() argument
151 std::shared_ptr<CellularCallHandler> handle = DoSomethingInterestingWithMyAPI() local
[all...]
/base/security/device_security_level/baselib/utils/src/
H A Dutils_json.c38 void DslmDestroyJson(DslmJsonHandle handle) in DslmDestroyJson() argument
40 if (handle != NULL) { in DslmDestroyJson()
41 cJSON_Delete((cJSON *)handle); in DslmDestroyJson()
45 int32_t DslmGetJsonFieldInt(DslmJsonHandle handle, const char *field) in DslmGetJsonFieldInt() argument
49 if (handle == NULL) { in DslmGetJsonFieldInt()
54 return ((cJSON *)handle)->valueint; in DslmGetJsonFieldInt()
60 objValue = (cJSON *)DslmGetJsonFieldJson(handle, field); in DslmGetJsonFieldInt()
73 uint32_t DslmGetJsonFieldIntArray(DslmJsonHandle handle, const char *field, int32_t *array, int32_t arrayLen) in DslmGetJsonFieldIntArray() argument
75 if (handle == NULL || field == NULL || array == NULL) { in DslmGetJsonFieldIntArray()
79 cJSON *objValue = cJSON_GetObjectItem(handle, fiel in DslmGetJsonFieldIntArray()
103 DslmAddFieldBoolToJson(DslmJsonHandle handle, const char *field, bool value) DslmAddFieldBoolToJson() argument
111 DslmGetJsonFieldString(DslmJsonHandle handle, const char *field) DslmGetJsonFieldString() argument
135 DslmGetJsonFieldJson(DslmJsonHandle handle, const char *field) DslmGetJsonFieldJson() argument
140 DslmGetJsonFieldJsonArray(DslmJsonHandle handle, uint32_t num) DslmGetJsonFieldJsonArray() argument
145 DslmGetJsonFieldJsonArraySize(DslmJsonHandle handle) DslmGetJsonFieldJsonArraySize() argument
150 DslmAddFieldIntToJson(DslmJsonHandle handle, const char *field, int32_t value) DslmAddFieldIntToJson() argument
158 DslmAddFieldIntArrayToJson(DslmJsonHandle handle, const char *field, const int32_t *array, int32_t arrayLen) DslmAddFieldIntArrayToJson() argument
170 DslmAddFieldStringToJson(DslmJsonHandle handle, const char *field, const char *value) DslmAddFieldStringToJson() argument
178 DslmAddFieldJsonToJson(DslmJsonHandle handle, const char *field, DslmJsonHandle json) DslmAddFieldJsonToJson() argument
186 DslmConvertJsonToString(DslmJsonHandle handle) DslmConvertJsonToString() argument
[all...]
H A Dutils_timer.c23 timerHandle_t handle = NULL; in DslmUtilsStartPeriodicTimerTask() local
24 StartTimerTask(TRUE, interval, callback, context, &handle); in DslmUtilsStartPeriodicTimerTask()
25 return (TimerHandle)handle; in DslmUtilsStartPeriodicTimerTask()
30 timerHandle_t handle = NULL; in DslmUtilsStartOnceTimerTask() local
31 StartTimerTask(FALSE, interval, callback, context, &handle); in DslmUtilsStartOnceTimerTask()
32 return (TimerHandle)handle; in DslmUtilsStartOnceTimerTask()
35 void DslmUtilsStopTimerTask(TimerHandle handle) in DslmUtilsStopTimerTask() argument
37 StopTimerTask((timerHandle_t)handle); in DslmUtilsStopTimerTask()
/base/security/device_auth/frameworks/deviceauth_lite/source/key_agreement/
H A Dsec_clone_server.c60 void destroy_sec_clone_server(struct sec_clone_server *handle) in destroy_sec_clone_server() argument
62 if (handle == NULL) { in destroy_sec_clone_server()
66 if (handle->start_request_data.val != NULL) { in destroy_sec_clone_server()
67 FREE(handle->start_request_data.val); in destroy_sec_clone_server()
68 handle->start_request_data.val = NULL; in destroy_sec_clone_server()
71 if (handle->client_sec_data.val != NULL) { in destroy_sec_clone_server()
72 FREE(handle->client_sec_data.val); in destroy_sec_clone_server()
73 handle->client_sec_data.val = NULL; in destroy_sec_clone_server()
76 if (handle->need_clean_temp_key) { in destroy_sec_clone_server()
77 struct hc_key_alias *temp_key_alias = &(handle in destroy_sec_clone_server()
98 destroy_sec_clone_server(struct sec_clone_server *handle) destroy_sec_clone_server() argument
[all...]
H A 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, voi argument
94 receive_end_response(void *handle, void *receive_data) receive_end_response() argument
124 is_state_error(struct key_agreement_client *handle, enum protocol_action action) is_state_error() argument
[all...]
H A 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 in set_state()
59 set_last_time_sec(struct key_agreement_protocol *handle) set_last_time_sec() argument
[all...]
H A Dsts_server.c36 void destroy_sts_server(struct sts_server *handle) in destroy_sts_server() argument
38 if (handle == NULL) { in destroy_sts_server()
42 (void)memset_s(&handle->self_private_key, sizeof(struct stsk), 0, sizeof(struct stsk)); in destroy_sts_server()
43 (void)memset_s(&handle->session_key, sizeof(struct sts_session_key), 0, sizeof(struct sts_session_key)); in destroy_sts_server()
44 (void)memset_s(&handle->service_key, sizeof(struct hc_session_key), 0, sizeof(struct hc_session_key)); in destroy_sts_server()
45 FREE(handle); in destroy_sts_server()
/base/security/device_security_level/baselib/utils/include/
H A Dutils_json.h29 void DslmDestroyJson(DslmJsonHandle handle);
31 int32_t DslmGetJsonFieldInt(DslmJsonHandle handle, const char *field);
32 uint32_t DslmGetJsonFieldIntArray(DslmJsonHandle handle, const char *field, int32_t *array, int32_t arrayLen);
33 const char *DslmGetJsonFieldString(DslmJsonHandle handle, const char *field);
34 DslmJsonHandle DslmGetJsonFieldJson(DslmJsonHandle handle, const char *field);
36 DslmJsonHandle DslmGetJsonFieldJsonArray(DslmJsonHandle handle, uint32_t num);
37 int32_t DslmGetJsonFieldJsonArraySize(DslmJsonHandle handle);
39 void DslmAddFieldIntToJson(DslmJsonHandle handle, const char *field, int32_t value);
40 void DslmAddFieldIntArrayToJson(DslmJsonHandle handle, const char *field, const int32_t *array, int32_t arrayLen);
41 void DslmAddFieldBoolToJson(DslmJsonHandle handle, cons
[all...]
/base/telephony/cellular_call/services/connection/src/
H A Dcellular_call_connection_cs.cpp34 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); in DialRequest() local
35 if (handle == nullptr) { in DialRequest()
36 TELEPHONY_LOGE("DialRequest return, error type: handle is nullptr."); in DialRequest()
38 CALL_ERR_RESOURCE_UNAVAILABLE, "cellular service handle is 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()
59 TELEPHONY_LOGE("HangUpRequest return, error type: handle is nullptr."); in HangUpRequest()
61 slotId, INVALID_PARAMETER, CALL_ERR_RESOURCE_UNAVAILABLE, "cellular service handle is nullptr"); in HangUpRequest()
65 CoreManagerInner::GetInstance().Hangup(slotId, RadioEvent::RADIO_HANGUP_CONNECT, index, handle); in HangUpRequest()
78 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); AnswerRequest() local
99 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); RejectRequest() local
117 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); HoldRequest() local
133 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); UnHoldCallRequest() local
149 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); SwitchCallRequest() local
165 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); CombineConferenceRequest() local
181 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); SeparateConferenceRequest() local
197 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); CallSupplementRequest() local
219 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); SendDtmfRequest() local
235 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); StartDtmfRequest() local
251 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); StopDtmfRequest() local
267 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); GetCsCallsDataRequest() local
286 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); GetCallFailReasonRequest() local
[all...]
/base/startup/init/services/begetctl/shell/
H A 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, void *value);
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, cons
[all...]
H A 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, "\ in BShellCmdOutputCmdHelp()
62 BShellCmdHelp(BShellHandle handle, int32_t argc, char *argv[]) BShellCmdHelp() argument
90 BShellCmdExit(BShellHandle handle, int32_t argc, char *argv[]) BShellCmdExit() argument
98 BShellEnvOutput(BShellHandle handle, char *fmt, ...) BShellEnvOutput() argument
109 BShellEnvOutputString(BShellHandle handle, const char *string) BShellEnvOutputString() argument
117 BShellEnvOutputPrompt(BShellHandle handle, const char *prompt) BShellEnvOutputPrompt() argument
140 BShellEnvOutputByte(BShellHandle handle, char data) BShellEnvOutputByte() argument
147 BShellEnvOutputResult(BShellHandle handle, int32_t result) BShellEnvOutputResult() argument
156 BShellEnvOutputParam(BShellHandle handle, char *var) BShellEnvOutputParam() argument
163 BShellEnvBackspace(BShellHandle handle, uint32_t length) BShellEnvBackspace() argument
201 BShellEnvHandleEnter(BShellHandle handle, uint8_t data) BShellEnvHandleEnter() argument
243 BShellEnvHandleBackspace(BShellHandle handle, uint8_t code) BShellEnvHandleBackspace() argument
274 BShellEnvHandleTab(BShellHandle handle, uint8_t code) BShellEnvHandleTab() argument
280 BShellEnvHandleNormal(BShellHandle handle, uint8_t data) BShellEnvHandleNormal() argument
313 BShellEnvHandleCtrC(BShellHandle handle, uint8_t code) BShellEnvHandleCtrC() argument
323 BShellEnvHandleEsc(BShellHandle handle, uint8_t code) BShellEnvHandleEsc() argument
350 BShellEnvProcessInput(BShellHandle handle, char data) BShellEnvProcessInput() argument
397 BShellEnvLoop(BShellHandle handle) BShellEnvLoop() argument
410 BShellEnvInit(BShellHandle *handle, const BShellInfo *info) BShellEnvInit() argument
431 BShellEnvStart(BShellHandle handle) BShellEnvStart() argument
477 BShellEnvDestory(BShellHandle handle) BShellEnvDestory() argument
508 BShellEnvRegisterCmd(BShellHandle handle, const CmdInfo *cmdInfo) BShellEnvRegisterCmd() argument
573 BShellEnvGetCmd(BShellHandle handle, int32_t argc, char *argv[]) BShellEnvGetCmd() argument
615 BShellEnvRegisterKeyHandle(BShellHandle handle, uint8_t code, BShellkeyHandle keyHandle) BShellEnvRegisterKeyHandle() argument
630 BShellEnvGetKey(BShellHandle handle, uint8_t code) BShellEnvGetKey() argument
662 BShellEnvSetParam(BShellHandle handle, const char *name, const char *desc, BShellParamType type, void *value) BShellEnvSetParam() argument
699 BShellEnvGetParam(BShellHandle handle, const char *name) BShellEnvGetParam() argument
713 BShellEnvGetStringParam(BShellHandle handle, const char *name) BShellEnvGetStringParam() argument
729 BShellEnvGetReservedParam(BShellHandle handle, const char *name) BShellEnvGetReservedParam() argument
743 BShellEnvDirectExecute(BShellHandle handle, int argc, char *args[]) BShellEnvDirectExecute() argument
[all...]
/base/security/selinux_adapter/test/unittest/parameter_static/
H A Dunit_test.cpp77 * @tc.desc: Test 'int32_t HashMapCreate(HashTab **handle)' with invalid params.
88 * @tc.desc: Test 'int32_t HashMapCreate(HashTab **handle)' with valid params.
94 HashTab *handle = nullptr; in HWTEST_F() local
95 EXPECT_EQ(0, HashMapCreate(&handle)); in HWTEST_F()
96 HashMapDestroy(handle); in HWTEST_F()
101 * @tc.desc: Test 'void HashMapDestroy(HashTab *handle)' with handle nullptr.
107 HashTab *handle = nullptr; in HWTEST_F() local
108 HashMapDestroy(handle); in HWTEST_F()
109 ASSERT_EQ(nullptr, handle); in HWTEST_F()
120 HashTab *handle = nullptr; HWTEST_F() local
154 HashTab *handle = nullptr; HWTEST_F() local
168 HashTab *handle = nullptr; HWTEST_F() local
186 HashTab *handle = nullptr; HWTEST_F() local
[all...]
/base/security/certificate_manager/test/unittest/src/
H A Dcm_init_test.cpp87 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; in HWTEST_F() local
89 int32_t ret = CmInit(authUri, &spec, &handle); in HWTEST_F()
105 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; in HWTEST_F() local
107 int32_t ret = CmInit(&authUri, &spec, &handle); in HWTEST_F()
123 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; in HWTEST_F() local
125 int32_t ret = CmInit(&authUri, &spec, &handle); in HWTEST_F()
141 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; in HWTEST_F() local
143 int32_t ret = CmInit(&authUri, &spec, &handle); in HWTEST_F()
159 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; in HWTEST_F() local
161 int32_t ret = CmInit(&authUri, &spec, &handle); in HWTEST_F()
177 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; HWTEST_F() local
195 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; HWTEST_F() local
213 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; HWTEST_F() local
229 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; HWTEST_F() local
245 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; HWTEST_F() local
260 struct CmBlob *handle = nullptr; /* handle is NULL */ HWTEST_F() local
276 struct CmBlob handle = { 0, (uint8_t *)&handleValue }; /* handle size is 0 */ HWTEST_F() local
291 struct CmBlob handle = { sizeof(uint64_t), nullptr }; /* handle data is NULL */ HWTEST_F() local
307 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; /* size smaller than sizeof(uint64_t) */ HWTEST_F() local
325 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; HWTEST_F() local
341 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; HWTEST_F() local
357 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; HWTEST_F() local
375 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; HWTEST_F() local
392 struct CmBlob handle = { sizeof(handleValue), (uint8_t *)&handleValue }; HWTEST_F() local
[all...]
/base/startup/init/services/utils/
H A 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 ! in OH_HashMapRemove()
123 OH_HashMapGet(HashMapHandle handle, const void *key) OH_HashMapGet() argument
150 OH_HashMapDestory(HashMapHandle handle, void *context) OH_HashMapDestory() argument
160 OH_HashMapFind(HashMapHandle handle, int hashCode, const void *key, HashKeyCompare keyCompare) OH_HashMapFind() argument
171 OH_HashMapTraverse(HashMapHandle handle, void (*hashNodeTraverse)(const HashNode *node, const void *context), const void *context) OH_HashMapTraverse() argument
186 OH_HashMapIsEmpty(HashMapHandle handle) OH_HashMapIsEmpty() argument
[all...]
/base/security/device_auth/frameworks/deviceauth_lite/source/schedule/
H A Ddistribution.c33 static int32_t proc_pake_response_message(struct hichain *handle, struct header_analysis *nav,
35 static int32_t proc_exchange_response_message(struct hichain *handle, struct header_analysis *nav,
37 static int32_t proc_remove_request_message(struct hichain *handle, struct header_analysis *nav,
39 static int32_t proc_remove_response_message(struct hichain *handle, struct header_analysis *nav,
41 static int32_t proc_inform_message(struct hichain *handle, struct header_analysis *nav,
46 static int32_t proc_sts_response_message(struct hichain *handle, struct header_analysis *nav,
49 typedef int32_t (*proc_message_func)(struct hichain *handle, struct header_analysis *nav,
151 int32_t proc_message(struct hichain *handle, struct header_analysis *nav, in proc_message() argument
157 int32_t ret = G_DISTRIBUTION_MESSAGE[i].func(handle, nav, receive, send); in proc_message()
165 int32_t connect_message(struct hichain *handle, struc argument
264 proc_pake_response_message(struct hichain *handle, struct header_analysis *nav, struct message *receive, struct message *send) proc_pake_response_message() argument
289 proc_exchange_response_message(struct hichain *handle, struct header_analysis *nav, struct message *receive, struct message *send) proc_exchange_response_message() argument
307 proc_sts_response_message(struct hichain *handle, struct header_analysis *nav, struct message *receive, struct message *send) proc_sts_response_message() argument
331 proc_remove_request_message(struct hichain *handle, struct header_analysis *nav, struct message *receive, struct message *send) proc_remove_request_message() argument
346 proc_remove_response_message(struct hichain *handle, struct header_analysis *nav, struct message *receive, struct message *send) proc_remove_response_message() argument
366 proc_inform_message(struct hichain *handle, struct header_analysis *nav, struct message *receive, struct message *send) proc_inform_message() argument
[all...]
/base/startup/appspawn/test/fuzztest/appspawnclient_fuzzer/
H A Dappspawnclient_fuzzer.cpp24 AppSpawnClientHandle handle = nullptr; in FuzzAppSpawnClientInit() local
25 return AppSpawnClientInit(name, &handle); in FuzzAppSpawnClientInit()
31 AppSpawnClientHandle handle = nullptr; in FuzzAppSpawnClientDestroy() local
32 if (AppSpawnClientInit(name, &handle) != 0) { in FuzzAppSpawnClientDestroy()
35 return AppSpawnClientDestroy(handle); in FuzzAppSpawnClientDestroy()
41 AppSpawnClientHandle handle = nullptr; in FuzzAppSpawnReqMsgCreate() local
42 if (AppSpawnClientInit(name, &handle) != 0) { in FuzzAppSpawnReqMsgCreate()
50 return AppSpawnClientDestroy(handle); in FuzzAppSpawnReqMsgCreate()
56 AppSpawnClientHandle handle = nullptr; in FuzzAppSpawnReqMsgAddStringInfo() local
57 if (AppSpawnClientInit(name, &handle) ! in FuzzAppSpawnReqMsgAddStringInfo()
72 AppSpawnClientHandle handle = nullptr; FuzzAppSpawnTerminateMsgCreate() local
89 AppSpawnClientHandle handle = nullptr; FuzzAppSpawnClientSendMsg() local
105 AppSpawnClientHandle handle = nullptr; FuzzAppSpawnReqMsgFree() local
120 AppSpawnClientHandle handle = nullptr; FuzzAppSpawnReqMsgSetBundleInfo() local
138 AppSpawnClientHandle handle = nullptr; FuzzAppSpawnReqMsgSetAppFlag() local
155 AppSpawnClientHandle handle = nullptr; FuzzAppSpawnReqMsgSetAppDacInfo() local
172 AppSpawnClientHandle handle = nullptr; FuzzAppSpawnReqMsgSetAppDomainInfo() local
190 AppSpawnClientHandle handle = nullptr; FuzzAppSpawnReqMsgSetAppInternetPermissionInfo() local
208 AppSpawnClientHandle handle = nullptr; FuzzAppSpawnReqMsgSetAppAccessToken() local
225 AppSpawnClientHandle handle = nullptr; FuzzAppSpawnReqMsgSetAppOwnerId() local
242 AppSpawnClientHandle handle = nullptr; FuzzAppSpawnReqMsgAddPermission() local
259 AppSpawnClientHandle handle = nullptr; FuzzAppSpawnReqMsgAddExtInfo() local
[all...]
/base/msdp/device_status/frameworks/js/napi/interaction/coordination/include/
H A Djs_coordination_manager.h33 napi_value Prepare(napi_env env, bool isCompatible, napi_value handle = nullptr);
34 napi_value Unprepare(napi_env env, bool isCompatible, napi_value handle = nullptr);
36 int32_t startDeviceId, bool isCompatible, napi_value handle = nullptr);
37 napi_value Deactivate(napi_env env, bool isUnchained, bool isCompatible, napi_value handle = nullptr);
39 bool isCompatible, napi_value handle = nullptr);
41 void RegisterListener(napi_env env, const std::string &type, napi_value handle);
42 void UnregisterListener(napi_env env, const std::string &type, napi_value handle = nullptr);
43 void RegisterListener(napi_env env, const std::string &type, const std::string &networkId, napi_value handle);
45 napi_value handle = nullptr);
/base/security/huks/interfaces/kits/liteapi/src/
H A Dhks_lite_api_init_session.cpp28 struct HksBlob *handle) in HksCallInitSession()
30 handle->data = static_cast<uint8_t *>(HksMalloc(HKS_HANDLE_SIZE)); in HksCallInitSession()
31 if (handle->data == nullptr) { in HksCallInitSession()
32 HKS_LOG_E("malloc handle data failed"); 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()
27 HksCallInitSession(const struct HksBlob *aliasBlob, struct HksParamSet *paramSet, struct HksBlob *handle) HksCallInitSession() argument
[all...]
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
H A Dmemory_dumper.cpp75 void *handle = dlopen(MEM_LIB.c_str(), RTLD_LAZY | RTLD_NODELETE); in GetMemByPid() local
76 if (handle == nullptr) { in GetMemByPid()
80 GetMemByPidFunc pfn = reinterpret_cast<GetMemByPidFunc>(dlsym(handle, "GetMemoryInfoByPid")); in GetMemByPid()
83 dlclose(handle); in GetMemByPid()
92 dlclose(handle); in GetMemByPid()
97 void* handle = dlopen(MEM_LIB.c_str(), RTLD_LAZY | RTLD_NODELETE); in GetMemNoPid() local
98 if (handle == nullptr) { in GetMemNoPid()
102 GetMemNoPidFunc getMemNoPidFunc = reinterpret_cast<GetMemNoPidFunc>(dlsym(handle, "GetMemoryInfoNoPid")); in GetMemNoPid()
105 dlclose(handle); in GetMemNoPid()
110 dlclose(handle); in GetMemNoPid()
115 void *handle = dlopen(MEM_LIB.c_str(), RTLD_LAZY | RTLD_NODELETE); GetMemSmapsByPid() local
[all...]
/base/security/device_auth/services/frameworks/src/plugin_adapter/
H A Ddynamic_plugin_adapter.c43 static const ExtPartProxy *GetPluginFuncFromLib(void *handle) in GetPluginFuncFromLib() argument
46 g_pluginFunc.initExtPartFunc = DevAuthDlsym(handle, FUNC_NAME_INIT_EXT_PART); in GetPluginFuncFromLib()
51 g_pluginFunc.getPluginListFunc = DevAuthDlsym(handle, FUNC_NAME_EXT_PLUGIN_LIST); in GetPluginFuncFromLib()
56 g_pluginFunc.destroyExtPartFunc = DevAuthDlsym(handle, FUNC_NAME_DESTROY_EXT_PART); in GetPluginFuncFromLib()
66 static const CredPlugin *GetCredPluginFromLib(void *handle) in GetCredPluginFromLib() argument
68 GetCredPluginFunc getCredPluginFunc = (GetCredPluginFunc)DevAuthDlsym(handle, CRED_PLUGIN_FUNC); in GetCredPluginFromLib()
76 static const AuthModuleBase *GetAuthModulePluginFromLib(void *handle) in GetAuthModulePluginFromLib() argument
79 (GetAuthModulePluginFunc)DevAuthDlsym(handle, AUTH_MODULE_PLUGIN_FUNC); in GetAuthModulePluginFromLib()
87 static int32_t LoadDynamicPlugin(void *handle) in LoadDynamicPlugin() argument
89 const CredPlugin *credPlugin = GetCredPluginFromLib(handle); in LoadDynamicPlugin()
117 UnloadDynamicPlugin(void *handle) UnloadDynamicPlugin() argument
[all...]
/base/security/selinux_adapter/framework/policycoreutils/src/
H A 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
114 if (handle in HashMapGet()
138 HashMapDestroy(HashTab *handle) HashMapDestroy() argument
[all...]
/base/request/request/frameworks/js/napi/src/legacy/
H A Ddownload_task.cpp98 std::unique_ptr<CURL, decltype(&curl_easy_cleanup)> handle(curl_easy_init(), curl_easy_cleanup); in GetFileSize()
100 if (!handle) { in GetFileSize()
105 curl_easy_setopt(handle.get(), CURLOPT_URL, option_.url_.c_str()); in GetFileSize()
106 curl_easy_setopt(handle.get(), CURLOPT_HEADER, 1L); in GetFileSize()
107 curl_easy_setopt(handle.get(), CURLOPT_NOBODY, 1L); in GetFileSize()
108 CURLcode code = curl_easy_perform(handle.get()); in GetFileSize()
110 curl_easy_getinfo(handle.get(), CURLINFO_CONTENT_LENGTH_DOWNLOAD, &size); in GetFileSize()
128 bool DownloadTask::SetOption(CURL *handle, curl_slist *&headers) in SetOption() argument
134 curl_easy_setopt(handle, CURLOPT_WRITEDATA, filp_); in SetOption()
140 curl_easy_setopt(handle, CURLOPT_ERRORBUFFE in SetOption()
[all...]
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/
H A Dlib_event_handler_test.cpp57 void* GetTemp(char* func, void* handle) in GetTemp() argument
59 if (!handle) { in GetTemp()
62 void* temp = dlsym(handle, func); in GetTemp()
68 void* handle = dlopen("/system/lib64/chipset-pub-sdk/libeventhandler.z.so", RTLD_LAZY); in ExecFfrtNoParam() local
69 void* temp = GetTemp(func, handle); in ExecFfrtNoParam()
75 dlclose(handle); in ExecFfrtNoParam()
108 void* handle = dlopen("/system/lib64/chipset-pub-sdk/libeventhandler.z.so", RTLD_LAZY); in HWTEST_F() local
109 void* temp = GetTemp(str.data(), handle); in HWTEST_F()
128 void* handle = dlopen("/system/lib64/chipset-pub-sdk/libeventhandler.z.so", RTLD_LAZY); in HWTEST_F() local
129 void* temp = GetTemp(str.data(), handle); in HWTEST_F()
148 void* handle = dlopen("/system/lib64/chipset-pub-sdk/libeventhandler.z.so", RTLD_LAZY); HWTEST_F() local
165 void* handle = dlopen("/system/lib64/chipset-pub-sdk/libeventhandler.z.so", RTLD_LAZY); HWTEST_F() local
[all...]
/base/hiviewdfx/hiview_lite/
H A Dhiview_util.c160 int32 handle = hiview_open(path, O_RDWR | O_CREAT, 0); in HIVIEW_FileOpen() local
161 if (handle < 0) { in HIVIEW_FileOpen()
164 return handle; in HIVIEW_FileOpen()
167 int32 HIVIEW_FileClose(int32 handle) in HIVIEW_FileClose() argument
169 if (handle < 0) { in HIVIEW_FileClose()
172 return hiview_close(handle); in HIVIEW_FileClose()
175 int32 HIVIEW_FileRead(int32 handle, uint8 *buf, uint32 len) in HIVIEW_FileRead() argument
177 if (handle < 0) { in HIVIEW_FileRead()
180 return hiview_read(handle, (char *)buf, len); in HIVIEW_FileRead()
183 int32 HIVIEW_FileWrite(int32 handle, cons argument
191 HIVIEW_FileSeek(int32 handle, int32 offset, int32 whence) HIVIEW_FileSeek() argument
199 HIVIEW_FileSize(int32 handle) HIVIEW_FileSize() argument
207 HIVIEW_FileSync(int32 handle) HIVIEW_FileSync() argument
[all...]
/base/telephony/cellular_call/services/utils/src/
H A Dconfig_request.cpp37 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); in SetDomainPreferenceModeRequest() local
38 if (handle == nullptr) { in SetDomainPreferenceModeRequest()
39 TELEPHONY_LOGE("SetDomainPreferenceModeRequest return, error type: handle is nullptr."); in SetDomainPreferenceModeRequest()
43 slotId, RadioEvent::RADIO_SET_CALL_PREFERENCE_MODE, mode, handle); in SetDomainPreferenceModeRequest()
59 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); in GetDomainPreferenceModeRequest() local
60 if (handle == nullptr) { in GetDomainPreferenceModeRequest()
61 TELEPHONY_LOGE("GetDomainPreferenceModeRequest return, error type: handle is nullptr."); in GetDomainPreferenceModeRequest()
64 CoreManagerInner::GetInstance().GetCallPreferenceMode(slotId, RadioEvent::RADIO_GET_CALL_PREFERENCE_MODE, handle); in GetDomainPreferenceModeRequest()
80 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); in SetVoNRSwitchStatusRequest() local
81 if (handle in SetVoNRSwitchStatusRequest()
162 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); SetMuteRequest() local
183 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); GetMuteRequest() local
194 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); GetEmergencyCallListRequest() local
206 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); SetEmergencyCallListRequest() local
[all...]

Completed in 10 milliseconds

12345678910>>...15