Searched refs:utf (Results 1 - 7 of 7) sorted by relevance

/art/runtime/mirror/
H A Dstring.cc28 #include "utf-inl.h"
98 String* String::AllocFromModifiedUtf8(Thread* self, const char* utf) { argument
99 DCHECK(utf != nullptr);
100 size_t char_count = CountModifiedUtf8Chars(utf);
101 return AllocFromModifiedUtf8(self, char_count, utf);
H A Dstring.h84 static String* AllocFromModifiedUtf8(Thread* self, const char* utf)
/art/runtime/
H A Dcheck_jni.cc515 const char* utf = va_arg(ap, const char*); local
516 if (utf == nullptr) {
519 StringAppendF(&msg, "\"%s\"", utf);
1537 static void ReleaseStringUTFChars(JNIEnv* env, jstring string, const char* utf) { argument
1538 CHECK_JNI_ENTRY(kFlag_ExcepOkay | kFlag_Release, "Esu", env, string, utf); // TODO: show pointer and truncate string.
1540 GuardedCopy::Check(__FUNCTION__, utf, false);
1541 utf = reinterpret_cast<const char*>(GuardedCopy::Destroy(const_cast<char*>(utf)));
1543 baseEnv(env)->ReleaseStringUTFChars(env, string, utf);
H A Djni_internal_test.cc1163 const char* utf = env_->GetStringUTFChars(s, nullptr); local
1164 EXPECT_STREQ("hello", utf);
1165 env_->ReleaseStringUTFChars(s, utf);
1168 utf = env_->GetStringUTFChars(s, &is_copy);
1170 EXPECT_STREQ("hello", utf);
1171 env_->ReleaseStringUTFChars(s, utf);
H A DAndroid.mk154 utf.cc \
H A Dutils.cc41 #include "utf-inl.h"
571 std::string PrintableString(const char* utf) { argument
574 const char* p = utf;
H A Djni_internal.cc55 #include "utf.h"
1928 static jstring NewStringUTF(JNIEnv* env, const char* utf) { argument
1929 if (utf == nullptr) {
1933 mirror::String* result = mirror::String::AllocFromModifiedUtf8(soa.Self(), utf);

Completed in 789 milliseconds