/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | ShortName.java | 56 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 …]
|
D | Fat.java | 181 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 …]
|
D | BootSector.java | 182 for (int i=0; i < FILE_SYSTEM_TYPE_LENGTH; i++) { in getFileSystemTypeLabel() 183 sb.append ((char) get8(getFileSystemTypeLabelOffset() + i)); in getFileSystemTypeLabel() 203 for (int i=0; i < FILE_SYSTEM_TYPE_LENGTH; i++) { in setFileSystemTypeLabel() 204 set8(getFileSystemTypeLabelOffset() + i, fsType.charAt(i)); in setFileSystemTypeLabel() 237 for (int i = 0; i < 8; i++) { in getOemName() 238 int v = get8(0x3 + i); in getOemName() 256 for (int i = 0; i < 8; i++) { in setOemName() 258 if (i < name.length()) { in setOemName() 259 ch = name.charAt(i); in setOemName() 264 set8(0x3 + i, ch); in setOemName()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | TableBuilder.java | 76 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()
|
D | BulkEmailer.java | 80 for (int i = 1; i <= mInitialBurst; i++){ in sendEmails() 81 msg.setSubject(SUBJECT + i); in sendEmails() 85 for (int i = mInitialBurst; i <= mEmails; i++){ in sendEmails() 86 msg.setSubject(SUBJECT + i); in sendEmails() 88 CLog.i("Sending email %d/%d", i, mEmails); in sendEmails()
|
D | SizeLimitedOutputStream.java | 96 for (int i = 0; i < mFiles.length; i++) { in getData() 98 int currentPos = (mCurrentFilePos + i + 1) % mFiles.length; in getData() 138 for (int i = 0; i < mFiles.length; i++) { in delete() 139 FileUtil.deleteFile(mFiles[i]); in delete() 140 mFiles[i] = null; in delete() 175 private int getNextIndex(int i) { in getNextIndex() argument 176 return (i + 1) % mFiles.length; in getNextIndex()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/utils/ |
D | LittleEndianUtilsTest.java | 54 for (int i = 0; i < data.length; i++) { in readWrite2Le() 55 data[i] = r.nextInt(range); in readWrite2Le() 64 for (int i = 0; i < data.length; i++) { in readWrite2Le() 65 assertEquals(data[i], LittleEndianUtils.readUnsigned2Le(in)); in readWrite2Le() 95 for (int i = 0; i < data.length; i++) { in readWrite4Le() 97 data[i] = r.nextInt() - (long) Integer.MIN_VALUE; in readWrite4Le() 98 } while (data[i] < 0); in readWrite4Le() 107 for (int i = 0; i < data.length; i++) { in readWrite4Le() 108 assertEquals(data[i], LittleEndianUtils.readUnsigned4Le(in)); in readWrite4Le()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | SimpleStatsTest.java | 56 for (int i = 1; i <= 10; ++i) { in testStats_evenCount() 57 mStats.add(i); in testStats_evenCount() 76 for (int i = 0; i <= 10; ++i) { in testStats_oddCount() 77 mStats.add(i); in testStats_oddCount() 91 for (int i = 1; i <= 5; ++i) { in testStats_skewedMedian() 92 for (int j = 1; j <= i; ++j) { in testStats_skewedMedian() 93 mStats.add(i); in testStats_skewedMedian()
|
/tools/test/connectivity/acts/framework/tests/ |
D | audio_quality_measurement_integrationtest.py | 55 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/ |
D | StrictShardHelper.java | 172 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/device/ |
D | TestDeviceStressTest.java | 65 for (int i = 0; i < TEST_FILE_COUNT; i++) { in createTempTestFiles() 66 tmpFile = FileUtil.createTempFile(String.format("tmp_%d", i), ".txt", tmpDir); in createTempTestFiles() 74 for (int i=0; i < mIterations; i++) { in testManyReboots() 75 Log.i(LOG_TAG, String.format("testReboot attempt %d", i)); in testManyReboots() 82 for (int i=0; i < mIterations; i++) { in testManyRebootBootloaders() 83 Log.i(LOG_TAG, String.format("testRebootBootloader attempt %d", i)); in testManyRebootBootloaders() 94 for (int i=0; i < mIterations; i++) { in testManyDisableKeyguard() 95 Log.i(LOG_TAG, String.format("testDisableKeyguard attempt %d", i)); in testManyDisableKeyguard() 122 for (int i = 0; i < mIterations; i++) { in testPushFolderWithManyFiles()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | AudioLoopbackImageAnalyzer.java | 94 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 …]
|
D | VideoMultimeterTest.java | 183 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/loganalysis/tests/src/com/android/loganalysis/parser/ |
D | AbstractSectionParserTest.java | 77 for (int i = 0; i < nParsers; ++i) { in testSwitchParsers() 78 String line = String.format(lineFormat, i); in testSwitchParsers() 80 mParser.addSectionParser(parser, String.format(linePattern, i)); in testSwitchParsers() 81 parsers[i] = parser; in testSwitchParsers() 84 lines.add(String.format(linePattern, i)); in testSwitchParsers() 86 lines.add(String.format(lineFormat, i)); in testSwitchParsers() 92 for (int i = 0; i < nParsers; ++i) { in testSwitchParsers() 93 assertEquals(String.format("Parser %d has wrong call count!", i), 1, in testSwitchParsers() 94 parsers[i].getCalls()); in testSwitchParsers()
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | TestEnvironment.java | 218 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 …]
|
/tools/apksig/src/test/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtilsTest.java | 43 for (int i = 0; i < part1.length; ++i) { in setUp() 44 part1[i] = (byte)(i % BASE); in setUp() 55 for (int i = 0; i < part2.length; ++i) { in setUp() 56 part2[i] = (byte)(i % BASE); in setUp() 59 for (int i = 0; i < part3.length; ++i) { in setUp() 60 part3[i] = (byte)(i % BASE); in setUp() 103 for (int i = 0; i < jobCount; i++) { in testMultithreadedVersionMatchesSinglethreaded()
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | ChainedDataSource.java | 77 int i = firstSource.getFirst(); in getByteBuffer() local 81 if (offset + size <= mSources[i].size()) { in getByteBuffer() 82 return mSources[i].getByteBuffer(offset, size); in getByteBuffer() 87 for (; i < mSources.length && buffer.hasRemaining(); i++) { in getByteBuffer() 88 long sizeToCopy = Math.min(mSources[i].size() - offset, buffer.remaining()); in getByteBuffer() 89 mSources[i].copyTo(offset, Math.toIntExact(sizeToCopy), buffer); in getByteBuffer() 122 for (int i = beginIndex + 1; i < endIndex; i++) { in slice() 123 sources.add(mSources[i]); in slice() 136 for (int i = 0; i < mSources.length; i++) { in locateDataSource() 137 if (localOffset < mSources[i].size()) { in locateDataSource() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/ |
D | ApiGenerator.java | 43 for (int i = 0; i < args.length && !error; i++) { in main() 44 String arg = args[i]; in main() 47 i++; in main() 48 if (i < args.length) { in main() 49 patterns.add(args[i]); in main() 55 i++; in main() 56 if (i < args.length) { in main() 57 currentApi = Integer.parseInt(args[i]); in main() 67 i++; in main() 68 if (i < args.length) { in main() [all …]
|
/tools/repohooks/rh/ |
D | shell.py | 119 i = 0 120 while i < len(s) - 1: 122 if s[i] == '\\' and s[i + 1] in _SHELL_ESCAPE_CHARS: 123 i += 1 124 output += s[i] 125 i += 1 126 return output + s[i] if i < len(s) else output
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | FileUseMapTest.java | 91 for (int i = 0; i < HEAD_SET_SIZE; i++) { in addPerformanceTest() 92 initialAvg += runs[i]; in addPerformanceTest() 98 for (int i = currentRun - TAIL_SET_SIZE; i < currentRun; i++) { in addPerformanceTest() 99 endAvg += runs[i]; in addPerformanceTest() 105 for (int i = 0; i < runs.length; i++) { in addPerformanceTest() 106 totalAvg += runs[i]; in addPerformanceTest()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextTypeParameterItem.kt | 74 for (i in 0 until length) { in create() variable 75 val c = typeParameterString[i] in create() 77 nameEnd = i in create() 110 for (i in start until length) { in bounds() constant 111 val c = s[i] in bounds() 113 add(list, typeString, start, i) in bounds() 114 start = i + 1 in bounds() 118 add(list, typeString, start, i) in bounds() 123 start = i + 1 in bounds() 134 for (i in from until to) { in add() method [all …]
|
D | TextTypeParameterList.kt | 68 for (i in 0 until s.length) { in typeParameterStrings() variable 69 val c = s[i] in typeParameterStrings() 76 add(list, s, start, i + 1) in typeParameterStrings() 77 start = i + 1 in typeParameterStrings() 79 add(list, s, start, i) in typeParameterStrings() 84 add(list, s, start, i) in typeParameterStrings() 90 start = i in typeParameterStrings() 98 for (i in from until to) { in add() method 99 if (!Character.isWhitespace(s[i])) { in add() 100 list.add(s.substring(i, to)) in add()
|
/tools/test/connectivity/acts/tests/google/bt/system_tests/ |
D | RfcommLongevityTest.py | 75 for i in range(self.longev_iterations): 76 self.log.info("iteration {} connection".format(i + 1)) 82 i * self.write_iterations)))) 120 for i in range(self.longev_iterations): 121 self.log.info("iteration {} connection".format(i + 1)) 127 i * self.write_iterations)))) 165 for i in range(self.longev_iterations): 166 self.log.info("iteration {} connection".format(i + 1)) 172 i * self.write_iterations)))) 210 for i in range(self.longev_iterations): [all …]
|
/tools/tradefederation/contrib/src/com/android/wireless/tests/ |
D | RadioHelper.java | 66 for (int i = 0; i < RETRY_ATTEMPTS && (phoneType == null || simState == null); i++) { in isCdmaDevice() 101 for (int i = 0; i < PING_SERVER_LIST.length; i++) { in pingTest() 102 String host = PING_SERVER_LIST[i]; in pingTest() 133 for (int i = 0; i < RETRY_ATTEMPTS; i++) { in radioActivation()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | GTestListTestParserTest.java | 48 for (int i = 0; i < 23; ++i) { in testParseSimpleList() 73 for (int i = 0; i < 127; ++i) { in testParseMultiClassList() 150 for (int i = 0; i < 41; ++i) { in testParseParameterized() 167 for (int i = 0; i < FloatMethod; i++) { in testParseParameterized() 170 "UnknownCombinationsTest/UnknownDimensionsTest", "Float/" + i); in testParseParameterized() 174 for (int i = 0; i < Quantized; i++) { in testParseParameterized() 177 "UnknownCombinationsTest/UnknownDimensionsTest", "Quantized/" + i); in testParseParameterized()
|