Home
last modified time | relevance | path

Searched refs:indices (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/tools/aapt/
DStringPool.h44 entry(const entry& o) : value(o.value), offset(o.offset), indices(o.indices) { } in entry()
48 Vector<size_t> indices; member
DStringPool.cpp91 ent.indices.add(pos); in add()
324 ent.indices.clear(); in writeStringBlock()
325 ent.indices.add(i); in writeStringBlock()
355 const Vector<size_t>* indices = offsetsForString(val); in offsetForString() local
356 ssize_t res = indices != NULL && indices->size() > 0 ? indices->itemAt(0) : -1; in offsetForString()
368 return &mEntries[mEntryArray[pos]].indices; in offsetsForString()
DXMLNode.cpp1149 const Vector<size_t>* indices = outPool->offsetsForString(attr.name); in collect_attr_strings() local
1151 if (indices != NULL) { in collect_attr_strings()
1152 const int NJ = indices->size(); in collect_attr_strings()
1155 size_t strIdx = indices->itemAt(j); in collect_attr_strings()
/frameworks/base/opengl/tests/tritex/
Dtritex.cpp249 GLushort* indices = (GLushort*)malloc(quads*sizeof(quadIndices)); in render() local
251 … memcpy(indices+(sizeof(quadIndices)/sizeof(indices[0]))*i, quadIndices, sizeof(quadIndices)); in render()
271 glDrawElements(GL_TRIANGLES, nelem*quads, GL_UNSIGNED_SHORT, indices); in render()
275 free(indices); in render()
/frameworks/base/opengl/libagl/
Darray.cpp770 GLsizei count, const GLvoid *indices) in drawIndexedPrimitivesPoints() argument
776 vertex_t * v = fetch_vertex(c, read_index(type, indices)); in drawIndexedPrimitivesPoints()
787 GLsizei count, const GLvoid *indices) in drawIndexedPrimitivesLineStrip() argument
797 c->arrays.compileElement(c, v0, read_index(type, indices)); in drawIndexedPrimitivesLineStrip()
800 v1 = fetch_vertex(c, read_index(type, indices)); in drawIndexedPrimitivesLineStrip()
812 GLsizei count, const GLvoid *indices) in drawIndexedPrimitivesLineLoop() argument
815 drawIndexedPrimitivesLines(c, count, indices); in drawIndexedPrimitivesLineLoop()
824 c->arrays.compileElement(c, v0, read_index(type, indices)); in drawIndexedPrimitivesLineLoop()
827 v1 = fetch_vertex(c, read_index(type, indices)); in drawIndexedPrimitivesLineLoop()
844 GLsizei count, const GLvoid *indices) in drawIndexedPrimitivesLines() argument
[all …]
/frameworks/base/awt/java/awt/image/
DBandedSampleModel.java43 int indices[] = new int[numBands]; in createIndices() local
45 indices[i] = i; in createIndices()
47 return indices; in createIndices()
146 int indices[] = new int[bands.length]; in createSubsetSampleModel() local
150 indices[i] = bankIndices[bands[i]]; in createSubsetSampleModel()
154 return new BandedSampleModel(dataType, width, height, scanlineStride, indices, offsets); in createSubsetSampleModel()
DComponentSampleModel.java342 int indices[] = new int[bands.length]; in createSubsetSampleModel() local
346 indices[i] = bankIndices[bands[i]]; in createSubsetSampleModel()
351 indices, offsets); in createSubsetSampleModel()
/frameworks/base/opengl/tests/gl_basic/
Dgl_basic.cpp345 const GLushort indices[] = { 0, 1, 2, 0, 2, 3 }; in render() local
352 int nelem = sizeof(indices)/sizeof(indices[0]); in render()
354 glDrawElements(GL_TRIANGLES, nelem, GL_UNSIGNED_SHORT, indices); in render()
/frameworks/base/opengl/java/android/opengl/
DVisibility.java50 float[] positions, int positionsOffset, char[] indices, in visibilityTest() argument
DGLLogWrapper.java1026 private char[] toCharIndices(int count, int type, Buffer indices) { in toCharIndices() argument
1030 ByteBuffer byteBuffer = toByteBuffer(count, indices); in toCharIndices()
1040 if (indices instanceof CharBuffer) { in toCharIndices()
1041 charBuffer = (CharBuffer) indices; in toCharIndices()
1043 ByteBuffer byteBuffer = toByteBuffer(count * 2, indices); in toCharIndices()
1529 public void glDrawElements(int mode, int count, int type, Buffer indices) { in glDrawElements() argument
1534 char[] indexArray = toCharIndices(count, type, indices); in glDrawElements()
1543 mgl.glDrawElements(mode, count, type, indices); in glDrawElements()
DGLErrorWrapper.java261 public void glDrawElements(int mode, int count, int type, Buffer indices) { in glDrawElements() argument
263 mgl.glDrawElements(mode, count, type, indices); in glDrawElements()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp924 jint* indices = NULL; in android_content_AssetManager_applyStyle() local
928 indices = (jint*)env->GetPrimitiveArrayCritical(outIndices, 0); in android_content_AssetManager_applyStyle()
1080 if (indices != NULL && value.dataType != Res_value::TYPE_NULL) { in android_content_AssetManager_applyStyle()
1082 indices[indicesIdx] = ii; in android_content_AssetManager_applyStyle()
1090 if (indices != NULL) { in android_content_AssetManager_applyStyle()
1091 indices[0] = indicesIdx; in android_content_AssetManager_applyStyle()
1092 env->ReleasePrimitiveArrayCritical(outIndices, indices, 0); in android_content_AssetManager_applyStyle()
1141 jint* indices = NULL; in android_content_AssetManager_retrieveAttributes() local
1145 indices = (jint*)env->GetPrimitiveArrayCritical(outIndices, 0); in android_content_AssetManager_retrieveAttributes()
1211 if (indices != NULL && value.dataType != Res_value::TYPE_NULL) { in android_content_AssetManager_retrieveAttributes()
[all …]
/frameworks/base/core/jni/android/graphics/
DCanvas.cpp597 uint16_t* indices; in drawBitmapMesh() local
600 indices = (uint16_t*)(texs + ptCount); in drawBitmapMesh()
603 indices = (uint16_t*)(verts + ptCount); in drawBitmapMesh()
642 uint16_t* indexPtr = indices; in drawBitmapMesh()
660 SkASSERT(indexPtr - indices == indexCount); in drawBitmapMesh()
668 SkASSERT((unsigned)indices[i] < (unsigned)ptCount); in drawBitmapMesh()
683 texs, (const SkColor*)colorA.ptr(), NULL, indices, in drawBitmapMesh()
732 const uint16_t* indices = NULL; in drawVertices() local
737 indices = (const uint16_t*)(indexA.ptr() + indexIndex); in drawVertices()
741 indices, indexCount, *paint); in drawVertices()
/frameworks/base/core/jni/android/opengl/
Dutil.cpp442 UnsignedShortArrayHelper indices(env, indices_ref, indicesOffset, 0); in util_visibilityTest() local
444 bool checkOK = ws.check() && positions.check() && indices.check(); in util_visibilityTest()
450 if (indices.mLength < indexCount) { in util_visibilityTest()
458 indices.bind(); in util_visibilityTest()
462 indices.mData, indexCount); in util_visibilityTest()
/frameworks/base/graphics/java/android/graphics/
DCanvas.java1217 short[] indices, int indexOffset, in drawVertices() argument
1226 if (indices != null) { in drawVertices()
1227 checkRange(indices.length, indexOffset, indexCount); in drawVertices()
1231 indices, indexOffset, indexCount, paint.mNativePaint); in drawVertices()
1553 int[] colors, int colorOffset, short[] indices, in nativeDrawVertices() argument
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java658 int[] indices = new int[mKeys.size()]; in computeNearestNeighbors() local
671 indices[count++] = i; in computeNearestNeighbors()
675 System.arraycopy(indices, 0, cell, 0, count); in computeNearestNeighbors()
/frameworks/base/opengl/tools/glgen/specs/jsr239/
Dglspec-checks5 glDrawElements check_AIOOBE indices count
Dglspec-1.030 void glDrawElements ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices )
/frameworks/base/opengl/tools/glgen/specs/gles11/
Dchecks.spec7 glDrawElements check_AIOOBE indices count
DGLES10.spec30 void glDrawElements ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices )
/frameworks/base/core/java/android/content/res/
DTypedArray.java679 /*package*/ TypedArray(Resources resources, int[] data, int[] indices, int len) { in TypedArray() argument
682 mIndices = indices; in TypedArray()
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL10.java443 java.nio.Buffer indices in glDrawElements() argument
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DCanvas.java1135 float[] texs, int texOffset, int[] colors, int colorOffset, short[] indices, in drawVertices() argument
1139 indices, indexOffset, indexCount, paint); in drawVertices()
/frameworks/base/opengl/libs/GLES_CM/
Dgl_api.in205 void API_ENTRY(glDrawElements)(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) {
206 CALL_GL_API(glDrawElements, mode, count, type, indices);
/frameworks/base/opengl/libs/GLES2/
Dgl2_api.in124 void API_ENTRY(glDrawElements)(GLenum mode, GLsizei count, GLenum type, const void* indices) {
125 CALL_GL_API(glDrawElements, mode, count, type, indices);

12