Home
last modified time | relevance | path

Searched refs:TextDirection (Results 1 – 25 of 37) sorted by relevance

12

/external/libchrome/mojo/public/cpp/base/
Dtext_direction_mojom_traits.cc10 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 …]
Dtext_direction_unittest.cc11 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()
Dtext_direction_mojom_traits.h16 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()
Dtext_direction.typemap15 type_mappings = [ "mojo_base.mojom.TextDirection=base::i18n::TextDirection" ]
/external/skia/experimental/sktext/samples/
DText.cpp47 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/
Drtl.h30 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);
Drtl.cc58 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 …]
Dbidi_line_iterator_unittest.cc15 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));
Dbidi_line_iterator.cc14 UBiDiLevel GetParagraphLevelForDirection(TextDirection direction) { in GetParagraphLevelForDirection()
77 TextDirection direction, in Open()
Dbidi_line_iterator.h39 TextDirection direction,
Drtl_unittest.cc32 TextDirection direction; in TEST_F()
106 TextDirection direction; in TEST_F()
164 TextDirection direction; in TEST_F()
/external/skia/modules/skparagraph/src/
DParagraphStyle.cpp25 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/
Dtext_direction.mojom7 // Corresponds to |base::i18n::TextDirection| in base/i18n/rtl.h
8 enum TextDirection {
/external/skia/modules/skparagraph/include/
DDartTypes.h60 enum class TextDirection { enum
75 TextDirection direction;
77 TextBox(SkRect r, TextDirection d) : rect(r), direction(d) {} in TextBox()
DParagraphStyle.h95 TextDirection getTextDirection() const { return fTextDirection; } in getTextDirection()
96 void setTextDirection(TextDirection direction) { fTextDirection = direction; } in setTextDirection()
129 TextDirection fTextDirection;
/external/skia/experimental/sktext/include/
DProcessor.h66 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/
Dparagraph_bindings_gen.cpp92 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()
Dparagraph.js31 r['direction'] = CanvasKit.TextDirection.RTL;
33 r['direction'] = CanvasKit.TextDirection.LTR;
74 s['textDirection'] = s['textDirection'] || CanvasKit.TextDirection.LTR;
/external/skia/modules/skshaper/src/
DSkUnicode.h82 enum class TextDirection { enum
130 … (const char utf8[], int utf8Units, TextDirection dir, std::vector<BidiRegion>* results) = 0;
DSkUnicode_icu.cpp246 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/
DFuzzSkParagraph.cpp232 TextDirection td; in BuildParagraphStyle()
233 fuzz->nextEnum(&td, TextDirection::kRtl); in BuildParagraphStyle()
/external/skia/experimental/sktext/src/
DShaper.h39 TextDirection fDefaultTextDirection;
DShaper.cpp22 …->fUnicode.get(), text.c_str(), text.size(), fDefaultTextDirection == TextDirection::kLtr ? 0 : 1)… in process()
/external/skia/modules/skparagraph/samples/
DSampleParagraph.cpp1384 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/
Dparagraph.spec.js501 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,

12