/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | ECDSASignatureTest.java | 51 Signature signature = Signature.getInstance("NONEwithECDSA"); in assertNONEwithECDSATruncatesInputToFieldSize() local 52 signature.initSign(keyPair.getPrivate()); in assertNONEwithECDSATruncatesInputToFieldSize() 54 signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize() 55 signature.update(message); in assertNONEwithECDSATruncatesInputToFieldSize() 56 byte[] sigBytes = signature.sign(); in assertNONEwithECDSATruncatesInputToFieldSize() 58 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize() 59 signature.initVerify(keyPair.getPublic()); in assertNONEwithECDSATruncatesInputToFieldSize() 62 signature.update(message); in assertNONEwithECDSATruncatesInputToFieldSize() 63 assertTrue(signature.verify(sigBytes)); in assertNONEwithECDSATruncatesInputToFieldSize() 66 signature.update(message, 0, (keySizeBits + 7) / 8); in assertNONEwithECDSATruncatesInputToFieldSize() [all …]
|
D | RSASignatureTest.java | 72 Signature signature = Signature.getInstance("NONEwithRSA", provider); in testMaxMessageSizeWhenNoDigestUsed() local 73 signature.initSign(privateKey); in testMaxMessageSizeWhenNoDigestUsed() 74 signature.update(msg, 0, expectedMaxMessageSizeBytes); in testMaxMessageSizeWhenNoDigestUsed() 75 byte[] sigBytes = signature.sign(); in testMaxMessageSizeWhenNoDigestUsed() 77 signature.initVerify(publicKey); in testMaxMessageSizeWhenNoDigestUsed() 78 signature.update(msg, 0, expectedMaxMessageSizeBytes); in testMaxMessageSizeWhenNoDigestUsed() 79 assertTrue(signature.verify(sigBytes)); in testMaxMessageSizeWhenNoDigestUsed() 82 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testMaxMessageSizeWhenNoDigestUsed() 83 signature.initSign(privateKey); in testMaxMessageSizeWhenNoDigestUsed() 85 signature.update(msg, 0, expectedMaxMessageSizeBytes + 1); in testMaxMessageSizeWhenNoDigestUsed() [all …]
|
D | SignatureTest.java | 371 Signature signature = Signature.getInstance(sigAlgorithm); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning() local 372 signature.initSign(keyPair.getPrivate()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning() 373 assertSame(provider, signature.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning() 387 Signature signature = Signature.getInstance(sigAlgorithm); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenVerifying() local 388 signature.initVerify(keyPair.getPublic()); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenVerifying() 409 Signature signature = Signature.getInstance(sigAlgorithm, provider); in testValidSignatureGeneratedForEmptyMessage() local 410 signature.initSign(keyPair.getPrivate()); in testValidSignatureGeneratedForEmptyMessage() 411 byte[] sigBytes = signature.sign(); in testValidSignatureGeneratedForEmptyMessage() 414 signature.initVerify(keyPair.getPublic()); in testValidSignatureGeneratedForEmptyMessage() 415 assertTrue(signature.verify(sigBytes)); in testValidSignatureGeneratedForEmptyMessage() [all …]
|
/cts/tools/signature-tools/src/signature/model/util/ |
D | ITypeFactory.java | 17 package signature.model.util; 19 import signature.model.IClassReference; 20 import signature.model.IGenericDeclaration; 21 import signature.model.ITypeReference; 22 import signature.model.ITypeVariableReference; 23 import signature.model.impl.SigArrayType; 24 import signature.model.impl.SigClassDefinition; 25 import signature.model.impl.SigParameterizedType; 26 import signature.model.impl.SigTypeVariableDefinition; 27 import signature.model.impl.SigWildcardType;
|
D | ModelUtil.java | 17 package signature.model.util; 19 import signature.model.IAnnotatableElement; 20 import signature.model.IAnnotation; 21 import signature.model.IAnnotationElement; 22 import signature.model.IAnnotationField; 23 import signature.model.IApi; 24 import signature.model.IClassDefinition; 25 import signature.model.IField; 26 import signature.model.IPackage; 27 import signature.model.ITypeReference;
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | SignatureTest.java | 37 Signature signature = new Signature(SIGNATURE_STRING); in testSignatureStringConstructorValid() local 38 byte[] actualByteArray = signature.toByteArray(); in testSignatureStringConstructorValid() 47 Signature signature = new Signature(sig); in testSignatureStringConstructorNull() local 56 Signature signature = new Signature("123"); in testSignatureStringConstructorInvalidLength() local 64 Signature signature = new Signature(SIGNATURE_BYTE_ARRAY); in testSignatureByteArrayToCharsString() local 65 String actualString = signature.toCharsString(); in testSignatureByteArrayToCharsString() 73 Signature signature = new Signature(sig); in testSignatureByteArrayConstructorNull() local 81 Signature signature = new Signature(SIGNATURE_BYTE_ARRAY); in testSignatureToChars() local 82 char[] charArray = signature.toChars(); in testSignatureToChars() 91 Signature signature = new Signature(SIGNATURE_BYTE_ARRAY); in testSignatureToCharsExistingArrayCorrectlySized() local [all …]
|
/cts/tools/signature-tools/src/signature/model/impl/ |
D | Uninitialized.java | 17 package signature.model.impl; 25 import signature.model.IAnnotationField; 26 import signature.model.IClassDefinition; 27 import signature.model.IClassReference; 28 import signature.model.IPackage; 29 import signature.model.ITypeReference; 30 import signature.model.ITypeVariableDefinition; 31 import signature.model.ITypeVariableReference; 32 import signature.model.Kind;
|
D | SigExecutableMember.java | 17 package signature.model.impl; 19 import signature.model.IClassDefinition; 20 import signature.model.IExecutableMember; 21 import signature.model.IParameter; 22 import signature.model.ITypeReference; 23 import signature.model.ITypeVariableDefinition; 24 import signature.model.Modifier;
|
/cts/tools/signature-tools/src/signature/io/html/ |
D | ExecutableMemberComparator.java | 17 package signature.io.html; 19 import signature.compare.model.IExecutableMemberDelta; 20 import signature.model.IArrayType; 21 import signature.model.IClassDefinition; 22 import signature.model.IClassReference; 23 import signature.model.IExecutableMember; 24 import signature.model.IParameter; 25 import signature.model.IParameterizedType; 26 import signature.model.IPrimitiveType; 27 import signature.model.ITypeDefinition; [all …]
|
/cts/tools/signature-tools/test/signature/comparator/util/ |
D | AbstractComparatorTest.java | 17 package signature.comparator.util; 24 import signature.compare.ApiComparator; 25 import signature.compare.IApiComparator; 26 import signature.compare.model.IApiDelta; 27 import signature.compare.model.IClassDefinitionDelta; 28 import signature.compare.model.IPackageDelta; 29 import signature.converter.util.AbstractConvertTest; 30 import signature.model.IApi;
|
/cts/tools/signature-tools/src/signature/compare/model/impl/ |
D | SigClassDefinitionDelta.java | 17 package signature.compare.model.impl; 19 import signature.compare.model.IAnnotationDelta; 20 import signature.compare.model.IAnnotationFieldDelta; 21 import signature.compare.model.IClassDefinitionDelta; 22 import signature.compare.model.IConstructorDelta; 23 import signature.compare.model.IEnumConstantDelta; 24 import signature.compare.model.IFieldDelta; 25 import signature.compare.model.IMethodDelta; 26 import signature.compare.model.IModifierDelta; 27 import signature.compare.model.ITypeReferenceDelta; [all …]
|
D | SigExecutableMemberDelta.java | 17 package signature.compare.model.impl; 19 import signature.compare.model.IAnnotationDelta; 20 import signature.compare.model.IExecutableMemberDelta; 21 import signature.compare.model.IModifierDelta; 22 import signature.compare.model.IParameterDelta; 23 import signature.compare.model.ITypeReferenceDelta; 24 import signature.compare.model.ITypeVariableDefinitionDelta; 25 import signature.model.IExecutableMember;
|
D | SigMemberDelta.java | 17 package signature.compare.model.impl; 21 import signature.compare.model.IAnnotationDelta; 22 import signature.compare.model.IMemberDelta; 23 import signature.compare.model.IModifierDelta; 24 import signature.compare.model.ITypeReferenceDelta; 25 import signature.model.IField;
|
D | SigTypeVariableDefinitionDelta.java | 17 package signature.compare.model.impl; 19 import signature.compare.model.IGenericDeclarationDelta; 20 import signature.compare.model.ITypeVariableDefinitionDelta; 21 import signature.compare.model.IUpperBoundsDelta; 22 import signature.model.ITypeVariableDefinition;
|
D | SigWildcardTypeDelta.java | 17 package signature.compare.model.impl; 19 import signature.compare.model.ITypeReferenceDelta; 20 import signature.compare.model.IUpperBoundsDelta; 21 import signature.compare.model.IWildcardTypeDelta; 22 import signature.model.IWildcardType;
|
/cts/tools/signature-tools/test/signature/converter/ |
D | ConvertWildcardTest.java | 17 package signature.converter; 24 import signature.converter.util.AbstractConvertTest; 25 import signature.converter.util.CompilationUnit; 26 import signature.model.IApi; 27 import signature.model.IClassDefinition; 28 import signature.model.IClassReference; 29 import signature.model.IField; 30 import signature.model.IPackage; 31 import signature.model.IParameterizedType; 32 import signature.model.ITypeReference; [all …]
|
D | ConvertParameterizedTypeTest.java | 17 package signature.converter; 26 import signature.converter.util.AbstractConvertTest; 27 import signature.converter.util.CompilationUnit; 28 import signature.model.IApi; 29 import signature.model.IClassDefinition; 30 import signature.model.IField; 31 import signature.model.IPackage; 32 import signature.model.IParameterizedType; 33 import signature.model.ITypeReference; 34 import signature.model.util.ModelUtil;
|
D | ConvertPackageTest.java | 17 package signature.converter; 25 import signature.converter.util.AbstractConvertTest; 26 import signature.converter.util.CompilationUnit; 27 import signature.model.IAnnotation; 28 import signature.model.IApi; 29 import signature.model.IPackage; 30 import signature.model.util.ModelUtil;
|
/cts/tools/signature-tools/src/signature/compare/model/subst/ |
D | ExecutableMemberProjection.java | 17 package signature.compare.model.subst; 19 import signature.model.IAnnotation; 20 import signature.model.IClassDefinition; 21 import signature.model.IExecutableMember; 22 import signature.model.IParameter; 23 import signature.model.ITypeReference; 24 import signature.model.ITypeVariableDefinition; 25 import signature.model.Modifier;
|
D | ClassProjection.java | 17 package signature.compare.model.subst; 25 import signature.model.IAnnotation; 26 import signature.model.IAnnotationField; 27 import signature.model.IClassDefinition; 28 import signature.model.IConstructor; 29 import signature.model.IEnumConstant; 30 import signature.model.IField; 31 import signature.model.IMethod; 32 import signature.model.ITypeReference; 33 import signature.model.ITypeVariableDefinition; [all …]
|
D | ClassReferenceProjection.java | 17 package signature.compare.model.subst; 19 import signature.model.IClassDefinition; 20 import signature.model.IClassReference; 21 import signature.model.ITypeReference; 22 import signature.model.ITypeVariableDefinition; 23 import signature.model.impl.SigClassReference;
|
D | ViewpointAdapter.java | 17 package signature.compare.model.subst; 19 import signature.model.IArrayType; 20 import signature.model.IClassDefinition; 21 import signature.model.IClassReference; 22 import signature.model.IParameterizedType; 23 import signature.model.IPrimitiveType; 24 import signature.model.ITypeReference; 25 import signature.model.ITypeVariableDefinition; 26 import signature.model.ITypeVariableReference; 27 import signature.model.IWildcardType; [all …]
|
/cts/tools/signature-tools/src/signature/compare/ |
D | Main.java | 17 package signature.compare; 19 import signature.UsageException; 20 import signature.compare.model.IApiDelta; 21 import signature.compare.model.IPackageDelta; 22 import signature.compare.model.impl.SigDelta; 23 import signature.converter.Visibility; 24 import signature.converter.dex.DexFactory; 25 import signature.converter.doclet.DocletFactory; 26 import signature.io.IApiDeltaExternalizer; 27 import signature.io.IApiLoader; [all …]
|
/cts/tools/signature-tools/src/signature/converter/dex/ |
D | GenericSignatureParser.java | 17 package signature.converter.dex; 19 import static signature.converter.dex.DexUtil.getClassName; 20 import static signature.converter.dex.DexUtil.getPackageName; 21 import signature.model.IClassDefinition; 22 import signature.model.IClassReference; 23 import signature.model.IConstructor; 24 import signature.model.IGenericDeclaration; 25 import signature.model.IMethod; 26 import signature.model.ITypeReference; 27 import signature.model.ITypeVariableDefinition; [all …]
|
/cts/tools/signature-tools/src/signature/converter/ |
D | Main.java | 17 package signature.converter; 19 import signature.UsageException; 20 import signature.converter.dex.DexFactory; 21 import signature.converter.doclet.DocletFactory; 22 import signature.io.IApiLoader; 23 import signature.io.IApiExternalizer; 24 import signature.io.impl.BinaryApi;
|