Searched defs:ptr (Results 1 - 6 of 6) sorted by relevance
/libcore/luni/src/test/native/ |
H A D | libcore_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 | 310 jbyte* ptr = const_cast<jbyte*>(mScopedBuffers.back()->get()); local 311 if (ptr == NULL) { 315 iov.iov_base = reinterpret_cast<void*>(ptr + offsets[i]); 1780 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local 1782 throwIfMinusOne(env, "mincore", TEMP_FAILURE_RETRY(mincore(ptr, byteCount, vec))); 1802 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local 1803 throwIfMinusOne(env, "mlock", TEMP_FAILURE_RETRY(mlock(ptr, byteCount))); 1809 void* ptr = mmap64(suggestedPtr, byteCount, prot, flags, fd, offset); local 1810 if (ptr == MAP_FAILED) { 1813 return static_cast<jlong>(reinterpret_cast<uintptr_t>(ptr)); 1817 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local 1822 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local 1827 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local [all...] |
/libcore/luni/src/test/java/libcore/libcore/io/ |
H A D | MemoryTest.java | 41 long ptr = base_ptr + ptr_offset; // To test aligned and unaligned accesses. 45 Memory.pokeIntArray(ptr, values, 0, values.length, false); 46 assertIntsEqual(values, ptr, false); 47 assertIntsEqual(swappedValues, ptr, true); 50 Memory.pokeIntArray(ptr, values, 0, values.length, true); 51 assertIntsEqual(values, ptr, true); 52 assertIntsEqual(swappedValues, ptr, false); 56 Memory.pokeIntArray(ptr + i * scale, values, i, 1, true); 58 assertIntsEqual(values, ptr, true); 59 assertIntsEqual(swappedValues, ptr, fals 63 assertIntsEqual(int[] expectedValues, long ptr, boolean swap) argument 104 assertLongsEqual(long[] expectedValues, long ptr, boolean swap) argument 142 assertShortsEqual(short[] expectedValues, long ptr, boolean swap) argument [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));
|
Completed in 162 milliseconds