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.c53 unsigned char *vec = (unsigned char *)malloc(numPages * sizeof(char)); in Java_java_nio_MappedByteBuffer_isLoaded0()
55 char *vec = (char *)malloc(numPages * sizeof(char)); in Java_java_nio_MappedByteBuffer_isLoaded0()
58 if (vec == NULL) { in Java_java_nio_MappedByteBuffer_isLoaded0()
63 result = mincore(a, (size_t)len, vec); in Java_java_nio_MappedByteBuffer_isLoaded0()
66 free(vec); in Java_java_nio_MappedByteBuffer_isLoaded0()
71 if (vec[i] == 0) { in Java_java_nio_MappedByteBuffer_isLoaded0()
76 free(vec); in Java_java_nio_MappedByteBuffer_isLoaded0()
/libcore/ojluni/src/main/java/java/security/
DUnresolvedPermissionCollection.java172 Vector<UnresolvedPermission> vec = new Vector<>(list.size()); in writeObject() local
174 vec.addAll(list); in writeObject()
178 permissions.put(e.getKey(), vec); in writeObject() local
212 Vector<UnresolvedPermission> vec = e.getValue(); in readObject() local
213 List<UnresolvedPermission> list = new ArrayList<>(vec.size()); in readObject()
214 list.addAll(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.cpp1876 unsigned char* vec = reinterpret_cast<unsigned char*>(vector.get()); in Linux_mincore() local
1877 throwIfMinusOne(env, "mincore", TEMP_FAILURE_RETRY(mincore(ptr, byteCount, vec))); in Linux_mincore()