/system/extras/memory_replay/ |
H A D | Action.h | 24 class Action { class 26 Action() {} function in class:Action 27 virtual ~Action() {} 38 static Action* CreateAction(uintptr_t key_pointer, const char* type,
|
H A D | Thread.h | 24 class Action; 39 Action* CreateAction(uintptr_t key_pointer, const char* type, const char* line); 45 Action* GetAction() { return reinterpret_cast<Action*>(action_memory_); } 58 // Per thread memory for an Action. Only one action can be processed.
|
H A D | Thread.cpp | 19 #include "Action.h" 60 Action* Thread::CreateAction(uintptr_t key_pointer, const char* type, const char* line) { 61 return Action::CreateAction(key_pointer, type, line, action_memory_);
|
H A D | Action.cpp | 28 #include "Action.h" 39 class EndThreadAction : public Action { 48 class AllocAction : public Action { 171 size_t Action::MaxActionSize() { 179 Action* Action::CreateAction(uintptr_t key_pointer, const char* type, 181 Action* action = nullptr;
|
H A D | Threads.cpp | 29 #include "Action.h" 37 Action* action = thread->GetAction(); 60 if (Thread::ACTION_SIZE < Action::MaxActionSize()) { 62 Thread::ACTION_SIZE, Action::MaxActionSize());
|
H A D | Android.mk | 4 Action.cpp \
|
/system/extras/memory_replay/tests/ |
H A D | ActionTest.cpp | 21 #include "Action.h" 25 uint8_t memory[Action::MaxActionSize()]; 27 Action* action = Action::CreateAction(0x1234, "malloc", line, memory); 42 Action* action = Action::CreateAction(0x1234, "malloc", line, memory); 49 Action* action = Action::CreateAction(0x1234, "free", line, memory); 62 Action* action = Action [all...] |
/system/netd/server/ |
H A D | NetlinkHandler.cpp | 78 NetlinkEvent::Action action = evt->getAction(); 80 if ((action == NetlinkEvent::Action::kAdd) || 81 (action == NetlinkEvent::Action::kLinkUp) || 82 (action == NetlinkEvent::Action::kLinkDown)) { 92 if (action == NetlinkEvent::Action::kAdd) { 94 } else if (action == NetlinkEvent::Action::kRemove) { 96 } else if (action == NetlinkEvent::Action::kChange) { 99 } else if (action == NetlinkEvent::Action::kLinkUp) { 101 } else if (action == NetlinkEvent::Action::kLinkDown) { 103 } else if (action == NetlinkEvent::Action [all...] |
H A D | NetlinkHandler.h | 48 void notifyAddressChanged(NetlinkEvent::Action action, const char *addr, const char *iface, 52 void notifyRouteChange(NetlinkEvent::Action action, const char *route, const char *gateway, const char *iface);
|
/system/core/include/sysutils/ |
H A D | NetlinkEvent.h | 25 enum class Action { class in class:NetlinkEvent 42 Action mAction; 54 Action getAction() { return mAction; }
|
/system/core/init/ |
H A D | action_manager.h | 36 void AddAction(std::unique_ptr<Action> action); 50 std::vector<std::unique_ptr<Action>> actions_; 52 std::queue<const Action*> current_executing_actions_;
|
H A D | action.cpp | 76 Action::Action(bool oneshot, Subcontext* subcontext, const std::string& filename, int line, function in class:android::init::Action 86 const KeywordFunctionMap* Action::function_map_ = nullptr; 88 Result<Success> Action::AddCommand(const std::vector<std::string>& args, int line) { 100 void Action::AddCommand(BuiltinFunction f, const std::vector<std::string>& args, int line) { 104 std::size_t Action::NumCommands() const { 108 void Action::ExecuteOneCommand(std::size_t command) const { 115 void Action::ExecuteAllCommands() const { 121 void Action::ExecuteCommand(const Command& command) const { 155 bool Action [all...] |
H A D | action.h | 56 using BuiltinAction = class Action*; 58 class Action { class in namespace:android::init 60 Action(bool oneshot, Subcontext* subcontext, const std::string& filename, int line,
|
H A D | action_manager.cpp | 31 void ActionManager::AddAction(std::unique_ptr<Action> action) { 48 auto action = std::make_unique<Action>(true, nullptr, "<Builtin Action>", 0, name, 92 auto eraser = [&action](std::unique_ptr<Action>& a) { return a.get() == action; };
|
H A D | action_parser.h | 43 std::unique_ptr<Action> action_;
|
H A D | host_init_parser.cpp | 57 Action::set_function_map(&function_map);
|
/system/core/libsysutils/include/sysutils/ |
H A D | NetlinkEvent.h | 25 enum class Action { class in class:NetlinkEvent 42 Action mAction; 54 Action getAction() { return mAction; }
|
/system/core/fastboot/ |
H A D | engine.cpp | 56 struct Action { struct 57 Action(Op op, const std::string& cmd) : op(op), cmd(cmd) {} function in struct:Action 72 int (*func)(Action& a, int status, const char* resp) = nullptr; 77 static std::vector<std::unique_ptr<Action>> action_list; 91 static int cb_default(Action& a, int status, const char* resp) { 102 static Action& queue_action(Op op, const std::string& cmd) { 103 std::unique_ptr<Action> a{new Action(op, cmd)}; 111 Action& a = queue_action(OP_COMMAND, "set_active:" + slot); 116 Action [all...] |
/system/update_engine/common/ |
H A D | action_pipe_unittest.cc | 38 // This is a simple Action class for testing. 39 class ActionPipeTestAction : public Action<ActionPipeTestAction> {
|
H A D | mock_action.h | 37 class MockAction : public Action<MockAction> {
|
H A D | action.h | 31 // The structure of these classes (Action, ActionPipe, ActionProcessor, etc.) 50 // code in the Action* classes and the code that is calls is non-blocking. 72 // Each concrete Action class derives from Action<T>. This means that during 73 // template instantiation of Action<T>, T is declared but not defined, which 76 // template instantiated first, so Action<T> *can* find the types it needs by 91 // action synchronously; Action authors should understand the implications 103 // Called by the ActionProcessor to tell this Action which processor 138 // Type() returns a string of the Action type. I.e., for DownloadAction, 143 // A weak pointer to the processor that owns this Action 154 class Action : public AbstractAction { class in namespace:chromeos_update_engine [all...] |
H A D | action_pipe.h | 29 // The structure of these classes (Action, ActionPipe, ActionProcessor, etc.) 36 // from one Action and into another Action. It's templated so that it may 37 // contain any type of object that an Action outputs/inputs. Actions 42 // the two Action objects. a shared_ptr is used so that when the last Action 52 class Action; 59 // This should be called by an Action on its input pipe. 63 // This should be called by an Action on its output pipe. 69 // when the last Action i [all...] |
H A D | action_unittest.cc | 38 // This is a simple Action class for testing. 39 class ActionTestAction : public Action<ActionTestAction> {
|
/system/core/libsysutils/src/ |
H A D | NetlinkEvent.cpp | 46 mAction = Action::kUnknown; 146 mAction = (ifi->ifi_flags & IFF_LOWER_UP) ? Action::kLinkUp : 147 Action::kLinkDown; 235 mAction = (type == RTM_NEWADDR) ? Action::kAddressUpdated : 236 Action::kAddressRemoved; 267 mAction = Action::kChange; 314 mAction = Action::kChange; 400 mAction = (type == RTM_NEWROUTE) ? Action::kRouteUpdated : 401 Action::kRouteRemoved; 506 mAction = Action [all...] |
/system/update_engine/ |
H A D | omaha_response_handler_action.h | 43 class OmahaResponseHandlerAction : public Action<OmahaResponseHandlerAction> {
|