Home
last modified time | relevance | path

Searched refs:executor (Results 1 - 25 of 56) sorted by relevance

123

/base/useriam/user_auth_framework/frameworks/native/executors/src/
H A Ddriver.cpp58 auto executor = Common::MakeShared<Executor>(executorMgrWrapper, executorHdi, hdiConfig_.id); in OnHdiConnect() local
59 if (executor == nullptr) { in OnHdiConnect()
63 executorList_.push_back(executor); in OnHdiConnect()
64 executor->OnHdiConnect(); in OnHdiConnect()
65 IAM_LOGI("add executor %{public}s success", executor->GetDescription()); in OnHdiConnect()
75 for (const auto &executor : executorList_) { in OnHdiDisconnect()
76 if (executor == nullptr) { in OnHdiDisconnect()
77 IAM_LOGE("executor is null"); in OnHdiDisconnect()
80 executor in OnHdiDisconnect()
[all...]
/base/useriam/face_auth/services/src/
H A Dscreen_brightness_manager.cpp57 UserAuth::ResultCode ScreenBrightnessManager::ProcessSaCommand(std::shared_ptr<FaceAuthAllInOneExecutorHdi> executor, in ProcessSaCommand() argument
60 IF_FALSE_LOGE_AND_RETURN_VAL(executor != nullptr, UserAuth::GENERAL_ERROR); in ProcessSaCommand()
67 result = ProcessScreenBrightnessIncreaseBegin(executor, command.param); in ProcessSaCommand()
70 result = ProcessScreenBrightnessIncreaseEnd(executor, command.param); in ProcessSaCommand()
78 void ScreenBrightnessManager::OnHdiDisconnect(std::shared_ptr<FaceAuthAllInOneExecutorHdi> executor) in OnHdiDisconnect() argument
80 IF_FALSE_LOGE_AND_RETURN(executor != nullptr); in OnHdiDisconnect()
84 if (executorInProc_ != executor) { in OnHdiDisconnect()
99 std::shared_ptr<FaceAuthAllInOneExecutorHdi> executor, const SaCommandParam param) in ProcessScreenBrightnessIncreaseBegin()
102 IAM_LOGE("another executor is using this module"); in ProcessScreenBrightnessIncreaseBegin()
127 executorInProc_ = executor; in ProcessScreenBrightnessIncreaseBegin()
98 ProcessScreenBrightnessIncreaseBegin( std::shared_ptr<FaceAuthAllInOneExecutorHdi> executor, const SaCommandParam param) ProcessScreenBrightnessIncreaseBegin() argument
133 ProcessScreenBrightnessIncreaseEnd( std::shared_ptr<FaceAuthAllInOneExecutorHdi> executor, const SaCommandParam param) ProcessScreenBrightnessIncreaseEnd() argument
[all...]
H A Dface_auth_driver_hdi.cpp69 auto executor = Common::MakeShared<FaceAuthAllInOneExecutorHdi>(iExecutor); in GetExecutorList() local
70 if (executor == nullptr) { in GetExecutorList()
74 executorList.push_back(executor); in GetExecutorList()
75 faceAuthExecutorList_.push_back(executor); in GetExecutorList()
H A Dsa_command_manager.cpp67 UserAuth::ResultCode SaCommandManager::ProcessSaCommands(std::shared_ptr<FaceAuthAllInOneExecutorHdi> executor, in ProcessSaCommands() argument
78 UserAuth::ResultCode result = processor->ProcessSaCommand(executor, command); in ProcessSaCommands()
86 void SaCommandManager::OnHdiDisconnect(std::shared_ptr<FaceAuthAllInOneExecutorHdi> executor) in OnHdiDisconnect() argument
92 processor->OnHdiDisconnect(executor); in OnHdiDisconnect()
/base/useriam/fingerprint_auth/services/src/
H A Dsensor_illumination_manager.cpp56 std::shared_ptr<FingerprintAllInOneExecutorHdi> executor, const SaCommand &command) in ProcessSaCommand()
58 IF_FALSE_LOGE_AND_RETURN_VAL(executor != nullptr, UserAuth::GENERAL_ERROR); in ProcessSaCommand()
64 result = EnableSensorIllumination(executor, command.param); in ProcessSaCommand()
67 result = DisableSensorIllumination(executor, command.param); in ProcessSaCommand()
70 result = TurnOnSensorIllumination(executor, command.param); in ProcessSaCommand()
73 result = TurnOffSensorIllumination(executor, command.param); in ProcessSaCommand()
81 void SensorIlluminationManager::OnHdiDisconnect(std::shared_ptr<FingerprintAllInOneExecutorHdi> executor) in OnHdiDisconnect() argument
83 IF_FALSE_LOGE_AND_RETURN(executor != nullptr); in OnHdiDisconnect()
87 if (executorInProc_ != executor) { in OnHdiDisconnect()
105 std::shared_ptr<FingerprintAllInOneExecutorHdi> executor, cons in EnableSensorIllumination()
55 ProcessSaCommand( std::shared_ptr<FingerprintAllInOneExecutorHdi> executor, const SaCommand &command) ProcessSaCommand() argument
104 EnableSensorIllumination( std::shared_ptr<FingerprintAllInOneExecutorHdi> executor, const SaCommandParam param) EnableSensorIllumination() argument
146 DisableSensorIllumination( std::shared_ptr<FingerprintAllInOneExecutorHdi> executor, const SaCommandParam param) DisableSensorIllumination() argument
168 TurnOnSensorIllumination( std::shared_ptr<FingerprintAllInOneExecutorHdi> executor, const SaCommandParam param) TurnOnSensorIllumination() argument
187 TurnOffSensorIllumination( std::shared_ptr<FingerprintAllInOneExecutorHdi> executor, const SaCommandParam param) TurnOffSensorIllumination() argument
[all...]
H A Dfingerprint_auth_driver_hdi.cpp70 auto executor = Common::MakeShared<FingerprintAllInOneExecutorHdi>(iExecutor); in GetExecutorList() local
71 if (executor == nullptr) { in GetExecutorList()
75 executorList.push_back(executor); in GetExecutorList()
76 fingerprintAuthExecutorList_.push_back(executor); in GetExecutorList()
H A Dsa_command_manager.cpp67 UserAuth::ResultCode SaCommandManager::ProcessSaCommands(std::shared_ptr<FingerprintAllInOneExecutorHdi> executor, in ProcessSaCommands() argument
78 UserAuth::ResultCode result = processor->ProcessSaCommand(executor, command); in ProcessSaCommands()
86 void SaCommandManager::OnHdiDisconnect(std::shared_ptr<FingerprintAllInOneExecutorHdi> executor) in OnHdiDisconnect() argument
92 processor->OnHdiDisconnect(executor); in OnHdiDisconnect()
/base/useriam/user_auth_framework/frameworks/native/executors/src/async_command/
H A Dasync_command_base.cpp36 AsyncCommandBase::AsyncCommandBase(std::string type, uint64_t scheduleId, std::weak_ptr<Executor> executor, in AsyncCommandBase() argument
39 executor_(executor), in AsyncCommandBase()
58 auto executor = executor_.lock(); in StartProcess() local
59 if (executor == nullptr) { in StartProcess()
60 IAM_LOGE("%{public}s executor has been released, start process fail", GetDescription()); in StartProcess()
63 executor->AddCommand(shared_from_this()); in StartProcess()
135 std::shared_ptr<Executor> executor = executor_.lock(); in OnMessageInner() local
136 IF_FALSE_LOGE_AND_RETURN(executor != nullptr); in OnMessageInner()
139 bool setAcquireRet = attr.SetInt32Value(Attributes::ATTR_SRC_ROLE, executor->GetExecutorRole()); in OnMessageInner()
156 auto executor in GetAuthType() local
167 auto executor = executor_.lock(); EndProcess() local
190 auto executor = executor_.lock(); GetExecutorHdi() local
[all...]
/base/useriam/fingerprint_auth/test/unittest/
H A Dfingerprint_auth_sensor_illumination_test.cpp103 auto executor = Common::MakeShared<FingerprintAllInOneExecutorHdi>(nullptr); in HWTEST_F() local
104 EXPECT_TRUE(executor != nullptr); in HWTEST_F()
107 manager->ProcessSaCommand(executor, enableCommand); in HWTEST_F()
111 manager->ProcessSaCommand(executor, turnOnCommand); in HWTEST_F()
114 manager->ProcessSaCommand(executor, turnOffCommand); in HWTEST_F()
118 manager->ProcessSaCommand(executor, turnOnCommand); in HWTEST_F()
121 manager->ProcessSaCommand(executor, turnOffCommand); in HWTEST_F()
125 manager->ProcessSaCommand(executor, disableCommand); in HWTEST_F()
H A Dfingerprint_auth_driver_hdi_unit_test.cpp138 auto executor = sptr<IAllInOneExecutor>(new (std::nothrow) MockIAllInOneExecutor()); in HWTEST_F()
139 EXPECT_TRUE(executor != nullptr); in HWTEST_F()
140 list.push_back(executor); in HWTEST_F()
162 auto executor = sptr<IAllInOneExecutor>(new (std::nothrow) MockIAllInOneExecutor()); in HWTEST_F()
163 EXPECT_TRUE(executor != nullptr); in HWTEST_F()
164 list.push_back(executor); in HWTEST_F()
166 executor = sptr<IAllInOneExecutor>(new (std::nothrow) MockIAllInOneExecutor()); in HWTEST_F()
167 EXPECT_TRUE(executor != nullptr); in HWTEST_F()
168 list.push_back(executor); in HWTEST_F()
189 auto executor in HWTEST_F()
[all...]
/base/useriam/user_auth_framework/test/unittest/executors/
H A Dexecutor_unit_test.cpp21 #include "executor.h"
112 auto executor = MakeShared<Executor>(executorMgrWrapper, executorHdi, testHdiId); in HWTEST_F() local
113 ASSERT_NE(executor, nullptr); in HWTEST_F()
114 executor->OnHdiConnect(); in HWTEST_F()
154 auto executor = MakeShared<Executor>(executorMgrWrapper, executorHdi, testHdiId); in HWTEST_F() local
155 ASSERT_NE(executor, nullptr); in HWTEST_F()
156 executor->OnFrameworkReady(); in HWTEST_F()
173 auto executor = MakeShared<Executor>(executorMgrWrapper, nullptr, testHdiId); in HWTEST_F() local
174 ASSERT_NE(executor, nullptr); in HWTEST_F()
175 executor in HWTEST_F()
197 auto executor = MakeShared<Executor>(executorMgrWrapper, executorHdi, testHdiId); HWTEST_F() local
224 auto executor = MakeShared<Executor>(nullptr, executorHdi, testHdiId); HWTEST_F() local
232 auto executor = MakeShared<Executor>(nullptr, nullptr, testHdiId); HWTEST_F() local
263 auto executor = MakeShared<Executor>(nullptr, executorHdi, testHdiId); HWTEST_F() local
279 auto executor = MakeShared<Executor>(nullptr, executorHdi, testHdiId); HWTEST_F() local
291 auto executor = MakeShared<Executor>(nullptr, nullptr, testHdiId); HWTEST_F() local
308 auto executor = MakeShared<Executor>(nullptr, executorHdi, testHdiId); HWTEST_F() local
318 GetExecutorAndMockStub(shared_ptr<Executor> &executor, shared_ptr<ExecutorRegisterCallback> &executorCallback, shared_ptr<MockIAuthExecutorHdi> &mockExecutorHdi, std::shared_ptr<MockIExecutorMessenger> &mockMessenger) GetExecutorAndMockStub() argument
368 shared_ptr<Executor> executor; HWTEST_F() local
388 shared_ptr<Executor> executor; HWTEST_F() local
411 shared_ptr<Executor> executor; HWTEST_F() local
438 shared_ptr<Executor> executor; HWTEST_F() local
488 shared_ptr<Executor> executor; HWTEST_F() local
526 shared_ptr<Executor> executor; HWTEST_F() local
552 shared_ptr<Executor> executor; HWTEST_F() local
585 shared_ptr<Executor> executor; HWTEST_F() local
630 shared_ptr<Executor> executor; HWTEST_F() local
656 shared_ptr<Executor> executor; HWTEST_F() local
684 shared_ptr<Executor> executor; HWTEST_F() local
714 shared_ptr<Executor> executor; HWTEST_F() local
751 shared_ptr<Executor> executor; HWTEST_F() local
777 shared_ptr<Executor> executor; HWTEST_F() local
804 shared_ptr<Executor> executor; HWTEST_F() local
826 shared_ptr<Executor> executor; HWTEST_F() local
849 shared_ptr<Executor> executor; HWTEST_F() local
868 shared_ptr<Executor> executor; HWTEST_F() local
886 shared_ptr<Executor> executor; HWTEST_F() local
933 shared_ptr<Executor> executor; HWTEST_F() local
954 shared_ptr<Executor> executor; HWTEST_F() local
975 shared_ptr<Executor> executor; HWTEST_F() local
998 shared_ptr<Executor> executor; HWTEST_F() local
1025 shared_ptr<Executor> executor; HWTEST_F() local
1043 shared_ptr<Executor> executor; HWTEST_F() local
1066 shared_ptr<Executor> executor; HWTEST_F() local
1094 shared_ptr<Executor> executor; HWTEST_F() local
1109 shared_ptr<Executor> executor; HWTEST_F() local
1134 shared_ptr<Executor> executor; HWTEST_F() local
1155 shared_ptr<Executor> executor; HWTEST_F() local
1178 shared_ptr<Executor> executor; HWTEST_F() local
1209 shared_ptr<Executor> executor; HWTEST_F() local
1254 shared_ptr<Executor> executor; HWTEST_F() local
1284 shared_ptr<Executor> executor; HWTEST_F() local
1315 shared_ptr<Executor> executor; HWTEST_F() local
1344 shared_ptr<Executor> executor; HWTEST_F() local
[all...]
H A Didentify_command_unit_test.cpp24 #include "executor.h"
84 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); in HWTEST_F() local
85 ASSERT_NE(executor, nullptr); in HWTEST_F()
87 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F()
106 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); in HWTEST_F() local
107 ASSERT_NE(executor, nullptr); in HWTEST_F()
109 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F()
135 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); in HWTEST_F() local
136 ASSERT_NE(executor, nullptr); in HWTEST_F()
138 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleI in HWTEST_F()
152 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
179 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
199 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
226 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
250 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
[all...]
H A Denroll_command_unit_test.cpp24 #include "executor.h"
84 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); in HWTEST_F() local
85 ASSERT_NE(executor, nullptr); in HWTEST_F()
87 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F()
106 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); in HWTEST_F() local
107 ASSERT_NE(executor, nullptr); in HWTEST_F()
109 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F()
135 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); in HWTEST_F() local
136 ASSERT_NE(executor, nullptr); in HWTEST_F()
138 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleI in HWTEST_F()
152 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
179 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
199 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
226 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
250 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
[all...]
H A Dauth_command_unit_test.cpp24 #include "executor.h"
84 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); in HWTEST_F() local
85 ASSERT_NE(executor, nullptr); in HWTEST_F()
87 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F()
105 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); in HWTEST_F() local
106 ASSERT_NE(executor, nullptr); in HWTEST_F()
108 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F()
134 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); in HWTEST_F() local
135 ASSERT_NE(executor, nullptr); in HWTEST_F()
137 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleI in HWTEST_F()
151 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
178 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
198 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
225 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
249 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); HWTEST_F() local
[all...]
/base/useriam/fingerprint_auth/services/inc/
H A Dsensor_illumination_manager.h40 UserAuth::ResultCode ProcessSaCommand(std::shared_ptr<FingerprintAllInOneExecutorHdi> executor,
42 void OnHdiDisconnect(std::shared_ptr<FingerprintAllInOneExecutorHdi> executor) override;
45 UserAuth::ResultCode EnableSensorIllumination(std::shared_ptr<FingerprintAllInOneExecutorHdi> executor,
47 UserAuth::ResultCode DisableSensorIllumination(std::shared_ptr<FingerprintAllInOneExecutorHdi> executor,
49 UserAuth::ResultCode TurnOnSensorIllumination(std::shared_ptr<FingerprintAllInOneExecutorHdi> executor,
51 UserAuth::ResultCode TurnOffSensorIllumination(std::shared_ptr<FingerprintAllInOneExecutorHdi> executor,
/base/useriam/pin_auth/services/modules/driver/src/
H A Dpin_auth_driver_hdi.cpp48 auto executor = Common::MakeShared<PinAuthAllInOneHdi>(iAllInOne); in GetAllInOneExecutorList() local
49 if (executor == nullptr) { in GetAllInOneExecutorList()
53 executorList.push_back(executor); in GetAllInOneExecutorList()
66 auto executor = Common::MakeShared<PinAuthCollectorHdi>(iCollector); in GetCollectorExecutorList() local
67 if (executor == nullptr) { in GetCollectorExecutorList()
71 executorList.push_back(executor); in GetCollectorExecutorList()
84 auto executor = Common::MakeShared<PinAuthVerifierHdi>(iVerifier); in GetVerifierExecutorList() local
85 if (executor == nullptr) { in GetVerifierExecutorList()
89 executorList.push_back(executor); in GetVerifierExecutorList()
117 IAM_LOGI("get executor siz in GetExecutorList()
[all...]
/base/security/access_token/services/tokensyncmanager/src/remote/
H A Dremote_command_manager.cpp69 std::shared_ptr<RemoteCommandExecutor> executor = GetOrCreateRemoteCommandExecutor(udid); in AddCommand() local
70 if (executor == nullptr) { in AddCommand()
71 ACCESSTOKEN_LOG_ERROR(LABEL, "Cannot get or create remote command executor"); in AddCommand()
75 int result = executor->AddCommand(command); in AddCommand()
97 std::shared_ptr<RemoteCommandExecutor> executor = GetOrCreateRemoteCommandExecutor(udid); in ExecuteCommand() local
98 if (executor == nullptr) { in ExecuteCommand()
99 ACCESSTOKEN_LOG_ERROR(LABEL, "Cannot get or create remote command executor"); in ExecuteCommand()
103 int result = executor->ProcessOneCommand(command); in ExecuteCommand()
119 ACCESSTOKEN_LOG_ERROR(LABEL, "No executor found, udid:%{public}s", ConstantCommon::EncryptDevId(udid).c_str()); in ProcessDeviceCommandImmediately()
123 auto executor in ProcessDeviceCommandImmediately() local
171 auto executor = GetOrCreateRemoteCommandExecutor(nodeId); NotifyDeviceOnline() local
248 auto executor = std::make_shared<RemoteCommandExecutor>(nodeId); GetOrCreateRemoteCommandExecutor() local
273 std::shared_ptr<RemoteCommandExecutor> executor = iter->second; GetExecutorChannel() local
[all...]
/base/useriam/user_auth_framework/frameworks/native/executors/src/framework/
H A Dframework_executor_callback.cpp40 FrameworkExecutorCallback::FrameworkExecutorCallback(std::weak_ptr<Executor> executor) : executor_(executor) in FrameworkExecutorCallback() argument
103 auto executor = executor_.lock(); in OnMessengerReady() local
104 if (executor == nullptr) { in OnMessengerReady()
105 IAM_LOGE("executor has been released, process failed"); in OnMessengerReady()
108 auto hdi = executor->GetExecutorHdi(); in OnMessengerReady()
161 auto executor = executor_.lock(); in OnSendData() local
162 if (executor == nullptr) { in OnSendData()
163 IAM_LOGE("executor has been released, process failed"); in OnSendData()
166 auto hdi = executor in OnSendData()
202 auto executor = executor_.lock(); ProcessAuthCommand() local
228 auto executor = executor_.lock(); ProcessCancelCommand() local
241 auto executor = executor_.lock(); ProcessDeleteTemplateCommand() local
271 auto executor = executor_.lock(); ProcessSetCachedTemplates() local
289 auto executor = executor_.lock(); ProcessNotifyExecutorReady() local
324 auto executor = executor_.lock(); ProcessGetPropertyCommand() local
[all...]
/base/useriam/face_auth/services/inc/
H A Dscreen_brightness_manager.h41 UserAuth::ResultCode ProcessSaCommand(std::shared_ptr<FaceAuthAllInOneExecutorHdi> executor,
43 void OnHdiDisconnect(std::shared_ptr<FaceAuthAllInOneExecutorHdi> executor) override;
48 UserAuth::ResultCode ProcessScreenBrightnessIncreaseBegin(std::shared_ptr<FaceAuthAllInOneExecutorHdi> executor,
50 UserAuth::ResultCode ProcessScreenBrightnessIncreaseEnd(std::shared_ptr<FaceAuthAllInOneExecutorHdi> executor,
H A Disa_command_processor.h32 virtual UserAuth::ResultCode ProcessSaCommand(std::shared_ptr<FaceAuthAllInOneExecutorHdi> executor,
34 virtual void OnHdiDisconnect(std::shared_ptr<FaceAuthAllInOneExecutorHdi> executor) = 0;
/base/useriam/face_auth/test/unittest/
H A Dface_auth_screen_brightness_test.cpp79 auto executor = Common::MakeShared<FaceAuthAllInOneExecutorHdi>(nullptr); in HWTEST_F() local
80 EXPECT_TRUE(executor != nullptr); in HWTEST_F()
84 auto result = manager->ProcessSaCommand(executor, beginCommand); in HWTEST_F()
87 result = manager->ProcessSaCommand(executor, endCommand); in HWTEST_F()
/base/startup/init/services/modules/reboot/
H A Dreboot_static.c83 static int SetParamCmdInfo(ParamCmdInfo *currInfo, CmdExecutor executor, const char *cmd) in SetParamCmdInfo() argument
92 if (executor != NULL) { in SetParamCmdInfo()
93 int cmdId = AddCmdExecutor(currInfo->cmd, executor); in SetParamCmdInfo()
115 static int AddRebootCmdExecutor_(const char *cmd, CmdExecutor executor) in AddRebootCmdExecutor_() argument
135 return SetParamCmdInfo(&g_rebootParamCmdInfos[g_rebootParamCmdValidNumber], executor, cmd); in AddRebootCmdExecutor_()
138 int AddRebootCmdExecutor(const char *cmd, CmdExecutor executor) in AddRebootCmdExecutor() argument
140 PLUGIN_CHECK(cmd != NULL && executor != NULL, return EINVAL, "Invalid input parameter"); in AddRebootCmdExecutor()
146 return AddRebootCmdExecutor_(cmd, executor); in AddRebootCmdExecutor()
/base/startup/appspawn/test/moduletest/threadpool/
H A Dthread_manager.c63 TaskExecutor executor; member
93 TaskExecuteNode *executor = NULL; in PopTaskExecutor() local
99 executor = ListEntry(node, TaskExecuteNode, executeNode); in PopTaskExecutor()
103 return executor; in PopTaskExecutor()
110 TaskExecuteNode *executor = ListEntry(node, TaskExecuteNode, node); in AddExecutor() local
111 APPSPAWN_LOGV("AddExecutor task: %{public}u executorCount: %{public}u executor: %{public}u", in AddExecutor()
112 task->taskId, mgr->executorCount, executor->task->taskId); in AddExecutor()
116 OH_ListRemove(&executor->executeNode); in AddExecutor()
117 OH_ListInit(&executor->executeNode); in AddExecutor()
118 OH_ListAddTail(&mgr->executorQueue, &executor in AddExecutor()
131 TaskExecuteNode *executor = PopTaskExecutor(mgr); RunExecutor() local
210 TaskExecuteNode *executor = ListEntry(node, TaskExecuteNode, node); SafeRemoveTask() local
364 ThreadMgrAddExecutor(ThreadMgr instance, ThreadTaskHandle taskHandle, TaskExecutor executor, const ThreadContext *context) ThreadMgrAddExecutor() argument
[all...]
/base/update/updateservice/services/firmware/upgrade/flow/src/
H A Dfirmware_flow_manager.cpp129 std::shared_ptr<FirmwareIExecutor> executor = nullptr; in CreateInstance() local
136 executor = std::make_shared<FirmwareCheckExecutor>(checkCallback); in CreateInstance()
141 executor = std::make_shared<FirmwareDownloadExecutor>(executeMode_->GetDownloadOptions(), downloadCallback); in CreateInstance()
148 executor = std::make_shared<FirmwareInstallExecutor>(executeMode_->GetInstallType(), installCallback); in CreateInstance()
153 executor = std::make_shared<FirmwareApplyExecutor>(firmwareApplyCallback); in CreateInstance()
160 return executor; in CreateInstance()
/base/useriam/pin_auth/test/unittest/src/
H A Dpin_auth_driver_hdi_unit_test.cpp143 auto executor = sptr<IAllInOneExecutor>(new (std::nothrow) MockIAllInOneExecutor()); in HWTEST_F()
144 EXPECT_TRUE(executor != nullptr); in HWTEST_F()
145 allInOneExecutors.push_back(executor); in HWTEST_F()
167 auto executor = sptr<IAllInOneExecutor>(new (std::nothrow) MockIAllInOneExecutor()); in HWTEST_F()
168 EXPECT_TRUE(executor != nullptr); in HWTEST_F()
169 allInOneExecutors.push_back(executor); in HWTEST_F()
171 executor = sptr<IAllInOneExecutor>(new (std::nothrow) MockIAllInOneExecutor()); in HWTEST_F()
172 EXPECT_TRUE(executor != nullptr); in HWTEST_F()
173 allInOneExecutors.push_back(executor); in HWTEST_F()
194 auto executor in HWTEST_F()
[all...]

Completed in 11 milliseconds

123