/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 | 178 struct sigaction action; in InstallRebootSignalHandlers() local 179 memset(&action, 0, sizeof(action)); in InstallRebootSignalHandlers() 180 sigfillset(&action.sa_mask); in InstallRebootSignalHandlers() 181 action.sa_handler = [](int signal) { in InstallRebootSignalHandlers() 194 action.sa_flags = SA_RESTART; in InstallRebootSignalHandlers() 195 sigaction(SIGABRT, &action, nullptr); in InstallRebootSignalHandlers() 196 sigaction(SIGBUS, &action, nullptr); in InstallRebootSignalHandlers() 197 sigaction(SIGFPE, &action, nullptr); in InstallRebootSignalHandlers() 198 sigaction(SIGILL, &action, nullptr); in InstallRebootSignalHandlers() 199 sigaction(SIGSEGV, &action, nullptr); in InstallRebootSignalHandlers() [all …]
|
D | fscrypt_init_extensions.cpp | 123 bool FscryptSetDirectoryPolicy(const std::string& ref_basename, FscryptAction action, in FscryptSetDirectoryPolicy() argument 125 if (action == FscryptAction::kNone) { in FscryptSetDirectoryPolicy() 128 if (SetPolicyOn(ref_basename, dir) || action == FscryptAction::kAttempt) { in FscryptSetDirectoryPolicy() 131 if (action == FscryptAction::kDeleteIfNecessary) { in FscryptSetDirectoryPolicy()
|
D | devices.cpp | 120 if (uevent.action == "remove") return false; // Avoid error spam from ioctl in FindDmDevice() 474 void DeviceHandler::HandleDevice(const std::string& action, const std::string& devpath, bool block, in HandleDevice() argument 476 if (action == "add") { in HandleDevice() 485 if (action == "add" || (action == "change" && StartsWith(devpath, "/dev/block/dm-"))) { in HandleDevice() 513 if (action == "remove") { in HandleDevice() 545 if (uevent.action == "add" || uevent.action == "change" || in HandleUevent() 546 uevent.action == "bind" || uevent.action == "online") { in HandleUevent() 592 HandleDevice(uevent.action, devpath, block, uevent.major, uevent.minor, links); in HandleUevent()
|
/system/core/debuggerd/include/debuggerd/ |
D | handler.h | 81 static void __attribute__((__unused__)) debuggerd_register_handlers(struct sigaction* action) { in debuggerd_register_handlers() argument 88 sigaction(SIGABRT, action, nullptr); in debuggerd_register_handlers() 89 sigaction(SIGBUS, action, nullptr); in debuggerd_register_handlers() 90 sigaction(SIGFPE, action, nullptr); in debuggerd_register_handlers() 91 sigaction(SIGILL, action, nullptr); in debuggerd_register_handlers() 92 sigaction(SIGSEGV, action, nullptr); in debuggerd_register_handlers() 93 sigaction(SIGSTKFLT, action, nullptr); in debuggerd_register_handlers() 94 sigaction(SIGSYS, action, nullptr); in debuggerd_register_handlers() 95 sigaction(SIGTRAP, action, nullptr); in debuggerd_register_handlers() 98 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)); 39 void EnqueueAction(std::unique_ptr<AbstractAction> action) override { in EnqueueAction() argument 40 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/tools/aidl/tests/ |
D | golden_test.sh | 163 action=$1 167 if [ "$action" == "update" ]; then 171 _golden_test "$action" "$root" "false" true 172 _golden_test "$action" "$root" "true" false 174 _golden_test "$action" "$root" "true" true 175 _golden_test "$action" "$root" "false" false 178 _golden_test "$action" "$root" "$use_unfrozen" false "$*"
|
/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 | 111 NetlinkEvent::Action action = evt->getAction(); in onEvent() local 113 if (action == NetlinkEvent::Action::kAdd) { in onEvent() 115 } else if (action == NetlinkEvent::Action::kRemove) { in onEvent() 117 } else if (action == NetlinkEvent::Action::kChange) { in onEvent() 120 } else if (action == NetlinkEvent::Action::kLinkUp) { in onEvent() 122 } else if (action == NetlinkEvent::Action::kLinkDown) { in onEvent() 124 } else if (action == NetlinkEvent::Action::kAddressUpdated || in onEvent() 125 action == NetlinkEvent::Action::kAddressRemoved) { in onEvent() 141 const bool addrUpdated = (action == NetlinkEvent::Action::kAddressUpdated); in onEvent() 170 } else if (action == NetlinkEvent::Action::kRdnss) { in onEvent() [all …]
|
D | NetlinkCommands.cpp | 86 OPTNONE int sendNetlinkRequest(uint16_t action, uint16_t flags, iovec* iov, int iovlen, in sendNetlinkRequest() argument 94 .nlmsg_type = action, in sendNetlinkRequest() 125 int sendNetlinkRequest(uint16_t action, uint16_t flags, iovec* iov, int iovlen) { in sendNetlinkRequest() argument 126 return sendNetlinkRequest(action, flags, iov, iovlen, nullptr); in sendNetlinkRequest()
|
D | RouteController.cpp | 122 static const char* actionName(uint16_t action) { in actionName() argument 124 return ops[action % 4]; in actionName() 268 [[nodiscard]] static int modifyIpRule(uint16_t action, int32_t priority, uint8_t ruleType, in modifyIpRule() argument 305 .action = ruleType, in modifyIpRule() 313 if (table == RT_TABLE_UNSPEC && rule.action == FR_ACT_TO_TBL && action != RTM_DELRULE) { in modifyIpRule() 343 uint16_t flags = (action == RTM_NEWRULE) ? NETLINK_RULE_CREATE_FLAGS : NETLINK_REQUEST_FLAGS; in modifyIpRule() 346 if (int ret = sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov), nullptr)) { in modifyIpRule() 347 if (!(action == RTM_DELRULE && ret == -ENOENT && priority == RULE_PRIORITY_TETHERING)) { in modifyIpRule() 350 ALOGE("Error %s %s rule: %s", actionName(action), familyName(rule.family), in modifyIpRule() 360 [[nodiscard]] static int modifyIpRule(uint16_t action, int32_t priority, uint32_t table, in modifyIpRule() argument [all …]
|
/system/extras/kcmdlinectrl/ |
D | kcmdlinectrl.cc | 127 char *action, *property_name, *new_value; in main() local 130 action = argv[1]; in main() 134 action = argv[1]; in main() 138 action = argv[1]; in main() 146 if (!strcmp(action, "update-props") && property_name == NULL) { in main() 148 } else if (!strcmp(action, "get") && property_name != NULL && new_value == NULL) { in main() 150 } else if (!strcmp(action, "store") && property_name != NULL && new_value != NULL) { in main()
|
/system/update_engine/payload_consumer/ |
D | postinstall_runner_action_unittest.cc | 69 AbstractAction* action, in ActionCompleted() argument 71 if (action->Type() == PostinstallRunnerAction::StaticType()) { in ActionCompleted() 249 PostinstallRunnerAction action(&fake_boot_control_, &fake_hardware_); in TEST_F() local 251 action.set_delegate(&mock_delegate_); in TEST_F() 253 action.current_partition_ = 1; in TEST_F() 254 action.partition_weight_ = {1, 2, 5}; in TEST_F() 255 action.accumulated_weight_ = 1; in TEST_F() 256 action.total_weight_ = 8; in TEST_F() 260 action.ProcessProgressLine("global_progress 0.5"); in TEST_F() 266 action.ProcessProgressLine("global_progress 1.5"); in TEST_F() [all …]
|
/system/update_engine/scripts/ |
D | update_device.py | 374 parser.add_argument('--file', action='store_true', 376 parser.add_argument('--no-push', action='store_true', 380 parser.add_argument('--no-verbose', action='store_true', 386 parser.add_argument('--secondary', action='store_true', 388 parser.add_argument('--no-slot-switch', action='store_true', 390 parser.add_argument('--no-postinstall', action='store_true', 392 parser.add_argument('--allocate-only', action='store_true', 395 parser.add_argument('--verify-only', action='store_true', 397 parser.add_argument('--no-care-map', action='store_true', 399 parser.add_argument('--perform-slot-switch', action='store_true', [all …]
|
/system/core/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/extras/simpleperf/scripts/ |
D | stackcollapse.py | 109 parser.add_argument('--pid', action='store_true', help='Include PID with process names') 110 parser.add_argument('--tid', action='store_true', help='Include TID and PID with process names') 111 parser.add_argument('--kernel', action='store_true', 113 parser.add_argument('--jit', action='store_true', help='Annotate JIT functions with a _[j]') 114 parser.add_argument('--addrs', action='store_true',
|
/system/libufdt/utils/src/ |
D | mkdtboimg.py | 602 parser.add_argument('--id', type=str, dest='id', action='store', 605 action='store', default=global_args.global_rev) 607 action='store', 610 action='store', 613 action='store', 616 action='store', 619 action='store', 778 action='store', default='dtb') 780 action='store', default=2048) 782 action='store', default=0) [all …]
|
/system/sepolicy/tests/ |
D | check_prop_prefix.py | 39 parser.add_argument("--allowed-property-prefix", action="extend", nargs="*", 41 parser.add_argument("--allowed-context-prefix", action="extend", nargs="*", 43 parser.add_argument('--strict', action='store_true',
|
/system/extras/profcollectd/ |
D | profcollectd.rs | 39 let action = &args[1]; in main() localVariable 40 match action.as_str() { in main()
|
D | profcollectctl.rs | 46 let action = &args[1]; in main() localVariable 47 match action.as_str() { in main()
|
/system/extras/simpleperf/scripts/inferno/ |
D | inferno.py | 255 record_group.add_argument('-du', '--dwarf_unwinding', action='store_true', help="""Perform 264 record_group.add_argument('--compile_java_code', action='store_true', 277 record_group.add_argument('-sc', '--skip_collection', action='store_true', help="""Skip data 279 record_group.add_argument('--system_wide', action='store_true', help='Profile system wide.') 287 report_group.add_argument('--embedded_flamegraph', action='store_true', help="""Generate 300 report_group.add_argument('--no_browser', action='store_true', help="""Don't open report 304 report_group.add_argument('--one-flamegraph', action='store_true', help="""Generate one 313 debug_group.add_argument('--disable_adb_root', action='store_true', help="""Force adb to run
|
/system/libbase/include/android-base/ |
D | silent_death_test.h | 102 struct sigaction64 action = {.sa_handler = SIG_DFL}; in ScopedSilentDeath() local 103 sigaction64(signo, &action, &previous_); in ScopedSilentDeath()
|
/system/libvintf/analyze_matrix/ |
D | hals_for_release.py | 62 action="store_true") 66 action="store_true") 70 action="store_true") 71 parser.add_argument("--instances", "-i", action="store_true", 76 parser.add_argument("--verbose", "-v", action="store_true", help="Verbose mode") 77 parser.add_argument("--json", "-j", action="store_true", help="Print JSON") 78 parser.add_argument("--package-only", action="store_true", help="Analyze on the package level.") 186 action = "--instances" if args.instances else "--interfaces" 187 instances = Analyze(args.analyze_matrix, file, [action, "--requirement"]).split("\n")
|