/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/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;
|
/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 | 313 ByteBuffer signature = getLengthPrefixedSlice(signatures); in parseSigner() local 314 int sigAlgorithmId = signature.getInt(); in parseSigner() 315 byte[] sigBytes = readLengthPrefixedByteArray(signature); in parseSigner() 348 for (ApkSigningBlockUtils.SupportedSignature signature : signaturesToVerify) { in parseSigner() 349 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in parseSigner() 372 byte[] sigBytes = signature.signature; in parseSigner() 470 for (ApkSigningBlockUtils.Result.SignerInfo.Signature signature : result.signatures) { in parseSigner() 471 sigAlgsFromSignaturesRecord.add(signature.getAlgorithmId()); in parseSigner()
|
/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/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4Signature.java | 72 public final byte[] signature; field in V4Signature.SigningInfo 75 byte[] publicKey, int signatureAlgorithmId, byte[] signature) { in SigningInfo() argument 81 this.signature = signature; in SigningInfo() 91 byte[] signature = readBytes(buffer); in fromByteArray() 93 signatureAlgorithmId, signature); in fromByteArray() 99 + bytesSize(this.signature); in toByteArray() 106 writeBytes(buffer, this.signature); in toByteArray()
|
D | V4SchemeVerifier.java | 70 final V4Signature signature; in verify() local 73 signature = V4Signature.readFrom(input); in verify() 80 if (signature == null) { in verify() 86 if (signature.version != V4Signature.CURRENT_VERSION) { in verify() 87 result.addWarning(Issue.V4_SIG_VERSION_NOT_CURRENT, signature.version, in verify() 92 signature.hashingInfo); in verify() 94 signature.signingInfo); in verify() 129 final byte[] sigBytes = signingInfo.signature; in parseAndVerifySignatureBlock()
|
D | V4SchemeSigner.java | 141 final V4Signature signature; in generateV4Signature() local 143 signature = generateSignature(signerConfig, hashingInfo, apkDigest, additionalData, in generateV4Signature() 149 return Pair.of(signature, tree); in generateV4Signature() 185 final byte[] signature = signatures.get(0).getSecond(); in generateSignature() 189 signature); in generateSignature()
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
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 | AnnotationsMergerTest.kt | 137 fun `Merge signature files`() { in Merge signature files() 214 …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()
|
D | Java9LanguageFeaturesTest.kt | 55 fun `Basic class signature extraction`() { in Basic class signature extraction()
|
D | SystemServiceCheckTest.kt | 23 fun `SystemService OK, loaded from signature file`() { in SystemService OK, loaded from signature file()
|
/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/stamp/ |
D | SourceStampVerifier.java | 204 ByteBuffer signature = ApkSigningBlockUtils.getLengthPrefixedSlice(signatures); in verifySourceStampSignature() local 205 int sigAlgorithmId = signature.getInt(); in verifySourceStampSignature() 206 byte[] sigBytes = ApkSigningBlockUtils.readLengthPrefixedByteArray(signature); in verifySourceStampSignature() 235 for (ApkSigningBlockUtils.SupportedSignature signature : signaturesToVerify) { in verifySourceStampSignature() 236 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in verifySourceStampSignature() 249 byte[] sigBytes = signature.signature; in verifySourceStampSignature()
|
/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/test/connectivity/acts/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/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeSigner.java | 506 Signature signature = Signature.getInstance(jcaSignatureAlgorithm); in generateSignatureBlock() local 507 signature.initSign(signerConfig.privateKey); in generateSignatureBlock() 508 signature.update(signatureFileBytes); in generateSignatureBlock() 509 signatureBytes = signature.sign(); in generateSignatureBlock() 518 Signature signature = Signature.getInstance(jcaSignatureAlgorithm); in generateSignatureBlock() local 519 signature.initVerify(publicKey); in generateSignatureBlock() 520 signature.update(signatureFileBytes); in generateSignatureBlock() 521 if (!signature.verify(signatureBytes)) { in generateSignatureBlock()
|
/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/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/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 1262 Signature signature = Signature.getInstance(jcaSignatureAlgorithm); in generateSignaturesOverData() local 1263 signature.initSign(signerConfig.privateKey); in generateSignaturesOverData() 1265 signature.setParameter(jcaSignatureAlgorithmParams); in generateSignaturesOverData() 1267 signature.update(data); in generateSignaturesOverData() 1268 signatureBytes = signature.sign(); in generateSignaturesOverData() 1276 Signature signature = Signature.getInstance(jcaSignatureAlgorithm); in generateSignaturesOverData() local 1277 signature.initVerify(publicKey); in generateSignaturesOverData() 1279 signature.setParameter(jcaSignatureAlgorithmParams); in generateSignaturesOverData() 1281 signature.update(data); in generateSignaturesOverData() 1282 if (!signature.verify(signatureBytes)) { in generateSignaturesOverData() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/pkcs7/ |
D | SignerInfo.java | 53 public ByteBuffer signature; field in SignerInfo
|
/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
|