Home
last modified time | relevance | path

Searched refs:action (Results 1 – 25 of 139) sorted by relevance

123456

/system/core/init/
Daction_manager.cpp28 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 …]
Dreboot_utils.cpp178 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 …]
Dfscrypt_init_extensions.cpp123 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()
Ddevices.cpp120 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/
Dhandler.h81 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/
Daction_unittest.cc62 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()
Dmock_action_processor.h33 MOCK_METHOD1(EnqueueAction, void(AbstractAction* action));
39 void EnqueueAction(std::unique_ptr<AbstractAction> action) override { in EnqueueAction() argument
40 EnqueueAction(action.get()); in EnqueueAction()
Daction_processor.cc37 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/
Dgolden_test.sh163 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/
Dbuild_verity_metadata.py93 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/
DNetlinkHandler.cpp111 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 …]
DNetlinkCommands.cpp86 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()
DRouteController.cpp122 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/
Dkcmdlinectrl.cc127 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/
Dpostinstall_runner_action_unittest.cc69 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/
Dupdate_device.py374 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/
Dmini_keyctl.cpp137 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/
Dstackcollapse.py109 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/
Dmkdtboimg.py602 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/
Dcheck_prop_prefix.py39 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/
Dprofcollectd.rs39 let action = &args[1]; in main() localVariable
40 match action.as_str() { in main()
Dprofcollectctl.rs46 let action = &args[1]; in main() localVariable
47 match action.as_str() { in main()
/system/extras/simpleperf/scripts/inferno/
Dinferno.py255 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/
Dsilent_death_test.h102 struct sigaction64 action = {.sa_handler = SIG_DFL}; in ScopedSilentDeath() local
103 sigaction64(signo, &action, &previous_); in ScopedSilentDeath()
/system/libvintf/analyze_matrix/
Dhals_for_release.py62 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")

123456