Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 1457) sorted by relevance

12345678910>>...59

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DResizableIntArrayTests.java39 for (int i = 0; i < limit; i++) { in testAdd()
40 src.add(i); in testAdd()
41 assertEquals("length after add " + i, i + 1, src.getLength()); in testAdd()
42 if (i == DEFAULT_CAPACITY) { in testAdd()
45 if (i == DEFAULT_CAPACITY * 2) { in testAdd()
48 if (i < DEFAULT_CAPACITY) { in testAdd()
49 assertSame("array after add " + i, array, src.getPrimitiveArray()); in testAdd()
50 } else if (i < DEFAULT_CAPACITY * 2) { in testAdd()
51 assertSame("array after add " + i, array2, src.getPrimitiveArray()); in testAdd()
52 } else if (i < DEFAULT_CAPACITY * 3) { in testAdd()
[all …]
DInputPointersTests.java55 for (int i = 0; i < limit; i++) { in testAdd()
56 src.addPointer(i, i * 2, i * 3, i * 4); in testAdd()
57 assertEquals("size after add " + i, i + 1, src.getPointerSize()); in testAdd()
59 for (int i = 0; i < limit; i++) { in testAdd()
60 assertEquals("xCoordinates at " + i, i, src.getXCoordinates()[i]); in testAdd()
61 assertEquals("yCoordinates at " + i, i * 2, src.getYCoordinates()[i]); in testAdd()
62 assertEquals("pointerIds at " + i, i * 3, src.getPointerIds()[i]); in testAdd()
63 assertEquals("times at " + i, i * 4, src.getTimes()[i]); in testAdd()
70 for (int i = 0; i < limit; i += step) { in testAddAt()
71 src.addPointer(i, i, i * 2, i * 3, i * 4); in testAddAt()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/
Dproximity_info_state_utils.cpp51 for (int i = 0; i < inputSize; ++i) { in updateTouchPoints() local
53 i, inputXCoordinates[i], inputYCoordinates[i], times[i]); in updateTouchPoints()
59 for (int i = 0; i < inputSize; ++i) { in updateTouchPoints() local
60 if (i > 0) { in updateTouchPoints()
61 if (times[i] < times[i - 1]) { in updateTouchPoints()
62 AKLOGI("Invalid time sequence. %d, %d", times[i - 1], times[i]); in updateTouchPoints()
72 for (int i = lastInputIndex; i < inputSize; ++i) { in updateTouchPoints() local
73 const int pid = pointerIds ? pointerIds[i] : 0; in updateTouchPoints()
75 lastInputIndex = i; in updateTouchPoints()
92 for (int i = pushTouchPointStartIndex; i <= lastInputIndex; ++i) { in updateTouchPoints() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPositionController.java204 for (int i = 0; i < CENTER_OUT_INDEX.length; i++) {
205 int j = (i + 1) / 2;
206 if ((i & 1) == 0) j = -j;
207 CENTER_OUT_INDEX[i] = j;
218 for (int i = -BOX_MAX; i <= BOX_MAX; i++) { in PositionController()
219 mBoxes.put(i, new Box()); in PositionController()
220 initBox(i); in PositionController()
221 mRects.put(i, new Rect()); in PositionController()
223 for (int i = -BOX_MAX; i < BOX_MAX; i++) { in PositionController()
224 mGaps.put(i, new Gap()); in PositionController()
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_feature_detection.cpp36 int i,n,aw; in db_AllocStrengthImage_f() local
55 for(i=0;i<h;i++) in db_AllocStrengthImage_f()
57 img[i]=aim+aw*i+1; in db_AllocStrengthImage_f()
71 inline void db_IxIyRow_f(float *Ix,float *Iy,const float * const *img,int i,int j,int chunk_width) in db_IxIyRow_f() argument
77 Ix[c]=img[i][j+c-1]-img[i][j+c+1]; in db_IxIyRow_f()
78 Iy[c]=img[i-1][j+c]-img[i+1][j+c]; in db_IxIyRow_f()
84 inline void db_IxIyRow_u(int *dxx,const unsigned char * const *img,int i,int j,int nc) in db_IxIyRow_u() argument
89 r1=img[i-1]+j; r2=img[i]+j; r3=img[i+1]+j; in db_IxIyRow_u()
206 Ix=(img[i][j+c-1]-img[i][j+c+1])>>1; in db_IxIyRow_u()
207 Iy=(img[i-1][j+c]-img[i+1][j+c])>>1; in db_IxIyRow_u()
[all …]
Ddb_utilities_linalg.cpp82 int i,j,k; in db_CholeskyDecompSeparateDiagonal() local
86 for(i=0;i<n;i++) for(j=i;j<n;j++) in db_CholeskyDecompSeparateDiagonal()
88 if(i==j) s=d[i]; in db_CholeskyDecompSeparateDiagonal()
89 else s=A[i][j]; in db_CholeskyDecompSeparateDiagonal()
90 for(k=i-1;k>=0;k--) s-=A[i][k]*A[j][k]; in db_CholeskyDecompSeparateDiagonal()
91 if(i==j) in db_CholeskyDecompSeparateDiagonal()
93 d[i]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecompSeparateDiagonal()
94 temp=db_SafeReciprocal(d[i]); in db_CholeskyDecompSeparateDiagonal()
96 else A[j][i]=s*temp; in db_CholeskyDecompSeparateDiagonal()
104 int i,k; in db_CholeskyBacksub() local
[all …]
/packages/apps/Gallery2/jni_mosaic/feature_stab/db_vlvm/
Ddb_feature_detection.cpp36 int i,n,aw; in db_AllocStrengthImage_f() local
55 for(i=0;i<h;i++) in db_AllocStrengthImage_f()
57 img[i]=aim+aw*i+1; in db_AllocStrengthImage_f()
71 inline void db_IxIyRow_f(float *Ix,float *Iy,const float * const *img,int i,int j,int chunk_width) in db_IxIyRow_f() argument
77 Ix[c]=img[i][j+c-1]-img[i][j+c+1]; in db_IxIyRow_f()
78 Iy[c]=img[i-1][j+c]-img[i+1][j+c]; in db_IxIyRow_f()
84 inline void db_IxIyRow_u(int *dxx,const unsigned char * const *img,int i,int j,int nc) in db_IxIyRow_u() argument
89 r1=img[i-1]+j; r2=img[i]+j; r3=img[i+1]+j; in db_IxIyRow_u()
206 Ix=(img[i][j+c-1]-img[i][j+c+1])>>1; in db_IxIyRow_u()
207 Iy=(img[i-1][j+c]-img[i+1][j+c])>>1; in db_IxIyRow_u()
[all …]
/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_feature_detection.cpp36 int i,n,aw; in db_AllocStrengthImage_f() local
55 for(i=0;i<h;i++) in db_AllocStrengthImage_f()
57 img[i]=aim+aw*i+1; in db_AllocStrengthImage_f()
71 inline void db_IxIyRow_f(float *Ix,float *Iy,const float * const *img,int i,int j,int chunk_width) in db_IxIyRow_f() argument
77 Ix[c]=img[i][j+c-1]-img[i][j+c+1]; in db_IxIyRow_f()
78 Iy[c]=img[i-1][j+c]-img[i+1][j+c]; in db_IxIyRow_f()
84 inline void db_IxIyRow_u(int *dxx,const unsigned char * const *img,int i,int j,int nc) in db_IxIyRow_u() argument
89 r1=img[i-1]+j; r2=img[i]+j; r3=img[i+1]+j; in db_IxIyRow_u()
206 Ix=(img[i][j+c-1]-img[i][j+c+1])>>1; in db_IxIyRow_u()
207 Iy=(img[i-1][j+c]-img[i+1][j+c])>>1; in db_IxIyRow_u()
[all …]
Ddb_utilities_linalg.cpp82 int i,j,k; in db_CholeskyDecompSeparateDiagonal() local
86 for(i=0;i<n;i++) for(j=i;j<n;j++) in db_CholeskyDecompSeparateDiagonal()
88 if(i==j) s=d[i]; in db_CholeskyDecompSeparateDiagonal()
89 else s=A[i][j]; in db_CholeskyDecompSeparateDiagonal()
90 for(k=i-1;k>=0;k--) s-=A[i][k]*A[j][k]; in db_CholeskyDecompSeparateDiagonal()
91 if(i==j) in db_CholeskyDecompSeparateDiagonal()
93 d[i]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecompSeparateDiagonal()
94 temp=db_SafeReciprocal(d[i]); in db_CholeskyDecompSeparateDiagonal()
96 else A[j][i]=s*temp; in db_CholeskyDecompSeparateDiagonal()
104 int i,k; in db_CholeskyBacksub() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
DSpline.java50 for (int i = 0; i < spline.mPoints.size(); i++) { in Spline()
51 ControlPoint p = spline.mPoints.elementAt(i); in Spline()
129 for (int i = 0; i < mPoints.size(); i++) { in getAppliedCurve()
130 ControlPoint p = mPoints.get(i); in getAppliedCurve()
131 points[i] = new ControlPoint(p.x, p.y); in getAppliedCurve()
142 for (int i = 0; i < start; i++) { in getAppliedCurve()
143 curve[i] = 1.0f - points[0].y; in getAppliedCurve()
145 for (int i = end; i < 256; i++) { in getAppliedCurve()
146 curve[i] = 1.0f - points[points.length - 1].y; in getAppliedCurve()
148 for (int i = start; i < end; i++) { in getAppliedCurve()
[all …]
/packages/apps/Music/src/com/android/music/
DSortCursor.java61 for (int i = 0 ; i < length ; i++) { in SortCursor()
62 if (mCursors[i] == null) continue; in SortCursor()
65 mCursors[i].registerDataSetObserver(mObserver); in SortCursor()
67 mCursors[i].moveToFirst(); in SortCursor()
70 mSortColumns[i] = mCursors[i].getColumnIndexOrThrow(sortcolumn); in SortCursor()
84 for (int i = mRowNumCache.length - 1; i >= 0; i--) { in SortCursor()
85 mRowNumCache[i] = -2; in SortCursor()
95 for (int i = 0 ; i < length ; i++) { in getCount()
96 if (mCursors[i] != null) { in getCount()
97 count += mCursors[i].getCount(); in getCount()
[all …]
DMediaPlaybackService.java370 Intent i = new Intent(AudioEffect.ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION); in onDestroy() local
371 i.putExtra(AudioEffect.EXTRA_AUDIO_SESSION, getAudioSessionId()); in onDestroy()
372 i.putExtra(AudioEffect.EXTRA_PACKAGE_NAME, getPackageName()); in onDestroy()
373 sendBroadcast(i); in onDestroy()
422 for (int i = 0; i < len; i++) { in saveQueue()
423 long n = mPlayList[i]; in saveQueue()
444 for (int i = 0; i < len; i++) { in saveQueue()
445 int n = mHistory.get(i); in saveQueue()
491 for (int i = 0; i < qlen; i++) { in reloadQueue()
492 char c = q.charAt(i); in reloadQueue()
[all …]
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/
DAddressListParser.java733 for (int i = 0; i < 22; i++) jj_la1[i] = -1; in AddressListParser()
734 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); in AddressListParser()
747 for (int i = 0; i < 22; i++) jj_la1[i] = -1; in ReInit()
748 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); in ReInit()
757 for (int i = 0; i < 22; i++) jj_la1[i] = -1; in AddressListParser()
758 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); in AddressListParser()
768 for (int i = 0; i < 22; i++) jj_la1[i] = -1; in ReInit()
769 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); in ReInit()
777 for (int i = 0; i < 22; i++) jj_la1[i] = -1; in AddressListParser()
778 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); in AddressListParser()
[all …]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DComposingText.java71 for (int i = 0; i < MAX_LAYER; i++) { in ComposingText()
72 mStringLayer[i] = new ArrayList<StrSegment>(); in ComposingText()
73 mCursor[i] = 0; in ComposingText()
81 for (int i = 0; i < MAX_LAYER; i++) { in debugout()
82 Log.d("OpenWnn", "ComposingText["+i+"]"); in debugout()
83 Log.d("OpenWnn", " cur = " + mCursor[i]); in debugout()
85 for (Iterator<StrSegment> it = mStringLayer[i].iterator(); it.hasNext();) { in debugout()
129 for (int i = from; i <= to; i++) { in toString()
130 StrSegment ss = strLayer.get(i); in toString()
188 for (int i = 0; i < strUplayer.size(); i++) { in modifyUpper()
[all …]
/packages/inputmethods/PinyinIME/jni/share/
Duserdict.cpp373 uint32 i = 0; in is_fuzzy_prefix_spell_id() local
374 for (i = 0; i < searchable->splids_len; i++) { in is_fuzzy_prefix_spell_id()
375 const char py1 = *spl_trie.get_spelling_str(id1[i]); in is_fuzzy_prefix_spell_id()
376 uint16 off = 8 * (i % 4); in is_fuzzy_prefix_spell_id()
377 const char py2 = ((searchable->signature[i/4] & (0xff << off)) >> off); in is_fuzzy_prefix_spell_id()
393 uint32 i = 0; in fuzzy_compare_spell_id() local
394 for (i = 0; i < len1; i++) { in fuzzy_compare_spell_id()
395 const char py1 = *spl_trie.get_spelling_str(id1[i]); in fuzzy_compare_spell_id()
396 uint16 off = 8 * (i % 4); in fuzzy_compare_spell_id()
397 const char py2 = ((searchable->signature[i/4] & (0xff << off)) >> off); in fuzzy_compare_spell_id()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DRunningState.java145 Log.i(TAG, "Comparing " + lhs + " with " + rhs);
146 Log.i(TAG, " Proc " + lhs.mProcess + " with " + rhs.mProcess);
147 Log.i(TAG, " UserId " + lhs.mUserId + " with " + rhs.mUserId);
162 if (DEBUG_COMPARE) Log.i(TAG, " Label " + lhs.mProcess.mLabel
172 if (DEBUG_COMPARE) Log.i(TAG, " Bg " + lhsBg + " with " + rhsBg);
180 if (DEBUG_COMPARE) Log.i(TAG, " Act " + lhsA + " with " + rhsA);
184 if (DEBUG_COMPARE) Log.i(TAG, " Lru " + lhsInfo.lru + " with " + rhsInfo.lru);
530 for (int i=0; i<NP; i++) { in buildDependencyChain()
531 ProcessItem proc = mDependentProcesses.valueAt(i); in buildDependencyChain()
552 for (int i=0; i<NP; i++) { in addDependentProcesses()
[all …]
DApplicationsState.java352 for (int i=0; i<mSessions.size(); i++) { in rebuildActiveSessions()
353 Session s = mSessions.get(i); in rebuildActiveSessions()
380 for (int i=0; i<mActiveSessions.size(); i++) { in handleMessage()
381 mActiveSessions.get(i).mCallbacks.onPackageListChanged(); in handleMessage()
385 for (int i=0; i<mActiveSessions.size(); i++) { in handleMessage()
386 mActiveSessions.get(i).mCallbacks.onPackageIconChanged(); in handleMessage()
390 for (int i=0; i<mActiveSessions.size(); i++) { in handleMessage()
391 mActiveSessions.get(i).mCallbacks.onPackageSizeChanged( in handleMessage()
396 for (int i=0; i<mActiveSessions.size(); i++) { in handleMessage()
397 mActiveSessions.get(i).mCallbacks.onAllSizesComputed(); in handleMessage()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DSplineMath.java20 for (int i = 0; i < mPoints.length; i++) { in calculatetCurve()
22 points[i][0] = mPoints[i][0]; in calculatetCurve()
23 points[i][1] = mPoints[i][1]; in calculatetCurve()
36 for (int i = 0; i < curve.length; i++) { in calculatetCurve()
40 double x = start + i * (end - start) / (curve.length - 1); in calculatetCurve()
67 curve[i][0] = (float) (x); in calculatetCurve()
68 curve[i][1] = (float) (y); in calculatetCurve()
70 curve[i][0] = (float) (next[0]); in calculatetCurve()
71 curve[i][1] = (float) (next[1]); in calculatetCurve()
125 for (int i = 1; i < n - 1; i++) { in solveSystem()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocationClustering.java89 for (int i = 0; i < total; i++) { in run()
90 SmallItem s = buf[i]; in run()
110 for (int i = 0; i < bestK[0]; i++) { in run()
114 for (int i = 0; i < m; i++) { in run()
115 clusters.get(index[i]).add(withLatLong.get(i)); in run()
156 for (int i = 0; i < n; i++) { in generateName()
157 SmallItem item = items.get(i); in generateName()
191 for (int i = 0, n = items.size(); i < n; i++) { in getCluster()
192 result.add(items.get(i).path); in getCluster()
217 for (int i = 0; i < maxK; i++) { in kMeans()
[all …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/
DOpenWnnDictionaryImplJni.c64 int i, o; in convertStringToNjChar() local
67 for( i = o = 0 ; src[ i ] != 0x00 && o < maxChars ; ) { in convertStringToNjChar()
71 if( ( src[ i ] & 0x80 ) == 0x00 ) { in convertStringToNjChar()
75 dst_tmp[ 1 ] = src[ i + 0 ] & 0x7f; in convertStringToNjChar()
76 i++; in convertStringToNjChar()
78 } else if( ( src[ i ] & 0xe0 ) == 0xc0 ) { in convertStringToNjChar()
81 if( src[ i + 1 ] == 0x00 ) { in convertStringToNjChar()
84 dst_tmp[ 0 ] = ( ( src[ i + 0 ] & 0x1f ) >> 2 ); in convertStringToNjChar()
85 dst_tmp[ 1 ] = ( ( src[ i + 0 ] & 0x1f ) << 6 ) | ( src[ i + 1 ] & 0x3f ); in convertStringToNjChar()
86 i += 2; in convertStringToNjChar()
[all …]
/packages/apps/Settings/src/com/android/settings/
DRingerVolumePreference.java113 for (int i = 0; i < SEEKBAR_TYPE.length; i++) { in updateSlidersAndMutedStates()
114 int streamType = SEEKBAR_TYPE[i]; in updateSlidersAndMutedStates()
117 if (mCheckBoxes[i] != null) { in updateSlidersAndMutedStates()
121 mCheckBoxes[i].setImageResource( in updateSlidersAndMutedStates()
124 mCheckBoxes[i].setImageResource( in updateSlidersAndMutedStates()
125 muted ? SEEKBAR_MUTED_RES_ID[i] : SEEKBAR_UNMUTED_RES_ID[i]); in updateSlidersAndMutedStates()
128 if (mSeekBars[i] != null) { in updateSlidersAndMutedStates()
130 mSeekBars[i].setProgress(volume); in updateSlidersAndMutedStates()
132 mSeekBars[i].setEnabled(false); in updateSlidersAndMutedStates()
134 mSeekBars[i].setEnabled(true); in updateSlidersAndMutedStates()
[all …]
/packages/apps/Nfc/nci/jni/
DNfcTag.cpp365 for (int i=0; i < mNumTechList; i++) in discoverTechnologies() local
368 i, mTechList[i], mTechHandles[i], mTechLibNfcTypes[i]); in discoverTechnologies()
469 for (int i=0; i < mNumTechList; i++) in discoverTechnologies() local
472 i, mTechList[i], mTechHandles[i], mTechLibNfcTypes[i]); in discoverTechnologies()
574 for (int i = 0; i < mNumTechList; i++) { in fillNativeNfcTagMembers1() local
575 mNativeData->tProtocols [i] = mTechLibNfcTypes [i]; in fillNativeNfcTagMembers1()
576 mNativeData->handles [i] = mTechHandles [i]; in fillNativeNfcTagMembers1()
577 technologies [i] = mTechList [i]; in fillNativeNfcTagMembers1()
578 handles [i] = mTechHandles [i]; in fillNativeNfcTagMembers1()
579 types [i] = mTechLibNfcTypes [i]; in fillNativeNfcTagMembers1()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
DImagePreset.java85 for (int i = 0; i < source.mFilters.size(); i++) { in ImagePreset()
86 FilterRepresentation representation = source.mFilters.elementAt(i).clone(); in ImagePreset()
112 for (int i = 0; i < mFilters.size(); i++) { in getPositionForRepresentation()
113 if (mFilters.elementAt(i).getFilterClass() == representation.getFilterClass()) { in getPositionForRepresentation()
114 return i; in getPositionForRepresentation()
195 for (int i = 0; i < mFilters.size(); i++) { in hasModifications()
196 FilterRepresentation filter = mFilters.elementAt(i); in hasModifications()
267 for (int i = 0; i < preset.mFilters.size(); i++) { in equals()
268 FilterRepresentation a = preset.mFilters.elementAt(i); in equals()
269 FilterRepresentation b = mFilters.elementAt(i); in equals()
[all …]
/packages/apps/VideoEditor/src/com/android/videoeditor/service/
DVideoEditorProject.java332 for (int i = 0; i < mediaItemCount; i++) { in insertMediaItem()
333 final MovieMediaItem mi = mMediaItems.get(i); in insertMediaItem()
338 if (i < mediaItemCount - 1) { in insertMediaItem()
339 mMediaItems.get(i + 1).setBeginTransition(null); in insertMediaItem()
343 mMediaItems.add(i + 1, mediaItem); in insertMediaItem()
362 for (int i = 0; i < count; i++) { in updateMediaItem()
363 final MovieMediaItem mediaItem = mMediaItems.get(i); in updateMediaItem()
365 mMediaItems.set(i, newMediaItem); in updateMediaItem()
368 if (i > 0) { in updateMediaItem()
369 final MovieMediaItem prevMediaItem = mMediaItems.get(i - 1); in updateMediaItem()
[all …]
/packages/apps/Mms/src/com/android/mms/dom/smil/
DSmilPlayer.java122 for (int i = 0; i < children.getLength(); ++i) { in getParTimeline()
123 ElementTime child = (ElementTime) children.item(i); in getParTimeline()
133 for (int i = 0; i < activeChildrenAtEnd.getLength(); ++i) { in getParTimeline()
135 (ElementTime) activeChildrenAtEnd.item(i), in getParTimeline()
181 for (int i = 0; i < children.getLength(); ++i) { in getSeqTimeline()
182 ElementTime child = (ElementTime) children.item(i); in getSeqTimeline()
193 for (int i = 0; i < activeChildrenAtEnd.getLength(); ++i) { in getSeqTimeline()
195 (ElementTime) activeChildrenAtEnd.item(i), in getSeqTimeline()
216 for (int i = 0; i < beginList.getLength(); ++i) { in getTimeline()
217 Time begin = beginList.item(i); in getTimeline()
[all …]

12345678910>>...59