/libcore/luni/src/test/java/libcore/io/ |
H A D | MemoryTest.java | 38 long ptr = base_ptr + ptr_offset; // To test aligned and unaligned accesses. 42 Memory.pokeIntArray(ptr, values, 0, values.length, false); 43 assertIntsEqual(values, ptr, false); 44 assertIntsEqual(swappedValues, ptr, true); 47 Memory.pokeIntArray(ptr, values, 0, values.length, true); 48 assertIntsEqual(values, ptr, true); 49 assertIntsEqual(swappedValues, ptr, false); 53 Memory.pokeIntArray(ptr + i * scale, values, i, 1, true); 55 assertIntsEqual(values, ptr, true); 56 assertIntsEqual(swappedValues, ptr, fals 60 assertIntsEqual(int[] expectedValues, long ptr, boolean swap) argument 101 assertLongsEqual(long[] expectedValues, long ptr, boolean swap) argument 139 assertShortsEqual(short[] expectedValues, long ptr, boolean swap) argument [all...] |
/libcore/luni/src/test/native/ |
H A D | libcore_util_NativeAllocationRegistryTest.cpp | 26 static void finalize(uint64_t* ptr) { argument 27 gNumNativeBytesAllocated -= *ptr; 28 delete ptr; 43 uint64_t* ptr = new uint64_t; local 44 *ptr = static_cast<uint64_t>(size); 45 return static_cast<jlong>(reinterpret_cast<uintptr_t>(ptr));
|
/libcore/luni/src/main/native/ |
H A D | libcore_util_NativeAllocationRegistry.cpp | 24 jlong ptr) { 25 void* nativePtr = reinterpret_cast<void*>(static_cast<uintptr_t>(ptr)); 21 NativeAllocationRegistry_applyFreeFunction(JNIEnv*, jclass, jlong freeFunction, jlong ptr) argument
|
H A D | libcore_io_Linux.cpp | 301 jbyte* ptr = const_cast<jbyte*>(mScopedBuffers.back()->get()); local 302 if (ptr == NULL) { 306 iov.iov_base = reinterpret_cast<void*>(ptr + offsets[i]); 1694 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local 1696 throwIfMinusOne(env, "mincore", TEMP_FAILURE_RETRY(mincore(ptr, byteCount, vec))); 1716 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local 1717 throwIfMinusOne(env, "mlock", TEMP_FAILURE_RETRY(mlock(ptr, byteCount))); 1723 void* ptr = mmap64(suggestedPtr, byteCount, prot, flags, fd, offset); local 1724 if (ptr == MAP_FAILED) { 1727 return static_cast<jlong>(reinterpret_cast<uintptr_t>(ptr)); 1731 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local 1736 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local 1741 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local [all...] |
/libcore/ojluni/src/main/native/ |
H A D | UnixFileSystem_md.c | 296 struct dirent64 *ptr; local 311 ptr = malloc(sizeof(struct dirent64) + (PATH_MAX + 1)); 312 if (ptr == NULL) { 325 while ((readdir64_r(dir, ptr, &result) == 0) && (result != NULL)) { 327 if (!strcmp(ptr->d_name, ".") || !strcmp(ptr->d_name, "..")) 337 name = newStringPlatform(env, ptr->d_name); 339 name = JNU_NewStringPlatform(env, ptr->d_name); 346 free(ptr); 361 free(ptr); [all...] |
H A D | UnixNativeDispatcher.c | 693 struct dirent64* ptr = &entry.buf; local 699 res = readdir64_r(dirp, ptr, &result); 716 jsize len = strlen(ptr->d_name); 719 (*env)->SetByteArrayRegion(env, bytes, 0, len, (jbyte*)(ptr->d_name));
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
H A D | UnixSecureDirectoryStream.java | 121 long ptr = 0L; 128 ptr = fdopendir(newdfd1); 138 return new UnixSecureDirectoryStream(child, ptr, newdfd2, null);
|
H A D | UnixFileSystemProvider.java | 406 long ptr = opendir(dir); 407 return new UnixDirectoryStream(dir, ptr, filter);
|