Searched defs:ptr (Results 1 - 25 of 134) sorted by last modified time

123456

/frameworks/wilhelm/tests/examples/
H A DslesTestDecodeAac.cpp109 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 Dxaplay.c332 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 Dpermute.c241 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 DEmojiFactory.cpp60 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 DrsdAllocation.cpp84 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 DrsdBcc.cpp198 //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 DrsdRuntimeMath.cpp256 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 DrsdRuntimeStubs.cpp424 static const Allocation * SC_GetAllocation(const void *ptr) { argument
426 return rsdScriptGetAllocationForPointer(rsc, sc, ptr);
H A DrsdVertexArray.h36 const uint8_t * ptr; member in class:RsdVertexArray::Attrib
/frameworks/rs/
H A DrsAllocation.cpp29 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 DrsType.cpp271 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 Dandroid_renderscript_RenderScript.cpp200 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 DrsdAllocation.cpp44 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 DrsdBcc.cpp379 //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 DrsdRuntimeMath.cpp259 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 DrsdRuntimeStubs.cpp135 static const Allocation * SC_GetAllocation(const void *ptr) { argument
137 return rsdScriptGetAllocationForPointer(rsc, sc, ptr);
/frameworks/support/renderscript/v8/rs_support/
H A DrsAllocation.cpp26 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 DrsType.cpp271 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 Dtest.c18 static void hello_function(const char *ptr){ argument
19 printf("%s", ptr);
/frameworks/compile/linkloader/utils/
H A Draw_ostream.h25 char *ptr; member in struct:MyFormat
/frameworks/compile/slang/
H A Dslang-data.c48 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 DList.h57 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 DStrongPointer.h107 void set_pointer(T* ptr);
206 void sp<T>::set_pointer(T* ptr) { argument
207 m_ptr = ptr;
/frameworks/native/libs/binder/
H A DParcel.cpp745 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 DFileMap.cpp138 void* ptr; local
169 ptr = mmap(NULL, adjLength, prot, flags, fd, adjOffset);
170 if (ptr == MAP_FAILED) {
182 mBasePtr = ptr;

Completed in 294 milliseconds

123456