Home
last modified time | relevance | path

Searched refs:executor (Results 1 – 25 of 40) sorted by relevance

12

/base/useriam/user_auth_framework/common/executors/src/
Ddriver.cpp54 … auto executor = Common::MakeShared<Executor>(executorMgrWrapper, executorHdi, hdiConfig_.id); in OnHdiConnect() local
55 if (executor == nullptr) { in OnHdiConnect()
59 executorList_.push_back(executor); in OnHdiConnect()
60 executor->OnHdiConnect(); in OnHdiConnect()
61 IAM_LOGI("add executor %{public}s success", executor->GetDescription()); in OnHdiConnect()
71 for (const auto &executor : executorList_) { in OnHdiDisconnect() local
72 if (executor == nullptr) { in OnHdiDisconnect()
76 executor->OnHdiDisconnect(); in OnHdiDisconnect()
86 for (const auto &executor : executorList_) { in OnFrameworkReady() local
87 if (executor == nullptr) { in OnFrameworkReady()
[all …]
/base/hiviewdfx/hidumper/frameworks/native/
DBUILD.gn34 "src/executor/api_dumper.cpp",
35 "src/executor/cmd_dumper.cpp",
36 "src/executor/column_rows_filter.cpp",
37 "src/executor/cpu_dumper.cpp",
38 "src/executor/dumper_group.cpp",
39 "src/executor/env_param_dumper.cpp",
40 "src/executor/fd_output.cpp",
41 "src/executor/file_format_dump_filter.cpp",
42 "src/executor/file_stream_dumper.cpp",
43 "src/executor/hidumper_executor.cpp",
[all …]
/base/useriam/user_auth_framework/common/executors/src/async_command/
Dasync_command_base.cpp36 …mandBase::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()
63 executor->AddCommand(shared_from_this()); in StartProcess()
103 auto executor = executor_.lock(); in GetAuthType() local
104 if (executor == nullptr) { in GetAuthType()
108 return executor->GetAuthType(); in GetAuthType()
114 auto executor = executor_.lock(); in EndProcess() local
115 if (executor == nullptr) { in EndProcess()
[all …]
Dcustom_command.cpp36 CustomCommand::CustomCommand(std::weak_ptr<Executor> executor, const Attributes &attributes) in CustomCommand() argument
37 : AsyncCommandBase("CUSTOM", 0, executor, nullptr), in CustomCommand()
Didentify_command.cpp28 IdentifyCommand::IdentifyCommand(std::weak_ptr<Executor> executor, uint64_t scheduleId, in IdentifyCommand() argument
30 : AsyncCommandBase("IDENTIFY", scheduleId, executor, executorMessenger), in IdentifyCommand()
Dauth_command.cpp30 AuthCommand::AuthCommand(std::weak_ptr<Executor> executor, uint64_t scheduleId, in AuthCommand() argument
32 : AsyncCommandBase("AUTH", scheduleId, executor, executorMessenger), in AuthCommand()
/base/useriam/face_auth/services/src/
Dface_auth_driver_hdi.cpp74 auto executor = Common::MakeShared<FaceAuthExecutorHdi>(iExecutor); in GetExecutorList() local
75 if (executor == nullptr) { in GetExecutorList()
79 executorList.push_back(executor); in GetExecutorList()
80 faceAuthExecutorList_.push_back(executor); in GetExecutorList()
92 for (auto executor : faceAuthExecutorList_) { in SetBufferProducer() local
93 IF_FALSE_LOGE_AND_RETURN_VAL(executor != nullptr, FACE_AUTH_ERROR); in SetBufferProducer()
94 int32_t ret = executor->SetBufferProducer(producer); in SetBufferProducer()
/base/useriam/user_auth_framework/test/unittest/executors/
Dexecutor_unit_test.cpp110 auto executor = MakeShared<Executor>(executorMgrWrapper, executorHdi, testHdiId); variable
111 ASSERT_NE(executor, nullptr);
112 executor->OnHdiConnect();
151 auto executor = MakeShared<Executor>(executorMgrWrapper, executorHdi, testHdiId); variable
152 ASSERT_NE(executor, nullptr);
153 executor->OnFrameworkReady();
170 auto executor = MakeShared<Executor>(executorMgrWrapper, nullptr, testHdiId); variable
171 ASSERT_NE(executor, nullptr);
172 executor->OnFrameworkReady();
194 auto executor = MakeShared<Executor>(executorMgrWrapper, executorHdi, testHdiId); variable
[all …]
Didentify_command_unit_test.cpp85 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); variable
86 ASSERT_NE(executor, nullptr);
88 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger);
107 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); variable
108 ASSERT_NE(executor, nullptr);
110 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger);
137 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); variable
138 ASSERT_NE(executor, nullptr);
140 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger);
154 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); variable
[all …]
Denroll_command_unit_test.cpp85 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); variable
86 ASSERT_NE(executor, nullptr);
88 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger);
107 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); variable
108 ASSERT_NE(executor, nullptr);
110 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger);
137 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); variable
138 ASSERT_NE(executor, nullptr);
140 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger);
154 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); variable
[all …]
Dauth_command_unit_test.cpp85 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); variable
86 ASSERT_NE(executor, nullptr);
88 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger);
106 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); variable
107 ASSERT_NE(executor, nullptr);
109 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger);
136 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); variable
137 ASSERT_NE(executor, nullptr);
139 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger);
153 auto executor = Common::MakeShared<Executor>(nullptr, nullptr, 3); variable
[all …]
/base/security/access_token/services/tokensyncmanager/src/remote/
Dremote_command_manager.cpp61 std::shared_ptr<RemoteCommandExecutor> executor = GetOrCreateRemoteCommandExecutor(udid); in AddCommand() local
62 if (executor == nullptr) { in AddCommand()
67 int result = executor->AddCommand(command); in AddCommand()
89 std::shared_ptr<RemoteCommandExecutor> executor = GetOrCreateRemoteCommandExecutor(udid); in ExecuteCommand() local
90 if (executor == nullptr) { in ExecuteCommand()
95 int result = executor->ProcessOneCommand(command); in ExecuteCommand()
113 auto executor = executorIt->second; in ProcessDeviceCommandImmediately() local
114 if (executor == nullptr) { in ProcessDeviceCommandImmediately()
120 int result = executor->ProcessBufferedCommands(); in ProcessDeviceCommandImmediately()
159 auto executor = GetOrCreateRemoteCommandExecutor(nodeId); in NotifyDeviceOnline() local
[all …]
/base/useriam/user_auth_framework/common/executors/src/framework/
Dframework_executor_callback.cpp39 …ExecutorCallback::FrameworkExecutorCallback(std::weak_ptr<Executor> executor) : executor_(executor) in FrameworkExecutorCallback() argument
101 auto executor = executor_.lock(); in OnMessengerReady() local
102 if (executor == nullptr) { in OnMessengerReady()
106 auto hdi = executor->GetExecutorHdi(); in OnMessengerReady()
188 auto executor = executor_.lock(); in ProcessCancelCommand() local
189 if (executor == nullptr) { in ProcessCancelCommand()
193 auto hdi = executor->GetExecutorHdi(); in ProcessCancelCommand()
201 auto executor = executor_.lock(); in ProcessDeleteTemplateCommand() local
202 if (executor == nullptr) { in ProcessDeleteTemplateCommand()
206 auto hdi = executor->GetExecutorHdi(); in ProcessDeleteTemplateCommand()
[all …]
/base/startup/init/services/modules/reboot/
Dreboot_static.c81 static int SetParamCmdInfo(ParamCmdInfo *currInfo, CmdExecutor executor, const char *cmd) in SetParamCmdInfo() argument
90 if (executor != NULL) { in SetParamCmdInfo()
91 int cmdId = AddCmdExecutor(currInfo->cmd, executor); in SetParamCmdInfo()
113 static int AddRebootCmdExecutor_(const char *cmd, CmdExecutor executor) in AddRebootCmdExecutor_() argument
133 return SetParamCmdInfo(&g_rebootParamCmdInfos[g_rebootParamCmdValidNumber], executor, cmd); in AddRebootCmdExecutor_()
136 int AddRebootCmdExecutor(const char *cmd, CmdExecutor executor) in AddRebootCmdExecutor() argument
138 PLUGIN_CHECK(cmd != NULL && executor != NULL, return EINVAL, "Invalid input parameter"); in AddRebootCmdExecutor()
144 return AddRebootCmdExecutor_(cmd, executor); in AddRebootCmdExecutor()
/base/useriam/face_auth/test/unittest/
Dface_auth_driver_hdi_unit_test.cpp137 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon9ce19f350302() local
138 EXPECT_TRUE(executor != nullptr); in __anon9ce19f350302()
139 list.push_back(executor); in __anon9ce19f350302()
159 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon9ce19f350402() local
160 EXPECT_TRUE(executor != nullptr); in __anon9ce19f350402()
161 list.push_back(executor); in __anon9ce19f350402()
163 executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon9ce19f350402()
164 EXPECT_TRUE(executor != nullptr); in __anon9ce19f350402()
165 list.push_back(executor); in __anon9ce19f350402()
184 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon9ce19f350502() local
[all …]
/base/useriam/pin_auth/test/unittest/src/
Dpin_auth_driver_hdi_unit_test.cpp137 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon33f183dc0302() local
138 EXPECT_TRUE(executor != nullptr); in __anon33f183dc0302()
139 list.push_back(executor); in __anon33f183dc0302()
159 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon33f183dc0402() local
160 EXPECT_TRUE(executor != nullptr); in __anon33f183dc0402()
161 list.push_back(executor); in __anon33f183dc0402()
163 executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon33f183dc0402()
164 EXPECT_TRUE(executor != nullptr); in __anon33f183dc0402()
165 list.push_back(executor); in __anon33f183dc0402()
184 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon33f183dc0502() local
[all …]
/base/useriam/pin_auth/services/modules/driver/src/
Dpin_auth_driver_hdi.cpp63 auto executor = Common::MakeShared<PinAuthExecutorHdi>(iExecutor); in GetExecutorList() local
64 if (executor == nullptr) { in GetExecutorList()
68 executorList.push_back(executor); in GetExecutorList()
/base/time/time_service/framework/js/napi/system_date_time/src/
Dnapi_system_date_time.cpp65 auto executor = [setTimeContext]() { in SetTime() local
73 return NapiAsyncWork::Enqueue(env, setTimeContext, "SetTime", executor, complete); in SetTime()
111 auto executor = [setDateContext]() { in SetDate() local
119 return NapiAsyncWork::Enqueue(env, setDateContext, "SetDate", executor, complete); in SetDate()
139 auto executor = [getRealActiveTimeContext]() { in GetRealActiveTime() local
156 …return NapiAsyncWork::Enqueue(env, getRealActiveTimeContext, "GetRealActiveTime", executor, comple… in GetRealActiveTime()
175 auto executor = [getCurrentTimeContext]() { in GetCurrentTime() local
192 return NapiAsyncWork::Enqueue(env, getCurrentTimeContext, "GetCurrentTime", executor, complete); in GetCurrentTime()
211 auto executor = [getRealTimeContext]() { in GetRealTime() local
228 return NapiAsyncWork::Enqueue(env, getRealTimeContext, "GetRealTime", executor, complete); in GetRealTime()
[all …]
/base/useriam/user_auth_framework/test/unittest/services/src/
Dschedule_node_test.cpp245 MockExecutorCallback executor; variable
246 EXPECT_CALL(executor, OnBeginExecute(_, _, _)).WillOnce(Return(1));
257 …aceAllInOne = MockResourceNode::CreateWithExecuteIndex(EXECUTOR_INDEX, FACE, ALL_IN_ONE, executor);
279 MockExecutorCallback executor; variable
280 EXPECT_CALL(executor, OnBeginExecute(_, _, _)).WillOnce(Return(0));
290 …aceAllInOne = MockResourceNode::CreateWithExecuteIndex(EXECUTOR_INDEX, FACE, ALL_IN_ONE, executor);
314 MockExecutorCallback executor; variable
325 …aceAllInOne = MockResourceNode::CreateWithExecuteIndex(EXECUTOR_INDEX, FACE, ALL_IN_ONE, executor);
339 EXPECT_CALL(executor, OnBeginExecute(_, _, _)).WillOnce(Return(0));
341 EXPECT_CALL(executor, OnEndExecute(_, _)).WillOnce(Return(0));
[all …]
/base/security/access_token/services/tokensyncmanager/test/unittest/token_sync_service/
Dtoken_sync_service_test.cpp253 auto executor = std::make_shared<RemoteCommandExecutor>(nodeId); variable
254 EXPECT_EQ(Constant::SUCCESS, executor->ProcessOneCommand(nullptr));
266 auto executor = std::make_shared<RemoteCommandExecutor>(nodeId); variable
269 EXPECT_EQ(Constant::FAILURE, executor->ProcessOneCommand(cmd));
281 auto executor = std::make_shared<RemoteCommandExecutor>(nodeId); variable
284 EXPECT_EQ(Constant::FAILURE, executor->ProcessOneCommand(cmd));
296 auto executor = std::make_shared<RemoteCommandExecutor>(nodeId); variable
297 EXPECT_EQ(Constant::INVALID_COMMAND, executor->AddCommand(nullptr));
309 auto executor = std::make_shared<RemoteCommandExecutor>(nodeId); variable
311 EXPECT_EQ(Constant::SUCCESS, executor->AddCommand(cmd));
[all …]
/base/useriam/user_auth_framework/services/core/src/
Dschedule_node_helper.cpp94 for (const auto &executor : info.executors) { in ScheduleInfoToExecutors() local
95 auto resource = ResourceNodePool::Instance().Select(executor.executorIndex).lock(); in ScheduleInfoToExecutors()
97 … IAM_LOGI("invalid executorId ****%{public}hx", static_cast<uint16_t>(executor.executorIndex)); in ScheduleInfoToExecutors()
/base/time/time_service/framework/js/napi/system_timer/src/
Dnapi_system_timer.cpp242 auto executor = [createTimerContext]() { in CreateTimer() local
256 return NapiAsyncWork::Enqueue(env, createTimerContext, "SetTime", executor, complete); in CreateTimer()
282 auto executor = [startTimerContext]() { in StartTimer() local
291 return NapiAsyncWork::Enqueue(env, startTimerContext, "StartTimer", executor, complete); in StartTimer()
311 auto executor = [stopTimerContext]() { in StopTimer() local
319 return NapiAsyncWork::Enqueue(env, stopTimerContext, "StopTimer", executor, complete); in StopTimer()
339 auto executor = [destroyTimerContext]() { in DestroyTimer() local
348 return NapiAsyncWork::Enqueue(env, destroyTimerContext, "DestroyTimer", executor, complete); in DestroyTimer()
/base/hiviewdfx/hidumper/interfaces/innerkits/
DBUILD.gn31 "${hidumper_frameworks_path}/src/executor/memory/memory_util.cpp",
32 "${hidumper_frameworks_path}/src/executor/memory/parse/parse_smaps_rollup_info.cpp",
/base/startup/init/services/init/include/
Dinit_cmdexecutor.h49 int AddRebootCmdExecutor(const char *cmd, CmdExecutor executor);
/base/startup/init/interfaces/innerkits/init_module_engine/include/
Dinit_cmdexecutor.h49 int AddRebootCmdExecutor(const char *cmd, CmdExecutor executor);

12