/frameworks/base/libs/androidfw/ |
H A D | Util.cpp | 44 std::u16string Utf8ToUtf16(const StringPiece& utf8) { argument 46 utf8_to_utf16_length(reinterpret_cast<const uint8_t*>(utf8.data()), utf8.length()); 53 utf8_to_utf16(reinterpret_cast<const uint8_t*>(utf8.data()), utf8.length(), &*utf16.begin(), 64 std::string utf8; local 65 utf8.resize(utf8_length); 66 utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin(), utf8_length + 1); 67 return utf8;
|
H A D | ApkAssets.cpp | 25 #include "android-base/utf8.h" 82 unique_fd fd(base::utf8::open(path.c_str(), O_RDONLY | O_BINARY | O_CLOEXEC));
|
/frameworks/base/tools/aapt2/util/ |
H A D | Util.cpp | 300 std::u16string Utf8ToUtf16(const StringPiece& utf8) { argument 302 reinterpret_cast<const uint8_t*>(utf8.data()), utf8.length()); 309 utf8_to_utf16(reinterpret_cast<const uint8_t*>(utf8.data()), utf8.length(), 320 std::string utf8; local 321 utf8.resize(utf8_length); 322 utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin(), utf8_length + 1); 323 return utf8;
|
H A D | Files.cpp | 31 #include "android-base/utf8.h" 111 int result = ::android::base::utf8::mkdir(parent_path.c_str(), mode); 117 return ::android::base::utf8::mkdir(path.c_str(), mode) == 0 || errno == EEXIST; 176 unique_fd fd(TEMP_FAILURE_RETRY(::android::base::utf8::open(path.c_str(), flags)));
|
H A D | Util.h | 201 std::u16string Utf8ToUtf16(const android::StringPiece& utf8);
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaScanner.cpp | 64 unsigned char utf8 = *(bytes++); local 66 switch (utf8 >> 4) { 90 utf8 = *(bytes++); 91 if ((utf8 & 0xc0) != 0x80) { 98 utf8 = *(bytes++); 99 if ((utf8 & 0xc0) != 0x80) {
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
H A D | NAIRealmData.java | 76 boolean utf8 = (payload.get() & NAI_ENCODING_UTF8_MASK) != 0; 80 payload, utf8 ? StandardCharsets.UTF_8 : StandardCharsets.US_ASCII);
|
/frameworks/base/tools/aapt2/ |
H A D | StringPool.cpp | 367 static bool EncodeString(const std::string& str, const bool utf8, BigBuffer* out, argument 369 if (utf8) { 383 EncodeString(kStringTooLarge, utf8, out, diag); 409 EncodeString(kStringTooLarge, utf8, out, diag); 434 bool StringPool::Flatten(BigBuffer* out, const StringPool& pool, bool utf8, argument 443 if (utf8) { 457 no_error = EncodeString(entry->value, utf8, out, diag) && no_error; 462 no_error = EncodeString(entry->value, utf8, out, diag) && no_error;
|
H A D | StringPool.h | 211 static bool Flatten(BigBuffer* out, const StringPool& pool, bool utf8, IDiagnostics* diag);
|
/frameworks/base/tools/aapt2/io/ |
H A D | FileStream.cpp | 26 #include "android-base/utf8.h" 43 fd_.reset(TEMP_FAILURE_RETRY(::android::base::utf8::open(path.c_str(), mode))); 114 owned_fd_.reset(TEMP_FAILURE_RETRY(::android::base::utf8::open(path.c_str(), mode, 0666)));
|
/frameworks/wilhelm/tests/native-media/jni/ |
H A D | native-media-jni.c | 346 const char *utf8 = (*env)->GetStringUTFChars(env, filename, NULL); local 347 assert(NULL != utf8); 350 file = fopen(utf8, "rb"); 352 ALOGE("Failed to open %s", utf8); 394 (*env)->ReleaseStringUTFChars(env, filename, utf8);
|
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | StringPiece.h | 299 std::string utf8; local 300 utf8.resize(static_cast<size_t>(utf8_len)); 301 utf16_to_utf8(str.data(), str.size(), &*utf8.begin(), utf8_len + 1); 302 return out << utf8;
|
H A D | Util.h | 114 std::u16string Utf8ToUtf16(const StringPiece& utf8);
|
/frameworks/base/tools/aapt2/format/ |
H A D | Archive.cpp | 26 #include "android-base/utf8.h" 65 file_ = {::android::base::utf8::fopen(full_path.c_str(), "wb"), fclose}; 130 file_ = {::android::base::utf8::fopen(path.to_string().c_str(), "w+b"), fclose};
|
/frameworks/base/tools/aapt/ |
H A D | StringPool.h | 82 * If 'utf8' is true, strings will be encoded with UTF-8 instead of 85 explicit StringPool(bool utf8 = false);
|
H A D | StringPool.cpp | 125 StringPool::StringPool(bool utf8) : argument 126 mUTF8(utf8), mValues(-1)
|
/frameworks/minikin/tests/util/ |
H A D | UnicodeUtils.cpp | 23 #include <unicode/utf8.h>
|