Home
last modified time | relevance | path

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

12345678910>>...25

/tools/trebuchet/core/common/src/main/kotlin/trebuchet/collections/
DSparseArray.kt51 val i = binarySearch(mKeys, mSize, key) in get() constant
53 if (i < 0 || mValues[i] === DELETED) { in get()
56 return mValues[i] as E in get()
64 val i = binarySearch(mKeys, mSize, key) in delete() constant
66 if (i >= 0) { in delete()
67 if (mValues[i] !== DELETED) { in delete()
68 mValues[i] = DELETED in delete()
100 for (i in index..end - 1) { in removeAtRange() constant
101 removeAt(i) in removeAtRange()
111 for (i in 0..n - 1) { in gc() constant
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dgattc_lib.py163 for i in range(int(size)):
164 write_value.append(i % 256)
192 for i in range(int(size)):
193 write_value.append(i % 256)
208 for i in range(int(size)):
209 write_value.append(i % 256)
240 for i in range(int(size)):
241 write_value.append(i % 256)
256 for i in range(int(size)):
257 write_value.append(i % 256)
[all …]
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DShortName.java56 final int i = nameExt.indexOf('.'); in ShortName() local
59 if (i < 0) { in ShortName()
63 nameString = nameExt.substring(0, i).toUpperCase(); in ShortName()
64 extString = nameExt.substring(i + 1).toUpperCase(); in ShortName()
106 for (int i = 0; i < 11; i++) in checkSum()
107 dest[i] = (byte) name[i]; in checkSum()
110 for (int i = 1; i < 11; i++) { in checkSum()
111 sum = dest[i] + (((sum & 1) << 7) + ((sum & 0xfe) >> 1)); in checkSum()
155 for (int i = 0; i < nameArr.length; i++) { in parse()
156 nameArr[i] = (char) LittleEndian.getUInt8(data, i); in parse()
[all …]
DFat.java181 for (int i = 0; i < entries.length; i++) in read()
182 entries[i] = fatType.readEntry(data, i); in read()
246 int i = 0; in getChain() local
249 chain[++i] = cluster; in getChain()
278 int i; in allocNew() local
281 for (i = lastAllocatedCluster; i < lastClusterIndex; i++) { in allocNew()
282 if (isFreeCluster(i)) { in allocNew()
283 entryIndex = i; in allocNew()
289 for (i = FIRST_CLUSTER; i < lastAllocatedCluster; i++) { in allocNew()
290 if (isFreeCluster(i)) { in allocNew()
[all …]
/tools/dexter/slicer/
Dreader.cc84 for (size_t i = 0; i < classCount; ++i) { in CreateFullIr() local
85 CreateClassIr(i); in CreateFullIr()
99 for (dex::u4 i = 0; i < classes.size(); ++i) { in FindClassIndex() local
100 auto typeId = types[classes[i].class_idx]; in FindClassIndex()
103 return i; in FindClassIndex()
249 for (dex::u4 i = 0; i < static_fields_count; ++i) { in ParseClass() local
255 for (dex::u4 i = 0; i < instance_fields_count; ++i) { in ParseClass() local
261 for (dex::u4 i = 0; i < direct_methods_count; ++i) { in ParseClass() local
267 for (dex::u4 i = 0; i < virtual_methods_count; ++i) { in ParseClass() local
299 for (dex::u4 i = 0; i < dex_annotations->fields_size; ++i) { in ExtractAnnotations() local
[all …]
Dwriter.cc88 for (size_t i = 0; i < size; ++i) { in WriteFloatValue() local
89 buff[i] = src[i]; in WriteFloatValue()
367 for (size_t i = 0; i < strings.size(); ++i) { in CreateStringDataSection() local
368 const auto& ir_string = strings[i]; in CreateStringDataSection()
369 auto dexStringId = &dex_->string_ids[i]; in CreateStringDataSection()
524 for (size_t i = 0; i < classes.size(); ++i) { in CreateClassDataSection() local
525 auto ir_class = classes[i].get(); in CreateClassDataSection()
526 auto dex_class_def = &dex_->class_defs[i]; in CreateClassDataSection()
539 for (size_t i = 0; i < classes.size(); ++i) { in CreateAnnDirectoriesSection() local
540 auto ir_class = classes[i].get(); in CreateAnnDirectoriesSection()
[all …]
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLoopbackImageAnalyzer.java94 CLog.i("image width=" + width + ", height=" + height); in analyzeImage()
106 CLog.i("Apply TABLET config values"); in analyzeImage()
160 CLog.i("AudioLoopbackImageAnalyzer: Amplitude=" + amplitude + ", Duration=" + duration); in analyzeImage()
236 for (int i = durationLeft; i < durationRight; i++) { in analyzeDuration()
237 final int v = horizontal[i]; in analyzeDuration()
244 CLog.i("index=" + i + ", v=" + v); in analyzeDuration()
269 CLog.i( in analyzeDuration()
288 for (int i = 0; i < amplitudes.size(); i++) { in analyzeDuration()
289 if (i == 0) { in analyzeDuration()
290 oldColumnHeight = amplitudes.get(i).maxHeight; in analyzeDuration()
[all …]
DVideoMultimeterTest.java183 CLog.i("Starting calibration: " + cr.getStdout()); in doCalibration()
201 CLog.i("Calibration succeeds."); in doCalibration()
213 CLog.i("syncing device time to host time"); in setupTestEnv()
222 CLog.i("Stopping measurement: " + cr.getStdout()); in setupTestEnv()
227 CLog.i("Setting calibration values: " + caliValues); in setupTestEnv()
232 CLog.i("Calibration values are set to: " + caliValues); in setupTestEnv()
255 CLog.i("Starting measurement: " + cr.getStdout()); in doMeasurement()
261 CLog.i("Stopping measurement: " + cr.getStdout()); in doMeasurement()
265 CLog.i("Retry - Stopping measurement: " + cr.getStdout()); in doMeasurement()
281 CLog.i("== Video Multimeter Result '%s' ==", keyprefix); in getResult()
[all …]
/tools/test/connectivity/acts/framework/tests/
Daudio_quality_measurement_integrationtest.py55 for i in range(1, length - 1):
56 ith_teager_value = abs(wave[i] * wave[i] - wave[i - 1] * wave[i +
58 ith_teager_value *= max(1, abs(wave[i]))
73 for i in range(len(value1)):
74 ret = audio_quality_measurement.error(value1[i], value2[i])
75 self.assertTrue(abs(ret - error[i]) < 0.001)
106 for i in range(len(self.delay_start_time)):
107 start_index = int(self.delay_start_time[i] * self.rate)
108 end_index = int(self.delay_end_time[i] * self.rate)
116 for i in range(0, end_index):
[all …]
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DStrictShardHelper.java172 for (int i = 0; i < shardCount; i++) { in balancedDistrib()
174 if (i >= fullList.size()) { in balancedDistrib()
181 if (i == shardCount - 1) { in balancedDistrib()
185 correctionSize = fullList.size() - (numPerShard + (i * numPerShard)); in balancedDistrib()
189 shardList = fullList.subList(i * numPerShard, fullList.size() - correctionSize); in balancedDistrib()
193 shardList = fullList.subList(i * numPerShard, numPerShard + (i * numPerShard)); in balancedDistrib()
199 for (int i = 0; i < shardCount; i++) { in balancedDistrib()
200 if (i < correctionList.size()) { in balancedDistrib()
201 shards.get(i).add(correctionList.get(i)); in balancedDistrib()
216 for (int i = 0; i < numRound; i++) { in normalizeDistribution()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DPythonUnitTestResultParserTest.java547 for (int i = 0; i < 11; i++) { in testParseRealOutput()
584 for (int i = 0; i < 107; i++) { in testParseRealOutput2()
600 for (int i = 0; i < 11; i++) { in testParseRealOutput3()
624 for (int i = 0; i < totalTestCount; i++) { in testParseSubtestOutput()
660 for (int i = 0; i < 11; i++) { in testParseTestResults_withIncludeFilters()
709 for (int i = 0; i < 11; i++) { in testParseTestResults_withExcludeFilters()
741 for (int i = 0; i < ids.length; i++) { in setTestIdChecks()
742 mMockListener.testStarted(ids[i]); in setTestIdChecks()
744 if (didPass[i]) { in setTestIdChecks()
745 mMockListener.testEnded(ids[i], new HashMap<String, Metric>()); in setTestIdChecks()
[all …]
DGTestResultParserTest.java45 for (int i=0; i<11; ++i) { in testParseSimpleFile()
69 for (int i=0; i<53; ++i) { in testParseSimpleFileNoTimes()
109 for (int i=0; i<268; ++i) { in testParseLargerFile()
147 for (int i=0; i<4; ++i) { in testParseWithFailures()
169 for (int i=0; i<5; ++i) { in testParseWithFailures()
206 for (int i=0; i<5; ++i) { in testParseWithErrors()
220 for (int i=0; i<2; ++i) { in testParseWithErrors()
245 for (int i=0; i<11; ++i) { in testParseNonAlignedTag()
271 for (int i = 0; i < 13; ++i) { in testParseSimpleFile_AltFormat()
377 for (int i = 0; i < 11; ++i) { in testParseSimpleFileWithSkips()
[all …]
DFakeTestTest.java187 int i = 1; in testRun_basicSequence() local
189 testPassExpectations(mListener, name, i++); in testRun_basicSequence()
190 testFailExpectations(mListener, name, i++); in testRun_basicSequence()
191 testPassExpectations(mListener, name, i++); in testRun_basicSequence()
192 testAssumptionExpectations(mListener, name, i++); in testRun_basicSequence()
193 testIgnoredExpectations(mListener, name, i++); in testRun_basicSequence()
234 int i = 1; in testRun_basicParens() local
236 testPassExpectations(mListener, name, i++); in testRun_basicParens()
237 testFailExpectations(mListener, name, i++); in testRun_basicParens()
238 testPassExpectations(mListener, name, i++); in testRun_basicParens()
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/coex/
Dcoex_test_utils.py774 for i in range(1, retry):
780 "Retrying.".format(i, retry))
783 for i in range(1, retry):
789 "Retrying.".format(i, retry))
1156 for i in bt_attenuation_range:
1157 if "Packet drop" in legends[i][0]:
1162 if "Packet drops" in legends[i][j]:
1163 if data_sets[i]["a2dp_packet_drops"]:
1181 data_sets[i]["a2dp_attenuation"],
1182 data_sets[i]["a2dp_packet_drops"],
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DDiff.kt81 for (i in n - 1 downTo 0) { in getDiff() method
83 if (before[i] == after[j]) { in getDiff()
84 lcs[i][j] = lcs[i + 1][j + 1] + 1 in getDiff()
86 lcs[i][j] = max(lcs[i + 1][j], lcs[i][j + 1]) in getDiff()
91 var i = 0 in getDiff() variable
93 while (i < n && j < m) { in getDiff()
94 if (before[i] == after[j]) { in getDiff()
95 i++ in getDiff()
99 sb.append((i + 1).toString()) in getDiff()
105 for (context in max(0, i - windowSize) until i) { in getDiff()
[all …]
/tools/repohooks/tools/
Dcpplint.py1389 for i in range(begin, end):
1390 lines[i] = '/**/'
1533 for i in xrange(startpos, len(line)):
1534 char = line[i]
1540 if i > 0 and line[i - 1] == '<':
1546 elif i > 0 and Search(r'\boperator\s*$', line[0:i]):
1566 return (i + 1, None)
1574 if (i > 0 and
1575 (line[i - 1] == '-' or Search(r'\boperator\s*$', line[0:i - 1]))):
1584 return (i + 1, None)
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceFuncTest.java113 CLog.i("testBugreportz() not supported by this device, skipping."); in testBugreportz()
141 Log.i(LOG_TAG, "testExecuteShellCommand"); in testExecuteShellCommand()
157 Log.i(LOG_TAG, "testInstallUninstall"); in testInstallUninstall()
189 Log.i(LOG_TAG, "testInstallUninstall_space"); in testInstallUninstall_space()
206 Log.i(LOG_TAG, "testPushPull"); in testPushPull_normal()
244 Log.i(LOG_TAG, "testPushPull"); in testPushPull_extStorageVariable()
287 Log.i(LOG_TAG, "testPull_noexist"); in testPull_noexist()
336 Log.i(LOG_TAG, "testPush_noexist"); in testPush_noexist()
520 Log.i(LOG_TAG, "testExecuteFastbootCommand_deviceInAdb"); in testExecuteFastbootCommand_deviceInAdb()
522 Log.i(LOG_TAG, "Fastboot not enabled skipping testExecuteFastbootCommand_deviceInAdb"); in testExecuteFastbootCommand_deviceInAdb()
[all …]
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java521 for (int i = 0; i < mSigningLineage.size(); i++) { in sortSignerConfigs()
524 if (mSigningLineage.get(i).signingCert.equals(config.getCertificates().get(0))) { in sortSignerConfigs()
559 for (int i = 0; i < mSigningLineage.size(); i++) { in getSignerCapabilities()
560 SigningCertificateNode lineageNode = mSigningLineage.get(i); in getSignerCapabilities()
583 for (int i = 0; i < mSigningLineage.size(); i++) { in updateSignerCapabilities()
584 SigningCertificateNode lineageNode = mSigningLineage.get(i); in updateSignerCapabilities()
604 for (int i = 0; i < mSigningLineage.size(); i++) { in getCertificatesInLineage()
605 X509Certificate cert = mSigningLineage.get(i).signingCert; in getCertificatesInLineage()
631 for (int i = 0; i < mSigningLineage.size(); i++) { in isCertificateInLineage()
632 if (mSigningLineage.get(i).signingCert.equals(cert)) { in isCertificateInLineage()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java406 for (int i = 0; i < len; i++) { in toHex()
407 int hi = (value[i] & 0xff) >>> 4; in toHex()
408 int lo = value[i] & 0x0f; in toHex()
467 for (int i = 0; i < digestAlgorithmsArray.length; i++) { in computeOneMbChunkContentDigests()
468 ContentDigestAlgorithm digestAlgorithm = digestAlgorithmsArray[i]; in computeOneMbChunkContentDigests()
470 digestOutputSizes[i] = digestOutputSizeBytes; in computeOneMbChunkContentDigests()
476 digestsOfChunks[i] = concatenationOfChunkCountAndChunkDigests; in computeOneMbChunkContentDigests()
478 mds[i] = MessageDigest.getInstance(jcaAlgorithm); in computeOneMbChunkContentDigests()
502 for (int i = 0; i < mds.length; i++) { in computeOneMbChunkContentDigests()
503 mds[i].update(chunkContentPrefix); in computeOneMbChunkContentDigests()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatterTest.java635 for (int i = 0; i < count; i++) { in createResultWithLog()
637 new TestDescription("com.class." + runName, runName + ".method" + i); in createResultWithLog()
640 runName + "log" + i, new LogFile("path", "http:url/" + runName, type)); in createResultWithLog()
663 for (int i = 0; i < passed; i++) { in createFakeResult()
665 new TestDescription("com.class." + runName, runName + ".method" + i); in createFakeResult()
669 for (int i = 0; i < failed; i++) { in createFakeResult()
671 new TestDescription("com.class." + runName, runName + ".failed" + i); in createFakeResult()
677 metrics.put("metric0" + i, TfMetricProtoUtil.stringToMetric("value0" + i)); in createFakeResult()
678 metrics.put("metric1" + i, TfMetricProtoUtil.stringToMetric("value1" + i)); in createFakeResult()
681 metrics.put("%_capacity" + i, TfMetricProtoUtil.stringToMetric("0.00")); in createFakeResult()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java454 CLog.i("%s for device %s is null, re-querying in fastboot", description, in internalGetProperty()
1309 CLog.i("Checking free space for %s on partition %s", getSerialNumber(), partition); in getPartitionFreeSpace()
1338 for (int i=0; i < MAX_RETRY_ATTEMPTS; i++) { in getDfOutput()
1638 CLog.i("Device path is empty, nothing to do."); in pullDir()
1677 CLog.i("Syncing %s to %s on device %s", in syncFiles()
1848 CLog.i("Device offset time: %s", offset); in isNewer()
1919 for (int i = 0; i < MAX_RETRY_ATTEMPTS; i++) { in doFastbootCommand()
2073 for (int i = 0; i < retryAttempts + 1; i++) { in performDeviceAction()
2156 CLog.i("Skipping recovery on %s", getSerialNumber()); in recoverDevice()
2160 CLog.i("Attempting recovery on %s", getSerialNumber()); in recoverDevice()
[all …]
/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/
Dvecmath.h648 for (int32_t i = 0; i < 16; ++i) { variable
649 ret.f_[i] = f_[i] + rhs.f_[i];
656 for (int32_t i = 0; i < 16; ++i) { variable
657 ret.f_[i] = f_[i] - rhs.f_[i];
663 for (int32_t i = 0; i < 16; ++i) { variable
664 f_[i] += rhs.f_[i];
670 for (int32_t i = 0; i < 16; ++i) { variable
671 f_[i] -= rhs.f_[i];
720 for (int32_t i = 0; i < 16; ++i) { variable
721 ret.f_[i] = f_[i] * rhs;
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DTableBuilder.java76 for (int i = 0; i < blanks / 2; i++) { in build()
80 for (int i = 0; i < blanks / 2; i++) { in build()
131 for (int i = 0; i < mColumns.length; i++) { in build()
133 mBuilder.append(mColumns[i]); in build()
134 addPadding(mColumnWidth[i] - mColumns[i].length() + mPadding); in build()
249 for (int i = 0; i < mColumns; i++) { in addLine()
250 if (line[i].length() > mColumnWidth[i]) { in addLine()
251 mColumnWidth[i] = line[i].length(); in addLine()
264 mRowLength = IntStream.of(mColumnWidth).map(i -> i + 2 * mPadding + 1).sum() + 1; in build()
272 for (int i = 0; i < padding; i++) { in addPadding()
/tools/test/connectivity/acts/tests/google/wifi/aware/performance/
DThroughputTest.py150 for i in range(max_ndp):
153 dut, self.android_devices[i + 1])
180 for i in range(max_ndp):
184 args=(q, dut, self.android_devices[i + 1],
185 peers_aware_ifs[i], dut_ipv6, base_port + i)))
194 for i in range(max_ndp):
195 dut.droid.connectivityUnregisterNetworkCallback(dut_requests[i])
197 i + 1].droid.connectivityUnregisterNetworkCallback(
198 peers_requests[i])
201 for i in range(max_ndp):
[all …]
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DTestEnvironment.java218 for (int i = 0; i < envVars.length(); i++) { in fromJson()
219 final JSONObject envVar = envVars.getJSONObject(i); in fromJson()
227 for (int i = 0; i < jvmOptions.length(); i++) { in fromJson()
228 obj.addJvmOption(jvmOptions.getString(i)); in fromJson()
235 for (int i = 0; i < javaProperties.length(); i++) { in fromJson()
236 final JSONObject javaProperty = javaProperties.getJSONObject(i); in fromJson()
244 for (int i = 0; i < scripts.length(); i++) { in fromJson()
245 obj.addSetupScripts(scripts.getString(i)); in fromJson()
252 for (int i = 0; i < patterns.length(); i++) { in fromJson()
253 obj.addOutputFilePattern(patterns.getString(i)); in fromJson()
[all …]

12345678910>>...25