/libcore/luni/src/test/java/libcore/java/io/ |
D | OldObjectInputStreamGetFieldTest.java | 100 ObjectInputStream.GetField fields = object.getField; in test_defaultedLjava_lang_String() local 103 fields.defaulted("noField"); in test_defaultedLjava_lang_String() 108 fields.defaulted("longValue")); in test_defaultedLjava_lang_String() 114 fields = defaultedObject.getField; in test_defaultedLjava_lang_String() 117 fields.defaulted("longValue")); in test_defaultedLjava_lang_String() 124 ObjectInputStream.GetField fields = object.getField; in test_getException() local 128 fields.get("noValue", false); in test_getException() 134 fields.get("noValue", (byte) 0); in test_getException() 140 fields.get("noValue", (char) 0); in test_getException() 146 fields.get("noValue", 0.0); in test_getException() [all …]
|
D | SerializationTest.java | 37 ObjectStreamField[] fields = osc.getFields(); in testSerializeFieldMadeTransient() local 38 assertEquals(1, fields.length); in testSerializeFieldMadeTransient() 39 assertEquals("nonTransientInt", fields[0].getName()); in testSerializeFieldMadeTransient() 40 assertEquals(int.class, fields[0].getType()); in testSerializeFieldMadeTransient() 61 ObjectStreamField[] fields = osc.getFields(); in testSerializeFieldMadeStatic() local 62 assertEquals(0, fields.length); in testSerializeFieldMadeStatic()
|
D | OldObjectOutputStreamTest.java | 53 ObjectInputStream.GetField fields = ois.readFields(); in readObject() local 54 aField1 = (String) fields.get("aField1", "Zap"); in readObject() 61 ObjectOutputStream.PutField fields = oos.putFields(); in writeObject() local 62 fields.put("aField1", aField1); in writeObject()
|
/libcore/luni/src/test/java/libcore/javax/xml/datatype/ |
D | DurationImpl.java | 35 private final Map<Field, Number> fields; field in DurationImpl 38 fields = new HashMap<>(); in DurationImpl() 51 fields.put(DatatypeConstants.DAYS, d); in DurationImpl() 56 fields.put(DatatypeConstants.HOURS, h); in DurationImpl() 61 fields.put(DatatypeConstants.MINUTES, m); in DurationImpl() 63 fields.put(DatatypeConstants.SECONDS, (float)millis / 1000); in DurationImpl() 68 fields = new HashMap<>(); in DurationImpl() 69 if (y >= 0) { fields.put(DatatypeConstants.YEARS, y); } in DurationImpl() 70 if (months >= 0) { fields.put(DatatypeConstants.MONTHS, months); } in DurationImpl() 71 if (d >= 0) { fields.put(DatatypeConstants.DAYS, d); } in DurationImpl() [all …]
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormatSymbols.java | 1127 ObjectOutputStream.PutField fields = stream.putFields(); 1128 fields.put("currencySymbol", currencySymbol); 1129 fields.put("decimalSeparator", getDecimalSeparator()); 1130 fields.put("digit", getDigit()); 1131 fields.put("exponential", exponentialSeparator.charAt(0)); 1132 fields.put("exponentialSeparator", exponentialSeparator); 1133 fields.put("groupingSeparator", getGroupingSeparator()); 1134 fields.put("infinity", infinity); 1135 fields.put("intlCurrencySymbol", intlCurrencySymbol); 1136 fields.put("monetarySeparator", getMonetaryDecimalSeparator()); [all …]
|
D | DecimalFormat.java | 4420 ObjectOutputStream.PutField fields = stream.putFields(); in writeObject() local 4421 fields.put("positivePrefix", icuDecimalFormat.getPositivePrefix()); in writeObject() 4422 fields.put("positiveSuffix", icuDecimalFormat.getPositiveSuffix()); in writeObject() 4423 fields.put("negativePrefix", icuDecimalFormat.getNegativePrefix()); in writeObject() 4424 fields.put("negativeSuffix", icuDecimalFormat.getNegativeSuffix()); in writeObject() 4425 fields.put("posPrefixPattern", (String) null); in writeObject() 4426 fields.put("posSuffixPattern", (String) null); in writeObject() 4427 fields.put("negPrefixPattern", (String) null); in writeObject() 4428 fields.put("negSuffixPattern", (String) null); in writeObject() 4429 fields.put("multiplier", icuDecimalFormat.getMultiplier()); in writeObject() [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectStreamClass.java | 177 private ObjectStreamField[] fields; field in ObjectStreamClass 505 fields = NO_FIELDS; in ObjectStreamClass() 509 fields = NO_FIELDS; in ObjectStreamClass() 515 fields = getSerialFields(cl); in ObjectStreamClass() 520 fields = NO_FIELDS; in ObjectStreamClass() 549 fields = NO_FIELDS; in ObjectStreamClass() 553 fieldRefl = getReflector(fields, this); in ObjectStreamClass() 569 for (int i = 0; i < fields.length; i++) { in ObjectStreamClass() 570 if (fields[i].getField() == null) { in ObjectStreamClass() 608 fields = NO_FIELDS; in initProxy() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Calendar.java | 842 protected int fields[]; field in Calendar 1082 private int[] fields; field in Calendar.Builder 1115 if (fields != null) { in setInstant() 1527 if (fields != null) { in build() 1529 && fields[WEEK_YEAR] > fields[YEAR]; in build() 1538 if (fields[index] == stamp) { in build() 1539 cal.set(index, fields[NFIELDS + index]); in build() 1546 int weekOfYear = isSet(WEEK_OF_YEAR) ? fields[NFIELDS + WEEK_OF_YEAR] : 1; in build() 1548 ? fields[NFIELDS + DAY_OF_WEEK] : cal.getFirstDayOfWeek(); in build() 1549 cal.setWeekDate(fields[NFIELDS + WEEK_YEAR], weekOfYear, dayOfWeek); in build() [all …]
|
D | Random.java | 585 ObjectInputStream.GetField fields = s.readFields(); in readObject() local 589 long seedVal = fields.get("seed", -1L); in readObject() 594 nextNextGaussian = fields.get("nextNextGaussian", 0.0); in readObject() 595 haveNextNextGaussian = fields.get("haveNextNextGaussian", false); in readObject() 610 ObjectOutputStream.PutField fields = s.putFields(); in writeObject() local 613 fields.put("seed", seed.get()); in writeObject() 614 fields.put("nextNextGaussian", nextNextGaussian); in writeObject() 615 fields.put("haveNextNextGaussian", haveNextNextGaussian); in writeObject()
|
D | Locale.java | 2812 ObjectOutputStream.PutField fields = out.putFields(); in writeObject() local 2813 fields.put("language", baseLocale.getLanguage()); in writeObject() 2814 fields.put("script", baseLocale.getScript()); in writeObject() 2815 fields.put("country", baseLocale.getRegion()); in writeObject() 2816 fields.put("variant", baseLocale.getVariant()); in writeObject() 2817 fields.put("extensions", localeExtensions == null ? "" : localeExtensions.getID()); in writeObject() 2818 fields.put("hashcode", -1); // place holder just for backward support in writeObject() 2832 ObjectInputStream.GetField fields = in.readFields(); in readObject() local 2833 String language = (String)fields.get("language", ""); in readObject() 2834 String script = (String)fields.get("script", ""); in readObject() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | ExceptionInInitializerError.java | 127 ObjectInputStream.GetField fields = s.readFields(); in readObject() local 128 Throwable exception = (Throwable) fields.get("exception", null); in readObject() 143 ObjectOutputStream.PutField fields = out.putFields(); in writeObject() local 144 fields.put("exception", super.getCause()); in writeObject()
|
D | ClassNotFoundException.java | 128 ObjectInputStream.GetField fields = s.readFields(); in readObject() local 129 Throwable exception = (Throwable) fields.get("ex", null); in readObject() 144 ObjectOutputStream.PutField fields = out.putFields(); in writeObject() local 145 fields.put("ex", super.getCause()); in writeObject()
|
D | StringBuffer.java | 753 java.io.ObjectOutputStream.PutField fields = s.putFields(); in writeObject() local 760 fields.put("value", val); in writeObject() 761 fields.put("count", count); in writeObject() 762 fields.put("shared", false); in writeObject() 772 java.io.ObjectInputStream.GetField fields = s.readFields(); in readObject() local 773 char[] val = (char[])fields.get("value", null); in readObject() 775 count = fields.get("count", 0); in readObject()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | RecordTest.java | 70 Field[] fields = a.getClass().getDeclaredFields(); in testReflection() local 71 assertEquals(Arrays.deepToString(fields), 1, fields.length); in testReflection() 75 assertEquals(fields[0].toString(), "x", fields[0].getName()); in testReflection()
|
/libcore/ojluni/src/main/java/java/security/ |
D | SignedObject.java | 253 java.io.ObjectInputStream.GetField fields = s.readFields(); in readObject() local 254 content = ((byte[])fields.get("content", null)).clone(); in readObject() 255 signature = ((byte[])fields.get("signature", null)).clone(); in readObject() 256 thealgorithm = (String)fields.get("thealgorithm", null); in readObject()
|
/libcore/ojluni/src/main/java/java/beans/ |
D | PropertyChangeSupport.java | 442 ObjectOutputStream.PutField fields = s.putFields(); in writeObject() local 443 fields.put("children", children); in writeObject() 444 fields.put("source", this.source); in writeObject() 445 fields.put("propertyChangeSupportSerializedDataVersion", 2); in writeObject() 461 ObjectInputStream.GetField fields = s.readFields(); in readObject() local 464 …ertyChangeSupport> children = (Hashtable<String, PropertyChangeSupport>) fields.get("children", nu… in readObject() 465 this.source = fields.get("source", null); in readObject() 466 fields.get("propertyChangeSupportSerializedDataVersion", 2); in readObject()
|
/libcore/ojluni/src/test/java/util/Base64/ |
D | plain.txt | 33 MIME defines a number of new RFC 822 header fields that are used to 34 describe the content of a MIME entity. These header fields occur in 42 The formal definition of these header fields is as follows: 45 fields 48 ; fields implied by this BNF 52 [ fields ] 57 ; fields implied by this BNF 60 The syntax of the various specific MIME header fields will be
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | AbstractTest.java | 88 Field[] fields = cls.getDeclaredFields(); in assertImmutable() local 89 for (Field field : fields) { in assertImmutable()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | FieldTest.java | 430 Field fields[] = { objectField, byteField, shortField, charField, in testProtectedFieldAccess() local 440 for (int j = i; j < fields.length; j++) { in testProtectedFieldAccess() 441 Field field = fields[j]; in testProtectedFieldAccess() 461 Field field = fields[j]; in testProtectedFieldAccess() 477 for (int j = 0; j < fields.length; j++) { in testProtectedFieldAccess() 478 Field listedField = fields[j]; in testProtectedFieldAccess() 499 fields = newFields; in testProtectedFieldAccess() 505 Field field = fields[j]; in testProtectedFieldAccess() 523 for (int j = i + 1; j < fields.length; j++) { in testProtectedFieldAccess() 524 Field field = fields[j]; in testProtectedFieldAccess() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatters.java | 1345 mock.fields.put(YEAR, (long) year); in buildAccessor() 1348 mock.fields.put(MONTH_OF_YEAR, (long) month); in buildAccessor() 1351 mock.fields.put(DAY_OF_MONTH, (long) day); in buildAccessor() 1354 mock.fields.put(HOUR_OF_DAY, (long) hour); in buildAccessor() 1357 mock.fields.put(MINUTE_OF_HOUR, (long) min); in buildAccessor() 1360 mock.fields.put(SECOND_OF_MINUTE, (long) sec); in buildAccessor() 1363 mock.fields.put(NANO_OF_SECOND, (long) nano); in buildAccessor() 1388 mock.fields.put(INSTANT_SECONDS, instantSecs); in buildAccessorInstant() 1390 mock.fields.put(NANO_OF_SECOND, (long) nano); in buildAccessorInstant() 1415 Map<TemporalField, Long> fields = new HashMap<>(); field in MockAccessor [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest2.java | 114 ObjectInputStream.GetField fields = in.readFields(); in readObject() local 115 anInstanceVar = Integer.parseInt((String) fields.get( in readObject() 121 ObjectOutputStream.PutField fields = out.putFields(); in writeObject() local 122 fields.put(SIMULATED_FIELD_NAME, Integer.toString(anInstanceVar)); in writeObject() 144 ObjectInputStream.GetField fields = in.readFields(); in readObject() local 165 ObjectInputStream.GetField fields = in.readFields(); in readObject() local 170 ObjectOutputStream.PutField fields = out.putFields(); in writeObject() local 192 ObjectOutputStream.PutField fields = stream.putFields(); in writeObject() local 193 fields.put("field1", 1); in writeObject() 194 fields.put("field2", 2); in writeObject() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | ObjectStreamClass.java | 348 java.io.ObjectStreamField[] fields, java.io.ObjectStreamClass localDesc) in getReflector() argument 354 java.io.ObjectStreamField[] fields, java.io.ObjectStreamClass localDesc) in matchFields() argument 400 private java.io.ObjectStreamField[] fields; field in ObjectStreamClass 565 FieldReflector(java.io.ObjectStreamField[] fields) { in FieldReflector() argument 589 private final java.io.ObjectStreamField[] fields; field in ObjectStreamClass.FieldReflector 592 fields = new java.io.ObjectStreamField[0]; 643 java.io.ObjectStreamField[] fields, in FieldReflectorKey() argument
|
/libcore/luni/src/test/java/crossvmtest/java/lang/ |
D | RecordTest.java | 143 Field[] fields = RecordInteger.class.getDeclaredFields(); in testReadField() local 144 assertEquals(Arrays.deepToString(fields), 1, fields.length); in testReadField() 145 Field field = fields[0]; in testReadField()
|
/libcore/ojluni/src/main/java/javax/security/auth/ |
D | Subject.java | 1325 ObjectOutputStream.PutField fields = oos.putFields(); 1326 fields.put("this$0", subject); 1327 fields.put("elements", elements); 1328 fields.put("which", which); 1336 ObjectInputStream.GetField fields = ois.readFields(); 1337 subject = (Subject) fields.get("this$0", null); 1338 which = fields.get("which", 0); 1340 LinkedList<E> tmp = (LinkedList<E>) fields.get("elements", null);
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldSocketImplFactoryTest.java | 65 Field [] fields = Socket.class.getDeclaredFields(); in setUp() local 67 for (Field field : fields) { in setUp()
|