/external/pdfium/core/src/fxcrt/ |
fx_bidi_unittest.cpp | 19 CFX_BidiChar bidi; local 20 CFX_BidiChar::Direction dir = bidi.GetBidiInfo(nullptr, nullptr); 23 dir = bidi.GetBidiInfo(&start, nullptr); 27 dir = bidi.GetBidiInfo(nullptr, &count); 33 dir = bidi.GetBidiInfo(&start, &count); 38 EXPECT_FALSE(bidi.EndChar()); 44 CFX_BidiChar bidi; local 46 EXPECT_TRUE(bidi.AppendChar(kLeftChar)); 47 CFX_BidiChar::Direction dir = bidi.GetBidiInfo(&start, &count); 51 EXPECT_FALSE(bidi.AppendChar(kLeftChar)) 71 CFX_BidiChar bidi; local 106 CFX_BidiChar bidi; local [all...] |
fx_bidi.cpp | 25 Direction bidi = NEUTRAL; local 30 bidi = LEFT; 34 bidi = RIGHT; 38 bool bRet = (bidi != m_CurBidi); 41 m_CurBidi = bidi;
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bidi/ |
TestFailureRecovery.java | 9 package android.icu.dev.test.bidi; 11 import android.icu.text.Bidi; 16 * Regression test for Bidi failure recovery 27 Bidi bidi = new Bidi(); local 31 // bidi.setPara("abc", (byte)(Bidi.LEVEL_DEFAULT_LTR - 1), null); 32 // errln("Bidi.setPara did not fail when passed too big para level"); 34 // logln("OK: Got exception for bidi.setPara(..., Bidi.LEVEL_DEFAULT_LTR - 1, ...) [all...] |
TestBidi.java | 9 package android.icu.dev.test.bidi; 13 import android.icu.text.Bidi; 19 * Regression test for Bidi class override. 31 Bidi bidi; local 32 Bidi bidiLine; 35 bidi = new Bidi(MAXLEN, 0); 36 bidiLine = new Bidi(); 38 doTests(bidi, bidiLine, false) 381 Bidi bidi = new Bidi(120, 66), bidiLine; local [all...] |
TestCompatibility.java | 9 package android.icu.dev.test.bidi; 16 import android.icu.text.Bidi; 21 * Regression test for java.text.Bidi compatibility 29 void compareBidi(Bidi bidi, java.text.Bidi jbidi) 31 byte paraLevel = bidi.getParaLevel(); 32 if (bidi.baseIsLeftToRight() != jbidi.baseIsLeftToRight()) { 35 u16ToPseudo(bidi.getTextAsString()) + 36 "\n bidi: " + bidi.baseIsLeftToRight() 177 Bidi bidi; local [all...] |
TestInverse.java | 9 package android.icu.dev.test.bidi; 14 import android.icu.text.Bidi; 19 * Regression test for the basic "inverse" Bidi mode. 39 Bidi bidi; local 43 bidi = new Bidi(); 44 log("inverse Bidi: testInverse(L) with " + testCases.length + 48 _testInverseBidi(bidi, testCases[i], Bidi.DIRECTION_LEFT_TO_RIGHT) 238 Bidi bidi = new Bidi(); local 261 Bidi bidi = new Bidi(); local [all...] |
TestReorderingMode.java | 9 package android.icu.dev.test.bidi; 13 import android.icu.text.Bidi; 186 Bidi.REORDER_GROUP_NUMBERS_WITH_R, 187 Bidi.REORDER_INVERSE_LIKE_DIRECT, 188 Bidi.REORDER_NUMBERS_SPECIAL, 189 Bidi.REORDER_INVERSE_FOR_NUMBERS_SPECIAL, 190 Bidi.REORDER_INVERSE_NUMBERS_AS_L 193 static final int[] options = { Bidi.OPTION_INSERT_MARKS, 0 }; 195 static final byte[] paraLevels = { Bidi.LTR, Bidi.RTL } 205 Bidi bidi = new Bidi(); local [all...] |
TestMultipleParagraphs.java | 9 package android.icu.dev.test.bidi; 14 import android.icu.text.Bidi; 20 * Regression test for Bidi multiple paragraphs 45 Bidi.LTR, Bidi.RTL, Bidi.LEVEL_DEFAULT_LTR, Bidi.LEVEL_DEFAULT_RTL, 22, 23 86 Bidi bidi = new Bidi(); local [all...] |
TestReorderRunsOnly.java | 9 package android.icu.dev.test.bidi; 11 import android.icu.text.Bidi; 116 Bidi bidi = new Bidi(); local 117 Bidi bidiL2V = new Bidi(); 124 bidi.setReorderingMode(Bidi.REORDER_RUNS_ONLY); 125 bidiL2V.setReorderingOptions(Bidi.OPTION_REMOVE_CONTROLS) [all...] |
TestReorder.java | 9 package android.icu.dev.test.bidi; 11 import android.icu.text.Bidi; 116 Bidi bidi = new Bidi(); local 128 bidi.setPara(srcU16, Bidi.LEVEL_DEFAULT_LTR, null); 130 errln("Bidi.setPara(tests[" + testNumber + "], paraLevel " + 131 Bidi.LEVEL_DEFAULT_LTR + " failed."); 134 dest = u16ToPseudo(bidi.writeReordered(Bidi.DO_MIRRORING)) [all...] |
TestStreaming.java | 9 package android.icu.dev.test.bidi; 12 import android.icu.text.Bidi; 71 static final byte[] paraLevels = { Bidi.LTR, Bidi.RTL }; 76 Bidi bidi; local 86 bidi = new Bidi(); 88 bidi.orderParagraphsLTR(true); 102 bidi.setReorderingOptions(Bidi.OPTION_STREAMING) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/ |
TestFailureRecovery.java | 8 package com.ibm.icu.dev.test.bidi; 10 import com.ibm.icu.text.Bidi; 13 * Regression test for Bidi failure recovery 23 Bidi bidi = new Bidi(); local 27 // bidi.setPara("abc", (byte)(Bidi.LEVEL_DEFAULT_LTR - 1), null); 28 // errln("Bidi.setPara did not fail when passed too big para level"); 30 // logln("OK: Got exception for bidi.setPara(..., Bidi.LEVEL_DEFAULT_LTR - 1, ...) [all...] |
TestCompatibility.java | 8 package com.ibm.icu.dev.test.bidi; 15 import com.ibm.icu.text.Bidi; 18 * Regression test for java.text.Bidi compatibility 25 void compareBidi(Bidi bidi, java.text.Bidi jbidi) 27 byte paraLevel = bidi.getParaLevel(); 28 if (bidi.baseIsLeftToRight() != jbidi.baseIsLeftToRight()) { 31 u16ToPseudo(bidi.getTextAsString()) + 32 "\n bidi: " + bidi.baseIsLeftToRight() 173 Bidi bidi; local [all...] |
TestBidi.java | 8 package com.ibm.icu.dev.test.bidi; 12 import com.ibm.icu.text.Bidi; 16 * Regression test for Bidi class override. 27 Bidi bidi; local 28 Bidi bidiLine; 31 bidi = new Bidi(MAXLEN, 0); 32 bidiLine = new Bidi(); 34 doTests(bidi, bidiLine, false) 377 Bidi bidi = new Bidi(120, 66), bidiLine; local [all...] |
TestReorderingMode.java | 8 package com.ibm.icu.dev.test.bidi; 12 import com.ibm.icu.text.Bidi; 182 Bidi.REORDER_GROUP_NUMBERS_WITH_R, 183 Bidi.REORDER_INVERSE_LIKE_DIRECT, 184 Bidi.REORDER_NUMBERS_SPECIAL, 185 Bidi.REORDER_INVERSE_FOR_NUMBERS_SPECIAL, 186 Bidi.REORDER_INVERSE_NUMBERS_AS_L 189 static final int[] options = { Bidi.OPTION_INSERT_MARKS, 0 }; 191 static final byte[] paraLevels = { Bidi.LTR, Bidi.RTL } 201 Bidi bidi = new Bidi(); local [all...] |
TestInverse.java | 8 package com.ibm.icu.dev.test.bidi; 13 import com.ibm.icu.text.Bidi; 16 * Regression test for the basic "inverse" Bidi mode. 35 Bidi bidi; local 39 bidi = new Bidi(); 40 log("inverse Bidi: testInverse(L) with " + testCases.length + 44 _testInverseBidi(bidi, testCases[i], Bidi.DIRECTION_LEFT_TO_RIGHT) 234 Bidi bidi = new Bidi(); local 257 Bidi bidi = new Bidi(); local [all...] |
TestMultipleParagraphs.java | 8 package com.ibm.icu.dev.test.bidi; 13 import com.ibm.icu.text.Bidi; 17 * Regression test for Bidi multiple paragraphs 41 Bidi.LTR, Bidi.RTL, Bidi.LEVEL_DEFAULT_LTR, Bidi.LEVEL_DEFAULT_RTL, 22, 23 82 Bidi bidi = new Bidi(); local [all...] |
TestReorderRunsOnly.java | 8 package com.ibm.icu.dev.test.bidi; 10 import com.ibm.icu.text.Bidi; 112 Bidi bidi = new Bidi(); local 113 Bidi bidiL2V = new Bidi(); 120 bidi.setReorderingMode(Bidi.REORDER_RUNS_ONLY); 121 bidiL2V.setReorderingOptions(Bidi.OPTION_REMOVE_CONTROLS) [all...] |
TestReorder.java | 8 package com.ibm.icu.dev.test.bidi; 10 import com.ibm.icu.text.Bidi; 112 Bidi bidi = new Bidi(); local 124 bidi.setPara(srcU16, Bidi.LEVEL_DEFAULT_LTR, null); 126 errln("Bidi.setPara(tests[" + testNumber + "], paraLevel " + 127 Bidi.LEVEL_DEFAULT_LTR + " failed."); 130 dest = u16ToPseudo(bidi.writeReordered(Bidi.DO_MIRRORING)) [all...] |
TestStreaming.java | 8 package com.ibm.icu.dev.test.bidi; 11 import com.ibm.icu.text.Bidi; 67 static final byte[] paraLevels = { Bidi.LTR, Bidi.RTL }; 72 Bidi bidi; local 82 bidi = new Bidi(); 84 bidi.orderParagraphsLTR(true); 98 bidi.setReorderingOptions(Bidi.OPTION_STREAMING) [all...] |
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
BiDiTestConstants.java | 17 package com.android.bidi;
|
BiDiTestCanvas2.java | 17 package com.android.bidi; 26 import static com.android.bidi.BiDiTestConstants.FONT_MAX_SIZE; 27 import static com.android.bidi.BiDiTestConstants.FONT_MIN_SIZE;
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
Bidi.java | 9 * algorithm for direct BiDi, algorithm for inverse Bidi and the bizarre 32 * <h2>Bidi algorithm for ICU</h2> 41 * accordingly are sometimes called "Storage Layout Engines". ICU's Bidi and 53 * embedding level after performing the Bidi algorithm. 58 * with the Bidi class <code>Block Separator</code>. For handling of 88 * Bidi implementation would resolve it to.</li> 116 * Reordering mode values indicate which variant of the Bidi algorithm to 131 * Reordering options can be applied during Bidi text transformations. 145 * <h4> Sample code for the ICU Bidi API </h4 422 private java.text.Bidi bidi; field in class:Bidi [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
BidiLine.java | 25 * the Unicode 3.0 Bidi algorithm as defined in 29 * This means that there is a Bidi object with a levels 60 * This allows a line Bidi object to use the same levels array as 63 * When a Bidi object is created for a line of a paragraph, then the 84 static void setTrailingWSStart(Bidi bidi) 86 byte[] dirProps = bidi.dirProps; 87 byte[] levels = bidi.levels; 88 int start = bidi.length; 89 byte paraLevel = bidi.paraLevel [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
BidiLine.java | 24 * the Unicode 3.0 Bidi algorithm as defined in 28 * This means that there is a Bidi object with a levels 59 * This allows a line Bidi object to use the same levels array as 62 * When a Bidi object is created for a line of a paragraph, then the 83 static void setTrailingWSStart(Bidi bidi) 85 byte[] dirProps = bidi.dirProps; 86 byte[] levels = bidi.levels; 87 int start = bidi.length; 88 byte paraLevel = bidi.paraLevel [all...] |