/frameworks/wilhelm/tests/examples/ |
H A D | slesTestDecodeAac.cpp | 109 void *ptr; variable 300 frame - (unsigned char *) ptr, framelen, filelen); 306 frame - (unsigned char *) ptr, filelen); 432 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0); 433 if (ptr == MAP_FAILED) { 437 frame = (unsigned char *) ptr; 650 frame - (unsigned char *) ptr); 849 ok = munmap(ptr, statbuf.st_size);
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | xaplay.c | 332 void *ptr; local 333 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0); 334 if (ptr == MAP_FAILED) { 343 packets = (MPEG2TS_Packet *) ptr;
|
/frameworks/wilhelm/tools/permute/ |
H A D | permute.c | 241 void *ptr = malloc(sfinfo_in.frames * frameSizeRead); local 242 assert(NULL != ptr); 244 count = sf_readf_short(sf_in, ptr, sfinfo_in.frames); 270 count = sf_writef_short(sf_out, &((short *) ptr)[sfinfo_in.channels * s.mSegmentArray[i]
|
/frameworks/opt/emoji/ |
H A D | EmojiFactory.cpp | 60 char *saveptr, *ptr; local 61 ptr = emoji_libraries; 63 ptr = strtok_r(ptr, ":", &saveptr); 64 if (NULL == ptr) { 67 TryRegisterEmojiFactory(ptr); 68 ptr = NULL;
|
/frameworks/rs/driver/ |
H A D | rsdAllocation.cpp | 84 uint8_t *ptr = (uint8_t *)drv->lod[lod].mallocPtr; local 85 ptr += face * drv->faceOffset; 86 ptr += yoff * drv->lod[lod].stride; 87 ptr += xoff * alloc->mHal.state.elementSizeBytes; 88 return ptr; 92 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument 104 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); 233 const Type *type, uint8_t *ptr) { 266 drv->lod[0].mallocPtr = ptr; 268 drv->lod[lod].mallocPtr = ptr 232 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument 291 uint8_t * ptr = NULL; local 374 uint8_t *ptr = (uint8_t *)realloc(oldPtr, s); local 580 uint8_t * ptr = GetOffsetPtr(alloc, xoff, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local 632 const uint8_t * ptr = GetOffsetPtr(alloc, xoff, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local 735 uint8_t * ptr = GetOffsetPtr(alloc, x, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local 755 uint8_t * ptr = GetOffsetPtr(alloc, x, y, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local [all...] |
H A D | rsdBcc.cpp | 198 //ALOGE("usr ptr in %p, out %p", mtls->fep.ptrIn, mtls->fep.ptrOut); 241 //ALOGE("usr ptr in %p, out %p", mtls->fep.ptrIn, mtls->fep.ptrOut); 564 void *ptr = NULL; local 568 ptr = allocDrv->lod[0].mallocPtr; 570 memcpy(destPtr, &ptr, sizeof(void *)); 638 const void *ptr) { 640 if (!ptr) { 648 if (adrv->lod[0].mallocPtr == ptr) { 652 ALOGE("rsGetAllocation, failed to find %p", ptr); 636 rsdScriptGetAllocationForPointer(const android::renderscript::Context *dc, const android::renderscript::Script *sc, const void *ptr) argument
|
H A D | rsdRuntimeMath.cpp | 256 static int32_t SC_AtomicCas(volatile int32_t *ptr, int32_t expectedValue, int32_t newValue) { argument 260 int32_t ret = android_atomic_release_cas(expectedValue, newValue, ptr); 267 prev = *ptr; 277 static int32_t SC_AtomicInc(volatile int32_t *ptr) { argument 278 return android_atomic_inc(ptr); 281 static int32_t SC_AtomicDec(volatile int32_t *ptr) { argument 282 return android_atomic_dec(ptr); 285 static int32_t SC_AtomicAdd(volatile int32_t *ptr, int32_t value) { argument 286 return android_atomic_add(value, ptr); 289 static int32_t SC_AtomicSub(volatile int32_t *ptr, int32_ argument 298 SC_AtomicAnd(volatile int32_t *ptr, int32_t value) argument 302 SC_AtomicOr(volatile int32_t *ptr, int32_t value) argument 306 SC_AtomicXor(volatile int32_t *ptr, int32_t value) argument 315 SC_AtomicUMin(volatile uint32_t *ptr, uint32_t value) argument 325 SC_AtomicMin(volatile int32_t *ptr, int32_t value) argument 335 SC_AtomicUMax(volatile uint32_t *ptr, uint32_t value) argument 345 SC_AtomicMax(volatile int32_t *ptr, int32_t value) argument [all...] |
H A D | rsdRuntimeStubs.cpp | 424 static const Allocation * SC_GetAllocation(const void *ptr) { argument 426 return rsdScriptGetAllocationForPointer(rsc, sc, ptr);
|
H A D | rsdVertexArray.h | 36 const uint8_t * ptr; member in class:RsdVertexArray::Attrib
|
/frameworks/rs/ |
H A D | rsAllocation.cpp | 29 RsAllocationMipmapControl mc, void * ptr) 42 RsAllocationMipmapControl mc, void * ptr) { 43 Allocation *a = new Allocation(rsc, type, usages, mc, ptr); 231 ALOGV("%s allocation ptr=%p mUsageFlags=0x04%x, mMipmapControl=0x%04x", 391 void Allocation::incRefs(const void *ptr, size_t ct, size_t startOff) const { argument 392 mHal.state.type->incRefs(ptr, ct, startOff); 395 void Allocation::decRefs(const void *ptr, size_t ct, size_t startOff) const { argument 399 mHal.state.type->decRefs(ptr, ct, startOff); 403 void *ptr = mRSC->mHal.funcs.allocation.lock1D(mRSC, this); local 404 decRefs(ptr, mHa 28 Allocation(Context *rsc, const Type *type, uint32_t usages, RsAllocationMipmapControl mc, void * ptr) argument 41 createAllocation(Context *rsc, const Type *type, uint32_t usages, RsAllocationMipmapControl mc, void * ptr) argument 550 rsi_AllocationCreateTyped(Context *rsc, RsType vtype, RsAllocationMipmapControl mips, uint32_t usages, uint32_t ptr) argument [all...] |
H A D | rsType.cpp | 271 void Type::incRefs(const void *ptr, size_t ct, size_t startOff) const { argument 272 const uint8_t *p = static_cast<const uint8_t *>(ptr); 285 void Type::decRefs(const void *ptr, size_t ct, size_t startOff) const { argument 289 const uint8_t *p = static_cast<const uint8_t *>(ptr);
|
/frameworks/support/renderscript/v8/jni/ |
H A D | android_renderscript_RenderScript.cpp | 200 jint *ptr = _env->GetIntArrayElements(data, NULL); local 204 ptr, len * 4, 210 _env->ReleaseIntArrayElements(data, ptr, 0); 320 LOG_API("nAllocationCreateTyped, con(%p), type(%p), mip(%i), usage(%i), ptr(%p)", con, (RsElement)type, mips, usage, (void *)pointer); 424 jint *ptr = _env->GetIntArrayElements(data, NULL); local 425 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 426 _env->ReleaseIntArrayElements(data, ptr, JNI_ABORT); 434 jshort *ptr = _env->GetShortArrayElements(data, NULL); local 435 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 436 _env->ReleaseShortArrayElements(data, ptr, JNI_ABOR 444 jbyte *ptr = _env->GetByteArrayElements(data, NULL); local 454 jfloat *ptr = _env->GetFloatArrayElements(data, NULL); local 465 jbyte *ptr = _env->GetByteArrayElements(data, NULL); local 476 jshort *ptr = _env->GetShortArrayElements(data, NULL); local 487 jbyte *ptr = _env->GetByteArrayElements(data, NULL); local 498 jint *ptr = _env->GetIntArrayElements(data, NULL); local 509 jfloat *ptr = _env->GetFloatArrayElements(data, NULL); local 543 jint *ptr = _env->GetIntArrayElements(data, NULL); local 554 jshort *ptr = _env->GetShortArrayElements(data, NULL); local 565 jbyte *ptr = _env->GetByteArrayElements(data, NULL); local 576 jfloat *ptr = _env->GetFloatArrayElements(data, NULL); local 652 jbyte *ptr = _env->GetByteArrayElements(data, NULL); local 662 jbyte *ptr = _env->GetByteArrayElements(data, NULL); local 700 jbyte *ptr = _env->GetByteArrayElements(data, NULL); local 718 jbyte *ptr = _env->GetByteArrayElements(params, NULL); local [all...] |
/frameworks/support/renderscript/v8/rs_support/driver/ |
H A D | rsdAllocation.cpp | 44 uint8_t *ptr = (uint8_t *)drv->lod[lod].mallocPtr; local 45 ptr += face * drv->faceOffset; 46 ptr += yoff * drv->lod[lod].stride; 47 ptr += xoff * alloc->mHal.state.elementSizeBytes; 48 return ptr; 52 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument 68 const Type *type, uint8_t *ptr) { 101 drv->lod[0].mallocPtr = ptr; 103 drv->lod[lod].mallocPtr = ptr + offsets[lod]; 106 alloc->mHal.drvState.mallocPtrLOD0 = ptr; 67 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument 128 uint8_t * ptr = NULL; local 192 uint8_t *ptr = (uint8_t *)realloc(oldPtr, s); local 273 uint8_t * ptr = GetOffsetPtr(alloc, xoff, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local 325 const uint8_t * ptr = GetOffsetPtr(alloc, xoff, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local 428 uint8_t * ptr = GetOffsetPtr(alloc, x, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local 448 uint8_t * ptr = GetOffsetPtr(alloc, x, y, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local [all...] |
H A D | rsdBcc.cpp | 379 //ALOGE("usr ptr in %p, out %p", mtls->ptrIn, mtls->ptrOut); 410 //ALOGE("usr ptr in %p, out %p", mtls->ptrIn, mtls->ptrOut); 709 void *ptr = NULL; local 713 ptr = allocDrv->lod[0].mallocPtr; 715 memcpy(destPtr, &ptr, sizeof(void *)); 764 const void *ptr) { 766 if (!ptr) { 774 if (adrv->lod[0].mallocPtr == ptr) { 778 ALOGE("rsGetAllocation, failed to find %p", ptr); 762 rsdScriptGetAllocationForPointer(const android::renderscript::Context *dc, const android::renderscript::Script *sc, const void *ptr) argument
|
H A D | rsdRuntimeMath.cpp | 259 static int32_t SC_AtomicCas(volatile int32_t *ptr, int32_t expectedValue, int32_t newValue) { argument 263 int32_t ret = android_atomic_release_cas(expectedValue, newValue, ptr); 270 prev = *ptr; 280 static int32_t SC_AtomicInc(volatile int32_t *ptr) { argument 281 return android_atomic_inc(ptr); 284 static int32_t SC_AtomicDec(volatile int32_t *ptr) { argument 285 return android_atomic_dec(ptr); 288 static int32_t SC_AtomicAdd(volatile int32_t *ptr, int32_t value) { argument 289 return android_atomic_add(value, ptr); 292 static int32_t SC_AtomicSub(volatile int32_t *ptr, int32_ argument 301 SC_AtomicAnd(volatile int32_t *ptr, int32_t value) argument 305 SC_AtomicOr(volatile int32_t *ptr, int32_t value) argument 309 SC_AtomicXor(volatile int32_t *ptr, int32_t value) argument 318 SC_AtomicUMin(volatile uint32_t *ptr, uint32_t value) argument 328 SC_AtomicMin(volatile int32_t *ptr, int32_t value) argument 338 SC_AtomicUMax(volatile uint32_t *ptr, uint32_t value) argument 348 SC_AtomicMax(volatile int32_t *ptr, int32_t value) argument [all...] |
H A D | rsdRuntimeStubs.cpp | 135 static const Allocation * SC_GetAllocation(const void *ptr) { argument 137 return rsdScriptGetAllocationForPointer(rsc, sc, ptr);
|
/frameworks/support/renderscript/v8/rs_support/ |
H A D | rsAllocation.cpp | 26 RsAllocationMipmapControl mc, void * ptr) 39 RsAllocationMipmapControl mc, void * ptr) { 40 Allocation *a = new Allocation(rsc, type, usages, mc, ptr); 212 ALOGV("%s allocation ptr=%p mUsageFlags=0x04%x, mMipmapControl=0x%04x", 369 void Allocation::incRefs(const void *ptr, size_t ct, size_t startOff) const { argument 370 mHal.state.type->incRefs(ptr, ct, startOff); 373 void Allocation::decRefs(const void *ptr, size_t ct, size_t startOff) const { argument 377 mHal.state.type->decRefs(ptr, ct, startOff); 381 void *ptr = mRSC->mHal.funcs.allocation.lock1D(mRSC, this); local 382 decRefs(ptr, mHa 25 Allocation(Context *rsc, const Type *type, uint32_t usages, RsAllocationMipmapControl mc, void * ptr) argument 38 createAllocation(Context *rsc, const Type *type, uint32_t usages, RsAllocationMipmapControl mc, void * ptr) argument 488 rsi_AllocationCreateTyped(Context *rsc, RsType vtype, RsAllocationMipmapControl mips, uint32_t usages, uint32_t ptr) argument [all...] |
H A D | rsType.cpp | 271 void Type::incRefs(const void *ptr, size_t ct, size_t startOff) const { argument 272 const uint8_t *p = static_cast<const uint8_t *>(ptr); 285 void Type::decRefs(const void *ptr, size_t ct, size_t startOff) const { argument 289 const uint8_t *p = static_cast<const uint8_t *>(ptr);
|
/frameworks/compile/linkloader/tests/images/ |
H A D | test.c | 18 static void hello_function(const char *ptr){ argument 19 printf("%s", ptr);
|
/frameworks/compile/linkloader/utils/ |
H A D | raw_ostream.h | 25 char *ptr; member in struct:MyFormat
|
/frameworks/compile/slang/ |
H A D | slang-data.c | 48 unsigned char *ptr = buf; local 56 for (i = 0; i < line_count; ++i, ptr += 16) { 64 ptr[0], ptr[1], ptr[2], ptr[3], 65 ptr[4], ptr[5], ptr[6], ptr[ [all...] |
/frameworks/native/include/utils/ |
H A D | List.h | 57 inline void setPrev(_Node* ptr) { mpPrev = ptr; } argument 58 inline void setNext(_Node* ptr) { mpNext = ptr; } argument 92 explicit _ListIterator(_NodePtr ptr) : mpNode(ptr) {} argument
|
H A D | StrongPointer.h | 107 void set_pointer(T* ptr); 206 void sp<T>::set_pointer(T* ptr) { argument 207 m_ptr = ptr;
|
/frameworks/native/libs/binder/ |
H A D | Parcel.cpp | 745 void* ptr = writeInplace(len); local 746 if (!ptr) return NO_MEMORY; 748 outBlob->init(false /*mapped*/, ptr, len); 760 void* ptr = ::mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); local 761 if (ptr == MAP_FAILED) { 772 outBlob->init(true /*mapped*/, ptr, len); 778 ::munmap(ptr, len); 1115 const void* ptr = readInplace(len); local 1116 if (!ptr) return BAD_VALUE; 1118 outBlob->init(false /*mapped*/, const_cast<void*>(ptr), le 1126 void* ptr = ::mmap(NULL, len, PROT_READ, MAP_SHARED, fd, 0); local [all...] |
/frameworks/native/libs/utils/ |
H A D | FileMap.cpp | 138 void* ptr; local 169 ptr = mmap(NULL, adjLength, prot, flags, fd, adjOffset); 170 if (ptr == MAP_FAILED) { 182 mBasePtr = ptr;
|