/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...] |
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...] |
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...] |
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...] |
TestAll.java | 9 package android.icu.dev.test.bidi; 28 "android.icu.dev.test.bidi.TestCharFromDirProp", 29 "android.icu.dev.test.bidi.TestBidi", 30 "android.icu.dev.test.bidi.TestInverse", 31 "android.icu.dev.test.bidi.TestReorder", 32 "android.icu.dev.test.bidi.TestReorderArabicMathSymbols", 33 "android.icu.dev.test.bidi.TestFailureRecovery", 34 "android.icu.dev.test.bidi.TestMultipleParagraphs", 35 "android.icu.dev.test.bidi.TestReorderingMode", 36 "android.icu.dev.test.bidi.TestReorderRunsOnly" [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...] |
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...] |
TestContext.java | 9 package android.icu.dev.test.bidi; 11 import android.icu.text.Bidi; 41 /*00*/ new ContextCase("", "", "", "", Bidi.LTR), 42 /*01*/ new ContextCase("", ".-=JKL-+*", "", ".-=LKJ-+*", Bidi.LTR), 43 /*02*/ new ContextCase(" ", ".-=JKL-+*", " ", ".-=LKJ-+*", Bidi.LTR), 44 /*03*/ new ContextCase("a", ".-=JKL-+*", "b", ".-=LKJ-+*", Bidi.LTR), 45 /*04*/ new ContextCase("D", ".-=JKL-+*", "", "LKJ=-.-+*", Bidi.LTR), 46 /*05*/ new ContextCase("", ".-=JKL-+*", " D", ".-=*+-LKJ", Bidi.LTR), 47 /*06*/ new ContextCase("", ".-=JKL-+*", " 2", ".-=*+-LKJ", Bidi.LTR), 48 /*07*/ new ContextCase("", ".-=JKL-+*", " 7", ".-=*+-LKJ", Bidi.LTR) 73 Bidi bidi = new Bidi(); local [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...] |
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...] |
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...] |
TestAll.java | 8 package com.ibm.icu.dev.test.bidi; 24 "com.ibm.icu.dev.test.bidi.TestCharFromDirProp", 25 "com.ibm.icu.dev.test.bidi.TestBidi", 26 "com.ibm.icu.dev.test.bidi.TestInverse", 27 "com.ibm.icu.dev.test.bidi.TestReorder", 28 "com.ibm.icu.dev.test.bidi.TestReorderArabicMathSymbols", 29 "com.ibm.icu.dev.test.bidi.TestFailureRecovery", 30 "com.ibm.icu.dev.test.bidi.TestMultipleParagraphs", 31 "com.ibm.icu.dev.test.bidi.TestReorderingMode", 32 "com.ibm.icu.dev.test.bidi.TestReorderRunsOnly" [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...] |
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...] |
TestContext.java | 8 package com.ibm.icu.dev.test.bidi; 10 import com.ibm.icu.text.Bidi; 37 /*00*/ new ContextCase("", "", "", "", Bidi.LTR), 38 /*01*/ new ContextCase("", ".-=JKL-+*", "", ".-=LKJ-+*", Bidi.LTR), 39 /*02*/ new ContextCase(" ", ".-=JKL-+*", " ", ".-=LKJ-+*", Bidi.LTR), 40 /*03*/ new ContextCase("a", ".-=JKL-+*", "b", ".-=LKJ-+*", Bidi.LTR), 41 /*04*/ new ContextCase("D", ".-=JKL-+*", "", "LKJ=-.-+*", Bidi.LTR), 42 /*05*/ new ContextCase("", ".-=JKL-+*", " D", ".-=*+-LKJ", Bidi.LTR), 43 /*06*/ new ContextCase("", ".-=JKL-+*", " 2", ".-=*+-LKJ", Bidi.LTR), 44 /*07*/ new ContextCase("", ".-=JKL-+*", " 7", ".-=*+-LKJ", Bidi.LTR) 69 Bidi bidi = new Bidi(); local [all...] |
/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...] |
/libcore/luni/src/test/java/libcore/java/text/ |
OldBidiTest.java | 20 import java.text.Bidi; 27 Bidi bd = new Bidi("bidi", 173); 28 assertNotNull("Bidi representation is null", bd.toString()); 37 Bidi bidi = new Bidi("str", Bidi.DIRECTION_RIGHT_TO_LEFT); local 38 bidi.createLineBidi(2, 2) 144 Bidi bidi = new Bidi("test", Bidi.DIRECTION_LEFT_TO_RIGHT); local [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
BidiBenchmark.java | 21 import java.text.Bidi; 31 Bidi bidi = new Bidi(charIter); local 37 Bidi bd = new Bidi(new char[]{'s', 's', 's'}, 0, new byte[]{(byte) 1, 38 (byte) 2, (byte) 3}, 0, 3, Bidi.DIRECTION_RIGHT_TO_LEFT); 44 Bidi bidi = new Bidi("Hello", Bidi.DIRECTION_LEFT_TO_RIGHT) local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
BidiWriter.java | 18 /** Bidi control code points */ 43 switch(options&(Bidi.REMOVE_BIDI_CONTROLS|Bidi.DO_MIRRORING)) { 48 case Bidi.DO_MIRRORING: { 62 case Bidi.REMOVE_BIDI_CONTROLS: { 65 /* copy the LTR run and remove any Bidi control characters */ 70 if(!Bidi.IsBidiControlChar(c)) { 79 /* remove Bidi control characters and do mirroring */ 85 if(!Bidi.IsBidiControlChar(c)) { 115 * whether Bidi control characters should be removed, an [all...] |
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/ |
BidiWriter.java | 17 /** Bidi control code points */ 42 switch(options&(Bidi.REMOVE_BIDI_CONTROLS|Bidi.DO_MIRRORING)) { 47 case Bidi.DO_MIRRORING: { 61 case Bidi.REMOVE_BIDI_CONTROLS: { 64 /* copy the LTR run and remove any Bidi control characters */ 69 if(!Bidi.IsBidiControlChar(c)) { 78 /* remove Bidi control characters and do mirroring */ 84 if(!Bidi.IsBidiControlChar(c)) { 114 * whether Bidi control characters should be removed, an [all...] |
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...] |
/frameworks/base/tools/layoutlib/bridge/src/android/text/ |
AndroidBidi_Delegate.java | 23 import android.icu.text.Bidi; 40 dir = Bidi.LTR; 43 dir = Bidi.RTL; 46 dir = Bidi.LEVEL_DEFAULT_RTL; 49 dir = Bidi.LEVEL_DEFAULT_LTR; 54 dir = Bidi.LEVEL_DEFAULT_LTR; 56 Bidi bidi = new Bidi(chars, 0, null, 0, count, dir); local 59 charInfo[i] = bidi.getLevelAt(i) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
BidiTest.java | 21 import java.text.Bidi; 28 Bidi bd; 30 public static void assertRunArrayEquals(int[][] expected, Bidi bidi) { 31 assertEquals("different length", expected.length, bidi.getRunCount()); 33 FORRUN: for (int i = 0; i < bidi.getRunCount(); i++) { 34 int[] butWas = new int[] { bidi.getRunStart(i), 35 bidi.getRunLimit(i), bidi.getRunLevel(i) }; 50 bd = new Bidi(null, Bidi.DIRECTION_RIGHT_TO_LEFT) 807 Bidi bidi = new Bidi("str", 1); local [all...] |