Lines Matching refs:options
94 Options options; in ParseOptions() local
101 options.task_profiles = Split(std::string(arg), ","); in ParseOptions()
102 if (options.task_profiles.empty()) { in ParseOptions()
107 options.priority = ANDROID_PRIORITY_BACKGROUND; in ParseOptions()
112 options.drop_capabilities = true; in ParseOptions()
119 options.keep_fds.insert(fd); in ParseOptions()
126 options.envs[std::string(arg.substr(/*pos=*/0, /*n=*/pos))] = in ParseOptions()
132 options.command_pos = i + 1; in ParseOptions()
133 return options; in ParseOptions()
187 Options options = ParseOptions(argc, argv); in main() local
189 if (auto result = CloseFds(options.keep_fds); !result.ok()) { in main()
194 if (!options.task_profiles.empty()) { in main()
195 if (int ret = PaletteSetTaskProfiles(/*tid=*/0, options.task_profiles); in main()
202 if (options.priority.has_value()) { in main()
203 if (setpriority(PRIO_PROCESS, /*who=*/0, options.priority.value()) != 0) { in main()
209 if (options.drop_capabilities) { in main()
216 for (const auto& [key, value] : options.envs) { in main()
220 execv(argv[options.command_pos], argv + options.command_pos); in main()
222 std::vector<const char*> command_args(argv + options.command_pos, argv + argc); in main()