/system/extras/tests/bionic/libc/common/ |
D | test_cpu_set.c | 70 int nn, nnMax = CPU_SETSIZE; in test_1() local 81 for (nn = 0; nn < nnMax; nn++) in test_1() 82 F(CPU_ISSET(nn, set)); in test_1() 85 for (nn = 0; nn < nnMax; nn++) { in test_1() 87 CPU_SET(nn, set); in test_1() 90 T(CPU_ISSET(mm, set) == (mm == nn)); in test_1() 92 CPU_CLR(nn, set); in test_1() 97 for (nn = 0; nn < nnMax; nn++) { in test_1() 99 CPU_SET(nn, set); in test_1() 100 TEST_INT_EQ(CPU_COUNT(set), nn+1); in test_1() [all …]
|
D | test_sem_post.c | 60 int nn, value; in main() local 69 for ( nn = 0; nn < MAX_THREADS; nn++ ) { in main() 70 if ( pthread_create( &t[nn], NULL, thread_func, &semaphore ) < 0 ) { in main() 71 printf("Could not create thread %d: %s\n", nn+1, strerror(errno) ); in main() 77 for (nn = 0; nn < MAX_THREADS; nn++) { in main() 81 for ( nn = 0; nn < MAX_THREADS; nn++) { in main() 83 pthread_join(t[nn], &result); in main() 84 if (result != (void*)t[nn]) { in main() 85 printf("Thread %p joined but returned %p\n", (void*)t[nn], result); in main()
|
D | test_pthread_once.c | 66 int nn; in main() local 68 for (nn = 0; nn < N_THREADS; nn++) { in main() 69 if (pthread_create( &threads[nn], NULL, thread_function, (void*)(long int)nn) < 0) { in main() 70 printf("creation of thread %d failed\n", nn); in main() 75 for (nn = 0; nn < N_THREADS; nn++) { in main() 76 if (pthread_join(threads[nn], NULL)) { in main() 77 printf("joining thread %d failed\n", nn); in main()
|
D | test_pthread_getcpuclockid.c | 71 int nn; in main() local 78 for (nn = 0; nn < MAX_THREADS; nn++) { in main() 79 pthread_create( &threads[nn], &attr, thread_func, (void*)nn ); in main() 81 for (nn = 0; nn < MAX_THREADS; nn++) { in main() 83 pthread_join( threads[nn], &dummy ); in main()
|
D | test_semaphore.c | 114 int nn; in main() local 121 for ( nn = 0; nn < 3; nn++ ) { in main() 122 if ( pthread_create( &t[nn], NULL, thread_routines[nn], NULL ) < 0 ) { in main() 123 printf("could not create thread %d: %s\n", nn+1, strerror(errno) ); in main()
|
D | bench_pthread.c | 117 int nn; in filter_stats() local 119 for (nn = min_index; nn <= max_index; nn++) { in filter_stats() 120 total += stats[nn]; in filter_stats() 129 for (nn = min_index; nn <= max_index; nn++) { in filter_stats() 130 printf(" %lld", (long long)stats[nn]); in filter_stats()
|
/system/extras/tests/bionic/libc/bionic/ |
D | test_cond.c | 77 int nn; in main() local 80 for (nn = 0; nn < count; nn++) { in main() 81 printf("main: creating thread %d\n", nn+1); in main() 82 if (pthread_create( &t[nn], NULL, thread_routines[nn], NULL) < 0) { in main() 83 printf("main: could not create thread %d: %s\n", nn+1, strerror(errno)); in main() 88 for (nn = 0; nn < count; nn++) { in main() 89 printf("main: joining thread %d\n", nn+1); in main() 90 if (pthread_join(t[nn], NULL)) { in main() 91 printf("main: could not join thread %d: %s\n", nn+1, strerror(errno)); in main()
|
/system/core/adb/ |
D | console.c | 29 int fd, nn; in adb_send_emulator_command() local 37 for (nn = 1; nn < argc; nn++) { in adb_send_emulator_command() 38 adb_write( fd, argv[nn], strlen(argv[nn]) ); in adb_send_emulator_command() 39 adb_write( fd, (nn == argc-1) ? "\n" : " ", 1 ); in adb_send_emulator_command()
|
D | utils.c | 80 int nn; in buff_add() local 83 nn = vsnprintf( buff, avail, format, args); in buff_add() 86 if (nn < 0) { in buff_add() 91 nn = avail; in buff_add() 93 else if (nn > avail) { in buff_add() 94 nn = avail; in buff_add() 97 buff += nn; in buff_add()
|
D | transport_local.c | 341 int nn; in remote_kick() local 343 for (nn = 0; nn < ADB_LOCAL_TRANSPORT_MAX; nn++) { in remote_kick() 344 if (local_transports[nn] == t) { in remote_kick() 345 local_transports[nn] = NULL; in remote_kick()
|
D | sysdeps_win32.c | 160 int nn; in _fh_alloc() local 170 for (nn = 0; nn < WIN32_MAX_FHS; nn++) { in _fh_alloc() 171 if ( _win32_fhs[nn].clazz == NULL) { in _fh_alloc() 172 f = &_win32_fhs[nn]; in _fh_alloc() 836 int nn, len2 = len; 840 for (nn = 0; nn < len2; nn++) 841 printf("%02x", ptr[nn]); 844 for (nn = 0; nn < len2; nn++) { 845 int c = ptr[nn]; 1678 int nn; in fdevent_process() local [all …]
|
D | transport.c | 41 int nn, len2 = len; in dump_hex() local 48 for (nn = 0; nn < len2; nn++) { in dump_hex() 49 sprintf(pb, "%02x", ptr[nn]); in dump_hex() 54 for (nn = 0; nn < len2; nn++) { in dump_hex() 55 int c = ptr[nn]; in dump_hex()
|
/system/core/run-as/ |
D | package.c | 189 int nn; in check_data_path() local 201 for (nn = 1; dataPath[nn] != '\0'; nn++) in check_data_path() 206 if (dataPath[nn] != '/') in check_data_path() 210 if (dataPath[nn+1] == '\0') { in check_data_path() 215 if (nn >= (int)(sizeof subpath)) { in check_data_path() 221 if (nn >= 3 && in check_data_path() 222 dataPath[nn-3] == '/' && in check_data_path() 223 dataPath[nn-2] == '.' && in check_data_path() 224 dataPath[nn-1] == '.') { in check_data_path() 230 memcpy(subpath, dataPath, nn); in check_data_path() [all …]
|