Home
last modified time | relevance | path

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

123

/base/hiviewdfx/hidumper/frameworks/native/
DBUILD.gn30 "src/executor/api_dumper.cpp",
31 "src/executor/cmd_dumper.cpp",
32 "src/executor/column_rows_filter.cpp",
33 "src/executor/cpu_dumper.cpp",
34 "src/executor/dumper_group.cpp",
35 "src/executor/env_param_dumper.cpp",
36 "src/executor/fd_output.cpp",
37 "src/executor/file_format_dump_filter.cpp",
38 "src/executor/file_stream_dumper.cpp",
39 "src/executor/hidumper_executor.cpp",
[all …]
/base/useriam/user_auth_framework/frameworks/native/executors/src/
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() local
76 if (executor == nullptr) { in OnHdiDisconnect()
80 executor->OnHdiDisconnect(); in OnHdiDisconnect()
93 for (const auto &executor : executorList_) { in OnFrameworkReady() local
94 if (executor == nullptr) { in OnFrameworkReady()
[all …]
/base/useriam/user_auth_framework/frameworks/native/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 …]
/base/useriam/fingerprint_auth/services/src/
Dsensor_illumination_manager.cpp55 …e SensorIlluminationManager::ProcessSaCommand(std::shared_ptr<FingerprintAuthExecutorHdi> executor, in ProcessSaCommand() argument
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 …id SensorIlluminationManager::OnHdiDisconnect(std::shared_ptr<FingerprintAuthExecutorHdi> executor) in OnHdiDisconnect() argument
83 IF_FALSE_LOGE_AND_RETURN(executor != nullptr); in OnHdiDisconnect()
87 if (executorInProc_ != executor) { in OnHdiDisconnect()
105 std::shared_ptr<FingerprintAuthExecutorHdi> executor, const SaCommandParam param) in EnableSensorIllumination() argument
[all …]
Dfingerprint_auth_driver_hdi.cpp73 auto executor = Common::MakeShared<FingerprintAuthExecutorHdi>(iExecutor); in GetExecutorList() local
74 if (executor == nullptr) { in GetExecutorList()
78 executorList.push_back(executor); in GetExecutorList()
79 fingerprintAuthExecutorList_.push_back(executor); in GetExecutorList()
/base/useriam/face_auth/services/src/
Dscreen_brightness_manager.cpp57 …ResultCode ScreenBrightnessManager::ProcessSaCommand(std::shared_ptr<FaceAuthExecutorHdi> 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<FaceAuthExecutorHdi> executor) in OnHdiDisconnect() argument
80 IF_FALSE_LOGE_AND_RETURN(executor != nullptr); in OnHdiDisconnect()
84 if (executorInProc_ != executor) { in OnHdiDisconnect()
99 std::shared_ptr<FaceAuthExecutorHdi> executor, const SaCommandParam param) in ProcessScreenBrightnessIncreaseBegin() argument
127 executorInProc_ = executor; in ProcessScreenBrightnessIncreaseBegin()
134 std::shared_ptr<FaceAuthExecutorHdi> executor, const SaCommandParam param) in ProcessScreenBrightnessIncreaseEnd() argument
[all …]
Dface_auth_driver_hdi.cpp69 auto executor = Common::MakeShared<FaceAuthExecutorHdi>(iExecutor); in GetExecutorList() local
70 if (executor == nullptr) { in GetExecutorList()
74 executorList.push_back(executor); in GetExecutorList()
75 faceAuthExecutorList_.push_back(executor); in GetExecutorList()
102 for (auto executor : faceAuthExecutorList_) { in SetBufferProducer() local
103 IF_FALSE_LOGE_AND_RETURN_VAL(executor != nullptr, FACE_AUTH_ERROR); in SetBufferProducer()
104 int32_t ret = executor->SetBufferProducer(producer); in SetBufferProducer()
Dsa_command_manager.cpp67 …Auth::ResultCode SaCommandManager::ProcessSaCommands(std::shared_ptr<FaceAuthExecutorHdi> executor, in ProcessSaCommands() argument
77 UserAuth::ResultCode result = processor->ProcessSaCommand(executor, command); in ProcessSaCommands()
85 void SaCommandManager::OnHdiDisconnect(std::shared_ptr<FaceAuthExecutorHdi> executor) in OnHdiDisconnect() argument
91 processor->OnHdiDisconnect(executor); in OnHdiDisconnect()
/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/fingerprint_auth/test/unittest/
Dfingerprint_auth_sensor_illumination_test.cpp105 auto executor = Common::MakeShared<FingerprintAuthExecutorHdi>(nullptr); variable
106 EXPECT_TRUE(executor != nullptr);
109 manager->ProcessSaCommand(executor, enableCommand);
113 manager->ProcessSaCommand(executor, turnOnCommand);
116 manager->ProcessSaCommand(executor, turnOffCommand);
120 manager->ProcessSaCommand(executor, turnOnCommand);
123 manager->ProcessSaCommand(executor, turnOffCommand);
127 manager->ProcessSaCommand(executor, disableCommand);
Dfingerprint_auth_driver_hdi_unit_test.cpp136 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anoneb0b7ca40302() local
137 EXPECT_TRUE(executor != nullptr); in __anoneb0b7ca40302()
138 list.push_back(executor); in __anoneb0b7ca40302()
158 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anoneb0b7ca40402() local
159 EXPECT_TRUE(executor != nullptr); in __anoneb0b7ca40402()
160 list.push_back(executor); in __anoneb0b7ca40402()
162 executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anoneb0b7ca40402()
163 EXPECT_TRUE(executor != nullptr); in __anoneb0b7ca40402()
164 list.push_back(executor); in __anoneb0b7ca40402()
183 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anoneb0b7ca40502() local
[all …]
/base/useriam/fingerprint_auth/services/inc/
Dsensor_illumination_manager.h40 UserAuth::ResultCode ProcessSaCommand(std::shared_ptr<FingerprintAuthExecutorHdi> executor,
42 void OnHdiDisconnect(std::shared_ptr<FingerprintAuthExecutorHdi> executor) override;
45 …UserAuth::ResultCode EnableSensorIllumination(std::shared_ptr<FingerprintAuthExecutorHdi> executor,
47 …serAuth::ResultCode DisableSensorIllumination(std::shared_ptr<FingerprintAuthExecutorHdi> executor,
49 …UserAuth::ResultCode TurnOnSensorIllumination(std::shared_ptr<FingerprintAuthExecutorHdi> executor,
51 …serAuth::ResultCode TurnOffSensorIllumination(std::shared_ptr<FingerprintAuthExecutorHdi> executor,
/base/useriam/user_auth_framework/test/unittest/executors/
Dexecutor_unit_test.cpp111 auto executor = MakeShared<Executor>(executorMgrWrapper, executorHdi, testHdiId); variable
112 ASSERT_NE(executor, nullptr);
113 executor->OnHdiConnect();
152 auto executor = MakeShared<Executor>(executorMgrWrapper, executorHdi, testHdiId); variable
153 ASSERT_NE(executor, nullptr);
154 executor->OnFrameworkReady();
171 auto executor = MakeShared<Executor>(executorMgrWrapper, nullptr, testHdiId); variable
172 ASSERT_NE(executor, nullptr);
173 executor->OnFrameworkReady();
195 auto executor = MakeShared<Executor>(executorMgrWrapper, executorHdi, testHdiId); 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 …]
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 …]
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 …]
/base/useriam/face_auth/test/unittest/
Dface_auth_driver_hdi_unit_test.cpp136 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon835771320302() local
137 EXPECT_TRUE(executor != nullptr); in __anon835771320302()
138 list.push_back(executor); in __anon835771320302()
158 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon835771320402() local
159 EXPECT_TRUE(executor != nullptr); in __anon835771320402()
160 list.push_back(executor); in __anon835771320402()
162 executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon835771320402()
163 EXPECT_TRUE(executor != nullptr); in __anon835771320402()
164 list.push_back(executor); in __anon835771320402()
183 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon835771320502() local
[all …]
Dface_auth_screen_brightness_test.cpp79 auto executor = Common::MakeShared<FaceAuthExecutorHdi>(nullptr); variable
80 EXPECT_TRUE(executor != nullptr);
84 auto result = manager->ProcessSaCommand(executor, beginCommand);
87 result = manager->ProcessSaCommand(executor, endCommand);
/base/useriam/user_auth_framework/frameworks/native/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()
191 auto executor = executor_.lock(); in ProcessCancelCommand() local
192 if (executor == nullptr) { in ProcessCancelCommand()
196 auto hdi = executor->GetExecutorHdi(); in ProcessCancelCommand()
204 auto executor = executor_.lock(); in ProcessDeleteTemplateCommand() local
205 if (executor == nullptr) { in ProcessDeleteTemplateCommand()
209 auto hdi = executor->GetExecutorHdi(); in ProcessDeleteTemplateCommand()
[all …]
/base/useriam/face_auth/services/inc/
Dscreen_brightness_manager.h41 UserAuth::ResultCode ProcessSaCommand(std::shared_ptr<FaceAuthExecutorHdi> executor,
43 void OnHdiDisconnect(std::shared_ptr<FaceAuthExecutorHdi> executor) override;
48 …uth::ResultCode ProcessScreenBrightnessIncreaseBegin(std::shared_ptr<FaceAuthExecutorHdi> executor,
50 …rAuth::ResultCode ProcessScreenBrightnessIncreaseEnd(std::shared_ptr<FaceAuthExecutorHdi> executor,
/base/update/updateservice/services/firmware/upgrade/flow/src/
Dfirmware_flow_manager.cpp129 std::shared_ptr<FirmwareIExecutor> executor = nullptr; in CreateInstance() local
136 executor = std::make_shared<FirmwareCheckExecutor>(checkCallback); in CreateInstance()
141executor = std::make_shared<FirmwareDownloadExecutor>(executeMode_->GetDownloadOptions(), download… in CreateInstance()
148executor = std::make_shared<FirmwareInstallExecutor>(executeMode_->GetInstallType(), installCallba… in CreateInstance()
153 executor = std::make_shared<FirmwareApplyExecutor>(firmwareApplyCallback); in CreateInstance()
160 return executor; in CreateInstance()
/base/useriam/pin_auth/test/unittest/src/
Dpin_auth_driver_hdi_unit_test.cpp136 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon8f23c9190302() local
137 EXPECT_TRUE(executor != nullptr); in __anon8f23c9190302()
138 list.push_back(executor); in __anon8f23c9190302()
158 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon8f23c9190402() local
159 EXPECT_TRUE(executor != nullptr); in __anon8f23c9190402()
160 list.push_back(executor); in __anon8f23c9190402()
162 executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon8f23c9190402()
163 EXPECT_TRUE(executor != nullptr); in __anon8f23c9190402()
164 list.push_back(executor); in __anon8f23c9190402()
183 auto executor = sptr<IExecutor>(new (std::nothrow) MockIExecutor()); in __anon8f23c9190502() local
[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/pin_auth/services/modules/driver/src/
Dpin_auth_driver_hdi.cpp61 auto executor = Common::MakeShared<PinAuthExecutorHdi>(iExecutor); in GetExecutorList() local
62 if (executor == nullptr) { in GetExecutorList()
66 executorList.push_back(executor); in GetExecutorList()
/base/time/time_service/framework/js/napi/system_date_time/src/
Dnapi_system_date_time.cpp87 auto executor = [setTimeContext]() { in SetTime() local
95 return NapiWork::AsyncEnqueue(env, setTimeContext, "SetTime", executor, complete); in SetTime()
133 auto executor = [setDateContext]() { in SetDate() local
141 return NapiWork::AsyncEnqueue(env, setDateContext, "SetDate", executor, complete); in SetDate()
165 auto executor = [getRealActiveTimeContext]() { in GetRealActiveTime() local
182 …return NapiWork::AsyncEnqueue(env, getRealActiveTimeContext, "GetRealActiveTime", executor, comple… in GetRealActiveTime()
206 auto executor = [getCurrentTimeContext]() { in GetCurrentTime() local
223 return NapiWork::AsyncEnqueue(env, getCurrentTimeContext, "GetCurrentTime", executor, complete); in GetCurrentTime()
246 auto executor = [getTimeContext]() { in GetTime() local
258 return NapiWork::SyncEnqueue(env, getTimeContext, "GetTime", executor, complete); in GetTime()
[all …]

123