Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 73) sorted by relevance

123

/libcore/ojluni/src/main/java/sun/security/x509/
DUniqueIdentity.java41 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 …]
DCertificatePolicyId.java39 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()
DSubjectKeyIdentifierExtension.java70 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()
DAuthorityKeyIdentifierExtension.java78 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 …]
DX509CertImpl.java660 String id = attr.getPrefix(); in get() local
661 if (!(id.equalsIgnoreCase(NAME))) { in get()
664 "], received " + "[" + id + "]"); in get()
667 id = attr.getPrefix(); in get()
669 if (id.equalsIgnoreCase(INFO)) { in get()
684 } else if (id.equalsIgnoreCase(ALG_ID)) { in get()
686 } else if (id.equalsIgnoreCase(SIGNATURE)) { in get()
691 } else if (id.equalsIgnoreCase(SIGNED_CERT)) { in get()
698 + "recognized or get() not allowed for the same: " + id); in get()
718 String id = attr.getPrefix(); in set() local
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DIdentityScope2Test.java98 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/
DUnixUserPrincipals.java44 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/
DCalendarDataUtility.java58 public static String retrieveFieldValueName(String id, int field, int value, int style, in retrieveFieldValueName() argument
63 switch (normalizeCalendarType(id)) { in retrieveFieldValueName()
83 String[] names = getNames(id, field, style, locale); in retrieveFieldValueName()
90 public static String retrieveJavaTimeFieldValueName(String id, int field, int value, int style, in retrieveJavaTimeFieldValueName() argument
93 return retrieveFieldValueName(id, field, value, style, locale); in retrieveJavaTimeFieldValueName()
102 public static Map<String, Integer> retrieveFieldValueNames(String id, int field, int style, in retrieveFieldValueNames() argument
107 names = retrieveFieldValueNamesImpl(id, field, SHORT_FORMAT, locale); in retrieveFieldValueNames()
109 names.putAll(retrieveFieldValueNamesImpl(id, field, st, locale)); in retrieveFieldValueNames()
113 names = retrieveFieldValueNamesImpl(id, field, style, locale); in retrieveFieldValueNames()
118 private static Map<String, Integer> retrieveFieldValueNamesImpl(String id, int field, int style, in retrieveFieldValueNamesImpl() argument
[all …]
/libcore/luni/src/test/java/tests/support/
DDatabaseCreator.java341 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/main/java/java/time/
DZoneRegion.java99 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/time/tck/java/time/
DTCKZoneId.java230 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/
DMultiThreadAccessTest.java202 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 …]
DSelectFunctionalityTest.java136 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/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DSequentialOpTest.java54 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/dalvik/src/main/java/dalvik/system/profiler/
DBinaryHprofWriter.java144 private void writeId(int id) throws IOException { in writeId() argument
145 out.writeInt(id); in writeId()
164 int id = nextStringId++; in writeString() local
165 stringToId.put(string, id); in writeString()
171 out.writeInt(id); in writeString()
174 return id; in writeString()
214 int id = nextClassId++; in writeLoadClass() local
215 classNameToId.put(className, id); in writeLoadClass()
221 out.writeInt(id); in writeLoadClass()
226 return id; in writeLoadClass()
[all …]
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleExtensions.java50 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()
DExtension.java37 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/libcore/util/
DZoneInfoDB.java95 protected ZoneInfo create(String id) {
97 return makeTimeZoneUncached(id);
99 throw new IllegalStateException("Unable to load timezone for ID=" + id, e);
148 public BufferIterator getBufferIterator(String id) { in getBufferIterator() argument
152 int index = Arrays.binarySearch(ids, id); in getBufferIterator()
293 for (String id : getAvailableIDs()) { in validate()
294 ZoneInfo zoneInfo = makeTimeZoneUncached(id); in validate()
296 throw new IOException("Unable to find data for ID=" + id); in validate()
301 ZoneInfo makeTimeZoneUncached(String id) throws IOException { in makeTimeZoneUncached() argument
302 BufferIterator it = getBufferIterator(id); in makeTimeZoneUncached()
[all …]
/libcore/luni/src/main/java/javax/xml/datatype/
DDatatypeConstants.java172 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/main/native/
Dlibcore_icu_TimeZoneNames.cpp33 static bool isUtc(const icu::UnicodeString& id) { in isUtc() argument
44 return id == kEtcUct || id == kEtcUtc || id == kEtcUniversal || id == kEtcZulu || in isUtc()
45 id == kUct || id == kUtc || id == kUniversal || id == kZulu; in isUtc()
/libcore/luni/src/test/java/libcore/java/util/
DOldLinkedHashMapTest.java36 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()
/libcore/ojluni/src/main/java/java/util/
DTimeZone.java554 public static synchronized TimeZone getTimeZone(String id) { in getTimeZone() argument
555 if (id == null) { in getTimeZone()
560 if (id.length() == 3) { in getTimeZone()
561 if (id.equals("GMT")) { in getTimeZone()
564 if (id.equals("UTC")) { in getTimeZone()
572 zone = ZoneInfoDB.getInstance().makeTimeZone(id); in getTimeZone()
577 if (zone == null && id.length() > 3 && id.startsWith("GMT")) { in getTimeZone()
578 zone = getCustomTimeZone(id); in getTimeZone()
620 private static TimeZone getCustomTimeZone(String id) { in getCustomTimeZone() argument
621 Matcher m = NoImagePreloadHolder.CUSTOM_ZONE_ID_PATTERN.matcher(id); in getCustomTimeZone()
[all …]
/libcore/tzdata/testing/src/main/libcore/tzdata/testing/
DZoneInfoTestHelper.java203 public TzDataBuilder addZicData(String id, byte[] data) { in addZicData() argument
204 zicData.add(new ZicDatum(id, data)); in addZicData()
245 offsets.put(datum.id, offset); in build()
254 String id = zicDatum.id; in build() local
255 byte[] idBytes = id.getBytes(StandardCharsets.US_ASCII); in build()
260 Integer offset = offsets.get(id); in build()
288 public final String id; field in ZoneInfoTestHelper.TzDataBuilder.ZicDatum
291 ZicDatum(String id, byte[] data) { in ZicDatum() argument
292 this.id = id; in ZicDatum()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DChronologyTest.java74 private final String id; field in ChronologyTest.DummyChronology
78 public DummyChronology(String id, String type) { in DummyChronology() argument
79 this.id = id; in DummyChronology()
86 return id; in getId()
/libcore/ojluni/src/test/java/time/tck/java/time/serial/
DTCKZoneIdSerialization.java102 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()

123