Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 100) sorted by relevance

1234

/packages/apps/Gallery2/jni/filters/
Dkmeans.h88 void initialPickHeuristicRandom(int k, T values[], int len, int dimension, int stride, T dst[], in initialPickHeuristicRandom() argument
94 unsigned int r_vals[k]; in initialPickHeuristicRandom()
97 for (x = 0; x < k; x++) { in initialPickHeuristicRandom()
141 int calculateNewCentroids(int k, T values[], int len, int dimension, int stride, T oldCenters[], in calculateNewCentroids() argument
144 pop_size = k * stride; in calculateNewCentroids()
145 int popularities[k]; in calculateNewCentroids()
149 memset(popularities, 0, sizeof(int) * k); in calculateNewCentroids()
179 void runKMeansWithPicks(int k, T finalCentroids[], T values[], int len, int dimension, int stride, in runKMeansWithPicks() argument
181 int k_len = k * stride; in runKMeansWithPicks()
194 ret = calculateNewCentroids<T, N>(k, values, len, dimension, stride, c1, c2); in runKMeansWithPicks()
[all …]
Dkmeans.cc53 int k = p; in JNIFUNCF() local
55 unsigned char finalCentroids[k * stride]; in JNIFUNCF()
58 runKMeans<unsigned char, int>(k, finalCentroids, small_ds, len, dimension, in JNIFUNCF()
64 unsigned char nextCentroids[k * stride]; in JNIFUNCF()
67 runKMeansWithPicks<unsigned char, int>(k, nextCentroids, large_ds, len, in JNIFUNCF()
73 applyCentroids<unsigned char, int>(k, nextCentroids, dst, len, dimension, stride); in JNIFUNCF()
Dedge.c37 int j, k; in JNIFUNCF() local
55 for (k = 1; k < width - 1; k++){ in JNIFUNCF()
56 int loc = j * row_stride + k * 4; in JNIFUNCF()
99 int off = k * 4; in JNIFUNCF()
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/
Ddbreg.cpp274 for(int k=0; k<m_nr_corners_ref; k++) in UpdateReference() local
276 if(m_x_corners_ref[k]>m_im_width/3) in UpdateReference()
278 m_x_corners_ref[nr] = m_x_corners_ref[k]; in UpdateReference()
279 m_y_corners_ref[nr] = m_y_corners_ref[k]; in UpdateReference()
293 for(int k=0; k<m_nr_corners_ins; k++) in UpdateReference() local
295 m_x_corners_ref[k] = m_x_corners_ins[k]; in UpdateReference()
296 m_y_corners_ref[k] = m_y_corners_ins[k]; in UpdateReference()
603 for( int c=0, k=0 ;c < m_nr_matches; c++, k=k+3) in ComputeCostArray() local
605 … m_sq_cost[c] = SquaredInhomogenousHomographyError(m_corners_ins+k,m_H_ref_to_ins,m_corners_ref+k); in ComputeCostArray()
617 for(int c=0, k=0 ;c<m_nr_matches;c++,k=k+3) in SelectOutliers() local
[all …]
Dvp_motionmodel.c98 int i, j, k, l, m, n,ntemp; in inv4Mat() local
106 for(k=0,i=0;i<4;i++) in inv4Mat()
107 for(j=0;j<4;j++,k++) in inv4Mat()
108 inmat[i][j]=(double)in->par[k]; in inv4Mat()
116 for (k=0;k<4;k++) { in inv4Mat()
117 if (i != k) { in inv4Mat()
121 mat[m][n] = inmat[k][l]; in inv4Mat()
136 for(k=0,i=0;i<4;i++) in inv4Mat()
137 for(j=0;j<4;j++,k++) in inv4Mat()
138 out->par[k]=(VP_PAR)outmat[i][j]; /*lint !e771*/ in inv4Mat()
/packages/apps/DocumentsUI/tests/res/raw/
Dimages_tar10 …;�T�A��ZY}����<c�uϠ� ��j�ڭ x�Βή!n�%c�PA/�����.���*d��ac����G+���6ͺ؊k�<b���J_���1��Zճ…
13 ���ڪ��U�+Zn9�1柔�!�,�b�>�*�W��F���(�x�]^��k^C#�~���N_���a���h�7��\�3F'F�$� �qld�V��}q�X�!�…
14 cL�Py2��W��_,ݨ��l�*��z4m:����7<k֎�Bl���$/�Pe��0i����=���ϋ������+�ar� � f����Go�'�5���vb�…
17 g!d���+ߏ �������h�̌�f��Q����z+�Ȫk O�q����:$B�_�;��䶢���o�s�e}�J�)��h)ΞD[�&Z�/��gY�MN…
19k� \�x:S�8X �&�a5�O :�ڃ�/�=�N�Z���S�=���D)p幬�=�64װ"�[I�T��w��#1S�(�,o�.� ���wT���.r�W…
30 …��N��iJ�`,s���2X��s�A~�*����8ŪH�K_]��19�� � \�P�7��U���#*${�������:�k:��X�?���,c0�O��YuɄ…
58 …B:Ԭ�ʅ� � ��2��~l�EW ���Fnq�Zv�WWN��m+���8+�?�o<4�j��a#��y�z��M~��k<�%߈<J��!�8("�O����
59 ���sqCe�Bn�!������k:��Ɋܷ)$���=s �����/R�QC]q�[�>K�*� �����_Ԗ-(����*q�=`̻-�N��O��4…
62 �VWE?}� ��k�d�٠d9zM�N�^��b\nXޟʷ�O�y#6p:���BG�cLoG9�m����Ax
66 …7�y�X�?� w��<�p��{db%��n��"��"C�����w:Qi�BԔn2�c�o#��S�u������|�Ο����b�k�lv��C����*�p{����…
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dbiginteger.h92 uint64_t k = 0; variable
95 digits_[i] = MulAdd64(digits_[i], u, k, &hi);
96 k = hi;
99 if (k > 0)
100 PushBack(k);
110 uint64_t k = 0; variable
116 const uint64_t p0 = ud + k;
119 k = p1 >> 32;
122 if (k > 0)
123 PushBack(k);
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_indexing.h62 int i,j,k; in db_MultiplyMatricesAB() local
68 for(k=0;k<acols;k++) acc+=A[i][k]*B[k][j]; in db_MultiplyMatricesAB()
75 int i,j,k; in db_UpperMultiplyMatricesAtB() local
81 for(k=0;k<acols;k++) acc+=At[k][i]*B[k][j]; in db_UpperMultiplyMatricesAtB()
Ddb_utilities_linalg.cpp82 int i,j,k; in db_CholeskyDecompSeparateDiagonal() local
90 for(k=i-1;k>=0;k--) s-=A[i][k]*A[j][k]; in db_CholeskyDecompSeparateDiagonal()
104 int i,k; in db_CholeskyBacksub() local
109 for(s=b[i],k=i-1;k>=0;k--) s-=A[i][k]*x[k]; in db_CholeskyBacksub()
114 for(s=x[i],k=i+1;k<n;k++) s-=A[k][i]*x[k]; in db_CholeskyBacksub()
Ddb_rob_image_homography.cpp343 inline void db_RobImageHomographyJH_Jt(double **JE_dx_ref,int j,int k,double H[9]) in db_RobImageHomographyJH_Jt() argument
355 JE_dx_ref[0][k]=0; in db_RobImageHomographyJH_Jt()
356 JE_dx_ref[1][k]=0; in db_RobImageHomographyJH_Jt()
357 JE_dx_ref[2][k]=0; in db_RobImageHomographyJH_Jt()
358 JE_dx_ref[3][k]=0; in db_RobImageHomographyJH_Jt()
359 JE_dx_ref[4][k]=0; in db_RobImageHomographyJH_Jt()
360 JE_dx_ref[5][k]=1.0; in db_RobImageHomographyJH_Jt()
361 JE_dx_ref[6][k]=0; in db_RobImageHomographyJH_Jt()
362 JE_dx_ref[7][k]=0; in db_RobImageHomographyJH_Jt()
363 JE_dx_ref[8][k]=0; in db_RobImageHomographyJH_Jt()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalMergeAlbum.java138 int k = -1; // k points to the best slot up to now. in getMediaItem() local
141 if (k == -1 || mComparator.compare(slot[j], slot[k]) < 0) { in getMediaItem()
142 k = j; in getMediaItem()
148 if (k == -1) break; in getMediaItem()
151 subPos[k]++; in getMediaItem()
153 result.add(slot[k]); in getMediaItem()
155 slot[k] = mFetcher[k].getItem(subPos[k]); in getMediaItem()
DSizeClustering.java90 int k = 0; in run() local
96 mClusters[k] = group[i]; in run()
98 mNames[k] = String.format( in run()
101 mNames[k] = String.format( in run()
106 mNames[k] = String.format( in run()
109 mMinSizes[k] = SIZE_LEVELS[i]; in run()
110 k++; in run()
DLocationClustering.java232 for (int k = minK; k <= maxK; k++) { in kMeans()
234 int delta = n / k; in kMeans()
235 for (int i = 0; i < k; i++) { in kMeans()
243 for (int i = 0; i < k; i++) { in kMeans()
254 for (int j = 0; j < k; j++) { in kMeans()
276 for (int i = 0; i < k; i++) { in kMeans()
291 int reassign[] = new int[k]; in kMeans()
293 for (int i = 0; i < k; i++) { in kMeans()
/packages/apps/TV/tuner/tests/assets/
Dcapture_kqed.ts30 �L9bޤPEw�ڼ��1���7�ɘ�[YE� �Ž�pM��S��E��9s��(m�r�1rG�T�5C�z��B�e������G�k�]WY�J�ݲ��Y]]�j�}�3n;…
51 …9`”0�ܱ�!x�R�����f�d�bG`P������B��T6nԸh5�*�z�)Bs̓s'�%�����II7�Q�k��b[G��#n�f��ŏ���[�G…
81 x��T� E�r�G�)ok<zB3��}�c��u1� % �Z-Q"hQ���A �p �5�b
100 F��W���o�Ǻ<"��5�c�aPi}W���� ��������6G�G#���ukK� ��A�LT�&�tʼ!��%?��K^��@��4���Vx�g�k��Xsn '…
106k��H7ID�d��ڽG�O�F�yU�����i��m��2�B�u u�5�z:�B�S•��H�b���rk_Z$nki�0+Q��Ի�� sRT��r�k�����KW�s…
110 �4M�%���=2�-���!/jy�Uy�ٍ)�������G܇'�����?�C3��}�k��e�� %��BU�E�y�G�A�� �X�e���!I��I�p$…
114 …j=+�(*�l@C1ǫ��kM��@��tkQ�L�ag��X)��\�uW��N*K��Tv)�u�G�g0��7U ��fM��82.k\���R��,���K�G�<�t>…
122 …2����b��Jn����_+�vt#�Gߋ-?L�.�WB�� �Vҷ�)P��!�P�Дb��0�Z<��֏G��fO��z�k��B��dtM��s�c��h��…
129 ���M����4q��@�{�g����������9 �v�w���zH�p���})��}�Z��k�`0�v�^�3G0�N�]T�E4�~����j�/���������,�
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_reader.cpp186 int r, g, b, c, m, y, k; in formatPixels() local
191 k = buf[i + 3]; in formatPixels()
194 r = (k * c) / 255; in formatPixels()
195 g = (k * m) / 255; in formatPixels()
196 b = (k * y) / 255; in formatPixels()
198 r = (255 - k) * (255 - c) / 255; in formatPixels()
199 g = (255 - k) * (255 - m) / 255; in formatPixels()
200 b = (255 - k) * (255 - y) / 255; in formatPixels()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorGridDialog.java42 int k = 0; in ColorGridDialog() local
47 hsv[0] = (k % 5) * 360 / 5; in ColorGridDialog()
48 hsv[1] = (k / 5) / 3.0f; in ColorGridDialog()
49 hsv[2] = (k < 5) ? (k / 4f) : 1; in ColorGridDialog()
60 k++; in ColorGridDialog()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java918 for (int k = 0; k < adjust; k++) { in stepIfNeeded()
919 removeItem(k); in stepIfNeeded()
922 for (int k = 0; k + adjust < BUFFER_SIZE; k++) { in stepIfNeeded()
923 mViewItems[k] = mViewItems[k + adjust]; in stepIfNeeded()
926 for (int k = BUFFER_SIZE - adjust; k < BUFFER_SIZE; k++) { in stepIfNeeded()
927 mViewItems[k] = null; in stepIfNeeded()
928 if (mViewItems[k - 1] != null) { in stepIfNeeded()
929 mViewItems[k] = buildViewItemAt(mViewItems[k - 1].getAdapterIndex() + 1); in stepIfNeeded()
935 for (int k = BUFFER_SIZE - 1; k >= BUFFER_SIZE + adjust; k--) { in stepIfNeeded()
936 removeItem(k); in stepIfNeeded()
[all …]
/packages/apps/Terminal/src/com/android/terminal/
DTerminalView.java322 KeyEvent k; in onCreateInputConnection()
324 k = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL); in onCreateInputConnection()
325 return this.sendKeyEvent(k); in onCreateInputConnection()
328 k = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL); in onCreateInputConnection()
329 this.sendKeyEvent(k); in onCreateInputConnection()
332 k = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_FORWARD_DEL); in onCreateInputConnection()
333 this.sendKeyEvent(k); in onCreateInputConnection()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DMatrixFit.java78 for (int k = 0; k < mDimension + 1; k++) { in fit()
81 if (k < mDimension) { in fit()
82 qt = q[i][k]; in fit()
84 c[k][j] += qt * p[i][j]; in fit()
/packages/services/BuiltInPrintService/jni/lib/
Dplugin_db.c101 int i, j, k; in plugin_search() local
108 k = 0; in plugin_search()
109 while (strlen(_plugin[i].mime_types[k])) { in plugin_search()
110 if (strcmp(_plugin[i].mime_types[k], mt) == 0) { in plugin_search()
117 k++; in plugin_search()
/packages/inputmethods/LatinIME/dictionaries/
Dtr_wordlist.combined.gz1dictionary=main:tr,locale=tr,description=Türkçe,date=1414726261, ...
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DMatrixUtils.java140 for (int k = 0; k < m0w; k++) { in multiply()
141 retval[i][j] += m0[i][k] * m1[k][j]; in multiply()
DSmoothingUtils.java64 for (int k = 0; k < N; ++k) { in get3DParameters()
65 m0[i][j] += (float) Math.pow(xs[k], pow); in get3DParameters()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterRepresentation.java230 for (int k = 0; k < rep.length; k++) { in serializeRepresentation()
231 writer.name(rep[k][0]); in serializeRepresentation()
232 writer.value(rep[k][1]); in serializeRepresentation()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_avrcp_controller.cpp210 for (int i = 0, k = 0; (i < num_attr) && (k < arraylen); i++) { in btavrcp_playerapplicationsetting_callback() local
211 sCallbackEnv->SetByteArrayRegion(playerattribs.get(), k, 1, in btavrcp_playerapplicationsetting_callback()
213 k++; in btavrcp_playerapplicationsetting_callback()
214 sCallbackEnv->SetByteArrayRegion(playerattribs.get(), k, 1, in btavrcp_playerapplicationsetting_callback()
216 k++; in btavrcp_playerapplicationsetting_callback()
217 sCallbackEnv->SetByteArrayRegion(playerattribs.get(), k, in btavrcp_playerapplicationsetting_callback()
220 k = k + app_attrs[i].num_val; in btavrcp_playerapplicationsetting_callback()
256 for (int i = 0, k = 0; (i < vals.num_attr) && (k < arraylen); i++) { in btavrcp_playerapplicationsetting_changed_callback() local
257 sCallbackEnv->SetByteArrayRegion(playerattribs.get(), k, 1, in btavrcp_playerapplicationsetting_changed_callback()
259 k++; in btavrcp_playerapplicationsetting_changed_callback()
[all …]

1234