Searched refs:utf8 (Results 1 - 17 of 17) sorted by relevance

/frameworks/base/libs/androidfw/
H A DUtil.cpp44 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 DApkAssets.cpp25 #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 DUtil.cpp300 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 DFiles.cpp31 #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 DUtil.h201 std::u16string Utf8ToUtf16(const android::StringPiece& utf8);
/frameworks/base/media/jni/
H A Dandroid_media_MediaScanner.cpp64 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 DNAIRealmData.java76 boolean utf8 = (payload.get() & NAI_ENCODING_UTF8_MASK) != 0;
80 payload, utf8 ? StandardCharsets.UTF_8 : StandardCharsets.US_ASCII);
/frameworks/base/tools/aapt2/
H A DStringPool.cpp367 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 DStringPool.h211 static bool Flatten(BigBuffer* out, const StringPool& pool, bool utf8, IDiagnostics* diag);
/frameworks/base/tools/aapt2/io/
H A DFileStream.cpp26 #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 Dnative-media-jni.c346 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 DStringPiece.h299 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 DUtil.h114 std::u16string Utf8ToUtf16(const StringPiece& utf8);
/frameworks/base/tools/aapt2/format/
H A DArchive.cpp26 #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 DStringPool.h82 * If 'utf8' is true, strings will be encoded with UTF-8 instead of
85 explicit StringPool(bool utf8 = false);
H A DStringPool.cpp125 StringPool::StringPool(bool utf8) : argument
126 mUTF8(utf8), mValues(-1)
/frameworks/minikin/tests/util/
H A DUnicodeUtils.cpp23 #include <unicode/utf8.h>

Completed in 351 milliseconds