Home
last modified time | relevance | path

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

12

/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()
Ddevice_security_level_proxy.h41 const sptr<IRemoteObject> &callback, uint64_t cookie);
/base/security/device_security_level/services/sa/standard/
Ddslm_ipc_process.cpp41 static void ProcessCallback(uint32_t owner, uint32_t cookie, uint32_t result, const DslmCallbackInf… in ProcessCallback() argument
43 if ((cookie == 0) || (info == nullptr)) { in ProcessCallback()
46 auto object = Singleton<DslmIpcProcess::RemoteHolder>::GetInstance().Pop(owner, cookie); in ProcessCallback()
58 proxy->ResponseDeviceSecurityLevel(cookie, resInfo); in ProcessCallback()
62 sptr<IRemoteObject> &object, uint32_t &cookie) in DslmGetRequestFromParcel() argument
96 cookie = data.ReadUint32(); in DslmGetRequestFromParcel()
97 if (cookie == 0) { in DslmGetRequestFromParcel()
119 uint32_t cookie; in DslmProcessGetDeviceSecurityLevel() local
121 int32_t ret = DslmGetRequestFromParcel(data, identity, option, callback, cookie); in DslmProcessGetDeviceSecurityLevel()
128 Singleton<RemoteHolder>::GetInstance().Push(owner, cookie, callback); in DslmProcessGetDeviceSecurityLevel()
[all …]
Ddslm_ipc_process.h39 bool Push(uint32_t owner, uint32_t cookie, const sptr<IRemoteObject> &object);
40 sptr<IRemoteObject> Pop(uint32_t owner, uint32_t cookie);
49 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/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…
Ddslm_notify_node.h35 uint32_t cookie; member
/base/startup/init/interfaces/innerkits/modulemgr/
Dmodulemgr.c297 void *cookie; member
301 static int ModuleTraversalProc(ListNode *node, void *cookie) in ModuleTraversalProc() argument
308 args = (MODULE_TRAVERSAL_ARGS *)cookie; in ModuleTraversalProc()
310 info.cookie = args->cookie; in ModuleTraversalProc()
327 void ModuleMgrTraversal(const MODULE_MGR *moduleMgr, void *cookie, OhosModuleTraversal traversal) in ModuleMgrTraversal() argument
334 args.cookie = cookie; in ModuleMgrTraversal()
/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/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.c75 static int moduleMgrCommandsInit(const HOOK_INFO *info, void *cookie) in moduleMgrCommandsInit() argument
84 static int loadAutorunModules(const HOOK_INFO *info, void *cookie) in loadAutorunModules() argument
/base/startup/init/services/include/param/
Dinit_param.h173 void (*traversalParameter)(ParamHandle handle, void *cookie), 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/param/base/
Dparam_trie.c294 const ParamTrieNode *current, TraversalTrieNodePtr walkFunc, const void *cookie) in TraversalSubTrieNode() argument
299 walkFunc(workSpace, (ParamTrieNode *)current, cookie); in TraversalSubTrieNode()
300 TraversalSubTrieNode(workSpace, GetTrieNode(workSpace, current->child), walkFunc, cookie); in TraversalSubTrieNode()
301 TraversalSubTrieNode(workSpace, GetTrieNode(workSpace, current->left), walkFunc, cookie); in TraversalSubTrieNode()
302 TraversalSubTrieNode(workSpace, GetTrieNode(workSpace, current->right), walkFunc, cookie); in TraversalSubTrieNode()
307 const ParamTrieNode *root, TraversalTrieNodePtr walkFunc, const void *cookie) in TraversalTrieNode() argument
318 walkFunc(workSpace, (ParamTrieNode *)current, cookie); in TraversalTrieNode()
319 TraversalSubTrieNode(workSpace, GetTrieNode(workSpace, current->child), walkFunc, cookie); in TraversalTrieNode()
321 TraversalSubTrieNode(workSpace, GetTrieNode(workSpace, current->left), walkFunc, cookie); in TraversalTrieNode()
322 TraversalSubTrieNode(workSpace, GetTrieNode(workSpace, current->right), walkFunc, cookie); in TraversalTrieNode()
/base/startup/init/services/modules/seccomp/
Dseccomp_policy_static.c41 static int SeccompHook(const HOOK_INFO *info, void *cookie) in SeccompHook() argument
/base/startup/init/services/modules/selinux/
Dselinux_static.c21 static int SelinuxHook(const HOOK_INFO *hookInfo, void *cookie) in SelinuxHook() argument

12