Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 210) sorted by relevance

123456789

/system/keymaster/
Dlogger.cpp24 int Logger::Log(LogLevel level, const char* fmt, va_list args) { in Log() argument
27 return instance_->log_msg(level, fmt, args); in Log()
32 va_list args; in Log() local
33 va_start(args, fmt); in Log()
34 int result = Log(level, fmt, args); in Log()
35 va_end(args); in Log()
41 va_list args; in Debug() local
42 va_start(args, fmt); in Debug()
43 int result = Log(DEBUG_LVL, fmt, args); in Debug()
44 va_end(args); in Debug()
[all …]
/system/core/init/
Dinit_parser_test.cpp31 std::vector<std::string> args; in TEST() local
33 ASSERT_EQ(nullptr, sm.MakeExecOneshotService(args)); in TEST()
36 args.push_back("exec"); in TEST()
37 ASSERT_EQ(nullptr, sm.MakeExecOneshotService(args)); in TEST()
40 args.push_back("--"); in TEST()
41 ASSERT_EQ(nullptr, sm.MakeExecOneshotService(args)); in TEST()
46 std::vector<std::string> args; in TEST() local
47 args.push_back("exec"); in TEST()
48 args.push_back("seclabel"); in TEST()
49 args.push_back("root"); // uid. in TEST()
[all …]
Dbuiltins.cpp227 static int do_class_start(const std::vector<std::string>& args) { in do_class_start() argument
233 ForEachServiceInClass(args[1], [] (Service* s) { s->StartIfNotDisabled(); }); in do_class_start()
237 static int do_class_stop(const std::vector<std::string>& args) { in do_class_stop() argument
239 ForEachServiceInClass(args[1], [] (Service* s) { s->Stop(); }); in do_class_stop()
243 static int do_class_reset(const std::vector<std::string>& args) { in do_class_reset() argument
245 ForEachServiceInClass(args[1], [] (Service* s) { s->Reset(); }); in do_class_reset()
249 static int do_domainname(const std::vector<std::string>& args) { in do_domainname() argument
250 return write_file("/proc/sys/kernel/domainname", args[1].c_str()); in do_domainname()
253 static int do_enable(const std::vector<std::string>& args) { in do_enable() argument
254 Service* svc = ServiceManager::GetInstance().FindServiceByName(args[1]); in do_enable()
[all …]
Dueventd_parser.cpp33 static void parse_line_device(struct parse_state *state, int nargs, char **args);
98 static void *parse_subsystem(parse_state* state, int /*nargs*/, char** args) { in parse_subsystem() argument
99 if (!valid_name(args[1])) { in parse_subsystem()
100 parse_error(state, "invalid subsystem name '%s'\n", args[1]); in parse_subsystem()
104 ueventd_subsystem* s = ueventd_subsystem_find_by_name(args[1]); in parse_subsystem()
107 args[1]); in parse_subsystem()
116 s->name = args[1]; in parse_subsystem()
123 char **args) in parse_line_subsystem() argument
132 kw = lookup_keyword(args[0]); in parse_line_subsystem()
135 if (!strcmp(args[1], "uevent_devname")) in parse_line_subsystem()
[all …]
Dueventd.cpp96 void set_device_permission(int nargs, char **args) in set_device_permission() argument
112 if (args[0][0] == '#') in set_device_permission()
115 name = args[0]; in set_device_permission()
118 INFO("/sys/ rule %s %s\n",args[0],args[1]); in set_device_permission()
119 attr = args[1]; in set_device_permission()
120 args++; in set_device_permission()
125 ERROR("invalid line ueventd.rc line for '%s'\n", args[0]); in set_device_permission()
147 perm = strtol(args[1], &endptr, 8); in set_device_permission()
149 ERROR("invalid mode '%s'\n", args[1]); in set_device_permission()
154 ret = get_android_id(args[2]); in set_device_permission()
[all …]
Dservice.cpp63 const std::vector<std::string>& args) in Service() argument
66 ioprio_class_(IoSchedClass_NONE), ioprio_pri_(0), args_(args) { in Service()
72 const std::string& seclabel, const std::vector<std::string>& args) in Service() argument
75 seclabel_(seclabel), ioprio_class_(IoSchedClass_NONE), ioprio_pri_(0), args_(args) { in Service()
168 bool Service::HandleClass(const std::vector<std::string>& args, std::string* err) { in HandleClass() argument
169 classname_ = args[1]; in HandleClass()
173 bool Service::HandleConsole(const std::vector<std::string>& args, std::string* err) { in HandleConsole() argument
178 bool Service::HandleCritical(const std::vector<std::string>& args, std::string* err) { in HandleCritical() argument
183 bool Service::HandleDisabled(const std::vector<std::string>& args, std::string* err) { in HandleDisabled() argument
189 bool Service::HandleGroup(const std::vector<std::string>& args, std::string* err) { in HandleGroup() argument
[all …]
Dservice.h72 const std::vector<std::string>& args);
76 const std::string& seclabel, const std::vector<std::string>& args);
78 bool HandleLine(const std::vector<std::string>& args, std::string* err);
101 const std::vector<std::string>& args() const { return args_; } in args() function
104 using OptionHandler = bool (Service::*) (const std::vector<std::string>& args,
114 bool HandleClass(const std::vector<std::string>& args, std::string* err);
115 bool HandleConsole(const std::vector<std::string>& args, std::string* err);
116 bool HandleCritical(const std::vector<std::string>& args, std::string* err);
117 bool HandleDisabled(const std::vector<std::string>& args, std::string* err);
118 bool HandleGroup(const std::vector<std::string>& args, std::string* err);
[all …]
/system/core/mkbootimg/
Dmkbootimg48 def write_header(args): argument
50 args.output.write(pack('8s', BOOT_MAGIC))
51 args.output.write(pack('10I',
52 filesize(args.kernel), # size in bytes
53 args.base + args.kernel_offset, # physical load addr
54 filesize(args.ramdisk), # size in bytes
55 args.base + args.ramdisk_offset, # physical load addr
56 filesize(args.second), # size in bytes
57 args.base + args.second_offset, # physical load addr
58 args.base + args.tags_offset, # physical addr for kernel tags
[all …]
/system/connectivity/shill/test-scripts/
Dconnect-vpn84 (options, args) = parser.parse_args(argv[1:])
86 if (len(args) > 1):
87 vpn_type = args[0]
91 if (len(args) == 7):
93 params["Name"] = args[1]
94 params["Provider.Host"] = args[2]
95 params["VPN.Domain"] = args[3]
96 params["OpenVPN.CACert"] = args[4]
97 params["OpenVPN.Cert"] = args[5]
98 params["OpenVPN.Key"] = args[6]
[all …]
/system/bt/vendor_libs/test_vendor_lib/include/
Ddual_mode_controller.h119 const std::vector<std::string>& args);
146 void HciReset(const std::vector<uint8_t>& args);
151 void HciReadBufferSize(const std::vector<uint8_t>& args);
156 void HciHostBufferSize(const std::vector<uint8_t>& args);
161 void HciReadLocalVersionInformation(const std::vector<uint8_t>& args);
166 void HciReadBdAddr(const std::vector<uint8_t>& args);
171 void HciReadLocalSupportedCommands(const std::vector<uint8_t>& args);
176 void HciReadLocalExtendedFeatures(const std::vector<uint8_t>& args);
181 void HciWriteSimplePairingMode(const std::vector<uint8_t>& args);
186 void HciWriteLeHostSupport(const std::vector<uint8_t>& args);
[all …]
/system/vold/bench/
Dbenchgen.py35 def __init__(self, thread, time, call, args, ret): argument
39 self.args = args
43 return "%s(%s)=%s" % (self.call, repr(self.args), self.ret)
75 args = []
98 args.append(arg.strip())
103 args.append(arg.strip())
104 return args
119 time, call, args, ret = line.groups() variable
121 if "/data/" not in args: continue
124 args = parse_args(args) variable
[all …]
/system/bt/osi/include/
Dlog.h30 #define LOGWRAPPER(tag, fmt, args...) fprintf(stderr, "%s: " fmt "\n", tag, ## args) argument
45 #define LOG_VERBOSE(tag, fmt, args...) ALOG(LOG_VERBOSE, tag, fmt, ## args) argument
47 #define LOG_DEBUG(tag, fmt, args...) ALOG(LOG_DEBUG, tag, fmt, ## args ) argument
48 #define LOG_INFO(tag, fmt, args...) ALOG(LOG_INFO, tag, fmt, ## args) argument
49 #define LOG_WARN(tag, fmt, args...) ALOG(LOG_WARN, tag, fmt, ## args) argument
50 #define LOG_ERROR(tag, fmt, args...) ALOG(LOG_ERROR, tag, fmt, ## args) argument
/system/extras/simpleperf/
Dmain.cpp29 std::vector<std::string> args; in main() local
34 args.insert(args.begin(), "help"); in main()
47 args.push_back(argv[i]); in main()
52 if (args.empty()) { in main()
53 args.push_back("help"); in main()
55 std::unique_ptr<Command> command = CreateCommandInstance(args[0]); in main()
57 LOG(ERROR) << "malformed command line: unknown command " << args[0]; in main()
60 std::string command_name = args[0]; in main()
61 args.erase(args.begin()); in main()
64 bool result = command->Run(args); in main()
Dcmd_record.cpp136 bool Run(const std::vector<std::string>& args);
141 …bool ParseOptions(const std::vector<std::string>& args, std::vector<std::string>* non_option_args);
152 bool PostUnwind(const std::vector<std::string>& args);
153 bool DumpAdditionalFeatures(const std::vector<std::string>& args);
190 bool RecordCommand::Run(const std::vector<std::string>& args) { in Run() argument
197 if (!ParseOptions(args, &workload_args)) { in Run()
275 if (!DumpAdditionalFeatures(args)) { in Run()
284 if (!PostUnwind(args)) { in Run()
292 bool RecordCommand::ParseOptions(const std::vector<std::string>& args, in ParseOptions() argument
296 for (i = 0; i < args.size() && args[i].size() > 0 && args[i][0] == '-'; ++i) { in ParseOptions()
[all …]
Dcmd_stat.cpp83 bool Run(const std::vector<std::string>& args);
86 …bool ParseOptions(const std::vector<std::string>& args, std::vector<std::string>* non_option_args);
103 bool StatCommand::Run(const std::vector<std::string>& args) { in Run() argument
110 if (!ParseOptions(args, &workload_args)) { in Run()
174 bool StatCommand::ParseOptions(const std::vector<std::string>& args, in ParseOptions() argument
178 for (i = 0; i < args.size() && args[i].size() > 0 && args[i][0] == '-'; ++i) { in ParseOptions()
179 if (args[i] == "-a") { in ParseOptions()
181 } else if (args[i] == "--cpu") { in ParseOptions()
182 if (!NextArgumentOrError(args, &i)) { in ParseOptions()
185 cpus_ = GetCpusFromString(args[i]); in ParseOptions()
[all …]
Dcmd_report.cpp285 bool Run(const std::vector<std::string>& args);
288 bool ParseOptions(const std::vector<std::string>& args);
323 bool ReportCommand::Run(const std::vector<std::string>& args) { in Run() argument
325 if (!ParseOptions(args)) { in Run()
352 bool ReportCommand::ParseOptions(const std::vector<std::string>& args) { in ParseOptions() argument
363 for (size_t i = 0; i < args.size(); ++i) { in ParseOptions()
364 if (args[i] == "-b") { in ParseOptions()
366 } else if (args[i] == "--children") { in ParseOptions()
368 } else if (args[i] == "--comms" || args[i] == "--dsos") { in ParseOptions()
369 std::unordered_set<std::string>& filter = (args[i] == "--comms" ? comm_filter : dso_filter); in ParseOptions()
[all …]
/system/extras/multinetwork/
Ddnschk.cpp35 struct Arguments args; in main() local
36 if (!args.parseArguments(argc, argv)) { return rval; } in main()
39 .ai_family = args.family, in main()
44 std::cout << "# " << args.arg1 in main()
45 << " (via nethandle " << args.nethandle << "):" in main()
48 switch (args.api_mode) { in main()
50 rval = android_getaddrinfofornetwork(args.nethandle, in main()
51 args.arg1, nullptr, &hints, &result); in main()
54 if (args.nethandle != NETWORK_UNSPECIFIED) { in main()
55 rval = android_setprocnetwork(args.nethandle); in main()
[all …]
/system/bt/vendor_libs/test_vendor_lib/scripts/
Dtest_channel.py96 def send_command(self, name, args): argument
98 args_size = len(args)
99 self.lint_command(name, args, name_size, args_size)
101 encoded_args = chr(args_size) + ''.join(chr(len(arg)) + arg for arg in args)
105 def lint_command(self, name, args, name_size, args_size): argument
106 assert name_size == len(name) and args_size == len(args)
109 for arg in args:
116 for arg in args:
171 def do_clear(self, args): argument
178 def do_clear_event_delay(self, args): argument
[all …]
/system/bt/service/client/
Dmain.cpp67 #define CHECK_ARGS_COUNT(args, op, num, msg) \ argument
68 if (!(args.size() op num)) { \
72 #define CHECK_NO_ARGS(args) \ argument
73 CHECK_ARGS_COUNT(args, ==, 0, "Expected no arguments")
256 void HandleDisable(IBluetooth* bt_iface, const vector<string>& args) { in HandleDisable() argument
257 CHECK_NO_ARGS(args); in HandleDisable()
261 void HandleEnable(IBluetooth* bt_iface, const vector<string>& args) { in HandleEnable() argument
264 for (auto iter : args) { in HandleEnable()
282 void HandleGetState(IBluetooth* bt_iface, const vector<string>& args) { in HandleGetState() argument
283 CHECK_NO_ARGS(args); in HandleGetState()
[all …]
/system/connectivity/shill/
Ddns_server_proxy.cc57 vector<string> args; in Start() local
58 args.push_back("--no-hosts"); in Start()
59 args.push_back("--listen-address=127.0.0.1"); in Start()
60 args.push_back("--no-resolv"); in Start()
61 args.push_back("--keep-in-foreground"); in Start()
62 args.push_back(base::StringPrintf("--user=%s", kDnsmasqUser)); in Start()
63 args.push_back(base::StringPrintf("--group=%s", kDnsmasqGroup)); in Start()
65 args.push_back(base::StringPrintf("--server=%s", server.c_str())); in Start()
67 args.push_back(base::StringPrintf("--pid-file=%s", kDnsmasqPidFilePath)); in Start()
75 args, in Start()
/system/extras/verity/
DVeritySigner.java34 public static void main(String[] args) throws Exception { in main() argument
35 if (args.length < 3) { in main()
42 byte[] content = Utils.read(args[0]); in main()
44 if (args.length > 3 && "-verify".equals(args[3])) { in main()
45 X509Certificate cert = Utils.loadPEMCertificate(args[1]); in main()
48 byte[] signature = Utils.read(args[2]); in main()
64 PrivateKey privateKey = Utils.loadDERPrivateKey(Utils.read(args[1])); in main()
66 Utils.write(signature, args[2]); in main()
/system/ca-certificates/google/
Dextract_from_pem.py65 args = parser.parse_args()
66 assert os.path.isdir(args.output_dir) and os.path.isfile(args.pem_file)
68 args.output_dir):
71 for existing_file in os.listdir(args.output_dir):
72 os.remove(os.path.join(args.output_dir, existing_file))
73 with open(args.pem_file) as pem_file:
82 WriteCertificateFile(content, base_name, args.output_dir)
83 with open(args.timestamp_file, 'w') as timestamp_file:
/system/netd/server/
DNetdConstants.cpp46 std::string args = ""; in logExecError() local
48 args += *argp; in logExecError()
49 args += ' '; in logExecError()
52 ALOGE("exec() res=%d, status=%d for %s", res, status, args.c_str()); in logExecError()
73 static int execIptables(IptablesTarget target, bool silent, va_list args) { in execIptables() argument
83 arg = va_arg(args, const char *); in execIptables()
107 va_list args; in execIptables() local
108 va_start(args, target); in execIptables()
109 int res = execIptables(target, false, args); in execIptables()
110 va_end(args); in execIptables()
[all …]
/system/extras/libfec/
Dfec_private.h147 #define __log(func, type, format, args...) \ argument
149 (int)syscall(SYS_gettid), __FUNCTION__, ##args)
153 #define __log(func, type, format, args...) \ argument
155 (int)syscall(SYS_gettid), __FUNCTION__, ##args)
159 #define debug(format, args...) argument
161 #define debug(format, args...) __log(DEBUG, "debug", format, ##args) argument
164 #define warn(format, args...) __log(WARNING, "warning", format, ##args) argument
165 #define error(format, args...) __log(ERROR, "error", format, ##args) argument
/system/core/fs_mgr/
Dfs_mgr_format.c66 char * args[3]; in format_f2fs() local
70 args[0] = (char *)"/sbin/mkfs.f2fs"; in format_f2fs()
71 args[1] = fs_blkdev; in format_f2fs()
72 args[2] = (char *)0; in format_f2fs()
80 execv("/sbin/mkfs.f2fs", args); in format_f2fs()
92 INFO("%s done, status %d\n", args[0], rc); in format_f2fs()
98 ERROR("Still waiting for %s...\n", args[0]); in format_f2fs()

123456789