/tools/metalava/ |
D | FORMAT.md | 3 This document describes the signature file format created and used by metalava, 8 1. The format emitted by doclava, and used for Android's signature files up 10 over time, so older signature files vary a bit (many of these changes were 30 Why did we change from the historical doclava signature format (v1) 37 That means the annotations should be part of the signature files too -- such 43 And if we were going to change the signature format, we might as well make some 50 reminders and other issues with the signature source (though the update-api task 55 New signature files (v2+) generally include a file header comment which states 57 signature files. For example, in v3 the type "String" means "@NonNull String", 71 The new signature format now includes annotations; not all annotations (such as [all …]
|
D | README.md | 10 * Allow extracting the API (into signature text files, into stub API files 44 signature files, the SDK stub files, external annotations etc. 75 signature files for the framework as doclava1. 78 means we can regenerate signature files etc for older versions according to 83 IntelliJ external annotations data as well as signature files containing 87 * Support for an updated signature file format (which is described in FORMAT.md) 92 * Improve the signature format such that it for example labels enums "enum" 98 ignores) block comments in the signature files.) 100 * Add support for writing (and reading) annotations into the signature 107 their nullness contract, the signature files would very quickly become [all …]
|
/tools/platform-compat/java/android/processor/compat/unsupportedappusage/ |
D | SignatureConverter.java | 69 String signature; in getSignature() local 72 signature = buildMethodSignature((ExecutableElement) element); in getSignature() 75 signature = buildConstructorSignature((ExecutableElement) element); in getSignature() 78 signature = buildFieldSignature((VariableElement) element); in getSignature() 83 return verifyExpectedSignature(types, signature, element, annotation); in getSignature() 109 StringBuilder signature = new StringBuilder("L"); in getClassSignature() local 116 signature.append(((PackageElement) enclosing) in getClassSignature() 120 signature.append('/'); in getClassSignature() 124 signature.append(enclosing.getSimpleName()).append('$'); in getClassSignature() 131 return signature in getClassSignature() [all …]
|
D | UnsupportedAppUsageProcessor.java | 90 String signature = signatureConverter.getSignature( in process() local 92 if (signature != null) { in process() 93 String annotationIndex = getAnnotationIndex(signature, annotation, in process() 141 private String getAnnotationIndex(String signature, TypeElement annotation, Element element) { in getAnnotationIndex() argument 157 signature, in getAnnotationIndex()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | AnnotationsMerger.kt | 365 var signature: String? = item.getAttribute(ATTR_NAME) in mergeDocument() variable 366 if (signature == null || signature == "null") { in mergeDocument() 370 signature = unescapeXml(signature) in mergeDocument() 371 if (signature == "java.util.Calendar int get(int)") { in mergeDocument() 374 } else if (signature == "java.util.Calendar void set(int, int, int) 1" || in mergeDocument() 375 signature == "java.util.Calendar void set(int, int, int, int, int) 1" || in mergeDocument() 376 signature == "java.util.Calendar void set(int, int, int, int, int, int) 1" in mergeDocument() 382 val matcher = XML_SIGNATURE.matcher(signature) in mergeDocument() 386 warning("Could not find class for $signature") in mergeDocument() 416 } else if (signature.indexOf(' ') == -1 && signature.indexOf('.') != -1) { in mergeDocument() [all …]
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/ |
D | JarSigningTest.java | 109 Manifest signature = new Manifest(new ByteArrayInputStream(signatureEntry.read())); in signJarWithPrexistingSimpleTextFilePre18() local 110 assertEquals(3, signature.getMainAttributes().size()); in signJarWithPrexistingSimpleTextFilePre18() 111 assertEquals("1.0", signature.getMainAttributes().getValue("Signature-Version")); in signJarWithPrexistingSimpleTextFilePre18() 112 assertEquals("1.0 (Android)", signature.getMainAttributes().getValue("Created-By")); in signJarWithPrexistingSimpleTextFilePre18() 119 signature.getMainAttributes().getValue("SHA1-Digest-Manifest")); in signJarWithPrexistingSimpleTextFilePre18() 121 Attributes signAttrs = signature.getAttributes("directory/file"); in signJarWithPrexistingSimpleTextFilePre18() 167 Manifest signature = new Manifest(new ByteArrayInputStream(signatureEntry.read())); in signJarWithPrexistingSimpleTextFilePos18() local 168 assertEquals(3, signature.getMainAttributes().size()); in signJarWithPrexistingSimpleTextFilePos18() 169 assertEquals("1.0", signature.getMainAttributes().getValue("Signature-Version")); in signJarWithPrexistingSimpleTextFilePos18() 170 assertEquals("1.0 (Android)", signature.getMainAttributes().getValue("Created-By")); in signJarWithPrexistingSimpleTextFilePos18() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SigningCertificateLineage.java | 113 byte[] signature = readLengthPrefixedByteArray(nodeBytes); in readSigningCertificateLineage() 128 if (!sig.verify(signature)) { in readSigningCertificateLineage() 153 SignatureAlgorithm.findById(sigAlgorithmId), signature, flags)); in readSigningCertificateLineage() 215 byte[] prefixedSignature = encodeAsLengthPrefixedElement(node.signature); in encodeSigningCertificateNode() 252 byte[] signature, in SigningCertificateNode() argument 257 this.signature = signature; in SigningCertificateNode() 270 if (!Arrays.equals(signature, that.signature)) return false; in equals() 299 public final byte[] signature; field in V3SigningCertificateLineage.SigningCertificateNode
|
D | V3SchemeVerifier.java | 312 ByteBuffer signature = getLengthPrefixedSlice(signatures); in parseSigner() local 313 int sigAlgorithmId = signature.getInt(); in parseSigner() 314 byte[] sigBytes = readLengthPrefixedByteArray(signature); in parseSigner() 347 for (ApkSigningBlockUtils.SupportedSignature signature : signaturesToVerify) { in parseSigner() 348 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in parseSigner() 371 byte[] sigBytes = signature.signature; in parseSigner() 469 for (ApkSigningBlockUtils.Result.SignerInfo.Signature signature : result.signatures) { in parseSigner() 470 sigAlgsFromSignaturesRecord.add(signature.getAlgorithmId()); in parseSigner()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 1197 Signature signature = Signature.getInstance(jcaSignatureAlgorithm); in generateSignaturesOverData() local 1198 signature.initSign(signerConfig.privateKey); in generateSignaturesOverData() 1200 signature.setParameter(jcaSignatureAlgorithmParams); in generateSignaturesOverData() 1202 signature.update(data); in generateSignaturesOverData() 1203 signatureBytes = signature.sign(); in generateSignaturesOverData() 1211 Signature signature = Signature.getInstance(jcaSignatureAlgorithm); in generateSignaturesOverData() local 1212 signature.initVerify(publicKey); in generateSignaturesOverData() 1214 signature.setParameter(jcaSignatureAlgorithmParams); in generateSignaturesOverData() 1216 signature.update(data); in generateSignaturesOverData() 1217 if (!signature.verify(signatureBytes)) { in generateSignaturesOverData() [all …]
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | ApiFileTest.kt | 62 fun `Basic class signature extraction`() { in Basic class signature extraction() 1778 fun `Superclass signature extraction`() { in Superclass signature extraction() 2025 fun `Package with only hidden classes should be removed from signature files`() { in Package with only hidden classes should be removed from signature files() 2176 fun `Check various generics signature subtleties`() { in Check various generics signature subtleties() 3877 fun `Test merging API signature files`() { in Test merging API signature files() 3952 fun `Test merging API signature files, one refer to another`() { in Test merging API signature files, one refer to another() 3960 fun `Test merging API signature files, one refer to another, in reverse order`() { in Test merging API signature files, one refer to another, in reverse order() 3969 fun `Test merging API signature files with reverse dependency`() { in Test merging API signature files with reverse dependency() 3999 fun `Test merging 3 API signature files`() { in Test merging 3 API signature files() 4055 fun `Test cannot merging API signature files with duplicate class`() { in Test cannot merging API signature files with duplicate class() [all …]
|
D | JDiffXmlTest.kt | 24 fun `Loading a signature file and writing the API back out`() { in Loading a signature file and writing the API back out() 745 fun `Half float short from signature file`() { in Half float short from signature file() 914 fun `Test default methods from signature files`() { in Test default methods from signature files() 959 fun `Test partial signature files`() { in Test partial signature files()
|
D | ApiFromTextTest.kt | 25 fun `Loading a signature file and writing the API back out`() { in Loading a signature file and writing the API back out() 295 fun `Loading a signature file with alternate modifier order`() { in Loading a signature file with alternate modifier order() 445 fun `Loading a signature file with annotations on classes, fields, methods and parameters`() { in Loading a signature file with annotations on classes, fields, methods and parameters() 582 fun `Loading a signature file with default values`() { in Loading a signature file with default values()
|
D | CompatibilityCheckTest.kt | 1502 fun `Test type variables from text signature files`() { in Test type variables from text signature files() 2364 fun `Comparing annotations with methods with v1 signature files`() { in Comparing annotations with methods with v1 signature files() 2414 fun `Compare signatures with Kotlin nullability from signature`() { in Compare signatures with Kotlin nullability from signature() 2707 fun `Fail on compatible changes that affect signature file contents`() { in Fail on compatible changes that affect signature file contents()
|
D | AnnotationsMergerTest.kt | 137 fun `Merge signature files`() { in Merge signature files() 219 …e qualifier annotations from Java stub files onto stubs that are not in the API signature file`() { in Merge qualifier annotations from Java stub files onto stubs that are not in the API signature file()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 267 ByteBuffer signature = ApkSigningBlockUtils.getLengthPrefixedSlice(signatures); in parseSigner() local 268 int sigAlgorithmId = signature.getInt(); in parseSigner() 269 byte[] sigBytes = ApkSigningBlockUtils.readLengthPrefixedByteArray(signature); in parseSigner() 300 for (ApkSigningBlockUtils.SupportedSignature signature : signaturesToVerify) { in parseSigner() 301 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in parseSigner() 324 byte[] sigBytes = signature.signature; in parseSigner() 408 for (ApkSigningBlockUtils.Result.SignerInfo.Signature signature : result.signatures) { in parseSigner() 409 sigAlgsFromSignaturesRecord.add(signature.getAlgorithmId()); in parseSigner()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeSigner.java | 514 Signature signature = Signature.getInstance(jcaSignatureAlgorithm); in generateSignatureBlock() local 515 signature.initSign(signerConfig.privateKey); in generateSignatureBlock() 516 signature.update(signatureFileBytes); in generateSignatureBlock() 517 signatureBytes = signature.sign(); in generateSignatureBlock() 526 Signature signature = Signature.getInstance(jcaSignatureAlgorithm); in generateSignatureBlock() local 527 signature.initVerify(publicKey); in generateSignatureBlock() 528 signature.update(signatureFileBytes); in generateSignatureBlock() 529 if (!signature.verify(signatureBytes)) { in generateSignatureBlock() 570 signerInfo.signature = ByteBuffer.wrap(signatureBytes); in generateSignatureBlock()
|
/tools/dexter/slicer/export/slicer/ |
D | dex_ir_builder.h | 35 const char* signature; member 37 MethodId(const char* class_descriptor, const char* method_name, const char* signature = nullptr) 38 : class_descriptor(class_descriptor), method_name(method_name), signature(signature) { in class_descriptor() 80 Proto* FindPrototype(const char* signature) const;
|
D | instrumentation.h | 59 SLICER_CHECK(hook_method_id_.signature == nullptr); in EntryHook() 97 SLICER_CHECK(hook_method_id_.signature == nullptr); in ExitHook() 120 SLICER_CHECK(detour_method_id_.signature == nullptr); in DetourHook()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiTypeItem.kt | 194 val signature = getPrimitiveSignature(toString()) in internalName() constant 195 if (signature != null) { in internalName() 196 return signature in internalName() 387 signature: StringBuilder, in appendJvmTypeName() 391 signature.append('L').append(className).append(';') in appendJvmTypeName()
|
/tools/dexter/slicer/ |
D | dex_ir_builder.cc | 27 && method_decl->prototype->Signature() == signature; in Match() 39 auto ir_prototype = FindPrototype(method_id.signature); in FindMethod() 52 Proto* Builder::FindPrototype(const char* signature) const { in FindPrototype() 53 return dex_ir_->prototypes_lookup.Lookup(signature); in FindPrototype()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | TarUtil.java | 58 byte[] signature = new byte[GZIP_SIGNATURE.length]; in isGzip() 60 if (stream.read(signature) != signature.length) { in isGzip() 64 return Arrays.equals(GZIP_SIGNATURE, signature); in isGzip()
|
/tools/test/connectivity/acts_tests/tests/google/bt/ |
D | relay_tool.py | 87 signature = inspect.signature(func) 113 print('%s%s: \n%s\n' % (func_name, str(signature), docstring),
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/zip/ |
D | EndCentralDirectoryInfo.java | 150 private byte[] getEndCentralDirectoryInfo(File zipFile, byte[] signature) throws IOException { in getEndCentralDirectoryInfo() argument 163 signature, in getEndCentralDirectoryInfo()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | TypeItem.kt | 234 fun cleanupGenerics(signature: String): String { in <lambda>() 239 return signature.replace(" extends java.lang.Object>", ">") in <lambda>()
|
/tools/apksig/ |
D | README.md | 10 The key feature of apksig is that it knows about differences in APK signature verification logic 12 signature is expected to verify on all Android platform versions supported by the APK. When signing
|