/system/netd/include/ |
H A D | Permission.h | 52 inline Permission stringToPermission(const char* arg) { argument 53 if (!strcmp(arg, "NETWORK")) { 56 if (!strcmp(arg, "SYSTEM")) {
|
/system/core/debuggerd/crasher/ |
H A D | crasher.cpp | 63 int do_action(const char* arg); 105 const char* arg = reinterpret_cast<const char*>(raw_arg); local 106 return reinterpret_cast<void*>(static_cast<uintptr_t>(do_action(arg))); 109 noinline int do_action_on_thread(const char* arg) { argument 111 pthread_create(&t, nullptr, thread_callback, const_cast<char*>(arg)); 206 noinline int do_action(const char* arg) { argument 208 if (!strncmp(arg, "wait-", strlen("wait-"))) { 211 return do_action(arg + strlen("wait-")); 212 } else if (!strncmp(arg, "exhaustfd-", strlen("exhaustfd-"))) { 217 return do_action(arg [all...] |
/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/libmemunreachable/ |
H A D | bionic.h | 30 void (*callback)(uintptr_t base, size_t size, void* arg), void* arg);
|
/system/libufdt/utils/src/ |
H A D | mkdtimg_create.c | 31 const char *arg = argv[i]; local 32 char c = arg[0]; 41 static int parse_arg(char **option, char **value, char *arg) { argument 42 if (arg[0] != '-') { 49 if (arg[1] != '-') { 53 return parse_option(option, value, arg + 2); 63 char *arg = argv[i]; local 65 if (parse_arg(&option, &value, arg) != 0) { 66 fprintf(stderr, "Wrong syntax: %s\n", arg); 72 if (dt_image_writer_add_entry(writer, arg) ! [all...] |
/system/core/libbacktrace/ |
H A D | backtrace_testlib.cpp | 74 GetContextArg* arg = (GetContextArg*)data; local 75 unw_getcontext(arg->unw_context); 77 while (*arg->exit_flag == 0) { 82 GetContextArg arg; local 83 arg.unw_context = unw_context; 84 arg.exit_flag = exit_flag; 85 test_level_one(1, 2, 3, 4, GetContextAndExit, &arg);
|
/system/core/libcutils/ |
H A D | android_reboot.c | 24 int android_reboot(int cmd, int flags __unused, const char* arg) { argument 42 if (arg) { 43 ret = asprintf(&prop_value, "%s,%s", restart_cmd, arg);
|
H A D | dlmalloc_stubs.c | 29 void* arg UNUSED)
|
/system/core/include/cutils/ |
H A D | android_reboot.h | 40 int android_reboot(int cmd, int flags, const char *arg);
|
/system/core/libcutils/include/cutils/ |
H A D | android_reboot.h | 40 int android_reboot(int cmd, int flags, const char *arg);
|
/system/core/libcutils/include_vndk/cutils/ |
H A D | android_reboot.h | 40 int android_reboot(int cmd, int flags, const char *arg);
|
/system/core/liblog/tests/ |
H A D | benchmark_main.cpp | 61 int PrettyPrintInt(char* str, int len, unsigned int arg) { argument 62 if (arg >= (1 << 30) && arg % (1 << 30) == 0) { 63 return snprintf(str, len, "%uGi", arg / (1 << 30)); 64 } else if (arg >= (1 << 20) && arg % (1 << 20) == 0) { 65 return snprintf(str, len, "%uMi", arg / (1 << 20)); 66 } else if (arg >= (1 << 10) && arg % (1 << 10) == 0) { 67 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/core/adb/ |
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);
|
H A D | socket_test.cpp | 117 static void CloseWithPacketThreadFunc(CloseWithPacketArg* arg) { argument 118 asocket* s = create_local_socket(arg->socket_fd); 120 arg->bytes_written = 0; 124 arg->bytes_written += p->len; 132 asocket* cause_close_s = create_local_socket(arg->cause_close_fd); 150 CloseWithPacketArg arg; local 151 arg.socket_fd = socket_fd[1]; 152 arg.cause_close_fd = cause_close_fd[1]; 157 &arg, &thread)); 175 CloseWithPacketArg arg; local 209 CloseWithPacketArg arg; local 242 CloseRdHupSocketThreadFunc(CloseRdHupSocketArg* arg) argument 261 CloseRdHupSocketArg arg; local [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 | 77 for (auto& arg : args) { 78 if (type_map.find(arg) != type_map.end()) { 79 names.push_back(arg); 81 LOG(ERROR) << "unknown event type category: " << arg << ", try using \"help list\"";
|
/system/nvram/core/include/nvram/core/ |
H A D | logger.h | 61 #define NVRAM_STR(arg) #arg 62 #define NVRAM_STRINGIFY(arg) NVRAM_STR(arg)
|
/system/bt/osi/test/ |
H A D | reactor_test.cc | 77 unregister_arg_t* arg = (unregister_arg_t*)context; local 78 reactor_unregister(arg->object); 79 reactor_stop(arg->reactor); 86 unregister_arg_t arg; local 87 arg.reactor = reactor; 88 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/init/ |
H A D | init.h | 27 void handle_control_message(const std::string& msg, const std::string& arg);
|
/system/chre/host/msm/daemon/ |
H A D | chre_daemon.cc | 69 static void *chre_message_to_host_thread(void *arg); 70 static void *chre_monitor_thread(void *arg); 71 static void *chre_reverse_monitor_thread(void *arg); 75 void *arg); 126 static void *chre_message_to_host_thread(void *arg) { argument 131 auto *server = static_cast<::android::chre::SocketServer *>(arg); 173 static void *chre_monitor_thread(void *arg) { argument 174 (void) arg; 193 static void *chre_reverse_monitor_thread(void *arg) { argument 195 (struct reverse_monitor_thread_data *) arg; 243 start_thread(pthread_t *thread_handle, thread_entry_point_f *thread_entry, void *arg) argument [all...] |
/system/update_engine/ |
H A D | fake_p2p_manager_configuration.h | 55 for (std::string& arg : formatted_command) { 56 base::ReplaceSubstringsAfterOffset(&arg, 0, "{file_id}", file_id); 57 base::ReplaceSubstringsAfterOffset(&arg, 0, "{minsize}",
|
/system/bt/vendor_libs/test_vendor_lib/src/ |
H A D | test_channel_transport.cc | 124 vector<uint8_t> arg; local 125 arg.resize(arg_size); 126 read(fd, &arg[0], arg_size); 127 args.push_back(std::string(arg.begin(), arg.end()));
|
/system/security/keystore/ |
H A D | keystore_aidl_hidl_marshalling_utils.h | 37 inline android::status_t nullable(Fn fn, const NullOr<Arg>& arg, android::Parcel* out) { argument 38 if (!arg.isOk()) { 44 return fn(arg.value(), out); 47 inline android::status_t nullable(Fn fn, Arg&& arg, android::Parcel* out) { argument 51 return fn(std::forward<Arg>(arg), out);
|