Searched refs:ptr (Results 1 – 5 of 5) sorted by relevance
/libcore/luni/src/test/java/libcore/io/ |
D | MemoryTest.java | 38 long ptr = base_ptr + ptr_offset; // To test aligned and unaligned accesses. in testSetIntArray() local 42 Memory.pokeIntArray(ptr, values, 0, values.length, false); in testSetIntArray() 43 assertIntsEqual(values, ptr, false); in testSetIntArray() 44 assertIntsEqual(swappedValues, ptr, true); in testSetIntArray() 47 Memory.pokeIntArray(ptr, values, 0, values.length, true); in testSetIntArray() 48 assertIntsEqual(values, ptr, true); in testSetIntArray() 49 assertIntsEqual(swappedValues, ptr, false); in testSetIntArray() 53 Memory.pokeIntArray(ptr + i * scale, values, i, 1, true); in testSetIntArray() 55 assertIntsEqual(values, ptr, true); in testSetIntArray() 56 assertIntsEqual(swappedValues, ptr, false); in testSetIntArray() [all …]
|
/libcore/luni/src/test/native/ |
D | libcore_util_NativeAllocationRegistryTest.cpp | 26 static void finalize(uint64_t* ptr) { in finalize() argument 27 gNumNativeBytesAllocated -= *ptr; in finalize() 28 delete ptr; in finalize() 43 uint64_t* ptr = new uint64_t; in Java_libcore_util_NativeAllocationRegistryTest_doNativeAllocation() local 44 *ptr = static_cast<uint64_t>(size); in Java_libcore_util_NativeAllocationRegistryTest_doNativeAllocation() 45 return static_cast<jlong>(reinterpret_cast<uintptr_t>(ptr)); in Java_libcore_util_NativeAllocationRegistryTest_doNativeAllocation()
|
/libcore/luni/src/main/native/ |
D | libcore_util_NativeAllocationRegistry.cpp | 24 jlong ptr) { in NativeAllocationRegistry_applyFreeFunction() argument 25 void* nativePtr = reinterpret_cast<void*>(static_cast<uintptr_t>(ptr)); in NativeAllocationRegistry_applyFreeFunction()
|
D | libcore_io_Posix.cpp | 296 jbyte* ptr = const_cast<jbyte*>(mScopedBuffers.back()->get()); in init() local 297 if (ptr == NULL) { in init() 301 iov.iov_base = reinterpret_cast<void*>(ptr + offsets[i]); in init() 1287 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); in Posix_mincore() local 1289 throwIfMinusOne(env, "mincore", TEMP_FAILURE_RETRY(mincore(ptr, byteCount, vec))); in Posix_mincore() 1309 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); in Posix_mlock() local 1310 throwIfMinusOne(env, "mlock", TEMP_FAILURE_RETRY(mlock(ptr, byteCount))); in Posix_mlock() 1316 void* ptr = mmap(suggestedPtr, byteCount, prot, flags, fd, offset); in Posix_mmap() local 1317 if (ptr == MAP_FAILED) { in Posix_mmap() 1320 return static_cast<jlong>(reinterpret_cast<uintptr_t>(ptr)); in Posix_mmap() [all …]
|
/libcore/ojluni/src/main/native/ |
D | UnixFileSystem_md.c | 294 struct dirent64 *ptr; in Java_java_io_UnixFileSystem_list0() local 304 ptr = malloc(sizeof(struct dirent64) + (PATH_MAX + 1)); in Java_java_io_UnixFileSystem_list0() 305 if (ptr == NULL) { in Java_java_io_UnixFileSystem_list0() 318 while ((readdir64_r(dir, ptr, &result) == 0) && (result != NULL)) { in Java_java_io_UnixFileSystem_list0() 320 if (!strcmp(ptr->d_name, ".") || !strcmp(ptr->d_name, "..")) in Java_java_io_UnixFileSystem_list0() 331 name = newStringPlatform(env, ptr->d_name); in Java_java_io_UnixFileSystem_list0() 333 name = JNU_NewStringPlatform(env, ptr->d_name); in Java_java_io_UnixFileSystem_list0() 340 free(ptr); in Java_java_io_UnixFileSystem_list0() 355 free(ptr); in Java_java_io_UnixFileSystem_list0()
|