Home
last modified time | relevance | path

Searched refs:Action (Results 1 – 25 of 37) sorted by relevance

12

/system/extras/memory_replay/tests/
DActionTest.cpp25 uint8_t memory[Action::MaxActionSize()]; in TEST()
27 Action* action = Action::CreateAction(0x1234, "malloc", line, memory); in TEST()
42 Action* action = Action::CreateAction(0x1234, "malloc", line, memory); in TEST()
49 Action* action = Action::CreateAction(0x1234, "free", line, memory); in TEST()
62 Action* action = Action::CreateAction(0x1234, "calloc", line, memory); in TEST()
77 Action* action = Action::CreateAction(0, "free", line, memory); in TEST()
88 Action* action = Action::CreateAction(0x1234, "calloc", line1, memory); in TEST()
92 action = Action::CreateAction(0x1234, "calloc", line2, memory); in TEST()
99 Action* action = Action::CreateAction(0x1234, "realloc", line, memory); in TEST()
112 action = Action::CreateAction(0x1234, "realloc", null_line, memory); in TEST()
[all …]
DThreadTest.cpp106 Action* action = thread.CreateAction(0x1234, "thread_done", ""); in TEST()
/system/core/fastboot/
Dengine.cpp48 typedef struct Action Action; typedef
52 struct Action { struct
54 Action* next; argument
65 int (*func)(Action* a, int status, const char* resp); argument
70 static Action *action_list = 0; argument
71 static Action *action_last = 0;
89 static int cb_default(Action* a, int status, const char* resp) { in cb_default()
100 static Action *queue_action(unsigned op, const char *fmt, ...) in queue_action()
105 Action* a = reinterpret_cast<Action*>(calloc(1, sizeof(Action))); in queue_action()
133 Action *a; in fb_set_active()
[all …]
/system/core/init/
Daction.cpp65 Action::Action(bool oneshot) : oneshot_(oneshot) { in Action() function in Action
68 const KeywordMap<BuiltinFunction>* Action::function_map_ = nullptr;
70 bool Action::AddCommand(const std::vector<std::string>& args, in AddCommand()
91 void Action::AddCommand(BuiltinFunction f, in AddCommand()
97 void Action::CombineAction(const Action& action) { in CombineAction()
103 std::size_t Action::NumCommands() const { in NumCommands()
107 void Action::ExecuteOneCommand(std::size_t command) const { in ExecuteOneCommand()
114 void Action::ExecuteAllCommands() const { in ExecuteAllCommands()
120 void Action::ExecuteCommand(const Command& command) const { in ExecuteCommand()
137 bool Action::ParsePropertyTrigger(const std::string& trigger, std::string* err) { in ParsePropertyTrigger()
[all …]
Daction.h45 class Action {
47 explicit Action(bool oneshot = false);
54 void CombineAction(const Action& action);
63 bool TriggersEqual(const Action& other) const;
89 virtual bool CheckTriggers(const Action& action) const = 0;
96 void AddAction(std::unique_ptr<Action> action);
111 std::vector<std::unique_ptr<Action>> actions_;
113 std::queue<const Action*> current_executing_actions_;
130 std::unique_ptr<Action> action_;
/system/netd/server/
DNetlinkHandler.cpp65 NetlinkEvent::Action action = evt->getAction(); in onEvent()
68 if (action == NetlinkEvent::Action::kAdd) { in onEvent()
70 } else if (action == NetlinkEvent::Action::kRemove) { in onEvent()
72 } else if (action == NetlinkEvent::Action::kChange) { in onEvent()
75 } else if (action == NetlinkEvent::Action::kLinkUp) { in onEvent()
77 } else if (action == NetlinkEvent::Action::kLinkDown) { in onEvent()
79 } else if (action == NetlinkEvent::Action::kAddressUpdated || in onEvent()
80 action == NetlinkEvent::Action::kAddressRemoved) { in onEvent()
84 if (action == NetlinkEvent::Action::kAddressRemoved && iface && address) { in onEvent()
106 } else if (action == NetlinkEvent::Action::kRdnss) { in onEvent()
[all …]
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 …
/system/extras/memory_replay/
DAction.h24 class Action {
26 Action() {} in Action() function
27 virtual ~Action() {} in ~Action()
38 static Action* CreateAction(uintptr_t key_pointer, const char* type,
DThread.h24 class Action; variable
39 Action* CreateAction(uintptr_t key_pointer, const char* type, const char* line);
45 Action* GetAction() { return reinterpret_cast<Action*>(action_memory_); } in GetAction()
DAction.cpp39 class EndThreadAction : public Action {
48 class AllocAction : public Action {
171 size_t Action::MaxActionSize() { in MaxActionSize()
179 Action* Action::CreateAction(uintptr_t key_pointer, const char* type, in CreateAction()
181 Action* action = nullptr; in CreateAction()
DThread.cpp60 Action* Thread::CreateAction(uintptr_t key_pointer, const char* type, const char* line) { in CreateAction()
61 return Action::CreateAction(key_pointer, type, line, action_memory_); in CreateAction()
DThreads.cpp37 Action* action = thread->GetAction(); in ThreadRunner()
60 if (Thread::ACTION_SIZE < Action::MaxActionSize()) { in Threads()
62 Thread::ACTION_SIZE, Action::MaxActionSize()); in Threads()
DAndroid.mk4 Action.cpp \
/system/core/libsysutils/include/sysutils/
DNetlinkEvent.h25 enum class Action { enum
42 Action mAction;
54 Action getAction() { return mAction; } in getAction()
/system/core/libsysutils/src/
DNetlinkEvent.cpp48 mAction = Action::kUnknown; in NetlinkEvent()
142 mAction = (ifi->ifi_flags & IFF_LOWER_UP) ? Action::kLinkUp : in parseIfInfoMessage()
143 Action::kLinkDown; in parseIfInfoMessage()
231 mAction = (type == RTM_NEWADDR) ? Action::kAddressUpdated : in parseIfAddrMessage()
232 Action::kAddressRemoved; in parseIfAddrMessage()
262 mAction = Action::kChange; in parseUlogPacketMessage()
297 mAction = Action::kChange; in parseNfPacketMessage()
383 mAction = (type == RTM_NEWROUTE) ? Action::kRouteUpdated : in parseRtMessage()
384 Action::kRouteRemoved; in parseRtMessage()
489 mAction = Action::kRdnss; in parseNdUserOptMessage()
[all …]
/system/update_engine/common/
Daction.h154 class Action : public AbstractAction {
156 ~Action() override {} in ~Action()
Dmock_action.h37 class MockAction : public Action<MockAction> {
Daction_pipe_unittest.cc39 class ActionPipeTestAction : public Action<ActionPipeTestAction> {
Daction_unittest.cc39 class ActionTestAction : public Action<ActionTestAction> {
Daction_pipe.h52 class Action; variable
Dtest_utils.h217 class ObjectFeederAction : public Action<ObjectFeederAction<T>> {
251 class ObjectCollectorAction : public Action<ObjectCollectorAction<T>> {
/system/update_engine/
Domaha_response_handler_action.h43 class OmahaResponseHandlerAction : public Action<OmahaResponseHandlerAction> {
/system/core/adb/
Dbugreport_test.cpp29 using ::testing::Action;
89 Action<OnStandardStreamsCallbackFunction> WriteOnStdout(const std::string& output) { in WriteOnStdout()
95 Action<OnStandardStreamsCallbackFunction> WriteOnStderr(const std::string& output) { in WriteOnStderr()
115 Action<CallbackDoneFunction> ReturnCallbackDone(int status = -1337) { in ReturnCallbackDone()
/system/core/mkbootimg/
Dmkbootimg18 from argparse import ArgumentParser, FileType, Action
77 class ValidateStrLenAction(Action):
/system/update_engine/payload_consumer/
Dinstall_plan.h125 class InstallPlanAction : public Action<InstallPlanAction> {

12