/system/extras/memory_replay/tests/ |
H A D | ActionTest.cpp | 27 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 D | ThreadTest.cpp | 103 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/update_engine/common/ |
H A D | action_unittest.cc | 17 #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 D | mock_action_processor.h | 22 #include "update_engine/common/action.h" 29 MOCK_METHOD1(EnqueueAction, void(AbstractAction* action));
|
H A D | action_processor.cc | 23 #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 D | action_processor.h | 33 // 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...] |
/system/bt/bta/mce/ |
H A D | bta_mce_main.c | 40 /* 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/connectivity/shill/test-scripts/ |
H A D | debug-flimflam | 10 action = "Add " 12 action = "Remove" 14 action = "Update" 17 print "%s [ %s ]" % (action, path)
|
H A D | connect-vpn | 45 action = "store_true", 50 action = "store_true", 57 action = "store_false", 62 action = "store_true", 69 action = "store", 78 action = "store",
|
/system/bt/bta/sdp/ |
H A D | bta_sdp.c | 40 /* 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/connectivity/shill/ |
H A D | hook_table.cc | 65 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/bt/bta/jv/ |
H A D | bta_jv_main.c | 38 /* 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/core/init/ |
H A D | action.cpp | 17 #include "action.h" 97 void Action::CombineAction(const Action& action) { argument 98 for (const auto& c : action.commands_) { 126 INFO("Command '%s' action=%s%s returned %d took %.2fs\n", 269 bool CheckTriggers(const Action& action) const override { 270 return action.CheckEventTrigger(trigger_); 281 bool CheckTriggers(const Action& action) const override { 282 return action.CheckPropertyTrigger(name_, value_); 291 BuiltinTrigger(Action* action) : action_(action) { argument 308 AddAction(std::unique_ptr<Action> action) argument 337 auto action = std::make_unique<Action>(true); local 365 auto action = current_executing_actions_.front(); local 409 auto action = std::make_unique<Action>(false); local [all...] |
/system/extras/verity/ |
H A D | build_verity_metadata.py | 88 parser_size.add_argument('partition_size', type=int, action='store', help='partition size') 93 parser_build.add_argument('metadata_image', action='store', help='metadata image') 94 parser_build.add_argument('root_hash', action='store', help='root hash') 95 parser_build.add_argument('salt', action='store', help='salt') 96 parser_build.add_argument('block_device', action='store', help='block device') 97 parser_build.add_argument('signer_path', action='store', help='verity signer path') 98 parser_build.add_argument('signing_key', action='store', help='verity signing key') 99 parser_build.add_argument('--signer_args', action='store', help='verity signer args')
|
/system/netd/server/ |
H A D | NetlinkHandler.cpp | 62 NetlinkEvent::Action action = evt->getAction(); local 65 if (action == NetlinkEvent::Action::kAdd) { 67 } else if (action == NetlinkEvent::Action::kRemove) { 69 } else if (action == NetlinkEvent::Action::kChange) { 72 } else if (action == NetlinkEvent::Action::kLinkUp) { 74 } else if (action == NetlinkEvent::Action::kLinkDown) { 76 } else if (action == NetlinkEvent::Action::kAddressUpdated || 77 action == NetlinkEvent::Action::kAddressRemoved) { 81 if (action == NetlinkEvent::Action::kAddressRemoved && iface && address) { 101 notifyAddressChanged(action, addres 196 notifyAddressChanged(NetlinkEvent::Action action, const char *addr, const char *iface, const char *flags, const char *scope) argument 212 notifyRouteChange(NetlinkEvent::Action action, const char *route, const char *gateway, const char *iface) argument [all...] |
H A D | NetlinkHandler.h | 45 void notifyAddressChanged(NetlinkEvent::Action action, const char *addr, const char *iface, 49 void notifyRouteChange(NetlinkEvent::Action action, const char *route, const char *gateway, const char *iface);
|
/system/bt/stack/btm/ |
H A D | btm_ble_adv_filter.c | 42 /* BLE meta vsc header: 1 bytes of sub_code, 1 byte of PCF action */ 56 static UINT8 btm_ble_cs_update_pf_counter(tBTM_BLE_SCAN_COND_OP action, 112 void btm_ble_advfilt_enq_op_q(UINT8 action, UINT8 ocf, tBTM_BLE_FILT_CB_EVT cb_evt, argument 116 btm_ble_adv_filt_cb.op_q.action_ocf[btm_ble_adv_filt_cb.op_q.next_idx] = (action |(ocf << 4)); 122 BTM_TRACE_DEBUG("btm_ble_advfilt_enq_op_q: act_ocf:%d, action:%d, ocf:%d,cb_evt;%d, cback:%x", 123 btm_ble_adv_filt_cb.op_q.action_ocf[btm_ble_adv_filt_cb.op_q.next_idx], action, 154 BTM_TRACE_DEBUG("btm_ble_advfilt_deq_op_q: ocf:%d, action:%d, ref_value:%d, cb_evt:%x", 259 UINT8 *p = p_params->p_param_buf, op_subcode = 0, action = 0xff; local 271 btm_ble_advfilt_deq_op_q(&action, &ocf, &cb_evt, &ref_value, &p_scan_cfg_cback, 276 btm_ble_advfilt_deq_op_q(&action, 457 btm_ble_update_pf_local_name(tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_PF_COND_PARAM *p_cond) argument 516 btm_ble_update_srvc_data_change(tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_PF_COND_PARAM *p_cond) argument 543 btm_ble_update_pf_manu_data(tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_PF_COND_PARAM *p_data, tBTM_BLE_PF_COND_TYPE cond_type, tBTM_BLE_FILT_CB_EVT cb_evt, tBTM_BLE_REF_VALUE ref_value) argument 665 btm_ble_cs_update_pf_counter(tBTM_BLE_SCAN_COND_OP action, UINT8 cond_type, tBLE_BD_ADDR *p_bd_addr, UINT8 num_available) argument 734 btm_ble_update_addr_filter(tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_PF_COND_PARAM *p_cond) argument 786 btm_ble_update_uuid_filter(tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_PF_COND_TYPE filter_type, tBTM_BLE_PF_COND_PARAM *p_cond, tBTM_BLE_FILT_CB_EVT cb_evt, tBTM_BLE_REF_VALUE ref_value) argument 937 btm_ble_clear_scan_pf_filter(tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_PF_COND_PARAM *p_cond, tBTM_BLE_PF_CFG_CBACK *p_cmpl_cback, tBTM_BLE_FILT_CB_EVT cb_evt, tBTM_BLE_REF_VALUE ref_value) argument 1050 BTM_BleAdvFilterParamSetup(int action, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_PF_FILT_PARAMS *p_filt_params, tBLE_BD_ADDR *p_target, tBTM_BLE_PF_PARAM_CBACK *p_cmpl_cback, tBTM_BLE_REF_VALUE ref_value) argument 1233 BTM_BleCfgFilterCondition(tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_COND_TYPE cond_type, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_PF_COND_PARAM *p_cond, tBTM_BLE_PF_CFG_CBACK *p_cmpl_cback, tBTM_BLE_REF_VALUE ref_value) argument [all...] |
/system/extras/memory_replay/ |
H A D | Action.cpp | 181 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 D | main.cpp | 109 // 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/update_engine/payload_consumer/ |
H A D | postinstall_runner_action_unittest.cc | 65 AbstractAction* action, 67 if (action->Type() == PostinstallRunnerAction::StaticType()) { 104 // Setup an action processor and run the PostinstallRunnerAction with a single 170 // A pointer to the posinstall_runner action and the processor. 218 PostinstallRunnerAction action(&fake_boot_control_, &fake_hardware_); 220 action.set_delegate(&mock_delegate_); 222 action.current_partition_ = 1; 223 action.partition_weight_ = {1, 2, 5}; 224 action.accumulated_weight_ = 1; 225 action [all...] |
H A D | filesystem_verifier_action_unittest.cc | 70 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/core/include/cutils/ |
H A D | debugger.h | 43 int32_t action; member in struct:__anon1530
|
/system/core/libcutils/ |
H A D | debugger.c | 45 static int make_dump_request(debugger_action_t action, pid_t tid, int timeout_secs) { argument 49 msg.action = action;
|
/system/core/crash_reporter/ |
H A D | udev_collector.h | 36 // "ACTION=[action]:KERNEL=[name]:SUBSYSTEM=[subsystem]" 50 const std::string& action,
|
/system/bt/stack/avct/ |
H A D | avct_lcb.c | 70 /* 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...] |