/frameworks/base/tools/aapt2/cmd/ |
D | Compile_test.cpp | 65 ::android::base::utf8::unlink(path0_out.c_str()); in TEST_F() 67 ASSERT_EQ(::android::base::utf8::unlink(path0_out.c_str()), 0); in TEST_F() 69 ASSERT_EQ(::android::base::utf8::unlink(path0_out.c_str()), 0); in TEST_F() 73 ::android::base::utf8::unlink(path1_out.c_str()); in TEST_F() 75 ASSERT_EQ(::android::base::utf8::unlink(path1_out.c_str()), 0); in TEST_F() 77 ASSERT_EQ(::android::base::utf8::unlink(path1_out.c_str()), 0); in TEST_F() 81 ::android::base::utf8::unlink(path2_out.c_str()); in TEST_F() 83 ASSERT_EQ(::android::base::utf8::unlink(path2_out.c_str()), 0); in TEST_F() 85 ASSERT_EQ(::android::base::utf8::unlink(path2_out.c_str()), 0); in TEST_F() 90 ::android::base::utf8::unlink(path3_out.c_str()); in TEST_F() [all …]
|
/frameworks/base/libs/androidfw/ |
D | Util.cpp | 45 std::u16string Utf8ToUtf16(const StringPiece& utf8) { in Utf8ToUtf16() argument 47 utf8_to_utf16_length(reinterpret_cast<const uint8_t*>(utf8.data()), utf8.length()); in Utf8ToUtf16() 54 utf8_to_utf16(reinterpret_cast<const uint8_t*>(utf8.data()), utf8.length(), &*utf16.begin(), in Utf8ToUtf16() 65 std::string utf8; in Utf16ToUtf8() local 66 utf8.resize(utf8_length); in Utf16ToUtf8() 67 utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin(), utf8_length + 1); in Utf16ToUtf8() 68 return utf8; in Utf16ToUtf8()
|
D | ApkAssets.cpp | 88 unique_fd fd(base::utf8::open(path.c_str(), O_RDONLY | O_BINARY | O_CLOEXEC)); in CreateAssetFromFile()
|
/frameworks/base/tools/aapt2/util/ |
D | Util.cpp | 320 std::string Utf8ToModifiedUtf8(const std::string& utf8) { in Utf8ToModifiedUtf8() argument 326 const size_t size = utf8.size(); in Utf8ToModifiedUtf8() 328 if (((uint8_t) utf8[i] >> 4) == 0xF) { in Utf8ToModifiedUtf8() 338 return utf8; in Utf8ToModifiedUtf8() 344 if (((uint8_t) utf8[i] >> 4) == 0xF) { in Utf8ToModifiedUtf8() 345 int32_t codepoint = utf32_from_utf8_at(utf8.data(), size, i, nullptr); in Utf8ToModifiedUtf8() 360 output.push_back(utf8[i]); in Utf8ToModifiedUtf8() 421 std::u16string Utf8ToUtf16(const StringPiece& utf8) { in Utf8ToUtf16() argument 423 reinterpret_cast<const uint8_t*>(utf8.data()), utf8.length()); in Utf8ToUtf16() 430 utf8_to_utf16(reinterpret_cast<const uint8_t*>(utf8.data()), utf8.length(), in Utf8ToUtf16() [all …]
|
D | Files.cpp | 133 int result = ::android::base::utf8::mkdir(parent_path.c_str(), mode); in mkdirs() 139 return ::android::base::utf8::mkdir(path.c_str(), mode) == 0 || errno == EEXIST; in mkdirs() 213 unique_fd fd(TEMP_FAILURE_RETRY(::android::base::utf8::open(path.c_str(), flags))); in MmapPath()
|
D | Util.h | 207 std::string Utf8ToModifiedUtf8(const std::string& utf8); 211 std::u16string Utf8ToUtf16(const android::StringPiece& utf8);
|
/frameworks/base/media/jni/ |
D | android_media_MediaScanner.cpp | 65 unsigned char utf8 = *(bytes++); in isValidUtf8() local 67 switch (utf8 >> 4) { in isValidUtf8() 91 utf8 = *(bytes++); in isValidUtf8() 92 if ((utf8 & 0xc0) != 0x80) { in isValidUtf8() 100 utf8 = *(bytes++); in isValidUtf8() 101 if ((utf8 & 0xc0) != 0x80) { in isValidUtf8()
|
/frameworks/base/tools/aapt2/ |
D | StringPool.cpp | 367 static bool EncodeString(const std::string& str, const bool utf8, BigBuffer* out, in EncodeString() argument 369 if (utf8) { in EncodeString() 383 EncodeString(kStringTooLarge, utf8, out, diag); in EncodeString() 409 EncodeString(kStringTooLarge, utf8, out, diag); in EncodeString() 434 bool StringPool::Flatten(BigBuffer* out, const StringPool& pool, bool utf8, in Flatten() argument 443 if (utf8) { in Flatten() 457 no_error = EncodeString(entry->value, utf8, out, diag) && no_error; in Flatten() 462 no_error = EncodeString(entry->value, utf8, out, diag) && no_error; in Flatten()
|
D | StringPool.h | 211 static bool Flatten(BigBuffer* out, const StringPool& pool, bool utf8, IDiagnostics* diag);
|
/frameworks/wilhelm/tests/native-media/jni/ |
D | native-media-jni.c | 346 const char *utf8 = (*env)->GetStringUTFChars(env, filename, NULL); in Java_com_example_nativemedia_NativeMedia_createStreamingMediaPlayer() local 347 assert(NULL != utf8); in Java_com_example_nativemedia_NativeMedia_createStreamingMediaPlayer() 350 file = fopen(utf8, "rb"); in Java_com_example_nativemedia_NativeMedia_createStreamingMediaPlayer() 352 ALOGE("Failed to open %s", utf8); in Java_com_example_nativemedia_NativeMedia_createStreamingMediaPlayer() 394 (*env)->ReleaseStringUTFChars(env, filename, utf8); in Java_com_example_nativemedia_NativeMedia_createStreamingMediaPlayer()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | NAIRealmData.java | 76 boolean utf8 = (payload.get() & NAI_ENCODING_UTF8_MASK) != 0; in parse() 80 payload, utf8 ? StandardCharsets.UTF_8 : StandardCharsets.US_ASCII); in parse()
|
/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
D | CsvParser.java | 59 final Charset utf8 = StandardCharsets.UTF_8; in parse() local 151 + new String(buf, 0, 20, utf8) + "..."); in parse()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | StringPiece.h | 307 std::string utf8; variable 308 utf8.resize(static_cast<size_t>(utf8_len)); 309 utf16_to_utf8(str.data(), str.size(), &*utf8.begin(), utf8_len + 1); 310 return out << utf8;
|
D | Util.h | 115 std::u16string Utf8ToUtf16(const StringPiece& utf8);
|
/frameworks/base/tools/aapt2/io/ |
D | FileStream.cpp | 43 fd_.reset(TEMP_FAILURE_RETRY(::android::base::utf8::open(path.c_str(), mode))); in FileInputStream() 114 owned_fd_.reset(TEMP_FAILURE_RETRY(::android::base::utf8::open(path.c_str(), mode, 0666))); in FileOutputStream()
|
/frameworks/base/tools/aapt2/format/ |
D | Archive.cpp | 65 file_ = {::android::base::utf8::fopen(full_path.c_str(), "wb"), fclose}; in StartEntry() 130 file_ = {::android::base::utf8::fopen(path.to_string().c_str(), "w+b"), fclose}; in Open()
|
/frameworks/base/tools/aapt/ |
D | StringPool.h | 85 explicit StringPool(bool utf8 = false);
|
D | StringPool.cpp | 118 StringPool::StringPool(bool utf8) : in StringPool() argument 119 mUTF8(utf8), mValues(-1) in StringPool()
|
/frameworks/base/tools/aapt2/test/ |
D | Fixture.cpp | 65 android::base::utf8::unlink(full_path.c_str()); in ClearDirectory()
|
/frameworks/base/tools/aapt2/trace/ |
D | TraceBuffer.cpp | 74 FILE* f = android::base::utf8::fopen(s.str().c_str(), "a"); in Flush()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 102192 Lcom/android/okhttp/okio/ByteString;->utf8()Ljava/lang/String; 102193 Lcom/android/okhttp/okio/ByteString;->utf8:Ljava/lang/String; 112025 Ljava/util/zip/ZipCoder;->utf8:Ljava/util/zip/ZipCoder;
|