Home
last modified time | relevance | path

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

12

/base/useriam/user_auth_framework/services/context/src/
Dsimple_auth_context.cpp111 Attributes finalResult; in InvokeResultCallback() local
112 …bool setResultCodeRet = finalResult.SetInt32Value(Attributes::ATTR_RESULT_CODE, resultInfo.result); in InvokeResultCallback()
114 …bool setFreezingTimeRet = finalResult.SetInt32Value(Attributes::ATTR_FREEZING_TIME, resultInfo.fre… in InvokeResultCallback()
116 …bool setUserIdRet = finalResult.SetInt32Value(Attributes::ATTR_REMAIN_TIMES, resultInfo.remainTime… in InvokeResultCallback()
119 …bool setSignatureResult = finalResult.SetUint8ArrayValue(Attributes::ATTR_SIGNATURE, resultInfo.to… in InvokeResultCallback()
123 …bool setRootSecret = finalResult.SetUint8ArrayValue(Attributes::ATTR_ROOT_SECRET, resultInfo.rootS… in InvokeResultCallback()
126 callback_->OnResult(resultInfo.result, finalResult); in InvokeResultCallback()
Didentify_context.cpp111 Attributes finalResult; in InvokeResultCallback() local
112 …bool setResultCodeRet = finalResult.SetInt32Value(Attributes::ATTR_RESULT_CODE, resultInfo.result); in InvokeResultCallback()
114 bool setUserIdRet = finalResult.SetInt32Value(Attributes::ATTR_USER_ID, resultInfo.userId); in InvokeResultCallback()
117 …bool setSignatureResult = finalResult.SetUint8ArrayValue(Attributes::ATTR_SIGNATURE, resultInfo.to… in InvokeResultCallback()
121 callback_->OnResult(resultInfo.result, finalResult); in InvokeResultCallback()
Dcontext_callback_impl.cpp54 void ContextCallbackImpl::OnResult(int32_t resultCode, const Attributes &finalResult) in OnResult() argument
59 if (finalResult.GetInt32Value(Attributes::ATTR_REMAIN_TIMES, remainTime)) { in OnResult()
62 if (finalResult.GetInt32Value(Attributes::ATTR_FREEZING_TIME, freezingTime)) { in OnResult()
68 iamCallback_->OnResult(resultCode, finalResult); in OnResult()
Denroll_context.cpp124 Attributes finalResult; in InvokeResultCallback() local
125 bool setCredIdRet = finalResult.SetUint64Value(Attributes::ATTR_CREDENTIAL_ID, credentialId); in InvokeResultCallback()
128 … bool setRootSecret = finalResult.SetUint8ArrayValue(Attributes::ATTR_ROOT_SECRET, rootSecret); in InvokeResultCallback()
131 callback_->OnResult(resultCode, finalResult); in InvokeResultCallback()
Dbase_context.cpp96 …d BaseContext::OnScheduleStoped(int32_t resultCode, const std::shared_ptr<Attributes> &finalResult) in OnScheduleStoped() argument
98 OnResult(resultCode, finalResult); in OnScheduleStoped()
/base/useriam/user_auth_framework/test/unittest/inner_api/src/
Dexecutor_messenger_proxy_test.cpp73 std::shared_ptr<Attributes> finalResult = nullptr; variable
79 EXPECT_EQ(proxy->Finish(scheduleId, srcRole, resultCode, finalResult), INVALID_PARAMETERS);
98 std::shared_ptr<Attributes> finalResult = Common::MakeShared<Attributes>(); variable
99 EXPECT_NE(finalResult, nullptr);
103 EXPECT_EQ(proxy->Finish(scheduleId, srcRole, resultCode, finalResult), SUCCESS);
Dexecutor_messenger_client_test.cpp113 Attributes finalResult; variable
118 int32_t result = service->Finish(testScheduleId, testSrcRole, testResultCode, finalResult);
127 Attributes finalResult; variable
135 ResultCode resultCode, const std::shared_ptr<Attributes> &finalResult) { in __anona6ff57c40202() argument
143 int32_t result = service->Finish(testScheduleId, testSrcRole, testResultCode, finalResult);
Dexecutor_messenger_stub_test.cpp77 std::vector<uint8_t> finalResult = {1, 2, 4, 6}; variable
88 EXPECT_TRUE(data.WriteUInt8Vector(finalResult));
/base/useriam/user_auth_framework/frameworks/native/ipc/src/
Dexecutor_messenger_stub.cpp109 auto finalResult = Common::MakeShared<Attributes>(attributes); in FinishStub() local
110 IF_FALSE_LOGE_AND_RETURN_VAL(finalResult != nullptr, WRITE_PARCEL_ERROR); in FinishStub()
112 …(scheduleId, static_cast<ExecutorRole>(srcRole), static_cast<ResultCode>(resultCode), finalResult); in FinishStub()
Dexecutor_messenger_proxy.cpp75 const std::shared_ptr<Attributes> &finalResult) in Finish() argument
77 if (finalResult == nullptr) { in Finish()
100 std::vector<uint8_t> buffer = finalResult->Serialize(); in Finish()
/base/useriam/user_auth_framework/frameworks/native/client/src/
Dexecutor_messenger_client.cpp50 const Attributes &finalResult) in Finish() argument
56 auto attr = Common::MakeShared<Attributes>(finalResult.Serialize()); in Finish()
/base/useriam/user_auth_framework/test/unittest/services/src/
Didentify_context_test.cpp58 const auto finalResult = Common::MakeShared<Attributes>(); variable
59 ASSERT_NE(finalResult, nullptr);
73 nodeCallback->OnScheduleStoped(testResultCode, finalResult);
83 const auto finalResult = Common::MakeShared<Attributes>(); variable
84 ASSERT_NE(finalResult, nullptr);
97 nodeCallback->OnScheduleStoped(testResultCode, finalResult);
304 .WillOnce([](int32_t resultCode, const Attributes &finalResult) { in __anon24d148fe0802() argument
327 .WillOnce([](int32_t resultCode, const Attributes &finalResult) { in __anon24d148fe0902() argument
350 .WillOnce([](int32_t resultCode, const Attributes &finalResult) { in __anon24d148fe0a02() argument
382 .WillOnce([](int32_t resultCode, const Attributes &finalResult) { in __anon24d148fe0c02() argument
[all …]
Dsimple_auth_context_test.cpp62 const auto finalResult = Common::MakeShared<Attributes>(); variable
63 ASSERT_NE(finalResult, nullptr);
77 nodeCallback->OnScheduleStoped(testResultCode, finalResult);
87 const auto finalResult = Common::MakeShared<Attributes>(); variable
88 ASSERT_NE(finalResult, nullptr);
101 nodeCallback->OnScheduleStoped(testResultCode, finalResult);
358 ….WillOnce([](int32_t resultCode, const Attributes &finalResult) { EXPECT_EQ(resultCode, testResult… in __anonda6bd27d0c02() argument
379 .WillOnce([](int32_t resultCode, const Attributes &finalResult) { in __anonda6bd27d0d02() argument
402 .WillOnce([](int32_t resultCode, const Attributes &finalResult) { in __anonda6bd27d0e02() argument
433 .WillOnce([](int32_t resultCode, const Attributes &finalResult) { in __anonda6bd27d1002() argument
[all …]
Denroll_context_test.cpp59 const auto finalResult = Common::MakeShared<Attributes>(); variable
60 ASSERT_NE(finalResult, nullptr);
74 nodeCallback->OnScheduleStoped(testResultCode, finalResult);
84 const auto finalResult = Common::MakeShared<Attributes>(); variable
85 ASSERT_NE(finalResult, nullptr);
98 nodeCallback->OnScheduleStoped(testResultCode, finalResult);
357 .WillOnce([](int32_t resultCode, const Attributes &finalResult) { in __anon55df5d4e0c02() argument
380 .WillOnce([](int32_t resultCode, const Attributes &finalResult) { in __anon55df5d4e0d02() argument
403 .WillOnce([](int32_t resultCode, const Attributes &finalResult) { in __anon55df5d4e0e02() argument
436 .WillOnce([](int32_t resultCode, const Attributes &finalResult) { in __anon55df5d4e1002() argument
[all …]
/base/useriam/user_auth_framework/services/ipc/src/
Dexecutor_messenger_service.cpp59 const std::shared_ptr<Attributes> &finalResult) in Finish() argument
66 bool result = scheduleNode->ContinueSchedule(resultCode, finalResult); in Finish()
/base/useriam/user_auth_framework/test/unittest/executors/
Didentify_command_unit_test.cpp73 …([](uint64_t scheduleId, ExecutorRole srcRole, int32_t resultCode, const Attributes &finalResult) { in __anona80468fe0102() argument
78 … EXPECT_EQ(finalResult.GetUint32Value(Attributes::ATTR_RESULT_CODE, attrResultCode), true); in __anona80468fe0102()
81 EXPECT_EQ(finalResult.GetUint8ArrayValue(Attributes::ATTR_RESULT, extraInfo), true); in __anona80468fe0102()
103 …([](uint64_t scheduleId, ExecutorRole srcRole, int32_t resultCode, const Attributes &finalResult) { in __anona80468fe0202() argument
125 …([](uint64_t scheduleId, ExecutorRole srcRole, int32_t resultCode, const Attributes &finalResult) { in __anona80468fe0302() argument
130 … EXPECT_EQ(finalResult.GetUint32Value(Attributes::ATTR_RESULT_CODE, attrResultCode), true); in __anona80468fe0302()
133 EXPECT_EQ(finalResult.GetUint8ArrayValue(Attributes::ATTR_RESULT, extraInfo), true); in __anona80468fe0302()
Denroll_command_unit_test.cpp73 …([](uint64_t scheduleId, ExecutorRole srcRole, int32_t resultCode, const Attributes &finalResult) { in __anon9de1718e0102() argument
78 … EXPECT_EQ(finalResult.GetUint32Value(Attributes::ATTR_RESULT_CODE, attrResultCode), true); in __anon9de1718e0102()
81 EXPECT_EQ(finalResult.GetUint8ArrayValue(Attributes::ATTR_RESULT, extraInfo), true); in __anon9de1718e0102()
103 …([](uint64_t scheduleId, ExecutorRole srcRole, int32_t resultCode, const Attributes &finalResult) { in __anon9de1718e0202() argument
125 …([](uint64_t scheduleId, ExecutorRole srcRole, int32_t resultCode, const Attributes &finalResult) { in __anon9de1718e0302() argument
130 … EXPECT_EQ(finalResult.GetUint32Value(Attributes::ATTR_RESULT_CODE, attrResultCode), true); in __anon9de1718e0302()
133 EXPECT_EQ(finalResult.GetUint8ArrayValue(Attributes::ATTR_RESULT, extraInfo), true); in __anon9de1718e0302()
Dauth_command_unit_test.cpp73 …([](uint64_t scheduleId, ExecutorRole srcRole, int32_t resultCode, const Attributes &finalResult) { in __anon3461a1f40102() argument
78 … EXPECT_EQ(finalResult.GetUint32Value(Attributes::ATTR_RESULT_CODE, attrResultCode), true); in __anon3461a1f40102()
81 EXPECT_EQ(finalResult.GetUint8ArrayValue(Attributes::ATTR_RESULT, extraInfo), true); in __anon3461a1f40102()
103 …([](uint64_t scheduleId, ExecutorRole srcRole, int32_t resultCode, const Attributes &finalResult) { in __anon3461a1f40202() argument
124 …([](uint64_t scheduleId, ExecutorRole srcRole, int32_t resultCode, const Attributes &finalResult) { in __anon3461a1f40302() argument
129 … EXPECT_EQ(finalResult.GetUint32Value(Attributes::ATTR_RESULT_CODE, attrResultCode), true); in __anon3461a1f40302()
132 EXPECT_EQ(finalResult.GetUint8ArrayValue(Attributes::ATTR_RESULT, extraInfo), true); in __anon3461a1f40302()
/base/useriam/user_auth_framework/services/core/inc/
Dschedule_node_callback.h34 …tual void OnScheduleStoped(int32_t resultCode, const std::shared_ptr<Attributes> &finalResult) = 0;
/base/useriam/user_auth_framework/test/fuzztest/clients/coauthclient_fuzzer/
Dco_auth_client_fuzzer.cpp93 const std::shared_ptr<Attributes> &finalResult) override in Finish() argument
99 static_cast<void>(finalResult); in Finish()
235 Attributes finalResult(attr); in FuzzExecutorMessengerClientFinish() local
237 g_ExecutorMessengerClient->Finish(scheduleId, srcRole, resultCode, finalResult); in FuzzExecutorMessengerClientFinish()
/base/useriam/user_auth_framework/test/unittest/inner_api/mocks/
Dmock_executor_messenger_service.h32 const std::shared_ptr<Attributes> &finalResult));
/base/useriam/user_auth_framework/test/unittest/services/mocks/
Dmock_schedule_node_callback.h32 …ETHOD2(OnScheduleStoped, void(int32_t resultCode, const std::shared_ptr<Attributes> &finalResult));
/base/useriam/user_auth_framework/frameworks/native/ipc/common_defines/
Dexecutor_messenger_interface.h37 const std::shared_ptr<Attributes> &finalResult) = 0;
/base/useriam/user_auth_framework/services/ipc/inc/
Dexecutor_messenger_service.h31 const std::shared_ptr<Attributes> &finalResult) override;
/base/useriam/user_auth_framework/test/unittest/executors/mock/
Dmock_iexecutor_messenger.h36 …2_t(uint64_t scheduleId, ExecutorRole srcRole, int32_t resultCode, const Attributes &finalResult));

12