/base/security/device_security_level/baselib/msglib/src/common/ |
D | messenger_impl.c | 63 Messenger *messenger = MALLOC(sizeof(Messenger)); in CreateMessengerImpl() local 64 if (messenger == NULL) { in CreateMessengerImpl() 68 messenger->magicHead = MESSENGER_MAGIC_HEAD; in CreateMessengerImpl() 69 messenger->processQueue = processQueue; in CreateMessengerImpl() 71 return messenger; in CreateMessengerImpl() 74 void DestroyMessengerImpl(Messenger *messenger) in DestroyMessengerImpl() argument 76 if (messenger == NULL || messenger->magicHead != MESSENGER_MAGIC_HEAD) { in DestroyMessengerImpl() 82 messenger->magicHead = 0; in DestroyMessengerImpl() 83 DestroyWorkQueue(messenger->processQueue); in DestroyMessengerImpl() 84 FREE(messenger); in DestroyMessengerImpl() [all …]
|
D | messenger.c | 24 void DestroyMessenger(Messenger *messenger) in DestroyMessenger() argument 26 DestroyMessengerImpl(messenger); in DestroyMessenger() 29 bool IsMessengerReady(const Messenger *messenger) in IsMessengerReady() argument 31 return IsMessengerReadyImpl(messenger); in IsMessengerReady() 34 void SendMsgTo(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const uin… in SendMsgTo() argument 37 SendMsgToImpl(messenger, transNo, devId, msg, msgLen); in SendMsgTo() 40 bool GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devTy… in GetDeviceOnlineStatus() argument 42 return GetDeviceOnlineStatusImpl(messenger, devId, devType); in GetDeviceOnlineStatus() 45 bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType) in GetSelfDeviceIdentify() argument 47 return GetSelfDeviceIdentifyImpl(messenger, devId, devType); in GetSelfDeviceIdentify() [all …]
|
D | messenger_impl.h | 27 void DestroyMessengerImpl(Messenger *messenger); 29 void SendMsgToImpl(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const… 32 bool IsMessengerReadyImpl(const Messenger *messenger); 34 bool GetDeviceOnlineStatusImpl(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *d… 36 bool GetSelfDeviceIdentifyImpl(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType… 38 void ForEachDeviceProcessImpl(const Messenger *messenger, const DeviceProcessor processor, void *pa… 40 bool GetDeviceStatisticInfoImpl(const Messenger *messenger, const DeviceIdentify *devId, StatisticI…
|
/base/security/device_security_level/test/dslm_unit_test/ |
D | dslm_msg_interface_mock.h | 34 virtual bool IsMessengerReady(const Messenger *messenger) = 0; 36 …virtual uint64_t SendMsgTo(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *dev… 39 …virtual bool GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, uint32… 41 …virtual bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, uint32_t *de… 43 …virtual void ForEachDeviceProcess(const Messenger *messenger, const DeviceProcessor processor, voi… 50 MOCK_METHOD1(IsMessengerReady, bool(const Messenger *messenger)); 51 …MOCK_METHOD5(SendMsgTo, uint64_t(const Messenger *messenger, uint64_t transNo, const DeviceIdentif… 54 bool(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devType)); 55 …MOCK_METHOD3(GetSelfDeviceIdentify, bool(const Messenger *messenger, DeviceIdentify *devId, uint32… 56 …MOCK_METHOD3(ForEachDeviceProcess, void(const Messenger *messenger, const DeviceProcessor processo…
|
D | dslm_msg_interface_mock.cpp | 55 … auto loopback = [this](const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, in MakeMsgLoopback() 66 …auto loopback = [this, self](const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType)… in MakeSelfDeviceId() argument 98 void DestroyMessengerImpl(Messenger *messenger) in DestroyMessengerImpl() argument 100 (void)messenger; in DestroyMessengerImpl() 103 bool IsMessengerReadyImpl(const Messenger *messenger) in IsMessengerReadyImpl() argument 105 return GetDslmMsgInterface()->IsMessengerReady(messenger); in IsMessengerReadyImpl() 108 uint64_t SendMsgToImpl(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, c… in SendMsgToImpl() argument 111 return GetDslmMsgInterface()->SendMsgTo(messenger, transNo, devId, msg, msgLen); in SendMsgToImpl() 114 bool GetDeviceOnlineStatusImpl(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *d… in GetDeviceOnlineStatusImpl() argument 116 return GetDslmMsgInterface()->GetDeviceOnlineStatus(messenger, devId, devType); in GetDeviceOnlineStatusImpl() [all …]
|
/base/useriam/user_auth_framework/test/unittest/executors/ |
D | auth_command_unit_test.cpp | 69 auto messenger = MakeShared<MockIExecutorMessenger>(); variable 70 ASSERT_NE(messenger, nullptr); 71 EXPECT_CALL(*messenger, Finish(_, _, _, _)) 88 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); 99 auto messenger = MakeShared<MockIExecutorMessenger>(); variable 100 ASSERT_NE(messenger, nullptr); 101 EXPECT_CALL(*messenger, Finish(_, _, _, _)) 109 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); 120 auto messenger = MakeShared<MockIExecutorMessenger>(); variable 121 ASSERT_NE(messenger, nullptr); [all …]
|
D | enroll_command_unit_test.cpp | 69 auto messenger = MakeShared<MockIExecutorMessenger>(); variable 70 ASSERT_NE(messenger, nullptr); 71 EXPECT_CALL(*messenger, Finish(_, _, _, _)) 88 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); 99 auto messenger = MakeShared<MockIExecutorMessenger>(); variable 100 ASSERT_NE(messenger, nullptr); 101 EXPECT_CALL(*messenger, Finish(_, _, _, _)) 110 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); 121 auto messenger = MakeShared<MockIExecutorMessenger>(); variable 122 ASSERT_NE(messenger, nullptr); [all …]
|
D | identify_command_unit_test.cpp | 69 auto messenger = MakeShared<MockIExecutorMessenger>(); variable 70 ASSERT_NE(messenger, nullptr); 71 EXPECT_CALL(*messenger, Finish(_, _, _, _)) 88 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); 99 auto messenger = MakeShared<MockIExecutorMessenger>(); variable 100 ASSERT_NE(messenger, nullptr); 101 EXPECT_CALL(*messenger, Finish(_, _, _, _)) 110 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); 121 auto messenger = MakeShared<MockIExecutorMessenger>(); variable 122 ASSERT_NE(messenger, nullptr); [all …]
|
/base/security/device_security_level/baselib/msglib/include/ |
D | messenger.h | 77 void DestroyMessenger(Messenger *messenger); 79 bool IsMessengerReady(const Messenger *messenger); 81 void SendMsgTo(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const uin… 84 bool GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devTy… 86 bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType); 88 void ForEachDeviceProcess(const Messenger *messenger, const DeviceProcessor processor, void *para); 90 bool GetDeviceStatisticInfo(const Messenger *messenger, const DeviceIdentify *devId, StatisticInfor…
|
/base/useriam/user_auth_framework/frameworks/native/executors/src/async_command/ |
D | async_command_base.cpp | 148 auto messenger = executorMessenger_; in MessengerSendData() local 149 IF_FALSE_LOGE_AND_RETURN_VAL(messenger != nullptr, USERAUTH_ERROR); in MessengerSendData() 150 return messenger->SendData(scheduleId, transNum, srcType, dstType, msg); in MessengerSendData() 156 auto messenger = executorMessenger_; in MessengerFinish() local 157 IF_FALSE_LOGE_AND_RETURN_VAL(messenger != nullptr, USERAUTH_ERROR); in MessengerFinish() 158 int32_t ret = messenger->Finish(scheduleId, srcType, resultCode, *finalResult); in MessengerFinish()
|
/base/useriam/user_auth_framework/test/unittest/inner_api/src/ |
D | executor_callback_proxy_test.cpp | 47 sptr<ExecutorMessengerInterface> messenger(nullptr); 56 proxy->OnMessengerReady(messenger, publicKey, templateIdList); 74 sptr<ExecutorMessengerInterface> messenger(new (std::nothrow) MockExecutorMessengerService()); 75 EXPECT_NE(messenger, nullptr); 78 proxy->OnMessengerReady(messenger, publicKey, templateIdList);
|
D | executor_callback_stub_test.cpp | 48 sptr<MockExecutorMessengerService> messenger(new (std::nothrow) MockExecutorMessengerService()); 49 EXPECT_NE(messenger, nullptr); 59 EXPECT_TRUE(data.WriteRemoteObject(messenger->AsObject()));
|
/base/useriam/user_auth_framework/frameworks/native/client/src/ |
D | executor_messenger_client.cpp | 27 ExecutorMessengerClient::ExecutorMessengerClient(const sptr<ExecutorMessengerInterface> &messenger) in ExecutorMessengerClient() argument 28 : messenger_(messenger) in ExecutorMessengerClient()
|
D | executor_callback_service.cpp | 32 void ExecutorCallbackService::OnMessengerReady(sptr<ExecutorMessengerInterface> &messenger, in OnMessengerReady() argument 40 auto wrapper = Common::MakeShared<ExecutorMessengerClient>(messenger); in OnMessengerReady()
|
/base/useriam/user_auth_framework/frameworks/native/ipc/src/ |
D | executor_callback_stub.cpp | 58 sptr<ExecutorMessengerInterface> messenger = iface_cast<ExecutorMessengerProxy>(obj); in OnMessengerReadyStub() local 59 if (messenger == nullptr) { in OnMessengerReadyStub() 76 OnMessengerReady(messenger, publicKey, templateIds); in OnMessengerReadyStub()
|
D | executor_callback_proxy.cpp | 27 void ExecutorCallbackProxy::OnMessengerReady(sptr<ExecutorMessengerInterface> &messenger, in OnMessengerReady() argument 30 if (messenger == nullptr) { in OnMessengerReady() 41 if (!data.WriteRemoteObject(messenger->AsObject())) { in OnMessengerReady()
|
/base/useriam/user_auth_framework/test/fuzztest/clients/executorcallbackstub_fuzzer/ |
D | executor_callback_stub_fuzzer.cpp | 39 void OnMessengerReady(const std::shared_ptr<ExecutorMessenger> &messenger, in OnMessengerReady() argument 43 static_cast<void>(messenger); in OnMessengerReady()
|
/base/useriam/user_auth_framework/test/fuzztest/clients/coauthclient_fuzzer/ |
D | co_auth_client_fuzzer.cpp | 35 void OnMessengerReady(const std::shared_ptr<ExecutorMessenger> &messenger, in OnMessengerReady() argument 39 static_cast<void>(messenger); in OnMessengerReady() 148 … sptr<ExecutorMessengerInterface> messenger(new (std::nothrow) DummyExecutorMessengerInterface()); in FuzzExecutorCallbackServiceOnMessengerReady() local 154 g_ExecutorCallbackService->OnMessengerReady(messenger, publicKey, templateIdList); in FuzzExecutorCallbackServiceOnMessengerReady()
|
/base/useriam/user_auth_framework/frameworks/native/client/inc/ |
D | executor_messenger_client.h | 27 explicit ExecutorMessengerClient(const sptr<ExecutorMessengerInterface> &messenger);
|
D | executor_callback_service.h | 30 …void OnMessengerReady(sptr<ExecutorMessengerInterface> &messenger, const std::vector<uint8_t> &pub…
|
/base/useriam/user_auth_framework/interfaces/inner_api/ |
D | co_auth_client_callback.h | 42 virtual void OnMessengerReady(const std::shared_ptr<ExecutorMessenger> &messenger,
|
/base/useriam/user_auth_framework/test/unittest/inner_api/mocks/ |
D | mock_executor_register_callback.h | 30 MOCK_METHOD3(OnMessengerReady, void(const std::shared_ptr<ExecutorMessenger> &messenger,
|
D | mock_executor_callback_service.h | 28 MOCK_METHOD3(OnMessengerReady, void(sptr<ExecutorMessengerInterface> &messenger,
|
/base/useriam/user_auth_framework/frameworks/native/ipc/common_defines/ |
D | executor_callback_interface.h | 30 …virtual void OnMessengerReady(sptr<ExecutorMessengerInterface> &messenger, const std::vector<uint8…
|
/base/useriam/user_auth_framework/test/fuzztest/executors/userauthexecutor_fuzzer/ |
D | user_auth_executor_fuzzer.cpp | 294 …id FillIExecutorMessenger(std::shared_ptr<Parcel> parcel, shared_ptr<ExecutorMessenger> &messenger) in FillIExecutorMessenger() argument 298 messenger = nullptr; in FillIExecutorMessenger() 301 messenger = g_executorMessenger; in FillIExecutorMessenger() 331 shared_ptr<ExecutorMessenger> messenger = nullptr; in FuzzFrameworkOnMessengerReady() local 332 FillIExecutorMessenger(parcel, messenger); in FuzzFrameworkOnMessengerReady() 337 g_executorCallback->OnMessengerReady(messenger, publicKey, templateIds); in FuzzFrameworkOnMessengerReady()
|