/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/tests/signature/tests/src/android/signature/cts/tests/ |
D | TestClassesProvider.java | 16 package android.signature.cts.tests; 20 import android.signature.cts.ClassProvider; 21 import android.signature.cts.DexMember; 22 import android.signature.cts.tests.data.AbstractClass; 23 import android.signature.cts.tests.data.SystemApiClass; 24 import android.signature.cts.tests.data.FinalClass; 25 import android.signature.cts.tests.data.PrivateClass; 26 import android.signature.cts.tests.data.PublicApiClass; 27 import android.signature.cts.tests.data.ForciblyPublicizedPrivateClass; 28 import android.signature.cts.tests.data.NormalClass; [all …]
|
D | AbstractApiCheckerTest.java | 16 package android.signature.cts.tests; 18 import android.signature.cts.AbstractApiChecker; 19 import android.signature.cts.ClassProvider; 20 import android.signature.cts.ExcludingClassProvider; 21 import android.signature.cts.FailureType; 22 import android.signature.cts.JDiffClassDescription; 23 import android.signature.cts.ResultObserver;
|
D | AnnotationCheckerTest.java | 17 package android.signature.cts.tests; 19 import android.signature.cts.AnnotationChecker; 20 import android.signature.cts.ClassProvider; 21 import android.signature.cts.FailureType; 22 import android.signature.cts.JDiffClassDescription; 23 import android.signature.cts.ResultObserver; 24 import android.signature.cts.tests.data.ApiAnnotation;
|
/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/tests/signature/src/android/signature/cts/ |
D | DexMethod.java | 16 package android.signature.cts; 27 public DexMethod(String className, String name, String signature) { in DexMethod() argument 28 super(className, name, parseDexReturnType(signature)); in DexMethod() 29 mParamTypeList = parseDexTypeList(signature); in DexMethod() 54 private static Matcher matchSignature(String signature) { in matchSignature() argument 55 Matcher m = Pattern.compile("^\\((.*)\\)(.*)$").matcher(signature); in matchSignature() 57 throw new RuntimeException("Could not parse method signature: " + signature); in matchSignature() 62 private static String parseDexReturnType(String signature) { in parseDexReturnType() argument 63 return matchSignature(signature).group(2); in parseDexReturnType() 66 private static List<String> parseDexTypeList(String signature) { in parseDexTypeList() argument [all …]
|
D | ApiDocumentParser.java | 16 package android.signature.cts; 18 import static android.signature.cts.CurrentApi.ATTRIBUTE_NAME; 19 import static android.signature.cts.CurrentApi.ATTRIBUTE_TYPE; 20 import static android.signature.cts.CurrentApi.TAG_CLASS; 21 import static android.signature.cts.CurrentApi.TAG_CONSTRUCTOR; 22 import static android.signature.cts.CurrentApi.TAG_EXCEPTION; 23 import static android.signature.cts.CurrentApi.TAG_FIELD; 24 import static android.signature.cts.CurrentApi.TAG_IMPLEMENTS; 25 import static android.signature.cts.CurrentApi.TAG_INTERFACE; 26 import static android.signature.cts.CurrentApi.TAG_METHOD; [all …]
|
/cts/tests/signature/api-check/src/java/android/signature/cts/api/ |
D | HiddenApiTest.java | 17 package android.signature.cts.api; 20 import android.signature.cts.DexApiDocumentParser; 21 import android.signature.cts.DexField; 22 import android.signature.cts.DexMember; 23 import android.signature.cts.DexMemberChecker; 24 import android.signature.cts.DexMethod; 25 import android.signature.cts.FailureType; 26 import android.signature.cts.ResultObserver; 38 import static android.signature.cts.CurrentApi.API_FILE_DIRECTORY;
|
D | BaseKillswitchTest.java | 17 package android.signature.cts.api; 21 import android.signature.cts.DexApiDocumentParser; 22 import android.signature.cts.DexField; 23 import android.signature.cts.DexMember; 24 import android.signature.cts.DexMemberChecker; 25 import android.signature.cts.DexMethod; 26 import android.signature.cts.FailureType;
|
D | SignatureTest.java | 17 package android.signature.cts.api; 20 import android.signature.cts.ApiComplianceChecker; 21 import android.signature.cts.ApiDocumentParser; 22 import android.signature.cts.ClassProvider; 23 import android.signature.cts.FailureType; 24 import android.signature.cts.JDiffClassDescription; 25 import android.signature.cts.ReflectionHelper;
|
D | TestResultObserver.java | 17 package android.signature.cts.api; 19 import android.signature.cts.FailureType; 20 import android.signature.cts.ResultObserver;
|
D | DebugClassHiddenApiTest.java | 17 package android.signature.cts.api; 19 import android.signature.cts.DexMemberChecker;
|
D | AbstractApiTest.java | 16 package android.signature.cts.api; 19 import android.signature.cts.ApiDocumentParser; 20 import android.signature.cts.ClassProvider; 21 import android.signature.cts.ExcludingClassProvider; 22 import android.signature.cts.FailureType; 23 import android.signature.cts.JDiffClassDescription; 38 import static android.signature.cts.CurrentApi.API_FILE_DIRECTORY;
|
D | DebugClassKillswitchTest.java | 17 package android.signature.cts.api; 19 import android.signature.cts.DexMemberChecker;
|
D | WhitelistKillswitchTest.java | 17 package android.signature.cts.api; 19 import android.signature.cts.DexMemberChecker;
|
D | WildcardKillswitchTest.java | 17 package android.signature.cts.api; 19 import android.signature.cts.DexMemberChecker;
|
D | BootClassPathClassesProvider.java | 17 package android.signature.cts.api; 20 import android.signature.cts.ClassProvider; 21 import android.signature.cts.DexField; 22 import android.signature.cts.DexMethod; 23 import android.signature.cts.DexMember;
|
/cts/hostsidetests/api/src/com/android/cts/api/ |
D | DefinedField.java | 23 private final String signature; field in DefinedField 26 DefinedField(String signature, String definingClass) { in DefinedField() argument 27 this.signature = signature; in DefinedField() 35 return signature; in getSignature()
|
D | DefinedMethod.java | 23 private final String signature; field in DefinedMethod 26 DefinedMethod(String signature, String definingClass) { in DefinedMethod() argument 27 this.signature = signature; in DefinedMethod() 35 return signature; in getSignature()
|
/cts/tools/dasm/src/dasm/ |
D | Utils.java | 85 String signature = convertDotsToSlashes(name); in getClassMethodSignatureFromString() local 92 sigpos = signature.indexOf('('); in getClassMethodSignatureFromString() 95 i = signature.length() - 1; in getClassMethodSignatureFromString() 102 if (signature.charAt(i) == '/') { in getClassMethodSignatureFromString() 108 result[0] = signature.substring(0, mpos); in getClassMethodSignatureFromString() 109 result[1] = signature.substring(mpos + 1, sigpos); in getClassMethodSignatureFromString() 110 result[2] = signature.substring(sigpos); in getClassMethodSignatureFromString()
|
/cts/tests/signature/api-check/system-annotation/src/java/android/signature/cts/api/ |
D | AnnotationTest.java | 17 package android.signature.cts.api; 21 import android.signature.cts.AnnotationChecker; 22 import android.signature.cts.ApiDocumentParser;
|
/cts/tests/signature/tests/ |
D | Android.mk | 22 LOCAL_MODULE := signature-tests 24 LOCAL_JAVA_LIBRARIES := tradefed cts-tradefed signature-hostside
|
/cts/tests/signature/intent-check/src/android/signature/cts/intent/ |
D | IntentTest.java | 16 package android.signature.cts.intent; 18 import static android.signature.cts.CurrentApi.CURRENT_API_FILE; 19 import static android.signature.cts.CurrentApi.SYSTEM_CURRENT_API_FILE; 20 import static android.signature.cts.CurrentApi.SYSTEM_REMOVED_API_FILE; 24 import android.signature.cts.ApiDocumentParser; 25 import android.signature.cts.JDiffClassDescription; 26 import android.signature.cts.JDiffClassDescription.JDiffField;
|