/external/libchrome/mojo/public/cpp/base/ |
D | text_direction_mojom_traits.cc | 10 mojo_base::mojom::TextDirection 11 EnumTraits<mojo_base::mojom::TextDirection, base::i18n::TextDirection>::ToMojom( in ToMojom() 12 base::i18n::TextDirection text_direction) { in ToMojom() 15 return mojo_base::mojom::TextDirection::UNKNOWN_DIRECTION; in ToMojom() 17 return mojo_base::mojom::TextDirection::RIGHT_TO_LEFT; in ToMojom() 19 return mojo_base::mojom::TextDirection::LEFT_TO_RIGHT; in ToMojom() 22 return mojo_base::mojom::TextDirection::UNKNOWN_DIRECTION; in ToMojom() 26 bool EnumTraits<mojo_base::mojom::TextDirection, base::i18n::TextDirection>:: 27 FromMojom(mojo_base::mojom::TextDirection input, in FromMojom() 28 base::i18n::TextDirection* out) { in FromMojom() [all …]
|
D | text_direction_unittest.cc | 11 TEST(TextDirectionTest, TextDirection) { in TEST() argument 12 static constexpr base::i18n::TextDirection kTestDirections[] = { in TEST() 17 base::i18n::TextDirection direction_out; in TEST() 19 mojo_base::mojom::TextDirection serialized_direction = in TEST() 20 mojo::EnumTraits<mojo_base::mojom::TextDirection, in TEST() 21 base::i18n::TextDirection>::ToMojom(direction_in); in TEST() 23 mojo_base::mojom::TextDirection, in TEST() 24 base::i18n::TextDirection>::FromMojom(serialized_direction, in TEST()
|
D | text_direction_mojom_traits.h | 16 EnumTraits<mojo_base::mojom::TextDirection, base::i18n::TextDirection> { in COMPONENT_EXPORT() 17 static mojo_base::mojom::TextDirection ToMojom( in COMPONENT_EXPORT() 18 base::i18n::TextDirection text_direction); in COMPONENT_EXPORT() 19 static bool FromMojom(mojo_base::mojom::TextDirection input, in COMPONENT_EXPORT() 20 base::i18n::TextDirection* out); in COMPONENT_EXPORT()
|
D | text_direction.typemap | 15 type_mappings = [ "mojo_base.mojom.TextDirection=base::i18n::TextDirection" ]
|
/external/skia/experimental/sktext/samples/ |
D | Text.cpp | 47 TextDirection direction = TextDirection::kLtr) { in drawLine() 57 …Processor::drawText(direction == TextDirection::kRtl ? mirror(text).c_str() : normal(text).c_str(), in drawLine() 96 drawLine(canvas, width, height, line, TextAlign::kLeft, TextDirection::kLtr); in onDrawContent() 98 drawLine(canvas, width, height, line, TextAlign::kRight, TextDirection::kLtr); in onDrawContent() 100 drawLine(canvas, width, height, line, TextAlign::kCenter, TextDirection::kLtr); in onDrawContent() 102 drawLine(canvas, width, height, line, TextAlign::kJustify, TextDirection::kLtr); in onDrawContent() 105 drawLine(canvas, width, height, line, TextAlign::kLeft, TextDirection::kRtl); in onDrawContent() 107 drawLine(canvas, width, height, line, TextAlign::kRight, TextDirection::kRtl); in onDrawContent() 109 drawLine(canvas, width, height, line, TextAlign::kCenter, TextDirection::kRtl); in onDrawContent() 111 drawLine(canvas, width, height, line, TextAlign::kJustify, TextDirection::kRtl); in onDrawContent()
|
/external/libchrome/base/i18n/ |
D | rtl.h | 30 enum TextDirection { enum 68 BASE_I18N_EXPORT TextDirection GetForcedTextDirection(); 73 BASE_I18N_EXPORT TextDirection 77 BASE_I18N_EXPORT TextDirection GetTextDirectionForLocale( 86 BASE_I18N_EXPORT TextDirection GetFirstStrongCharacterDirection( 88 BASE_I18N_EXPORT TextDirection GetLastStrongCharacterDirection( 97 BASE_I18N_EXPORT TextDirection GetStringDirection(const string16& text);
|
D | rtl.cc | 58 base::i18n::TextDirection GetCharacterDirection(UChar32 character) { in GetCharacterDirection() 93 static TextDirection g_icu_text_direction = UNKNOWN_DIRECTION; 170 TextDirection GetForcedTextDirection() { in GetForcedTextDirection() 192 TextDirection GetTextDirectionForLocaleInStartUp(const char* locale_name) { in GetTextDirectionForLocaleInStartUp() 194 TextDirection forced_direction = GetForcedTextDirection(); in GetTextDirectionForLocaleInStartUp() 211 TextDirection GetTextDirectionForLocale(const char* locale_name) { in GetTextDirectionForLocale() 213 TextDirection forced_direction = GetForcedTextDirection(); in GetTextDirectionForLocale() 224 TextDirection GetFirstStrongCharacterDirection(const string16& text) { in GetFirstStrongCharacterDirection() 232 TextDirection direction = GetCharacterDirection(character); in GetFirstStrongCharacterDirection() 240 TextDirection GetLastStrongCharacterDirection(const string16& text) { in GetLastStrongCharacterDirection() [all …]
|
D | bidi_line_iterator_unittest.cc | 15 class BiDiLineIteratorTest : public testing::TestWithParam<TextDirection> { 41 if (GetParam() == TextDirection::RIGHT_TO_LEFT) in TEST_P() 71 if (GetParam() == TextDirection::RIGHT_TO_LEFT) { in TEST_P() 179 size_t visual_index = GetParam() == TextDirection::RIGHT_TO_LEFT in TEST_P() 193 : (GetParam() == TextDirection::RIGHT_TO_LEFT ? 2 : 0); in TEST_P() 204 ::testing::Values(TextDirection::LEFT_TO_RIGHT, 205 TextDirection::RIGHT_TO_LEFT));
|
D | bidi_line_iterator.cc | 14 UBiDiLevel GetParagraphLevelForDirection(TextDirection direction) { in GetParagraphLevelForDirection() 77 TextDirection direction, in Open()
|
D | bidi_line_iterator.h | 39 TextDirection direction,
|
D | rtl_unittest.cc | 32 TextDirection direction; in TEST_F() 106 TextDirection direction; in TEST_F() 164 TextDirection direction; in TEST_F()
|
/external/skia/modules/skparagraph/src/ |
D | ParagraphStyle.cpp | 25 fTextDirection = TextDirection::kLtr; in ParagraphStyle() 34 return (fTextDirection == TextDirection::kLtr) ? TextAlign::kLeft : TextAlign::kRight; in effective_align() 36 return (fTextDirection == TextDirection::kLtr) ? TextAlign::kRight : TextAlign::kLeft; in effective_align()
|
/external/libchrome/mojo/public/mojom/base/ |
D | text_direction.mojom | 7 // Corresponds to |base::i18n::TextDirection| in base/i18n/rtl.h 8 enum TextDirection {
|
/external/skia/modules/skparagraph/include/ |
D | DartTypes.h | 60 enum class TextDirection { enum 75 TextDirection direction; 77 TextBox(SkRect r, TextDirection d) : rect(r), direction(d) {} in TextBox()
|
D | ParagraphStyle.h | 95 TextDirection getTextDirection() const { return fTextDirection; } in getTextDirection() 96 void setTextDirection(TextDirection direction) { fTextDirection = direction; } in setTextDirection() 129 TextDirection fTextDirection;
|
/external/skia/experimental/sktext/include/ |
D | Processor.h | 66 TextFormatStyle(TextAlign textAlign, TextDirection defaultTextDirection) in TextFormatStyle() 69 TextDirection fDefaultTextDirection; 74 TextFontStyle(TextDirection textDirection, sk_sp<SkFontMgr> fontManager) in TextFontStyle() 76 TextDirection fTextDirection;
|
/external/skia/modules/canvaskit/ |
D | paragraph_bindings_gen.cpp | 92 enum_<para::TextDirection>("TextDirection") in EMSCRIPTEN_BINDINGS() 93 .value("LTR", para::TextDirection::kLtr) in EMSCRIPTEN_BINDINGS() 94 .value("RTL", para::TextDirection::kRtl); in EMSCRIPTEN_BINDINGS()
|
D | paragraph.js | 31 r['direction'] = CanvasKit.TextDirection.RTL; 33 r['direction'] = CanvasKit.TextDirection.LTR; 74 s['textDirection'] = s['textDirection'] || CanvasKit.TextDirection.LTR;
|
/external/skia/modules/skshaper/src/ |
D | SkUnicode.h | 82 enum class TextDirection { enum 130 … (const char utf8[], int utf8Units, TextDirection dir, std::vector<BidiRegion>* results) = 0;
|
D | SkUnicode_icu.cpp | 246 TextDirection dir, in extractBidi() 264 uint8_t bidiLevel = (dir == TextDirection::kLTR) ? UBIDI_LTR : UBIDI_RTL; in extractBidi() 463 TextDirection dir, in getBidiRegions()
|
/external/skia/fuzz/ |
D | FuzzSkParagraph.cpp | 232 TextDirection td; in BuildParagraphStyle() 233 fuzz->nextEnum(&td, TextDirection::kRtl); in BuildParagraphStyle()
|
/external/skia/experimental/sktext/src/ |
D | Shaper.h | 39 TextDirection fDefaultTextDirection;
|
D | Shaper.cpp | 22 …->fUnicode.get(), text.c_str(), text.size(), fDefaultTextDirection == TextDirection::kLtr ? 0 : 1)… in process()
|
/external/skia/modules/skparagraph/samples/ |
D | SampleParagraph.cpp | 1384 paragraph_style.setTextDirection(TextDirection::kRtl); in onDrawContent() 1756 paragraph_style.setTextDirection(direction ? TextDirection::kLtr : TextDirection::kRtl); in onDrawContent() 1842 paragraph_style.setTextDirection(TextDirection::kRtl); in onDrawContent() 2045 … auto draw = [&](SkScalar width, SkScalar height, TextDirection td, TextAlign ta, const char* t) { in onDrawContent() 2048 td == TextDirection::kLtr ? "left" : "right", in onDrawContent() 2094 box.direction == TextDirection::kLtr ? "left" : "right"); in onDrawContent() 2104 draw(w, h, TextDirection::kRtl, TextAlign::kRight, "RTL+RIGHT#1234567890"); in onDrawContent() 2105 draw(w, h, TextDirection::kRtl, TextAlign::kRight, "قففغغغغقففغغغغقففغغغ"); in onDrawContent() 2107 draw(w, h, TextDirection::kLtr, TextAlign::kRight, "LTR+RIGHT#1234567890"); in onDrawContent() 2108 draw(w, h, TextDirection::kLtr, TextAlign::kRight, "قففغغغغقففغغغغقففغغغ"); in onDrawContent() [all …]
|
/external/skia/modules/canvaskit/tests/ |
D | paragraph.spec.js | 501 expect(rect.direction.value).toEqual(CanvasKit.TextDirection.LTR.value); 644 textDirection: CanvasKit.TextDirection.RTL, 701 textDirection: CanvasKit.TextDirection.RTL, 903 textDirection: CanvasKit.TextDirection.RTL, 954 textDirection: CanvasKit.TextDirection.RTL,
|