Home
last modified time | relevance | path

Searched refs:holder (Results 1 – 18 of 18) sorted by relevance

/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
Duser_auth_widget_callback_v10.cpp52 CallbackHolder *holder = reinterpret_cast<CallbackHolder *>(work->data); in OnWork() local
53 if (holder == nullptr || holder->callback == nullptr) { in OnWork()
59 napi_open_handle_scope(holder->env, &scope); in OnWork()
65 napi_status ret = holder->callback->DoCommandCallback(holder->cmdData); in OnWork()
68 napi_close_handle_scope(holder->env, scope); in OnWork()
72 napi_close_handle_scope(holder->env, scope); in OnWork()
142 CallbackHolder *holder = new (std::nothrow) CallbackHolder(); in SendCommand() local
143 if (holder == nullptr) { in SendCommand()
148 holder->callback = shared_from_this(); in SendCommand()
149 holder->cmdData = cmdData; in SendCommand()
[all …]
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_app_event_holder.cpp49 auto holder = new(std::nothrow) NapiAppEventHolder(NapiUtil::GetString(env, params[0])); in NapiConstructor() local
51 env, thisVar, holder, in NapiConstructor()
53 NapiAppEventHolder* holder = (NapiAppEventHolder*)data; in NapiConstructor() local
54 delete holder; in NapiConstructor()
89 NapiAppEventHolder* holder = nullptr; in NapiSetSize() local
90 napi_unwrap(env, thisVar, (void**)&holder); in NapiSetSize()
91 holder->SetSize(num); in NapiSetSize()
102 NapiAppEventHolder* holder = nullptr; in NapiTakeNext() local
103 napi_unwrap(env, thisVar, (void**)&holder); in NapiTakeNext()
104 auto package = holder->TakeNext(); in NapiTakeNext()
Dnapi_app_event_watcher.cpp39 holder = nullptr; in OnTriggerContext()
49 if (holder != nullptr) { in ~OnTriggerContext()
50 napi_delete_reference(env, holder); in ~OnTriggerContext()
82 void NapiAppEventWatcher::InitHolder(const napi_env env, const napi_value holder) in InitHolder() argument
88 context_->holder = NapiUtil::CreateReference(env, holder); in InitHolder()
128 NapiUtil::GetReferenceValue(context->env, context->holder) in OnTrigger()
Dnapi_hiappevent_watch.cpp240 napi_value holder = nullptr; in CreateHolder() local
241 … if (napi_new_instance(env, constructor, 1, &watcherName, &holder) != napi_ok) { // param num is 1 in CreateHolder()
245 return holder; in CreateHolder()
273 napi_value holder = CreateHolder(env, NapiUtil::GetProperty(env, watcher, NAME_PROPERTY)); in AddWatcher() local
274 watcherPtr->InitHolder(env, holder); in AddWatcher()
284 return holder; in AddWatcher()
/base/customization/config_policy/frameworks/config_policy/src/
Dconfig_policy_utils.c288 static bool EnsureHolderSpace(StringHolder *holder, size_t leastSize) in EnsureHolderSpace() argument
290 if (holder == NULL) { in EnsureHolderSpace()
293 if (holder->size < leastSize) { in EnsureHolderSpace()
303 if (holder->p != NULL && memcpy_s(newPtr, allocSize, holder->p, holder->strLen) != EOK) { in EnsureHolderSpace()
307 FreeIf(holder->p); in EnsureHolderSpace()
308 holder->p = newPtr; in EnsureHolderSpace()
309 holder->size = allocSize; in EnsureHolderSpace()
314 static bool AppendStr(StringHolder *holder, const char *s) in AppendStr() argument
316 if (holder == NULL || s == NULL) { in AppendStr()
319 size_t leastSize = holder->strLen + strlen(s) + 1; in AppendStr()
[all …]
/base/powermgr/battery_manager/charger/include/
Dcharger_log.h25 inline void ReplaceHolder(std::string& str, const std::string& holder) in ReplaceHolder() argument
28 size_t holderLen = holder.size(); in ReplaceHolder()
29 while ((index = str.find(holder, index)) != std::string::npos) { in ReplaceHolder()
/base/hiviewdfx/hiappevent/frameworks/js/napi/include/
Dnapi_app_event_watcher.h29 napi_ref holder; member
41 void InitHolder(const napi_env env, const napi_value holder);
/base/hiviewdfx/hiappevent/test/unittest/common/napi/
Dnapi_hiappevent.test.js56 function simpleTrigger(curRow, curSize, holder) { argument
59 if (holder == null) {
1334 onTrigger: function (curRow, curSize, holder) { argument
1338 expect(holder != null).assertTrue()
1340 let eventPkg = holder.takeNext();
1376 onTrigger: function (curRow, curSize, holder) { argument
1380 expect(holder != null).assertTrue()
1382 let eventPkg = holder.takeNext();
1419 onTrigger: function (curRow, curSize, holder) { argument
1423 expect(holder != null).assertTrue()
[all …]
/base/telephony/core_service/services/sim/src/
Dicc_dialling_numbers_cache.cpp337 …std::unique_ptr<DiallingNumbersHandleHolder> holder = std::make_unique<DiallingNumbersHandleHolder… in BuildCallerInfo() local
338 holder->fileID = efId; in BuildCallerInfo()
339 holder->index = index; in BuildCallerInfo()
340 holder->diallingNumber = pobj; in BuildCallerInfo()
341 holder->callerCache = std::make_shared<PointerWrapper>(); in BuildCallerInfo()
342 holder->callerCache->caller = std::move(const_cast<AppExecFwk::InnerEvent::Pointer &>(caller)); in BuildCallerInfo()
344 … AppExecFwk::InnerEvent::Pointer event = AppExecFwk::InnerEvent::Get(eventid, holder, eventParam); in BuildCallerInfo()
356 std::unique_ptr<UsimFetcher> holder = std::make_unique<UsimFetcher>(); in CreateUsimPointer() local
357 holder->fileID = efId; in CreateUsimPointer()
358 holder->callerCache = std::make_shared<PointerWrapper>(); in CreateUsimPointer()
[all …]
Dusim_dialling_numbers_service.cpp224 …std::unique_ptr<DiallingNumbersHandleHolder> holder = std::make_unique<DiallingNumbersHandleHolder… in CreateHandlerPointer() local
225 holder->fileID = efId; in CreateHandlerPointer()
226 holder->index = index; in CreateHandlerPointer()
227 holder->diallingNumber = pobj; in CreateHandlerPointer()
229 … AppExecFwk::InnerEvent::Pointer event = AppExecFwk::InnerEvent::Get(eventid, holder, eventParam); in CreateHandlerPointer()
Dicc_file.cpp509 …std::unique_ptr<DiallingNumbersHandleHolder> holder = std::make_unique<DiallingNumbersHandleHolder… in CreateDiallingNumberPointer() local
510 holder->fileID = efId; in CreateDiallingNumberPointer()
511 holder->index = index; in CreateDiallingNumberPointer()
512 holder->diallingNumber = pobj; in CreateDiallingNumberPointer()
514 … AppExecFwk::InnerEvent::Pointer event = AppExecFwk::InnerEvent::Get(eventid, holder, eventParam); in CreateDiallingNumberPointer()
Dicc_file_controller.cpp438 void IccFileController::SendResponse(std::shared_ptr<IccControllerHolder> holder, const IccFileData… in SendResponse() argument
440 if (holder == nullptr || fd == nullptr) { in SendResponse()
444 AppExecFwk::InnerEvent::Pointer &response = holder->fileLoaded; in SendResponse()
/base/security/device_security_level/interfaces/inner_api/src/lite/
Ddevice_security_level_proxy.c35 struct DslmCallbackHolder *holder = (struct DslmCallbackHolder *)owner; in DslmIpcCallback() local
46 if (holder->callback != NULL) { in DslmIpcCallback()
55 holder->callback(&holder->identity, info); in DslmIpcCallback()
/base/telephony/core_service/services/sim/include/
Dsim_data_type.h77 explicit IccToRilMsg(std::shared_ptr<IccControllerHolder> holder) : controlHolder(holder) {} in IccToRilMsg()
84 explicit IccFromRilMsg(std::shared_ptr<IccControllerHolder> &holder) : IccToRilMsg(holder) {} in IccFromRilMsg()
Dicc_file_controller.h72 void SendResponse(std::shared_ptr<IccControllerHolder> holder, const IccFileData *fd);
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest008/
Dlast_kmsg21 <14>[ 3.819747] [pid=1][Init][INFO][init.c:90]Init fd holder socket done
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest004/
Dlast_kmsg21 <14>[ 3.819747] [pid=1][Init][INFO][init.c:90]Init fd holder socket done
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest005/
Dlast_kmsg21 <14>[ 3.819747] [pid=1][Init][INFO][init.c:90]Init fd holder socket done