Home
last modified time | relevance | path

Searched refs:vector (Results 1 – 13 of 13) sorted by relevance

/libcore/ojluni/src/test/java/util/ArrayList/
DEnsureCapacity.java60 Vector<String> vector = new Vector<String>(); in testVector() local
61 vector.add("abc"); in testVector()
63 int cap = vector.capacity(); in testVector()
64 vector.ensureCapacity(Integer.MIN_VALUE); in testVector()
65 checkCapacity(cap, vector.capacity()); in testVector()
/libcore/ojluni/src/test/java/util/Vector/
DSerializationDeadlock.java103 private final Vector vector; field in SerializationDeadlock.TestThread
106 public TestThread(final Vector vector, final CyclicBarrier testEnd) { in TestThread() argument
107 this.vector = vector; in TestThread()
117 oos.writeObject(vector); in run()
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
DmySSLSession.java175 Vector vector = new Vector(); in getValueNames() local
178 vector.addElement(enumeration.nextElement()); in getValueNames()
180 String as[] = new String[vector.size()]; in getValueNames()
181 vector.copyInto(as); in getValueNames()
/libcore/ojluni/src/main/native/
Dlinux_close.cpp136 int NET_ReadV(int s, const struct iovec * vector, int count) { in NET_ReadV() argument
137 BLOCKING_IO_RETURN_INT( s, readv(s, vector, count) ); in NET_ReadV()
151 int NET_WriteV(int s, const struct iovec * vector, int count) { in NET_WriteV() argument
152 BLOCKING_IO_RETURN_INT( s, writev(s, vector, count) ); in NET_WriteV()
Dnet_util_md.h48 extern int NET_ReadV(int s, const struct iovec * vector, int count);
52 extern int NET_Writev(int s, const struct iovec * vector, int count);
DUNIXProcess_md.c554 initVectorFromBlock(const char**vector, const char* block, int count) in initVectorFromBlock() argument
560 vector[i] = p; in initVectorFromBlock()
563 vector[count] = NULL; in initVectorFromBlock()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DVectorTest.java785 Vector vector = new Vector(); in test_lastElement() local
787 vector.lastElement(); in test_lastElement()
1406 Vector<Integer> vector = new Vector<Integer>(); in test_forEach() local
1407 vector.add(0); in test_forEach()
1408 vector.add(1); in test_forEach()
1409 vector.add(2); in test_forEach()
1412 vector.forEach ( k -> output.add(k) ); in test_forEach()
1414 assertEquals(vector, output); in test_forEach()
1419 Vector<Integer> vector = new Vector<>(); in test_forEach_NPE() local
1421 vector.forEach(null); in test_forEach_NPE()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest1.java1102 Vector<String> vector = new Vector<String>(1); in test_18_25_writeObject() local
1103 vector.add(FOO); in test_18_25_writeObject()
1104 objToSave = vector; in test_18_25_writeObject()
/libcore/luni/src/main/java/libcore/io/
DForwardingOs.java485 …core(long address, long byteCount, byte[] vector) throws ErrnoException { os.mincore(address, byte… in mincore() argument
DOs.java423 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException; in mincore() argument
DLinux.java126 public native void mincore(long address, long byteCount, byte[] vector) throws ErrnoException; in mincore() argument
/libcore/luni/src/main/java/android/system/
DOs.java454 …(long address, long byteCount, byte[] vector) throws ErrnoException { Libcore.os.mincore(address, … in mincore() argument
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp349 std::vector<iovec> mIoVec;
350 std::vector<ScopedT*> mScopedBuffers;
1627 std::vector<char> buf(valueLength); in Linux_getxattr()
1922 ScopedByteArrayRW vector(env, javaVector); in Linux_mincore() local
1923 if (vector.get() == NULL) { in Linux_mincore()
1927 unsigned char* vec = reinterpret_cast<unsigned char*>(vector.get()); in Linux_mincore()
2032 std::vector<AsynchronousCloseMonitor*> monitors; in Linux_poll()