/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()
|
/base/security/device_security_level/services/sa/standard/ |
D | dslm_ipc_process.cpp | 43 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 …]
|
D | dslm_ipc_process.h | 41 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);
|
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/sa/lite/ |
D | dslm_ipc_process.c | 51 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/ |
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…
|
/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/startup/init/interfaces/innerkits/modulemgr/ |
D | modulemgr.c | 295 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/ |
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 | 83 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/ |
D | init_trace_static.c | 20 static int InitTraceEarlyHook(const HOOK_INFO *info, void *cookie) in InitTraceEarlyHook() argument
|
/base/startup/init/services/modules/udid/ |
D | udid_static.c | 19 static int UDidCalc(const HOOK_INFO *hookInfo, void *cookie) in UDidCalc() argument
|
/base/startup/init/services/param/base/ |
D | param_trie.c | 204 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/ |
D | param_trie.h | 48 …(*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/ |
D | bootchart_static.c | 19 static int bootchartEarlyHook(const HOOK_INFO *info, void *cookie) in bootchartEarlyHook() argument
|
/base/startup/init/services/modules/init_eng/ |
D | init_eng_static.c | 21 static int InitEngEarlyHook(const HOOK_INFO *info, void *cookie) in InitEngEarlyHook() argument
|