/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | ResizableIntArrayTests.java | 54 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 …]
|
D | InputPointersTests.java | 69 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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiLastResortWatchdogTest.java | 194 for (int i = 0; i < WifiLastResortWatchdog.MAX_BSSID_AGE - 1; i++) { in testAvailableNetworkBuffering_ageCullingWorks() 199 i + 1); in testAvailableNetworkBuffering_ageCullingWorks() local 201 i + 1); in testAvailableNetworkBuffering_ageCullingWorks() local 234 for (int i = 0; i < WifiLastResortWatchdog.MAX_BSSID_AGE; i++) { in testAvailableNetworkBuffering_emptyBufferWithEmptyScanResults() 238 for (int i = 0; i < WifiLastResortWatchdog.MAX_BSSID_AGE; i++) { in testAvailableNetworkBuffering_emptyBufferWithEmptyScanResults() 253 for (int i = 1; i <= mSsids.length; i++) { in testAvailableNetworkBuffering_addNewNetworksOverTime() 254 candidates = createFilteredQnsCandidates(Arrays.copyOfRange(mSsids, 0, i), in testAvailableNetworkBuffering_addNewNetworksOverTime() 255 Arrays.copyOfRange(mBssids, 0, i), in testAvailableNetworkBuffering_addNewNetworksOverTime() 256 Arrays.copyOfRange(mFrequencies, 0, i), in testAvailableNetworkBuffering_addNewNetworksOverTime() 257 Arrays.copyOfRange(mCaps, 0, i), in testAvailableNetworkBuffering_addNewNetworksOverTime() [all …]
|
D | DppMetricsTest.java | 155 for (int i = 0; i < value; i++) { in testUpdateDppConfiguratorInitiatorRequests() 174 for (int i = 0; i < value; i++) { in testUpdateDppEnrolleeInitiatorRequests() 194 for (int i = 0; i < value; i++) { in testUpdateDppEnrolleeResponderRequests() 213 for (int i = 0; i < value; i++) { in testUpdateDppConfiguratorSuccess() 216 for (int i = 0; i < value; i++) { in testUpdateDppConfiguratorSuccess() 239 for (int i = 0; i < value; i++) { in testUpdateDppEnrolleeSuccess() 258 for (int i = 0; i < value; i++) { in testUpdateDppEnrolleeResponderSuccess() 277 for (int i = 0; i < value; i++) { in testUpdateDppFailureInvalidUri() 295 for (int i = 0; i < value; i++) { in testUpdateDppFailureAuthentication() 314 for (int i = 0; i < value; i++) { in testUpdateDppFailureNotCompatible() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | Matrix.java | 64 for (int i = 0; i < mem.length; i++) { in Matrix() 65 mem[i] = that.mem[i]; in Matrix() 77 public double get(int i, int j) { in get() argument 78 if (!(0 <= i && i < n && 0 <= j && j < m)) throw new IndexOutOfBoundsException(); in get() 79 return mem[i * m + j]; in get() 90 public void put(int i, int j, double v) { in put() argument 91 if (!(0 <= i && i < n && 0 <= j && j < m)) throw new IndexOutOfBoundsException(); in put() 92 mem[i * m + j] = v; in put() 119 for (int i = 0; i < mem.length; i++) { in plus() 120 result.mem[i] = this.mem[i] + that.mem[i]; in plus() [all …]
|
/packages/modules/StatsD/statsd/src/matchers/ |
D | matcher_util.cpp | 116 for (int i = start; i < end; i++) { in matchesSimple() local 117 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple() 120 newStart = i; in matchesSimple() 122 newEnd = i + 1; in matchesSimple() 146 for (int i = start; i < end; i++) { in matchesSimple() local 147 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple() 151 end = i; in matchesSimple() 160 for (int i = start; i < end; i++) { in matchesSimple() local 161 if (values[i].mField.isLastPos(depth)) { in matchesSimple() 162 start = i; in matchesSimple() [all …]
|
/packages/services/BuiltInPrintService/jni/ipphelper/ |
D | ipphelper.c | 441 int i; in print_col() local 449 for (i = 0; i < ippGetCount(attr); i++) { in print_col() 452 ippTagString(ippGetValueTag(attr)), ippGetInteger(attr, i)); in print_col() 456 for (i = 0; i < ippGetCount(attr); i++) { in print_col() 457 if (ippGetBoolean(attr, i)) { in print_col() 473 for (i = 0; i < ippGetCount(attr); i++) { in print_col() 475 lower = ippGetRange(attr, i, &upper); in print_col() 482 for (i = 0; i < ippGetCount(attr); i++) { in print_col() 485 xres = ippGetResolution(attr, i, &yres, &units); in print_col() 500 for (i = 0; i < ippGetCount(attr); i++) { in print_col() [all …]
|
/packages/modules/NeuralNetworks/driver/cache/BlobCache/ |
D | BlobCache_test.cpp | 173 for (int i = 0; i < MAX_KEY_SIZE + 1; i++) { in TEST_P() local 174 key[i] = 'a'; in TEST_P() 203 for (int i = 0; i < MAX_VALUE_SIZE + 1; i++) { in TEST_P() local 204 buf[i] = 'b'; in TEST_P() 207 for (int i = 0; i < MAX_VALUE_SIZE + 1; i++) { in TEST_P() local 208 buf[i] = 0xee; in TEST_P() 211 for (int i = 0; i < MAX_VALUE_SIZE + 1; i++) { in TEST_P() local 212 SCOPED_TRACE(i); in TEST_P() 213 ASSERT_EQ(0xee, buf[i]); in TEST_P() 226 for (int i = 0; i < MAX_KEY_SIZE; i++) { in TEST_P() 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/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/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/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/DocumentsUI/tests/unit/com/android/documentsui/sorting/ |
D | SortingCursorWrapperTest.java | 118 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/modules/adb/ |
D | adb.bash | 27 local where i cur serial 32 for ((i=1; i <= COMP_CWORD; i++)); do 56 if [[ $where == COMMAND && $i -ge $COMP_CWORD ]]; then 72 if [[ $i -eq $COMP_CWORD ]]; then 75 i=$((i+1)) 78 _adb_cmd_install "$serial" $i 81 _adb_cmd_sideload "$serial" $i 84 _adb_cmd_pull "$serial" $i 87 _adb_cmd_push "$serial" $i 90 if [[ $COMP_CWORD == $i ]]; then [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 …]
|
/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/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/modules/NeuralNetworks/runtime/test/fuzzing/operation_signatures/ |
D | Selection.cpp | 32 for (uint32_t i = 1; i < rank; i++) { in embeddingLookupConstructor() local 33 op->outputs[0]->dimensions[i] = op->inputs[1]->dimensions[i]; in embeddingLookupConstructor() 41 for (uint32_t i = 0; i < numElements; i++) { in embeddingLookupFinalizer() local 43 op->inputs[0]->value<int32_t>(i) = getUniform<int32_t>(0, dimValue - 1); in embeddingLookupFinalizer() 71 for (uint32_t i = 1; i < rank; i++) { in hashtableLookupConstructor() local 72 op->inputs[2]->dimensions[i] = RandomVariableType::FREE; in hashtableLookupConstructor() 73 op->outputs[0]->dimensions[i] = op->inputs[2]->dimensions[i]; in hashtableLookupConstructor() 83 for (uint32_t i = 0; i < n; i++) { in hashtableLookupFinalizer() local 84 op->inputs[1]->value<int32_t>(i) = val; in hashtableLookupFinalizer() 89 for (uint32_t i = 0; i < k; i++) { in hashtableLookupFinalizer() local [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/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/Nfc/nci/jni/ |
D | NfcTag.cpp | 411 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/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/ |
D | edit_distance.h | 34 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/ThemePicker/src/com/android/customization/widget/ |
D | DynamicAdaptiveIconDrawable.java | 232 for (int i = 0, count = mLayerState.N_CHILDREN; i < count; i++) { in updateLayerBoundsInternal() 233 final ChildDrawable r = mLayerState.mChildren[i]; in updateLayerBoundsInternal() 277 for (int i = 0; i < mLayerState.N_CHILDREN; i++) { in draw() 278 if (mLayerState.mChildren[i] == null) { in draw() 281 final Drawable dr = mLayerState.mChildren[i].mDrawable; in draw() 329 for (int i = 0; i < state.N_CHILDREN; i++) { in applyTheme() 330 final ChildDrawable layer = array[i]; in applyTheme() 409 for (int i = 0; i < mLayerState.N_CHILDREN; i++) { in isProjected() 410 if (layers[i].mDrawable != null && layers[i].mDrawable.isProjected()) { in isProjected() 468 for (int i = 0; i < mLayerState.N_CHILDREN; i++) { in setHotspot() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareMetrics.java | 217 for (int i = 0; i < clients.size(); ++i) { in recordAttachSession() 218 if (clients.valueAt(i).getUid() == uid) { in recordAttachSession() 286 for (int i = 0; i < clients.size(); ++i) { in recordDiscoverySessionInternal() 287 WifiAwareClientState client = clients.valueAt(i); in recordDiscoverySessionInternal() 680 for (int i = 0; i < mHistogramAwareAvailableDurationMs.size(); ++i) { in dump() 681 pw.println(" " + mHistogramAwareAvailableDurationMs.keyAt(i) + ": " in dump() 682 + mHistogramAwareAvailableDurationMs.valueAt(i)); in dump() 690 for (int i = 0; i < mHistogramAwareEnabledDurationMs.size(); ++i) { in dump() 691 pw.println(" " + mHistogramAwareEnabledDurationMs.keyAt(i) + ": " in dump() 692 + mHistogramAwareEnabledDurationMs.valueAt(i)); in dump() [all …]
|