/system/connectivity/shill/shims/ |
H A D | pppd_plugin.c | 24 static void PPPOnUp(void* data, int arg) { argument 28 static void PPPOnPhaseChange(void* data, int arg) { argument 29 if (arg == PHASE_AUTHENTICATE) { 31 } else if (arg == PHASE_NETWORK) { 39 } else if (arg == PHASE_DISCONNECT || arg == PHASE_DEAD) {
|
H A D | c_ppp.h | 31 void PPPOnExit(void* data, int arg);
|
/system/core/toolbox/upstream-netbsd/bin/dd/ |
H A D | args.c | 85 static const struct arg { struct 115 struct arg *ap, tmp; 116 char *oper, *arg; local 127 if ((arg = strchr(oper, '=')) == NULL) { 131 *arg++ = '\0'; 132 if (!*arg) { 149 ap->f(arg); 212 return (strcmp(((const struct arg *)a)->name, 213 ((const struct arg *)b)->name)); 217 f_bs(char *arg) argument 224 f_cbs(char *arg) argument 231 f_count(char *arg) argument 240 f_files(char *arg) argument 249 f_ibs(char *arg) argument 257 f_if(char *arg) argument 266 f_msgfmt(char *arg) argument 274 f_msgfmt(char *arg) argument 288 f_obs(char *arg) argument 296 f_of(char *arg) argument 303 f_seek(char *arg) argument 310 f_skip(char *arg) argument 317 f_progress(char *arg) argument 326 f_conv(char *arg) argument 361 f_conv(char *arg) argument [all...] |
/system/core/debuggerd/ |
H A D | crasher.c | 27 static int do_action(const char* arg); 101 static int do_action_on_thread(const char* arg) argument 104 pthread_create(&t, NULL, thread_callback, (void*) arg); 135 static int do_action(const char* arg) argument 139 if (!strncmp(arg, "thread-", strlen("thread-"))) { 140 return do_action_on_thread(arg + strlen("thread-")); 141 } else if (!strcmp(arg, "SIGSEGV-non-null")) { 143 } else if (!strcmp(arg, "smash-stack")) { 146 } else if (!strcmp(arg, "stack-overflow")) { 148 } else if (!strcmp(arg, "nostac [all...] |
/system/connectivity/shill/net/ |
H A D | netlink_message_matchers.h | 31 if (!arg) { 35 if (arg->message_type() != nl80211_message_type) { 39 const Nl80211Message* msg = static_cast<const Nl80211Message*>(arg); 51 if (!arg) { 55 const Nl80211Message* msg = static_cast<const Nl80211Message*>(arg); 78 if (!arg) { 82 if (arg->message_type() != nl80211_message_type) { 86 const Nl80211Message* msg = reinterpret_cast<const Nl80211Message*>(arg); 126 if (!arg) { 130 if (arg [all...] |
/system/core/include/cutils/ |
H A D | android_reboot.h | 32 int android_reboot(int cmd, int flags, const char *arg); 34 int cmd, int flags, const char *arg,
|
/system/core/libmemunreachable/ |
H A D | bionic.h | 30 void (*callback)(uintptr_t base, size_t size, void* arg), void* arg);
|
/system/connectivity/shill/ |
H A D | testing.h | 51 return arg.IsSuccess(); 55 return arg.IsFailure(); 59 return error_type == arg.type() && error_message == arg.message(); 63 return error_type == arg.type(); 67 return !arg.get(); 71 return arg.get(); 78 return arg.get() == ref_address; 82 bool match = value.properties() == arg.properties();
|
H A D | routing_table_unittest.cc | 181 const RTNLMessage::RouteStatus& status = arg->route_status(); 187 arg->type() == RTNLMessage::kTypeRoute && 188 arg->family() == family && 189 arg->flags() == (NLM_F_REQUEST | NLM_F_CREATE | NLM_F_EXCL) && 194 !arg->HasAttribute(RTA_DST) && 195 !arg->HasAttribute(RTA_SRC) && 196 !arg->HasAttribute(RTA_GATEWAY) && 197 arg->GetAttribute(RTA_OIF).ConvertToCPUUInt32(&oif) && 199 arg->GetAttribute(RTA_PRIORITY).ConvertToCPUUInt32(&priority) && 204 const RTNLMessage::RouteStatus& status = arg [all...] |
/system/core/libcutils/ |
H A D | dlmalloc_stubs.c | 27 void* arg UNUSED)
|
/system/core/adb/ |
H A D | socket_test.cpp | 112 static void CloseWithPacketThreadFunc(CloseWithPacketArg* arg) { argument 113 asocket* s = create_local_socket(arg->socket_fd); 115 arg->bytes_written = 0; 119 arg->bytes_written += p->len; 127 asocket* cause_close_s = create_local_socket(arg->cause_close_fd); 145 CloseWithPacketArg arg; local 146 arg.socket_fd = socket_fd[1]; 147 arg.cause_close_fd = cause_close_fd[1]; 152 &arg, &thread)); 169 CloseWithPacketArg arg; local 201 CloseWithPacketArg arg; local 232 CloseRdHupSocketThreadFunc(CloseRdHupSocketArg* arg) argument 254 CloseRdHupSocketArg arg; local [all...] |
H A D | fdevent.h | 44 void *arg; member in struct:fdevent 51 fdevent *fdevent_create(int fd, fd_func func, void *arg); 60 void fdevent_install(fdevent *fde, int fd, fd_func func, void *arg);
|
/system/core/liblog/tests/ |
H A D | benchmark_main.cpp | 61 int PrettyPrintInt(char* str, int len, unsigned int arg) argument 63 if (arg >= (1<<30) && arg % (1<<30) == 0) { 64 return snprintf(str, len, "%uGi", arg/(1<<30)); 65 } else if (arg >= (1<<20) && arg % (1<<20) == 0) { 66 return snprintf(str, len, "%uMi", arg/(1<<20)); 67 } else if (arg >= (1<<10) && arg % (1<<10) == 0) { 68 return snprintf(str, len, "%uKi", arg/( [all...] |
H A D | benchmark.h | 34 int PrettyPrintInt(char* str, int len, unsigned int arg); 65 BenchmarkWantsArgBase<T>* Arg(const char* arg_name, T arg) { argument 66 BenchmarkRegister(new BenchmarkWithArg<T>(name_, fn_arg_, arg_name, arg)); 71 virtual void RunFn(int) { printf("can't run arg benchmark %s without arg\n", Name()); } 78 BenchmarkWithArg(const char* name, void (*fn)(int, T), const char* arg_name, T arg) : argument 79 BenchmarkWantsArg<T>(name, fn), arg_(arg) { 110 BenchmarkWantsArg<int>* Arg(int arg) { argument 112 PrettyPrintInt(arg_name, sizeof(arg_name), arg); 113 BenchmarkRegister(new BenchmarkWithArg<int>(name_, fn_arg_, arg_name, arg)); 130 BenchmarkAddArg(::testing::Benchmark* b, const char* name, T arg) argument [all...] |
/system/extras/memcpy-perf/ |
H A D | graph_memcpy.py | 19 for arg in args.files: 20 f = open(arg) 29 line, = ax.plot(size, perf, '-', linewidth=0.2, label=arg)
|
/system/extras/simpleperf/ |
H A D | cmd_list.cpp | 76 for (auto& arg : args) { 77 if (type_map.find(arg) != type_map.end()) { 78 names.push_back(arg); 80 LOG(ERROR) << "unknown event type category: " << arg << ", try using \"help list\"";
|
/system/bt/osi/test/ |
H A D | reactor_test.cpp | 83 unregister_arg_t *arg = (unregister_arg_t *)context; local 84 reactor_unregister(arg->object); 85 reactor_stop(arg->reactor); 92 unregister_arg_t arg; local 93 arg.reactor = reactor; 94 arg.object = reactor_register(reactor, fd, &arg, unregister_cb, NULL);
|
/system/bt/vendor_libs/test_vendor_lib/scripts/ |
H A D | test_channel.py | 101 encoded_args = chr(args_size) + ''.join(chr(len(arg)) + arg for arg in args) 109 for arg in args: 110 arg.encode('utf-8') 116 for arg in args: 117 if len(arg) > 255: 193 device_list = [self._test_channel.discover_new_device(arg) for arg in \
|
/system/core/metricsd/ |
H A D | metrics_client.cc | 54 static int ParseInt(const char *arg) { argument 56 int value = strtol(arg, &endptr, 0); 58 fprintf(stderr, "metrics client: bad integer \"%s\"\n", arg); 64 static double ParseDouble(const char *arg) { argument 66 double value = strtod(arg, &endptr); 68 fprintf(stderr, "metrics client: bad double \"%s\"\n", arg);
|
/system/core/init/ |
H A D | init.h | 34 void handle_control_message(const std::string& msg, const std::string& arg);
|
/system/bt/vendor_libs/test_vendor_lib/src/ |
H A D | test_channel_transport.cc | 114 std::vector<uint8_t> arg; local 115 arg.resize(arg_size); 116 read(fd, &arg[0], arg_size); 117 args.push_back(std::string(arg.begin(), arg.end()));
|
/system/media/audio_utils/tests/ |
H A D | fifo_tests.cpp | 33 char *arg = argv[i]; local 34 if (arg[0] != '-') 36 switch (arg[1]) { 38 frameCount = atoi(&arg[2]); 41 maxFramesPerRead = atoi(&arg[2]); 44 maxFramesPerWrite = atoi(&arg[2]); 47 fprintf(stderr, "%s: unknown option %s\n", argv[0], arg);
|
/system/tools/aidl/ |
H A D | generate_java_binder.cpp | 291 for (const std::unique_ptr<AidlArgument>& arg : method.GetArguments()) { 293 new Variable(arg->GetType().GetLanguageType<Type>(), arg->GetName(), 294 arg->GetType().IsArray() ? 1 : 0)); 315 for (const std::unique_ptr<AidlArgument>& arg : method.GetArguments()) { 316 const Type* t = arg->GetType().GetLanguageType<Type>(); 318 v->dimension = arg->GetType().IsArray() ? 1 : 0; 322 if (arg->GetDirection() & AidlArgument::IN_DIR) { 326 if (!arg->GetType().IsArray()) { 368 for (const std::unique_ptr<AidlArgument>& arg [all...] |
/system/extras/procrank/ |
H A D | procrank.c | 199 int arg; local 211 for (arg = 1; arg < argc; arg++) { 212 if (!strcmp(argv[arg], "-v")) { compfn = &sort_by_vss; continue; } 213 if (!strcmp(argv[arg], "-r")) { compfn = &sort_by_rss; continue; } 214 if (!strcmp(argv[arg], "-p")) { compfn = &sort_by_pss; continue; } 215 if (!strcmp(argv[arg], "-u")) { compfn = &sort_by_uss; continue; } 216 if (!strcmp(argv[arg], "-s")) { compfn = &sort_by_swap; continue; } 217 if (!strcmp(argv[arg], " [all...] |
/system/core/fastboot/ |
H A D | usbtest.cpp | 154 char *arg = *argv++; local 155 if(!strncmp(arg,"count=",6)) { 156 arg_count = atoi(arg + 6); 157 } else if(!strncmp(arg,"size=",5)) { 158 arg_size = atoi(arg + 5); 160 fprintf(stderr,"unknown argument: %s\n", arg);
|