/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 | 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 | 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 | 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 | 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/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 …]
|
/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/dexter/slicer/ |
D | reader.cc | 84 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 …]
|
D | writer.cc | 88 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/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/apksig/src/main/java/com/android/apksig/ |
D | SigningCertificateLineage.java | 520 for (int i = 0; i < mSigningLineage.size(); i++) { in sortSignerConfigs() 523 if (mSigningLineage.get(i).signingCert.equals(config.getCertificates().get(0))) { in sortSignerConfigs() 558 for (int i = 0; i < mSigningLineage.size(); i++) { in getSignerCapabilities() 559 SigningCertificateNode lineageNode = mSigningLineage.get(i); in getSignerCapabilities() 582 for (int i = 0; i < mSigningLineage.size(); i++) { in updateSignerCapabilities() 583 SigningCertificateNode lineageNode = mSigningLineage.get(i); in updateSignerCapabilities() 603 for (int i = 0; i < mSigningLineage.size(); i++) { in getCertificatesInLineage() 604 X509Certificate cert = mSigningLineage.get(i).signingCert; in getCertificatesInLineage() 630 for (int i = 0; i < mSigningLineage.size(); i++) { in isCertificateInLineage() 631 if (mSigningLineage.get(i).signingCert.equals(cert)) { in isCertificateInLineage() [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/test/connectivity/acts_tests/tests/google/wifi/aware/performance/ |
D | ThroughputTest.py | 150 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/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/apksig/src/main/java/com/android/apksig/apk/ |
D | ApkUtils.java | 256 for (int i = 0; i < parser.getAttributeCount(); i++) { in getMinSdkVersionFromBinaryAndroidManifest() 257 if (parser.getAttributeNameResourceId(i) == MIN_SDK_VERSION_ATTR_ID) { in getMinSdkVersionFromBinaryAndroidManifest() 258 int valueType = parser.getAttributeValueType(i); in getMinSdkVersionFromBinaryAndroidManifest() 261 minSdkVersion = parser.getAttributeIntValue(i); in getMinSdkVersionFromBinaryAndroidManifest() 266 parser.getAttributeStringValue(i)); in getMinSdkVersionFromBinaryAndroidManifest() 410 for (int i = 0; i < parser.getAttributeCount(); i++) { in getDebuggableFromBinaryAndroidManifest() 411 if (parser.getAttributeNameResourceId(i) == DEBUGGABLE_ATTR_ID) { in getDebuggableFromBinaryAndroidManifest() 412 int valueType = parser.getAttributeValueType(i); in getDebuggableFromBinaryAndroidManifest() 417 String value = parser.getAttributeStringValue(i); in getDebuggableFromBinaryAndroidManifest() 485 for (int i = 0; i < parser.getAttributeCount(); i++) { in getPackageNameFromBinaryAndroidManifest() [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/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/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/carrier_settings/java/ |
D | CarrierConfigConverterV2.java | 323 for (int i = 0; i < tier1Carriers.getEntryCount(); i++) { in convert() 324 CarrierMap cm = tier1Carriers.getEntry(i); in convert() 469 for (int i = 0; i < nodeList.getLength(); i++) { in getElementsByTagName() 470 Node node = nodeList.item(i); in getElementsByTagName() 487 for (int i = 0; i < pList.getEntryCount(); i++) { in getCanonicalName() 488 CarrierMap cm = pList.getEntry(i); in getCanonicalName() 584 for (int i = 0; i < nList.getLength(); i++) { in parseCarrierConfigToMap() 585 Node nNode = nList.item(i); in parseCarrierConfigToMap() 596 for (int i = 0; i < nList.getLength(); i++) { in parseCarrierConfigToMap() 597 Node nNode = nList.item(i); in parseCarrierConfigToMap() [all …]
|
/tools/security/fuzzing/orphans/libffi/ |
D | fuzz_ffi.cc | 55 for (size_t i=0; i < num_elements; i++) { in generateCustomType() local 56 new_type->elements[i] = getRandomType(dataProvider, false); in generateCustomType() 79 for (size_t i=0; type->elements[i] != NULL; i++) { in getTotalSize() local 80 total_size += getTotalSize(type->elements[i]); in getTotalSize() 134 for (size_t i = 1; i <= num_args; i++) { in buildArgArrays() local 140 arg_types[i] = type; in buildArgArrays() 143 arg_array[i] = genArg(type, dataProvider); in buildArgArrays() 296 for (size_t i=0; i <= num_args; i++) { in freeAll() local 297 free(arg_array[i]); in freeAll()
|