/libcore/ojluni/src/main/java/java/security/ |
H A D | Guard.java | 29 * <p> This interface represents a guard, which is an object that is used 30 * to protect access to another object. 33 * with a single {@code object} argument. {@code checkGuard} is 35 * to determine whether or not to allow access to the object. 46 * Determines whether or not to allow access to the guarded object 47 * {@code object}. Returns silently if access is allowed. 50 * @param object the object being protected by the guard. 55 void checkGuard(Object object) throws SecurityException; argument
|
H A D | GuardedObject.java | 29 * A GuardedObject is an object that is used to protect access to 30 * another object. 32 * <p>A GuardedObject encapsulates a target object and a Guard object, 33 * such that access to the target object is possible 34 * only if the Guard object allows it. 35 * Once an object is encapsulated by a GuardedObject, 36 * access to that object is controlled by the {@code getObject} 38 * {@code checkGuard} method on the Guard object that is 53 private Object object; // th field in class:GuardedObject 66 GuardedObject(Object object, Guard guard) argument [all...] |
H A D | Permission.java | 36 public void checkGuard(Object object) throws SecurityException { } argument
|
H A D | SignedObject.java | 36 * object, the (to-be-)signed object and its signature. 38 * <p> The signed object is a "deep copy" (in serialized form) of an 39 * original object. Once the copy is made, further manipulation of 40 * the original object has no side effect on the copy. 43 * object passed to the constructor and the {@code verify} method. 106 * can be used to sign and serialize data/object for storage outside 134 * Constructs a SignedObject from any Serializable object. 135 * The given object is signed with the given signing key, using the 138 * @param object th 146 SignedObject(Serializable object, PrivateKey signingKey, Signature signingEngine) argument [all...] |
/libcore/benchmarks/src/benchmarks/ |
H A D | ReferenceBenchmark.java | 30 private Object object; field in class:ReferenceBenchmark 36 new PhantomReference(object, queue); 44 (new PhantomReference<Object>(object, queue)).enqueue(); 52 (new PhantomReference<Object>(object, queue)).enqueue(); 63 (new PhantomReference<Object>(object, queue)).enqueue();
|
/libcore/luni/src/main/java/libcore/icu/ |
H A D | CollationKeyICU.java | 43 public boolean equals(Object object) { argument 44 if (object == this) { 47 if (!(object instanceof CollationKey)) { 50 return compareTo((CollationKey) object) == 0;
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | MyGuard.java | 33 public void checkGuard(Object object) { argument
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | ObjectOutputStreamTest.java | 81 CallsCloseInWriteObjectMethod object = new CallsCloseInWriteObjectMethod(hello); 84 // the object closes the ObjectOutputStream and clears the handle table 87 // When it is deserialized the list contains object, hello, Arrays.asList().getClass() 88 // instead of object, hello, hello. 89 List<Serializable> input = Arrays.asList(object, hello, hello); 97 private Serializable roundTrip(Object object) argument 101 oos.writeObject(object);
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | AbstractTCKTest.java | 90 protected static void assertSerializable(Object object) throws IOException, ClassNotFoundException { argument 91 assertEquals(object instanceof Serializable, true); 92 Object deserializedObject = writeThenRead(object); 93 assertEquals(deserializedObject, object); 96 protected static void assertSerializableSame(Object object) throws IOException, ClassNotFoundException { argument 97 assertEquals(object instanceof Serializable, true); 98 Object deserializedObject = writeThenRead(object); 99 assertSame(deserializedObject, object); 102 private static Object writeThenRead(Object object) throws IOException, ClassNotFoundException { argument 105 oos.writeObject(object); 112 assertSerializedBySer(Object object, byte[] expectedBytes, byte[]... matches) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | Support_Format.java | 37 protected void t_FormatWithField(int count, Format format, Object object, argument 41 format.format(object, buffer, pos); 58 protected void t_Format(int count, Object object, Format format, Vector<FieldContainer> expectedResults) { argument 59 Vector<FieldContainer> results = findFields(format.formatToCharacterIterator(object)); 61 format.format(object) + "\n" +
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | SimpleEntryTest.java | 44 public Object setValue(Object object) { argument
|
H A D | SimpleImmutableEntryTest.java | 45 public Object setValue(Object object) { argument
|
/libcore/json/src/test/java/org/json/ |
H A D | SelfUseTest.java | 42 private final JSONObject object = new JSONObject() { field in class:SelfUseTest 125 object.putOpt("foo", "bar"); 130 object.accumulate("foo", "bar"); 135 object.put("foo", "true"); 136 object.getBoolean("foo"); 141 object.optBoolean("foo"); 144 object.optDouble("foo"); 147 object.optInt("foo"); 150 object.optLong("foo"); 153 object [all...] |
/libcore/luni/src/main/java/javax/xml/validation/ |
H A D | SchemaFactory.java | 43 * one thread is using a {@link SchemaFactory} object at any 120 * <p>To find a <code>SchemaFactory</code> object for a given schema language, 334 * @param object The requested value for the property. 343 public void setProperty(String name, Object object) throws SAXNotRecognizedException, SAXNotSupportedException { argument 401 * the same {@link Throwable} object. 430 * When a new {@link SchemaFactory} object is created, initially 445 * This method returns the object that was last set through 491 * When a new {@link SchemaFactory} object is created, initially 505 * This method returns the object that was last set through 568 * language that this {@link SchemaFactory} object i [all...] |
H A D | Validator.java | 34 * A validator is a thread-unsafe and non-reentrant object. 36 * sure that one {@link Validator} object is not used from 162 * The {@link Result} object that receives (possibly augmented) 218 * the same {@link Throwable} object. 243 * When a new {@link Validator} object is created, initially 255 * This method returns the object that was last set through 295 * When a new {@link Validator} object is created, initially 307 * This method returns the object that was last set through 397 * @param object The requested value for the property. 406 public void setProperty(String name, Object object) throw argument [all...] |
H A D | ValidatorHandler.java | 31 * A {@link ValidatorHandler} object is a thread-unsafe, non-reentrant object. 33 * sure that one {@link ValidatorHandler} object is not used from 84 * the {@link org.xml.sax.Attributes} object of the 161 * throws an exception, the same exception object must be thrown 178 * This method returns the object that was last set through 205 * the same {@link Throwable} object will be thrown toward the 231 * When a new {@link ValidatorHandler} object is created, initially 243 * This method returns the object that was last set through 283 * When a new {@link ValidatorHandler} object i 415 setProperty(String name, Object object) argument [all...] |
/libcore/luni/src/test/java/libcore/util/ |
H A D | SerializationTester.java | 82 private static byte[] serialize(Object object) throws IOException { argument 84 new ObjectOutputStream(out).writeObject(object); 112 * Returns a serialized-and-deserialized copy of {@code object}. 114 public static Object reserialize(Object object) throws IOException, ClassNotFoundException { argument 115 return deserialize(serialize(object)); 118 public static String serializeHex(Object object) throws IOException { argument 119 return hexEncode(serialize(object));
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | SealedObjectTest.java | 53 public Mock_SealedObject(Serializable object, Cipher c) argument 55 super(object, c); 66 * serialization/deserialization works correctly: object is serialized, 67 * deserialized, the content od deserialized object equals to the content of 68 * initial object. 81 assertEquals("The secret content of deserialized object " 82 + "should be equal to the secret content of initial object", 85 + "deserialized object should be equal to the value returned " 86 + "by getAlgorithm() method of initial object", so 91 * SealedObject(Serializable object, Ciphe [all...] |
/libcore/ojluni/src/main/java/java/time/ |
H A D | Ser.java | 70 * This class wraps the object being serialized, and takes a byte representing the type of the class to 75 * In order to serialize the object it writes its byte and then calls back to the appropriate class where 76 * the serialization is performed. In order to deserialize the object it read in the type byte, switching 82 * {@link LocalDateTime} are serialized as one object. 113 /** The object being serialized. */ 114 private Object object; field in class:Ser 126 * @param object the object 128 Ser(byte type, Object object) { argument 130 this.object 165 writeInternal(byte type, Object object, ObjectOutput out) argument [all...] |
/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | Ser.java | 72 * This class wraps the object being serialized, and takes a byte representing the type of the class to 77 * In order to serialize the object it writes its byte and then calls back to the appropriate class where 78 * the serialization is performed. In order to deserialize the object it read in the type byte, switching 84 * {@link LocalDateTime} are serialized as one object. Enum classes are serialized using the index of their 111 /** The object being serialized. */ 112 private Object object; field in class:Ser 124 * @param object the object 126 Ser(byte type, Object object) { argument 128 this.object 160 writeInternal(byte type, Object object, ObjectOutput out) argument [all...] |
/libcore/ojluni/src/main/java/java/time/zone/ |
H A D | Ser.java | 99 /** The object being serialized. */ 100 private Object object; field in class:Ser 112 * @param object the object 114 Ser(byte type, Object object) { argument 116 this.object = object; 121 * Implements the {@code Externalizable} interface to write the object. 137 writeInternal(type, object, out); 140 static void write(Object object, DataOutpu argument 144 writeInternal(byte type, Object object, DataOutput out) argument [all...] |
/libcore/ojluni/src/main/java/javax/crypto/ |
H A D | SealedObject.java | 37 * This class enables a programmer to create an object and protect its 40 * <p> Given any Serializable object, one can create a SealedObject 41 * that encapsulates the original object, in serialized 46 * de-serialized, yielding the original object. 48 * <p> Note that the Cipher object must be fully initialized with the 52 * <p> The original object that was sealed can be recovered in two different 58 * method that takes a <code>Cipher</code> object. 60 * <p> This method requires a fully initialized <code>Cipher</code> object, 63 * object. 66 * sealed object doe 146 SealedObject(Serializable object, Cipher c) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
H A D | PKCS8Key.java | 105 * PKCS8Key object is returned. 308 * Initialize an PKCS8Key object from an input stream. The data 396 * Compares two private keys. This returns false if the object with which 398 * Otherwise, the encoding of this key object is compared with the 399 * encoding of the given key object. 401 * @param object the object with which to compare 403 * object argument; <code>false</code> otherwise. 405 public boolean equals(Object object) { argument 406 if (this == object) { [all...] |
/libcore/support/src/test/java/tests/support/ |
H A D | Support_Format.java | 36 protected void t_FormatWithField(int count, Format format, Object object, argument 40 format.format(object, buffer, pos); 59 protected void t_Format(int count, Object object, Format format, argument 61 // System.out.println(format.format(object)); 62 Vector<FieldContainer> results = findFields(format.formatToCharacterIterator(object)); 65 + format.format(object), compare(results, expectedResults));
|
/libcore/json/src/main/java/org/json/ |
H A D | JSONStringer.java | 29 * JSONObject object = ... 30 * String json = object.toString();</pre> 34 * <li>The stringer must have exactly one top-level array or object. 37 * #object} must have a matching call to {@link #endObject}. 63 /** The output data, containing at most one top-level array or object. */ 86 * An object with no keys or values requires no separators or newlines 92 * An object whose most recent element is a key. The next element must 98 * An object with at least one name/value pair requires a comma and 152 * Begins encoding a new object. Each call to this method must be paired 157 public JSONStringer object() throw method in class:JSONStringer [all...] |