/libcore/ojluni/src/main/java/java/text/ |
D | AttributedCharacterIterator.java | 89 public static class Attribute implements Serializable { class 100 private static final Map<String, Attribute> instanceMap = new HashMap<>(7); 107 protected Attribute(String name) { in Attribute() method in AttributedCharacterIterator.Attribute 109 if (this.getClass() == Attribute.class) { in Attribute() 157 if (this.getClass() != Attribute.class) { in readResolve() 161 Attribute instance = instanceMap.get(getName()); in readResolve() 174 public static final Attribute LANGUAGE = new Attribute("language"); 186 public static final Attribute READING = new Attribute("reading"); 194 public static final Attribute INPUT_METHOD_SEGMENT = new Attribute("input_method_segment"); 220 public int getRunStart(Attribute attribute); in getRunStart() [all …]
|
D | AttributedString.java | 29 import java.text.AttributedCharacterIterator.Attribute; 64 Vector<Attribute> runAttributes[]; // vector of attribute keys for each run 95 Map<Attribute,Object> last = null; in AttributedString() 106 Map<Attribute,Object> attrs = iterator.getAttributes(); in AttributedString() 143 Map<? extends Attribute, ?> attributes) in AttributedString() argument 159 Vector<Attribute> newRunAttributes = new Vector<>(attributeCount); in AttributedString() 164 … Iterator<? extends Map.Entry<? extends Attribute, ?>> iterator = attributes.entrySet().iterator(); in AttributedString() 166 Map.Entry<? extends Attribute, ?> entry = iterator.next(); in AttributedString() 234 Attribute[] attributes) { in AttributedString() 256 HashSet<Attribute> keys = new HashSet<>(); in AttributedString() [all …]
|
D | Format.java | 311 String string, AttributedCharacterIterator.Attribute key, in createAttributedCharacterIterator() 331 AttributedCharacterIterator.Attribute key, Object value) { in createAttributedCharacterIterator() 347 public static class Field extends AttributedCharacterIterator.Attribute {
|
D | DecimalFormat.java | 562 private static Field toJavaFieldAttribute(AttributedCharacterIterator.Attribute icuAttribute) { in toJavaFieldAttribute() 1098 for (AttributedCharacterIterator.Attribute attribute in formatToCharacterIterator()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldAttributedCharacterIteratorTest.java | 34 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 …]
|
D | OldAttributedStringTest.java | 97 … 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() 183 Map<AttributedCharacterIterator.Attribute, String> map = Collections.singletonMap( in test_ConstructorLjava_lang_StringLjava_util_Map() 193 AttributedCharacterIterator.Attribute { 207 public Object getAttribute(AttributedCharacterIterator.Attribute p) { in getAttribute() 219 public int getRunLimit(AttributedCharacterIterator.Attribute p) { in getRunLimit() 231 public int getRunStart(AttributedCharacterIterator.Attribute p) { in getRunStart() 281 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, "a", 2, in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() 285 .getRunLimit(AttributedCharacterIterator.Attribute.LANGUAGE)); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() [all …]
|
D | AttributedCharacterIteratorAttributeTest.java | 34 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/ |
D | AttributedCharacterIteratorAttributeTest.java | 21 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 {
|
D | AttributedStringTest.java | 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() 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()
|
D | Support_Format.java | 23 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()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KSSecretKeyEntryTest.java | 94 KeyStore.Entry.Attribute myAttribute = new KeyStore.Entry.Attribute() { in testGetAttributes() 105 Set<KeyStore.Entry.Attribute> attributeSet = new HashSet<KeyStore.Entry.Attribute>(); in testGetAttributes() 109 Set<KeyStore.Entry.Attribute> returnedAttributeSet = ksSKE.getAttributes(); in testGetAttributes()
|
D | KSTrustedCertificateEntryTest.java | 97 KeyStore.Entry.Attribute myAttribute = new KeyStore.Entry.Attribute() { in testGetAttributes() 108 Set<KeyStore.Entry.Attribute> attributeSet = new HashSet<KeyStore.Entry.Attribute>(); in testGetAttributes() 113 Set<KeyStore.Entry.Attribute> returnedAttributeSet = ksTCE.getAttributes(); in testGetAttributes()
|
D | KSPrivateKeyEntryTest.java | 189 KeyStore.Entry.Attribute myAttribute = new KeyStore.Entry.Attribute() { in testGetAttributes() 200 Set<KeyStore.Entry.Attribute> attributeSet = new HashSet<KeyStore.Entry.Attribute>(); in testGetAttributes() 205 Set<KeyStore.Entry.Attribute> returnedAttributeSet = ksPKE.getAttributes(); in testGetAttributes()
|
/libcore/ojluni/src/main/java/java/security/ |
D | KeyStore.java | 461 public default Set<Attribute> getAttributes() { in getAttributes() 462 return Collections.<Attribute>emptySet(); in getAttributes() 471 public interface Attribute { interface 499 private final Set<Attribute> attributes; 526 this(privateKey, chain, Collections.<Attribute>emptySet()); in PrivateKeyEntry() 556 Set<Attribute> attributes) { in PrivateKeyEntry() 645 public Set<Attribute> getAttributes() { in getAttributes() 674 private final Set<Attribute> attributes; 690 this.attributes = Collections.<Attribute>emptySet(); in SecretKeyEntry() 708 public SecretKeyEntry(SecretKey secretKey, Set<Attribute> attributes) { in SecretKeyEntry() [all …]
|
D | PKCS12Attribute.java | 41 public final class PKCS12Attribute implements KeyStore.Entry.Attribute {
|
/libcore/ojluni/src/main/java/java/awt/font/ |
D | TextAttribute.java | 44 import java.text.AttributedCharacterIterator.Attribute; 96 public final class TextAttribute extends Attribute {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest4.java | 1352 objToSave = java.text.AttributedCharacterIterator.Attribute.LANGUAGE; in test_writeObject_AttributedCharacterIterator_Attribute()
|