Home
last modified time | relevance | path

Searched refs:tok (Results 1 – 5 of 5) sorted by relevance

/system/extras/su/
Dsu.cpp29 void pwtoid(const char* tok, uid_t* uid, gid_t* gid) { in pwtoid() argument
30 struct passwd* pw = getpwnam(tok); in pwtoid()
37 uid_t tmpid = strtoul(tok, &end, 10); in pwtoid()
38 if (errno != 0 || end == tok) error(1, errno, "invalid uid/gid '%s'", tok); in pwtoid()
47 char *tok; in extract_uidgids() local
59 tok = strsep(&nexttok, ","); in extract_uidgids()
60 pwtoid(tok, uid, gid); in extract_uidgids()
61 tok = strsep(&nexttok, ","); in extract_uidgids()
62 if (!tok) { in extract_uidgids()
68 pwtoid(tok, NULL, gid); in extract_uidgids()
[all …]
/system/core/logd/
DLogKlog.cpp127 char *peek, *tok = s; in log_strntok_r() local
132 return tok; in log_strntok_r()
142 return tok; in log_strntok_r()
147 if (s != (tok + 1)) { // not first? in log_strntok_r()
152 return tok; in log_strntok_r()
175 if (s != (tok + 1)) { // not first? in log_strntok_r()
184 return tok; in log_strntok_r()
247 for (char *ptr = nullptr, *tok = buffer; in onDataAvailable() local
248 !!(tok = android::log_strntok_r(tok, len, ptr, sublen)); in onDataAvailable()
249 tok = nullptr) { in onDataAvailable()
[all …]
Dmain.cpp175 for (char *ptr = nullptr, *tok = buf.get(); in readDmesg() local
176 (rc >= 0) && !!(tok = android::log_strntok_r(tok, len, ptr, sublen)); in readDmesg()
177 tok = nullptr) { in readDmesg()
178 if ((sublen <= 0) || !*tok) continue; in readDmesg()
180 rc = al->log(tok, sublen); in readDmesg()
183 rc = kl->log(tok, sublen); in readDmesg()
/system/core/libcutils/
Dconfig_utils.cpp233 int tok = _lex(cs, value);
234 printf("TOKEN(%d) %s %s\n", value, TOKENNAMES[tok],
235 tok == T_TEXT ? cs->text : "");
236 return tok;
/system/bt/stack/a2dp/
Da2dp_codec_config.cc560 char* tok = NULL; in init() local
574 tok = strtok_r((char*)value_cap, "-", &tmp_token); in init()
575 while (tok != NULL) { in init()
576 if (strcmp(tok, "sbc") == 0) { in init()
579 } else if (strcmp(tok, "aac") == 0) { in init()
582 } else if (strcmp(tok, "aptx") == 0) { in init()
585 } else if (strcmp(tok, "aptxhd") == 0) { in init()
588 } else if (strcmp(tok, "ldac") == 0) { in init()
592 tok = strtok_r(NULL, "-", &tmp_token); in init()