Home
last modified time | relevance | path

Searched refs:allocation (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/rs/scriptc/
Drs_allocation.rsh28 * a valid allocation. The results are undefined if the pointer is not from a
29 * valid allocation.
38 * Query the dimension of an allocation.
40 * @return uint32_t The X dimension of the allocation.
46 * Query the dimension of an allocation.
48 * @return uint32_t The Y dimension of the allocation.
54 * Query the dimension of an allocation.
56 * @return uint32_t The Z dimension of the allocation.
62 * Query an allocation for the presence of more than one LOD.
70 * Query an allocation for the presence of more than one face.
[all …]
Drs_mesh.rsh53 * Returns an allocation that is part of the mesh and contains
57 * @param index index of the vertex allocation
58 * @return allocation containing vertex data
64 * Returns an allocation containing index data or a null
65 * allocation if only the primitive is specified
68 * @param index index of the index allocation
69 * @return allocation containing index data
Drs_core.rsh92 * cell of the allocation.
108 * restrict the call to a subset of cells in the allocation.
129 * @param input The allocation to source data from
130 * @param output the allocation to write date into
134 * allocation to be processed or suggest a walking strategy. May be
158 * @param input The allocation to source data from
159 * @param output the allocation to write date into
165 * allocation to be processed or suggest a walking strategy. May be
Drs_types.rsh130 * \brief Opaque handle to a RenderScript allocation.
403 * \brief Bitfield to specify the usage types for an allocation.
406 * relevant to an allocation or an operation on an allocation.
Drs_graphics.rsh210 * Sync the contents of an allocation from its SCRIPT memory space to its HW
221 * Sync the contents of an allocation from memory space
/frameworks/rs/
DrsProgramVertex.cpp49 float *f = static_cast<float *>(rsc->mHal.funcs.allocation.lock1D( in setup()
59 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setup()
78 float *f = static_cast<float *>(rsc->mHal.funcs.allocation.lock1D( in setProjectionMatrix()
82 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setProjectionMatrix()
96 float *f = static_cast<float *>(rsc->mHal.funcs.allocation.lock1D( in setModelviewMatrix()
100 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setModelviewMatrix()
114 float *f = static_cast<float *>(rsc->mHal.funcs.allocation.lock1D( in setTextureMatrix()
118 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setTextureMatrix()
133 rsc->mHal.funcs.allocation.lock1D(rsc, mHal.state.constants[0])); in getProjectionMatrix()
135 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in getProjectionMatrix()
[all …]
DrsAllocation.cpp63 if (!rsc->mHal.funcs.allocation.init(rsc, a, type->getElement()->getHasReferences())) { in createAllocation()
83 mRSC->mHal.funcs.allocation.destroy(mRSC, this); in ~Allocation()
87 rsc->mHal.funcs.allocation.syncAll(rsc, this, src); in syncAll()
101 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); in data()
107 …rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in data()
114 …rsc->mHal.funcs.allocation.data3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stri… in data()
129 rsc->mHal.funcs.allocation.read1D(rsc, this, xoff, lod, count, data, sizeBytes); in read()
146 …rsc->mHal.funcs.allocation.read2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in read()
157 …rsc->mHal.funcs.allocation.read3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stri… in read()
185 rsc->mHal.funcs.allocation.elementData1D(rsc, this, x, data, cIdx, sizeBytes); in elementData()
[all …]
DrsScriptC_LibGL.cpp222 const char *text = (const char *)rsc->mHal.funcs.allocation.lock1D(rsc, a); in rsrDrawTextAlloc()
225 rsc->mHal.funcs.allocation.unlock1D(rsc, a); in rsrDrawTextAlloc()
252 const char *text = (const char *)rsc->mHal.funcs.allocation.lock1D(rsc, a); in rsrMeasureTextAlloc()
257 rsc->mHal.funcs.allocation.unlock1D(rsc, a); in rsrMeasureTextAlloc()
DrsProgramFragment.cpp56 void *p = rsc->mHal.funcs.allocation.lock1D(rsc, mHal.state.constants[0]); in setConstantColor()
59 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setConstantColor()
DrsMesh.cpp207 rsc->mHal.funcs.allocation.markDirty(rsc, mHal.state.vertexBuffers[ct]); in uploadAll()
213 rsc->mHal.funcs.allocation.markDirty(rsc, mHal.state.indexBuffers[ct]); in uploadAll()
235 const uint8_t *bp = (const uint8_t *)rsc->mHal.funcs.allocation.lock1D( in computeBBox()
265 rsc->mHal.funcs.allocation.unlock1D(rsc, posAlloc); in computeBBox()
DrsFont.cpp470 mRSC->mHal.funcs.allocation.data2D(mRSC, mTextTexture.get(), 0, 0, 0, in cacheBitmap()
583 uint16_t *indexPtr = (uint16_t*)mRSC->mHal.funcs.allocation.lock1D(mRSC, indexAlloc); in initVertexArrayBuffers()
615 mTextMeshPtr = (float*)mRSC->mHal.funcs.allocation.lock1D(mRSC, vertexAlloc); in initVertexArrayBuffers()
621 mRSC->mHal.funcs.allocation.unlock1D(mRSC, indexAlloc); in initVertexArrayBuffers()
622 mRSC->mHal.funcs.allocation.unlock1D(mRSC, vertexAlloc); in initVertexArrayBuffers()
Drs_hal.h216 } allocation; member
/frameworks/ex/carousel/java/com/android/ex/carousel/
DCarouselRS.java652 Allocation allocation = Allocation.createFromBitmap(mRS, bitmap, in allocationFromBitmap()
654 return allocation; in allocationFromBitmap()
668 Allocation allocation = mAllocationPool[n % count]; in allocationFromPool() local
669 if (allocation == null) { in allocationFromPool()
670 allocation = allocationFromBitmap(bitmap, mipmap); in allocationFromPool()
671 mAllocationPool[n % count] = allocation; in allocationFromPool()
673 if (bitmap.getWidth() == allocation.getType().getX() in allocationFromPool()
674 && bitmap.getHeight() == allocation.getType().getY()) { in allocationFromPool()
675 allocation.copyFrom(bitmap); in allocationFromPool()
678 allocation = allocationFromBitmap(bitmap, mipmap); in allocationFromPool()
[all …]
/frameworks/base/docs/html/guide/topics/renderscript/
Dadvanced.jd23 <a href="#mem-allocation">Memory Allocation APIs</a>
73 <li>Memory allocation request features</li>
341 lets you specify the memory space of this memory allocation. There are four memory space
447 <h2 id="mem-allocation">Memory Allocation APIs</h2>
457 for more information on how memory allocation occurs.
460 <p>To support this memory allocation system, there are a set of APIs that allow the Android VM to
462 essentially describe how memory should be allocated and also carry out the allocation. To better
473 of the <code>malloc</code> call and encapsulates one cell of a memory allocation, such as a single
477 …memory allocation based on a given {@link android.renderscript.Type} and represents the actual all…
479 …<p>In most situations, you do not need to call these memory allocation APIs directly. The reflecte…
[all …]
Dcompute.jd296 Renderscript, and any optional user-defined data. The output allocation will contain the output
370 The output allocation will contain the output of the Renderscript.</li>
/frameworks/compile/slang/tests/P_export_types/
Dexport_types.rs20 rs_allocation allocation;
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/
DBallsRS.java73 final Allocation allocation = in loadTexture() local
77 return allocation; in loadTexture()
/frameworks/base/docs/html/tools/debugging/
Dddms.jd17 <li><a href="#alloc">Tracking memory allocation of objects</a></li>
125 <h3 id="alloc">Tracking memory allocation of objects</h3>
133 <p>To track memory allocation of objects:</p>
135 <li>In the Devices tab, select the process that you want to enable allocation tracking
139 allocation tracking. At this point, anything you do in your application will be tracked.</li>
Ddebugging-projects.jd59 <li>Allocation Tracker - Shows the memory allocation of objects.</li>
Dsystrace.jd218 area in the lower trace, shows that a memory operation (image buffer dequeuing and allocation) in
223 memory allocation with another request or task.</p>
/frameworks/base/docs/html/training/displaying-bitmaps/
Dload-bitmap.jd56 avoids memory allocation, returning {@code null} for the bitmap object but setting {@link
60 dimensions and type of the image data prior to construction (and memory allocation) of the
Dmanage-memory.jd149 removing both memory allocation and de-allocation. There are some caveats in using
/frameworks/compile/slang/
DREADME.rst232 // Copying all Item array to byte array (i.e., memory allocation).
319 structure. Binding an allocation in Java effectively sets the
321 runtime that the script will not modify the contents of an allocation.
/frameworks/base/docs/html/training/custom-views/
Doptimizing-view.jd52 allocation while an
/frameworks/base/docs/html/training/articles/
Dperf-tips.jd58 <p>Object creation is never free. A generational garbage collector with per-thread allocation
59 pools for temporary objects can make allocation cheaper, but allocating memory

12