Searched defs:ptr (Results 1 - 5 of 5) sorted by relevance
/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_Posix.cpp | 296 jbyte* ptr = const_cast<jbyte*>(mScopedBuffers.back()->get()); local 297 if (ptr == NULL) { 301 iov.iov_base = reinterpret_cast<void*>(ptr + offsets[i]); 1287 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local 1289 throwIfMinusOne(env, "mincore", TEMP_FAILURE_RETRY(mincore(ptr, byteCount, vec))); 1309 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local 1310 throwIfMinusOne(env, "mlock", TEMP_FAILURE_RETRY(mlock(ptr, byteCount))); 1316 void* ptr = mmap(suggestedPtr, byteCount, prot, flags, fd, offset); local 1317 if (ptr == MAP_FAILED) { 1320 return static_cast<jlong>(reinterpret_cast<uintptr_t>(ptr)); 1324 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local 1329 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local 1334 void* ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(address)); local [all...] |
/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/ojluni/src/main/native/ |
H A D | UnixFileSystem_md.c | 294 struct dirent64 *ptr; local 304 ptr = malloc(sizeof(struct dirent64) + (PATH_MAX + 1)); 305 if (ptr == NULL) { 318 while ((readdir64_r(dir, ptr, &result) == 0) && (result != NULL)) { 320 if (!strcmp(ptr->d_name, ".") || !strcmp(ptr->d_name, "..")) 331 name = newStringPlatform(env, ptr->d_name); 333 name = JNU_NewStringPlatform(env, ptr->d_name); 340 free(ptr); 355 free(ptr); [all...] |
Completed in 198 milliseconds