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

12

/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/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/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.h46 hasStyles(o.hasStyles), indices(o.indices),
52 Vector<size_t> indices; member in struct:StringPool::entry
153 // 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/base/libs/hwui/
H A DLayerRenderer.cpp165 uint16_t* indices = mLayer->meshIndices; local
183 indices[index ] = quad; // top-left
184 indices[index + 1] = quad + 1; // top-right
185 indices[index + 2] = quad + 2; // bottom-left
186 indices[index + 3] = quad + 2; // bottom-left
187 indices[index + 4] = quad + 1; // top-right
188 indices[index + 5] = quad + 3; // bottom-right
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_fixup.cpp546 void findMinAndMaxIndices(GLvoid *indices, GLsizei count, GLenum type, argument
552 if (indices == NULL) {
558 index = *((GLubyte*) indices + i);
560 index = *((GLushort*) indices + i);
612 GLvoid *indices) {
618 /* void glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) */
633 indexBuffer = indices;
636 // Rather than sending vertex attribute data that corresponds to the indices
638 // indices being drawn, including the ones not drawn. The min & max indices
611 trace_VertexAttribPointerDataForGlDrawElements(GLTraceContext *context, GLMessage *glmsg, GLvoid *indices) argument
661 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
H A DMediaVideoItem.java313 int[] indices,
335 startMs, endMs, thumbnailCount, indices, callback,
310 getThumbnailList(int width, int height, long startMs, long endMs, int thumbnailCount, int[] indices, GetThumbnailListCallback callback) argument
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp916 jint* indices = NULL; local
920 indices = (jint*)env->GetPrimitiveArrayCritical(outIndices, 0);
1091 if (indices != NULL && value.dataType != Res_value::TYPE_NULL) {
1093 indices[indicesIdx] = ii;
1101 if (indices != NULL) {
1102 indices[0] = indicesIdx;
1103 env->ReleasePrimitiveArrayCritical(outIndices, indices, 0);
1158 jint* indices = NULL; local
1162 indices = (jint*)env->GetPrimitiveArrayCritical(outIndices, 0);
1234 if (indices !
[all...]
/frameworks/base/core/jni/android/graphics/
H A DCanvas.cpp577 indices [ptCount * sizeof(uint16_t)]
583 storageSize += indexCount * sizeof(uint16_t); // indices[]
588 uint16_t* indices; local
591 indices = (uint16_t*)(texs + ptCount);
594 indices = (uint16_t*)(verts + ptCount);
605 // cons up texture coordinates and indices
631 // cons up indices
633 uint16_t* indexPtr = indices;
651 SkASSERT(indexPtr - indices == indexCount);
655 // double-check that we have legal indices
723 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);
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java1278 * colors from the shader and the color-gradient together. The indices array
1294 * @param indices If not null, array of indices to reference into the
1296 * @param indexCount number of entries in the indices array (if not null).
1301 short[] indices, int indexOffset, int indexCount, Paint paint) {
1309 if (indices != null) {
1310 checkRange(indices.length, indexOffset, indexCount);
1314 indices, indexOffset, indexCount, paint.mNativePaint);
1726 int[] colors, int colorOffset, short[] indices,
1299 drawVertices(VertexMode mode, int vertexCount, float[] verts, int vertOffset, float[] texs, int texOffset, int[] colors, int colorOffset, short[] indices, int indexOffset, int indexCount, Paint paint) argument
1724 nativeDrawVertices(int nCanvas, int mode, int n, float[] verts, int vertOffset, float[] texs, int texOffset, int[] colors, int colorOffset, short[] indices, int indexOffset, int indexCount, int nPaint) argument
/frameworks/base/core/java/android/view/
H A DGLES20RecordingCanvas.java297 float[] texs, int texOffset, int[] colors, int colorOffset, short[] indices,
300 colorOffset, indices, indexOffset, indexCount, paint);
296 drawVertices(VertexMode mode, int vertexCount, float[] verts, int vertOffset, float[] texs, int texOffset, int[] colors, int colorOffset, short[] indices, int indexOffset, int indexCount, Paint paint) argument
/frameworks/native/opengl/tools/glgen/specs/gles11/
H A Dchecks.spec7 glDrawElements check_AIOOBE indices count
/frameworks/base/core/java/android/content/res/
H A DTypedArray.java35 * The indices used to retrieve values from this structure correspond to
55 * Return the number of indices in the array that actually have data.
730 /*package*/ TypedArray(Resources resources, int[] data, int[] indices, int len) { argument
733 mIndices = indices;
/frameworks/base/core/java/android/inputmethodservice/
H A DKeyboard.java729 int[] indices = new int[mKeys.size()];
742 indices[count++] = i;
746 System.arraycopy(indices, 0, cell, 0, count);
753 * Returns the indices of the keys that are closest to the given point.
756 * @return the array of integer indices for the nearest keys to the given point. If the given

Completed in 470 milliseconds

12