Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 25 of 57) sorted by relevance

123

/base/startup/init/test/fuzztest/systemtraversalparameter_fuzzer/
Dsystemtraversalparameter_fuzzer.cpp24 static void FakeShowParam(ParamHandle handle, void *cookie) in FakeShowParam() argument
26 Cookie *nameAndValue = reinterpret_cast<Cookie*>(cookie); in FakeShowParam()
42 Cookie *cookie = &instance; in FuzzSystemTraversalParameter() local
49 cookie->data = static_cast<char *>(malloc(size)); in FuzzSystemTraversalParameter()
50 if (cookie->data == nullptr) { in FuzzSystemTraversalParameter()
53 cookie->size = size; in FuzzSystemTraversalParameter()
55 int ret = memcpy_s(cookie->data, size, str.c_str(), size); in FuzzSystemTraversalParameter()
59 if (!SystemTraversalParameter(nullptr, FakeShowParam, reinterpret_cast<void*>(cookie))) { in FuzzSystemTraversalParameter()
62 free(cookie->data); in FuzzSystemTraversalParameter()
63 cookie->data = nullptr; in FuzzSystemTraversalParameter()
[all …]
/base/security/device_security_level/interfaces/inner_api/src/standard/
Ddevice_security_level_callback_helper.cpp55 uint32_t keep, sptr<DeviceSecurityLevelCallbackStub> &stub, uint32_t &cookie) in Publish() argument
61 auto result = holder_.PushCallback(identity, callback, keep, cookie); in Publish()
71 bool DeviceSecurityLevelCallbackHelper::Withdraw(uint32_t cookie) in Withdraw() argument
73 if (cookie == 0) { in Withdraw()
77 auto result = holder_.PopCallback(cookie); in Withdraw()
89 auto cookie = data.ReadUint32(); in OnRemoteRequest() local
92 …o(LABEL, "callback cookie %{public}u, result %{public}u, level %{public}u", cookie, result, level); in OnRemoteRequest()
93 holder_.PopCallback(cookie, result, level); in OnRemoteRequest()
110 const ResultCallback &callback, uint32_t keep, uint32_t &cookie) in PushCallback() argument
118 cookie = ++generate_; in PushCallback()
[all …]
Ddevice_security_level_callback_helper.h44 sptr<DeviceSecurityLevelCallbackStub> &stub, uint32_t &cookie);
45 bool Withdraw(uint32_t cookie);
52 uint64_t cookie {0};
59 uint32_t &cookie);
60 bool PopCallback(uint32_t cookie, uint32_t result, uint32_t level);
61 bool PopCallback(uint32_t cookie);
Ddevice_security_info.cpp57 uint32_t cookie = 0; in RequestDeviceSecurityInfoAsyncImpl() local
59 auto success = helper.Publish(*identify, callback, option->timeout, stub, cookie); in RequestDeviceSecurityInfoAsyncImpl()
60 if (!success || stub == nullptr || cookie == 0) { in RequestDeviceSecurityInfoAsyncImpl()
65 auto result = proxy->RequestDeviceSecurityLevel(*identify, *option, stub->AsObject(), cookie); in RequestDeviceSecurityInfoAsyncImpl()
68 helper.Withdraw(cookie); in RequestDeviceSecurityInfoAsyncImpl()
Ddevice_security_level_proxy.cpp45 const RequestOption &option, const sptr<IRemoteObject> &callback, uint64_t cookie) in RequestDeviceSecurityLevel() argument
72 data.WriteUint32(cookie); in RequestDeviceSecurityLevel()
87 if (status != cookie) { in RequestDeviceSecurityLevel()
/base/security/device_security_level/services/sa/standard/
Ddslm_ipc_process.cpp43 static void ProcessCallback(uint32_t owner, uint32_t cookie, uint32_t result, const DslmCallbackInf… in ProcessCallback() argument
45 if ((cookie == 0) || (info == nullptr)) { in ProcessCallback()
48 auto object = Singleton<DslmIpcProcess::RemoteHolder>::GetInstance().Pop(owner, cookie); in ProcessCallback()
60 proxy->ResponseDeviceSecurityLevel(cookie, resInfo); in ProcessCallback()
64 sptr<IRemoteObject> &object, uint32_t &cookie) in DslmGetRequestFromParcel() argument
98 cookie = data.ReadUint32(); in DslmGetRequestFromParcel()
99 if (cookie == 0) { in DslmGetRequestFromParcel()
156 uint32_t cookie; in DslmProcessGetDeviceSecurityLevel() local
160 int32_t ret = DslmGetRequestFromParcel(data, identity, option, callback, cookie); in DslmProcessGetDeviceSecurityLevel()
167 Singleton<RemoteHolder>::GetInstance().Push(owner, cookie, callback); in DslmProcessGetDeviceSecurityLevel()
[all …]
Ddslm_ipc_process.h41 bool Push(uint32_t owner, uint32_t cookie, const sptr<IRemoteObject> &object);
42 sptr<IRemoteObject> Pop(uint32_t owner, uint32_t cookie);
52 sptr<IRemoteObject> &object, uint32_t &cookie);
Ddslm_callback_proxy.cpp32 int32_t DslmCallbackProxy::ResponseDeviceSecurityLevel(uint32_t cookie, const ResponseInfo &respons… in ResponseDeviceSecurityLevel() argument
41 data.WriteUint32(cookie); in ResponseDeviceSecurityLevel()
/base/security/device_security_level/services/sa/lite/
Ddslm_ipc_process.c51 RequestOption *option, uint32_t *cookie) in DslmGetRequestFromParcel() argument
72 ReadUint32(req, cookie); in DslmGetRequestFromParcel()
73 if (cookie == 0) { in DslmGetRequestFromParcel()
81 static BOOL DslmPushRemoteStub(uint32_t owner, uint32_t cookie, IpcIo *reply) in DslmPushRemoteStub() argument
86 uint64_t key = ((uint64_t)owner << COOKIE_SHIFT) | cookie; in DslmPushRemoteStub()
103 static IpcIo *DslmPopRemoteStub(uint32_t owner, uint32_t cookie) in DslmPopRemoteStub() argument
110 uint64_t key = ((uint64_t)owner << COOKIE_SHIFT) | cookie; in DslmPopRemoteStub()
130 static void ProcessCallback(uint32_t owner, uint32_t cookie, uint32_t result, const DslmCallbackInf… in ProcessCallback() argument
133 if ((cookie == 0) || (info == NULL)) { in ProcessCallback()
137 reply = DslmPopRemoteStub(owner, cookie); in ProcessCallback()
[all …]
/base/security/device_security_level/services/dfx/
Ddslm_hitrace.cpp42 void DslmStartProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie) in DslmStartProcessTraceAsync() argument
44 …tring traceValue = std::string(value) + "_" + std::to_string(owner) + "_" + std::to_string(cookie); in DslmStartProcessTraceAsync()
45 StartAsyncTrace(HITRACE_TAG_DLSM, traceValue, cookie); in DslmStartProcessTraceAsync()
48 void DslmFinishProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie) in DslmFinishProcessTraceAsync() argument
50 …tring traceValue = std::string(value) + "_" + std::to_string(owner) + "_" + std::to_string(cookie); in DslmFinishProcessTraceAsync()
51 FinishAsyncTrace(HITRACE_TAG_DLSM, traceValue, cookie); in DslmFinishProcessTraceAsync()
/base/security/device_security_level/test/dslm_unit_test/
Ddslm_request_callback_mock.h33 … virtual void RequestCallback(uint32_t cookie, uint32_t result, const DslmCallbackInfo *info) = 0;
40 …MOCK_METHOD3(RequestCallback, void(uint32_t cookie, uint32_t result, const DslmCallbackInfo *info)…
42 …static void MockedCallback(uint32_t owner, uint32_t cookie, uint32_t result, const DslmCallbackInf…
Ddslm_request_callback_mock.cpp40 void DslmRequestCallbackMock::MockedCallback(uint32_t owner, uint32_t cookie, uint32_t result, in MockedCallback() argument
45 obj_->RequestCallback(cookie, result, info); in MockedCallback()
/base/security/device_security_level/services/include/
Ddslm_hitrace.h33 void DslmStartProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie);
34 void DslmFinishProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie);
Ddslm_callback_info.h31 typedef void RequestCallback(uint32_t owner, uint32_t cookie, uint32_t result, const DslmCallbackIn…
/base/startup/init/interfaces/innerkits/include/
Dmodulemgr.h137 void *cookie; /* hook execution cookie */ member
156 void ModuleMgrTraversal(const MODULE_MGR *moduleMgr, void *cookie, OhosModuleTraversal traversal);
/base/startup/init/interfaces/innerkits/modulemgr/
Dmodulemgr.c295 void *cookie; member
299 static int ModuleTraversalProc(ListNode *node, void *cookie) in ModuleTraversalProc() argument
306 args = (MODULE_TRAVERSAL_ARGS *)cookie; in ModuleTraversalProc()
308 info.cookie = args->cookie; in ModuleTraversalProc()
325 void ModuleMgrTraversal(const MODULE_MGR *moduleMgr, void *cookie, OhosModuleTraversal traversal) in ModuleMgrTraversal() argument
332 args.cookie = cookie; in ModuleMgrTraversal()
/base/security/device_security_level/services/dslm/
Ddslm_dfx_default.c67 …ibute__((weak)) void DslmStartProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie) in DslmStartProcessTraceAsync() argument
71 …bute__((weak)) void DslmFinishProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie) in DslmFinishProcessTraceAsync() argument
Ddslm_fsm_process.c159 notifyNode->requestCallback(notifyNode->owner, notifyNode->cookie, result, &cbInfo); in ProcessSendDeviceInfoCallback()
164 DslmFinishProcessTraceAsync("SDK_GET", notifyNode->owner, notifyNode->cookie); in ProcessSendDeviceInfoCallback()
226 notify->cookie = inputNotify->cookie; in ProcessSdkRequest()
230 if (notify->cookie == 0 || notify->requestCallback == NULL) { in ProcessSdkRequest()
237 DslmStartProcessTraceAsync("SDK_GET", notify->owner, notify->cookie); in ProcessSdkRequest()
242 deviceInfo->machine.machineId, notify->owner, notify->cookie, notify->keep); in ProcessSdkRequest()
321 devInfo->machine.machineId, node->owner, node->cookie, node->keep); in SdkTimeoutChecker()
340 devInfo->machine.machineId, node->owner, node->cookie, node->keep); in RequestDoneChecker()
/base/startup/init/interfaces/innerkits/init_module_engine/
Dinit_modulemgr.c83 static int moduleMgrCommandsInit(const HOOK_INFO *info, void *cookie) in moduleMgrCommandsInit() argument
92 static int loadAutorunModules(const HOOK_INFO *info, void *cookie) in loadAutorunModules() argument
/base/startup/init/services/modules/trace/
Dinit_trace_static.c20 static int InitTraceEarlyHook(const HOOK_INFO *info, void *cookie) in InitTraceEarlyHook() argument
/base/startup/init/services/modules/udid/
Dudid_static.c19 static int UDidCalc(const HOOK_INFO *hookInfo, void *cookie) in UDidCalc() argument
/base/startup/init/services/param/base/
Dparam_trie.c204 const ParamTrieNode *current, TraversalTrieNodePtr walkFunc, const void *cookie) in TraversalSubTrieNode() argument
209 walkFunc(workSpace, (ParamTrieNode *)current, cookie); in TraversalSubTrieNode()
210 TraversalSubTrieNode(workSpace, GetTrieNode(workSpace, current->child), walkFunc, cookie); in TraversalSubTrieNode()
211 TraversalSubTrieNode(workSpace, GetTrieNode(workSpace, current->left), walkFunc, cookie); in TraversalSubTrieNode()
212 TraversalSubTrieNode(workSpace, GetTrieNode(workSpace, current->right), walkFunc, cookie); in TraversalSubTrieNode()
217 const ParamTrieNode *root, TraversalTrieNodePtr walkFunc, const void *cookie) in TraversalTrieNode() argument
227 walkFunc(workSpace, (ParamTrieNode *)current, cookie); in TraversalTrieNode()
228 TraversalSubTrieNode(workSpace, GetTrieNode(workSpace, current->child), walkFunc, cookie); in TraversalTrieNode()
230 TraversalSubTrieNode(workSpace, GetTrieNode(workSpace, current->left), walkFunc, cookie); in TraversalTrieNode()
231 TraversalSubTrieNode(workSpace, GetTrieNode(workSpace, current->right), walkFunc, cookie); in TraversalTrieNode()
/base/startup/init/services/param/include/
Dparam_trie.h48 …(*TraversalTrieNodePtr)(const WorkSpace *workSpace, const ParamTrieNode *node, const void *cookie);
50 const ParamTrieNode *subTrie, TraversalTrieNodePtr walkFunc, const void *cookie);
/base/startup/init/services/modules/bootchart/
Dbootchart_static.c19 static int bootchartEarlyHook(const HOOK_INFO *info, void *cookie) in bootchartEarlyHook() argument
/base/startup/init/services/modules/init_eng/
Dinit_eng_static.c21 static int InitEngEarlyHook(const HOOK_INFO *info, void *cookie) in InitEngEarlyHook() argument

123