diff options
author | Elliott Hughes <enh@google.com> | 2015-03-10 10:14:42 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-03-10 10:14:42 -0700 |
commit | c0b8f647ca3e3d698b75084b1b555b7af00aec5f (patch) | |
tree | e059e1f0e72f04968c2292565b8bf73e4e92065f /core | |
parent | 2fb1d066000dbf249f0ca802d72811b68c5318ff (diff) | |
parent | 7545accf1fbfad68f725386a3b60c2bbd02c61aa (diff) | |
download | frameworks_base-c0b8f647ca3e3d698b75084b1b555b7af00aec5f.zip frameworks_base-c0b8f647ca3e3d698b75084b1b555b7af00aec5f.tar.gz frameworks_base-c0b8f647ca3e3d698b75084b1b555b7af00aec5f.tar.bz2 |
resolved conflicts for merge of 7545accf to master
Change-Id: I7a9264e818fdd14bf59f0dec63ab83985f9e66fb
Diffstat (limited to 'core')
-rw-r--r-- | core/jni/Android.mk | 2 | ||||
-rw-r--r-- | core/jni/android_text_StaticLayout.cpp | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/core/jni/Android.mk b/core/jni/Android.mk index 97744ea..d17a0ae 100644 --- a/core/jni/Android.mk +++ b/core/jni/Android.mk @@ -18,6 +18,8 @@ endif LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES +LOCAL_CFLAGS += -DU_USING_ICU_NAMESPACE=0 + LOCAL_SRC_FILES:= \ AndroidRuntime.cpp \ com_android_internal_content_NativeLibraryHelper.cpp \ diff --git a/core/jni/android_text_StaticLayout.cpp b/core/jni/android_text_StaticLayout.cpp index a6f19b1..e5ae147 100644 --- a/core/jni/android_text_StaticLayout.cpp +++ b/core/jni/android_text_StaticLayout.cpp @@ -48,10 +48,10 @@ class Builder { delete mBreakIterator; } - void setLocale(const Locale& locale) { + void setLocale(const icu::Locale& locale) { delete mBreakIterator; UErrorCode status = U_ZERO_ERROR; - mBreakIterator = BreakIterator::createLineInstance(locale, status); + mBreakIterator = icu::BreakIterator::createLineInstance(locale, status); // TODO: check status } @@ -77,13 +77,13 @@ class Builder { } } - BreakIterator* breakIterator() const { + icu::BreakIterator* breakIterator() const { return mBreakIterator; } private: const size_t MAX_TEXT_BUF_RETAIN = 32678; - BreakIterator* mBreakIterator = nullptr; + icu::BreakIterator* mBreakIterator = nullptr; UText mUText = UTEXT_INITIALIZER; std::vector<uint16_t>mTextBuf; }; @@ -560,9 +560,9 @@ static jint nComputeLineBreaks(JNIEnv* env, jclass, jlong nativePtr, // TODO: this array access is pretty inefficient, but we'll replace it anyway ScopedFloatArrayRO widthsScopedArr(env, widths); - BreakIterator* breakIterator = b->breakIterator(); + icu::BreakIterator* breakIterator = b->breakIterator(); int loc = breakIterator->first(); - while ((loc = breakIterator->next()) != BreakIterator::DONE) { + while ((loc = breakIterator->next()) != icu::BreakIterator::DONE) { breaks.push_back(loc); } |