/system/netd/ |
H A D | ndc.c | 10 * Unless required by applicable law or agreed to in writing, software 84 printf("[Connected to Netd]\n"); 88 struct timeval to; local 91 to.tv_sec = 10; 92 to.tv_usec = 0; 97 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { 109 fprintf(stderr, "Lost connection to Netd - did it crash?\n");
|
/system/vold/ |
H A D | vdc.c | 10 * Unless required by applicable law or agreed to in writing, software 88 printf("[Connected to Vold]\n"); 92 struct timeval to; local 95 to.tv_sec = 10; 96 to.tv_usec = 0; 101 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { 113 fprintf(stderr, "Lost connection to Vold - did it crash?\n");
|
/system/core/libpixelflinger/tinyutils/ |
H A D | VectorImpl.cpp | 313 void* to = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; variable 315 _do_move_forward(to, from, s); 363 void* to = reinterpret_cast<uint8_t *>(array) + where*mItemSize; 364 _do_destroy(to, amount); 368 _do_move_backward(to, from, s);
|
/system/core/libzipfile/ |
H A D | zipfile.c | 96 // Use the undocumented "negative window bits" feature to tell zlib 132 dump_zipfile(FILE* to, zipfile_t file) argument 138 fprintf(to, "entryCount=%d\n", zip->entryCount); 140 fprintf(to, " file \""); 141 fwrite(entry->fileName, entry->fileNameLength, 1, to); 142 fprintf(to, "\"\n");
|
/system/core/nexus/ |
H A D | WifiScanner.cpp | 10 * Unless required by applicable law or agreed to in writing, software 61 LOGE("Error writing to control pipe (%s)", strerror(errno)); 67 LOGE("Error joining to scanner thread (%s)", strerror(errno)); 81 struct timeval to; local 84 to.tv_usec = 0; 85 to.tv_sec = mPeriod; 94 if ((rc = select(mCtrlPipe[0] + 1, &read_fds, NULL, NULL, &to)) < 0) {
|
H A D | WifiStatusPoller.cpp | 10 * Unless required by applicable law or agreed to in writing, software 53 LOGE("Error writing to control pipe (%s)", strerror(errno)); 59 LOGE("Error joining to listener thread (%s)", strerror(errno)); 82 struct timeval to; local 88 to.tv_usec = 0; 89 to.tv_sec = mPollingInterval; 94 if ((rc = select(max + 1, &read_fds, NULL, NULL, &to)) < 0) {
|
H A D | nexctl.c | 10 * Unless required by applicable law or agreed to in writing, software 84 printf("[Connected to Nexus]\n"); 88 struct timeval to; local 91 to.tv_sec = 10; 92 to.tv_usec = 0; 97 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { 109 fprintf(stderr, "Lost connection to Nexus - did it crash?\n");
|
/system/core/sh/ |
H A D | mystring.c | 7 * This code is derived from software contributed to Berkeley by 19 * may be used to endorse or promote products derived from this software 48 * scopy(from, to) Copy a string. 49 * scopyn(from, to, n) Like scopy, but checks for overflow. 50 * number(s) Convert a string of digits to an integer. 73 * scopyn - copy a string from "from" to "to", truncating the string 75 * truncation is performed. "Size" is the size of "to". 79 scopyn(const char *from, char *to, int size) argument 83 if ((*to [all...] |
H A D | redir.c | 7 * This code is derived from software contributed to Berkeley by 19 * may be used to endorse or promote products derived from this software 89 * background commands, where we want to redirect fd0 to /dev/null only 114 char memory[10]; /* file descriptors to write to memory */ 120 /* We don't have to worry about REDIR_VFORK here, as 134 continue; /* redirect from/to same file descriptor */ 252 * Handle here documents. Normally we fork off a process to write the 253 * data to 377 copyfd(int from, int to) argument [all...] |
/system/media/wilhelm/tests/sandbox/ |
H A D | playbq.c | 10 * Unless required by applicable law or agreed to in writing, software 37 unsigned which; // which buffer to use next 40 SLuint32 byteOrder; // desired to use for PCM buffers 45 static void swab(const void *from, void *to, ssize_t n) argument 47 // from and to as char pointers 49 char *to_ch = (char *) to; 60 // squeeze 16-bit signed PCM samples down to 8-bit unsigned PCM samples by truncation; no dithering 61 static void squeeze(const short *from, unsigned char *to, ssize_t n) argument 65 *to++ = (*from++ + 32768) >> 8; 111 fprintf(stderr, "Unable to determin [all...] |