Home
last modified time | relevance | path

Searched refs:WideToUTF8 (Results 1 – 10 of 10) sorted by relevance

/aosp12/system/libbase/
H A Dutf8_test.cpp81 static std::string WideToUTF8(const std::wstring& utf16) { in WideToUTF8() function
83 EXPECT_TRUE(WideToUTF8(utf16, &utf8)); in WideToUTF8()
124 utf8 << WideToUTF8(kConvertRoundtripCases[i]); in TEST()
137 EXPECT_EQ(empty, WideToUTF8(wempty)); in TEST()
243 const bool success = WideToUTF8(convert_cases[i].utf16, in TEST()
284 WideToUTF8(convert_cases[i].utf32, in TEST()
310 return WideToUTF8(utf16); in UTF16ToUTF8()
344 return WideToUTF8(utf16); in SysWideToUTF8()
H A Dutf8.cpp44 bool WideToUTF8(const wchar_t* utf16, const size_t size, std::string* utf8) { in WideToUTF8() function
87 bool WideToUTF8(const wchar_t* utf16, std::string* utf8) { in WideToUTF8() function
89 return WideToUTF8(utf16, wcslen(utf16), utf8); in WideToUTF8()
92 bool WideToUTF8(const std::wstring& utf16, std::string* utf8) { in WideToUTF8() function
95 return WideToUTF8(utf16.c_str(), utf16.length(), utf8); in WideToUTF8()
H A Derrors_windows.cpp50 if (!android::base::WideToUTF8(msgbuf, &msg)) { in SystemErrorCodeToString()
H A Dfile.cpp71 CHECK(android::base::WideToUTF8(path, &path_utf8)) << "path can't be converted to utf8"; in mkstemp()
92 CHECK(android::base::WideToUTF8(path, &path_utf8)) << "path can't be converted to utf8"; in mkdtemp()
123 CHECK(android::base::WideToUTF8(tmp_dir_w, &tmp_dir)) << "path can't be converted to utf8"; in GetSystemTempDir()
/aosp12/system/libbase/include/android-base/
H A Dutf8.h37 bool WideToUTF8(const wchar_t* utf16, const size_t size, std::string* utf8);
41 bool WideToUTF8(const wchar_t* utf16, std::string* utf8);
45 bool WideToUTF8(const std::wstring& utf16, std::string* utf8);
/aosp12/packages/modules/adb/sysdeps/
H A Denv.cpp48 if (!android::base::WideToUTF8(wbuf, &val)) { in GetEnvironmentVariable()
85 if (!android::base::WideToUTF8(wbuf, &name)) { in GetHostNameUTF8()
110 if (!android::base::WideToUTF8(wbuf, &login)) { in GetLoginNameUTF8()
/aosp12/packages/modules/adb/
H A Dadb_utils.cpp284 if (!android::base::WideToUTF8(path, &home_str)) { in adb_get_homedir_path()
340 if (!android::base::WideToUTF8(temp_path, &temp_path_utf8)) { in GetLogFilePath()
H A Dsysdeps_win32.cpp2441 if (!android::base::WideToUTF8(argv[i], &arg_narrow)) { in NarrowArgs()
2499 if (!android::base::WideToUTF8(went->d_name, &name_utf8)) { in adb_readdir()
2927 if (!android::base::WideToUTF8(*env, equal - *env, &name_utf8)) { in _init_env()
2935 if (!android::base::WideToUTF8(equal + 1, &value_utf8)) { in _init_env()
2969 const bool narrow_result = android::base::WideToUTF8(wbuf, &buf_utf8); in adb_getcwd()
/aosp12/frameworks/base/tools/aapt2/
H A DMain.cpp188 if (!::android::base::WideToUTF8(wide_argv[i], &utf8_arg)) { in main()
/aosp12/frameworks/base/tools/aapt2/cmd/
H A DCommand.cpp45 CHECK(android::base::WideToUTF8(path16, &path8)) in GetSafePath()