Home
last modified time | relevance | path

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

12345678910>>...89

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
DResizableIntArrayTests.java41 for (int i = 0; i < limit; i++) { in testAdd()
42 final int value = i; in testAdd()
44 assertEquals("length after add " + i, i + 1, src.getLength()); in testAdd()
45 if (i == DEFAULT_CAPACITY) { in testAdd()
48 if (i == DEFAULT_CAPACITY * 2) { in testAdd()
51 if (i < DEFAULT_CAPACITY) { in testAdd()
52 assertSame("array after add " + i, array, src.getPrimitiveArray()); in testAdd()
53 } else if (i < DEFAULT_CAPACITY * 2) { in testAdd()
54 assertSame("array after add " + i, array2, src.getPrimitiveArray()); in testAdd()
55 } else if (i < DEFAULT_CAPACITY * 3) { in testAdd()
[all …]
DInputPointersTests.java55 for (int i = 0; i < limit; i++) { in testAdd()
56 final int x = i; in testAdd()
57 final int y = i * 2; in testAdd()
58 final int pointerId = i * 3; in testAdd()
59 final int time = i * 4; in testAdd()
61 assertEquals("size after add " + i, i + 1, src.getPointerSize()); in testAdd()
63 for (int i = 0; i < limit; i++) { in testAdd()
64 final int x = i; in testAdd()
65 final int y = i * 2; in testAdd()
66 final int pointerId = i * 3; in testAdd()
[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 …]
/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/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/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/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/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/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/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/apps/Launcher3/tests/src/com/android/launcher3/util/
DFocusLogicTest.java70 int i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_RIGHT, map, 100, 1, 2, false); in testMoveFromBottomRightToBottomLeft() local
71 assertEquals(1, i); in testMoveFromBottomRightToBottomLeft()
82 int i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_RIGHT, map, 100, 1, 2, false); in testMoveFromBottomRightToTopLeft() local
83 assertEquals(FocusLogic.NEXT_PAGE_FIRST_ITEM, i); in testMoveFromBottomRightToTopLeft()
95 int i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_DOWN, map, 0, 1, 1, true); in testMoveIntoHotseatWithEqualHotseatAndWorkspaceColumns() local
96 assertEquals(1, i); in testMoveIntoHotseatWithEqualHotseatAndWorkspaceColumns()
106 i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_DOWN, map, 0, 1, 1, true); in testMoveIntoHotseatWithEqualHotseatAndWorkspaceColumns()
107 assertEquals(4, i); in testMoveIntoHotseatWithEqualHotseatAndWorkspaceColumns()
121 int i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_DOWN, map, 0, 1, 1, true); in testMoveIntoHotseatWithExtraColumnForAllApps() local
122 assertEquals(1, i); in testMoveIntoHotseatWithExtraColumnForAllApps()
[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/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/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/LegacyCamera/jni/feature_stab/db_vlvm/
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/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 …]
/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/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
DContentTypeParser.java138 for (int i = 0; i < 3; i++) jj_la1[i] = -1; in ContentTypeParser()
150 for (int i = 0; i < 3; i++) jj_la1[i] = -1; in ReInit()
159 for (int i = 0; i < 3; i++) jj_la1[i] = -1; in ContentTypeParser()
168 for (int i = 0; i < 3; i++) jj_la1[i] = -1; in ReInit()
176 for (int i = 0; i < 3; i++) jj_la1[i] = -1; in ContentTypeParser()
184 for (int i = 0; i < 3; i++) jj_la1[i] = -1; in ReInit()
211 for (int i = 0; i < index; i++) { in getToken()
232 for (int i = 0; i < 24; i++) { in generateParseException()
233 la1tokens[i] = false; in generateParseException()
239 for (int i = 0; i < 3; i++) { in generateParseException()
[all …]
/packages/services/Telephony/src/org/apache/james/mime4j/field/contenttype/parser/
DContentTypeParser.java138 for (int i = 0; i < 3; i++) jj_la1[i] = -1; in ContentTypeParser()
150 for (int i = 0; i < 3; i++) jj_la1[i] = -1; in ReInit()
159 for (int i = 0; i < 3; i++) jj_la1[i] = -1; in ContentTypeParser()
168 for (int i = 0; i < 3; i++) jj_la1[i] = -1; in ReInit()
176 for (int i = 0; i < 3; i++) jj_la1[i] = -1; in ContentTypeParser()
184 for (int i = 0; i < 3; i++) jj_la1[i] = -1; in ReInit()
211 for (int i = 0; i < index; i++) { in getToken()
232 for (int i = 0; i < 24; i++) { in generateParseException()
233 la1tokens[i] = false; in generateParseException()
239 for (int i = 0; i < 3; i++) { in generateParseException()
[all …]
/packages/apps/UnifiedEmail/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/services/Telephony/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/services/Car/libvehiclenetwork/native/
DVehicleNetworkProtoUtil.cpp61 for (int i = 0; i < expectedSize; i++) { in toVehiclePropValue() local
62 out.add_float_values(in.value.float_array[i]); in toVehiclePropValue()
77 for (int i = 0; i < expectedSize; i++) { in toVehiclePropValue() local
78 out.add_int32_values(in.value.int32_array[i]); in toVehiclePropValue()
86 for (int i = 0; i < expectedSize; i++) { in toVehiclePropValue() local
87 out.add_int32_values(in.value.int32_array[i]); in toVehiclePropValue()
95 for (int i = 0; i < expectedSize; i++) { in toVehiclePropValue() local
96 out.add_float_values(in.value.float_array[i]); in toVehiclePropValue()
165 for (int i = 0; i < expectedSize; i++) { in fromVehiclePropValue() local
166 out.value.float_array[i] = in.float_values(i); in fromVehiclePropValue()
[all …]

12345678910>>...89