Home
last modified time | relevance | path

Searched refs:fields (Results 1 – 25 of 49) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/io/
DOldObjectInputStreamGetFieldTest.java100 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 …]
DSerializationTest.java37 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()
DOldObjectOutputStreamTest.java53 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/ojluni/src/main/java/java/text/
DDecimalFormatSymbols.java878 ObjectOutputStream.PutField fields = stream.putFields(); in writeObject() local
879 fields.put("currencySymbol", currencySymbol); in writeObject()
880 fields.put("decimalSeparator", getDecimalSeparator()); in writeObject()
881 fields.put("digit", getDigit()); in writeObject()
882 fields.put("exponential", exponentialSeparator.charAt(0)); in writeObject()
883 fields.put("exponentialSeparator", exponentialSeparator); in writeObject()
884 fields.put("groupingSeparator", getGroupingSeparator()); in writeObject()
885 fields.put("infinity", infinity); in writeObject()
886 fields.put("intlCurrencySymbol", intlCurrencySymbol); in writeObject()
887 fields.put("monetarySeparator", getMonetaryDecimalSeparator()); in writeObject()
[all …]
DDecimalFormat.java4235 ObjectOutputStream.PutField fields = stream.putFields(); in writeObject() local
4236 fields.put("positivePrefix", icuDecimalFormat.getPositivePrefix()); in writeObject()
4237 fields.put("positiveSuffix", icuDecimalFormat.getPositiveSuffix()); in writeObject()
4238 fields.put("negativePrefix", icuDecimalFormat.getNegativePrefix()); in writeObject()
4239 fields.put("negativeSuffix", icuDecimalFormat.getNegativeSuffix()); in writeObject()
4240 fields.put("posPrefixPattern", (String) null); in writeObject()
4241 fields.put("posSuffixPattern", (String) null); in writeObject()
4242 fields.put("negPrefixPattern", (String) null); in writeObject()
4243 fields.put("negSuffixPattern", (String) null); in writeObject()
4244 fields.put("multiplier", icuDecimalFormat.getMultiplier()); in writeObject()
[all …]
/libcore/ojluni/src/main/java/java/util/
DCalendar.java835 protected int fields[]; field in Calendar
1074 private int[] fields; field in Calendar.Builder
1107 if (fields != null) { in setInstant()
1516 if (fields != null) { in build()
1518 && fields[WEEK_YEAR] > fields[YEAR]; in build()
1527 if (fields[index] == stamp) { in build()
1528 cal.set(index, fields[NFIELDS + index]); in build()
1535 int weekOfYear = isSet(WEEK_OF_YEAR) ? fields[NFIELDS + WEEK_OF_YEAR] : 1; in build()
1537 ? fields[NFIELDS + DAY_OF_WEEK] : cal.getFirstDayOfWeek(); in build()
1538 cal.setWeekDate(fields[NFIELDS + WEEK_YEAR], weekOfYear, dayOfWeek); in build()
[all …]
DRandom.java1184 ObjectInputStream.GetField fields = s.readFields(); in readObject() local
1188 long seedVal = fields.get("seed", -1L); in readObject()
1193 nextNextGaussian = fields.get("nextNextGaussian", 0.0); in readObject()
1194 haveNextNextGaussian = fields.get("haveNextNextGaussian", false); in readObject()
1204 ObjectOutputStream.PutField fields = s.putFields(); in writeObject() local
1207 fields.put("seed", seed.get()); in writeObject()
1208 fields.put("nextNextGaussian", nextNextGaussian); in writeObject()
1209 fields.put("haveNextNextGaussian", haveNextNextGaussian); in writeObject()
DLocale.java2615 ObjectOutputStream.PutField fields = out.putFields(); in writeObject() local
2616 fields.put("language", baseLocale.getLanguage()); in writeObject()
2617 fields.put("script", baseLocale.getScript()); in writeObject()
2618 fields.put("country", baseLocale.getRegion()); in writeObject()
2619 fields.put("variant", baseLocale.getVariant()); in writeObject()
2620 fields.put("extensions", localeExtensions == null ? "" : localeExtensions.getID()); in writeObject()
2621 fields.put("hashcode", -1); // place holder just for backward support in writeObject()
2634 ObjectInputStream.GetField fields = in.readFields(); in readObject() local
2635 String language = (String)fields.get("language", ""); in readObject()
2636 String script = (String)fields.get("script", ""); in readObject()
[all …]
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java168 private ObjectStreamField[] fields; field in ObjectStreamClass
484 fields = NO_FIELDS; in ObjectStreamClass()
488 fields = NO_FIELDS; in ObjectStreamClass()
494 fields = getSerialFields(cl); in ObjectStreamClass()
499 fields = NO_FIELDS; in ObjectStreamClass()
525 fields = NO_FIELDS; in ObjectStreamClass()
529 fieldRefl = getReflector(fields, this); in ObjectStreamClass()
542 for (int i = 0; i < fields.length; i++) { in ObjectStreamClass()
543 if (fields[i].getField() == null) { in ObjectStreamClass()
580 fields = NO_FIELDS; in initProxy()
[all …]
DObjectOutputStream.java1592 ObjectStreamField[] fields = desc.getFields(false); in defaultWriteFields() local
1594 int numPrimFields = fields.length - objVals.length; in defaultWriteFields()
1600 fields[numPrimFields + i].getName() + "\", type: \"" + in defaultWriteFields()
1601 fields[numPrimFields + i].getType() + "\")"); in defaultWriteFields()
1605 fields[numPrimFields + i].isUnshared()); in defaultWriteFields()
1736 ObjectStreamField[] fields = desc.getFields(false); in write() local
1737 int numPrimFields = fields.length - objVals.length; in write()
1740 if (fields[numPrimFields + i].isUnshared()) { in write()
1753 ObjectStreamField[] fields = desc.getFields(false); in writeFields() local
1754 int numPrimFields = fields.length - objVals.length; in writeFields()
[all …]
/libcore/ojluni/src/main/java/java/security/
DSignedObject.java253 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/
DPropertyChangeSupport.java442 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/main/java/java/lang/
DStringBuffer.java698 java.io.ObjectOutputStream.PutField fields = s.putFields(); in writeObject() local
699 fields.put("value", value); in writeObject()
700 fields.put("count", count); in writeObject()
701 fields.put("shared", false); in writeObject()
711 java.io.ObjectInputStream.GetField fields = s.readFields(); in readObject() local
712 value = (char[])fields.get("value", null); in readObject()
713 count = fields.get("count", 0); in readObject()
/libcore/ojluni/src/test/java/time/test/java/time/
DAbstractTest.java88 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/
DFieldTest.java430 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/
DTCKDateTimeFormatters.java1345 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/
DSerializationStressTest2.java114 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 …]
DObjectOutputStreamTest.java69 ObjectInputStream.GetField fields = ois.readFields(); in readObject() local
70 aField1 = (String) fields.get("aField1", "Zap"); in readObject()
77 ObjectOutputStream.PutField fields = oos.putFields(); in writeObject() local
78 fields.put("aField1", aField1); in writeObject()
401 ObjectInputStream.GetField fields = in.readFields(); in readObject() local
402 anInstanceVar = Integer.parseInt((String) fields.get( in readObject()
408 ObjectOutputStream.PutField fields = out.putFields(); in writeObject() local
409 fields.put(SIMULATED_FIELD_NAME, Integer.toString(anInstanceVar)); in writeObject()
/libcore/ojluni/annotations/hiddenapi/java/io/
DObjectStreamClass.java348 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/ojluni/src/main/java/javax/security/auth/
DSubject.java1325 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/
DOldSocketImplFactoryTest.java65 Field [] fields = Socket.class.getDeclaredFields(); in setUp() local
67 for (Field field : fields) { in setUp()
DOldDatagramSocketImplFactoryTest.java84 Field [] fields = DatagramSocket.class.getDeclaredFields(); in setUp() local
86 for (Field field : fields) { in setUp()
/libcore/luni/src/test/resources/tests/api/java/io/
DsameFieldNames.smali6 # Test multiple fields with the same name and different types.
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java573 int[] fields = new int[count]; in test_clear() local
576 fields[0] = Calendar.YEAR; in test_clear()
577 fields[1] = Calendar.MONTH; in test_clear()
578 fields[2] = Calendar.DATE; in test_clear()
579 fields[3] = Calendar.HOUR_OF_DAY; in test_clear()
580 fields[4] = Calendar.MINUTE; in test_clear()
581 fields[5] = Calendar.SECOND; in test_clear()
593 for (int i = 0; i < fields.length; i++) { in test_clear()
594 int index = fields[i]; in test_clear()
616 for (int i = 0; i < fields.length; i++) { in test_clear()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DReflectionTest.java270 Field[] fields = ExtendsImplementsDefinesMember.class.getFields(); in testGetFieldsViaExtendsThenImplements() local
271 assertTrue(names(fields).contains("field")); in testGetFieldsViaExtendsThenImplements()
275 Field[] fields = ImplementsExtendsDefinesMember.class.getFields(); in testGetFieldsViaImplementsThenExtends() local
276 assertTrue(names(fields).contains("field")); in testGetFieldsViaImplementsThenExtends()
305 Field[] fields = ExtendsAndImplementsDefinesMember.class.getFields(); in testGetFieldsContainsNoDuplicates() local
306 assertEquals(1, count(names(fields), "field")); in testGetFieldsContainsNoDuplicates()

12