/system/core/debuggerd/include/debuggerd/ |
H A D | handler.h | 42 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 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/core/init/ |
H A D | action_manager.cpp | 31 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...] |
H A D | uevent.h | 26 std::string action; member in struct:android::init::Uevent
|
/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.cc | 39 /* 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 D | bta_sdp.cc | 38 /* 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/netd/server/ |
H A D | NetlinkHandler.cpp | 78 NetlinkEvent::Action action = evt->getAction(); local 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 233 notifyAddressChanged(NetlinkEvent::Action action, const char *addr, const char *iface, const char *flags, const char *scope) argument 249 notifyRouteChange(NetlinkEvent::Action action, const char *route, const char *gateway, const char *iface) argument [all...] |
H A D | NetlinkHandler.h | 48 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);
|
H A D | RouteController.h | 123 static int modifyDefaultNetwork(uint16_t action, const char* interface, Permission permission); 126 static int modifyRoute(uint16_t action, const char* interface, const char* destination, 128 static int modifyTetheredNetwork(uint16_t action, const char* inputInterface, 130 static int modifyVpnFallthroughRule(uint16_t action, unsigned vpnNetId, 141 int modifyIpRoute(uint16_t action, uint32_t table, const char* interface, const char* destination,
|
H A D | RouteController.cpp | 126 const char *actionName(uint16_t action) { argument 128 return ops[action % 4]; 233 WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint8_t ruleType, argument 264 .action = ruleType, 272 if (table == RT_TABLE_UNSPEC && rule.action == FR_ACT_TO_TBL && action != RTM_DELRULE) { 302 uint16_t flags = (action == RTM_NEWRULE) ? NETLINK_RULE_CREATE_FLAGS : NETLINK_REQUEST_FLAGS; 305 if (int ret = sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov), nullptr)) { 306 if (!(action == RTM_DELRULE && ret == -ENOENT && priority == RULE_PRIORITY_TETHERING)) { 309 ALOGE("Error %s %s rule: %s", actionName(action), familyNam 319 modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, uint32_t fwmark, uint32_t mask, const char* iif, const char* oif, uid_t uidStart, uid_t uidEnd) argument 326 modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, uint32_t fwmark, uint32_t mask) argument 334 modifyIpRoute(uint16_t action, uint32_t table, const char* interface, const char* destination, const char* nexthop) argument 599 modifyVpnFallthroughRule(uint16_t action, unsigned vpnNetId, const char* physicalInterface, Permission permission) argument 821 modifyDefaultNetwork(uint16_t action, const char* interface, Permission permission) argument 841 modifyTetheredNetwork(uint16_t action, const char* inputInterface, const char* outputInterface) argument 855 modifyRoute(uint16_t action, const char* interface, const char* destination, const char* nexthop, TableType tableType) argument [all...] |
/system/chre/apps/gnss_world/ |
H A D | gnss_world.cc | 161 const char *action = nullptr; local 168 action = "start"; 172 if (action == nullptr) { 173 action = "stop"; 181 action = "start"; 185 if (action == nullptr) { 186 action = "stop"; 202 LOGI("GNSS %s %s success", name, action); 204 LOGE("GNSS %s %s failure: %" PRIu8, name, action, result->errorCode); 208 LOGE("GNSS %s session %s request cookie mismatch", name, action); [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/extras/verity/ |
H A D | build_verity_metadata.py | 93 parser_size.add_argument('partition_size', type=int, action='store', help='partition size') 98 parser_build.add_argument('metadata_image', action='store', help='metadata image') 99 parser_build.add_argument('root_hash', action='store', help='root hash') 100 parser_build.add_argument('salt', action='store', help='salt') 101 parser_build.add_argument('block_device', action='store', help='block device') 102 parser_build.add_argument('signer_path', action='store', help='verity signer path') 103 parser_build.add_argument('signing_key', action='store', help='verity signing key') 104 parser_build.add_argument('--signer_args', action='store', help='verity signer args') 105 parser_build.add_argument('--verity_disable', action='store_true',
|
/system/update_engine/payload_consumer/ |
H A D | postinstall_runner_action_unittest.cc | 62 AbstractAction* action, 64 if (action->Type() == PostinstallRunnerAction::StaticType()) { 94 // Setup an action processor and run the PostinstallRunnerAction with a single 160 // A pointer to the posinstall_runner action and the processor. 211 PostinstallRunnerAction action(&fake_boot_control_, &fake_hardware_); 213 action.set_delegate(&mock_delegate_); 215 action.current_partition_ = 1; 216 action.partition_weight_ = {1, 2, 5}; 217 action.accumulated_weight_ = 1; 218 action [all...] |
/system/bt/stack/btm/ |
H A D | btm_ble_adv_filter.cc | 46 /* BLE meta vsc header: 1 bytes of sub_code, 1 byte of PCF action */ 59 static uint8_t btm_ble_cs_update_pf_counter(tBTM_BLE_SCAN_COND_OP action, 175 uint8_t status, op_subcode, action, num_avail; local 178 STREAM_TO_UINT8(action, p); 188 cb.Run(num_avail, action, status); 194 expected_ocf, action, status, num_avail); 197 btm_ble_cs_update_pf_counter(action, cond_type, NULL, num_avail); 200 action, cond_type, &btm_ble_adv_filt_cb.cur_filter_target, num_avail); 206 cb.Run(num_avail, action, status); 295 void BTM_LE_PF_local_name(tBTM_BLE_SCAN_COND_OP action, argument 326 BTM_LE_PF_srvc_data(tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index) argument 338 BTM_LE_PF_manu_data(tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, uint16_t company_id, uint16_t company_id_mask, std::vector<uint8_t> data, std::vector<uint8_t> data_mask, tBTM_BLE_PF_CFG_CBACK cb) argument 390 BTM_LE_PF_srvc_data_pattern(tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, std::vector<uint8_t> data, std::vector<uint8_t> data_mask, tBTM_BLE_PF_CFG_CBACK cb) argument 435 btm_ble_cs_update_pf_counter(tBTM_BLE_SCAN_COND_OP action, uint8_t cond_type, tBLE_BD_ADDR* p_bd_addr, uint8_t num_available) argument 488 BTM_LE_PF_addr_filter(tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, tBLE_BD_ADDR addr, tBTM_BLE_PF_CFG_CBACK cb) argument 530 BTM_LE_PF_uuid_filter(tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_INDEX filt_index, tBTM_BLE_PF_COND_TYPE filter_type, const bluetooth::Uuid& uuid, tBTM_BLE_PF_LOGIC_TYPE cond_logic, const bluetooth::Uuid& uuid_mask, tBTM_BLE_PF_CFG_CBACK cb) argument 607 int action = BTM_BLE_SCAN_COND_ADD; local 737 BTM_BleAdvFilterParamSetup( int action, tBTM_BLE_PF_FILT_INDEX filt_index, std::unique_ptr<btgatt_filt_param_setup_t> p_filt_params, tBTM_BLE_PF_PARAM_CB cb) argument 833 uint8_t status, op_subcode, action; local [all...] |
/system/bt/stack/avct/ |
H A D | avct_lcb.cc | 57 /* state machine action enumeration list */ 80 /* type for action functions */ 83 /* action function list */ 166 uint8_t action; local 178 /* execute action functions */ 180 action = state_table[event][i]; 181 if (action != AVCT_LCB_IGNORE) { 182 (*avct_lcb_action[action])(p_lcb, p_data); 201 uint8_t action; local 213 /* execute action function [all...] |
/system/extras/ioshark/ |
H A D | ioshark.h | 88 #define lseek_action u.lseek_a.action 90 u_int32_t action; member in struct:ioshark_file_operation::__anon1871::lseek_args
|
/system/bt/bta/pan/ |
H A D | bta_pan_main.cc | 44 /* 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/sepolicy/tests/ |
H A D | sepolicy_tests.py | 48 def take_action(self, action, dest, opt, value, values, parser): 49 if action == "extend": 52 Option.take_action(self, action, dest, opt, value, values, parser) 69 metavar="FILE", action="extend", type="string") 72 parser.add_option("-t", "--test", dest="test", action="extend",
|