/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | AlignmentTest.java | 59 zf.add("test.txt", new ByteArrayInputStream(testBytes), false); in addAlignedFile() 75 zf.add("test.txt.foo", new ByteArrayInputStream(testBytes), false); in addNonAlignedFile() 90 zf.add("file1.txt", new ByteArrayInputStream(testBytes1), false); 91 zf.add("file0.txt", new ByteArrayInputStream(testBytes0), false); 134 zf.add("file0.txt", new ByteArrayInputStream(testBytes0), false); 135 zf.add("file1.txt", new ByteArrayInputStream(testBytes1), false); 177 zf.add("test.txt", new ByteArrayInputStream(testBytes), false); 202 zf.add("file0.txt", new ByteArrayInputStream(testBytes0), false); 208 zf.add("file1.txt", new ByteArrayInputStream(testBytes1), false); 256 zf.add("foo", new ByteArrayInputStream(recognizable), false); [all …]
|
D | ZFileNotificationTest.java | 80 added.add(new ApkZLibPair<>(entry, replaced)); in added() 87 removed.add(entry); in removed() 121 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyAddFile() 144 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyRemoveFile() 167 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyUpdateFile() 172 zf.add("foo", new ByteArrayInputStream(new byte[] { 2, 3 })); in notifyUpdateFile() 193 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyOpenUpdateClose() 217 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyOpenUpdate() 240 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyUpdate() 244 zf.add("bar", new ByteArrayInputStream(new byte[] { 2, 3 })); in notifyUpdate() [all …]
|
D | ZFileTest.java | 182 zf.add("wiki", new ByteArrayInputStream(wikiData)); in compressedFilesReadableByJavaZip() 183 zf.add("rfc", new ByteArrayInputStream(rfcData)); in compressedFilesReadableByJavaZip() 184 zf.add("lena", new ByteArrayInputStream(lenaData)); in compressedFilesReadableByJavaZip() 287 zf.add("foo", new ByteArrayInputStream(new byte[] { 0, 1 })); 331 zf.add("file2", new ByteArrayInputStream(new byte[] { 11, 12 })); 371 zf.add("file3", new ByteArrayInputStream(new byte[]{11, 12})); 422 zf.add("file1", new ByteArrayInputStream(newData)); 473 zf.add("file3", new ByteArrayInputStream(newData)); 546 zf.add("a/b/c", new ByteArrayInputStream(new byte[]{1, 2, 3})); in addingFileDoesNotAddDirectoriesAutomatically() 768 zipNoOffset.add("x", new ByteArrayInputStream(new byte[]{1, 2})); in extraDirectoryOffsetNonEmptyFile() [all …]
|
D | ExtraFieldTest.java | 200 zf.add("before", new ByteArrayInputStream(new byte[] { 0, 1, 2 })); in addExtraFieldToExistingEntry() 201 zf.add("extra", new ByteArrayInputStream(new byte[] { 3, 4, 5 })); in addExtraFieldToExistingEntry() 202 zf.add("after", new ByteArrayInputStream(new byte[] { 6, 7, 8 })); in addExtraFieldToExistingEntry() 242 zf.add("before", new ByteArrayInputStream(new byte[] { 0, 1, 2 })); in removeExtraFieldFromExistingEntry() 243 zf.add("extra", new ByteArrayInputStream(new byte[] { 3, 4, 5 })); in removeExtraFieldFromExistingEntry() 244 zf.add("after", new ByteArrayInputStream(new byte[] { 6, 7, 8 })); in removeExtraFieldFromExistingEntry() 285 zf.add("before", new ByteArrayInputStream(new byte[] { 0, 1, 2 })); in updateExtraFieldOfExistingEntry() 286 zf.add("extra", new ByteArrayInputStream(new byte[] { 3, 4, 5 })); in updateExtraFieldOfExistingEntry() 287 zf.add("after", new ByteArrayInputStream(new byte[] { 6, 7, 8 })); in updateExtraFieldOfExistingEntry()
|
D | ZipToolsTest.java | 156 zf.add("root", new ByteArrayInputStream(ZipTestUtils.rsrcBytes("root"))); in testReadZFile() 157 zf.add("images/", new ByteArrayInputStream(new byte[0])); in testReadZFile() 158 zf.add( in testReadZFile() 161 zf.add("text-files/", new ByteArrayInputStream(new byte[0])); in testReadZFile() 162 zf.add( in testReadZFile() 165 zf.add( in testReadZFile() 171 command.add(zfile.getAbsolutePath()); in testReadZFile()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | Options.kt | 822 mutableSourcePath.add(File("")) in <lambda>() 890 … ARG_SHOW_ANNOTATION, "-showAnnotation" -> mutableShowAnnotations.add(getValue(args, ++index)) in <lambda>() 894 mutableShowSingleAnnotations.add(annotation) in <lambda>() 896 mutableShowAnnotations.add(annotation) in <lambda>() 901 mutableShowForStubPurposesAnnotation.add(annotation) in <lambda>() 903 mutableShowAnnotations.add(annotation) in <lambda>() 914 mutableHideAnnotations.add(getValue(args, ++index)) in <lambda>() 916 mutableHideMetaAnnotations.add(getValue(args, ++index)) in <lambda>() 936 mutablePassThroughAnnotations.add(path) in <lambda>() 943 mutableExcludeAnnotations.add(path) in <lambda>() [all …]
|
D | SdkFileWriter.kt | 85 … SDK_CONSTANT_TYPE_ACTIVITY_ACTION -> activityActions.add(value.toString()) in generate() 86 … SDK_CONSTANT_TYPE_BROADCAST_ACTION -> broadcastActions.add(value.toString()) in generate() 87 SDK_CONSTANT_TYPE_SERVICE_ACTION -> serviceActions.add(value.toString()) in generate() 88 SDK_CONSTANT_TYPE_CATEGORY -> categories.add(value.toString()) in generate() 89 SDK_CONSTANT_TYPE_FEATURE -> features.add(value.toString()) in generate() 103 widgets.add(clazz) in generate() 107 layouts.add(clazz) in generate() 123 TYPE_WIDGET -> widgets.add(clazz) in generate() 124 TYPE_LAYOUT -> layouts.add(clazz) in generate() 125 TYPE_LAYOUT_PARAM -> layoutParams.add(clazz) in generate()
|
/tools/test/connectivity/acts/framework/tests/controllers/monsoon_lib/sampling/engine/ |
D | calibration_test.py | 50 self.calibration_windows.add(C, O, G, 0) 51 self.calibration_windows.add(C, O, G, 1) 52 self.calibration_windows.add(C, O, G, 2) 56 self.calibration_windows.add(C, O, G, expected_value) 66 self.calibration_windows.add(C, O, G, value_to_remove) 68 self.calibration_windows.add(C, O, G, new_value) 79 self.calibration_windows.add(C, O, G, value) 87 self.calibration_windows.add(C, O, G, value) 109 self.calibration_scalars.add(C, O, G, ignored_value) 110 self.calibration_scalars.add(C, O, G, expected_value) [all …]
|
/tools/asuite/atest-py2/test_finders/ |
D | test_finder_utils.py | 282 verified_tests.add(fpath) 290 verified_tests.add(test) 608 targets.add(_PERF_SETUP_LABEL) 613 targets.add(target_to_add) 624 targets.add(_CTS_JAR) 658 targets.add(os.path.join(rel_out_dir, sanitized_target)) 726 plans.add(xml_file) 771 targets.add(value) 776 targets.add(_get_vts_binary_src_target(value, rel_out_dir)) 787 targets.add(os.path.join(rel_out_dir, push_target + _VTS_BITNESS_32)) [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 150 if (!cdEntryNames.add(entryName)) { in checkForDuplicateEntries() 155 if (duplicateCdEntryNames.add(entryName)) { in checkForDuplicateEntries() 243 sigBlockEntries.add(cdRecord); in verify() 298 signers.add(signer); in verify() 312 result.signers.add(signer.getResult()); in verify() 334 result.ignoredSigners.add(signer.getResult()); in verify() 337 result.signers.add(signer.getResult()); in verify() 339 remainingSigners.add(signer); in verify() 385 signatureEntryNames.add(manifestEntry.getName()); in verify() 387 signatureEntryNames.add(signer.getSignatureBlockEntryName()); in verify() [all …]
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/ |
D | ManifestGenerationTest.java | 49 zf.add("abc", new ByteArrayInputStream(new byte[]{1})); in elementaryManifestGeneration() 50 zf.add("x/", new ByteArrayInputStream(new byte[0])); in elementaryManifestGeneration() 51 zf.add("x/abc", new ByteArrayInputStream(new byte[]{2})); in elementaryManifestGeneration() 71 linesSet.add(l.trim()); in elementaryManifestGeneration() 86 zf.add("wiki", wiki); in manifestGenerationOnHalfWrittenFile() 107 linesSet.add(l.trim()); in manifestGenerationOnHalfWrittenFile() 122 zf.add("wiki", wiki); in manifestGenerationOnExistingFile() 145 linesSet.add(l.trim()); in manifestGenerationOnExistingFile() 164 zf.add("wiki", wiki); in manifestGenerationOnIncrementalNoChanges()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiClassItem.kt | 119 classes.add(curr) in <lambda>() 127 result.add(item) in <lambda>() 139 result.add(itf) in <lambda>() 359 throwsTypes.add(type) in <lambda>() 361 throwsTypes.add(codebase.findOrCreateClass(((type as PsiClassItem).psiClass))) in <lambda>() 371 (methods as MutableList<PsiMethodItem>).add(method as PsiMethodItem) in <lambda>() 454 methods.add(PsiConstructorItem.create(codebase, item, psiMethod)) in <lambda>() 477 constructors.add(constructor) in <lambda>() 486 constructors.add(constructor) in <lambda>() 495 methods.add(method) in <lambda>() [all …]
|
D | PsiCompilationUnit.kt | 102 imports.add(classItem) in getImportStatements() 111 imports.add(pkgItem) in getImportStatements() 117 imports.add(methodItem) in getImportStatements() 127 imports.add(fieldItem) in getImportStatements() 138 imports.add(classItem) in getImportStatements() 168 imports.filterIsInstance<PackageItem>().forEach { result.add(it) } in getImportStatements() 185 found.add(name) in getImportStatements() 193 result.add(referenced) in getImportStatements() 218 topLevel.add(classItem) in classes()
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | DriverTest.kt | 199 paths.add(file.path) in <lambda>() 513 signatureSource?. let { sources.add(it) } in <lambda>() 523 args.add(signatureFile.path) in <lambda>() 526 args.add(ARG_HIDE) in <lambda>() 527 args.add("HiddenSuperclass") // Suppress warning #111 in <lambda>() 780 args.add(ARG_SHOW_ANNOTATION) in <lambda>() 781 args.add(annotation) in <lambda>() 784 args.add(ARG_SHOW_ANNOTATION) in <lambda>() 785 args.add("android.annotation.SystemApi") in <lambda>() 788 args.add(ARG_SHOW_ANNOTATION) in <lambda>() [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | FileUseMap.java | 103 map.add(entry); in internalAdd() 106 free.add(entry); in internalAdd() 131 private void add(@Nonnull FileUseMapEntry<?> entry) { in add() method in FileUseMap 177 <T> FileUseMapEntry<T> add(long start, long end, @Nonnull T store) { 182 add(entry); 228 result.add(FileUseMapEntry.makeFree(farStart, start)); in split() 231 result.add(entry); in split() 234 result.add(FileUseMapEntry.makeFree(end, farEnd)); in split() 520 freeAreas.add(area); in getFreeAreas() 583 .forEach(j::add);
|
D | ZFile.java | 674 FileUseMapEntry<StoredEntry> mapEntry = map.add(start, end, entry); in readData() 808 eocdEntry = map.add(eocdStart, eocdStart + eocd.getEocdSize(), eocd); in readEocd() 864 directoryEntry = map.add( in readCentralDirectory() 1087 .peek(extraFieldSegments::add) in update() 1097 extraFieldSegments.add( in update() 1102 entries.put(name, map.add(newStart, newStart + newSize, storedEntry)); in update() 1379 newStored.add(mapEntry.getStore()); in computeCentralDirectory() 1395 directoryEntry = map.add(directoryOffset, directoryOffset + newDirectoryBytes.length, in computeCentralDirectory() 1495 eocdEntry = map.add(eocdOffset, eocdOffset + eocdBytes.length, eocd); in computeEocd() 1634 public void add(@Nonnull String name, @Nonnull InputStream stream) throws IOException { in add() method [all …]
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | SigningCertificateLineageTest.java | 100 signers.add( in testLineageFromBytesContainsExpectedSigners() 102 signers.add( in testLineageFromBytesContainsExpectedSigners() 104 signers.add( in testLineageFromBytesContainsExpectedSigners() 117 signers.add( in testLineageFromFileContainsExpectedSigners() 119 signers.add( in testLineageFromFileContainsExpectedSigners() 121 signers.add( in testLineageFromFileContainsExpectedSigners() 336 expectedCertSet.add(mSigners.get(i).getCertificate()); in testAllExpectedCertificatesAreInLineage() 377 lineages.add(createLineageWithSignersFromResources(FIRST_RSA_1024_SIGNER_RESOURCE_NAME, in testConsolidatedLineageWithDisjointLineagesFail() 379 lineages.add(createLineageWithSignersFromResources(FIRST_RSA_2048_SIGNER_RESOURCE_NAME, in testConsolidatedLineageWithDisjointLineagesFail() 512 mSigners.add(oldSignerConfig); in createLineageWithSignersFromResources() [all …]
|
/tools/asuite/atest/test_finders/ |
D | test_finder_utils.py | 345 verified_tests.add(fpath) 348 verified_tests.add(test) 682 targets.add(target_to_add) 693 targets.add(_CTS_JAR) 729 targets.add(os.path.join(rel_out_dir, sanitized_target)) 797 plans.add(xml_file) 842 targets.add(value) 847 targets.add(_get_vts_binary_src_target(value, rel_out_dir)) 858 targets.add(os.path.join( 860 targets.add(os.path.join( [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeSigner.java | 102 algorithms.add(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms() 104 algorithms.add(SignatureAlgorithm.VERITY_RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms() 115 algorithms.add( in getSuggestedSignatureAlgorithms() 120 algorithms.add(SignatureAlgorithm.VERITY_DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms() 129 algorithms.add(SignatureAlgorithm.ECDSA_WITH_SHA256); in getSuggestedSignatureAlgorithms() 131 algorithms.add(SignatureAlgorithm.VERITY_ECDSA_WITH_SHA256); in getSuggestedSignatureAlgorithms() 202 signerBlocks.add(signerBlock); in generateApkSignatureSchemeV2Block() 245 digests.add(Pair.of(signatureAlgorithm.getId(), contentDigest)); in generateSignerBlock()
|
D | V2SchemeVerifier.java | 208 result.signers.add(signerInfo); in parseSigners() 266 result.signatures.add( in parseSigner() 274 supportedSignatures.add( in parseSigner() 326 contentDigestsToVerify.add(signatureAlgorithm.getContentDigestAlgorithm()); in parseSigner() 361 result.certs.add(certificate); in parseSigner() 394 result.contentDigests.add( in parseSigner() 405 sigAlgsFromSignaturesRecord.add(signature.getAlgorithmId()); in parseSigner() 409 sigAlgsFromDigestsRecord.add(digest.getSignatureAlgorithmId()); in parseSigner() 431 result.additionalAttributes.add( in parseSigner() 439 supportedExpectedApkSigSchemeIds.add(foundId); in parseSigner()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextTypeParameterList.kt | 39 names.add(parameter.simpleName()) in toString() 75 add(list, s, start, i + 1) in typeParameterStrings() 78 add(list, s, start, i) in typeParameterStrings() 83 add(list, s, start, i) in typeParameterStrings() 96 private fun add(list: MutableList<String>, s: String, from: Int, to: Int) { in add() method 99 list.add(s.substring(i, to)) in add()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeSigner.java | 90 algorithms.add(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms() 92 algorithms.add(SignatureAlgorithm.VERITY_RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms() 103 algorithms.add( in getSuggestedSignatureAlgorithms() 108 algorithms.add(SignatureAlgorithm.VERITY_DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms() 117 algorithms.add(SignatureAlgorithm.ECDSA_WITH_SHA256); in getSuggestedSignatureAlgorithms() 119 algorithms.add(SignatureAlgorithm.VERITY_ECDSA_WITH_SHA256); in getSuggestedSignatureAlgorithms() 182 signerBlocks.add(signerBlock); in generateApkSignatureSchemeV3Block() 223 digests.add(Pair.of(signatureAlgorithm.getId(), contentDigest)); in generateSignerBlock()
|
D | V3SchemeVerifier.java | 197 lineages.add(signer.signingCertificateLineage); in verify() 258 result.signers.add(signerInfo); in parseSigners() 313 result.signatures.add( in parseSigner() 323 supportedSignatures.add( in parseSigner() 375 contentDigestsToVerify.add(signatureAlgorithm.getContentDigestAlgorithm()); in parseSigner() 425 result.certs.add(certificate); in parseSigner() 457 result.contentDigests.add( in parseSigner() 468 sigAlgsFromSignaturesRecord.add(signature.getAlgorithmId()); in parseSigner() 472 sigAlgsFromDigestsRecord.add(digest.getSignatureAlgorithmId()); in parseSigner() 492 result.additionalAttributes.add( in parseSigner()
|
/tools/test/connectivity/acts/framework/tests/metrics/loggers/ |
D | bounded_metrics_test.py | 60 logger.add('towels_metric', 123, lower_limit=1, upper_limit=2, 84 logger.add('limitless_metric', 123, unit='skies') 113 logger.add('limitless_metric', 123, unit='skies') 133 logger.add('limitless_metric', 123, unit='skies') 207 self.bounded_metrics.add('galaxies', 1234, lower_limit=-5, 242 self.bounded_metric.add('never_gonna_give_you_up', 1) 245 self.bounded_metric.add('never_gonna_let_you_down', 2) 248 self.bounded_metric.add('never_gonna_run_around_and_desert_you',
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | DefaultApkSignerEngine.java | 175 DISCARDED_SIGNATURE_BLOCK_IDS.add(VERITY_PADDING_BLOCK_ID); 178 DISCARDED_SIGNATURE_BLOCK_IDS.add(Constants.V1_SOURCE_STAMP_BLOCK_ID); 179 DISCARDED_SIGNATURE_BLOCK_IDS.add(Constants.V2_SOURCE_STAMP_BLOCK_ID); 289 mV1SignerConfigs.add(v1SignerConfig); in createV1SignerConfigs() 318 signerConfig.add( in createV2SignerConfigs() 367 processedConfigs.add(config); in processV3Configs() 438 signerConfigs.add( in createSigningBlockSignerConfigs() 583 mPreservedV2Signers.add(v2Signer.getSecond()); in inputApkSigningBlock() 590 mPreservedSignatureBlocks.add(signatureBlock); in inputApkSigningBlock() 624 mPreservedSignatureBlocks.add(signatureBlock); in inputApkSigningBlock() [all …]
|