/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | ResizableIntArrayTests.java | 41 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 …]
|
D | InputPointersTests.java | 55 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/services/BuiltInPrintService/jni/ipphelper/ |
D | ipphelper.c | 396 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/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_state_utils.cpp | 55 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/imageshow/ |
D | Spline.java | 50 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/Music/src/com/android/music/ |
D | SortCursor.java | 59 for (int i = 0; i < length; i++) { in SortCursor() 60 if (mCursors[i] == null) continue; in SortCursor() 63 mCursors[i].registerDataSetObserver(mObserver); in SortCursor() 65 mCursors[i].moveToFirst(); in SortCursor() 68 mSortColumns[i] = mCursors[i].getColumnIndexOrThrow(sortcolumn); in SortCursor() 81 for (int i = mRowNumCache.length - 1; i >= 0; i--) { in SortCursor() 82 mRowNumCache[i] = -2; in SortCursor() 91 for (int i = 0; i < length; i++) { in getCount() 92 if (mCursors[i] != null) { in getCount() 93 count += mCursors[i].getCount(); in getCount() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PositionController.java | 204 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/Test/connectivity/sl4n/rapidjson/test/perftest/ |
D | rapidjsontest.cpp | 66 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 …]
|
D | misctest.cpp | 77 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 …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/ |
D | SortingCursorWrapperTest.java | 116 for (int i = 0; i < ITEM_COUNT; ++i) { in setUp() 119 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); in setUp() 123 row.add(Document.COLUMN_DISPLAY_NAME, NAMES[i]); in setUp() 125 row.add(Document.COLUMN_MIME_TYPE, MIMES[i]); in setUp() 142 for (int i = 0; i < cursor.getCount(); ++i) { in testSort_names_ascending() 143 cursor.moveToPosition(i); in testSort_names_ascending() 150 for (int i = 0; i < names.size()-1; ++i) { in testSort_names_ascending() 151 assertTrue(Shared.compareToIgnoreCaseNullable(names.get(i), names.get(i+1)) <= 0); in testSort_names_ascending() 166 for (int i = 0; i < cursor.getCount(); ++i) { in testSort_names_descending() 167 cursor.moveToPosition(i); in testSort_names_descending() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | ImagePreset.java | 70 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 …]
|
D | CacheProcessing.java | 60 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/Nfc/nci/jni/ |
D | NfcTag.cpp | 417 for (int i=0; i < mNumTechList; i++) in discoverTechnologies() local 420 i, mTechList[i], mTechHandles[i], mTechLibNfcTypes[i]); in discoverTechnologies() 541 for (int i=0; i < mNumTechList; i++) in discoverTechnologies() local 544 i, mTechList[i], mTechHandles[i], mTechLibNfcTypes[i]); in discoverTechnologies() 650 for (int i = 0; i < mNumTechList; i++) { in fillNativeNfcTagMembers1() local 651 mNativeData->tProtocols [i] = mTechLibNfcTypes [i]; in fillNativeNfcTagMembers1() 652 mNativeData->handles [i] = mTechHandles [i]; in fillNativeNfcTagMembers1() 653 technologies [i] = mTechList [i]; in fillNativeNfcTagMembers1() 654 handles [i] = mTechHandles [i]; in fillNativeNfcTagMembers1() 655 types [i] = mTechLibNfcTypes [i]; in fillNativeNfcTagMembers1() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_feature_detection.cpp | 36 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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | ComposingText.java | 71 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/filtershow/filters/ |
D | SplineMath.java | 20 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/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | StringUtil.java | 159 for (int i = 0; i < chars.length(); i++) { in indexOfChars() 160 char c = chars.charAt(i); in indexOfChars() 172 for (int i = Math.max(fromIndex, 0); i < string.length(); i++) { in indexOfChars() 173 char c = string.charAt(i); in indexOfChars() 176 return i; in indexOfChars() 179 return i; in indexOfChars() 247 for (int i = 0; i < n; i++) { in split() 249 list[i] = tokenizer.nextToken().trim(); in split() 251 list[i] = tokenizer.nextToken(); in split() 358 for (int i = 0; i < n; i++) { in splitInts() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/ |
D | AddressListParser.java | 733 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/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | MatrixFit.java | 62 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/Gallery2/src/com/android/gallery3d/data/ |
D | LocationClustering.java | 88 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/Launcher3/tests/src/com/android/launcher3/util/ |
D | FocusLogicTest.java | 68 int i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_RIGHT, map, 100, 1, 2, false); in testMoveFromBottomRightToBottomLeft() local 69 assertEquals(1, i); in testMoveFromBottomRightToBottomLeft() 80 int i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_RIGHT, map, 100, 1, 2, false); in testMoveFromBottomRightToTopLeft() local 81 assertEquals(FocusLogic.NEXT_PAGE_FIRST_ITEM, i); in testMoveFromBottomRightToTopLeft() 93 int i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_DOWN, map, 0, 1, 1, true); in testMoveIntoHotseatWithEqualHotseatAndWorkspaceColumns() local 94 assertEquals(1, i); in testMoveIntoHotseatWithEqualHotseatAndWorkspaceColumns() 104 i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_DOWN, map, 0, 1, 1, true); in testMoveIntoHotseatWithEqualHotseatAndWorkspaceColumns() 105 assertEquals(4, i); in testMoveIntoHotseatWithEqualHotseatAndWorkspaceColumns() 119 int i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_DOWN, map, 0, 1, 1, true); in testMoveIntoHotseatWithExtraColumnForAllApps() local 120 assertEquals(1, i); in testMoveIntoHotseatWithExtraColumnForAllApps() [all …]
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
D | StringUtils.java | 100 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/UnifiedEmail/assets/ |
D | script.js | 110 var i; 113 for (i = 0; i < elements.length; i++) { 114 elidedElement = elements[i]; 129 var i, len; 134 for (i = 0, len = bodyDivs.length; i < len; i++) { 135 msgBody = bodyDivs[i]; 176 var i; 188 for (i = 0; i < elements.length; i++) { 189 el = elements[i]; 214 var i, len; [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | allocatorstest.cpp | 27 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/Settings/src/com/android/settings/applications/ |
D | RunningState.java | 147 Log.i(TAG, "Comparing " + lhs + " with " + rhs); 148 Log.i(TAG, " Proc " + lhs.mProcess + " with " + rhs.mProcess); 149 Log.i(TAG, " UserId " + lhs.mUserId + " with " + rhs.mUserId); 164 if (DEBUG_COMPARE) Log.i(TAG, " Label " + lhs.mProcess.mLabel 174 if (DEBUG_COMPARE) Log.i(TAG, " Bg " + lhsBg + " with " + rhsBg); 182 if (DEBUG_COMPARE) Log.i(TAG, " Act " + lhsA + " with " + rhsA); 186 if (DEBUG_COMPARE) Log.i(TAG, " Lru " + lhsInfo.lru + " with " + rhsInfo.lru); 570 for (int i=0; i<NP; i++) { in buildDependencyChain() 571 ProcessItem proc = mDependentProcesses.valueAt(i); in buildDependencyChain() 592 for (int i=0; i<NP; i++) { in addDependentProcesses() [all …]
|