Home
last modified time | relevance | path

Searched refs:Attribute (Results 1 – 16 of 16) sorted by relevance

/libcore/luni/src/main/java/java/text/
DAttributedCharacterIterator.java40 public static class Attribute implements Serializable { class
51 public static final Attribute INPUT_METHOD_SEGMENT = new Attribute("input_method_segment");
57 public static final Attribute LANGUAGE = new Attribute("language");
65 public static final Attribute READING = new Attribute("reading");
75 protected Attribute(String name) { in Attribute() method in AttributedCharacterIterator.Attribute
132 Attribute candidate = (Attribute) field.get(null); in readResolve()
162 public Set<Attribute> getAllAttributeKeys(); in getAllAttributeKeys()
172 public Object getAttribute(Attribute attribute); in getAttribute()
182 public Map<Attribute, Object> getAttributes(); in getAttributes()
200 public int getRunLimit(Attribute attribute); in getRunLimit()
[all …]
DAttributedString.java20 import java.text.AttributedCharacterIterator.Attribute;
39 Map<AttributedCharacterIterator.Attribute, List<Range>> attributeMap;
61 private HashSet<Attribute> attributesAllowed;
71 AttributedCharacterIterator.Attribute[] attributes, int begin, in AttributedIterator()
81 HashSet<Attribute> set = new HashSet<Attribute>( in AttributedIterator()
103 clone.attributesAllowed = (HashSet<Attribute>) attributesAllowed in clone()
183 public Set<AttributedIterator.Attribute> getAllAttributeKeys() { in getAllAttributeKeys()
189 Set<AttributedIterator.Attribute> result = new HashSet<Attribute>( in getAllAttributeKeys()
191 Iterator<Map.Entry<Attribute, List<Range>>> it = attrString.attributeMap in getAllAttributeKeys()
194 Map.Entry<Attribute, List<Range>> entry = it.next(); in getAllAttributeKeys()
[all …]
DFormat.java233 public static class Field extends AttributedCharacterIterator.Attribute {
DMessageFormat.java627 AttributedCharacterIterator.Attribute attribute;
632 AttributedCharacterIterator.Attribute attribute, Object value) { in FieldContainer()
661 AttributedCharacterIterator.Attribute attribute = in handleFormat()
662 (AttributedCharacterIterator.Attribute) it.next(); in handleFormat()
/libcore/luni/src/test/java/libcore/java/text/
DOldAttributedCharacterIteratorTest.java34 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, "a", 2, 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()
58 Set<AttributedCharacterIterator.Attribute> emptyAttributes = in test_getAllAttributeKeys()
64 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, in test_getAllAttributeKeys()
68 Set<AttributedCharacterIterator.Attribute> attributes = in test_getAllAttributeKeys()
70 for(AttributedCharacterIterator.Attribute attr:attributes) { in test_getAllAttributeKeys()
[all …]
DOldAttributedStringTest.java97 … attrString2 = new AttributedString(iter, 2, 7, new AttributedCharacterIterator.Attribute[] {}); in test_ConstructorLAttributedCharacterIterator_3()
114 …test_ConstructorLAttributedCharacterIteratorII$Ljava_text_AttributedCharacterIterator$Attribute() { in test_ConstructorLAttributedCharacterIteratorII$Ljava_text_AttributedCharacterIterator$Attribute()
143 … AttributedCharacterIterator.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()
185 …Map<AttributedCharacterIterator.Attribute, String> whm = new WeakHashMap<AttributedCharacterIterat… in test_ConstructorLjava_lang_StringLjava_util_Map()
196 AttributedCharacterIterator.Attribute {
210 public Object getAttribute(AttributedCharacterIterator.Attribute p) { in getAttribute()
222 public int getRunLimit(AttributedCharacterIterator.Attribute p) { in getRunLimit()
234 public int getRunStart(AttributedCharacterIterator.Attribute p) { in getRunStart()
284 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, "a", 2, in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
[all …]
DOldAttributedCharacterIteratorAttributeTest.java32 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.java34 assertSameReserialized(AttributedCharacterIterator.Attribute.LANGUAGE); in testSerialization()
41 AttributedCharacterIterator.Attribute a = new CustomAttribute(); in testSerializingSubclass()
53 private static class CustomAttribute extends AttributedCharacterIterator.Attribute {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DAttributedCharacterIteratorAttributeTest.java21 import java.text.AttributedCharacterIterator.Attribute;
50 assertTrue(Attribute.LANGUAGE.equals(Attribute.LANGUAGE)); in test_equals()
52 assertFalse(Attribute.LANGUAGE.equals(Attribute.READING)); in test_equals()
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()
127 Attribute language = Attribute.LANGUAGE; in test_fields()
128 Attribute reading = Attribute.READING; in test_fields()
129 Attribute inputMethodSegment = Attribute.INPUT_METHOD_SEGMENT; in test_fields()
138 class MyAttribute extends AttributedCharacterIterator.Attribute {
DAttributedStringTest.java63 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()
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()
132 .getRunLimit(AttributedCharacterIterator.Attribute.LANGUAGE)); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
136 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
DSupport_Format.java23 import java.text.AttributedCharacterIterator.Attribute;
87 Iterator<Attribute> it = iterator.getAttributes().keySet().iterator(); in findFields()
89 AttributedCharacterIterator.Attribute attribute = it.next(); in findFields()
105 final Attribute attribute;
109 public FieldContainer(int start, int end, Attribute attribute) { in FieldContainer()
114 public FieldContainer(int start, int end, Attribute attribute, int value) { in FieldContainer()
119 public FieldContainer(int start, int end, Attribute attribute, Object value) { in FieldContainer()
DAttributedCharacterIteratorTest.java157 public void test_getRunLimitLjava_text_AttributedCharacterIterator$Attribute() { in test_getRunLimitLjava_text_AttributedCharacterIterator$Attribute()
159 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, "a", 2, in test_getRunLimitLjava_text_AttributedCharacterIterator$Attribute()
163 2, it.getRunLimit(AttributedCharacterIterator.Attribute.LANGUAGE)); in test_getRunLimitLjava_text_AttributedCharacterIterator$Attribute()
166 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, null, in test_getRunLimitLjava_text_AttributedCharacterIterator$Attribute()
170 4, it.getRunLimit(AttributedCharacterIterator.Attribute.LANGUAGE)); in test_getRunLimitLjava_text_AttributedCharacterIterator$Attribute()
/libcore/support/src/test/java/tests/support/
DSupport_Format.java23 import java.text.AttributedCharacterIterator.Attribute;
90 Iterator<Attribute> it = iterator.getAttributes().keySet().iterator(); in findFields()
92 AttributedCharacterIterator.Attribute attribute = it.next(); in findFields()
108 AttributedCharacterIterator.Attribute attribute;
114 AttributedCharacterIterator.Attribute attribute) { in FieldContainer()
119 public FieldContainer(int start, int end, Attribute attribute, int value) { in FieldContainer()
124 public FieldContainer(int start, int end, Attribute attribute, in FieldContainer()
/libcore/luni/src/main/java/java/awt/font/
DTextAttribute.java23 import java.text.AttributedCharacterIterator.Attribute;
37 public final class TextAttribute extends 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()