Searched refs:alloc (Results 26 - 50 of 53) sorted by relevance

123

/frameworks/rs/
H A DrsScriptGroup.cpp237 Allocation * alloc = Allocation::createAllocation(rsc, local
239 l->mAlloc = alloc;
243 n->mOutputs[ct3]->mAlloc = alloc;
368 RsAllocation alloc) {
371 s->setInput(rsc, (ScriptKernelID *)kid, (Allocation *)alloc);
375 RsAllocation alloc) {
378 s->setOutput(rsc, (ScriptKernelID *)kid, (Allocation *)alloc);
367 rsi_ScriptGroupSetInput(Context *rsc, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument
374 rsi_ScriptGroupSetOutput(Context *rsc, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument
H A DrsProgramVertex.cpp207 Allocation *alloc = Allocation::createAllocation(rsc, inputType.get(), local
209 pv->bindAllocation(rsc, alloc, 0);
211 mDefaultAlloc.set(alloc);
H A DrsAllocation.h178 const android::renderscript::Allocation *alloc; member in class:android::renderscript::Allocation::NewBufferListener
/frameworks/native/libs/ui/
H A DGraphicBufferAllocator.cpp93 status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat format, function in class:android::GraphicBufferAllocator
105 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);
107 ALOGW_IF(err, "alloc(%u, %u, %d, %08x, ...) failed %d (%s)",
H A DFramebufferNativeWindow.cpp125 err = grDev->alloc(grDev,
H A DGraphicBuffer.cpp146 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride);
/frameworks/base/libs/androidfw/
H A DCursorWindow.cpp174 uint32_t fieldDirOffset = alloc(fieldDirSize, true /*aligned*/);
201 uint32_t CursorWindow::alloc(size_t size, bool aligned) { function in class:android::CursorWindow
244 chunk->nextChunkOffset = alloc(sizeof(RowSlotChunk), true /*aligned*/);
293 uint32_t offset = alloc(size);
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DSceneManager.java214 Allocation alloc = Allocation.createSized(rs, Element.U8(rs),
217 alloc.copy1DRangeFrom(0, allocArray.length, allocArray);
218 alloc.copy1DRangeFrom(allocArray.length, 1, nullChar);
219 return alloc;
233 static void cacheAlloc(String str, Allocation alloc) { argument
237 sSceneManager.mAllocationMap.put(str, alloc);
/frameworks/base/core/jni/
H A Dandroid_view_GraphicBuffer.cpp115 sp<IGraphicBufferAlloc> alloc(composer->createGraphicBufferAlloc());
116 if (alloc == NULL) {
122 sp<GraphicBuffer> buffer(alloc->createGraphicBuffer(width, height, format, usage, &error));
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
H A DRsBenchRS.java103 Allocation alloc = Allocation.createSized(rs, Element.U8(rs),
105 alloc.copyFrom(allocArrayZero);
106 return alloc;
/frameworks/rs/scriptc/
H A Drs_graphics.rsh213 * @param alloc
216 rsgAllocationSyncAll(rs_allocation alloc);
224 * @param alloc
228 rsgAllocationSyncAll(rs_allocation alloc,
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DAllocation.java1362 Allocation alloc = new Allocation(id, rs, t, usage);
1363 alloc.setBitmap(b);
1364 return alloc;
1585 Allocation alloc = createFromBitmap(rs, b, mips, usage);
1587 return alloc;
1628 Allocation alloc = Allocation.createSized(rs, Element.U8(rs), allocArray.length, usage);
1629 alloc.copyFrom(allocArray);
1630 return alloc;
/frameworks/base/libs/hwui/
H A DDisplayList.cpp172 LinearAllocator& alloc = mDisplayListData->allocator; local
173 mClipRectOp = new (alloc) ClipRectOp();
174 mSaveLayerOp = new (alloc) SaveLayerOp();
175 mSaveOp = new (alloc) SaveOp();
176 mRestoreToCountOp = new (alloc) RestoreToCountOp();
H A DPathTessellator.cpp165 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size());
190 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size() * 2 + 2);
252 Vertex* buffer = vertexBuffer.alloc<Vertex>(allocSize);
333 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(perimeter.size() * 3 + 2);
568 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(allocSize);
640 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(6 * perimeter.size() + 8);
793 dstBuffer.alloc<TYPE>(numPoints * verticesPerPoint + (numPoints - 1) * 2);
850 vertexBuffer.alloc<AlphaVertex>(numLines * lineAllocSize + (numLines - 1) * 2);
853 vertexBuffer.alloc<Vertex>(numLines * lineAllocSize + (numLines - 1) * 2);
H A DDeferredDisplayList.h53 return allocator.alloc(size);
H A DDisplayListRenderer.h199 LinearAllocator& alloc() { return mDisplayListData->allocator; } function in class:android::uirenderer::DisplayListRenderer
211 T* dstBuffer = (T*) mDisplayListData->allocator.alloc(count * sizeof(T));
/frameworks/native/libs/binder/
H A DMemoryDealer.cpp151 ssize_t alloc(size_t size, uint32_t flags);
296 ssize_t offset = alloc(size, flags);
310 ssize_t SimpleBestFitAllocator::alloc(size_t size, uint32_t flags) function in class:android::SimpleBestFitAllocator
/frameworks/base/include/androidfw/
H A DCursorWindow.h182 uint32_t alloc(size_t size, bool aligned = false);
/frameworks/base/graphics/java/android/renderscript/
H A DAllocation.java1520 Allocation alloc = new Allocation(id, rs, t, usage);
1521 alloc.setBitmap(b);
1522 return alloc;
1784 Allocation alloc = createFromBitmap(rs, b, mips, usage);
1786 return alloc;
1834 Allocation alloc = Allocation.createSized(rs, Element.U8(rs), allocArray.length, usage);
1835 alloc.copyFrom(allocArray);
1836 return alloc;
/frameworks/av/media/libstagefright/
H A DMPEG2TSWriter.cpp288 size_t alloc = 4096; local
289 if (buffer->range_length() + 7 > alloc) {
290 alloc = 7 + buffer->range_length();
293 mAACBuffer = new ABuffer(alloc);
/frameworks/native/cmds/installd/
H A Dutils.c427 void* alloc = _cache_malloc(cache, len); local
428 if (alloc != NULL && cur != NULL) {
429 memcpy(alloc, cur, origLen < len ? origLen : len);
431 return alloc;
/frameworks/base/core/java/android/text/
H A DSpannableStringBuilder.java64 int alloc = ArrayUtils.idealIntArraySize(0);
65 mSpans = new Object[alloc];
66 mSpanStarts = new int[alloc];
67 mSpanEnds = new int[alloc];
68 mSpanFlags = new int[alloc];
/frameworks/rs/driver/
H A DrsdShader.cpp523 Allocation *alloc = mRSProgram->mHal.state.constants[ct]; local
525 if (!alloc) {
526 ALOGE("Attempting to set constants on shader id %u, but alloc at slot %u is not set",
532 const uint8_t *data = static_cast<const uint8_t *>(alloc->mHal.drvState.lod[0].mallocPtr);
H A DrsdRuntimeStubs.cpp142 static void SC_AllocationIoSend(Allocation *alloc) { argument
144 rsrAllocationIoSend(rsc, alloc);
148 static void SC_AllocationIoReceive(Allocation *alloc) { argument
150 rsrAllocationIoReceive(rsc, alloc);
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp63 void* alloc(size_t size) { function in class:android::MallocHelper
119 pTransformed = (float*) mallocHelper.alloc(transformedIndexCount * 4 * sizeof(float));

Completed in 670 milliseconds

123