/frameworks/rs/ |
H A D | rsScriptGroup.cpp | 237 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 D | rsProgramVertex.cpp | 207 Allocation *alloc = Allocation::createAllocation(rsc, inputType.get(), local 209 pv->bindAllocation(rsc, alloc, 0); 211 mDefaultAlloc.set(alloc);
|
H A D | rsAllocation.h | 178 const android::renderscript::Allocation *alloc; member in class:android::renderscript::Allocation::NewBufferListener
|
/frameworks/native/libs/ui/ |
H A D | GraphicBufferAllocator.cpp | 93 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 D | FramebufferNativeWindow.cpp | 125 err = grDev->alloc(grDev,
|
H A D | GraphicBuffer.cpp | 146 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride);
|
/frameworks/base/libs/androidfw/ |
H A D | CursorWindow.cpp | 174 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 D | SceneManager.java | 214 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 D | android_view_GraphicBuffer.cpp | 115 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 D | RsBenchRS.java | 103 Allocation alloc = Allocation.createSized(rs, Element.U8(rs), 105 alloc.copyFrom(allocArrayZero); 106 return alloc;
|
/frameworks/rs/scriptc/ |
H A D | rs_graphics.rsh | 213 * @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 D | Allocation.java | 1362 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 D | DisplayList.cpp | 172 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 D | PathTessellator.cpp | 165 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 D | DeferredDisplayList.h | 53 return allocator.alloc(size);
|
H A D | DisplayListRenderer.h | 199 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 D | MemoryDealer.cpp | 151 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 D | CursorWindow.h | 182 uint32_t alloc(size_t size, bool aligned = false);
|
/frameworks/base/graphics/java/android/renderscript/ |
H A D | Allocation.java | 1520 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 D | MPEG2TSWriter.cpp | 288 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 D | utils.c | 427 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 D | SpannableStringBuilder.java | 64 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 D | rsdShader.cpp | 523 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 D | rsdRuntimeStubs.cpp | 142 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 D | util.cpp | 63 void* alloc(size_t size) { function in class:android::MallocHelper 119 pTransformed = (float*) mallocHelper.alloc(transformedIndexCount * 4 * sizeof(float));
|