/libcore/json/src/test/java/org/json/ |
H A D | ParsingTest.java | 164 assertParsed(object("foo", 5), "{\"foo\": 5}"); 165 assertParsed(object("foo", 5), "{foo: 5}"); 166 assertParsed(object("foo", 5, "bar", "baz"), "{\"foo\": 5, \"bar\": \"baz\"}"); 167 assertParsed(object("foo", 5, "bar", "baz"), "{\"foo\": 5; \"bar\": \"baz\"}"); 168 assertParsed(object("foo", 5, "bar", "baz"), "{\"foo\"= 5; \"bar\"= \"baz\"}"); 169 assertParsed(object("foo", 5, "bar", "baz"), "{\"foo\"=> 5; \"bar\"=> \"baz\"}"); 170 assertParsed(object("foo", object(), "bar", array()), "{\"foo\"=> {}; \"bar\"=> []}"); 171 assertParsed(object("foo", object("fo 224 private JSONObject object(Object... keyValuePairs) throws JSONException { method in class:ParsingTest [all...] |
/libcore/support/src/test/java/org/apache/harmony/testframework/serialization/ |
H A D | SerializationTest.java | 105 * Returns golden file for an object being tested. 124 * returned by {@link #getData() getData()}to golden files, each object to 147 * Serializes specified object to an output stream. 158 * Deserializes single object from an input stream. 179 * @param initial - initial object used for creating serialized form 180 * @param deserialized - deserialized object 193 * Comparator for verifying that deserialized object is the same as initial. 253 * <code>object</code>. 257 * selected as </code>comparator</code>.<br>- if passed <code>object</code> 260 * method tries to select one of known comparators basing on <code>object' 269 defineComparator(Object test, Object object) argument 303 verifyGolden(Object test, Object object) argument 319 verifyGolden(Object test, Object object, SerializableAssert comparator) argument 373 verifySelf(Object object) argument 386 verifySelf(Object object, SerializableAssert comparator) argument 447 createGoldenFile(String root, TestCase test, Object object) argument [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | SerializationBenchmark.java | 46 ArrayList<Integer> object = new ArrayList<Integer>(); 48 object.add(i); 50 readSingleObject(reps, object); 54 ArrayList<Integer> object = new ArrayList<Integer>(); 56 object.add(i); 58 writeSingleObject(reps, object); 95 private void readSingleObject(int reps, Object object) throws Exception { argument 96 byte[] bytes = bytes(object);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
H A D | ProxyTest.java | 235 fail("Did not detect non proxy object"); 299 public TestProxyHandler(Object object) { argument 300 proxied = object; 303 public Object invoke(Object object, Method method, Object[] args) argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | EnumMapTest.java | 69 public V setValue(V object) { argument 71 value = object; 352 assertTrue("Returned false for contained object", set 355 assertFalse("Returned true for uncontained object", set 357 assertFalse("Returned true for uncontained object", set 360 assertFalse("Returned true for uncontained object", set 362 assertFalse("Returned true for uncontained object", set 366 assertTrue("Returned false for contained object", set 368 assertTrue("Returned false when the object can be removed", set 370 assertFalse("Returned true for uncontained object", se [all...] |
H A D | RefSortedMap.java | 70 public boolean equals(Object object) { argument 71 if (this == object) { 74 if (object instanceof Map.Entry) { 75 Map.Entry<?, ?> entry = (Map.Entry<?, ?>) object;
|
H A D | HashMapTest.java | 458 // Put non-equal object with same hashcode 576 // Remove non equal object with same hashcode 816 public Object setValue(Object object) { argument
|
H A D | CollectionsTest.java | 254 public int compareTo(MyInt object) { argument 255 return data > object.data ? 1 : (data < object.data ? -1 : 0); 1468 Integer object = objArray[i]; 1469 smallMap.put(object.toString(), object);
|
/libcore/libart/src/main/java/java/lang/ |
H A D | Daemons.java | 207 // We minimize the amount of work we do per finalizable object. For example, we avoid 208 // reading the current time here, since that involves a kernel call per object. We 210 // non-volatile store to communicate the current finalizable object, e.g. for 247 Object object = reference.get(); 250 object.finalize(); 255 // Done finalizing, stop holding the object as live. 357 * Return an object that took too long to finalize or return null. 363 // Avoid remembering object being finalized, so as not to keep it alive. 386 // Recheck to make it even less likely we report the wrong finalizing object in 396 private static void finalizerTimedOut(Object object) { argument [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldObjectOutputStreamTest.java | 96 public void writeObjectOverride(Object object) throws IOException { argument 97 super.writeObjectOverride(object); 238 * "SerializableTestHelper" is an object created for these tests with 282 assertEquals("Test 2: Incorrect object read.", o, ois.readObject()); 283 assertEquals("Test 3: Incorrect object read.", o, ois.readObject()); 284 assertEquals("Test 4: Incorrect object read.", o, ois.readObject()); 428 // Dump the object
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
H A D | WeekFields.java | 104 * that provide access to the values from any {@linkplain Temporal temporal object}. 349 * @throws InvalidObjectException if the serialized object has an invalid 370 * @throws InvalidObjectException if the serialized object has invalid 617 * Checks if this {@code WeekFields} is equal to the specified object. 622 * @param object the other rules to compare to, null returns false 626 public boolean equals(Object object) { argument 627 if (this == object) { 630 if (object instanceof WeekFields) { 631 return hashCode() == object.hashCode(); 903 // Create a new date object wit [all...] |
/libcore/ojluni/src/main/native/ |
H A D | jni_util.c | 935 JNU_IsInstanceOfByName(JNIEnv *env, jobject object, char* classname) argument 942 jint result = (*env)->IsInstanceOf(env, object, cls); 970 JNU_MonitorWait(JNIEnv *env, jobject object, jlong timeout) argument 972 if (object == NULL) { 986 (*env)->CallVoidMethod(env, object, Object_waitMID, timeout); 990 JNU_Notify(JNIEnv *env, jobject object) argument 992 if (object == NULL) { 1006 (*env)->CallVoidMethod(env, object, Object_notifyMID); 1010 JNU_NotifyAll(JNIEnv *env, jobject object) argument 1012 if (object 1049 JNU_PrintClass(JNIEnv *env, char* hdr, jobject object) argument 1064 JNU_ToString(JNIEnv *env, jobject object) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | ObjectOutputStreamTest.java | 546 protected void writeObjectOverride(Object object) throws IOException { argument 548 super.writeObjectOverride(object); 634 * "SerializableTestHelper" is an object created for these tests with 1080 // Dump the object
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | Thread.java | 55 * some thread creates a new <code>Thread</code> object, the new 147 * The synchronization object responsible for this thread's join/sleep/park operations. 237 /* The object in which this thread is blocked in an interruptible I/O 271 * Returns a reference to the currently executing thread object. 394 * @param target the object whose run() method gets called 433 * Allocates a new {@code Thread} object. This constructor has the same 444 * Allocates a new {@code Thread} object. This constructor has the same 451 * the object whose {@code run} method is invoked when this thread 460 * Allocates a new {@code Thread} object. This constructor has the same 475 * the object whos 1494 nativeHoldsLock(Object object) argument [all...] |
/libcore/luni/src/main/native/ |
H A D | org_apache_harmony_xml_ExpatParser.cpp | 107 explicit ParsingContext(jobject object) argument 108 : env(NULL), object(object), buffer(NULL), bufferSize(-1) { 172 /** The Java parser object. */ 173 jobject object; member in struct:ParsingContext 470 jobject javaParser = parsingContext->object; 627 jobject javaParser = parsingContext->object; 660 jobject javaParser = parsingContext->object; 721 jobject javaParser = parsingContext->object; 741 jobject javaParser = parsingContext->object; 876 jobject object = parsingContext->object; local 965 ExpatParser_initialize(JNIEnv* env, jobject object, jstring javaEncoding, jboolean processNamespaces) argument 1020 append(JNIEnv* env, jobject object, jlong pointer, const char* bytes, size_t byteOffset, size_t byteCount, jboolean isFinal) argument 1033 ExpatParser_appendBytes(JNIEnv* env, jobject object, jlong pointer, jbyteArray xml, jint byteOffset, jint byteCount) argument 1044 ExpatParser_appendChars(JNIEnv* env, jobject object, jlong pointer, jcharArray xml, jint charOffset, jint charCount) argument 1057 ExpatParser_appendString(JNIEnv* env, jobject object, jlong pointer, jstring javaXml, jboolean isFinal) argument [all...] |
/libcore/support/src/test/java/tests/resources/ |
H A D | junit4-4.3.1.jar | ... Object object
public static void assertNull (java.lang.Object) Object object
public static void assertNull (java.lang. ... |