Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/main/java/sun/nio/ch/
DIOUtil.java110 IOVecWrapper vec = IOVecWrapper.get(length); in write() local
126 vec.setBuffer(iov_len, buf, pos, rem); in write()
133 vec.setShadow(iov_len, shadow); in write()
139 vec.putBase(iov_len, ((DirectBuffer)buf).address() + pos); in write()
140 vec.putLen(iov_len, rem); in write()
148 long bytesWritten = nd.writev(fd, vec.address, iov_len); in write()
154 ByteBuffer buf = vec.getBuffer(j); in write()
155 int pos = vec.getPosition(j); in write()
156 int rem = vec.getRemaining(j); in write()
162 ByteBuffer shadow = vec.getShadow(j); in write()
[all …]
/libcore/ojluni/src/main/native/
DMappedByteBuffer.c55 unsigned char *vec = (unsigned char *)malloc(numPages * sizeof(*vec)); in Java_java_nio_MappedByteBuffer_isLoaded0()
57 char *vec = (char *)malloc(numPages * sizeof(*vec)); in Java_java_nio_MappedByteBuffer_isLoaded0()
60 if (vec == NULL) { in Java_java_nio_MappedByteBuffer_isLoaded0()
65 result = mincore(a, (size_t)len, vec); in Java_java_nio_MappedByteBuffer_isLoaded0()
68 free(vec); in Java_java_nio_MappedByteBuffer_isLoaded0()
73 if (vec[i] == 0) { in Java_java_nio_MappedByteBuffer_isLoaded0()
78 free(vec); in Java_java_nio_MappedByteBuffer_isLoaded0()
/libcore/ojluni/src/main/java/java/security/
DUnresolvedPermissionCollection.java175 Vector<UnresolvedPermission> vec = new Vector<>(list); in writeObject() local
178 permissions.put(e.getKey(), vec); in writeObject() local
211 Vector<UnresolvedPermission> vec = e.getValue(); in readObject() local
212 List<UnresolvedPermission> list = new CopyOnWriteArrayList<>(vec); in readObject()
/libcore/ojluni/src/main/java/sun/security/util/
DDerInputStream.java464 Vector<DerValue> vec = new Vector<DerValue>(startLen); in readVector() local
470 vec.addElement(value); in readVector()
479 int i, max = vec.size(); in readVector()
483 retval[i] = vec.elementAt(i); in readVector()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DVectorTest.java1330 Vector<Object> vec = new Vector<Object>(3); in test_toString() local
1331 vec.add(null); in test_toString()
1332 vec.add(new Object()); in test_toString()
1333 vec.add(vec); in test_toString()
1334 assertNotNull(vec.toString()); in test_toString()
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp1927 unsigned char* vec = reinterpret_cast<unsigned char*>(vector.get()); in Linux_mincore() local
1928 throwIfMinusOne(env, "mincore", TEMP_FAILURE_RETRY(mincore(ptr, byteCount, vec))); in Linux_mincore()