Searched refs:duplicate (Results 1 - 25 of 89) sorted by relevance

1234

/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/
H A DDuplicateDirectByteBufferTest.java24 buf = buf.duplicate();
H A DDuplicateHeapByteBufferTest.java24 buf = buf.duplicate();
H A DDuplicateWrappedByteBufferTest.java24 buf = buf.duplicate();
H A DCharBufferTest.java220 // duplicate's contents should be the same as buf
221 CharBuffer duplicate = buf.duplicate();
222 assertNotSame(buf, duplicate);
223 assertEquals(buf.position(), duplicate.position());
224 assertEquals(buf.limit(), duplicate.limit());
225 assertEquals(buf.isReadOnly(), duplicate.isReadOnly());
226 assertEquals(buf.isDirect(), duplicate.isDirect());
227 assertEquals(buf.order(), duplicate.order());
228 assertEquals(buf.capacity(), duplicate
[all...]
H A DDoubleBufferTest.java216 // duplicate's contents should be the same as buf
217 DoubleBuffer duplicate = buf.duplicate();
218 assertNotSame(buf, duplicate);
219 assertEquals(buf.position(), duplicate.position());
220 assertEquals(buf.limit(), duplicate.limit());
221 assertEquals(buf.isReadOnly(), duplicate.isReadOnly());
222 assertEquals(buf.isDirect(), duplicate.isDirect());
223 assertEquals(buf.order(), duplicate.order());
224 assertContentEquals(buf, duplicate);
[all...]
H A DFloatBufferTest.java207 // duplicate's contents should be the same as buf
208 FloatBuffer duplicate = buf.duplicate();
209 assertNotSame(buf, duplicate);
210 assertEquals(buf.position(), duplicate.position());
211 assertEquals(buf.limit(), duplicate.limit());
212 assertEquals(buf.isReadOnly(), duplicate.isReadOnly());
213 assertEquals(buf.isDirect(), duplicate.isDirect());
214 assertEquals(buf.order(), duplicate.order());
215 assertContentEquals(buf, duplicate);
[all...]
H A DIntBufferTest.java187 // duplicate's contents should be the same as buf
188 IntBuffer duplicate = buf.duplicate();
189 assertNotSame(buf, duplicate);
190 assertEquals(buf.position(), duplicate.position());
191 assertEquals(buf.limit(), duplicate.limit());
192 assertEquals(buf.isReadOnly(), duplicate.isReadOnly());
193 assertEquals(buf.isDirect(), duplicate.isDirect());
194 assertEquals(buf.order(), duplicate.order());
195 assertContentEquals(buf, duplicate);
[all...]
H A DLongBufferTest.java187 // duplicate's contents should be the same as buf
188 LongBuffer duplicate = buf.duplicate();
189 assertNotSame(buf, duplicate);
190 assertEquals(buf.position(), duplicate.position());
191 assertEquals(buf.limit(), duplicate.limit());
192 assertEquals(buf.isReadOnly(), duplicate.isReadOnly());
193 assertEquals(buf.isDirect(), duplicate.isDirect());
194 assertEquals(buf.order(), duplicate.order());
195 assertContentEquals(buf, duplicate);
[all...]
H A DShortBufferTest.java186 // duplicate's contents should be the same as buf
187 ShortBuffer duplicate = buf.duplicate();
188 assertNotSame(buf, duplicate);
189 assertEquals(buf.position(), duplicate.position());
190 assertEquals(buf.limit(), duplicate.limit());
191 assertEquals(buf.isReadOnly(), duplicate.isReadOnly());
192 assertEquals(buf.isDirect(), duplicate.isDirect());
193 assertEquals(buf.order(), duplicate.order());
194 assertContentEquals(buf, duplicate);
[all...]
H A DReadOnlyDoubleBufferTest.java50 DoubleBuffer duplicate = buf.duplicate();
51 assertEquals(buf.hashCode(), duplicate.hashCode());
H A DReadOnlyFloatBufferTest.java50 FloatBuffer duplicate = buf.duplicate();
51 assertEquals(buf.hashCode(), duplicate.hashCode());
H A DReadOnlyIntBufferTest.java50 IntBuffer duplicate = buf.duplicate();
51 assertEquals(buf.hashCode(), duplicate.hashCode());
H A DReadOnlyLongBufferTest.java50 LongBuffer duplicate = buf.duplicate();
51 assertEquals(buf.hashCode(), duplicate.hashCode());
H A DReadOnlyShortBufferTest.java50 ShortBuffer duplicate = buf.duplicate();
51 assertEquals(buf.hashCode(), duplicate.hashCode());
H A DReadOnlyCharBufferTest.java53 CharBuffer duplicate = buf.duplicate();
54 assertEquals(buf.hashCode(), duplicate.hashCode());
/external/icu4c/common/
H A Dmutex.h98 * created yet. In a race condition, the duplicate may not be NULL.
99 * The caller must delete the duplicate.
100 * The caller need not initialize the duplicate before the call.
103 void *&duplicate,
118 * Takes care of the duplicate deletion and type casting.
130 void *duplicate; local
131 T *instance=(T *)singleton.getInstance(instantiator, context, duplicate, errorCode);
132 delete (T *)duplicate;
152 * created yet. In a race condition, the duplicate may not be NULL.
153 * The caller must delete the duplicate
186 void *duplicate; local
[all...]
H A Dmutex.cpp21 void *&duplicate,
23 duplicate=NULL;
38 // to the "duplicate" parameter, and the caller deletes it.
49 duplicate=instance;
71 void *&duplicate,
73 duplicate=NULL;
99 // to the "duplicate" parameter, and the caller deletes it.
114 // Record a duplicate if we lost the race, or
116 duplicate=instance;
20 getInstance(InstantiatorFn *instantiator, const void *context, void *&duplicate, UErrorCode &errorCode) argument
70 getInstance(InstantiatorFn *instantiator, const void *context, void *&duplicate, UErrorCode &errorCode) argument
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
H A DListRemoveTester.java41 E duplicate = arrayAndDuplicate.duplicate;
43 int firstIndex = getList().indexOf(duplicate);
46 getList().remove(duplicate));
47 assertTrue("After remove(duplicate), a list should still contain "
48 + "the duplicate element", getList().contains(duplicate));
49 assertFalse("remove(duplicate) should remove the first instance of the "
50 + "duplicate element in the list",
51 firstIndex == getList().indexOf(duplicate));
[all...]
H A DListRemoveAllTester.java43 E duplicate = arrayAndDuplicate.duplicate;
46 getList().removeAll(MinimalCollection.of(duplicate)));
49 getList().contains(duplicate));
/external/javassist/sample/duplicate/
H A DMain.java1 package sample.duplicate;
21 First, run sample.duplicate.Viewer without a metaobject.
23 % java sample.duplicate.Viewer
28 of sample.duplicate.DuplicatedObject.
30 % java sample.duplicate.Main
33 sample.duplicate.Viewer is loaded by javassist.tools.reflect.Loader so that
39 cl.makeReflective("sample.duplicate.Ball",
40 "sample.duplicate.DuplicatedObject",
42 cl.run("sample.duplicate.Viewer", args);
H A DBall.java1 package sample.duplicate;
H A DDuplicatedObject.java1 package sample.duplicate;
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/
H A DUnknownEntry.java37 this.content = (ByteBuffer) content.duplicate().rewind();
42 this.content = (ByteBuffer) byteBuffer.duplicate().rewind();
47 return content.duplicate();
52 ByteBuffer bb = content.duplicate();
/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DAbstractContainerTester.java175 public final E duplicate; field in class:AbstractContainerTester.ArrayWithDuplicate
177 private ArrayWithDuplicate(E[] elements, E duplicate) { argument
179 this.duplicate = duplicate;
184 * @return an array of the proper size with a duplicate element.
189 E duplicate = elements[(elements.length / 2) - 1];
190 elements[(elements.length / 2) + 1] = duplicate;
191 return new ArrayWithDuplicate<E>(elements, duplicate);
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_5/String/
H A Dregress-179068.js52 * > var long_str = duplicate(LONG_STR_SEED, N);
64 * > var long_str = duplicate(LONG_STR_SEED, N);
86 * duplicate function and this is faster then doing recursion like in the
106 var long_str = duplicate(LONG_STR_SEED, N);
122 function duplicate(str, count) function

Completed in 268 milliseconds

1234