Home
last modified time | relevance | path

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

12345678910>>...217

/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/apps/Launcher3/tests/assets/ReorderAlgorithmUnitTest/
Dreorder_algorithm_test_cases9 # * i: Represents an icon on the workspace, none in particular just an icon
49 i-----hhj
53 i-----iii
61 i-zzzzffe
65 i-zzzziii
75 iebi--i
83 icdi--i
112 i---c---
114 a---i---
118 ----i---
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DMatrix.java64 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/Bluetooth/system/bta/le_audio/
Dclient_parser_test.cc1184 uint8_t i = 0; in TEST() local
1186 ASSERT_EQ(value[i++], 0x01); // Config Codec Opcode in TEST()
1187 ASSERT_EQ(value[i++], 0x01); // Number of ASEs in TEST()
1188 ASSERT_EQ(value[i++], 0x05); // ASE[0] ASE ID in TEST()
1189 ASSERT_EQ(value[i++], 0x03); // ASE[0] Target Latency in TEST()
1190 ASSERT_EQ(value[i++], 0x02); // ASE[0] Target Phy in TEST()
1191 ASSERT_EQ(value[i++], 0x06); // ASE[0].CodecID Coding Format in TEST()
1192 ASSERT_EQ(value[i++], 0x03); // ASE[0].CodecID Company ID LSB in TEST()
1193 ASSERT_EQ(value[i++], 0x02); // ASE[0].CodecID Company ID MSB in TEST()
1194 ASSERT_EQ(value[i++], 0x05); // ASE[0].CodecID Codec ID LSB in TEST()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiLastResortWatchdogTest.java195 for (int i = 0; i < WifiLastResortWatchdog.MAX_BSSID_AGE - 1; i++) { in testAvailableNetworkBuffering_ageCullingWorks()
200 i + 1); in testAvailableNetworkBuffering_ageCullingWorks() local
202 i + 1); in testAvailableNetworkBuffering_ageCullingWorks() local
235 for (int i = 0; i < WifiLastResortWatchdog.MAX_BSSID_AGE; i++) { in testAvailableNetworkBuffering_emptyBufferWithEmptyScanResults()
239 for (int i = 0; i < WifiLastResortWatchdog.MAX_BSSID_AGE; i++) { in testAvailableNetworkBuffering_emptyBufferWithEmptyScanResults()
254 for (int i = 1; i <= mSsids.length; i++) { in testAvailableNetworkBuffering_addNewNetworksOverTime()
255 candidates = createFilteredQnsCandidates(Arrays.copyOfRange(mSsids, 0, i), in testAvailableNetworkBuffering_addNewNetworksOverTime()
256 Arrays.copyOfRange(mBssids, 0, i), in testAvailableNetworkBuffering_addNewNetworksOverTime()
257 Arrays.copyOfRange(mFrequencies, 0, i), in testAvailableNetworkBuffering_addNewNetworksOverTime()
258 Arrays.copyOfRange(mCaps, 0, i), in testAvailableNetworkBuffering_addNewNetworksOverTime()
[all …]
DDppMetricsTest.java155 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/Bluetooth/system/bta/gatt/
Dbta_gatts_utils.cc44 uint8_t i; in bta_gatts_alloc_srvc_cb() local
46 for (i = 0; i < BTA_GATTS_MAX_SRVC_NUM; i++) { in bta_gatts_alloc_srvc_cb()
47 if (!p_cb->srvc_cb[i].in_use) { in bta_gatts_alloc_srvc_cb()
48 p_cb->srvc_cb[i].in_use = true; in bta_gatts_alloc_srvc_cb()
49 p_cb->srvc_cb[i].rcb_idx = rcb_idx; in bta_gatts_alloc_srvc_cb()
50 return i; in bta_gatts_alloc_srvc_cb()
66 uint8_t i; in bta_gatts_find_app_rcb_by_app_if() local
69 for (i = 0, p_reg = bta_gatts_cb.rcb; i < BTA_GATTS_MAX_APP_NUM; in bta_gatts_find_app_rcb_by_app_if()
70 i++, p_reg++) { in bta_gatts_find_app_rcb_by_app_if()
89 uint8_t i; in bta_gatts_find_app_rcb_idx_by_app_if() local
[all …]
/packages/modules/StatsD/statsd/src/matchers/
Dmatcher_util.cpp145 for (int i = start; i < end; i++) { in getTransformedEvent() local
147 const FieldValue& fieldValue = eventRef.getValues()[i]; in getTransformedEvent()
160 (*transformedEvent->getMutableValues())[i].mValue.str_value = str; in getTransformedEvent()
172 for (int i = start; i < end; i++) { in getStartEndAtDepth() local
173 int pos = values[i].mField.getPosAtDepth(depth); in getStartEndAtDepth()
176 newStart = i; in getStartEndAtDepth()
178 newEnd = i + 1; in getStartEndAtDepth()
216 for (int i = start; i < end; i++) { in computeRanges() local
217 int pos = values[i].mField.getPosAtDepth(depth); in computeRanges()
221 end = i; in computeRanges()
[all …]
/packages/modules/Bluetooth/system/packet/tests/base/
Diterator_test.cc96 for (size_t i = 0; i < GetTestPacketLength(); i++) { in TEST_P() local
97 ASSERT_EQ(test_l2cap_data[i + GetLowerBound()], *it++); in TEST_P()
151 for (size_t i = 0; i < GetTestPacketLength(); i += 2) { in TEST_P() local
152 ASSERT_EQ(test_l2cap_data[i + GetLowerBound()], *plus_eq) in TEST_P()
154 << i; in TEST_P()
164 for (size_t i = 0; i < GetTestPacketLength() - 1; i++) { in TEST_P() local
165 ASSERT_EQ(test_l2cap_data[i + GetLowerBound() + 1], *(++plus_plus)) in TEST_P()
167 << "at index " << i; in TEST_P()
174 for (size_t i = 0; i < GetTestPacketLength(); i++) { in TEST_P() local
175 ASSERT_EQ(test_l2cap_data[i + GetLowerBound()], *(plus_plus++)) in TEST_P()
[all …]
/packages/services/Car/tools/telemetry/lua-interpreter/
Djson.lua59 for i, v in ipairs(val) do
125 for i = 1, select("#", ...) do
126 res[ select(i, ...) ] = true
144 for i = idx, #str do
145 if set[str:sub(i, i)] ~= negate then
146 return i
156 for i = 1, idx - 1 do
158 if str:sub(i, i) == "\n" then
196 local function parse_string(str, i)
198 local j = i + 1
[all …]
/packages/apps/Car/Launcher/libs/appgrid/lib/tests/src/com/android/car/carlauncher/
DPageIndexingHelperTest.java163 for (int i = 0; i < gridPositions.length; i++) { in runTwoWayMappingTest()
164 assertEquals(testUtils.gridPositionToAdaptorIndex(gridPositions[i]), adapterIndexes[i]); in runTwoWayMappingTest()
167 for (int i = 0; i < adapterIndexes.length; i++) { in runTwoWayMappingTest()
168 assertEquals(testUtils.adaptorIndexToGridPosition(adapterIndexes[i]), gridPositions[i]); in runTwoWayMappingTest()
182 for (int i = 0; i < gridPositions.length; i++) { in test2x4x1_roundToFirstAndLastIndex()
184 assertEquals(helperLtr.roundToFirstIndexOnPage(gridPositions[i]), 0); in test2x4x1_roundToFirstAndLastIndex()
185 assertEquals(helperRtl.roundToFirstIndexOnPage(gridPositions[i]), 0); in test2x4x1_roundToFirstAndLastIndex()
187 assertEquals(helperLtr.roundToLastIndexOnPage(gridPositions[i]), 7); in test2x4x1_roundToFirstAndLastIndex()
188 assertEquals(helperRtl.roundToLastIndexOnPage(gridPositions[i]), 7); in test2x4x1_roundToFirstAndLastIndex()
207 for (int i = 0; i < 15; i++) { in test3x5x2_roundToFirstAndLastIndex()
[all …]
/packages/modules/Bluetooth/system/embdrv/encoder_for_aptxhd/src/
DaptXHDbtenc.c55 int32_t i = 0; in clearmem_HD() local
56 for (; i < sz; i++) { in clearmem_HD()
84 uint32_t i; in aptxhdbtenc_init() local
87 for (i = LL; i <= HH; i++) { in aptxhdbtenc_init()
90 encode_dat->m_qdata[i].thresholdTablePtr = in aptxhdbtenc_init()
91 subbandParameters[i].threshTable; in aptxhdbtenc_init()
92 encode_dat->m_qdata[i].thresholdTablePtr_sl1 = in aptxhdbtenc_init()
93 subbandParameters[i].threshTable_sl1; in aptxhdbtenc_init()
94 encode_dat->m_qdata[i].ditherTablePtr = subbandParameters[i].dithTable; in aptxhdbtenc_init()
95 encode_dat->m_qdata[i].minusLambdaDTable = in aptxhdbtenc_init()
[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/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache_test.cpp173 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/
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/modules/Bluetooth/system/gd/packet/parser/test/
Dgenerated_packet_test.cc77 for (size_t i = 0; i < child_two_two_three.size(); i++) { in TEST() local
78 ASSERT_EQ(packet_bytes->at(i), child_two_two_three[i]); in TEST()
109 for (size_t i = 0; i < child.size(); i++) { in TEST() local
110 ASSERT_EQ(packet_bytes->at(i), child[i]); in TEST()
119 for (size_t i = 0; i < payload.size(); i++) { in TEST() local
120 ASSERT_EQ(child[i + 2 /* fixed & size */], payload[i]); in TEST()
181 for (size_t i = 0; i < child_two_two_three.size(); i++) { in TEST() local
182 ASSERT_EQ(packet_bytes->at(i), child_two_two_three[i]); in TEST()
202 for (size_t i = 0; i < child.size(); i++) { in TEST() local
203 ASSERT_EQ(packet_bytes->at(i), child[i]); in TEST()
[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/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/modules/StatsD/statsd/tests/
DSocketListener_test.cpp61 for (int i = 0; i < eventCount; i++) { in generateAtomLogging() local
62 AStatsEventWrapper event(startAtomId + i); in generateAtomLogging()
94 for (int i = 0; i < kEventCount; i++) { in TEST_P() local
97 EXPECT_EQ(kAtomId + i, logEvent->GetTagId()); in TEST_P()
113 for (int i = 0; i < kEventCount; i++) { in TEST_P() local
116 EXPECT_EQ(kAtomId + i, logEvent->GetTagId()); in TEST_P()
127 for (int i = 0; i < kEventCount; i++) { in TEST() local
128 idsList.insert(kAtomId + i); in TEST()
136 for (int i = 0; i < kEventCount; i++) { in TEST() local
139 EXPECT_EQ(kAtomId + i, logEvent->GetTagId()); in TEST()
[all …]
/packages/modules/Bluetooth/system/embdrv/encoder_for_aptx/src/
DaptXbtenc.c61 int32_t i = 0; in clearmem() local
62 for (; i < sz; i++) { in clearmem()
97 uint32_t i; in aptxbtenc_init() local
100 for (i = LL; i <= HH; i++) { in aptxbtenc_init()
103 encode_dat->m_qdata[i].thresholdTablePtr = in aptxbtenc_init()
104 subbandParameters[i].threshTable; in aptxbtenc_init()
105 encode_dat->m_qdata[i].thresholdTablePtr_sl1 = in aptxbtenc_init()
106 subbandParameters[i].threshTable_sl1; in aptxbtenc_init()
107 encode_dat->m_qdata[i].ditherTablePtr = subbandParameters[i].dithTable; in aptxbtenc_init()
108 encode_dat->m_qdata[i].minusLambdaDTable = in aptxbtenc_init()
[all …]
/packages/modules/NeuralNetworks/common/cpu_operations/
DDensify.cpp52 for (int i = origRank - 1; i >= 0; i--) { in getFlattenedIndex() local
53 index += uint64_t(indices[i] * subElems); in getFlattenedIndex()
54 subElems *= shape[i]; in getFlattenedIndex()
97 size_t i = 0; in populate() local
99 for (; i < origIdx.size(); i++) { in populate()
100 int origDim = traversalOrder[i]; in populate()
101 origIdx[origDim] = (*indices)[i]; in populate()
104 for (; i < (*indices).size(); i++) { in populate()
105 const int blockIdx = traversalOrder[i] - origRank; in populate()
107 origIdx[origDim] = origIdx[origDim] * blockSize[blockIdx] + (*indices)[i]; in populate()
[all …]
/packages/modules/adb/
Dadb.bash27 local where i cur serial state transport
32 for ((i=1; i <= COMP_CWORD; i++)); do
59 if [[ $where == COMMAND && $i -ge $COMP_CWORD ]]; then
83 if [[ $i -eq $COMP_CWORD ]]; then
86 i=$((i+1))
92 _adb_cmd_install "$serial" $i
95 _adb_cmd_sideload "$serial" $i
98 _adb_cmd_pull "$serial" $i
101 _adb_cmd_push "$serial" $i
104 if [[ $COMP_CWORD == $i ]]; then
[all …]
/packages/modules/NeuralNetworks/common/
DIndexedShapeWrapper.cpp31 for (int i = strides.size() - 2; i >= 0; --i) { in IndexedShapeWrapper() local
32 strides[i] = shape->dimensions[i + 1] * strides[i + 1]; in IndexedShapeWrapper()
40 for (size_t i = 0; i < index->size(); ++i) { in nextIndexInplace() local
41 if (index->at(i) < shape->dimensions[i] - 1) { in nextIndexInplace()
50 for (int i = index->size() - 1; i >= 0; --i) { in nextIndexInplace() local
51 ++index->at(i); in nextIndexInplace()
52 if (index->at(i) == shape->dimensions[i]) { in nextIndexInplace()
53 index->at(i) = 0; in nextIndexInplace()
66 for (size_t i = 0; i < index.size(); ++i) { in indexToFlatIndex() local
67 *flatIndex += strides[i] * index[i]; in indexToFlatIndex()
[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 …]

12345678910>>...217