Searched refs:indices (Results 1 - 25 of 57) sorted by relevance

123

/frameworks/ml/bordeaux/learning/multiclass_pa/jni/
H A Djni_multiclass_pa.cpp26 void CreateIndexValuePairs(const int* indices, const float* values, argument
31 pair<int, float> new_pair(indices[i], values[i]);
67 jint* indices = env->GetIntArrayElements(index_array, NULL); local
71 if (values && indices && value_len == index_len) {
74 CreateIndexValuePairs(indices, values, value_len, &inputs);
76 env->ReleaseIntArrayElements(index_array, indices, JNI_ABORT);
81 env->ReleaseIntArrayElements(index_array, indices, JNI_ABORT);
100 jint* indices = env->GetIntArrayElements(index_array, NULL); local
104 if (values && indices && value_len == index_len) {
106 CreateIndexValuePairs(indices, value
[all...]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglDrawElementsInstanced.java1 // C function void glDrawElementsInstanced ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instanceCount )
7 java.nio.Buffer indices,
11 // C function void glDrawElementsInstanced ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instanceCount )
3 glDrawElementsInstanced( int mode, int count, int type, java.nio.Buffer indices, int instanceCount ) argument
H A DglDrawElementsInstanced.cpp1 /* void glDrawElementsInstanced ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instanceCount ) */
8 GLvoid *indices = (GLvoid *) 0; local
10 indices = (GLvoid *)getPointer(_env, indices_buf, &_array, &_remaining, &_bufferOffset);
11 if (indices == NULL) {
13 indices = (GLvoid *) (_indicesBase + _bufferOffset);
19 (GLvoid *)indices,
23 releasePointer(_env, _array, indices, JNI_FALSE);
27 /* void glDrawElementsInstanced ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instanceCount ) */
/frameworks/base/core/java/com/android/internal/widget/
H A DPasswordEntryKeyboardView.java43 int[] indices = getKeyboard().getShiftKeyIndices();
44 for (int index : indices) {
/frameworks/base/opengl/java/android/opengl/
H A DVisibility.java35 * @param indices the indices of the triangle list. The indices are
37 * @param indicesOffset the index in the indices array where the index data
39 * @param indexCount the number of indices in use. Typically a multiple of
40 * three. If not a multiple of three, the remaining one or two indices will
46 * positions is null, positionsOffset < 0, indices is null,
47 * indicesOffset < 0, indicesOffset > indices.length - indexCount
50 float[] positions, int positionsOffset, char[] indices,
86 * @param results an integer array containing the indices o
49 visibilityTest(float[] ws, int wsOffset, float[] positions, int positionsOffset, char[] indices, int indicesOffset, int indexCount) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Ddtx.c39 Word16 indices[],
45 Word16 indices[],
381 Word16 indices[],
393 if ((indices[k] + 1) != 0)
397 isf_tmp[k * M + i] = isf_old[indices[k] * M + i];
398 isf_old[indices[k] * M + i] = isf_old[indices[2] * M + i];
418 if ((indices[k] + 1) != 0)
422 isf_old[indices[k] * M + i] = isf_tmp[k * M + i];
432 Word16 indices[],
379 aver_isf_history( Word16 isf_old[], Word16 indices[], Word32 isf_aver[] ) argument
430 find_frame_indices( Word16 isf_old_tx[], Word16 indices[], dtx_encState * st ) argument
[all...]
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
H A DCube.java55 byte indices[] = {
84 mIndexBuffer = ByteBuffer.allocateDirect(indices.length);
85 mIndexBuffer.put(indices);
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Ddtx_decoder_amr_wb.cpp669 int16 indices[],
682 if (indices[k] + 1 != 0)
686 isf_tmp[k * M + i] = isf_old[indices[k] * M + i];
687 isf_old[indices[k] * M + i] = isf_old[indices[2] * M + i];
708 if (indices[k] + 1 != 0)
712 isf_old[indices[k] * M + i] = isf_tmp[k * M + i];
727 int16 indices[],
803 indices[0] = 0;
804 indices[
667 aver_isf_history( int16 isf_old[], int16 indices[], int32 isf_aver[] ) argument
725 find_frame_indices( int16 isf_old_tx[], int16 indices[], dtx_encState * st ) argument
[all...]
H A Ddtx.h186 int16 * indice /* output: quantization indices */
212 int16 * indice, /* input: quantization indices */
218 int16 indices[],
223 int16 indices[],
/frameworks/base/core/tests/coretests/src/android/text/
H A DDynamicLayoutBlocksTest.java39 private void defineInitialState(int[] ends, int[] indices) { argument
41 initialBlockIndices = indices;
69 private void assertState(int[] sizes, int[] indices) { argument
73 assertEquals(indices.length, dl.getNumberOfBlocks());
82 assertEquals(indices[i], dl.getBlockIndices()[i]);
/frameworks/native/opengl/tests/tritex/
H A Dtritex.cpp249 GLushort* indices = (GLushort*)malloc(quads*sizeof(quadIndices)); local
251 memcpy(indices+(sizeof(quadIndices)/sizeof(indices[0]))*i, quadIndices, sizeof(quadIndices));
271 glDrawElements(GL_TRIANGLES, nelem*quads, GL_UNSIGNED_SHORT, indices);
275 free(indices);
/frameworks/base/tools/aapt/
H A DStringPool.h45 hasStyles(o.hasStyles), indices(o.indices),
51 Vector<size_t> indices; member in struct:StringPool::entry
152 // Array of indices into mEntries, in the order they were
H A DStringPool.cpp173 ent.indices.add(pos);
292 newEntries.editItemAt(newOffset).indices.clear();
298 // Update the indices to include this new position.
299 newEntries.editItemAt(newOffset).indices.add(i);
332 mValues.add(ent.value, ent.indices[0]);
560 const Vector<size_t>* indices = offsetsForString(val); local
561 ssize_t res = indices != NULL && indices->size() > 0 ? indices->itemAt(0) : -1;
573 return &mEntries[mEntryArray[pos]].indices;
[all...]
/frameworks/native/opengl/libagl/
H A Darray.cpp761 GLsizei count, const GLvoid *indices)
767 vertex_t * v = fetch_vertex(c, read_index(type, indices));
778 GLsizei count, const GLvoid *indices)
788 c->arrays.compileElement(c, v0, read_index(type, indices));
791 v1 = fetch_vertex(c, read_index(type, indices));
803 GLsizei count, const GLvoid *indices)
806 drawIndexedPrimitivesLines(c, count, indices);
815 c->arrays.compileElement(c, v0, read_index(type, indices));
818 v1 = fetch_vertex(c, read_index(type, indices));
835 GLsizei count, const GLvoid *indices)
760 drawIndexedPrimitivesPoints(ogles_context_t* c, GLsizei count, const GLvoid *indices) argument
777 drawIndexedPrimitivesLineStrip(ogles_context_t* c, GLsizei count, const GLvoid *indices) argument
802 drawIndexedPrimitivesLineLoop(ogles_context_t* c, GLsizei count, const GLvoid *indices) argument
834 drawIndexedPrimitivesLines(ogles_context_t* c, GLsizei count, const GLvoid *indices) argument
856 drawIndexedPrimitivesTriangleFanOrStrip(ogles_context_t* c, GLsizei count, const GLvoid *indices, int winding) argument
892 drawIndexedPrimitivesTriangleStrip(ogles_context_t* c, GLsizei count, const GLvoid *indices) argument
897 drawIndexedPrimitivesTriangleFan(ogles_context_t* c, GLsizei count, const GLvoid *indices) argument
902 drawIndexedPrimitivesTriangles(ogles_context_t* c, GLsizei count, const GLvoid *indices) argument
1385 glDrawElements( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) argument
[all...]
/frameworks/native/opengl/tests/gl_basic/
H A Dgl_basic.cpp355 const GLushort indices[] = { 0, 1, 2, 0, 2, 3 };
360 int nelem = sizeof(indices)/sizeof(indices[0]);
362 glDrawElements(GL_TRIANGLES, nelem, GL_UNSIGNED_SHORT, indices);
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneResultAdapter.java162 ArrayList<Integer> indices = mTimeZoneData.getTimeZonesByOffset(time);
163 if (indices != null) {
164 for (Integer i : indices) {
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_fixup.cpp544 void findMinAndMaxIndices(GLvoid *indices, GLsizei count, GLenum type, argument
550 if (indices == NULL) {
556 index = *((GLubyte*) indices + i);
558 index = *((GLushort*) indices + i);
610 GLvoid *indices) {
616 /* void glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) */
631 indexBuffer = indices;
634 // Rather than sending vertex attribute data that corresponds to the indices
636 // indices being drawn, including the ones not drawn. The min & max indices
609 trace_VertexAttribPointerDataForGlDrawElements(GLTraceContext *context, GLMessage *glmsg, GLvoid *indices) argument
659 GLvoid *indices = pointersToFixup[0]; local
[all...]
/frameworks/base/media/java/android/media/videoeditor/
H A DMediaItem.java567 * @param indices The indices of the thumbnails wanted
575 int[] indices,
589 int[] indices = new int[thumbnailCount];
591 indices[i] = i;
594 thumbnailCount, indices, new GetThumbnailListCallback() {
572 getThumbnailList(int width, int height, long startMs, long endMs, int thumbnailCount, int[] indices, GetThumbnailListCallback callback) argument
H A DMediaImageItem.java622 int[] indices,
628 for (int i = 0; i < indices.length; i++) {
629 callback.onThumbnail(thumbnail, indices[i]);
641 height, startMs, endMs, thumbnailCount, indices, callback, 0);
619 getThumbnailList(int width, int height, long startMs, long endMs, int thumbnailCount, int[] indices, GetThumbnailListCallback callback) argument
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DManualActivity.java201 int[] indices = DisplayModifier.getIndices();
203 mSpinners[i].setSelection(indices[i]);
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp929 jint* indices = NULL; local
933 indices = (jint*)env->GetPrimitiveArrayCritical(outIndices, 0);
1104 if (indices != NULL && value.dataType != Res_value::TYPE_NULL) {
1106 indices[indicesIdx] = ii;
1114 if (indices != NULL) {
1115 indices[0] = indicesIdx;
1116 env->ReleasePrimitiveArrayCritical(outIndices, indices, 0);
1171 jint* indices = NULL; local
1175 indices = (jint*)env->GetPrimitiveArrayCritical(outIndices, 0);
1247 if (indices !
[all...]
/frameworks/base/libs/hwui/font/
H A DCacheTexture.h149 uint16_t* indices() const { function in class:android::uirenderer::CacheTexture
/frameworks/native/opengl/tools/glgen/specs/gles11/
H A Dchecks.spec34 glDrawElements check_AIOOBE indices count
/frameworks/base/core/jni/android/graphics/
H A DCanvas.cpp586 indices [ptCount * sizeof(uint16_t)]
592 storageSize += indexCount * sizeof(uint16_t); // indices[]
597 uint16_t* indices; local
600 indices = (uint16_t*)(texs + ptCount);
603 indices = (uint16_t*)(verts + ptCount);
614 // cons up texture coordinates and indices
640 // cons up indices
642 uint16_t* indexPtr = indices;
660 SkASSERT(indexPtr - indices == indexCount);
664 // double-check that we have legal indices
732 const uint16_t* indices = NULL; local
[all...]
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp97 // We transform every vertex between the min and max indices, inclusive.
435 char[] indices, int indicesOffset, int indexCount);
446 UnsignedShortArrayHelper indices(env, indices_ref, indicesOffset, 0);
448 bool checkOK = ws.check() && positions.check() && indices.check();
454 if (indices.mLength < indexCount) {
461 indices.bind();
465 indices.mData, indexCount);

Completed in 516 milliseconds

123