Home
last modified time | relevance | path

Searched refs:AttributedCharacterIterator (Results 1 – 22 of 22) sorted by relevance

/libcore/luni/src/test/java/libcore/java/text/
DOldAttributedCharacterIteratorTest.java20 import java.text.AttributedCharacterIterator;
29 AttributedCharacterIterator it;
34 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, "a", 2, in test_getRunLimitLSet()
36 AttributedCharacterIterator it = as.getIterator(); in test_getRunLimitLSet()
37 HashSet<AttributedCharacterIterator.Attribute> attr = in test_getRunLimitLSet()
38 new HashSet<AttributedCharacterIterator.Attribute>(); in test_getRunLimitLSet()
39 attr.add(AttributedCharacterIterator.Attribute.LANGUAGE); in test_getRunLimitLSet()
44 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, null, in test_getRunLimitLSet()
50 attr.add(AttributedCharacterIterator.Attribute.READING); in test_getRunLimitLSet()
57 AttributedCharacterIterator it = as.getIterator(); in test_getAllAttributeKeys()
[all …]
DOldAttributedStringTest.java19 import java.text.AttributedCharacterIterator;
31 AttributedCharacterIterator it = attrString.getIterator(); in assertEqualString()
43 AttributedCharacterIterator iter = attrString.getIterator(); in test_ConstructorLAttributedCharacterIterator_1()
51 AttributedCharacterIterator iter = attrString.getIterator(); in test_ConstructorLAttributedCharacterIterator_2()
94 AttributedCharacterIterator iter = attrString.getIterator(); in test_ConstructorLAttributedCharacterIterator_3()
97 … attrString2 = new AttributedString(iter, 2, 7, new AttributedCharacterIterator.Attribute[] {}); in test_ConstructorLAttributedCharacterIterator_3()
143AttributedCharacterIterator.Attribute[] attributes = new AttributedCharacterIterator.Attribute[1]; in test_ConstructorLAttributedCharacterIteratorII$Ljava_text_AttributedCharacterIterator$Attribute()
170 new WeakHashMap<AttributedCharacterIterator.Attribute, String>()); in test_ConstructorLjava_lang_StringLjava_util_Map()
171 AttributedCharacterIterator it = attrString.getIterator(); in test_ConstructorLjava_lang_StringLjava_util_Map()
185 …Map<AttributedCharacterIterator.Attribute, String> whm = new WeakHashMap<AttributedCharacterIterat… in test_ConstructorLjava_lang_StringLjava_util_Map()
[all …]
DOldAttributedCharacterIteratorAttributeTest.java25 import java.text.AttributedCharacterIterator;
32 AttributedCharacterIterator.Attribute {
52 AttributedCharacterIterator.Attribute {
92 AttributedCharacterIterator.Attribute mac4 = mac1; in test_equalsLjava_lang_Object()
133 AttributedCharacterIterator.Attribute mac4 = mac1; in test_hashCode()
163 AttributedCharacterIterator.Attribute attr1, attr2; in test_readResolve()
165 attr1 = AttributedCharacterIterator.Attribute.LANGUAGE; in test_readResolve()
173 attr2 = (AttributedCharacterIterator.Attribute) in.readObject(); in test_readResolve()
DAttributedCharacterIteratorAttributeTest.java21 import java.text.AttributedCharacterIterator;
34 assertSameReserialized(AttributedCharacterIterator.Attribute.LANGUAGE); in testSerialization()
41 AttributedCharacterIterator.Attribute a = new CustomAttribute(); in testSerializingSubclass()
53 private static class CustomAttribute extends AttributedCharacterIterator.Attribute {
DOldFormatTest.java20 import java.text.AttributedCharacterIterator;
68 AttributedCharacterIterator aci = mf.formatToCharacterIterator("Test 123 Test"); in test_formatToCharacterIteratorLjava_lang_Object()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DAttributedStringTest.java19 import java.text.AttributedCharacterIterator;
35 AttributedCharacterIterator it = attrString.getIterator(); in test_ConstructorLjava_lang_String()
59 private class testAttributedCharacterIterator implements AttributedCharacterIterator {
63 public Object getAttribute(AttributedCharacterIterator.Attribute p) { in getAttribute()
72 public int getRunLimit(AttributedCharacterIterator.Attribute p) { in getRunLimit()
81 public int getRunStart(AttributedCharacterIterator.Attribute p) { in getRunStart()
121 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, "a", 2, in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
123 AttributedCharacterIterator it = as.getIterator(); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
125 .getRunLimit(AttributedCharacterIterator.Attribute.LANGUAGE)); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
128 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, null, in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
[all …]
DAttributedCharacterIteratorTest.java20 import java.text.AttributedCharacterIterator;
32 AttributedCharacterIterator it = attrString.getIterator(); in test_current()
52 AttributedCharacterIterator it = attrString.getIterator(); in test_first()
68 AttributedCharacterIterator it = attrString.getIterator(null, 2, 6); in test_getBeginIndex()
78 AttributedCharacterIterator it = attrString.getIterator(null, 2, 6); in test_getEndIndex()
88 AttributedCharacterIterator it = attrString.getIterator(); in test_getIndex()
105 AttributedCharacterIterator it = attrString.getIterator(); in test_last()
121 AttributedCharacterIterator it = attrString.getIterator(); in test_next()
138 AttributedCharacterIterator it = attrString.getIterator(); in test_previous()
149 AttributedCharacterIterator it = attrString.getIterator(); in test_setIndexI()
[all …]
DAttributedCharacterIteratorAttributeTest.java20 import java.text.AttributedCharacterIterator;
21 import java.text.AttributedCharacterIterator.Attribute;
78 AttributedCharacterIterator.Attribute dattribute, dattribute2; in test_readResolve()
82 dattribute = AttributedCharacterIterator.Attribute.LANGUAGE; in test_readResolve()
97 dattribute2 = (AttributedCharacterIterator.Attribute) in.readObject(); in test_readResolve()
138 class MyAttribute extends AttributedCharacterIterator.Attribute {
DSupport_Format.java20 import java.text.AttributedCharacterIterator;
23 import java.text.AttributedCharacterIterator.Attribute;
81 protected static Vector<FieldContainer> findFields(AttributedCharacterIterator iterator) { in findFields()
89 AttributedCharacterIterator.Attribute attribute = it.next(); in findFields()
DDecimalFormatTest.java24 import java.text.AttributedCharacterIterator;
55 AttributedCharacterIterator iterator = new DecimalFormat().formatToCharacterIterator( in testAttributedCharacterIterator()
2013 AttributedCharacterIterator iterator; in test_formatToCharacterIterator()
2087 AttributedCharacterIterator iterator; in test_formatToCharacterIterator_veryLarge()
/libcore/luni/src/main/java/java/text/
DAttributedString.java20 import java.text.AttributedCharacterIterator.Attribute;
39 Map<AttributedCharacterIterator.Attribute, List<Range>> attributeMap;
55 static class AttributedIterator implements AttributedCharacterIterator {
71 AttributedCharacterIterator.Attribute[] attributes, int begin, in AttributedIterator()
218 AttributedCharacterIterator.Attribute attribute) { in getAttribute()
271 public int getRunLimit(AttributedCharacterIterator.Attribute attribute) { in getRunLimit()
288 AttributedCharacterIterator.Attribute attribute = it.next(); in getRunLimit()
319 public int getRunStart(AttributedCharacterIterator.Attribute attribute) { in getRunStart()
336 AttributedCharacterIterator.Attribute attribute = it.next(); in getRunStart()
388 public AttributedString(AttributedCharacterIterator iterator) { in AttributedString()
[all …]
DFormat.java135 public AttributedCharacterIterator formatToCharacterIterator(Object object) { in formatToCharacterIterator()
233 public static class Field extends AttributedCharacterIterator.Attribute {
DAttributedCharacterIterator.java35 public interface AttributedCharacterIterator extends CharacterIterator { interface
DMessageFormat.java507 public AttributedCharacterIterator formatToCharacterIterator(Object object) { in formatToCharacterIterator()
627 AttributedCharacterIterator.Attribute attribute;
632 AttributedCharacterIterator.Attribute attribute, Object value) { in FieldContainer()
655 AttributedCharacterIterator iterator = format.formatToCharacterIterator(arg); in handleFormat()
661 AttributedCharacterIterator.Attribute attribute = in handleFormat()
662 (AttributedCharacterIterator.Attribute) it.next(); in handleFormat()
DBidi.java112 public Bidi(AttributedCharacterIterator paragraph) { in Bidi()
DDecimalFormat.java661 public AttributedCharacterIterator formatToCharacterIterator(Object object) { in formatToCharacterIterator()
DSimpleDateFormat.java456 public AttributedCharacterIterator formatToCharacterIterator(Object object) { in formatToCharacterIterator()
469 private AttributedCharacterIterator formatToCharacterIteratorImpl(Date date) { in formatToCharacterIteratorImpl()
/libcore/support/src/test/java/tests/support/
DSupport_Format.java20 import java.text.AttributedCharacterIterator;
23 import java.text.AttributedCharacterIterator.Attribute;
84 protected static Vector<FieldContainer> findFields(AttributedCharacterIterator iterator) { in findFields()
92 AttributedCharacterIterator.Attribute attribute = it.next(); in findFields()
108 AttributedCharacterIterator.Attribute attribute;
114 AttributedCharacterIterator.Attribute attribute) { in FieldContainer()
/libcore/luni/src/main/java/java/awt/font/
DTextAttribute.java23 import java.text.AttributedCharacterIterator.Attribute;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest3.java1431 objToSave = java.text.AttributedCharacterIterator.Attribute.INPUT_METHOD_SEGMENT; in test_18_121_writeObject()
1438 … java.text.AttributedCharacterIterator.Attribute.INPUT_METHOD_SEGMENT == objLoaded); in test_18_121_writeObject()
1461 objToSave = java.text.AttributedCharacterIterator.Attribute.LANGUAGE; in test_18_122_writeObject()
1468 java.text.AttributedCharacterIterator.Attribute.LANGUAGE == objLoaded); in test_18_122_writeObject()
1491 objToSave = java.text.AttributedCharacterIterator.Attribute.READING; in test_18_123_writeObject()
1498 java.text.AttributedCharacterIterator.Attribute.READING == objLoaded); in test_18_123_writeObject()
DSerializationStressTest4.java1376 objToSave = java.text.AttributedCharacterIterator.Attribute.LANGUAGE; in test_writeObject_AttributedCharacterIterator_Attribute()
/libcore/luni/src/main/java/libcore/icu/
DNativeDecimalFormat.java22 import java.text.AttributedCharacterIterator;
345 public AttributedCharacterIterator formatToCharacterIterator(Object object) { in formatToCharacterIterator()