/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 | Dummy83BufferGenerator.java | 81 for (int i=0; i < s.length(); i++) { in cleanString() 82 if (isSkipChar(s.charAt(i))) return false; in cleanString() 83 if (!validChar(s.charAt(i))) return false; in cleanString() 92 for (int i=0; i < str.length(); i++) { in stripLeadingPeriods() 93 if (str.charAt(i) != '.') { //NOI18N in stripLeadingPeriods() 94 sb.append(str.substring(i)); in stripLeadingPeriods() 137 int i, tilde_pos, slash_pos; in generate83BufferNew() local 153 for (i = 0; i < 8; i++) { in generate83BufferNew() 154 if (i == slash_pos) in generate83BufferNew() 155 retBuffer[i] = '/'; in generate83BufferNew() [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 | Fat16BootSector.java | 105 for (int i=0; i < MAX_VOLUME_LABEL_LENGTH; i++) { in getVolumeLabel() 106 final char c = (char) get8(VOLUME_LABEL_OFFSET + i); in getVolumeLabel() 129 for (int i = 0; i < MAX_VOLUME_LABEL_LENGTH; i++) { in setVolumeLabel() 130 set8(VOLUME_LABEL_OFFSET + i, in setVolumeLabel() 131 i < label.length() ? label.charAt(i) : 0); in setVolumeLabel()
|
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/prod-tests/src/com/android/framework/tests/ |
D | PackageManagerStressHostTests.java | 121 CLog.i("Test updating an app on SD numerous times"); in testUpdateAppManyTimesOnSD() 125 for (int i = VERSIONED_APPS_START_VERSION; i <= VERSIONED_APPS_END_VERSION; ++i) { in testUpdateAppManyTimesOnSD() 127 VERSIONED_APPS_FILENAME_PREFIX, i); in testUpdateAppManyTimesOnSD() 128 CLog.i("Installing app " + currentApkName); in testUpdateAppManyTimesOnSD() 149 CLog.i("Test updating an app on the SD card stays on the SD card"); in testUninstallReinstallAppOnSDManyTimes() 152 for (int i = 0; i < mIterationCount; ++i) { in testUninstallReinstallAppOnSDManyTimes() 153 CLog.i("Installing app %s (%d)", EXTERNAL_LOC_PKG, i); in testUninstallReinstallAppOnSDManyTimes() 164 CLog.i("Uninstalling app %s (%d)", EXTERNAL_LOC_PKG, i); in testUninstallReinstallAppOnSDManyTimes() 176 CLog.i("Test installing %d large apps onto the sd card", LARGE_APPS.length); in testInstallManyLargeAppsOnSD() 179 for (int i = 0; i < LARGE_APPS.length; ++i) { in testInstallManyLargeAppsOnSD() [all …]
|
/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()
|
/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()
|
D | StreamUtilTest.java | 49 for (int i = 0; i < contentBytes.length; ++i) { in testGetByteArrayListFromSource() 50 assertEquals(contentBytes[i], outputBytes[i]); in testGetByteArrayListFromSource() 66 for (int i = 0; i < contentBytes.length; ++i) { in testGetByteArrayListFromStream() 67 assertEquals(contentBytes[i], outputBytes[i]); in testGetByteArrayListFromStream() 164 for (int i = 0; i < 40; i ++) { in getLargeText()
|
/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/test/connectivity/acts/framework/tests/ |
D | audio_quality_measurement_unittest.py | 50 for i in range(1, length - 1): 51 ith_teager_value = abs(wave[i] * wave[i] - wave[i - 1] * wave[i + 53 ith_teager_value *= max(1, abs(wave[i])) 68 for i in range(len(value1)): 69 ret = audio_quality_measurement.error(value1[i], value2[i]) 70 self.assertTrue(abs(ret - error[i]) < 0.001) 101 for i in range(len(self.delay_start_time)): 102 start_index = int(self.delay_start_time[i] * self.rate) 103 end_index = int(self.delay_end_time[i] * self.rate) 111 for i in range(0, end_index): [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/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/core/src/com/android/tradefed/invoker/shard/ |
D | StrictShardHelper.java | 190 for (int i = 0; i < shardCount; i++) { in balancedDistrib() 192 if (i >= fullList.size()) { in balancedDistrib() 199 if (i == shardCount - 1) { in balancedDistrib() 203 correctionSize = fullList.size() - (numPerShard + (i * numPerShard)); in balancedDistrib() 207 shardList = fullList.subList(i * numPerShard, fullList.size() - correctionSize); in balancedDistrib() 211 shardList = fullList.subList(i * numPerShard, numPerShard + (i * numPerShard)); in balancedDistrib() 217 for (int i = 0; i < shardCount; i++) { in balancedDistrib() 218 if (i < correctionList.size()) { in balancedDistrib() 219 shards.get(i).add(correctionList.get(i)); in balancedDistrib() 234 for (int i = 0; i < numRound; i++) { in normalizeDistribution() [all …]
|
/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 - 1; 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/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ModuleListenerTest.java | 50 for (int i = 0; i < numTests; i++) { in testRegularExecution() 51 TestDescription tid = new TestDescription("class", "test" + i); in testRegularExecution() 91 for (int i = 0; i < numTests - 1; i++) { in testInternalRerun() 92 TestDescription tid2 = new TestDescription("class", "test" + i); in testInternalRerun() 107 for (int i = 0; i < numTests; i++) { in testMultiTestRun() 108 TestDescription tid = new TestDescription("class", "test" + i); in testMultiTestRun() 115 for (int i = 0; i < numTests; i++) { in testMultiTestRun() 116 TestDescription tid = new TestDescription("class2", "test" + i); in testMultiTestRun()
|
/tools/repohooks/rh/ |
D | shell.py | 118 i = 0 119 while i < len(s) - 1: 121 if s[i] == '\\' and s[i + 1] in _SHELL_ESCAPE_CHARS: 122 i += 1 123 output += s[i] 124 i += 1 125 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/test/connectivity/acts/framework/acts/test_utils/bt/ |
D | gattc_lib.py | 163 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/test/connectivity/acts/tests/google/wifi/aware/performance/ |
D | ThroughputTest.py | 151 for i in range(max_ndp): 153 resp_ipv6) = autils.create_oob_ndp(dut, self.android_devices[i + 1]) 179 for i in range(max_ndp): 183 args=(q, dut, self.android_devices[i + 1], peers_aware_ifs[i], 184 dut_ipv6, base_port + i))) 193 for i in range(max_ndp): 194 dut.droid.connectivityUnregisterNetworkCallback(dut_requests[i]) 195 self.android_devices[i + 1].droid.connectivityUnregisterNetworkCallback( 196 peers_requests[i]) 199 for i in range(max_ndp): [all …]
|
/tools/tradefederation/core/prod-tests/src/com/android/wireless/tests/ |
D | RadioHelper.java | 73 for (int i = 0; i < RETRY_ATTEMPTS && (phoneType == null || simState == null); i++) { in isCdmaDevice() 110 for (int i = 0; i < PING_SERVER_LIST.length; i++ ) { in pingTest() 111 String host = PING_SERVER_LIST[i]; in pingTest() 141 for (int i = 0; i < RETRY_ATTEMPTS; i++ ) { in radioActivation()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextTypeParameterList.kt | 63 for (i in 0 until s.length) { in typeParameterStrings() variable 64 val c = s[i] in typeParameterStrings() 71 add(list, s, start, i + 1) in typeParameterStrings() 72 start = i + 1 in typeParameterStrings() 74 add(list, s, start, i) in typeParameterStrings() 79 add(list, s, start, i) in typeParameterStrings() 85 start = i in typeParameterStrings() 93 for (i in from until to) { in add() method 94 if (!Character.isWhitespace(s[i])) { in add() 95 list.add(s.substring(i, to)) in add()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | FakeTestTest.java | 178 int i = 1; in testRun_basicSequence() local 180 testPassExpectations(mListener, name, i++); in testRun_basicSequence() 181 testFailExpectations(mListener, name, i++); in testRun_basicSequence() 182 testPassExpectations(mListener, name, i++); in testRun_basicSequence() 194 int i = 1; in testRun_basicParens() local 196 testPassExpectations(mListener, name, i++); in testRun_basicParens() 197 testFailExpectations(mListener, name, i++); in testRun_basicParens() 198 testPassExpectations(mListener, name, i++); in testRun_basicParens() 199 testFailExpectations(mListener, name, i++); in testRun_basicParens() 211 int i = 1; in testRun_recursiveParens() local [all …]
|
/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 …]
|