Home
last modified time | relevance | path

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

1234

/frameworks/ml/bordeaux/learning/multiclass_pa/jni/
Djni_multiclass_pa.cpp26 void CreateIndexValuePairs(const int* indices, const float* values, in CreateIndexValuePairs() argument
31 pair<int, float> new_pair(indices[i], values[i]); in CreateIndexValuePairs()
67 jint* indices = env->GetIntArrayElements(index_array, NULL); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample() local
71 if (values && indices && value_len == index_len) { in Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample()
74 CreateIndexValuePairs(indices, values, value_len, &inputs); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample()
76 env->ReleaseIntArrayElements(index_array, indices, JNI_ABORT); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample()
81 env->ReleaseIntArrayElements(index_array, indices, JNI_ABORT); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample()
100 jint* indices = env->GetIntArrayElements(index_array, NULL); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass() local
104 if (values && indices && value_len == index_len) { in Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass()
106 CreateIndexValuePairs(indices, values, value_len, &inputs); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Ddtx.c39 Word16 indices[],
45 Word16 indices[],
381 Word16 indices[], in aver_isf_history() argument
393 if ((indices[k] + 1) != 0) in aver_isf_history()
397 isf_tmp[k * M + i] = isf_old[indices[k] * M + i]; in aver_isf_history()
398 isf_old[indices[k] * M + i] = isf_old[indices[2] * M + i]; in aver_isf_history()
418 if ((indices[k] + 1) != 0) in aver_isf_history()
422 isf_old[indices[k] * M + i] = isf_tmp[k * M + i]; in aver_isf_history()
432 Word16 indices[], in find_frame_indices() argument
507 indices[0] = 0; in find_frame_indices()
[all …]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
DglDrawElementsInstanced.cpp8 GLvoid *indices = (GLvoid *) 0; in android_glDrawElementsInstanced__IIILjava_nio_Buffer_2I() local
10 indices = (GLvoid *)getPointer(_env, indices_buf, &_array, &_remaining, &_bufferOffset); in android_glDrawElementsInstanced__IIILjava_nio_Buffer_2I()
11 if (indices == NULL) { in android_glDrawElementsInstanced__IIILjava_nio_Buffer_2I()
13 indices = (GLvoid *) (_indicesBase + _bufferOffset); in android_glDrawElementsInstanced__IIILjava_nio_Buffer_2I()
19 (GLvoid *)indices, in android_glDrawElementsInstanced__IIILjava_nio_Buffer_2I()
23 releasePointer(_env, _array, indices, JNI_FALSE); in android_glDrawElementsInstanced__IIILjava_nio_Buffer_2I()
DglDrawElementsInstanced.java7 java.nio.Buffer indices, in glDrawElementsInstanced() argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DSingleRow.java143 protected final int findRowMin(boolean findLarge, int indexLimit, int[] indices) { in findRowMin() argument
144 if (indices != null) { in findRowMin()
145 indices[0] = 0; in findRowMin()
146 indices[1] = indexLimit; in findRowMin()
153 protected final int findRowMax(boolean findLarge, int indexLimit, int[] indices) { in findRowMax() argument
154 if (indices != null) { in findRowMax()
155 indices[0] = 0; in findRowMax()
156 indices[1] = indexLimit; in findRowMax()
DGrid.java263 public final int findRowMin(boolean findLarge, int[] indices) { in findRowMin() argument
265 indices); in findRowMin()
278 public final int findRowMax(boolean findLarge, int[] indices) { in findRowMax() argument
280 indices); in findRowMax()
287 protected abstract int findRowMax(boolean findLarge, int indexLimit, int[] indices); in findRowMax() argument
DStaggeredGridDefault.java103 public int findRowMax(boolean findLarge, int indexLimit, int[] indices) { in findRowMax() argument
143 if (indices != null) { in findRowMax()
144 indices[0] = row; in findRowMax()
145 indices[1] = index; in findRowMax()
155 public int findRowMin(boolean findLarge, int indexLimit, int[] indices) { in findRowMin() argument
195 if (indices != null) { in findRowMin()
196 indices[0] = row; in findRowMin()
197 indices[1] = index; in findRowMin()
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Ddtx_decoder_amr_wb.cpp669 int16 indices[], in aver_isf_history() argument
682 if (indices[k] + 1 != 0) in aver_isf_history()
686 isf_tmp[k * M + i] = isf_old[indices[k] * M + i]; in aver_isf_history()
687 isf_old[indices[k] * M + i] = isf_old[indices[2] * M + i]; in aver_isf_history()
708 if (indices[k] + 1 != 0) in aver_isf_history()
712 isf_old[indices[k] * M + i] = isf_tmp[k * M + i]; in aver_isf_history()
727 int16 indices[], in find_frame_indices() argument
803 indices[0] = 0; in find_frame_indices()
804 indices[2] = 0; in find_frame_indices()
810 indices[0] = i; in find_frame_indices()
[all …]
Ddtx.h218 int16 indices[],
223 int16 indices[],
/frameworks/base/libs/hwui/renderstate/
DRenderState.cpp212 const Glop::Mesh::Indices& indices = mesh.indices; in render() local
267 meshState().bindIndicesBufferInternal(indices.bufferObject); in render()
317 if (indices.bufferObject == meshState().getQuadListIBO()) { in render()
336 } else if (indices.bufferObject || indices.indices) { in render()
337 glDrawElements(mesh.primitiveMode, mesh.elementCount, GL_UNSIGNED_SHORT, indices.indices); in render()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
DCube.java55 byte indices[] = { in Cube()
84 mIndexBuffer = ByteBuffer.allocateDirect(indices.length); in Cube()
85 mIndexBuffer.put(indices); in Cube()
/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutBlocksTest.java39 private void defineInitialState(int[] ends, int[] indices) { in defineInitialState() argument
41 initialBlockIndices = indices; in defineInitialState()
69 private void assertState(int[] sizes, int[] indices) { in assertState() argument
73 assertEquals(indices.length, dl.getNumberOfBlocks()); in assertState()
82 assertEquals(indices[i], dl.getBlockIndices()[i]); in assertState()
/frameworks/native/opengl/tests/tritex/
Dtritex.cpp250 GLushort* indices = (GLushort*)malloc(quads*sizeof(quadIndices)); in render() local
252 … memcpy(indices+(sizeof(quadIndices)/sizeof(indices[0]))*i, quadIndices, sizeof(quadIndices)); in render()
272 glDrawElements(GL_TRIANGLES, nelem*quads, GL_UNSIGNED_SHORT, indices); in render()
276 free(indices); in render()
/frameworks/native/opengl/libagl/
Darray.cpp765 GLsizei count, const GLvoid *indices) in drawIndexedPrimitivesPoints() argument
771 vertex_t * v = fetch_vertex(c, read_index(type, indices)); in drawIndexedPrimitivesPoints()
782 GLsizei count, const GLvoid *indices) in drawIndexedPrimitivesLineStrip() argument
792 c->arrays.compileElement(c, v0, read_index(type, indices)); in drawIndexedPrimitivesLineStrip()
795 v1 = fetch_vertex(c, read_index(type, indices)); in drawIndexedPrimitivesLineStrip()
807 GLsizei count, const GLvoid *indices) in drawIndexedPrimitivesLineLoop() argument
810 drawIndexedPrimitivesLines(c, count, indices); in drawIndexedPrimitivesLineLoop()
819 c->arrays.compileElement(c, v0, read_index(type, indices)); in drawIndexedPrimitivesLineLoop()
822 v1 = fetch_vertex(c, read_index(type, indices)); in drawIndexedPrimitivesLineLoop()
839 GLsizei count, const GLvoid *indices) in drawIndexedPrimitivesLines() argument
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DPasswordEntryKeyboardView.java48 int[] indices = getKeyboard().getShiftKeyIndices(); in setShifted() local
49 for (int index : indices) { in setShifted()
/frameworks/base/libs/hwui/
DGlopBuilder.cpp77 mOutGlop->mesh.indices = { 0, nullptr }; in setMeshUnitQuad()
96 mOutGlop->mesh.indices = { 0, nullptr }; in setMeshTexturedUnitQuad()
116 mOutGlop->mesh.indices = { 0, nullptr }; in setMeshTexturedUvQuad()
130 mOutGlop->mesh.indices = { mRenderState.meshState().getQuadListIBO(), nullptr }; in setMeshIndexedQuads()
144 mOutGlop->mesh.indices = { mRenderState.meshState().getQuadListIBO(), nullptr }; in setMeshTexturedIndexedQuads()
158 mOutGlop->mesh.indices = { 0, nullptr }; in setMeshTexturedMesh()
172 mOutGlop->mesh.indices = { 0, nullptr }; in setMeshColoredTexturedMesh()
188 bool indices = flags & VertexBuffer::kIndices; in setMeshVertexBuffer() local
191 mOutGlop->mesh.indices = { 0, vertexBuffer.getIndices() }; in setMeshVertexBuffer()
197 mOutGlop->mesh.elementCount = indices in setMeshVertexBuffer()
[all …]
DGlop.h93 const void* indices; member
94 } indices; member
DSkiaCanvas.cpp108 const uint16_t* indices, int indexCount, const SkPaint& paint) override;
537 const uint16_t* indices, int indexCount, const SkPaint& paint) { in drawVertices() argument
543 (SkColor*)colors, NULL, indices, indexCount, paint); in drawVertices()
589 uint16_t* indices = (uint16_t*)(texs + ptCount); in drawBitmapMesh() local
619 uint16_t* indexPtr = indices; in drawBitmapMesh()
637 SkASSERT(indexPtr - indices == indexCount); in drawBitmapMesh()
645 SkASSERT((unsigned)indices[i] < (unsigned)ptCount); in drawBitmapMesh()
661 texs, (const SkColor*)colors, NULL, indices, in drawBitmapMesh()
/frameworks/base/tools/aapt/
DStringPool.h48 hasStyles(o.hasStyles), indices(o.indices), in entry()
54 Vector<size_t> indices; member
DStringPool.cpp204 ent.indices.add(pos); in add()
330 newEntries.editItemAt(newOffset).indices.clear(); in sortByConfig()
337 newEntries.editItemAt(newOffset).indices.add(i); in sortByConfig()
370 mValues.add(ent.value, ent.indices[0]); in sortByConfig()
602 const Vector<size_t>* indices = offsetsForString(val); in offsetForString() local
603 ssize_t res = indices != NULL && indices->size() > 0 ? indices->itemAt(0) : -1; in offsetForString()
617 return &mEntries[mEntryArray[pos]].indices; in offsetsForString()
/frameworks/native/opengl/libs/GLES_trace/src/
Dgltrace_fixup.cpp611 void findMinAndMaxIndices(GLvoid *indices, GLsizei count, GLenum type, in findMinAndMaxIndices() argument
617 if (indices == NULL) { in findMinAndMaxIndices()
623 index = *((GLubyte*) indices + i); in findMinAndMaxIndices()
625 index = *((GLushort*) indices + i); in findMinAndMaxIndices()
677 GLvoid *indices) { in trace_VertexAttribPointerDataForGlDrawElements() argument
698 indexBuffer = indices; in trace_VertexAttribPointerDataForGlDrawElements()
726 GLvoid *indices = pointersToFixup[0]; in fixup_glDrawElements() local
732 trace_VertexAttribPointerDataForGlDrawElements(context, glmsg, indices); in fixup_glDrawElements()
742 index = *((GLubyte*) indices + i); in fixup_glDrawElements()
744 index = *((GLushort*) indices + i); in fixup_glDrawElements()
/frameworks/native/opengl/tests/gl_basic/
Dgl_basic.cpp356 const GLushort indices[] = { 0, 1, 2, 0, 2, 3 }; in render() local
361 int nelem = sizeof(indices)/sizeof(indices[0]); in render()
363 glDrawElements(GL_TRIANGLES, nelem, GL_UNSIGNED_SHORT, indices); in render()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp1116 jint* indices = NULL; in android_content_AssetManager_resolveAttrs() local
1120 indices = (jint*)env->GetPrimitiveArrayCritical(outIndices, 0); in android_content_AssetManager_resolveAttrs()
1244 if (indices != NULL && value.dataType != Res_value::TYPE_NULL) { in android_content_AssetManager_resolveAttrs()
1246 indices[indicesIdx] = ii; in android_content_AssetManager_resolveAttrs()
1254 if (indices != NULL) { in android_content_AssetManager_resolveAttrs()
1255 indices[0] = indicesIdx; in android_content_AssetManager_resolveAttrs()
1256 env->ReleasePrimitiveArrayCritical(outIndices, indices, 0); in android_content_AssetManager_resolveAttrs()
1318 jint* indices = NULL; in android_content_AssetManager_applyStyle() local
1322 indices = (jint*)env->GetPrimitiveArrayCritical(outIndices, 0); in android_content_AssetManager_applyStyle()
1499 if (indices != NULL && value.dataType != Res_value::TYPE_NULL) { in android_content_AssetManager_applyStyle()
[all …]
/frameworks/base/opengl/java/android/opengl/
DVisibility.java50 float[] positions, int positionsOffset, char[] indices, in visibilityTest() argument
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneResultAdapter.java162 ArrayList<Integer> indices = mTimeZoneData.getTimeZonesByOffset(time); in onSetFilter() local
163 if (indices != null) { in onSetFilter()
164 for (Integer i : indices) { in onSetFilter()

1234