Loading init/action.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,9 @@ using android::base::Join; namespace android { namespace init { Command::Command(BuiltinFunction f, const std::vector<std::string>& args, int line) : func_(f), args_(args), line_(line) {} Loading Loading @@ -349,3 +352,6 @@ void ActionParser::EndSection() { action_manager_->AddAction(std::move(action_)); } } } // namespace init } // namespace android init/action.h +6 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,9 @@ #include "init_parser.h" #include "keyword_map.h" namespace android { namespace init { class Command { public: Command(BuiltinFunction f, const std::vector<std::string>& args, int line); Loading Loading @@ -126,4 +129,7 @@ class ActionParser : public SectionParser { std::unique_ptr<Action> action_; }; } // namespace init } // namespace android #endif init/bootchart.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,9 @@ using android::base::StringPrintf; using namespace std::chrono_literals; namespace android { namespace init { static std::thread* g_bootcharting_thread; static std::mutex g_bootcharting_finished_mutex; Loading Loading @@ -192,3 +195,6 @@ int do_bootchart(const std::vector<std::string>& args) { if (args[1] == "start") return do_bootchart_start(); return do_bootchart_stop(); } } // namespace init } // namespace android init/bootchart.h +6 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,12 @@ #include <string> #include <vector> namespace android { namespace init { int do_bootchart(const std::vector<std::string>& args); } // namespace init } // namespace android #endif /* _BOOTCHART_H */ init/builtins.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -67,6 +67,9 @@ using namespace std::literals::string_literals; #define chmod DO_NOT_USE_CHMOD_USE_FCHMODAT_SYMLINK_NOFOLLOW namespace android { namespace init { static constexpr std::chrono::nanoseconds kCommandRetryTimeout = 5s; static int insmod(const char *filename, const char *options, int flags) { Loading Loading @@ -941,3 +944,6 @@ const BuiltinFunctionMap::Map& BuiltinFunctionMap::map() const { // clang-format on return builtin_functions; } } // namespace init } // namespace android Loading
init/action.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,9 @@ using android::base::Join; namespace android { namespace init { Command::Command(BuiltinFunction f, const std::vector<std::string>& args, int line) : func_(f), args_(args), line_(line) {} Loading Loading @@ -349,3 +352,6 @@ void ActionParser::EndSection() { action_manager_->AddAction(std::move(action_)); } } } // namespace init } // namespace android
init/action.h +6 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,9 @@ #include "init_parser.h" #include "keyword_map.h" namespace android { namespace init { class Command { public: Command(BuiltinFunction f, const std::vector<std::string>& args, int line); Loading Loading @@ -126,4 +129,7 @@ class ActionParser : public SectionParser { std::unique_ptr<Action> action_; }; } // namespace init } // namespace android #endif
init/bootchart.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,9 @@ using android::base::StringPrintf; using namespace std::chrono_literals; namespace android { namespace init { static std::thread* g_bootcharting_thread; static std::mutex g_bootcharting_finished_mutex; Loading Loading @@ -192,3 +195,6 @@ int do_bootchart(const std::vector<std::string>& args) { if (args[1] == "start") return do_bootchart_start(); return do_bootchart_stop(); } } // namespace init } // namespace android
init/bootchart.h +6 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,12 @@ #include <string> #include <vector> namespace android { namespace init { int do_bootchart(const std::vector<std::string>& args); } // namespace init } // namespace android #endif /* _BOOTCHART_H */
init/builtins.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -67,6 +67,9 @@ using namespace std::literals::string_literals; #define chmod DO_NOT_USE_CHMOD_USE_FCHMODAT_SYMLINK_NOFOLLOW namespace android { namespace init { static constexpr std::chrono::nanoseconds kCommandRetryTimeout = 5s; static int insmod(const char *filename, const char *options, int flags) { Loading Loading @@ -941,3 +944,6 @@ const BuiltinFunctionMap::Map& BuiltinFunctionMap::map() const { // clang-format on return builtin_functions; } } // namespace init } // namespace android