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

123

/system/bt/bta/mce/
H A Dbta_mce_main.c40 /* state machine action enumeration list */
43 /* type for action functions */
46 /* action function list */
68 UINT16 action = (p_msg->event & 0x00ff); local
70 /* execute action functions */
71 if(action < BTA_MCE_NUM_ACTIONS)
73 (*bta_mce_action[action])((tBTA_MCE_MSG*)p_msg);
/system/bt/bta/sdp/
H A Dbta_sdp.c40 /* state machine action enumeration list */
43 /* type for action functions */
46 /* action function list */
67 UINT16 action = (p_msg->event & 0x00ff); local
69 /* execute action functions */
70 if(action < BTA_SDP_NUM_ACTIONS)
72 (*bta_sdp_action[action])((tBTA_SDP_MSG*)p_msg);
/system/bt/bta/jv/
H A Dbta_jv_main.c38 /* state machine action enumeration list */
41 /* type for action functions */
44 /* action function list */
87 UINT16 action = (p_msg->event & 0x00ff); local
88 /* execute action functions */
90 if(action < BTA_JV_NUM_ACTIONS)
92 (*bta_jv_action[action])((tBTA_JV_MSG*)p_msg);
/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/include/cutils/
H A Ddebugger.h43 int32_t action; member in struct:__anon1530
/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_ccb.c84 /* action function list */
301 UINT8 action; local
316 /* execute action functions */
319 if ((action = state_table[event][i]) != AVDT_CCB_IGNORE)
321 (*avdt_cb.p_ccb_act[action])(p_ccb, p_data);
H A Davdt_scb.c106 /* action function list */
528 UINT8 action; local
545 /* execute action functions */
548 if ((action = state_table[event][i]) != AVDT_SCB_IGNORE)
550 (*avdt_cb.p_scb_act[action])(p_scb, p_data);
/system/connectivity/shill/
H A Dhook_table.cc65 HookAction* action = &it->second; local
66 if (action->started && !action->completed) {
67 action->completed = true;
88 // Otherwise, if the first action completes inline, its call to
92 // An action that completes inline could call HookTable::Remove(), which
95 // callback of each action and iterate through that to invoke the callback.
98 HookAction* action = &hook_entry.second; local
99 action_start_callbacks.push_back(action->start_callback);
100 action
112 const HookAction& action = hook_entry.second; local
[all...]
/system/core/libcutils/
H A Ddebugger.c45 static int make_dump_request(debugger_action_t action, pid_t tid, int timeout_secs) { argument
49 msg.action = action;
/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/bt/bta/pan/
H A Dbta_pan_main.c44 /* state machine action enumeration list */
60 /* type for action functions */
66 /* action function list */
201 UINT8 action; local
214 /* execute action functions */
217 if ((action = state_table[event][i]) != BTA_PAN_IGNORE)
219 (*bta_pan_action[action])(p_scb, p_data);
/system/update_engine/
H A Domaha_response_handler_action_unittest.cc54 // If out is non-null, it's set w/ the response from the action.
69 AbstractAction* action,
71 if (action->Type() == OmahaResponseHandlerAction::StaticType()) {
68 ActionCompleted(ActionProcessor* processor, AbstractAction* action, ErrorCode code) argument
/system/update_engine/payload_consumer/
H A Dfilesystem_verifier_action_unittest.cc70 FilesystemVerifierAction* action)
71 : action_(action), ran_(false), code_(ErrorCode::kError) {}
92 AbstractAction* action,
94 if (action->Type() == FilesystemVerifierAction::StaticType()) {
167 // Set up the action objects
251 AbstractAction* action,
253 if (action->Type() == FilesystemVerifierAction::StaticType()) {
350 FilesystemVerifierAction action(&fake_boot_control_,
358 BondActions(&feeder_action, &action);
359 BondActions(&action,
69 FilesystemVerifierActionTestDelegate( FilesystemVerifierAction* action) argument
91 ActionCompleted(ActionProcessor* processor, AbstractAction* action, ErrorCode code) argument
250 ActionCompleted(ActionProcessor* processor, AbstractAction* action, ErrorCode code) argument
[all...]
/system/bt/bta/dm/
H A Dbta_dm_main.c43 /* type for action functions */
46 /* action function list */
126 /* state machine action enumeration list */
154 /* action function list */
307 /* execute action functions */
346 UINT8 action; local
358 /* execute action functions */
361 if ((action = state_table[p_msg->event & 0x00ff][i]) != BTA_DM_SEARCH_IGNORE)
363 (*bta_dm_search_action[action])( (tBTA_DM_MSG*) p_msg);
/system/bt/bta/gatt/
H A Dbta_gattc_main.c40 /* state machine action enumeration list */
72 /* type for action functions */
75 /* action function list */
269 UINT8 action; local
290 /* execute action functions */
293 if ((action = state_table[event][i]) != BTA_GATTC_IGNORE)
295 (*bta_gattc_action[action])(p_clcb, p_data);
/system/bt/bta/hh/
H A Dbta_hh_main.c39 /* state machine action enumeration list */
42 BTA_HH_API_DISC_ACT, /* HID host process API close action */
76 /* type for action functions */
79 /* action functions */
114 #define BTA_HH_ACTION 0 /* position of action */
278 UINT8 action; local
389 if ((action = state_table[event][BTA_HH_ACTION]) != BTA_HH_IGNORE)
391 (*bta_hh_action[action])(p_cb, p_data);
/system/bt/btif/src/
H A Dbtif_hf_client.c437 ** Description handle specified call related action
442 static bt_status_t handle_call_action(bthf_client_call_action_t action, int idx) argument
446 switch (action)
/system/bt/stack/avct/
H A Davct_lcb.c70 /* state machine action enumeration list */
93 /* type for action functions */
96 /* action function list */
197 UINT8 action; local
212 /* execute action functions */
215 if ((action = state_table[event][i]) != AVCT_LCB_IGNORE)
217 (*avct_lcb_action[action])(p_lcb, p_data);
240 UINT8 action; local
255 /* execute action functions */
258 if ((action
[all...]

Completed in 567 milliseconds

123