Home
last modified time | relevance | path

Searched refs:Success (Results 1 – 25 of 55) sorted by relevance

123

/system/core/init/
Dbuiltins.cpp90 static Result<Success> reboot_into_recovery(const std::vector<std::string>& options) { in reboot_into_recovery()
97 return Success(); in reboot_into_recovery()
107 static Result<Success> do_class_start(const BuiltinArguments& args) { in do_class_start()
110 return Success(); in do_class_start()
121 return Success(); in do_class_start()
124 static Result<Success> do_class_start_post_data(const BuiltinArguments& args) { in do_class_start_post_data()
136 return Success(); in do_class_start_post_data()
139 static Result<Success> do_class_stop(const BuiltinArguments& args) { in do_class_stop()
141 return Success(); in do_class_stop()
144 static Result<Success> do_class_reset(const BuiltinArguments& args) { in do_class_reset()
[all …]
Dservice.h78 Result<Success> ParseLine(std::vector<std::string>&& args);
79 Result<Success> ExecStart();
80 Result<Success> Start();
81 Result<Success> StartIfNotDisabled();
82 Result<Success> StartIfPostData();
83 Result<Success> Enable();
132 using OptionParser = Result<Success> (Service::*)(std::vector<std::string>&& args);
135 Result<Success> SetUpMountNamespace() const;
136 Result<Success> SetUpPidNamespace() const;
137 Result<Success> EnterNamespaces() const;
[all …]
Dueventd_parser.cpp32 Result<Success> ParsePermissionsLine(std::vector<std::string>&& args, in ParsePermissionsLine()
77 return Success(); in ParsePermissionsLine()
80 Result<Success> ParseFirmwareDirectoriesLine(std::vector<std::string>&& args, in ParseFirmwareDirectoriesLine()
88 return Success(); in ParseFirmwareDirectoriesLine()
91 Result<Success> ParseModaliasHandlingLine(std::vector<std::string>&& args, in ParseModaliasHandlingLine()
105 return Success(); in ParseModaliasHandlingLine()
108 Result<Success> ParseUeventSocketRcvbufSizeLine(std::vector<std::string>&& args, in ParseUeventSocketRcvbufSizeLine()
121 return Success(); in ParseUeventSocketRcvbufSizeLine()
127 Result<Success> ParseSection(std::vector<std::string>&& args, const std::string& filename,
129 Result<Success> ParseLineSection(std::vector<std::string>&& args, int line) override;
[all …]
Depoll.cpp31 Result<Success> Epoll::Open() { in Open()
32 if (epoll_fd_ >= 0) return Success(); in Open()
38 return Success(); in Open()
41 Result<Success> Epoll::RegisterHandler(int fd, std::function<void()> handler, uint32_t events) { in RegisterHandler()
55 Result<Success> result = ErrnoError() << "epoll_ctl failed to add fd"; in RegisterHandler()
59 return Success(); in RegisterHandler()
62 Result<Success> Epoll::UnregisterHandler(int fd) { in UnregisterHandler()
69 return Success(); in UnregisterHandler()
72 Result<Success> Epoll::Wait(std::optional<std::chrono::milliseconds> timeout) { in Wait()
84 return Success(); in Wait()
Dservice.cpp109 Result<Success> Service::SetUpMountNamespace() const { in SetUpMountNamespace()
141 return Success(); in SetUpMountNamespace()
144 Result<Success> Service::SetUpPidNamespace() const { in SetUpPidNamespace()
174 return Success(); in SetUpPidNamespace()
177 Result<Success> Service::EnterNamespaces() const { in EnterNamespaces()
187 return Success(); in EnterNamespaces()
417 Result<Success> Service::ParseCapabilities(std::vector<std::string>&& args) { in ParseCapabilities()
443 return Success(); in ParseCapabilities()
446 Result<Success> Service::ParseClass(std::vector<std::string>&& args) { in ParseClass()
448 return Success(); in ParseClass()
[all …]
Dsecurity.cpp46 Result<Success> MixHwrngIntoLinuxRngAction(const BuiltinArguments&) { in MixHwrngIntoLinuxRngAction()
53 return Success(); in MixHwrngIntoLinuxRngAction()
83 return Success(); in MixHwrngIntoLinuxRngAction()
150 Result<Success> SetMmapRndBitsAction(const BuiltinArguments&) { in SetMmapRndBitsAction()
154 return Success(); in SetMmapRndBitsAction()
158 return Success(); in SetMmapRndBitsAction()
163 return Success(); in SetMmapRndBitsAction()
170 return Success(); in SetMmapRndBitsAction()
174 return Success(); in SetMmapRndBitsAction()
190 Result<Success> SetKptrRestrictAction(const BuiltinArguments&) { in SetKptrRestrictAction()
[all …]
Dresult_test.cpp52 Result<Success> result = Success(); in TEST()
56 EXPECT_EQ(Success(), *result); in TEST()
57 EXPECT_EQ(Success(), result.value()); in TEST()
64 auto MakeRvalueSuccessResult = []() -> Result<Success> { return Success(); }; in TEST()
68 EXPECT_EQ(Success(), *MakeRvalueSuccessResult()); in TEST()
69 EXPECT_EQ(Success(), MakeRvalueSuccessResult().value()); in TEST()
73 Result<Success> result = Error() << "failure" << 1; in TEST()
82 Result<Success> result = Error(); in TEST()
97 auto MakeRvalueErrorResult = []() -> Result<Success> { return Error() << "failure" << 1; }; in TEST()
108 Result<Success> result = ErrnoError() << "failure" << 1; in TEST()
[all …]
Daction_parser.cpp58 Result<Success> ParsePropertyTrigger(const std::string& trigger, Subcontext* subcontext, in ParsePropertyTrigger()
77 return Success(); in ParsePropertyTrigger()
80 Result<Success> ParseTriggers(const std::vector<std::string>& args, Subcontext* subcontext, in ParseTriggers()
111 return Success(); in ParseTriggers()
116 Result<Success> ActionParser::ParseSection(std::vector<std::string>&& args, in ParseSection()
145 return Success(); in ParseSection()
148 Result<Success> ActionParser::ParseLineSection(std::vector<std::string>&& args, int line) { in ParseLineSection()
149 return action_ ? action_->AddCommand(std::move(args), line) : Success(); in ParseLineSection()
152 Result<Success> ActionParser::EndSection() { in EndSection()
157 return Success(); in EndSection()
Dparser.h54 virtual Result<Success> ParseSection(std::vector<std::string>&& args,
56 virtual Result<Success> ParseLineSection(std::vector<std::string>&&, int) { return Success(); }; in ParseLineSection()
57 virtual Result<Success> EndSection() { return Success(); }; in EndSection()
70 using LineCallback = std::function<Result<Success>(std::vector<std::string>&&)>;
Depoll.h39 Result<Success> Open();
40 Result<Success> RegisterHandler(int fd, std::function<void()> handler,
42 Result<Success> UnregisterHandler(int fd);
43 Result<Success> Wait(std::optional<std::chrono::milliseconds> timeout);
Dsecurity.h29 Result<Success> MixHwrngIntoLinuxRngAction(const BuiltinArguments&);
30 Result<Success> SetMmapRndBitsAction(const BuiltinArguments&);
31 Result<Success> SetKptrRestrictAction(const BuiltinArguments&);
Dmodalias_handler.cpp36 Result<Success> ModaliasHandler::ParseDepCallback(std::vector<std::string>&& args) { in ParseDepCallback()
61 return Success(); in ParseDepCallback()
64 Result<Success> ModaliasHandler::ParseAliasCallback(std::vector<std::string>&& args) { in ParseAliasCallback()
80 return Success(); in ParseAliasCallback()
103 Result<Success> ModaliasHandler::Insmod(const std::string& path_name, const std::string& args) { in Insmod()
112 return Success(); in Insmod()
118 return Success(); in Insmod()
121 Result<Success> ModaliasHandler::InsmodWithDeps(const std::string& module_name, in InsmodWithDeps()
Dmodalias_handler.h38 Result<Success> InsmodWithDeps(const std::string& module_name, const std::string& args);
39 Result<Success> Insmod(const std::string& path_name, const std::string& args);
41 Result<Success> ParseDepCallback(std::vector<std::string>&& args);
42 Result<Success> ParseAliasCallback(std::vector<std::string>&& args);
Dhost_import_parser.cpp26 Result<Success> HostImportParser::ParseSection(std::vector<std::string>&& args, const std::string&, in ParseSection()
32 return Success(); in ParseSection()
35 Result<Success> HostImportParser::ParseLineSection(std::vector<std::string>&&, int) { in ParseLineSection()
Dinit.cpp237 static Result<Success> DoControlStart(Service* service) { in DoControlStart()
241 static Result<Success> DoControlStop(Service* service) { in DoControlStop()
243 return Success(); in DoControlStop()
246 static Result<Success> DoControlRestart(Service* service) { in DoControlRestart()
248 return Success(); in DoControlRestart()
258 std::function<Result<Success>(Service*)> action;
265 … [](auto* service) { service->set_sigstop(true); return Success(); }}}, in get_control_message_map()
267 … [](auto* service) { service->set_sigstop(false); return Success(); }}}, in get_control_message_map()
328 static Result<Success> wait_for_coldboot_done_action(const BuiltinArguments& args) { in wait_for_coldboot_done_action()
346 return Success(); in wait_for_coldboot_done_action()
[all …]
Dbootchart.cpp168 static Result<Success> do_bootchart_start() { in do_bootchart_start()
173 return Success(); in do_bootchart_start()
177 return Success(); in do_bootchart_start()
180 static Result<Success> do_bootchart_stop() { in do_bootchart_stop()
181 if (!g_bootcharting_thread) return Success(); in do_bootchart_stop()
193 return Success(); in do_bootchart_stop()
196 Result<Success> do_bootchart(const BuiltinArguments& args) { in do_bootchart()
Daction_parser.h35 Result<Success> ParseSection(std::vector<std::string>&& args, const std::string& filename,
37 Result<Success> ParseLineSection(std::vector<std::string>&& args, int line) override;
38 Result<Success> EndSection() override;
Dimport_parser.cpp26 Result<Success> ImportParser::ParseSection(std::vector<std::string>&& args, in ParseSection()
41 return Success(); in ParseSection()
44 Result<Success> ImportParser::ParseLineSection(std::vector<std::string>&&, int) { in ParseLineSection()
Dsubcontext_test.cpp178 [](const BuiltinArguments& args) -> Result<Success> { in BuildTestFunctionMap()
185 return Success(); in BuildTestFunctionMap()
193 return Success(); in BuildTestFunctionMap()
196 [words](const BuiltinArguments& args) -> Result<Success> { in BuildTestFunctionMap()
202 [](const BuiltinArguments& args) -> Result<Success> { in BuildTestFunctionMap()
207 [](const BuiltinArguments& args) -> Result<Success> { return Error() << "Sane error!"; }); in BuildTestFunctionMap()
212 [](const BuiltinArguments& args) -> Result<Success> { return Error() << args.context; }); in BuildTestFunctionMap()
Dboringssl_self_test.cpp28 Result<Success> StartBoringSslSelfTest(const BuiltinArguments&) { in StartBoringSslSelfTest()
52 return Success(); in StartBoringSslSelfTest()
Dhost_import_parser.h30 Result<Success> ParseSection(std::vector<std::string>&& args, const std::string&, int) override;
31 Result<Success> ParseLineSection(std::vector<std::string>&&, int) override;
Dimport_parser.h31 Result<Success> ParseSection(std::vector<std::string>&& args, const std::string& filename,
33 Result<Success> ParseLineSection(std::vector<std::string>&&, int) override;
Daction.h34 Result<Success> RunBuiltinFunction(const BuiltinFunction& function,
42 Result<Success> InvokeFunc(Subcontext* subcontext) const;
64 Result<Success> AddCommand(std::vector<std::string>&& args, int line);
/system/apex/apexd/
Dapex_shim.cpp108 return Status::Success(); in IsRegularFile()
120 return Status::Success(); in IsHashTxt()
134 return Status::Success(); in IsWhitelistedTopLevelEntry()
165 return Status::Success(); in IsWhitelistedTopLevelEntry()
208 return Status::Success(); in ValidateShimApex()
229 return Status::Success(); in ValidateUpdate()
Dapexd.cpp156 return Status::Success(); in preAllocateLoopDevices()
206 return Status::Success(); in waitForDevice()
209 return Status::Success(); in waitForDevice()
356 return Status::Success(); in RemovePreviouslyActiveApexFiles()
381 return Status::Success(); in readVerityDevice()
393 return Status::Success(); in VerifyMountedImage()
609 return Status::Success(); in Unmount()
669 return Status::Success(); in PrePostinstallPackages()
732 return Status::Success(); in VerifyPackageBoot()
752 return Status::Success(); in VerifyPackageInstall()
[all …]

123