diff options
author | Elliott Hughes <enh@google.com> | 2015-03-10 17:15:41 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-10 17:15:42 +0000 |
commit | 126d89bb79afb9636b79688e3d95fb2fc79ddd3b (patch) | |
tree | 093749fe59306a4a7be0198b6a2b48918853d63e /core | |
parent | edacf22ca132ac48207a68aa30998f5b43d893b8 (diff) | |
parent | c0b8f647ca3e3d698b75084b1b555b7af00aec5f (diff) | |
download | frameworks_base-126d89bb79afb9636b79688e3d95fb2fc79ddd3b.zip frameworks_base-126d89bb79afb9636b79688e3d95fb2fc79ddd3b.tar.gz frameworks_base-126d89bb79afb9636b79688e3d95fb2fc79ddd3b.tar.bz2 |
Merge "resolved conflicts for merge of 7545accf to master"
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 9d76335..30a7e68 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); } |