/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
D | BidiPerfTest.java | 31 import java.text.Bidi; 46 Bidi bidi = new Bidi(CHAR_ITER); in time_createBidiFromIter() 54 Bidi bd = in time_createBidiFromCharArray() 55 new Bidi( in time_createBidiFromCharArray() 61 Bidi.DIRECTION_RIGHT_TO_LEFT); in time_createBidiFromCharArray() 69 Bidi bidi = new Bidi("Hello", Bidi.DIRECTION_LEFT_TO_RIGHT); in time_createBidiFromString() 77 Bidi.reorderVisually( in time_reorderVisually() 86 Bidi bd = in time_hebrewBidi() 87 new Bidi( in time_hebrewBidi() 93 Bidi.DIRECTION_DEFAULT_RIGHT_TO_LEFT); in time_hebrewBidi() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | LayoutTest.cpp | 39 static void getBounds(const U16StringPiece& text, Bidi bidiFlags, const MinikinPaint& paint, in getBounds() 71 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 75 getBounds(text, Bidi::LTR, paint, &rect); in TEST_F() 90 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 94 getBounds(text, Bidi::LTR, paint, &rect); in TEST_F() 109 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 113 getBounds(text, Bidi::LTR, paint, &rect); in TEST_F() 128 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 132 getBounds(text, Bidi::LTR, paint, &rect); in TEST_F() 159 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() [all …]
|
D | BidiUtilsTest.cpp | 36 BidiText bidiText(text, Range(0, ltrLength), Bidi::LTR); in TEST() 45 BidiText bidiText(text, Range(0, ltrLength), Bidi::RTL); in TEST() 54 BidiText bidiText(text, Range(0, ltrLength), Bidi::DEFAULT_LTR); in TEST() 63 BidiText bidiText(text, Range(0, ltrLength), Bidi::DEFAULT_RTL); in TEST() 72 BidiText bidiText(text, Range(0, ltrLength), Bidi::FORCE_LTR); in TEST() 81 BidiText bidiText(text, Range(0, ltrLength), Bidi::FORCE_RTL); in TEST() 95 BidiText bidiText(text, Range(0, rtlLength), Bidi::LTR); in TEST() 104 BidiText bidiText(text, Range(0, rtlLength), Bidi::RTL); in TEST() 113 BidiText bidiText(text, Range(0, rtlLength), Bidi::DEFAULT_LTR); in TEST() 122 BidiText bidiText(text, Range(0, rtlLength), Bidi::DEFAULT_RTL); in TEST() [all …]
|
D | MeasuredTextTest.cpp | 247 getBounds(text, Range(0, 1), Bidi::LTR, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 263 getBounds(text, Range(0, 2), Bidi::LTR, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 276 getBounds(text, Range(1, 2), Bidi::LTR, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 292 getBounds(text, Range(0, text.size()), Bidi::LTR, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 335 getBounds(text, Range(0, 1), Bidi::LTR, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 351 getBounds(text, Range(0, 2), Bidi::LTR, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 364 getBounds(text, Range(1, 2), Bidi::LTR, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 383 getBounds(text, Range(7, 8), Bidi::LTR, samePaint2, StartHyphenEdit::NO_EDIT, in TEST() 421 getBounds(text, Range(0, 1), Bidi::LTR, differentPaint, StartHyphenEdit::NO_EDIT, in TEST() 437 getBounds(text, Range(0, 2), Bidi::LTR, differentPaint, StartHyphenEdit::NO_EDIT, in TEST() [all …]
|
D | LayoutLetterSpacingTest.cpp | 52 Bidi bidiFlag = isRtl ? Bidi::RTL : Bidi::LTR; in LayoutTest()
|
/frameworks/minikin/libs/minikin/ |
D | BidiUtils.cpp | 32 static inline UBiDiLevel bidiToUBidiLevel(Bidi bidi) { in bidiToUBidiLevel() 34 case Bidi::LTR: in bidiToUBidiLevel() 36 case Bidi::RTL: in bidiToUBidiLevel() 38 case Bidi::DEFAULT_LTR: in bidiToUBidiLevel() 40 case Bidi::DEFAULT_RTL: in bidiToUBidiLevel() 42 case Bidi::FORCE_LTR: in bidiToUBidiLevel() 43 case Bidi::FORCE_RTL: in bidiToUBidiLevel() 75 BidiText::BidiText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags) in BidiText()
|
D | MeasuredText.cpp | 69 const Bidi bidiFlag = mIsRtl ? Bidi::FORCE_RTL : Bidi::FORCE_LTR; in getMetrics() 108 const Bidi bidiFlag = mIsRtl ? Bidi::FORCE_RTL : Bidi::FORCE_LTR; in measureText() 153 const Bidi bidiFlag = mIsRtl ? Bidi::FORCE_RTL : Bidi::FORCE_LTR; in measureHyphenPiece() 237 const Bidi bidiFlag = mIsRtl ? Bidi::FORCE_RTL : Bidi::FORCE_LTR; in appendLayout() 281 const Bidi bidiFlag = mIsRtl ? Bidi::FORCE_RTL : Bidi::FORCE_LTR; in getBounds() 312 Bidi bidiFlag = mIsRtl ? Bidi::FORCE_RTL : Bidi::FORCE_LTR; in getExtent() 342 Bidi bidiFlag = mIsRtl ? Bidi::FORCE_RTL : Bidi::FORCE_LTR; in getLineMetrics()
|
D | BidiUtils.h | 49 BidiText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags);
|
D | Measurement.cpp | 208 void getBounds(const U16StringPiece& str, const Range& range, Bidi bidiFlag, in getBounds() 240 MinikinExtent getFontExtent(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlag, in getFontExtent()
|
D | Layout.cpp | 193 void Layout::doLayout(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, in doLayout() 210 float Layout::measureText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, in measureText()
|
/frameworks/base/core/java/android/text/ |
D | AndroidBidi.java | 20 import android.icu.text.Bidi; 49 case Layout.DIR_REQUEST_LTR: paraLevel = Bidi.LTR; break; in bidi() 50 case Layout.DIR_REQUEST_RTL: paraLevel = Bidi.RTL; break; in bidi() 51 case Layout.DIR_REQUEST_DEFAULT_LTR: paraLevel = Bidi.LEVEL_DEFAULT_LTR; break; in bidi() 52 case Layout.DIR_REQUEST_DEFAULT_RTL: paraLevel = Bidi.LEVEL_DEFAULT_RTL; break; in bidi() 53 default: paraLevel = Bidi.LTR; break; in bidi() 55 final Bidi icuBidi = new Bidi(length /* maxLength */, 0 /* maxRunCount */); in bidi()
|
D | MeasuredParagraph.java | 35 import android.icu.text.Bidi; 121 private Bidi mBidi; 237 Bidi bidi = mBidi.createLineBidi(start, end); in getDirections() 257 int[] visualOrders = Bidi.reorderVisual(levels); in getDirections() 693 bidiRequest = Bidi.LTR; in resetAndAnalyzeBidi() 695 bidiRequest = Bidi.RTL; in resetAndAnalyzeBidi() 697 bidiRequest = Bidi.LEVEL_DEFAULT_LTR; in resetAndAnalyzeBidi() 699 bidiRequest = Bidi.LEVEL_DEFAULT_RTL; in resetAndAnalyzeBidi() 702 bidiRequest = isRtl ? Bidi.RTL : Bidi.LTR; in resetAndAnalyzeBidi() 704 mBidi = new Bidi(mCopiedBuffer, 0, null, 0, mCopiedBuffer.length, bidiRequest); in resetAndAnalyzeBidi() [all …]
|
/frameworks/minikin/include/minikin/ |
D | Layout.h | 57 enum class Bidi : uint8_t { enum 66 inline bool isRtl(Bidi bidi) { in isRtl() 69 inline bool isOverride(Bidi bidi) { in isOverride() 89 Layout(const U16StringPiece& str, const Range& range, Bidi bidiFlags, const MinikinPaint& paint, in Layout() 97 Layout(const U16StringPiece& str, const Range& range, Bidi bidiFlags, const MinikinPaint& paint, in Layout() 108 static float measureText(const U16StringPiece& str, const Range& range, Bidi bidiFlags, in measureText() 116 static float measureText(const U16StringPiece& str, const Range& range, Bidi bidiFlags, in measureText() 124 static float measureText(const U16StringPiece& str, const Range& range, Bidi bidiFlags, 178 void doLayout(const U16StringPiece& str, const Range& range, Bidi bidiFlags,
|
D | Measurement.h | 36 void getBounds(const U16StringPiece& str, const Range& range, Bidi bidiFlags, 40 MinikinExtent getFontExtent(const U16StringPiece& str, const Range& range, Bidi bidiFlags,
|
/frameworks/base/libs/hwui/jni/text/ |
D | TextShaper.cpp | 47 int contextStart, int contextCount, minikin::Bidi bidiFlags, in shapeTextRun() 80 const minikin::Bidi bidiFlags = isRtl ? minikin::Bidi::FORCE_RTL : minikin::Bidi::FORCE_LTR; in TextShaper_shapeTextRunChars() 96 const minikin::Bidi bidiFlags = isRtl ? minikin::Bidi::FORCE_RTL : minikin::Bidi::FORCE_LTR; in TextShaper_shapeTextRunString()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.h | 45 static minikin::Layout doLayout(const Paint* paint, minikin::Bidi bidiFlags, 51 static void getBounds(const Paint* paint, minikin::Bidi bidiFlags, const Typeface* typeface, 54 static float measureText(const Paint* paint, minikin::Bidi bidiFlags, const Typeface* typeface, 58 static minikin::MinikinExtent getFontExtent(const Paint* paint, minikin::Bidi bidiFlags,
|
D | MinikinUtils.cpp | 63 minikin::Layout MinikinUtils::doLayout(const Paint* paint, minikin::Bidi bidiFlags, in doLayout() 87 void MinikinUtils::getBounds(const Paint* paint, minikin::Bidi bidiFlags, const Typeface* typeface, in getBounds() 99 float MinikinUtils::measureText(const Paint* paint, minikin::Bidi bidiFlags, in measureText() 116 minikin::MinikinExtent MinikinUtils::getFontExtent(const Paint* paint, minikin::Bidi bidiFlags, in getFontExtent()
|
D | Canvas.h | 42 enum class Bidi : uint8_t; 262 int contextCount, float x, float y, minikin::Bidi bidiFlags, 265 void drawTextOnPath(const uint16_t* text, int count, minikin::Bidi bidiFlags,
|
D | Canvas.cpp | 90 int contextCount, float x, float y, minikin::Bidi bidiFlags, in drawText() 198 void Canvas::drawTextOnPath(const uint16_t* text, int count, minikin::Bidi bidiFlags, in drawTextOnPath()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | EmojiTest.java | 23 import android.icu.text.Bidi; 106 final Bidi icuBidi = new Bidi(0 /* maxLength */, 0 /* maxRunCount */); in testIsNewEmoji_Emoji()
|
/frameworks/base/libs/hwui/jni/ |
D | Paint.cpp | 116 MinikinUtils::measureText(&paint, static_cast<minikin::Bidi>(bidiFlags), typeface, text, 0, in breakText() 208 paint, static_cast<minikin::Bidi>(bidiFlags), typeface, text, start, count, in doTextAdvances() 244 minikin::Bidi bidiFlags = dir == 1 ? minikin::Bidi::FORCE_RTL : minikin::Bidi::FORCE_LTR; in doTextRunCursor() 311 paint, static_cast<minikin::Bidi>(bidiFlags), typeface, in getTextPath() 356 minikin::Bidi bidiFlags = static_cast<minikin::Bidi>(bidiFlagsInt); in doTextBounds() 470 static_cast<minikin::Bidi>(bidiFlags), typeface, in hasGlyph() 494 static_cast<minikin::Bidi>(bidiFlags), typeface, in hasGlyph() 519 minikin::Bidi bidiFlags = isRtl ? minikin::Bidi::FORCE_RTL : minikin::Bidi::FORCE_LTR; in doRunAdvance() 583 minikin::Bidi bidiFlags = isRtl ? minikin::Bidi::FORCE_RTL : minikin::Bidi::FORCE_LTR; in doOffsetForAdvance() 649 minikin::Bidi bidiFlags = isRtl ? minikin::Bidi::FORCE_RTL : minikin::Bidi::FORCE_LTR; in doFontExtent()
|
D | android_graphics_Canvas.cpp | 656 static_cast<minikin::Bidi>(bidiFlags), *paint, typeface, nullptr /* measured text */); in drawTextChars() 679 static_cast<minikin::Bidi>(bidiFlags), *paint, typeface, nullptr /* measured text */); in drawTextString() 688 const minikin::Bidi bidiFlags = isRtl ? minikin::Bidi::FORCE_RTL : minikin::Bidi::FORCE_LTR; in drawTextRunChars() 704 const minikin::Bidi bidiFlags = isRtl ? minikin::Bidi::FORCE_RTL : minikin::Bidi::FORCE_LTR; in drawTextRunString() 732 static_cast<minikin::Bidi>(bidiFlags), *path, hOffset, vOffset, *paint, typeface); in drawTextOnPathChars() 753 get_canvas(canvasHandle)->drawTextOnPath(jchars, count, static_cast<minikin::Bidi>(bidiFlags), in drawTextOnPathString()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestUtils.cpp | 97 x, y, minikin::Bidi::LTR, paint, nullptr, nullptr /* measured text */); in drawUtf8ToCanvas() 103 canvas->drawTextOnPath(utf16.get(), strlen(text), minikin::Bidi::LTR, path, 0, 0, paint, in drawUtf8ToCanvas()
|
/frameworks/minikin/tests/stresstest/ |
D | MultithreadTest.cpp | 80 Layout layout(text, Range(0, text.size()), Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in thread_main()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | UnderlineTest.cpp | 91 return MinikinUtils::doLayout(&paint, minikin::Bidi::LTR, typeface, text.data(), text.size(), in doLayout()
|