Lines Matching refs:wbuf
38 wchar_t wbuf[kMaxEnvVarSize]; in GetEnvironmentVariable() local
44 auto sz = ::GetEnvironmentVariableW(wvar.data(), wbuf, sizeof(wbuf)); in GetEnvironmentVariable()
50 if (!android::base::WideToUTF8(wbuf, &val)) { in GetEnvironmentVariable()
80 wchar_t wbuf[MAX_COMPUTERNAME_LENGTH + 1]; in GetHostNameUTF8() local
81 DWORD size = sizeof(wbuf); in GetHostNameUTF8()
82 if (!GetComputerNameW(wbuf, &size) || size == 0) { in GetHostNameUTF8()
87 if (!android::base::WideToUTF8(wbuf, &name)) { in GetHostNameUTF8()
105 wchar_t wbuf[UNLEN + 1]; in GetLoginNameUTF8() local
106 DWORD size = sizeof(wbuf); in GetLoginNameUTF8()
107 if (!GetUserNameW(wbuf, &size) || size == 0) { in GetLoginNameUTF8()
112 if (!android::base::WideToUTF8(wbuf, &login)) { in GetLoginNameUTF8()