/base/startup/init/test/fuzztest/systemtraversalparameter_fuzzer/ |
D | systemtraversalparameter_fuzzer.cpp | 24 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/ |
D | device_security_level_callback_helper.cpp | 55 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 …]
|
D | device_security_level_callback_helper.h | 44 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);
|
D | device_security_info.cpp | 57 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()
|
D | device_security_level_proxy.cpp | 45 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()
|
D | device_security_level_proxy.h | 41 const sptr<IRemoteObject> &callback, uint64_t cookie);
|
/base/security/device_security_level/services/sa/standard/ |
D | dslm_ipc_process.cpp | 41 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 …]
|
D | dslm_ipc_process.h | 39 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);
|
D | dslm_callback_proxy.cpp | 32 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/ |
D | dslm_hitrace.cpp | 42 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/ |
D | dslm_request_callback_mock.h | 33 … 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…
|
D | dslm_request_callback_mock.cpp | 40 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/ |
D | dslm_hitrace.h | 33 void DslmStartProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie); 34 void DslmFinishProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie);
|
D | dslm_callback_info.h | 31 typedef void RequestCallback(uint32_t owner, uint32_t cookie, uint32_t result, const DslmCallbackIn…
|
D | dslm_notify_node.h | 35 uint32_t cookie; member
|
/base/startup/init/interfaces/innerkits/modulemgr/ |
D | modulemgr.c | 297 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/ |
D | modulemgr.h | 137 void *cookie; /* hook execution cookie */ member 156 void ModuleMgrTraversal(const MODULE_MGR *moduleMgr, void *cookie, OhosModuleTraversal traversal);
|
/base/security/device_security_level/services/dslm/ |
D | dslm_dfx_default.c | 67 …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
|
D | dslm_fsm_process.c | 159 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/ |
D | init_modulemgr.c | 75 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/ |
D | init_param.h | 173 void (*traversalParameter)(ParamHandle handle, void *cookie), void *cookie);
|
/base/startup/init/services/modules/bootchart/ |
D | bootchart_static.c | 19 static int bootchartEarlyHook(const HOOK_INFO *info, void *cookie) in bootchartEarlyHook() argument
|
/base/startup/init/services/param/base/ |
D | param_trie.c | 294 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/ |
D | seccomp_policy_static.c | 41 static int SeccompHook(const HOOK_INFO *info, void *cookie) in SeccompHook() argument
|
/base/startup/init/services/modules/selinux/ |
D | selinux_static.c | 21 static int SelinuxHook(const HOOK_INFO *hookInfo, void *cookie) in SelinuxHook() argument
|