Home
last modified time | relevance | path

Searched refs:actualLevels (Results 1 – 3 of 3) sorted by relevance

/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/
DBiDiConformanceTest.java80 byte actualLevels[] = ubidi.getLevels(); in TestBidiTest()
82 if (!checkLevels(actualLevels)) { in TestBidiTest()
256 byte[] actualLevels = ubidi.getLevels(); in TestBidiCharacterTest()
257 if (!checkLevels(actualLevels)) { in TestBidiCharacterTest()
484 private static int getDirectionBits(byte actualLevels[]) { in getDirectionBits() argument
486 for(int i=0; i<actualLevels.length; ++i) { in getDirectionBits()
487 actualDirectionBits|=(1<<(actualLevels[i]&1)); in getDirectionBits()
491 private boolean checkLevels(byte actualLevels[]) { in checkLevels() argument
493 if(levelsCount!=actualLevels.length) { in checkLevels()
494 … ------------ Wrong number of level values; expected "+levelsCount+" actual "+actualLevels.length); in checkLevels()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/bidi/
DBiDiConformanceTest.java83 byte actualLevels[] = ubidi.getLevels(); in TestBidiTest()
85 if (!checkLevels(actualLevels)) { in TestBidiTest()
259 byte[] actualLevels = ubidi.getLevels(); in TestBidiCharacterTest()
260 if (!checkLevels(actualLevels)) { in TestBidiCharacterTest()
487 private static int getDirectionBits(byte actualLevels[]) { in getDirectionBits() argument
489 for(int i=0; i<actualLevels.length; ++i) { in getDirectionBits()
490 actualDirectionBits|=(1<<(actualLevels[i]&1)); in getDirectionBits()
494 private boolean checkLevels(byte actualLevels[]) { in checkLevels() argument
496 if(levelsCount!=actualLevels.length) { in checkLevels()
497 … ------------ Wrong number of level values; expected "+levelsCount+" actual "+actualLevels.length); in checkLevels()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dbidiconf.cpp48 UBool checkLevels(const UBiDiLevel actualLevels[], int32_t actualCount);
335 const UBiDiLevel *actualLevels=ubidi_getLevels(ubidi.getAlias(), errorCode); in TestBidiTest() local
341 if(!checkLevels(actualLevels, ubidi_getProcessedLength(ubidi.getAlias()))) { in TestBidiTest()
544 const UBiDiLevel *actualLevels=ubidi_getLevels(ubidi.getAlias(), errorCode); in TestBidiCharacterTest() local
556 if(!checkLevels(actualLevels, ubidi_getProcessedLength(ubidi.getAlias()))) { in TestBidiCharacterTest()
573 static uint32_t getDirectionBits(const UBiDiLevel actualLevels[], int32_t actualCount) { in getDirectionBits() argument
576 actualDirectionBits|=(1<<(actualLevels[i]&1)); in getDirectionBits()
581 UBool BiDiConformanceTest::checkLevels(const UBiDiLevel actualLevels[], int32_t actualCount) { in checkLevels() argument
589 if(levels[i]!=actualLevels[i] && levels[i]<UBIDI_DEFAULT_LTR) { in checkLevels()
590 if(directionBits!=3 && directionBits==getDirectionBits(actualLevels, actualCount)) { in checkLevels()
[all …]