Searched defs:action (Results 1 - 25 of 69) sorted by relevance

123

/system/bt/bta/mce/
H A Dbta_mce_main.cc39 /* state machine action enumeration list */
42 /* type for action functions */
45 /* action function list */
66 uint16_t action = (p_msg->event & 0x00ff); local
68 /* execute action functions */
69 if (action < BTA_MCE_NUM_ACTIONS) {
70 (*bta_mce_action[action])((tBTA_MCE_MSG*)p_msg);
/system/bt/bta/sdp/
H A Dbta_sdp.cc38 /* state machine action enumeration list */
41 /* type for action functions */
44 /* action function list */
63 uint16_t action = (p_msg->event & 0x00ff); local
65 /* execute action functions */
66 if (action < BTA_SDP_NUM_ACTIONS) {
67 (*bta_sdp_action[action])((tBTA_SDP_MSG*)p_msg);
/system/core/debuggerd/include/debuggerd/
H A Dhandler.h42 static void __attribute__((__unused__)) debuggerd_register_handlers(struct sigaction* action) { argument
43 sigaction(SIGABRT, action, nullptr);
44 sigaction(SIGBUS, action, nullptr);
45 sigaction(SIGFPE, action, nullptr);
46 sigaction(SIGILL, action, nullptr);
47 sigaction(SIGSEGV, action, nullptr);
49 sigaction(SIGSTKFLT, action, nullptr);
51 sigaction(SIGSYS, action, nullptr);
52 sigaction(SIGTRAP, action, nullptr);
53 sigaction(DEBUGGER_SIGNAL, action, nullpt
[all...]
/system/extras/memory_replay/tests/
H A DActionTest.cpp27 Action* action = Action::CreateAction(0x1234, "malloc", line, memory); local
28 ASSERT_TRUE(action != NULL);
29 ASSERT_FALSE(action->DoesFree());
30 ASSERT_FALSE(action->EndThread());
33 action->Execute(&pointers);
42 Action* action = Action::CreateAction(0x1234, "malloc", line, memory); local
43 ASSERT_FALSE(action != NULL);
49 Action* action = Action::CreateAction(0x1234, "free", line, memory); local
50 ASSERT_TRUE(action != NULL);
51 ASSERT_TRUE(action
62 Action* action = Action::CreateAction(0x1234, "calloc", line, memory); local
77 Action* action = Action::CreateAction(0, "free", line, memory); local
88 Action* action = Action::CreateAction(0x1234, "calloc", line1, memory); local
99 Action* action = Action::CreateAction(0x1234, "realloc", line, memory); local
125 Action* action = Action::CreateAction(0x1234, "realloc", line1, memory); local
136 Action* action = Action::CreateAction(0x1234, "memalign", line, memory); local
151 Action* action = Action::CreateAction(0x1234, "memalign", line1, memory); local
162 Action* action = Action::CreateAction(0x0, "thread_done", line, memory); local
[all...]
H A DThreadTest.cpp103 TEST(ThreadTest, action) {
106 Action* action = thread.CreateAction(0x1234, "thread_done", ""); local
107 ASSERT_EQ(action, thread.GetAction());
109 // Verify the action object is not garbage.
110 action->Execute(nullptr);
112 ASSERT_TRUE(action->EndThread());
113 ASSERT_FALSE(action->DoesFree());
/system/core/init/
H A Duevent.h26 std::string action; member in struct:android::init::Uevent
H A Daction_parser.cpp138 auto action = std::make_unique<Action>(false, action_subcontext, filename, line, event_trigger, local
141 action_ = std::move(action);
H A Daction_manager.cpp31 void ActionManager::AddAction(std::unique_ptr<Action> action) { argument
32 actions_.emplace_back(std::move(action));
48 auto action = std::make_unique<Action>(true, nullptr, "<Builtin Action>", 0, name, local
52 action->AddCommand(func, name_vector, 0);
54 event_queue_.emplace(action.get());
55 actions_.emplace_back(std::move(action));
59 // Loop through the event queue until we have an action to execute
61 for (const auto& action : actions_) {
62 if (std::visit([&action](const auto& event) { return action
74 auto action = current_executing_actions_.front(); local
[all...]
/system/update_engine/common/
H A Daction_processor.cc23 #include "update_engine/common/action.h"
33 for (auto action : actions_)
34 action->SetProcessor(nullptr);
37 void ActionProcessor::EnqueueAction(AbstractAction* action) { argument
38 actions_.push_back(action);
39 action->SetProcessor(this);
64 for (auto action : actions_)
65 action->SetProcessor(nullptr);
72 // No current_action_ when not suspended means that the action processor was
80 // If there's a current action w
[all...]
H A Daction_processor.h33 // See action.h for an overview of this class and other Action* classes.
63 // processing is suspended or not running this method performs no action.
67 // or not running in the first place this method performs no action.
75 virtual void EnqueueAction(AbstractAction* action);
88 // Called by an action to notify processor that it's done. Caller passes self.
92 // Continue processing actions (if any) after the last action terminated with
104 // The ErrorCode reported by an action that was suspended but finished while
109 // Whether the action processor is or should be suspended.
127 // last completed action.
135 // Called whenever an action ha
137 ActionCompleted(ActionProcessor* processor, AbstractAction* action, ErrorCode code) argument
[all...]
H A Daction_unittest.cc17 #include "update_engine/common/action.h"
59 ActionTestAction action; local
61 EXPECT_FALSE(action.in_pipe());
62 EXPECT_FALSE(action.out_pipe());
63 EXPECT_FALSE(action.processor());
64 EXPECT_FALSE(action.IsRunning());
67 action_processor.EnqueueAction(&action);
68 EXPECT_EQ(&action_processor, action.processor());
71 EXPECT_TRUE(action.IsRunning());
72 action
[all...]
H A Daction_processor_unittest.cc23 #include "update_engine/common/action.h"
79 AbstractAction* action,
192 // This test suspends and resume the action processor while running one action_.
202 // Suspending the processor twice should not suspend the action twice.
205 // IsRunning should return whether there's is an action doing some work, even
219 // This test suspends an action that presumably doesn't support suspend/resume
231 // Simulate the action completion while suspended. No other call to
78 ActionCompleted(ActionProcessor* processor, AbstractAction* action, ErrorCode code) argument
/system/bt/stack/avdt/
H A Davdt_scb.cc68 /* action function list */
760 uint8_t action; local
780 /* execute action functions */
782 action = state_table[event][i];
783 if (action != AVDT_SCB_IGNORE) {
784 (*avdtp_cb.p_scb_act[action])(p_scb, p_data);
H A Davdt_ccb.cc62 /* action function list */
369 uint8_t action; local
386 /* execute action functions */
388 action = state_table[event][i];
389 AVDT_TRACE_DEBUG("%s: event=%s state=%s action=%d", __func__,
391 action);
392 if (action != AVDT_CCB_IGNORE) {
393 (*avdtp_cb.p_ccb_act[action])(p_ccb, p_data);
/system/extras/memory_replay/
H A DAction.cpp181 Action* action = nullptr; local
183 action = new (action_memory) MallocAction(key_pointer, line);
185 action = new (action_memory) FreeAction(key_pointer);
187 action = new (action_memory) CallocAction(key_pointer, line);
189 action = new (action_memory) ReallocAction(key_pointer, line);
191 action = new (action_memory) MemalignAction(key_pointer, line);
193 action = new (action_memory) EndThreadAction();
196 if (action == nullptr || action->IsError()) {
199 return action;
[all...]
H A DThreads.cpp37 Action* action = thread->GetAction(); local
38 thread->AddTimeNsecs(action->Execute(thread->pointers()));
39 bool end_thread = action->EndThread();
61 err(1, "Thread action size is too small: ACTION_SIZE %zu, max size %zu\n",
H A Dmain.cpp109 // the next action.
112 Action* action = thread->CreateAction(key_pointer, type, line + line_pos); local
113 if (action == nullptr) {
114 err(1, "Cannot create action from line: %s\n", line);
117 bool does_free = action->DoesFree();
120 // before triggering the action. Otherwise, another thread could
125 // Tell the thread to execute the action.
128 if (action->EndThread()) {
133 // Wait for this action to complete. This avoids a race where
/system/extras/simpleperf/scripts/
H A Dbinary_cache_builder.py236 action='append') variable
237 parser.add_argument('--disable_adb_root', action='store_true', help=
/system/bt/bta/pan/
H A Dbta_pan_main.cc44 /* state machine action enumeration list */
58 /* type for action functions */
61 /* action function list */
171 uint8_t action; local
185 /* execute action functions */
187 action = state_table[event][i];
188 CHECK(action < BTA_PAN_MAX_ACTIONS);
189 if (action == BTA_PAN_IGNORE) continue;
190 (*bta_pan_action[action])(p_scb, p_data);
/system/netd/server/
H A DNetlinkCommands.cpp69 // The netlink header is generated by this function based on |action| and |flags|.
76 WARN_UNUSED_RESULT int sendNetlinkRequest(uint16_t action, uint16_t flags, iovec* iov, int iovlen, argument
79 .nlmsg_type = action,
113 int sendNetlinkRequest(uint16_t action, uint16_t flags, iovec* iov, int iovlen) { argument
114 return sendNetlinkRequest(action, flags, iov, iovlen, nullptr);
H A DWakeupController.cpp204 Status WakeupController::execIptables(const std::string& action, const std::string& ifName, argument
214 kFormat, action.c_str(), WakeupController::LOCAL_MANGLE_INPUT, ifName.c_str(),
/system/update_engine/
H A Domaha_response_handler_action_unittest.cc64 // If out is non-null, it's set w/ the response from the action.
72 // Captures the action's result code, for tests that need to directly verify
87 AbstractAction* action,
89 if (action->Type() == OmahaResponseHandlerAction::StaticType()) {
86 ActionCompleted(ActionProcessor* processor, AbstractAction* action, ErrorCode code) argument
/system/update_engine/payload_consumer/
H A Dfilesystem_verifier_action_unittest.cc65 FilesystemVerifierAction* action)
66 : action_(action), ran_(false), code_(ErrorCode::kError) {}
87 AbstractAction* action,
89 if (action->Type() == FilesystemVerifierAction::StaticType()) {
147 // Set up the action objects
225 AbstractAction* action,
227 if (action->Type() == FilesystemVerifierAction::StaticType()) {
64 FilesystemVerifierActionTestDelegate( FilesystemVerifierAction* action) argument
86 ActionCompleted(ActionProcessor* processor, AbstractAction* action, ErrorCode code) argument
224 ActionCompleted(ActionProcessor* processor, AbstractAction* action, ErrorCode code) argument
/system/bt/bta/dm/
H A Dbta_dm_main.cc39 /* type for action functions */
42 /* state machine action enumeration list */
66 /* action function list */
232 uint8_t action; local
244 /* execute action functions */
246 action = state_table[p_msg->event & 0x00ff][i];
247 if (action != BTA_DM_SEARCH_IGNORE) {
248 (*bta_dm_search_action[action])((tBTA_DM_MSG*)p_msg);
/system/bt/bta/gatt/
H A Dbta_gattc_main.cc38 /* state machine action enumeration list */
67 /* type for action functions */
71 /* action function list */
302 uint8_t action; local
324 /* execute action functions */
326 action = state_table[event][i];
327 if (action != BTA_GATTC_IGNORE) {
328 (*bta_gattc_action[action])(p_clcb, p_data);

Completed in 1283 milliseconds

123