Searched refs:str (Results 26 - 49 of 49) sorted by last modified time

12

/system/core/toolbox/
H A Ddynarray.c69 void strlist_append_b( strlist_t *list, const void* str, size_t slen ) argument
72 memcpy(copy, str, slen);
77 void strlist_append_dup( strlist_t *list, const char *str) argument
79 strlist_append_b(list, str, strlen(str));
H A Ddynarray.h69 /* append a new string made of the first 'slen' characters from 'str'
72 void strlist_append_b( strlist_t *list, const void* str, size_t slen );
75 void strlist_append_dup( strlist_t *list, const char *str);
H A Dgetprop.c28 STRLIST_FOREACH(list, str, printf("%s\n", str));
H A Dlsusb.c30 char *str = usb_device_get_string(dev, id); local
32 if (id && str) {
33 strlcpy(str_buff, str, sizeof(str_buff));
34 free(str);
H A Dmount.c22 const char str[8]; member in struct:mount_opts
29 char *str; member in struct:extra_opts
70 if (extra->str)
76 new = realloc(extra->str, newlen + 1); /* +1 for NUL */
80 extra->str = new;
81 extra->end = extra->str + extra->used_size;
120 res = strcmp(s, options[i].str);
335 return do_mount(dev, dir, type, rwflag, extra.str, loop, loopdev);
/system/core/toolbox/grep/
H A Dfastgrep.c326 grep_revstr(unsigned char *str, int len) argument
332 c = str[i];
333 str[i] = str[len - i - 1];
334 str[len - i - 1] = c;
H A Dgrep.c370 char *str; local
381 while ((str = strsep(&eopts, " ")) != NULL)
382 eargv[eargc++] = grep_strdup(str);
H A Dgrep.h93 struct str { struct
150 char *grep_strdup(const char *str);
151 void printline(struct str *line, int sep, regmatch_t *matches, int m);
154 void enqueue(struct str *x);
H A Dqueue.c51 struct str data;
60 enqueue(struct str *x)
H A Dutil.c61 static int procline(struct str *l, int);
191 struct str ln;
286 procline(struct str *l, int nottext)
430 grep_strdup(const char *str) argument
434 if ((ret = strdup(str)) == NULL)
443 printline(struct str *line, int sep, regmatch_t *matches, int m)
/system/extras/atrace/
H A Datrace.c108 bool writeStr(const char* filename, const char* str) argument
118 ssize_t len = strlen(str);
119 if (write(fd, str, len) != len) {
249 char str[32] = "1"; local
254 snprintf(str, 32, "%d", size);
255 return writeStr(k_traceBufferSizePath, str);
/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp95 static ostream &operator<<(ostream &stream, const String16& str);
361 static ostream &operator<<(ostream &stream, const String16& str) argument
363 for (unsigned int n1 = 0; n1 < str.size(); n1++) {
364 if ((str[n1] > 0x20) && (str[n1] < 0x80)) {
365 stream << (char) str[n1];
/system/extras/tests/fstest/
H A Dperm_checker.c70 static uid_t str2uid(char *str, int line_num) argument
74 if (isdigit(str[0]))
75 return (uid_t) atol(str);
77 if (!(pw = getpwnam(str))) {
78 printf("# ERROR # Invalid uid '%s' reading line %d\n", str, line_num);
84 static gid_t str2gid(char *str, int line_num) argument
88 if (isdigit(str[0]))
89 return (uid_t) atol(str);
91 if (!(gr = getgrnam(str))) {
92 printf("# ERROR # Invalid gid '%s' reading line %d\n", str, line_nu
[all...]
/system/extras/tests/lib/testUtil/
H A DtestUtil.c398 char str[MAXSTR]; local
411 while (fgets(str, sizeof(str), fp) != NULL) {
412 if ((strlen(str) > 1) && (str[strlen(str) - 1] == '\n')) {
413 str[strlen(str) - 1] = '\0';
415 testPrintI(" out: %s", str);
/system/extras/tests/memtest/
H A Dfptest.cpp51 static void endTime(const char *str, double ops) argument
55 printf("Test: %s, %f Mops\n", str, ops / ds / 1e6);
H A Dmemtest.cpp528 char* str = (char*)calloc(MAX_SIZE+4+8, 1); local
556 memset(str, 'A', size-1);
557 if (j==0) preload(str, DCACHE_SIZE*4); // flush D
558 else preload(str, size); // load D
564 c = strlen(str);
583 free(str);
/system/extras/tests/sdcard/
H A Dplot_sdcard.py61 return str(zip(self.time, self.data))
312 print str(err)
H A Dstopwatch.cpp36 #define SNPRINTF_OR_RETURN(str, size, format, ...) { \
37 int len = snprintf((str), (size), (format), ## __VA_ARGS__); \
43 (size) -= len; (str) += len; \
106 void StopWatch::sprint(char **str, size_t *size) argument
118 if (kVerbose) SNPRINTF_OR_RETURN(*str, *size, "# Got %d samples for %s\n", mDataLen, mName);
121 SNPRINTF_OR_RETURN(*str, *size, "# StopWatch %s total/cumulative duration %f Samples: %d\n",
123 printThroughput(str, size);
124 printAverageMinMax(str, size);
130 SNPRINTF_OR_RETURN(*str, *size, "# Name Iterations Duration Min MinIdx Max MaxIdx SizeKbytes\n");
131 SNPRINTF_OR_RETURN(*str, *siz
217 printAverageMinMax(char **str, size_t *size) argument
228 printThroughput(char **str, size_t *size) argument
[all...]
H A Dstopwatch.h70 // char *str = buffer;
72 // watch.sprint(&str, &size);
108 // @param str[inout] On entry points to the begining of a buffer
112 // pointed by *str. On exit *size is the amount of free space left
115 void sprint(char **str, size_t *size);
127 void printAverageMinMax(char **str, size_t *size);
128 void printThroughput(char **str, size_t *size);
H A Dsysutil.cpp74 // @param size The size of the buffer pointed by str. Must be >= 1.
235 int kernelVersion(char *str, size_t size) argument
237 return readStringFromFile(kKernelVersion, str, size);
285 int schedFeatures(char *str, size_t size) argument
287 return readStringFromFile(kSchedFeatures, str, size);
H A Dsysutil.h60 // @param str points to the buffer where the kernel version should be
62 // @param size of the buffer pointed by str.
65 int kernelVersion(char *str, size_t size);
84 // @param str points to the buffer where the sched features should be
86 // @param size of the buffer pointed by str.
89 int schedFeatures(char *str, size_t size);
H A Dtestcase.cpp99 char *str = buffer; local
102 testTimer()->sprint(&str, &size_left);
103 if(openTimer()->used()) openTimer()->sprint(&str, &size_left);
104 if(readTimer()->used()) readTimer()->sprint(&str, &size_left);
105 if(writeTimer()->used()) writeTimer()->sprint(&str, &size_left);
106 if(syncTimer()->used()) syncTimer()->sprint(&str, &size_left);
107 if(truncateTimer()->used()) truncateTimer()->sprint(&str, &size_left);
108 if(traverseTimer()->used()) traverseTimer()->sprint(&str, &size_left);
110 write(mIpc[TestCase::WRITE_TO_PARENT], buffer, str - buffer);
/system/netd/
H A DMDnsSdListener.cpp130 void MDnsSdListener::Handler::stop(SocketClient *cli, int argc, char **argv, const char *str) { argument
133 asprintf(&msg, "Invalid number of arguments to %s", str);
141 if (DBG) ALOGE("%s stop used unknown requestId %d", str, requestId);
145 if (VDBG) ALOGD("Stopping %s with ref %p", str, ref);
149 asprintf(&msg, "%s stopped", str);
H A DMDnsSdListener.h111 void stop(SocketClient *cli, int argc, char **argv, const char *str);

Completed in 105 milliseconds

12