/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()
|
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 | FatLfnDirectoryEntry.java | 86 for (int i = len - 2; i >= 0; i--) { in extract() 87 FatDirectoryEntry entry = dir.dir.getEntry(i + offset); in extract() 222 for (int i = totalEntrySize - 2; i > 0; i--) { in compactForm() 223 entries[i] = createPart(fileName.substring(j * 13, j * 13 + 13), in compactForm() 309 for (int i=subName.length(); i < 13; i++) { in createPart() 310 if (i==subName.length()) { in createPart() 311 unicodechar[i] = 0x0000; in createPart() 313 unicodechar[i] = 0xffff; in createPart()
|
/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/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/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/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/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/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/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/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_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/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/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextTypeParameterItem.kt | 73 for (i in 0 until length) { in create() variable 74 val c = typeParameterString[i] in create() 76 nameEnd = i in create() 109 for (i in start until length) { in bounds() constant 110 val c = s[i] in bounds() 112 add(list, typeString, start, i) in bounds() 113 start = i + 1 in bounds() 117 add(list, typeString, start, i) in bounds() 122 start = i + 1 in bounds() 133 for (i in from until to) { in add() method [all …]
|
D | TextTypeParameterList.kt | 67 for (i in s.indices) { in typeParameterStrings() variable 68 val c = s[i] in typeParameterStrings() 75 add(list, s, start, i + 1) in typeParameterStrings() 76 start = i + 1 in typeParameterStrings() 78 add(list, s, start, i) in typeParameterStrings() 83 add(list, s, start, i) in typeParameterStrings() 89 start = i in typeParameterStrings() 97 for (i in from until to) { in add() method 98 if (!Character.isWhitespace(s[i])) { in add() 99 list.add(s.substring(i, to)) in add()
|
/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 …]
|
/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/repohooks/rh/ |
D | shell.py | 113 i = 0 114 while i < len(s) - 1: 116 if s[i] == '\\' and s[i + 1] in _SHELL_ESCAPE_CHARS: 117 i += 1 118 output += s[i] 119 i += 1 120 return output + s[i] if i < len(s) else output
|
/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/ |
D | renderer.cpp | 85 auto i = 0; in initDisplay() local 86 for (; i < numConfigs; i++) { in initDisplay() 87 auto& cfg = supportedConfigs[i]; in initDisplay() 95 config = supportedConfigs[i]; in initDisplay() 99 if (i == numConfigs) { in initDisplay() 183 for (int i = 0; i < state.circles.size(); ++i) { in update() local 184 auto& circle = state.circles[i]; in update() 185 Vec2& v = state.velocities[i]; in update() 224 for (int i = 0; i < state.circles.size(); ++i) { in draw() local 225 auto& circle = state.circles[i]; in draw()
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/ |
D | MetricSummary.java | 73 for (int i = 0; i < loopCount; i++) { in parseRunMetrics() 74 LoopSummary loopSummary = LoopSummary.parseRunMetrics(context, type, i, metrics); in parseRunMetrics() 104 for (int i = 0; i < loopCount; i++) { in addToMetricData() 106 LoopSummary summary = summaries.get(type).get(i); in addToMetricData() 107 summary.addToMetricData(runData, i, type); in addToMetricData() 146 for (int i = 0; i < loopCount; i++) { in toString() 147 if (summaries.get(TimeType.PRESENT).get(i).getCount() == 0) { in toString() 151 sb.append(i); in toString() 156 sb.append(summaries.get(type).get(i)); in toString()
|
/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()
|