/system/core/init/ |
D | action_manager.cpp | 28 for (const auto& action : actions_) { in CheckAllCommands() local 29 failures += action->CheckAllCommands(); in CheckAllCommands() 39 void ActionManager::AddAction(std::unique_ptr<Action> action) { in AddAction() argument 40 actions_.emplace_back(std::move(action)); in AddAction() 59 auto action = std::make_unique<Action>(true, nullptr, "<Builtin Action>", 0, name, in QueueBuiltinAction() local 61 action->AddCommand(std::move(func), {name}, 0); in QueueBuiltinAction() 63 event_queue_.emplace(action.get()); in QueueBuiltinAction() 64 actions_.emplace_back(std::move(action)); in QueueBuiltinAction() 72 for (const auto& action : actions_) { in ExecuteOneCommand() local 73 if (std::visit([&action](const auto& event) { return action->CheckEvent(event); }, in ExecuteOneCommand() [all …]
|
D | reboot_utils.cpp | 155 struct sigaction action; in InstallRebootSignalHandlers() local 156 memset(&action, 0, sizeof(action)); in InstallRebootSignalHandlers() 157 sigfillset(&action.sa_mask); in InstallRebootSignalHandlers() 158 action.sa_handler = [](int signal) { in InstallRebootSignalHandlers() 171 action.sa_flags = SA_RESTART; in InstallRebootSignalHandlers() 172 sigaction(SIGABRT, &action, nullptr); in InstallRebootSignalHandlers() 173 sigaction(SIGBUS, &action, nullptr); in InstallRebootSignalHandlers() 174 sigaction(SIGFPE, &action, nullptr); in InstallRebootSignalHandlers() 175 sigaction(SIGILL, &action, nullptr); in InstallRebootSignalHandlers() 176 sigaction(SIGSEGV, &action, nullptr); in InstallRebootSignalHandlers() [all …]
|
D | fscrypt_init_extensions.cpp | 139 bool FscryptSetDirectoryPolicy(const std::string& ref_basename, FscryptAction action, in FscryptSetDirectoryPolicy() argument 141 if (action == FscryptAction::kNone) { in FscryptSetDirectoryPolicy() 144 if (SetPolicyOn(ref_basename, dir) || action == FscryptAction::kAttempt) { in FscryptSetDirectoryPolicy() 147 if (action == FscryptAction::kDeleteIfNecessary) { in FscryptSetDirectoryPolicy()
|
/system/core/debuggerd/include/debuggerd/ |
D | handler.h | 63 static void __attribute__((__unused__)) debuggerd_register_handlers(struct sigaction* action) { in debuggerd_register_handlers() argument 69 sigaction(SIGABRT, action, nullptr); in debuggerd_register_handlers() 70 sigaction(SIGBUS, action, nullptr); in debuggerd_register_handlers() 71 sigaction(SIGFPE, action, nullptr); in debuggerd_register_handlers() 72 sigaction(SIGILL, action, nullptr); in debuggerd_register_handlers() 73 sigaction(SIGSEGV, action, nullptr); in debuggerd_register_handlers() 74 sigaction(SIGSTKFLT, action, nullptr); in debuggerd_register_handlers() 75 sigaction(SIGSYS, action, nullptr); in debuggerd_register_handlers() 76 sigaction(SIGTRAP, action, nullptr); in debuggerd_register_handlers() 79 sigaction(BIONIC_SIGNAL_DEBUGGER, action, nullptr); in debuggerd_register_handlers()
|
/system/update_engine/common/ |
D | action_unittest.cc | 62 auto action = std::make_unique<ActionTestAction>(); in TEST() local 63 auto action_ptr = action.get(); in TEST() 64 EXPECT_FALSE(action->in_pipe()); in TEST() 65 EXPECT_FALSE(action->out_pipe()); in TEST() 66 EXPECT_FALSE(action->processor()); in TEST() 67 EXPECT_FALSE(action->IsRunning()); in TEST() 70 action_processor.EnqueueAction(std::move(action)); in TEST()
|
D | mock_action_processor.h | 33 MOCK_METHOD1(EnqueueAction, void(AbstractAction* action)); 37 void EnqueueAction(std::unique_ptr<AbstractAction> action) override { in EnqueueAction() argument 38 EnqueueAction(action.get()); in EnqueueAction()
|
D | action_processor.cc | 37 void ActionProcessor::EnqueueAction(unique_ptr<AbstractAction> action) { in EnqueueAction() argument 38 action->SetProcessor(this); in EnqueueAction() 39 actions_.push_back(std::move(action)); in EnqueueAction()
|
/system/bt/stack/btm/ |
D | btm_ble_adv_filter.cc | 61 static uint8_t btm_ble_cs_update_pf_counter(tBTM_BLE_SCAN_COND_OP action, 177 uint8_t status, op_subcode, action, num_avail; in btm_flt_update_cb() local 180 STREAM_TO_UINT8(action, p); in btm_flt_update_cb() 190 cb.Run(num_avail, action, status); in btm_flt_update_cb() 196 expected_ocf, action, status, num_avail); in btm_flt_update_cb() 199 btm_ble_cs_update_pf_counter(action, cond_type, NULL, num_avail); in btm_flt_update_cb() 202 action, cond_type, &btm_ble_adv_filt_cb.cur_filter_target, num_avail); in btm_flt_update_cb() 208 cb.Run(num_avail, action, status); in btm_flt_update_cb() 297 void BTM_LE_PF_local_name(tBTM_BLE_SCAN_COND_OP action, in BTM_LE_PF_local_name() argument 308 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/netd/server/ |
D | NetlinkHandler.cpp | 108 NetlinkEvent::Action action = evt->getAction(); in onEvent() local 110 if ((action == NetlinkEvent::Action::kAdd) || in onEvent() 111 (action == NetlinkEvent::Action::kLinkUp) || in onEvent() 112 (action == NetlinkEvent::Action::kLinkDown)) { in onEvent() 122 if (action == NetlinkEvent::Action::kAdd) { in onEvent() 124 } else if (action == NetlinkEvent::Action::kRemove) { in onEvent() 126 } else if (action == NetlinkEvent::Action::kChange) { in onEvent() 129 } else if (action == NetlinkEvent::Action::kLinkUp) { in onEvent() 131 } else if (action == NetlinkEvent::Action::kLinkDown) { in onEvent() 133 } else if (action == NetlinkEvent::Action::kAddressUpdated || in onEvent() [all …]
|
D | RouteController.h | 127 static int modifyDefaultNetwork(uint16_t action, const char* interface, Permission permission); 130 static int modifyRoute(uint16_t action, uint16_t flags, const char* interface, 133 static int modifyTetheredNetwork(uint16_t action, const char* inputInterface, 135 static int modifyVpnFallthroughRule(uint16_t action, unsigned vpnNetId, 146 [[nodiscard]] int modifyIpRoute(uint16_t action, uint16_t flags, uint32_t table,
|
D | RouteController.cpp | 136 static const char* actionName(uint16_t action) { in actionName() argument 138 return ops[action % 4]; in actionName() 261 [[nodiscard]] static int modifyIpRule(uint16_t action, uint32_t priority, uint8_t ruleType, in modifyIpRule() argument 293 .action = ruleType, in modifyIpRule() 301 if (table == RT_TABLE_UNSPEC && rule.action == FR_ACT_TO_TBL && action != RTM_DELRULE) { in modifyIpRule() 331 uint16_t flags = (action == RTM_NEWRULE) ? NETLINK_RULE_CREATE_FLAGS : NETLINK_REQUEST_FLAGS; in modifyIpRule() 334 if (int ret = sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov), nullptr)) { in modifyIpRule() 335 if (!(action == RTM_DELRULE && ret == -ENOENT && priority == RULE_PRIORITY_TETHERING)) { in modifyIpRule() 338 ALOGE("Error %s %s rule: %s", actionName(action), familyName(rule.family), in modifyIpRule() 348 [[nodiscard]] static int modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, in modifyIpRule() argument [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/update_engine/payload_consumer/ |
D | postinstall_runner_action_unittest.cc | 65 AbstractAction* action, in ActionCompleted() argument 67 if (action->Type() == PostinstallRunnerAction::StaticType()) { in ActionCompleted() 236 PostinstallRunnerAction action(&fake_boot_control_, &fake_hardware_); in TEST_F() local 238 action.set_delegate(&mock_delegate_); in TEST_F() 240 action.current_partition_ = 1; in TEST_F() 241 action.partition_weight_ = {1, 2, 5}; in TEST_F() 242 action.accumulated_weight_ = 1; in TEST_F() 243 action.total_weight_ = 8; in TEST_F() 247 action.ProcessProgressLine("global_progress 0.5"); in TEST_F() 253 action.ProcessProgressLine("global_progress 1.5"); in TEST_F() [all …]
|
/system/core/libkeyutils/mini_keyctl/ |
D | mini_keyctl.cpp | 137 const std::string action = argv[1]; in main() local 139 if (action == "add") { in main() 146 } else if (action == "padd") { in main() 152 } else if (action == "restrict_keyring") { in main() 156 } else if (action == "unlink") { in main() 161 } else if (action == "security") { in main() 173 fprintf(stderr, "Unrecognized action: %s\n", action.c_str()); in main()
|
/system/sepolicy/tests/ |
D | sepolicy_tests.py | 51 def take_action(self, action, dest, opt, value, values, parser): argument 52 if action == "extend": 55 Option.take_action(self, action, dest, opt, value, values, parser) 73 metavar="FILE", action="extend", type="string") 76 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/libufdt/utils/src/ |
D | mkdtboimg.py | 567 parser.add_argument('--id', type=str, dest='id', action='store', 570 action='store', default=global_args.global_rev) 572 action='store', 575 action='store', 578 action='store', 581 action='store', 739 action='store', default='dtb') 741 action='store', default=2048) 743 action='store', default=0) 745 action='store', default='0') [all …]
|
/system/extras/simpleperf/scripts/inferno/ |
D | inferno.py | 252 record_group.add_argument('-du', '--dwarf_unwinding', action='store_true', help="""Perform 261 record_group.add_argument('--compile_java_code', action='store_true', 274 record_group.add_argument('-sc', '--skip_collection', action='store_true', help="""Skip data 276 record_group.add_argument('--system_wide', action='store_true', help='Profile system wide.') 284 report_group.add_argument('--embedded_flamegraph', action='store_true', help="""Generate 297 report_group.add_argument('--no_browser', action='store_true', help="""Don't open report 301 report_group.add_argument('--one-flamegraph', action='store_true', help="""Generate one 306 report_group.add_argument('--show_art_frames', action='store_true', 310 debug_group.add_argument('--disable_adb_root', action='store_true', help="""Force adb to run
|
/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/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/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()
|
/system/bt/gd/hci/fuzz/ |
D | acl_manager_fuzz_test.cc | 48 const uint8_t action = dataProvider.ConsumeIntegralInRange(0, 2); in LLVMFuzzerTestOneInput() local 49 switch (action) { in LLVMFuzzerTestOneInput()
|
D | hci_layer_fuzz_test.cc | 47 const uint8_t action = dataProvider.ConsumeIntegralInRange(0, 5); in LLVMFuzzerTestOneInput() local 48 switch (action) { in LLVMFuzzerTestOneInput()
|