/system/core/toolbox/ |
D | lsusb.c | 46 printf(" Device Descriptor\n"); in lsusb_parse_device_descriptor() 47 printf("\tbcdUSB: %04x\n", letoh16(desc->bcdUSB)); in lsusb_parse_device_descriptor() 48 printf("\tbDeviceClass: %02x\n", desc->bDeviceClass); in lsusb_parse_device_descriptor() 49 printf("\tbDeviceSubClass: %02x\n", desc->bDeviceSubClass); in lsusb_parse_device_descriptor() 50 printf("\tbDeviceProtocol: %02x\n", desc->bDeviceProtocol); in lsusb_parse_device_descriptor() 51 printf("\tbMaxPacketSize0: %02x\n", desc->bMaxPacketSize0); in lsusb_parse_device_descriptor() 52 printf("\tidVendor: %04x\n", letoh16(desc->idVendor)); in lsusb_parse_device_descriptor() 53 printf("\tidProduct: %04x\n", letoh16(desc->idProduct)); in lsusb_parse_device_descriptor() 54 printf("\tbcdDevice: %04x\n", letoh16(desc->bcdDevice)); in lsusb_parse_device_descriptor() 55 printf("\tiManufacturer: %s\n", get_str(dev, desc->iManufacturer)); in lsusb_parse_device_descriptor() [all …]
|
D | id.c | 17 printf("%d(%s)", uid, pw->pw_name); in print_uid() 19 printf("%d",uid); in print_uid() 27 printf("%d(%s)", gid, gr->gr_name); in print_gid() 29 printf("%d",gid); in print_gid() 44 printf("uid="); in id_main() 46 printf(" gid="); in id_main() 49 printf(" groups="); in id_main() 52 printf(","); in id_main() 58 printf(" context=%s", secctx); in id_main() 62 printf("\n"); in id_main()
|
D | nandread.c | 132 printf("size: %u\n", mtdinfo.size); in nandread_main() 133 printf("erase size: %u\n", mtdinfo.erasesize); in nandread_main() 134 printf("write size: %u\n", mtdinfo.writesize); in nandread_main() 135 printf("oob size: %u\n", mtdinfo.oobsize); in nandread_main() 157 printf("ecc bytes: %u\n", ecclayout.eccbytes); in nandread_main() 158 printf("oobavail: %u\n", ecclayout.oobavail); in nandread_main() 161 printf("oobavail, %d > image spare size, %d\n", ecclayout.oobavail, spare_size); in nandread_main() 172 printf("initial ecc corrected: %u\n", initial_ecc.corrected); in nandread_main() 173 printf("initial ecc failed: %u\n", initial_ecc.failed); in nandread_main() 174 printf("initial ecc badblocks: %u\n", initial_ecc.badblocks); in nandread_main() [all …]
|
D | renice.c | 51 printf("pid %d's priority: %d\n", pid, getpriority(PRIO_PROCESS, pid)); in print_prio() 53 printf("scheduling class: "); in print_prio() 57 printf("FIFO\n"); in print_prio() 60 printf("RR\n"); in print_prio() 63 printf("Normal\n"); in print_prio() 69 printf("Unknown\n"); in print_prio() 73 printf("RT prio: %d (of %d to %d)\n", sp.sched_priority, in print_prio()
|
D | df.c | 21 printf("%4lld%c", n, unit); in printsize() 33 printf("%-20s ", s); in df() 35 printf(" "); in df() 37 printf(" "); in df() 39 printf(" %d\n", (int) st.f_bsize); in df() 44 printf("Filesystem Size Used Free Blksize\n"); in df_main()
|
/system/extras/tests/bionic/libc/common/ |
D | test_semaphore.c | 52 printf( "thread 1: waiting for semaphore\n" ); in _thread1() 54 printf( "thread 1: could not wait for semaphore: %s\n", strerror(errno) ); in _thread1() 57 printf( "thread 1: got the semaphore ! sleeping for 2 seconds\n" ); in _thread1() 59 printf( "thread 1: awake !! posting semaphore\n" ); in _thread1() 61 printf( "thread 2: could not post semaphore: %s\n", strerror(errno) ); in _thread1() 63 printf( "thread 1: quitting\n" ); in _thread1() 70 printf( "thread 2: sleeping for 1 second\n" ); in _thread2() 72 printf( "thread 2: awake !! waiting for semaphore\n" ); in _thread2() 74 printf( "thread 2: could not wait for semaphore: %s\n", strerror(errno) ); in _thread2() 77 printf( "thread 2: got the semaphore ! sleeping for 2 seconds\n" ); in _thread2() [all …]
|
D | test_gethostbyname.c | 47 printf("gethostbyname(%s) returned NULL !!\n", hostname); in main() 50 printf( "gethostbyname(%s) returned:\n", hostname); in main() 51 printf( " name: %s\n", hent->h_name ); in main() 52 printf( " aliases:" ); in main() 54 printf( " %s", hent->h_aliases[i] ); in main() 55 printf( "\n" ); in main() 56 printf( " address type: " ); in main() 58 case AF_INET: printf( "AF_INET\n"); break; in main() 59 case AF_INET6: printf( "AF_INET6\n"); break; in main() 60 default: printf("UNKNOWN (%d)\n", hent->h_addrtype); in main() [all …]
|
D | test_udp.c | 28 printf("usage: %s [options]\n", PROGNAME); in usage() 29 printf("options:\n"); in usage() 30 printf(" -p<port> use specific port (default %d)\n", DEFAULT_PORT); in usage() 31 printf(" -a<inet> use specific IP address\n"); in usage() 32 printf(" -s run server (default is client)\n"); in usage() 87 printf("UDP server listening on %s:%d\n", inet_ntoa(si_me.sin_addr), udpPort); in main() 91 printf("Received packet from %s:%d\nData: %s\n\n", in main() 95 printf("UDP server closing\n"); in main() 108 printf("UDP client sending packets to %s:%d\n", inet_ntoa(si_other.sin_addr), udpPort); in main() 111 printf("Sending packet %d\n", i); in main() [all …]
|
D | test_drand48.c | 32 printf( "%s: ", #value); \ 34 printf("KO: %ld (%ld expected)\n", _val, _expected); \ 37 printf("%ld (ok)\n", _expected); \ 45 printf( "%s: ", #value); \ 47 printf("KO: %.12g (%.12g expected)\n", _val, _expected); \ 50 printf("%.12g (ok)\n", _expected); \ 65 printf(" l: %li\n", l); in main() 66 printf(" f: %g\n", (double) f); in main() 67 printf(" d: %g\n", d); in main()
|
D | test_sem_post.c | 49 printf("thread %p waiting\n", me); in thread_func() 51 printf("thread %p exiting\n", me); in thread_func() 65 printf( "Could not initialize semaphore: %s\n", strerror(errno) ); in main() 71 printf("Could not create thread %d: %s\n", nn+1, strerror(errno) ); in main() 85 printf("Thread %p joined but returned %p\n", (void*)t[nn], result); in main() 90 printf("Could not get semaphore value: %s\n", strerror(errno)); in main() 94 printf("Error: Semaphore value = %d\n", value); in main()
|
D | test_tm_zone.c | 45 printf( "TZ set to '%s'\n", tz ); in main() 47 printf( "TZ is not defined\n" ); in main() 50 …printf( "localtime_r() returns timezone abbreviation '%s'\n", tm->TM_ZONE ? tm->TM_ZONE : "<NULL P… in main() 51 printf( "tzname[0] is '%s'\n", tzname[0] ? tzname[0] : "<NULL POINTER>" ); in main() 52 printf( "tzname[1] is '%s'\n", tzname[1] ? tzname[1] : "<NULL POINTER>" ); in main()
|
/system/extras/tests/bionic/libc/bionic/ |
D | test_pthread_cond.c | 15 printf("Thread 1 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid()); in thread1_func() 16 printf("1 waiting for cond1\n"); in thread1_func() 20 printf("Thread 1 done.\n"); in thread1_func() 27 printf("Thread 2 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid()); in thread2_func() 28 printf("2 waiting for cond2\n"); in thread2_func() 33 printf("Thread 2 done.\n"); in thread2_func() 40 printf("Thread 3 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid()); in thread3_func() 41 printf("3 waiting for cond1\n"); in thread3_func() 45 printf("3 Sleeping\n"); in thread3_func() 47 printf("3 signal cond2\n"); in thread3_func() [all …]
|
D | test_cond.c | 41 printf("1: obtaining mutex\n"); in _thread1() 43 printf("1: waiting on condition variable\n"); in _thread1() 45 printf("1: releasing mutex\n"); in _thread1() 47 printf("1: exiting\n"); in _thread1() 55 printf("2: obtaining mutex\n"); in _thread2() 57 printf("2: signaling\n"); in _thread2() 59 printf("2: releasing mutex\n"); in _thread2() 63 printf("2: exiting\n"); in _thread2() 81 printf("main: creating thread %d\n", nn+1); in main() 83 printf("main: could not create thread %d: %s\n", nn+1, strerror(errno)); in main() [all …]
|
/system/bluetooth/tools/ |
D | pipetest.c | 28 if (events & POLLIN) printf("POLLIN "); in print_events() 29 if (events & POLLPRI) printf("POLLPRI "); in print_events() 30 if (events & POLLOUT) printf("POLLOUT "); in print_events() 31 if (events & POLLERR) printf("POLLERR "); in print_events() 32 if (events & POLLHUP) printf("POLLHUP "); in print_events() 33 if (events & POLLNVAL) printf("POLLNVAL "); in print_events() 34 printf("\n"); in print_events() 39 printf("%d: socketpair()\n", gettid()); in _socketpair() 41 printf("%d: socketpair() = %d\n", gettid(), ret); in _socketpair() 42 if (ret) printf("\terr %d (%s)\n", errno, strerror(errno)); in _socketpair() [all …]
|
D | asocket_test.c | 70 if (events & POLLIN) printf("POLLIN "); in print_events() 71 if (events & POLLPRI) printf("POLLPRI "); in print_events() 72 if (events & POLLOUT) printf("POLLOUT "); in print_events() 73 if (events & POLLERR) printf("POLLERR "); in print_events() 74 if (events & POLLHUP) printf("POLLHUP "); in print_events() 75 if (events & POLLNVAL) printf("POLLNVAL "); in print_events() 76 printf("\n"); in print_events() 82 printf("%d ", ufds[i].fd); in print_fds() 119 printf("%d: socket()\n", gettid()); in _socket() 121 printf("%d: socket() = %d\n", gettid(), ret); in _socket() [all …]
|
D | sock_shutdown_test.c | 101 printf("%d: socket()\n", gettid()); in _socket() 103 printf("%d: socket() = %d\n", gettid(), ret); in _socket() 104 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno)); in _socket() 112 printf("%d: close(%d)\n", gettid(), fd); in _close() 114 printf("%d: close(%d) = %d\n", gettid(), fd, ret); in _close() 115 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno)); in _close() 149 printf("%d: bind(%d)\n", gettid(), fd); in _bind() 151 printf("%d: bind(%d) = %d\n", gettid(), fd, ret); in _bind() 152 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno)); in _bind() 160 printf("%d: listen(%d)\n", gettid(), fd); in _listen() [all …]
|
D | socktest.c | 69 if (events & POLLIN) printf("POLLIN "); in print_events() 70 if (events & POLLPRI) printf("POLLPRI "); in print_events() 71 if (events & POLLOUT) printf("POLLOUT "); in print_events() 72 if (events & POLLERR) printf("POLLERR "); in print_events() 73 if (events & POLLHUP) printf("POLLHUP "); in print_events() 74 if (events & POLLNVAL) printf("POLLNVAL "); in print_events() 75 printf("\n"); in print_events() 81 printf("%d ", ufds[i].fd); in print_fds() 118 printf("%ld: socket()\n", pthread_self()); in _socket() 120 printf("%ld: socket() = %d\n", pthread_self(), ret); in _socket() [all …]
|
D | bttest.c | 30 printf("= %d\n", ret); in do_enable() 37 printf("= %d\n", ret); in do_disable() 44 printf("= %d\n", ret); in do_is_enabled() 61 printf("Usage:\n"); in usage() 63 printf("\tbttest %s\n", function_table[i].name); in usage() 76 printf("%s\n", function_table[i].name); in main()
|
/system/bluetooth/brcm_patchram_plus/ |
D | brcm_patchram_plus.c | 132 #undef printf 133 #define printf ALOGD macro 398 printf("Usage %s:\n", argv0); in usage() 399 printf("\t<-d> to print a debug log\n"); in usage() 400 printf("\t<--patchram patchram_file>\n"); in usage() 401 printf("\t<--baudrate baud_rate>\n"); in usage() 402 printf("\t<--bd_addr bd_address>\n"); in usage() 403 printf("\t<--enable_lpm>\n"); in usage() 404 printf("\t<--enable_hci>\n"); in usage() 405 printf("\t<--use_baudrate_for_download> - Uses the\n"); in usage() [all …]
|
/system/extras/tests/bionic/libc/other/ |
D | test_aligned.c | 17 printf( "read4: offset=%d value=%08x: ", o, val ); in read4() 23 printf( "FAIL (%08x)\n", v2 ); in read4() 25 printf( "ok\n" ); in read4() 35 printf( "writ4: offset=%d value=%08x: ", o, val ); in writ4() 46 printf( "FAIL (%08x)\n", v2 ); in writ4() 48 printf( "ok\n" ); in writ4() 61 printf( "read2: offset=%d value=%08x: ", o, val ); in read2() 67 printf( "FAIL (%04x)\n", v2 ); in read2() 69 printf( "ok\n" ); in read2() 79 printf( "writ2: offset=%d value=%08x: ", o, val ); in writ2() [all …]
|
/system/extras/tests/memtest/ |
D | memtest.cpp | 72 printf( "Usage: %s <test> <options>\n" in usage() 156 printf("memcpy() performance test is running, please wait...\n"); in memcpy_test() 206 printf("%9s %9s %9s\n", "size", "MB/s", "MB/s (nc)"); in memcpy_test() 208 … printf("%9d %9ld %9ld\n", results[i].size, (long)results[i].res, (long)results[i+1].res); in memcpy_test() 211 printf("memcpy() validation test is running, please wait...\n"); in memcpy_test() 229 if (nb) printf("%d error(s) found\n", nb); in memcpy_test() 230 else printf("success!\n"); in memcpy_test() 244 printf("*** memcpy(%p,%p,%zd) destination != source\n",s,d,size); in validate_memcpy() 249 printf("*** memcpy(%p,%p,%zd) clobbered past end of destination!\n",s,d,size); in validate_memcpy() 254 printf("*** memcpy(%p,%p,%zd) clobbered before start of destination!\n",s,d,size); in validate_memcpy() [all …]
|
/system/core/libsync/ |
D | sync_test.c | 46 printf("thread %d wait %d failed: %s\n", sync_data->thread_no, in sync_thread() 49 printf("thread %d wait %d done\n", sync_data->thread_no, i); in sync_thread() 54 printf(" fence %s %d\n", info->name, info->status); in sync_thread() 59 printf(" pt %s %s %d %d.%06d", pt_info->obj_name, in sync_thread() 63 printf(" val=%d\n", *(uint32_t *)pt_info->driver_data); in sync_thread() 65 printf("\n"); in sync_thread() 97 printf("can't create sync pt %d: %s", val, strerror(errno)); in main() 101 printf("sync_data[%d].fd[%d] = %d;\n", i, j, fd); in main() 111 printf("can't merge sync pts %d and %d: %s\n", in main() 123 printf("press enter to inc to %d\n", i+1); in main() [all …]
|
/system/extras/tests/directiotest/ |
D | directiotest.c | 145 printf("%08x ", i); in dump_hex() 146 printf("%02x ", val); in dump_hex() 149 printf(" %-16s\n", ascii_buf); in dump_hex() 156 printf(" "); in dump_hex() 157 printf(" %-16s\n", ascii_buf); in dump_hex() 164 printf("Testing area %d/%d (%6.2f%% complete)\r", current, total, in update_progress() 182 printf("Usage: directiotest blkdev_path\n"); in main() 224 printf("Warning: Device too large for test variables\n"); in main() 225 printf("Entire device will not be tested\n"); in main() 231 printf("Starting test\n"); in main() [all …]
|
/system/core/libion/ |
D | ion_test.c | 37 printf("%s failed: %s\n", __func__, strerror(ret)); in _ion_alloc_test() 51 printf("%s failed: %s %p\n", __func__, strerror(ret), handle); in ion_alloc_test() 55 printf("ion alloc test: passed\n"); in ion_alloc_test() 77 printf("%s failed wrote %d read %d from mapped " in ion_map_test() 128 printf("share failed %s\n", strerror(errno)); in ion_share_test() 140 printf("master? [%10s] should be [master]\n", ptr); in ion_share_test() 141 printf("master sending msg 1\n"); in ion_share_test() 145 printf("master? [%10s] should be [child]\n", ptr); in ion_share_test() 149 printf("master->master? [%10s]\n", ptr); in ion_share_test() 175 printf("no cmsg rcvd in child"); in ion_share_test() [all …]
|
/system/extras/showmap/ |
D | showmap.c | 216 printf(" start end "); in print_header() 218 printf(" virtual shared shared private private\n"); in print_header() 221 printf(" addr addr "); in print_header() 223 printf(" size RSS PSS clean dirty clean dirty "); in print_header() 225 printf(" # "); in print_header() 227 printf("object\n"); in print_header() 233 printf("-------- -------- "); in print_divider() 235 printf("-------- -------- -------- -------- -------- -------- -------- "); in print_divider() 237 printf("---- "); in print_divider() 239 printf("------------------------------\n"); in print_divider() [all …]
|