Searched refs:nn (Results 1 - 13 of 13) sorted by relevance

/system/extras/tests/bionic/libc/common/
H A Dtest_pthread_once.c66 int nn; local
68 for (nn = 0; nn < N_THREADS; nn++) {
69 if (pthread_create( &threads[nn], NULL, thread_function, (void*)(long int)nn) < 0) {
70 printf("creation of thread %d failed\n", nn);
75 for (nn = 0; nn < N_THREADS; nn
[all...]
H A Dtest_sem_post.c60 int nn, value; local
69 for ( nn = 0; nn < MAX_THREADS; nn++ ) {
70 if ( pthread_create( &t[nn], NULL, thread_func, &semaphore ) < 0 ) {
71 printf("Could not create thread %d: %s\n", nn+1, strerror(errno) );
77 for (nn = 0; nn < MAX_THREADS; nn++) {
81 for ( nn
[all...]
H A Dtest_cpu_set.c70 int nn, nnMax = CPU_SETSIZE; local
81 for (nn = 0; nn < nnMax; nn++)
82 F(CPU_ISSET(nn, set));
85 for (nn = 0; nn < nnMax; nn++) {
87 CPU_SET(nn, set);
90 T(CPU_ISSET(mm, set) == (mm == nn));
100 TEST_INT_EQ(CPU_COUNT(set), nn+1); local
121 TEST_INT_EQ(CPU_COUNT(set), nn); local
132 int nn, nnMax; local
162 TEST_INT_EQ(CPU_COUNT_S(setsize, set), nn+1); local
183 TEST_INT_EQ(CPU_COUNT_S(setsize, set), nn); local
[all...]
H A Dtest_pthread_getcpuclockid.c71 int nn; local
78 for (nn = 0; nn < MAX_THREADS; nn++) {
79 pthread_create( &threads[nn], &attr, thread_func, (void*)nn );
81 for (nn = 0; nn < MAX_THREADS; nn++) {
83 pthread_join( threads[nn],
[all...]
H A Dtest_semaphore.c114 int nn; local
121 for ( nn = 0; nn < 3; nn++ ) {
122 if ( pthread_create( &t[nn], NULL, thread_routines[nn], NULL ) < 0 ) {
123 printf("could not create thread %d: %s\n", nn+1, strerror(errno) );
H A Dbench_pthread.c117 int nn; local
119 for (nn = min_index; nn <= max_index; nn++) {
120 total += stats[nn];
129 for (nn = min_index; nn <= max_index; nn++) {
130 printf(" %lld", (long long)stats[nn]);
/system/core/adb/
H A Dconsole.c29 int fd, nn; local
37 for (nn = 1; nn < argc; nn++) {
38 adb_write( fd, argv[nn], strlen(argv[nn]) );
39 adb_write( fd, (nn == argc-1) ? "\n" : " ", 1 );
H A Dutils.c80 int nn; local
83 nn = vsnprintf( buff, avail, format, args);
86 if (nn < 0) {
91 nn = avail;
93 else if (nn > avail) {
94 nn = avail;
97 buff += nn;
H A Dtransport_local.c341 int nn; local
343 for (nn = 0; nn < ADB_LOCAL_TRANSPORT_MAX; nn++) {
344 if (local_transports[nn] == t) {
345 local_transports[nn] = NULL;
H A Dsysdeps_win32.c160 int nn; local
170 for (nn = 0; nn < WIN32_MAX_FHS; nn++) {
171 if ( _win32_fhs[nn].clazz == NULL) {
172 f = &_win32_fhs[nn];
836 int nn, len2 = len;
840 for (nn = 0; nn < len2; nn
1678 int nn; local
[all...]
H A Dtransport.c41 int nn, len2 = len; local
48 for (nn = 0; nn < len2; nn++) {
49 sprintf(pb, "%02x", ptr[nn]);
54 for (nn = 0; nn < len2; nn++) {
55 int c = ptr[nn];
/system/extras/tests/bionic/libc/bionic/
H A Dtest_cond.c77 int nn; local
80 for (nn = 0; nn < count; nn++) {
81 printf("main: creating thread %d\n", nn+1);
82 if (pthread_create( &t[nn], NULL, thread_routines[nn], NULL) < 0) {
83 printf("main: could not create thread %d: %s\n", nn+1, strerror(errno));
88 for (nn = 0; nn < coun
[all...]
/system/core/run-as/
H A Dpackage.c189 int nn; local
201 for (nn = 1; dataPath[nn] != '\0'; nn++)
206 if (dataPath[nn] != '/')
210 if (dataPath[nn+1] == '\0') {
215 if (nn >= (int)(sizeof subpath)) {
221 if (nn >= 3 &&
222 dataPath[nn-3] == '/' &&
223 dataPath[nn
[all...]

Completed in 156 milliseconds