Searched refs:arg (Results 1 - 25 of 60) sorted by relevance

123

/system/extras/tests/bionic/libc/bionic/
H A Dtest_pthread_create.c6 thread1_func(void* arg) argument
8 printf("Thread 1 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid());
13 thread2_func(void* arg) argument
15 printf("thread 2 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid());
H A Dtest_pthread_cond.c13 thread1_func(void* arg) argument
15 printf("Thread 1 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid());
25 thread2_func(void* arg) argument
27 printf("Thread 2 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid());
38 thread3_func(void* arg) argument
40 printf("Thread 3 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid());
55 thread4_func(void* arg) argument
[all...]
/system/extras/tests/bionic/libc/common/
H A Dtest_pthread_cleanup_push.c42 cleanup1( void* arg )
44 if ((unsigned)arg != MAGIC1)
51 cleanup2( void* arg )
53 if ((unsigned)arg != MAGIC2) {
60 cleanup3( void* arg )
62 if ((unsigned)arg != MAGIC3)
70 thread1_func( void* arg )
76 if (arg != NULL)
H A Dtest_pthread_join.c33 thread1_func(void* arg) argument
41 thread2_func(void* arg) argument
43 pthread_t t1 = (pthread_t)arg;
53 thread3_func(void* arg) argument
55 pthread_t t1 = (pthread_t)arg;
H A Dtest_pthread_once.c52 thread_function(void* arg) argument
57 printf ("thread %ld: global == %d\n", (long int) arg, global_count);
H A Dtest_clock.c26 void *cpu_hog(void *arg) argument
H A Dtest_pthread_getcpuclockid.c39 thread_func( void* arg )
56 ts.tv_nsec = 300000000 + ((int)arg)*50000000;
H A Dtest_sem_post.c45 thread_func(void* arg) argument
47 sem_t *psem = (sem_t *)arg;
/system/core/include/cutils/
H A Dandroid_reboot.h31 int android_reboot(int cmd, int flags, char *arg);
H A Dmspace.h108 const void *userptr, size_t userlen, void *arg), void *harg);
122 void(*handler)(void *start, void *end, void *arg), void *harg);
/system/core/adb/
H A Dfdevent.h39 fdevent *fdevent_create(int fd, fd_func func, void *arg);
48 void fdevent_install(fdevent *fde, int fd, fd_func func, void *arg);
79 void *arg; member in struct:fdevent
/system/extras/tests/bionic/libc/other/
H A Dtest_thread_max.c34 thread_func( void* arg )
36 fprintf(stderr, "thread %ld\n", (long)arg );
H A Dtest_jpeg.c251 const char* arg = &argv[1][1]; local
252 switch (arg[0]) {
254 if (arg[1] == 0) {
257 arg = argv[2];
261 arg += 1;
263 repeat_count = strtol(arg, NULL, 10);
274 if (arg[1] == 0) {
277 arg = argv[2];
281 arg += 1;
283 dct_method = strtol(arg, NUL
[all...]
/system/core/libnl_2/
H A Dhandlers.c58 nl_recvmsg_msg_cb_t func, void *arg)
61 cb->cb_args[type] = arg;
69 nl_recvmsg_err_cb_t func, void *arg)
72 cb->cb_err_arg = arg;
57 nl_cb_set(struct nl_cb *cb, enum nl_cb_type type, enum nl_cb_kind kind, \ nl_recvmsg_msg_cb_t func, void *arg) argument
68 nl_cb_err(struct nl_cb *cb, enum nl_cb_kind kind, \ nl_recvmsg_err_cb_t func, void *arg) argument
/system/core/toolbox/
H A Dtouch.c26 const char *arg = argv[i]+1; local
27 while (arg[0]) {
28 switch (arg[0]) {
46 arg++;
H A Ddd.c1065 static const struct arg { struct
1092 struct arg *ap, tmp;
1093 char *oper, *arg; local
1098 if ((arg = strchr(oper, '=')) == NULL) {
1103 *arg++ = '\0';
1104 if (!*arg) {
1110 if (!(ap = (struct arg *)bsearch(&tmp, args,
1111 sizeof(args)/sizeof(struct arg), sizeof(struct arg),
1125 ap->f(arg);
1194 strsuftoll(const char* name, const char* arg, int def, unsigned int max) argument
1204 f_bs(char *arg) argument
1211 f_cbs(char *arg) argument
1218 f_count(char *arg) argument
1227 f_files(char *arg) argument
1236 f_ibs(char *arg) argument
1244 f_if(char *arg) argument
1251 f_obs(char *arg) argument
1259 f_of(char *arg) argument
1266 f_seek(char *arg) argument
1273 f_skip(char *arg) argument
1280 f_progress(char *arg) argument
1290 f_conv(char *arg) argument
1326 f_conv(char *arg) argument
[all...]
/system/extras/procrank/
H A Dprocrank.c133 int arg; local
140 for (arg = 1; arg < argc; arg++) {
141 if (!strcmp(argv[arg], "-v")) { compfn = &sort_by_vss; continue; }
142 if (!strcmp(argv[arg], "-r")) { compfn = &sort_by_rss; continue; }
143 if (!strcmp(argv[arg], "-p")) { compfn = &sort_by_pss; continue; }
144 if (!strcmp(argv[arg], "-u")) { compfn = &sort_by_uss; continue; }
145 if (!strcmp(argv[arg], "-w")) { ws = WS_ONLY; continue; }
146 if (!strcmp(argv[arg], "
[all...]
/system/extras/tests/memtest/
H A Dthumb.cpp8 extern "C" _Unwind_Reason_Code trace_function(_Unwind_Context *context, void *arg) argument
/system/core/libsysutils/src/
H A DSocketClient.cpp45 const char* arg; local
52 arg = strerror(errno);
55 arg = NULL;
58 len = snprintf(tmp, sizeof tmp, fmt, code, msg, arg);
61 snprintf(buf, len+1, fmt, code, msg, arg);
/system/core/mkbootimg/
H A Dmkbootimg.c125 char *arg = argv[0]; local
132 if(!strcmp(arg, "--output") || !strcmp(arg, "-o")) {
134 } else if(!strcmp(arg, "--kernel")) {
136 } else if(!strcmp(arg, "--ramdisk")) {
138 } else if(!strcmp(arg, "--second")) {
140 } else if(!strcmp(arg, "--cmdline")) {
142 } else if(!strcmp(arg, "--base")) {
148 } else if(!strcmp(arg, "--board")) {
150 } else if(!strcmp(arg,"
[all...]
/system/media/wilhelm/tests/sandbox/
H A Dplaybq.c122 char *arg = argv[i]; local
123 if (arg[0] != '-')
125 if (!strcmp(arg, "-b")) {
127 } else if (!strcmp(arg, "-l")) {
129 } else if (!strcmp(arg, "-8")) {
131 } else if (!strncmp(arg, "-f", 2)) {
132 framesPerBuffer = atoi(&arg[2]);
133 } else if (!strncmp(arg, "-n", 2)) {
134 numBuffers = atoi(&arg[2]);
135 } else if (!strncmp(arg, "
[all...]
/system/core/fastboot/
H A Dusbtest.c154 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);
/system/netd/
H A DSoftapController.h36 int addParam(int pos, const char *cmd, const char *arg);
/system/media/wilhelm/tests/examples/
H A DslesTestFeedback.cpp179 char *arg = argv[i]; local
180 if (arg[0] != '-') {
184 if (!strncmp(arg, "-r", 2)) {
185 rxBufCount = atoi(&arg[2]);
191 } else if (!strncmp(arg, "-t", 2)) {
192 txBufCount = atoi(&arg[2]);
198 } else if (!strncmp(arg, "-f", 2)) {
199 bufSizeInFrames = atoi(&arg[2]);
205 } else if (!strncmp(arg, "-c", 2)) {
206 channels = atoi(&arg[
[all...]
/system/core/libcutils/
H A Dandroid_reboot.c104 int android_reboot(int cmd, int flags, char *arg) argument
125 LINUX_REBOOT_CMD_RESTART2, arg);

Completed in 623 milliseconds

123