/libcore/ojluni/src/main/java/sun/security/x509/ |
D | UniqueIdentity.java | 41 private BitArray id; field in UniqueIdentity 48 public UniqueIdentity(BitArray id) { in UniqueIdentity() argument 49 this.id = id; in UniqueIdentity() 57 public UniqueIdentity(byte[] id) { in UniqueIdentity() argument 58 this.id = new BitArray(id.length*8, id); in UniqueIdentity() 69 id = derVal.getUnalignedBitString(true); in UniqueIdentity() 80 id = derVal.getUnalignedBitString(true); in UniqueIdentity() 87 return ("UniqueIdentity:" + id.toString() + "\n"); in toString() 98 byte[] bytes = id.toByteArray(); in encode() 99 int excessBits = bytes.length*8 - id.length(); in encode() [all …]
|
D | CertificatePolicyId.java | 39 private ObjectIdentifier id; field in CertificatePolicyId 46 public CertificatePolicyId(ObjectIdentifier id) { in CertificatePolicyId() argument 47 this.id = id; in CertificatePolicyId() 56 this.id = val.getOID(); in CertificatePolicyId() 63 return (id); in getIdentifier() 71 + id.toString() in toString() 84 out.putOID(id); in encode() 96 return id.equals((Object) in equals() 108 return id.hashCode(); in hashCode()
|
D | SubjectKeyIdentifierExtension.java | 70 private KeyIdentifier id = null; field in SubjectKeyIdentifierExtension 74 if (id == null) { in encodeThis() 79 id.encode(os); in encodeThis() 90 id = new KeyIdentifier(octetString); in SubjectKeyIdentifierExtension() 111 this.id = new KeyIdentifier(val); in SubjectKeyIdentifierExtension() 119 + String.valueOf(id) + "]\n"; in toString() 148 id = (KeyIdentifier)obj; in set() 161 return (id); in get() 173 id = null; in delete()
|
D | AuthorityKeyIdentifierExtension.java | 78 private KeyIdentifier id = null; field in AuthorityKeyIdentifierExtension 84 if (id == null && names == null && serialNum == null) { in encodeThis() 90 if (id != null) { in encodeThis() 92 id.encode(tmp1); in encodeThis() 129 this.id = kid; in AuthorityKeyIdentifierExtension() 168 if (id != null) in AuthorityKeyIdentifierExtension() 172 id = new KeyIdentifier(opt); in AuthorityKeyIdentifierExtension() 200 if (id != null) { in toString() 201 s += id.toString(); // id already has a newline in toString() 238 id = (KeyIdentifier)obj; in set() [all …]
|
D | X509CertImpl.java | 662 String id = attr.getPrefix(); in get() local 663 if (!(id.equalsIgnoreCase(NAME))) { in get() 666 "], received " + "[" + id + "]"); in get() 669 id = attr.getPrefix(); in get() 671 if (id.equalsIgnoreCase(INFO)) { in get() 686 } else if (id.equalsIgnoreCase(ALG_ID)) { in get() 688 } else if (id.equalsIgnoreCase(SIGNATURE)) { in get() 693 } else if (id.equalsIgnoreCase(SIGNED_CERT)) { in get() 700 + "recognized or get() not allowed for the same: " + id); in get() 720 String id = attr.getPrefix(); in set() local [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | IdentityScope2Test.java | 98 public void addIdentity(Identity id) throws KeyManagementException { in addIdentity() argument 99 if (identities.containsKey(id)) in addIdentity() 102 if (getIdentity(id.getPublicKey()) != null) in addIdentity() 105 identities.put(id, id); in addIdentity() 108 public void removeIdentity(Identity id) throws KeyManagementException { in removeIdentity() argument 109 if (!identities.containsKey(id)) in removeIdentity() 112 identities.remove(id); in removeIdentity() 185 Identity id = new IdentitySubclass("id1"); in test_addIdentityLjava_security_Identity() local 186 id.setPublicKey(getPubKey()); in test_addIdentityLjava_security_Identity() 187 sub.addIdentity(id); in test_addIdentityLjava_security_Identity() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixUserPrincipals.java | 44 private final int id; // uid or gid field in UnixUserPrincipals.User 48 private User(int id, boolean isGroup, String name) { in User() argument 49 this.id = id; in User() 54 User(int id, String name) { in User() argument 55 this(id, false, name); in User() 61 return id; in uid() 66 return id; in gid() 71 return id == -1; in isSpecial() 91 if ((this.id != other.id) || in equals() 96 if (this.id == -1 && other.id == -1) in equals() [all …]
|
/libcore/ojluni/src/main/java/sun/util/locale/provider/ |
D | CalendarDataUtility.java | 103 public static String retrieveFieldValueName(String id, int field, int value, int style, in retrieveFieldValueName() argument 107 switch (normalizeCalendarType(id)) { in retrieveFieldValueName() 127 String[] names = getNames(id, field, style, locale); in retrieveFieldValueName() 150 public static String retrieveJavaTimeFieldValueName(String id, int field, int value, int style, in retrieveJavaTimeFieldValueName() argument 153 return retrieveFieldValueName(id, field, value, style, locale); in retrieveJavaTimeFieldValueName() 166 public static Map<String, Integer> retrieveFieldValueNames(String id, int field, int style, in retrieveFieldValueNames() argument 170 names = retrieveFieldValueNamesImpl(id, field, SHORT_FORMAT, locale); in retrieveFieldValueNames() 172 names.putAll(retrieveFieldValueNamesImpl(id, field, st, locale)); in retrieveFieldValueNames() 176 names = retrieveFieldValueNamesImpl(id, field, style, locale); in retrieveFieldValueNames() 197 public static Map<String, Integer> retrieveJavaTimeFieldValueNames(String id, int field, in retrieveJavaTimeFieldValueNames() argument [all …]
|
/libcore/luni/src/test/java/tests/support/ |
D | DatabaseCreator.java | 341 for (int id = 0; id < numberOfRecords; id++) { in fillTestTable1() 342 String value = DatabaseCreator.defaultString + id; in fillTestTable1() 344 + " (id, field1, field2, field3) VALUES(" + id + ", '" in fillTestTable1() 345 + value + "', " + id + ", " + id + ")"; in fillTestTable1() 353 for (int id = startID; id <= endID; id++) { in fillTestTable2() 354 double value = id + DatabaseCreator.defaultDouble; in fillTestTable2() 358 + " VALUES (" + id + ", '" + DatabaseCreator.defaultString in fillTestTable2() 359 + id + "'," + " '" + DatabaseCreator.defaultCharacter + id in fillTestTable2() 371 for (int id = 0; id < numberOfRecords; id++) { in fillTestTable2() 372 double value = id + DatabaseCreator.defaultDouble; in fillTestTable2() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZoneId.java | 230 public void factory_of_String_offsetBasedValid_noPrefix(String input, String id) { in factory_of_String_offsetBasedValid_noPrefix() argument 232 assertEquals(test.getId(), id); in factory_of_String_offsetBasedValid_noPrefix() local 233 assertEquals(test, ZoneOffset.of(id)); in factory_of_String_offsetBasedValid_noPrefix() 234 assertEquals(test.normalized(), ZoneOffset.of(id)); in factory_of_String_offsetBasedValid_noPrefix() 235 assertEquals(test.getDisplayName(TextStyle.FULL, Locale.UK), id); in factory_of_String_offsetBasedValid_noPrefix() local 237 assertEquals(test.getRules().getOffset(Instant.EPOCH), ZoneOffset.of(id)); in factory_of_String_offsetBasedValid_noPrefix() 278 …public void factory_of_String_offsetBasedValid_prefixUTC(String input, String id, String offsetId)… in factory_of_String_offsetBasedValid_prefixUTC() argument 280 assertEquals(test.getId(), "UTC" + id); in factory_of_String_offsetBasedValid_prefixUTC() local 283 assertEquals(test.getDisplayName(TextStyle.FULL, Locale.UK), displayName("UTC" + id)); in factory_of_String_offsetBasedValid_prefixUTC() 289 …public void factory_of_String_offsetBasedValid_prefixGMT(String input, String id, String offsetId)… in factory_of_String_offsetBasedValid_prefixGMT() argument [all …]
|
/libcore/luni/src/test/java/tests/java/sql/ |
D | MultiThreadAccessTest.java | 202 int id = 1; in test_MultipleUpdatesInOneTables() local 206 + " WHERE id=" + id; in test_MultipleUpdatesInOneTables() 210 assertTrue("There is no records with id = " + id, result.next()); in test_MultipleUpdatesInOneTables() 217 threadPool.runTask(createTask7(id, field)); in test_MultipleUpdatesInOneTables() 222 double expectedVal = id + numThreads; in test_MultipleUpdatesInOneTables() 224 assertTrue("There is no records with id = " + id, result.next()); in test_MultipleUpdatesInOneTables() 280 int id = result.getInt("finteger"); 282 DatabaseCreator.defaultString + id, result 285 DatabaseCreator.defaultCharacter + id, 288 DatabaseCreator.defaultDouble + id, result [all …]
|
D | SelectFunctionalityTest.java | 136 int id = result.getInt("finteger"); in test_SelectSimple() local 138 DatabaseCreator.defaultString + id, result in test_SelectSimple() 141 DatabaseCreator.defaultCharacter + id, result in test_SelectSimple() 152 .valueOf(id + 0.1).floatValue(), result.getFloat("ffloat")); in test_SelectSimple() 154 .valueOf(id + 0.1).doubleValue(), result.getDouble("freal")); in test_SelectSimple() 156 .valueOf(id + 0.1).doubleValue(), result in test_SelectSimple() 199 int id = result.getInt("finteger"); in test_SelectPrepared() local 201 DatabaseCreator.defaultString + id, result in test_SelectPrepared() 204 DatabaseCreator.defaultCharacter + id, result in test_SelectPrepared() 211 assertEquals("expected value doesn't equal actual", id, result in test_SelectPrepared() [all …]
|
/libcore/ojluni/src/main/java/java/time/ |
D | ZoneRegion.java | 99 private final String id; field in ZoneRegion 162 ZoneRegion(String id, ZoneRules rules) { in ZoneRegion() argument 163 this.id = id; in ZoneRegion() 170 return id; in getId() 177 return (rules != null ? rules : ZoneRulesProvider.getRules(id, false)); in getRules() 213 out.writeUTF(id); in writeExternal() 217 String id = in.readUTF(); in readExternal() local 218 return ZoneId.of(id, false); in readExternal()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | SequentialOpTest.java | 54 Function<Integer, Integer> id = LambdaTestHelpers.identity(); in testLazy() local 60 …(UnaryOperator<Stream<Integer>>) s -> s.map(id).peek(e -> { counter.incrementAndGet(); }).sequenti… in testLazy() 61 …(UnaryOperator<Stream<Integer>>) s -> s.map(id).peek(e -> { counter.incrementAndGet(); }).parallel… in testLazy() 62 (UnaryOperator<Stream<Integer>>) s -> s.sequential().map(id).peek(e -> { in testLazy() 64 }).map(id), in testLazy() 65 …yOperator<Stream<Integer>>) s -> s.parallel().map(id).peek(e -> { counter.incrementAndGet(); }).ma… in testLazy() 100 Function<Integer, Integer> id = LambdaTestHelpers.identity(); in testMixedSeqPar() local 111 (UnaryOperator<Stream<Integer>>) s -> s.map(id), in testMixedSeqPar() 113 … (UnaryOperator<Stream<Integer>>) s -> s.map(id).sorted(Comparator.naturalOrder()).map(id), in testMixedSeqPar() 114 …Stream<Integer>>) s -> s.filter(LambdaTestHelpers.pEven).sorted(Comparator.naturalOrder()).map(id), in testMixedSeqPar()
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleExtensions.java | 50 private final String id; field in LocaleExtensions 62 private LocaleExtensions(String id, Character key, Extension value) { in LocaleExtensions() argument 63 this.id = id; in LocaleExtensions() 78 id = ""; in LocaleExtensions() 128 id = ""; in LocaleExtensions() 131 id = toID(map); in LocaleExtensions() 220 return id; in toString() 224 return id; in getID() 229 return id.hashCode(); in hashCode() 240 return id.equals(((LocaleExtensions)other).id); in equals()
|
D | Extension.java | 37 private String value, id; field in Extension 50 this.id = key + LanguageTag.SEP + value; in setValue() 62 return id; in getID()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | DatatypeConstants.java | 172 private final int id; field in DatatypeConstants.Field 179 private Field(final String str, final int id) { in Field() argument 181 this.id = id; in Field() 199 return id; in getId()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldLinkedHashMapTest.java | 36 String id = (String) iterator.next(); in testLinkedHashMap() local 37 map.get(id); in testLinkedHashMap() 52 id = (String) iterator.next(); in testLinkedHashMap() 53 mapClone.get(id); in testLinkedHashMap()
|
D | TimeZoneTest.java | 149 for (String id : ids) { in testMinimalTransitionZones() 150 TimeZone tz = TimeZone.getTimeZone(id); in testMinimalTransitionZones() 263 for (String id : TimeZone.getAvailableIDs()) { in checkDisplayNames() 264 TimeZone tz = TimeZone.getTimeZone(id); in checkDisplayNames() 274 id, longDst, longStd)); in checkDisplayNames() 279 id, shortDst, shortStd)); in checkDisplayNames() 287 id, shortStd, longDst)); in checkDisplayNames() 291 id, longStd, shortDst)); in checkDisplayNames() 297 id, longDst, shortDst)); in checkDisplayNames() 306 failures.append(String.format("\n%s: LD %s", id, longDst)); in checkDisplayNames() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | TimeZone.java | 563 public static synchronized TimeZone getTimeZone(String id) { in getTimeZone() argument 564 if (id == null) { in getTimeZone() 569 if (id.length() == 3) { in getTimeZone() 570 if (id.equals("GMT")) { in getTimeZone() 573 if (id.equals("UTC")) { in getTimeZone() 580 ZoneInfoData zoneInfoData = ZoneInfoDb.getInstance().makeZoneInfoData(id); in getTimeZone() 584 if (zone == null && id.length() > 3 && id.startsWith("GMT")) { in getTimeZone() 585 zone = getCustomTimeZone(id); in getTimeZone() 627 private static TimeZone getCustomTimeZone(String id) { in getCustomTimeZone() argument 628 Matcher m = NoImagePreloadHolder.CUSTOM_ZONE_ID_PATTERN.matcher(id); in getCustomTimeZone() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKZoneIdSerialization.java | 102 String id = "QWERTYUIOPASDFGHJKLZXCVBNM~/._+-"; in test_deserialization_lenient_characters() local 103 ZoneId deser = deserialize(id); in test_deserialization_lenient_characters() 105 assertEquals(deser.getId(), id); in test_deserialization_lenient_characters() local 106 assertEquals(deser.toString(), id); in test_deserialization_lenient_characters() local 154 private ZoneId deserialize(String id) throws Exception { in deserialize() argument 173 …dos.writeByte(1 + 2 + id.length()); // length of data (1 byte + 2 bytes UTF length + 32 bytes UTF) in deserialize() 175 dos.writeUTF(id); in deserialize()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ChronologyTest.java | 74 private final String id; field in ChronologyTest.FakeChronology 78 public FakeChronology(String id, String type) { in FakeChronology() argument 79 this.id = id; in FakeChronology() 86 return id; in getId()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/ |
D | UniqueIdentity.java | 31 public UniqueIdentity(sun.security.util.BitArray id) { in UniqueIdentity() argument 35 public UniqueIdentity(byte[] id) { in UniqueIdentity() argument 62 private sun.security.util.BitArray id; field in UniqueIdentity
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | HijrahChronology.java | 329 String id = name.substring(PROP_PREFIX.length()); in registerVariants() local 330 if (id.indexOf('.') >= 0) { in registerVariants() 333 if (id.equals(INSTANCE.getId())) { in registerVariants() 338 HijrahChronology chrono = new HijrahChronology(id); in registerVariants() 343 logger.severe("Unable to initialize Hijrah calendar: " + id, ex); in registerVariants() 359 private HijrahChronology(String id) throws DateTimeException { in HijrahChronology() argument 360 if (id.isEmpty()) { in HijrahChronology() 363 String propName = PROP_PREFIX + id + PROP_TYPE_SUFFIX; in HijrahChronology() 368 this.typeId = id; in HijrahChronology() 906 String id = null; in loadCalendarData() local [all …]
|
D | AbstractChronology.java | 189 static Chronology registerChrono(Chronology chrono, String id) { in registerChrono() argument 190 Chronology prev = CHRONOS_BY_ID.putIfAbsent(id, chrono); in registerChrono() 229 String id = chrono.getId(); in initCache() local 230 if (id.equals("ISO") || registerChrono(chrono) != null) { in initCache() 233 … logger.warning("Ignoring duplicate Chronology, from ServiceLoader configuration " + id); in initCache() 292 static Chronology of(String id) { in of() argument 293 Objects.requireNonNull(id, "id"); in of() 295 Chronology chrono = of0(id); in of() 307 if (id.equals(chrono.getId()) || id.equals(chrono.getCalendarType())) { in of() 311 throw new DateTimeException("Unknown chronology: " + id); in of() [all …]
|