/tools/trebuchet/core/common/src/main/kotlin/trebuchet/collections/ |
D | SparseArray.kt | 51 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/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 | 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/test/connectivity/acts_tests/acts_contrib/test_utils_tests/ |
D | audio_quality_measurement_integrationtest.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/metalava/src/main/java/com/android/tools/metalava/ |
D | Diff.kt | 81 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/test/connectivity/acts_tests/acts_contrib/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 …]
|
D | BtInterferenceBaseTest.py | 118 for i in range(len(wifi_int_pairs)): 119 if wifi_int_pairs[i].channel == chan: 120 interference_pair_indices.append(i) 144 for i in interference_pair_indices: 145 wifi_int_pairs[i].attenuator.set_atten(interference_level) 147 wifi_int_pairs[i].attenuator.get_atten(), i + 1)) 148 for i in inactive_interference_pairs_indices: 149 wifi_int_pairs[i].attenuator.set_atten(MAX_ATTENUATION) 151 wifi_int_pairs[i].attenuator.get_atten(), i + 1)) 179 for i in range(len(self.attenuators) - 1): [all …]
|
/tools/test/connectivity/acts_tests/tests/google/bt/performance/ |
D | BtInterferenceDynamicTest.py | 89 for i in interference_chans_before: 90 chans_before_str = chans_before_str + str(i) + '_' 91 for i in interference_chans_after: 92 chans_after_str = chans_after_str + str(i) + '_' 160 for i in interference_pair_indices_before: 164 interference_level, i + 1, 166 self.wifi_int_pairs[i].channel), 167 self.wifi_int_pairs[i].channel)) 168 self.wifi_int_pairs[i].attenuator.set_atten(interference_level) 169 for i in inactive_interference_pair_indices_before: [all …]
|
/tools/security/gdb/heap_print/test/ |
D | sample_heap_test.cc | 15 for (int i = 0; i < n; ++i) in main() local 17 malloc_ptr[i] = i + 1; in main() 22 for (int i = 0; i < new_n; ++i) in main() local 24 malloc_ptr[i] = i + 1; in main() 35 for (int i = 0; i < n; ++i) in main() local 37 new_ptr[i] = i + 1; in main()
|
/tools/dexter/slicer/ |
D | reader.cc | 85 for (size_t i = 0; i < classCount; ++i) { in CreateFullIr() local 86 CreateClassIr(i); in CreateFullIr() 100 for (dex::u4 i = 0; i < classes.size(); ++i) { in FindClassIndex() local 101 auto typeId = types[classes[i].class_idx]; in FindClassIndex() 104 return i; in FindClassIndex() 250 for (dex::u4 i = 0; i < static_fields_count; ++i) { in ParseClass() local 256 for (dex::u4 i = 0; i < instance_fields_count; ++i) { in ParseClass() local 262 for (dex::u4 i = 0; i < direct_methods_count; ++i) { in ParseClass() local 268 for (dex::u4 i = 0; i < virtual_methods_count; ++i) { in ParseClass() local 300 for (dex::u4 i = 0; i < dex_annotations->fields_size; ++i) { in ExtractAnnotations() local [all …]
|
/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/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/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/ |
D | AttestationApplicationId.java | 98 int i = 1; in toString() local 100 sb.append("\n### Package info " + i + "/" + noOfInfos + " ###\n"); in toString() 103 i = 1; in toString() 106 sb.append("\nSignature digest " + i++ + "/" + noOfSigs + ":"); in toString() 118 for (int i = 0; i < packageInfos.size(); ++i) { in compareTo() 119 res = packageInfos.get(i).compareTo(other.packageInfos.get(i)); in compareTo() 125 for (int i = 0; i < signatureDigests.size(); ++i) { in compareTo() 126 res = cmp.compare(signatureDigests.get(i), other.signatureDigests.get(i)); in compareTo() 175 for (int i = 0; i < a.length; ++i) { in compare() 176 res = Byte.compare(a[i], b[i]); in compare()
|
/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/test/connectivity/acts_tests/tests/google/wifi/aware/performance/ |
D | ThroughputTest.py | 151 for i in range(max_ndp): 154 dut, self.android_devices[i + 1]) 181 for i in range(max_ndp): 185 args=(q, dut, self.android_devices[i + 1], 186 peers_aware_ifs[i], dut_ipv6, base_port + i))) 195 for i in range(max_ndp): 196 dut.droid.connectivityUnregisterNetworkCallback(dut_requests[i]) 198 i + 1].droid.connectivityUnregisterNetworkCallback( 199 peers_requests[i]) 202 for i in range(max_ndp): [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; 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/apksig/src/main/java/com/android/apksig/apk/ |
D | ApkUtils.java | 267 for (int i = 0; i < parser.getAttributeCount(); i++) { in getMinSdkVersionFromBinaryAndroidManifest() 268 if (parser.getAttributeNameResourceId(i) == MIN_SDK_VERSION_ATTR_ID) { in getMinSdkVersionFromBinaryAndroidManifest() 269 int valueType = parser.getAttributeValueType(i); in getMinSdkVersionFromBinaryAndroidManifest() 272 minSdkVersion = parser.getAttributeIntValue(i); in getMinSdkVersionFromBinaryAndroidManifest() 277 parser.getAttributeStringValue(i)); in getMinSdkVersionFromBinaryAndroidManifest() 421 for (int i = 0; i < parser.getAttributeCount(); i++) { in getDebuggableFromBinaryAndroidManifest() 422 if (parser.getAttributeNameResourceId(i) == DEBUGGABLE_ATTR_ID) { in getDebuggableFromBinaryAndroidManifest() 423 int valueType = parser.getAttributeValueType(i); in getDebuggableFromBinaryAndroidManifest() 428 String value = parser.getAttributeStringValue(i); in getDebuggableFromBinaryAndroidManifest() 496 for (int i = 0; i < parser.getAttributeCount(); i++) { in getPackageNameFromBinaryAndroidManifest() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | SigningCertificateLineage.java | 541 for (int i = 0; i < mSigningLineage.size(); i++) { in sortSignerConfigs() 544 if (mSigningLineage.get(i).signingCert.equals(config.getCertificates().get(0))) { in sortSignerConfigs() 579 for (int i = 0; i < mSigningLineage.size(); i++) { in getSignerCapabilities() 580 SigningCertificateNode lineageNode = mSigningLineage.get(i); in getSignerCapabilities() 603 for (int i = 0; i < mSigningLineage.size(); i++) { in updateSignerCapabilities() 604 SigningCertificateNode lineageNode = mSigningLineage.get(i); in updateSignerCapabilities() 624 for (int i = 0; i < mSigningLineage.size(); i++) { in getCertificatesInLineage() 625 X509Certificate cert = mSigningLineage.get(i).signingCert; in getCertificatesInLineage() 651 for (int i = 0; i < mSigningLineage.size(); i++) { in isCertificateInLineage() 652 if (mSigningLineage.get(i).signingCert.equals(cert)) { in isCertificateInLineage() [all …]
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/ |
D | StringSearch.kt | 37 var i: Int = 0 in longestCommonSuffix() variable 38 while (word[pos - i] == word[word.length - 1 - i] && i < pos) { in longestCommonSuffix() 39 i++ in longestCommonSuffix() 41 return i in longestCommonSuffix() 47 for (i in 0..last - 1) { constant in trebuchet.util.StringSearch 48 skipLut[lookFor[i].toInt() and 0xFF] = (last - i).toByte() 52 for (i in last downTo 0) { variable in trebuchet.util.StringSearch 53 if (isPrefix(lookFor, i + 1)) { 54 lastPrefix = i + 1 56 suffixSkip[i] = (lastPrefix + last - i).toByte() [all …]
|
/tools/test/connectivity/acts_tests/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/test/connectivity/acts_tests/acts_contrib/test_utils/coex/ |
D | coex_test_utils.py | 774 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/loganalysis/javatests/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/carrier_settings/java/ |
D | CarrierConfigConverterV2.java | 332 for (int i = 0; i < tier1Carriers.getEntryCount(); i++) { in convert() 333 CarrierMap cm = tier1Carriers.getEntry(i); in convert() 478 for (int i = 0; i < nodeList.getLength(); i++) { in getElementsByTagName() 479 Node node = nodeList.item(i); in getElementsByTagName() 496 for (int i = 0; i < pList.getEntryCount(); i++) { in getCanonicalName() 497 CarrierMap cm = pList.getEntry(i); in getCanonicalName() 593 for (int i = 0; i < nList.getLength(); i++) { in parseCarrierConfigToMap() 594 Node nNode = nList.item(i); in parseCarrierConfigToMap() 605 for (int i = 0; i < nList.getLength(); i++) { in parseCarrierConfigToMap() 606 Node nNode = nList.item(i); in parseCarrierConfigToMap() [all …]
|