/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/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/luni/src/main/java/java/util/ |
D | TimeZone.java | 347 public static synchronized TimeZone getTimeZone(String id) { in getTimeZone() argument 348 if (id == null) { in getTimeZone() 353 if (id.length() == 3) { in getTimeZone() 354 if (id.equals("GMT")) { in getTimeZone() 357 if (id.equals("UTC")) { in getTimeZone() 365 zone = ZoneInfoDB.getInstance().makeTimeZone(id); in getTimeZone() 370 if (zone == null && id.length() > 3 && id.startsWith("GMT")) { in getTimeZone() 371 zone = getCustomTimeZone(id); in getTimeZone() 381 private static TimeZone getCustomTimeZone(String id) { in getCustomTimeZone() argument 382 Matcher m = CUSTOM_ZONE_ID_PATTERN.matcher(id); in getCustomTimeZone() [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 …]
|
D | UpdateFunctionalityTest.java | 143 int id = result.getInt("id"); in testUpdate2() local 145 if ((id > 2) && (id < 10)) { in testUpdate2() 150 DatabaseCreator.defaultString + id, field1); in testUpdate2() 207 int id = result.getInt("id"); in testUpdate4() local
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
D | ASN1Implicit.java | 76 if (type.checkTag(type.id)) { in ASN1Implicit() 94 return id == identifier; in checkTag() 98 return id == identifier || constrId == identifier; in checkTag() 106 "[" + in.tagOffset + "]. Expected tag: " + Integer.toHexString(id) + ", " + in decode() 111 if (id == in.tag) { in decode() 112 in.tag = type.id; in decode() 129 out.encodeTag(id); in encodeASN()
|
D | ASN1Type.java | 37 public final int id; field in ASN1Type 73 this.id = tagClass + tagNumber; in ASN1Type() 78 this.constrId = this.id + PC_CONSTRUCTED; in ASN1Type() 168 return getClass().getName() + "(tag: 0x" + Integer.toHexString(0xff & this.id) + ")"; in toString()
|
D | ASN1Primitive.java | 45 return this.id == identifier; in checkTag() 49 out.encodeTag(id); in encodeASN()
|
D | ASN1Oid.java | 80 for (int id = 1, i = 0; id < oid.length; id++, i++) { in getDecodedObject() 88 oid[id] = oidElement; in getDecodedObject()
|
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
D | BinaryHprofWriter.java | 144 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/luni/src/main/native/ |
D | libcore_icu_TimeZoneNames.cpp | 32 static bool isUtc(const UnicodeString& id) { in isUtc() argument 43 return id == kEtcUct || id == kEtcUtc || id == kEtcUniversal || id == kEtcZulu || in isUtc() 44 id == kUct || id == kUtc || id == kUniversal || id == kZulu; in isUtc()
|
D | libcore_icu_Transliterator.cpp | 31 ScopedJavaUnicodeString id(env, javaId); in Transliterator_create() local 32 if (!id.valid()) { in Transliterator_create() 36 Transliterator* t = Transliterator::createInstance(id.unicodeString(), UTRANS_FORWARD, status); in Transliterator_create()
|
/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 | 105 for (String id : ids) { in testZeroTransitionZones() 106 TimeZone tz = TimeZone.getTimeZone(id); in testZeroTransitionZones() 200 for (String id : TimeZone.getAvailableIDs()) { in testDisplayNames() 201 TimeZone tz = TimeZone.getTimeZone(id); in testDisplayNames() 211 id, longDst, longStd)); in testDisplayNames() 216 id, shortDst, shortStd)); in testDisplayNames() 224 id, shortStd, longDst)); in testDisplayNames() 228 id, longStd, shortDst)); in testDisplayNames() 234 id, longDst, shortDst)); in testDisplayNames() 243 failures.append(String.format("\n%s: LD %s", id, longDst)); in testDisplayNames() [all …]
|
/libcore/luni/src/main/java/libcore/icu/ |
D | Transliterator.java | 28 public Transliterator(String id) { in Transliterator() argument 29 peer = create(id); in Transliterator() 53 private static native long create(String id); in create() argument
|
/libcore/luni/src/test/java/libcore/icu/ |
D | TransliteratorTest.java | 21 for (String id : Transliterator.getAvailableIDs()) { in testAll() 22 System.err.println(id); in testAll() 23 Transliterator t = new Transliterator(id); in testAll()
|
D | TimeZoneNamesTest.java | 31 for (String id : ids) { in test_forLocale() 32 assertTrue(allIds.contains(id)); in test_forLocale()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidMonitorTest.java | 314 int id; field in OldAndroidMonitorTest.Worker 316 Worker(int id, Object lock) { in Worker() argument 317 super("Worker(" + id + ")"); in Worker() 318 this.id = id; in Worker() 326 OldAndroidMonitorTest.deepWait(id, lock); in run()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMErrorMonitor.java | 57 public void assertLowerSeverity(DOMTestCase testCase, String id, int severity) { in assertLowerSeverity() argument 62 testCase.fail(id + error.getMessage()); in assertLowerSeverity()
|
/libcore/luni/src/test/native/ |
D | test_openssl_engine.cpp | 114 static int test_engine_bind_fn(ENGINE *e, const char *id) { in test_engine_bind_fn() argument 115 if (id && (strcmp(id, TEST_ENGINE_ID) != 0)) { in test_engine_bind_fn()
|
/libcore/luni/src/main/java/libcore/util/ |
D | ZoneInfoDB.java | 78 protected ZoneInfo create(String id) { 80 int index = Arrays.binarySearch(ids, id); 88 return ZoneInfo.makeTimeZone(id, it); 246 public ZoneInfo makeTimeZone(String id) throws IOException { in makeTimeZone() argument 247 ZoneInfo zoneInfo = cache.get(id); in makeTimeZone()
|
/libcore/luni/src/main/java/org/apache/harmony/security/x501/ |
D | AttributeValue.java | 69 tag = ASN1StringType.IA5STRING.id; in AttributeValue() 71 tag = ASN1StringType.PRINTABLESTRING.id; in AttributeValue() 73 tag = ASN1StringType.UTF8STRING.id; in AttributeValue() 146 if (tag == ASN1StringType.IA5STRING.id) { in getHexString() 148 } else if (tag == ASN1StringType.PRINTABLESTRING.id) { in getHexString()
|
/libcore/luni/src/main/java/java/text/ |
D | DateFormatSymbols.java | 327 String id = zone[0]; in getZoneStrings() local 329 zone[1] = TimeZone.getTimeZone(id).getDisplayName(false, TimeZone.LONG, locale); in getZoneStrings() 332 zone[2] = TimeZone.getTimeZone(id).getDisplayName(false, TimeZone.SHORT, locale); in getZoneStrings() 335 zone[3] = TimeZone.getTimeZone(id).getDisplayName(true, TimeZone.LONG, locale); in getZoneStrings() 338 zone[4] = TimeZone.getTimeZone(id).getDisplayName(true, TimeZone.SHORT, locale); in getZoneStrings()
|