/system/extras/memory_replay/tests/ |
D | ActionTest.cpp | 27 Action* action = Action::CreateAction(0x1234, "malloc", line, memory); in TEST() local 28 ASSERT_TRUE(action != NULL); in TEST() 29 ASSERT_FALSE(action->DoesFree()); in TEST() 30 ASSERT_FALSE(action->EndThread()); in TEST() 33 action->Execute(&pointers); in TEST() 42 Action* action = Action::CreateAction(0x1234, "malloc", line, memory); in TEST() local 43 ASSERT_FALSE(action != NULL); in TEST() 49 Action* action = Action::CreateAction(0x1234, "free", line, memory); in TEST() local 50 ASSERT_TRUE(action != NULL); in TEST() 51 ASSERT_TRUE(action->DoesFree()); in TEST() [all …]
|
D | ThreadTest.cpp | 103 TEST(ThreadTest, action) { in TEST() argument 106 Action* action = thread.CreateAction(0x1234, "thread_done", ""); in TEST() local 107 ASSERT_EQ(action, thread.GetAction()); in TEST() 110 action->Execute(nullptr); in TEST() 112 ASSERT_TRUE(action->EndThread()); in TEST() 113 ASSERT_FALSE(action->DoesFree()); in TEST()
|
/system/core/init/ |
D | action_manager.cpp | 31 void ActionManager::AddAction(std::unique_ptr<Action> action) { in AddAction() argument 32 actions_.emplace_back(std::move(action)); in AddAction() 48 auto action = std::make_unique<Action>(true, nullptr, "<Builtin Action>", 0, name, in QueueBuiltinAction() local 52 action->AddCommand(func, name_vector, 0); in QueueBuiltinAction() 54 event_queue_.emplace(action.get()); in QueueBuiltinAction() 55 actions_.emplace_back(std::move(action)); in QueueBuiltinAction() 61 for (const auto& action : actions_) { in ExecuteOneCommand() local 62 if (std::visit([&action](const auto& event) { return action->CheckEvent(event); }, in ExecuteOneCommand() 64 current_executing_actions_.emplace(action.get()); in ExecuteOneCommand() 74 auto action = current_executing_actions_.front(); in ExecuteOneCommand() local [all …]
|
D | init.cpp | 235 std::function<Result<Success>(Service*)> action; member 282 if (auto result = function.action(svc); !result) { in HandleControlMessage() 296 if (auto result = function.action(svc.get()); !result) { in HandleControlMessage() 466 struct sigaction action; in InstallRebootSignalHandlers() local 467 memset(&action, 0, sizeof(action)); in InstallRebootSignalHandlers() 468 sigfillset(&action.sa_mask); in InstallRebootSignalHandlers() 469 action.sa_handler = [](int signal) { in InstallRebootSignalHandlers() 482 action.sa_flags = SA_RESTART; in InstallRebootSignalHandlers() 483 sigaction(SIGABRT, &action, nullptr); in InstallRebootSignalHandlers() 484 sigaction(SIGBUS, &action, nullptr); in InstallRebootSignalHandlers() [all …]
|
/system/core/debuggerd/include/debuggerd/ |
D | handler.h | 42 static void __attribute__((__unused__)) debuggerd_register_handlers(struct sigaction* action) { in debuggerd_register_handlers() argument 43 sigaction(SIGABRT, action, nullptr); in debuggerd_register_handlers() 44 sigaction(SIGBUS, action, nullptr); in debuggerd_register_handlers() 45 sigaction(SIGFPE, action, nullptr); in debuggerd_register_handlers() 46 sigaction(SIGILL, action, nullptr); in debuggerd_register_handlers() 47 sigaction(SIGSEGV, action, nullptr); in debuggerd_register_handlers() 49 sigaction(SIGSTKFLT, action, nullptr); in debuggerd_register_handlers() 51 sigaction(SIGSYS, action, nullptr); in debuggerd_register_handlers() 52 sigaction(SIGTRAP, action, nullptr); in debuggerd_register_handlers() 53 sigaction(DEBUGGER_SIGNAL, action, nullptr); in debuggerd_register_handlers()
|
/system/update_engine/common/ |
D | action_unittest.cc | 59 ActionTestAction action; in TEST() local 61 EXPECT_FALSE(action.in_pipe()); in TEST() 62 EXPECT_FALSE(action.out_pipe()); in TEST() 63 EXPECT_FALSE(action.processor()); in TEST() 64 EXPECT_FALSE(action.IsRunning()); in TEST() 67 action_processor.EnqueueAction(&action); in TEST() 68 EXPECT_EQ(&action_processor, action.processor()); in TEST() 71 EXPECT_TRUE(action.IsRunning()); in TEST() 72 action.CompleteAction(); in TEST() 73 EXPECT_FALSE(action.IsRunning()); in TEST()
|
D | action_processor.cc | 33 for (auto action : actions_) in ~ActionProcessor() local 34 action->SetProcessor(nullptr); in ~ActionProcessor() 37 void ActionProcessor::EnqueueAction(AbstractAction* action) { in EnqueueAction() argument 38 actions_.push_back(action); in EnqueueAction() 39 action->SetProcessor(this); in EnqueueAction() 64 for (auto action : actions_) in StopProcessing() local 65 action->SetProcessor(nullptr); in StopProcessing()
|
/system/netd/server/ |
D | NetlinkHandler.cpp | 78 NetlinkEvent::Action action = evt->getAction(); in onEvent() local 80 if ((action == NetlinkEvent::Action::kAdd) || in onEvent() 81 (action == NetlinkEvent::Action::kLinkUp) || in onEvent() 82 (action == NetlinkEvent::Action::kLinkDown)) { in onEvent() 92 if (action == NetlinkEvent::Action::kAdd) { in onEvent() 94 } else if (action == NetlinkEvent::Action::kRemove) { in onEvent() 96 } else if (action == NetlinkEvent::Action::kChange) { in onEvent() 99 } else if (action == NetlinkEvent::Action::kLinkUp) { in onEvent() 101 } else if (action == NetlinkEvent::Action::kLinkDown) { in onEvent() 103 } else if (action == NetlinkEvent::Action::kAddressUpdated || in onEvent() [all …]
|
D | RouteController.cpp | 126 const char *actionName(uint16_t action) { in actionName() argument 128 return ops[action % 4]; in actionName() 233 WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint8_t ruleType, in modifyIpRule() argument 264 .action = ruleType, in modifyIpRule() 272 if (table == RT_TABLE_UNSPEC && rule.action == FR_ACT_TO_TBL && action != RTM_DELRULE) { in modifyIpRule() 302 uint16_t flags = (action == RTM_NEWRULE) ? NETLINK_RULE_CREATE_FLAGS : NETLINK_REQUEST_FLAGS; in modifyIpRule() 305 if (int ret = sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov), nullptr)) { in modifyIpRule() 306 if (!(action == RTM_DELRULE && ret == -ENOENT && priority == RULE_PRIORITY_TETHERING)) { in modifyIpRule() 309 ALOGE("Error %s %s rule: %s", actionName(action), familyName(rule.family), in modifyIpRule() 319 WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, in modifyIpRule() argument [all …]
|
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,
|
/system/bt/stack/btm/ |
D | btm_ble_adv_filter.cc | 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; in btm_flt_update_cb() local 178 STREAM_TO_UINT8(action, p); in btm_flt_update_cb() 188 cb.Run(num_avail, action, status); in btm_flt_update_cb() 194 expected_ocf, action, status, num_avail); in btm_flt_update_cb() 197 btm_ble_cs_update_pf_counter(action, cond_type, NULL, num_avail); in btm_flt_update_cb() 200 action, cond_type, &btm_ble_adv_filt_cb.cur_filter_target, num_avail); in btm_flt_update_cb() 206 cb.Run(num_avail, action, status); in btm_flt_update_cb() 295 void BTM_LE_PF_local_name(tBTM_BLE_SCAN_COND_OP action, in BTM_LE_PF_local_name() argument 306 UINT8_TO_STREAM(p, action); in BTM_LE_PF_local_name() [all …]
|
/system/extras/verity/ |
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/chre/apps/gnss_world/ |
D | gnss_world.cc | 161 const char *action = nullptr; in handleGnssAsyncResult() local 168 action = "start"; in handleGnssAsyncResult() 172 if (action == nullptr) { in handleGnssAsyncResult() 173 action = "stop"; in handleGnssAsyncResult() 181 action = "start"; in handleGnssAsyncResult() 185 if (action == nullptr) { in handleGnssAsyncResult() 186 action = "stop"; in handleGnssAsyncResult() 202 LOGI("GNSS %s %s success", name, action); in handleGnssAsyncResult() 204 LOGE("GNSS %s %s failure: %" PRIu8, name, action, result->errorCode); in handleGnssAsyncResult() 208 LOGE("GNSS %s session %s request cookie mismatch", name, action); in handleGnssAsyncResult()
|
/system/extras/memory_replay/ |
D | Action.cpp | 181 Action* action = nullptr; in CreateAction() local 183 action = new (action_memory) MallocAction(key_pointer, line); in CreateAction() 185 action = new (action_memory) FreeAction(key_pointer); in CreateAction() 187 action = new (action_memory) CallocAction(key_pointer, line); in CreateAction() 189 action = new (action_memory) ReallocAction(key_pointer, line); in CreateAction() 191 action = new (action_memory) MemalignAction(key_pointer, line); in CreateAction() 193 action = new (action_memory) EndThreadAction(); in CreateAction() 196 if (action == nullptr || action->IsError()) { in CreateAction() 199 return action; in CreateAction()
|
D | main.cpp | 112 Action* action = thread->CreateAction(key_pointer, type, line + line_pos); in ProcessDump() local 113 if (action == nullptr) { in ProcessDump() 117 bool does_free = action->DoesFree(); in ProcessDump() 128 if (action->EndThread()) { in ProcessDump()
|
/system/update_engine/payload_consumer/ |
D | postinstall_runner_action_unittest.cc | 62 AbstractAction* action, in ActionCompleted() argument 64 if (action->Type() == PostinstallRunnerAction::StaticType()) { in ActionCompleted() 211 PostinstallRunnerAction action(&fake_boot_control_, &fake_hardware_); in TEST_F() local 213 action.set_delegate(&mock_delegate_); in TEST_F() 215 action.current_partition_ = 1; in TEST_F() 216 action.partition_weight_ = {1, 2, 5}; in TEST_F() 217 action.accumulated_weight_ = 1; in TEST_F() 218 action.total_weight_ = 8; in TEST_F() 222 action.ProcessProgressLine("global_progress 0.5"); in TEST_F() 228 action.ProcessProgressLine("global_progress 1.5"); in TEST_F() [all …]
|
/system/bt/bta/mce/ |
D | bta_mce_main.cc | 66 uint16_t action = (p_msg->event & 0x00ff); in bta_mce_sm_execute() local 69 if (action < BTA_MCE_NUM_ACTIONS) { in bta_mce_sm_execute() 70 (*bta_mce_action[action])((tBTA_MCE_MSG*)p_msg); in bta_mce_sm_execute()
|
/system/bt/bta/sdp/ |
D | bta_sdp.cc | 63 uint16_t action = (p_msg->event & 0x00ff); in bta_sdp_sm_execute() local 66 if (action < BTA_SDP_NUM_ACTIONS) { in bta_sdp_sm_execute() 67 (*bta_sdp_action[action])((tBTA_SDP_MSG*)p_msg); in bta_sdp_sm_execute()
|
/system/sepolicy/tests/ |
D | sepolicy_tests.py | 48 def take_action(self, action, dest, opt, value, values, parser): argument 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",
|
/system/bt/stack/avct/ |
D | avct_lcb.cc | 166 uint8_t action; in avct_lcb_event() local 180 action = state_table[event][i]; in avct_lcb_event() 181 if (action != AVCT_LCB_IGNORE) { in avct_lcb_event() 182 (*avct_lcb_action[action])(p_lcb, p_data); in avct_lcb_event() 201 uint8_t action; in avct_bcb_event() local 215 action = state_table[event][i]; in avct_bcb_event() 216 if (action != AVCT_LCB_IGNORE) { in avct_bcb_event() 217 (*avct_bcb_action[action])(p_bcb, p_data); in avct_bcb_event()
|
/system/bt/doc/ |
D | power_management.md | 36 policy is determined by the greatest allowable power action defined across all 38 it's willing to go to into SNIFF and specifies that as an action, and say, a PAN 39 connection is up which specifies it is willing to go into SNIFF, but its action 54 The action constants are defined in `bta_api.h` and are defined as a series of 62 action that `bta_dm_pm_set_mode` will take, the connection will be removed 68 action is still the same, however -- SNIFF mode is attempted. There are 100 returns with no action taken. 104 there's no action to be performed (`BTA_DM_PM_NO_ACTION`), and if so, 105 returns with no action taken. 123 the first power management action didn't timeout (or was never attempted, [all …]
|
/system/libufdt/utils/src/ |
D | mkdtboimg.py | 467 parser.add_argument('--id', type=str, dest='id', action='store', 470 action='store', default=global_args.global_rev) 472 action='store', 475 action='store', 478 action='store', 481 action='store', 636 action='store', default=2048) 638 action='store', default=0) 640 action='store', default='0') 642 action='store', default='0') [all …]
|
/system/bt/bta/pan/ |
D | bta_pan_main.cc | 171 uint8_t action; in bta_pan_sm_execute() local 187 action = state_table[event][i]; in bta_pan_sm_execute() 188 CHECK(action < BTA_PAN_MAX_ACTIONS); in bta_pan_sm_execute() 189 if (action == BTA_PAN_IGNORE) continue; in bta_pan_sm_execute() 190 (*bta_pan_action[action])(p_scb, p_data); in bta_pan_sm_execute()
|
/system/extras/libperfmgr/ |
D | HintManager.cc | 59 for (auto& action : actions_override) { in DoHint() local 60 action.timeout_ms = timeout_ms_override; in DoHint() 78 for (auto const& action : actions_) { in GetHints() local 79 hints.push_back(action.first); in GetHints() 316 for (const auto& action : actions_parsed[hint_type]) { in ParseActions() local 317 if (action.node_index == node_index) { in ParseActions() 334 for (const auto& action : actions_parsed) { in ParseActions() local 335 LOG(INFO) << "PowerHint " << action.first << " has " in ParseActions() 336 << action.second.size() << " actions parsed"; in ParseActions()
|
/system/bt/bta/dm/ |
D | bta_dm_main.cc | 232 uint8_t action; in bta_dm_search_sm_execute() local 246 action = state_table[p_msg->event & 0x00ff][i]; in bta_dm_search_sm_execute() 247 if (action != BTA_DM_SEARCH_IGNORE) { in bta_dm_search_sm_execute() 248 (*bta_dm_search_action[action])((tBTA_DM_MSG*)p_msg); in bta_dm_search_sm_execute()
|