Lines Matching refs:s
46 explicit BuildId(const std::string& s) : BuildId() { in BuildId() argument
47 for (size_t i = 0; i < s.size() && i < BUILD_ID_SIZE * 2; i += 2) { in BuildId()
51 if (s[j] >= '0' && s[j] <= '9') { in BuildId()
52 ch |= s[j] - '0'; in BuildId()
53 } else if (s[j] >= 'a' && s[j] <= 'f') { in BuildId()
54 ch |= s[j] - 'a' + 10; in BuildId()
55 } else if (s[j] >= 'A' && s[j] <= 'F') { in BuildId()
56 ch |= s[j] - 'A' + 10; in BuildId()
66 std::string s = "0x"; in ToString() local
68 s += android::base::StringPrintf("%02x", data_[i]); in ToString()
70 return s; in ToString()