Home
last modified time | relevance | path

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

12345678910>>...131

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
DResizableIntArrayTests.java54 for (int i = 0; i < limit; i++) { in testAdd()
55 final int value = i; in testAdd()
57 assertEquals("length after add " + i, i + 1, src.getLength()); in testAdd()
58 if (i == DEFAULT_CAPACITY) { in testAdd()
61 if (i == DEFAULT_CAPACITY * 2) { in testAdd()
64 if (i < DEFAULT_CAPACITY) { in testAdd()
65 assertSame("array after add " + i, array, src.getPrimitiveArray()); in testAdd()
66 } else if (i < DEFAULT_CAPACITY * 2) { in testAdd()
67 assertSame("array after add " + i, array2, src.getPrimitiveArray()); in testAdd()
68 } else if (i < DEFAULT_CAPACITY * 3) { in testAdd()
[all …]
DInputPointersTests.java69 for (int i = 0; i < limit; i++) { in testAdd()
70 final int x = i; in testAdd()
71 final int y = i * 2; in testAdd()
72 final int pointerId = i * 3; in testAdd()
73 final int time = i * 4; in testAdd()
75 assertEquals("size after add " + i, i + 1, src.getPointerSize()); in testAdd()
77 for (int i = 0; i < limit; i++) { in testAdd()
78 final int x = i; in testAdd()
79 final int y = i * 2; in testAdd()
80 final int pointerId = i * 3; in testAdd()
[all …]
/packages/services/BuiltInPrintService/jni/ipphelper/
Dipphelper.c396 int i; in print_col() local
404 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
407 ippTagString(ippGetValueTag(attr)), ippGetInteger(attr, i)); in print_col()
411 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
412 if (ippGetBoolean(attr, i)) { in print_col()
428 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
430 lower = ippGetRange(attr, i, &upper); in print_col()
437 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
440 xres = ippGetResolution(attr, i, &yres, &units); in print_col()
455 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DSpline.java50 for (int i = 0; i < spline.mPoints.size(); i++) { in Spline()
51 ControlPoint p = spline.mPoints.elementAt(i); in Spline()
98 for (int i = 0; i < getNbPoints(); i++) { in sameValues()
99 ControlPoint p = mPoints.elementAt(i); in sameValues()
100 ControlPoint otherPoint = other.mPoints.elementAt(i); in sameValues()
151 for (int i = 0; i < mPoints.size(); i++) { in getAppliedCurve()
152 ControlPoint p = mPoints.get(i); in getAppliedCurve()
153 points[i] = new ControlPoint(p.x, p.y); in getAppliedCurve()
164 for (int i = 0; i < start; i++) { in getAppliedCurve()
165 curve[i] = 1.0f - points[0].y; in getAppliedCurve()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp55 for (int i = 0; i < inputSize; ++i) { in updateTouchPoints() local
57 i, inputXCoordinates[i], inputYCoordinates[i], times[i]); in updateTouchPoints()
63 for (int i = 0; i < inputSize; ++i) { in updateTouchPoints() local
64 if (i > 0) { in updateTouchPoints()
65 if (times[i] < times[i - 1]) { in updateTouchPoints()
66 AKLOGI("Invalid time sequence. %d, %d", times[i - 1], times[i]); in updateTouchPoints()
76 for (int i = lastInputIndex; i < inputSize; ++i) { in updateTouchPoints() local
77 const int pid = pointerIds ? pointerIds[i] : 0; in updateTouchPoints()
79 lastInputIndex = i; in updateTouchPoints()
96 for (int i = pushTouchPointStartIndex; i <= lastInputIndex; ++i) { in updateTouchPoints() local
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Drapidjsontest.cpp66 for (size_t i = 0; i < kTrialCount; i++) { in TEST_F() local
76 for (size_t i = 0; i < kTrialCount; i++) { in TEST_F() local
86 for (size_t i = 0; i < kTrialCount; i++) { in TEST_F() local
95 for (size_t i = 0; i < kTrialCount; i++) { in TEST_F() local
104 for (size_t i = 0; i < kTrialCount; i++) { in TEST_F() local
113 for (size_t i = 0; i < kTrialCount; i++) { in TEST_F() local
123 for (size_t i = 0; i < kTrialCount; i++) { in TEST_F() local
132 for (size_t i = 0; i < kTrialCount; i++) { in TEST_F() local
141 for (size_t i = 0; i < kTrialCount; i++) { in TEST_F() local
150 for (size_t i = 0; i < kTrialCount; i++) { in TEST_F() local
[all …]
Dmisctest.cpp77 for (size_t i = 0; i < kTrialCount; i++) { in TEST_F() local
133 unsigned long i = 0; in CountDecimalDigit_fast() local
134 _BitScanReverse(&i, n | 1); in CountDecimalDigit_fast()
135 uint32_t t = (i + 1) * 1233 >> 12; in CountDecimalDigit_fast()
170 unsigned long i = 0; in CountDecimalDigit64_fast() local
171 if (_BitScanReverse(&i, m >> 32)) in CountDecimalDigit64_fast()
172 i += 32; in CountDecimalDigit64_fast()
174 _BitScanReverse(&i, m & 0xFFFFFFFF); in CountDecimalDigit64_fast()
175 uint32_t t = (i + 1) * 1233 >> 12; in CountDecimalDigit64_fast()
177 unsigned long i = 0; in CountDecimalDigit64_fast() local
[all …]
Dplatformtest.cpp50 for (size_t i = 0; i < length_; ++i) in CheckSum() local
51 c += temp_[i]; in CheckSum()
66 for (int i = 0; i < kTrialCount; i++) in TEST_F() local
71 for (int i = 0; i < kTrialCount; i++) { in TEST_F() local
78 for (int i = 0; i < kTrialCount; i++) { in TEST_F() local
85 for (int i = 0; i < kTrialCount * kTrialCount; i++) in TEST_F() local
86 sum += pow(10.0, i & 255); in TEST_F()
91 for (int i = 0; i < kTrialCount; i++) { in TEST_F() local
98 for (int i = 0; i < kTrialCount; i++) { in TEST_F() local
105 for (int i = 0; i < kTrialCount; i++) { in TEST_F() local
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortingCursorWrapperTest.java118 for (int i = 0; i < ITEM_COUNT; ++i) { in setUp()
121 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); in setUp()
125 row.add(Document.COLUMN_DISPLAY_NAME, NAMES[i]); in setUp()
127 row.add(Document.COLUMN_MIME_TYPE, MIMES[i]); in setUp()
144 for (int i = 0; i < cursor.getCount(); ++i) { in testSort_names_ascending()
145 cursor.moveToPosition(i); in testSort_names_ascending()
152 for (int i = 0; i < names.size()-1; ++i) { in testSort_names_ascending()
153 assertTrue(Shared.compareToIgnoreCaseNullable(names.get(i), names.get(i+1)) <= 0); in testSort_names_ascending()
168 for (int i = 0; i < cursor.getCount(); ++i) { in testSort_names_descending()
169 cursor.moveToPosition(i); in testSort_names_descending()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DImagePreset.java70 for (int i = 0; i < source.mFilters.size(); i++) { in ImagePreset()
71 FilterRepresentation sourceRepresentation = source.mFilters.elementAt(i); in ImagePreset()
104 for (int i = 0; i < mFilters.size(); i++) { in getPositionForRepresentation()
105 if (sameSerializationName(mFilters.elementAt(i), representation)) { in getPositionForRepresentation()
106 return i; in getPositionForRepresentation()
113 for (int i = 0; i < mFilters.size(); i++) { in getFilterRepresentationForType()
114 if (mFilters.elementAt(i).getFilterType() == type) { in getFilterRepresentationForType()
115 return mFilters.elementAt(i); in getFilterRepresentationForType()
122 for (int i = 0; i < mFilters.size(); i++) { in getPositionForType()
123 if (mFilters.elementAt(i).getFilterType() == type) { in getPositionForType()
[all …]
DCacheProcessing.java60 for (int i = 0; i < representations.size(); i++) { in equals()
61 FilterRepresentation r1 = representations.get(i); in equals()
62 FilterRepresentation r2 = step.representations.get(i); in equals()
73 for (int i = 0; i < filters.size(); i++) { in buildSteps()
74 FilterRepresentation representation = filters.elementAt(i); in buildSteps()
158 for (int i = 0; i < steps.size(); i++) { in process()
159 CacheStep newStep = steps.elementAt(i); in process()
160 CacheStep cacheStep = mSteps.elementAt(i); in process()
165 similarUpToIndex = i; in process()
167 mSteps.remove(i); in process()
[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/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 …]
DAlbumSlidingWindow.java137 for (int i = mContentStart, n = mContentEnd; i < n; ++i) { in setContentWindow()
138 freeSlotContent(i); in setContentWindow()
141 for (int i = contentStart; i < contentEnd; ++i) { in setContentWindow()
142 prepareSlotContent(i); in setContentWindow()
145 for (int i = mContentStart; i < contentStart; ++i) { in setContentWindow()
146 freeSlotContent(i); in setContentWindow()
148 for (int i = contentEnd, n = mContentEnd; i < n; ++i) { in setContentWindow()
149 freeSlotContent(i); in setContentWindow()
152 for (int i = contentStart, n = mContentStart; i < n; ++i) { in setContentWindow()
153 prepareSlotContent(i); in setContentWindow()
[all …]
/packages/apps/Nfc/nci/jni/
DNfcTag.cpp411 for (int i = 0; i < mNumTechList; i++) { in discoverTechnologies() local
413 << StringPrintf("%s: index=%d; tech=%d; handle=%d; nfc type=%d", fn, i, in discoverTechnologies()
414 mTechList[i], mTechHandles[i], mTechLibNfcTypes[i]); in discoverTechnologies()
449 for (int i = 0; i < mNumDiscTechList; i++) { in discoverTechnologies() local
451 << StringPrintf("%s: index=%d; handle=%d; nfc type=%d", fn, i, in discoverTechnologies()
452 mTechHandlesDiscData[i], mTechLibNfcTypesDiscData[i]); in discoverTechnologies()
585 for (int i = 0; i < mNumTechList; i++) { in fillNativeNfcTagMembers1() local
586 mNativeData->tProtocols[i] = mTechLibNfcTypes[i]; in fillNativeNfcTagMembers1()
587 mNativeData->handles[i] = mTechHandles[i]; in fillNativeNfcTagMembers1()
588 technologies[i] = mTechList[i]; in fillNativeNfcTagMembers1()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DMatrixFit.java62 for (int i = 0; i < from.length; i++) { in fit()
64 q[i][j] = from[i][j]; in fit()
69 for (int i = 0; i < to.length; i++) { in fit()
71 p[i][j] = to[i][j]; in fit()
79 for (int i = 0; i < q.length; i++) { in fit()
82 qt = q[i][k]; in fit()
84 c[k][j] += qt * p[i][j]; in fit()
93 for (int i = 0; i < mDimension; i++) { in fit()
94 qt[i] = q[qi][i]; in fit()
97 for (int i = 0; i < mDimension + 1; i++) { in fit()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/widget/
DDynamicAdaptiveIconDrawable.java235 for (int i = 0, count = mLayerState.N_CHILDREN; i < count; i++) { in updateLayerBoundsInternal()
236 final ChildDrawable r = mLayerState.mChildren[i]; in updateLayerBoundsInternal()
280 for (int i = 0; i < mLayerState.N_CHILDREN; i++) { in draw()
281 if (mLayerState.mChildren[i] == null) { in draw()
284 final Drawable dr = mLayerState.mChildren[i].mDrawable; in draw()
332 for (int i = 0; i < state.N_CHILDREN; i++) { in applyTheme()
333 final ChildDrawable layer = array[i]; in applyTheme()
412 for (int i = 0; i < mLayerState.N_CHILDREN; i++) { in isProjected()
413 if (layers[i].mDrawable != null && layers[i].mDrawable.isProjected()) { in isProjected()
471 for (int i = 0; i < mLayerState.N_CHILDREN; i++) { in setHotspot()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocationClustering.java88 for (int i = 0; i < total; i++) { in run()
89 SmallItem s = buf[i]; in run()
109 for (int i = 0; i < bestK[0]; i++) { in run()
113 for (int i = 0; i < m; i++) { in run()
114 clusters.get(index[i]).add(withLatLong.get(i)); in run()
155 for (int i = 0; i < n; i++) { in generateName()
156 SmallItem item = items.get(i); in generateName()
190 for (int i = 0, n = items.size(); i < n; i++) { in getCluster()
191 result.add(items.get(i).path); in getCluster()
216 for (int i = 0; i < maxK; i++) { in kMeans()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dallocatorstest.cpp27 for (size_t i = 0; i < 100; i++) in TestAllocator() local
28 p[i] = (uint8_t)i; in TestAllocator()
33 for (size_t i = 0; i < 100; i++) in TestAllocator() local
34 EXPECT_EQ(i, q[i]); in TestAllocator()
35 for (size_t i = 100; i < 200; i++) in TestAllocator() local
36 q[i] = (uint8_t)i; in TestAllocator()
41 for (size_t i = 0; i < 150; i++) in TestAllocator() local
42 EXPECT_EQ(i, r[i]); in TestAllocator()
59 for (int i = 1; i < 1000; i++) { in TEST() local
60 EXPECT_TRUE(a.Malloc(i) != 0); in TEST()
[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.cpp25 int i; in db_SetupImageReferences_f() local
29 for(i=0;i<h;i++) in db_SetupImageReferences_f()
31 img[i]=im+w*i; in db_SetupImageReferences_f()
38 int i; in db_SetupImageReferences_u() local
44 for(i=0;i<h;i++) in db_SetupImageReferences_u()
46 img[i]=im+w*i; in db_SetupImageReferences_u()
91 int i; in db_CopyImage_u() local
93 for (i=0;i<h;i++) in db_CopyImage_u()
95 memcpy(d[i],s[i],w*sizeof(unsigned char)); in db_CopyImage_u()
108 for ( int i = 0; i < w; ++i ) in db_WarpImageLutFast_u() local
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/
Dedit_distance.h34 for (int i = 0; i <= beforeLength; ++i) { in getEditDistance() local
35 dp[(afterLength + 1) * i] = i * policy->getInsertionCost(i - 1, -1); in getEditDistance()
37 for (int i = 0; i <= afterLength; ++i) { in getEditDistance() local
38 dp[i] = i * policy->getDeletionCost(-1, i - 1); in getEditDistance()
41 for (int i = 0; i < beforeLength; ++i) { in getEditDistance() local
43 dp[(afterLength + 1) * (i + 1) + (j + 1)] = std::min( in getEditDistance()
44 dp[(afterLength + 1) * i + (j + 1)] + policy->getInsertionCost(i, j), in getEditDistance()
46 dp[(afterLength + 1) * (i + 1) + j] + policy->getDeletionCost(i, j), in getEditDistance()
47 dp[(afterLength + 1) * i + j] + policy->getSubstitutionCost(i, j))); in getEditDistance()
48 if (policy->allowTransposition(i, j)) { in getEditDistance()
[all …]
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DStringUtils.java100 for (int i = 0; i < length; i++) { in equals()
101 if (a.charAt(i) != b.charAt(i)) { in equals()
183 int i = 1; in removeDupes() local
185 while (i < suggestions.size()) { in removeDupes()
186 final String cur = suggestions.get(i); in removeDupes()
188 for (int j = 0; j < i; j++) { in removeDupes()
191 suggestions.remove(i); in removeDupes()
192 i--; in removeDupes()
196 i++; in removeDupes()
311 for (int i = 0; i < codePoints.length; i++) { in getStringFromNullTerminatedCodePointArray()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DNinePatchTexture.java104 for (int i = 0; i < mCount; i++) { in get()
105 if (mKey[i] == key) { in get()
109 if (mCount > CACHE_SIZE_START_MOVE && i > 0) { in get()
110 int tmpKey = mKey[i]; in get()
111 mKey[i] = mKey[i - 1]; in get()
112 mKey[i - 1] = tmpKey; in get()
114 V tmpValue = mValue[i]; in get()
115 mValue[i] = mValue[i - 1]; in get()
116 mValue[i - 1] = tmpValue; in get()
118 return mValue[i]; in get()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DHex.java33 for (int i = 0; i < 256; i++) {
34 FIRST_CHAR[i] = HEX_DIGITS[(i >> 4) & 0xF];
35 SECOND_CHAR[i] = HEX_DIGITS[i & 0xF];
41 for (int i = 0; i <= 'F'; i++) {
42 DIGITS[i] = -1;
44 for (byte i = 0; i < 10; i++) {
45 DIGITS['0' + i] = i;
47 for (byte i = 0; i < 6; i++) {
48 DIGITS['A' + i] = (byte)(10 + i);
49 DIGITS['a' + i] = (byte)(10 + i);
[all …]

12345678910>>...131