Searched refs:Action (Results 1 - 25 of 41) sorted by relevance

12

/system/extras/memory_replay/
H A DAction.h24 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 DThread.h24 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 DThread.cpp19 #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 DAction.cpp28 #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 DThreads.cpp29 #include "Action.h"
37 Action* action = thread->GetAction();
60 if (Thread::ACTION_SIZE < Action::MaxActionSize()) {
62 Thread::ACTION_SIZE, Action::MaxActionSize());
H A DAndroid.mk4 Action.cpp \
/system/extras/memory_replay/tests/
H A DActionTest.cpp21 #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 DNetlinkHandler.cpp78 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 DNetlinkHandler.h48 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 DNetlinkEvent.h25 enum class Action { class in class:NetlinkEvent
42 Action mAction;
54 Action getAction() { return mAction; }
/system/core/init/
H A Daction_manager.h36 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 Daction.cpp76 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 Daction.h56 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 Daction_manager.cpp31 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 Daction_parser.h43 std::unique_ptr<Action> action_;
H A Dhost_init_parser.cpp57 Action::set_function_map(&function_map);
/system/core/libsysutils/include/sysutils/
H A DNetlinkEvent.h25 enum class Action { class in class:NetlinkEvent
42 Action mAction;
54 Action getAction() { return mAction; }
/system/core/fastboot/
H A Dengine.cpp56 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 Daction_pipe_unittest.cc38 // This is a simple Action class for testing.
39 class ActionPipeTestAction : public Action<ActionPipeTestAction> {
H A Dmock_action.h37 class MockAction : public Action<MockAction> {
H A Daction.h31 // 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 Daction_pipe.h29 // 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 Daction_unittest.cc38 // This is a simple Action class for testing.
39 class ActionTestAction : public Action<ActionTestAction> {
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp46 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 Domaha_response_handler_action.h43 class OmahaResponseHandlerAction : public Action<OmahaResponseHandlerAction> {

Completed in 186 milliseconds

12