Home
last modified time | relevance | path

Searched refs:tok (Results 1 – 6 of 6) 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/logging/logd/
Dmain.cpp143 for (char *ptr = nullptr, *tok = buf.get(); in readDmesg() local
144 (rc >= 0) && !!(tok = android::log_strntok_r(tok, len, ptr, sublen)); in readDmesg()
145 tok = nullptr) { in readDmesg()
146 if ((sublen <= 0) || !*tok) continue; in readDmesg()
148 rc = al->log(tok, sublen); in readDmesg()
151 rc = kl->log(tok, sublen); in readDmesg()
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 …]
/system/security/keystore2/src/database/
Dperboot.rs36 fn from_auth_token(tok: &HardwareAuthToken) -> Self { in from_auth_token()
38 user_id: tok.userId, in from_auth_token()
39 auth_id: tok.authenticatorId, in from_auth_token()
40 authenticator_type: tok.authenticatorType, in from_auth_token()
/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.cc571 char* tok = NULL; in init() local
585 tok = strtok_r((char*)value_cap, "-", &tmp_token); in init()
586 while (tok != NULL) { in init()
587 if (strcmp(tok, "sbc") == 0) { in init()
591 } else if (strcmp(tok, "aac") == 0) { in init()
594 } else if (strcmp(tok, "aptx") == 0) { in init()
597 } else if (strcmp(tok, "aptxhd") == 0) { in init()
600 } else if (strcmp(tok, "ldac") == 0) { in init()
605 tok = strtok_r(NULL, "-", &tmp_token); in init()