Home
last modified time | relevance | path

Searched refs:signature (Results 1 – 25 of 35) sorted by relevance

12

/tools/metalava/
DFORMAT.md3 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 …]
DREADME.md10 * Allow extracting the API (into signature text files, into stub API files
41 signature files, the SDK stub files, external annotations etc.
72 signature files for the framework as doclava1.
75 means we can regenerate signature files etc for older versions according to
80 IntelliJ external annotations data as well as signature files containing
84 * Support for an updated signature file format (which is described in FORMAT.md)
89 * Improve the signature format such that it for example labels enums "enum"
95 ignores) block comments in the signature files.)
97 * Add support for writing (and reading) annotations into the signature
104 their nullness contract, the signature files would very quickly become
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SigningCertificateLineage.java113 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
DV3SchemeVerifier.java312 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()
462 for (ApkSigningBlockUtils.Result.SignerInfo.Signature signature : result.signatures) { in parseSigner()
463 sigAlgsFromSignaturesRecord.add(signature.getAlgorithmId()); in parseSigner()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DJarSigningTest.java109 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/metalava/src/main/java/com/android/tools/metalava/
DAnnotationsMerger.kt364 var signature: String? = item.getAttribute(ATTR_NAME) in mergeDocument() variable
365 if (signature == null || signature == "null") { in mergeDocument()
369 signature = unescapeXml(signature) in mergeDocument()
370 if (signature == "java.util.Calendar int get(int)") { in mergeDocument()
373 } else if (signature == "java.util.Calendar void set(int, int, int) 1" || in mergeDocument()
374 signature == "java.util.Calendar void set(int, int, int, int, int) 1" || in mergeDocument()
375 signature == "java.util.Calendar void set(int, int, int, int, int, int) 1" in mergeDocument()
381 val matcher = XML_SIGNATURE.matcher(signature) in mergeDocument()
385 warning("Could not find class for $signature") in mergeDocument()
415 } else if (signature.indexOf(' ') == -1 && signature.indexOf('.') != -1) { in mergeDocument()
[all …]
DRewriteAnnotations.kt177 signature: String?, in <lambda>()
188 super.visit(version, flagsWithoutPublic, name, signature, superName, interfaces) in <lambda>()
/tools/dexter/slicer/export/slicer/
Ddex_ir_builder.h35 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;
Dinstrumentation.h49 SLICER_CHECK(hook_method_id_.signature == nullptr); in hook_method_id_()
69 SLICER_CHECK(hook_method_id_.signature == nullptr); in ExitHook()
89 SLICER_CHECK(detour_method_id_.signature == nullptr); in DetourHook()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java267 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()
400 for (ApkSigningBlockUtils.Result.SignerInfo.Signature signature : result.signatures) { in parseSigner()
401 sigAlgsFromSignaturesRecord.add(signature.getAlgorithmId()); in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java514 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/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java1147 Signature signature = Signature.getInstance(jcaSignatureAlgorithm); in generateSignaturesOverData() local
1148 signature.initSign(signerConfig.privateKey); in generateSignaturesOverData()
1150 signature.setParameter(jcaSignatureAlgorithmParams); in generateSignaturesOverData()
1152 signature.update(data); in generateSignaturesOverData()
1153 signatureBytes = signature.sign(); in generateSignaturesOverData()
1161 Signature signature = Signature.getInstance(jcaSignatureAlgorithm); in generateSignaturesOverData() local
1162 signature.initVerify(publicKey); in generateSignaturesOverData()
1164 signature.setParameter(jcaSignatureAlgorithmParams); in generateSignaturesOverData()
1166 signature.update(data); in generateSignaturesOverData()
1167 if (!signature.verify(signatureBytes)) { in generateSignaturesOverData()
[all …]
/tools/metalava/src/test/java/com/android/tools/metalava/
DJDiffXmlTest.kt24 fun `Loading a signature file and writing the API back out`() { in Loading a signature file and writing the API back out()
746 fun `Half float short from signature file`() { in Half float short from signature file()
915 fun `Test default methods from signature files`() { in Test default methods from signature files()
961 fun `Test partial signature files`() { in Test partial signature files()
DApiFromTextTest.kt25 fun `Loading a signature file and writing the API back out`() { in Loading a signature file and writing the API back out()
274 fun `Loading a signature file with alternate modifier order`() { in Loading a signature file with alternate modifier order()
424 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()
561 fun `Loading a signature file with default values`() { in Loading a signature file with default values()
DApiFileTest.kt61 fun `Basic class signature extraction`() { in Basic class signature extraction()
1450 fun `Superclass signature extraction`() { in Superclass signature extraction()
1699 fun `Package with only hidden classes should be removed from signature files`() { in Package with only hidden classes should be removed from signature files()
1850 fun `Check various generics signature subtleties`() { in Check various generics signature subtleties()
2941 fun `Private API signature corner cases`() { in Private API signature corner cases()
DCompatibilityCheckTest.kt1503 fun `Test type variables from text signature files`() { in Test type variables from text signature files()
2259 fun `Comparing annotations with methods with v1 signature files`() { in Comparing annotations with methods with v1 signature files()
2309 fun `Compare signatures with Kotlin nullability from signature`() { in Compare signatures with Kotlin nullability from signature()
2606 fun `Fail on compatible changes that affect signature file contents`() { in Fail on compatible changes that affect signature file contents()
DJava9LanguageFeaturesTest.kt56 fun `Basic class signature extraction`() { in Basic class signature extraction()
/tools/dexter/slicer/
Ddex_ir_builder.cc27 && 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/test/connectivity/acts/tests/google/bt/
Drelay_tool.py87 signature = inspect.signature(func)
113 print('%s%s: \n%s\n' % (func_name, str(signature), docstring),
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiTypeItem.kt193 val signature = getPrimitiveSignature(toString()) in internalName() constant
194 if (signature != null) { in internalName()
195 return signature in internalName()
388 signature: StringBuilder, in appendJvmTypeName()
392 signature.append('L').append(className).append(';') in appendJvmTypeName()
/tools/test/connectivity/acts/framework/acts/test_utils/abstract_devices/
Dbluetooth_handsfree_abstract_device.py46 required_signature = inspect.signature(required_func)
47 if inspect.signature(controller_func) != required_signature:
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DTypeItem.kt244 fun cleanupGenerics(signature: String): String { in <lambda>()
249 return signature.replace(" extends java.lang.Object>", ">") in <lambda>()
/tools/apksig/
DREADME.md10 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
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/
Dapollo_qa.proto42 // our custom signature validation has begun
44 // our custom signature validation rejected the image
/tools/apksig/src/main/java/com/android/apksig/internal/x509/
DCertificate.java38 public ByteBuffer signature; field in Certificate

12