Searched refs:str (Results 1 - 25 of 49) sorted by relevance

12

/system/bluetooth/bluedroid/include/bluedroid/
H A Dbluetooth.h45 int ba2str(const bdaddr_t *ba, char *str);
46 int str2ba(const char *str, bdaddr_t *ba);
/system/extras/tests/sdcard/
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.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/core/libsync/
H A Dsync_test.c81 char str[256]; local
94 sprintf(str, "test_fence%d-%d", i, j);
95 int fd = sw_sync_fence_create(sync_timeline_fd, str, val);
108 sprintf(str, "merged_fence%d", j);
109 sync_data[3].fd[j] = sync_merge(str, sync_data[0].fd[j], sync_data[1].fd[j]);
124 fgets(str, sizeof(str), stdin);
133 fgets(str, sizeof(str), stdin);
138 fgets(str, sizeo
[all...]
/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 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);
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);
/system/core/libcutils/
H A Dstr_parms.c44 static int str_hash_fn(void *str) argument
49 for (p = str; p && *p; p++)
131 char *str; local
140 str = strdup(_string);
141 if (!str)
146 kvpair = strtok_r(str, ";", &tmpstr);
182 free(str);
312 char *str = NULL; local
315 hashmapForEach(str_parms->map, combine_strings, &str);
317 str
333 test_str_parms_str(const char *str) argument
[all...]
H A Dzygote.c39 static void replace_nl(char *str);
257 static void replace_nl(char *str) argument
259 for(; *str; str++) {
260 if (*str == '\n') {
261 *str = ' ';
/system/core/adb/
H A Dremount_service.c92 static void write_string(int fd, const char* str) argument
94 writex(fd, str, strlen(str));
/system/core/run-as/
H A Drun-as.c83 const char* str = "Usage: " PROGNAME " <package-name> <command> [<args>]\n\n"; local
84 write(1, str, strlen(str));
/system/core/toolbox/grep/
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)
/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/core/sh/
H A Dexpand.c483 subevalvar(char *p, char *str, int strloc, int subtype, int startloc, int varflags) argument
499 if (str == NULL)
500 str = stackblock() + strloc;
504 setvar(str, startp, 0);
517 error("%.*s: parameter %snot set", p - str - 1,
518 str, (varflags & VSNUL) ? "null or "
523 for (loc = startp; loc < str; loc++) {
526 if (patmatch(str, startp, varflags & VSQUOTE))
535 for (loc = str - 1; loc >= startp;) {
538 if (patmatch(str, start
1068 expandmeta(struct strlist *str, int flag) argument
1272 expsort(struct strlist *str) argument
1466 rmescapes(char *str) argument
[all...]
H A Dhistedit.c400 out1str(he.str);
403 fc_replace(he.str, pat, repl) : he.str;
480 str_to_event(const char *str, int last) argument
483 const char *s = str;
516 str);
521 retval = history(hist, &he, H_PREV_STR, str);
523 error("history pattern not found: %s", str);
/system/core/debuggerd/
H A Dvfp.S41 str r0, [r0]
/system/bluetooth/bluedroid/
H A Dbluetooth.c303 int ba2str(const bdaddr_t *ba, char *str) { argument
304 return sprintf(str, "%2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X",
308 int str2ba(const char *str, bdaddr_t *ba) { argument
311 ba->b[i] = (uint8_t) strtoul(str, (char **) &str, 16);
312 str++;
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp139 /* If the string between 'str' and 'end' begins with 'prefixlen' characters
140 * from the 'prefix' array, then return 'str + prefixlen', otherwise return
144 has_prefix(const char* str, const char* end, const char* prefix, size_t prefixlen) argument
146 if ((end-str) >= (ptrdiff_t)prefixlen && !memcmp(str, prefix, prefixlen))
147 return str + prefixlen;
156 #define HAS_CONST_PREFIX(str,end,prefix) has_prefix((str),(end),prefix,CONST_STRLEN(prefix))
/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...]

Completed in 123 milliseconds

12