Home
last modified time | relevance | path

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

1234567891011

/cts/tests/signature/tests/src/android/signature/cts/tests/
DTestClassesProvider.java16 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 …]
DExpectedFailuresFilterAnnotationCheckerTest.java17 package android.signature.cts.tests;
19 import android.signature.cts.AnnotationChecker;
20 import android.signature.cts.ClassProvider;
21 import android.signature.cts.ExpectedFailuresFilter;
22 import android.signature.cts.FailureType;
23 import android.signature.cts.JDiffClassDescription;
24 import android.signature.cts.ResultObserver;
25 import android.signature.cts.tests.data.ApiAnnotation;
DFailureHandlingTest.java16 package android.signature.cts.tests;
18 import android.signature.cts.ApiPresenceChecker;
19 import android.signature.cts.ClassProvider;
20 import android.signature.cts.FailureType;
21 import android.signature.cts.JDiffClassDescription;
22 import android.signature.cts.ResultObserver;
/cts/tests/tests/keystore/src/android/keystore/cts/
DECDSASignatureTest.java96 Signature signature = Signature.getInstance("NONEwithECDSA"); in assertNONEwithECDSATruncatesInputToFieldSize() local
97 signature.initSign(keyPair.getPrivate()); in assertNONEwithECDSATruncatesInputToFieldSize()
99 signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize()
100 signature.update(message); in assertNONEwithECDSATruncatesInputToFieldSize()
101 byte[] sigBytes = signature.sign(); in assertNONEwithECDSATruncatesInputToFieldSize()
103 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize()
104 signature.initVerify(keyPair.getPublic()); in assertNONEwithECDSATruncatesInputToFieldSize()
107 signature.update(message); in assertNONEwithECDSATruncatesInputToFieldSize()
108 assertTrue(signature.verify(sigBytes)); in assertNONEwithECDSATruncatesInputToFieldSize()
111 signature.update(message, 0, (keySizeBits + 7) / 8); in assertNONEwithECDSATruncatesInputToFieldSize()
[all …]
DRSASignatureTest.java88 Signature signature = Signature.getInstance("NONEwithRSA", provider); in testMaxMessageSizeWhenNoDigestUsed() local
89 signature.initSign(privateKey); in testMaxMessageSizeWhenNoDigestUsed()
90 signature.update(msg, 0, expectedMaxMessageSizeBytes); in testMaxMessageSizeWhenNoDigestUsed()
91 byte[] sigBytes = signature.sign(); in testMaxMessageSizeWhenNoDigestUsed()
93 signature.initVerify(publicKey); in testMaxMessageSizeWhenNoDigestUsed()
94 signature.update(msg, 0, expectedMaxMessageSizeBytes); in testMaxMessageSizeWhenNoDigestUsed()
95 assertTrue(signature.verify(sigBytes)); in testMaxMessageSizeWhenNoDigestUsed()
98 signature = Signature.getInstance(signature.getAlgorithm(), provider); in testMaxMessageSizeWhenNoDigestUsed()
99 signature.initSign(privateKey); in testMaxMessageSizeWhenNoDigestUsed()
101 signature.update(msg, 0, expectedMaxMessageSizeBytes + 1); in testMaxMessageSizeWhenNoDigestUsed()
[all …]
DSignatureTest.java399 Signature signature = Signature.getInstance(sigAlgorithm); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning() local
400 signature.initSign(keyPair.getPrivate()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning()
401 assertSame(provider, signature.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning()
416 Signature signature = Signature.getInstance(sigAlgorithm); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenVerifying() local
417 signature.initVerify(keyPair.getPublic()); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenVerifying()
439 Signature signature = Signature.getInstance(sigAlgorithm, provider); in testValidSignatureGeneratedForEmptyMessage() local
440 signature.initSign(keyPair.getPrivate()); in testValidSignatureGeneratedForEmptyMessage()
441 byte[] sigBytes = signature.sign(); in testValidSignatureGeneratedForEmptyMessage()
444 signature.initVerify(keyPair.getPublic()); in testValidSignatureGeneratedForEmptyMessage()
445 assertTrue(signature.verify(sigBytes)); in testValidSignatureGeneratedForEmptyMessage()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DSignatureTest.java50 Signature signature = new Signature(SIGNATURE_STRING); in testSignatureStringConstructorValid() local
51 byte[] actualByteArray = signature.toByteArray(); in testSignatureStringConstructorValid()
61 Signature signature = new Signature(sig); in testSignatureStringConstructorNull() local
71 Signature signature = new Signature("123"); in testSignatureStringConstructorInvalidLength() local
80 Signature signature = new Signature(SIGNATURE_BYTE_ARRAY); in testSignatureByteArrayToCharsString() local
81 String actualString = signature.toCharsString(); in testSignatureByteArrayToCharsString()
90 Signature signature = new Signature(sig); in testSignatureByteArrayConstructorNull() local
99 Signature signature = new Signature(SIGNATURE_BYTE_ARRAY); in testSignatureToChars() local
100 char[] charArray = signature.toChars(); in testSignatureToChars()
110 Signature signature = new Signature(SIGNATURE_BYTE_ARRAY); in testSignatureToCharsExistingArrayCorrectlySized() local
[all …]
/cts/tests/signature/lib/common/src/android/signature/cts/
DDexMethod.java16 package android.signature.cts;
32 public DexMethod(String className, String name, String signature, String[] flags) { in DexMethod() argument
33 super(className, name, parseSignature(signature, ParseType.DEX_RETURN_TYPE), flags); in DexMethod()
34 mParamTypeList = parseDexTypeList(signature); in DexMethod()
70 private static String parseSignature(String signature, ParseType type) { in parseSignature() argument
73 int length = signature.length(); in parseSignature()
74 int paren = signature.indexOf(')', 1); in parseSignature()
75 if (length < 2 || signature.charAt(0) != '(' || paren == -1) { in parseSignature()
76 throw new RuntimeException("Could not parse method signature: " + signature); in parseSignature()
79 return signature.substring(1, paren); in parseSignature()
[all …]
DDexApiDocumentParser.java16 package android.signature.cts;
104 String signature = splitLine[0]; in parseLine() local
108 final boolean memberIsField = (signature.indexOf('(') < 0); in parseLine()
110 Matcher matchField = REGEX_FIELD.matcher(signature); in parseLine()
116 Matcher matchMethod = REGEX_METHOD.matcher(signature); in parseLine()
/cts/tests/signature/api/
DAndroid.bp20 name: "signature-cts-api-api-gz",
21 …cmd: "$(location metalava) signature-to-jdiff $(in) $(genDir)/api.xml && gzip -c $(genDir)/api.xml…
24 "//cts/tests/signature/api-check:__subpackages__",
25 "//cts/tests/signature/intent-check",
32 defaults: ["signature-cts-api-api-gz"],
43 defaults: ["signature-cts-api-api-gz"],
54 defaults: ["signature-cts-api-api-gz"],
65 defaults: ["signature-cts-api-api-gz"],
76 defaults: ["signature-cts-api-api-gz"],
87 defaults: ["signature-cts-api-api-gz"],
[all …]
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontFileUpdateRequestTest.java44 byte[] signature = new byte[256]; in construct()
45 new Random(0).nextBytes(signature); in construct()
47 FontFileUpdateRequest request = new FontFileUpdateRequest(pfd, signature); in construct()
49 assertThat(request.getSignature()).isEqualTo(signature); in construct()
51 assertThrows(NullPointerException.class, () -> new FontFileUpdateRequest(null, signature)); in construct()
/cts/tests/signature/api-check/hidden-api-blocklist-debug-class/src/android/signature/cts/api/blocklist/debug/
DDebugClassHiddenApiTest.java17 package android.signature.cts.api.blocklist.debug;
19 import android.signature.cts.DexMemberChecker;
23 public class DebugClassHiddenApiTest extends android.signature.cts.api.HiddenApiTest {
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DBaseKillswitchTest.java17 package android.signature.cts.api;
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;
DHiddenApiTest.java17 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.VirtualPath;
DAbstractSignatureTest.java16 package android.signature.cts.api;
18 import android.signature.cts.ApiComplianceChecker;
19 import android.signature.cts.ApiDocumentParser;
DSignatureTest.java17 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;
DAbstractApiTest.java16 package android.signature.cts.api;
21 import android.signature.cts.ApiDocumentParser;
22 import android.signature.cts.ClassProvider;
23 import android.signature.cts.ExcludingClassProvider;
24 import android.signature.cts.ExpectedFailuresFilter;
25 import android.signature.cts.FailureType;
26 import android.signature.cts.JDiffClassDescription;
27 import android.signature.cts.ResultObserver;
28 import android.signature.cts.VirtualPath;
/cts/tests/signature/api-check/hidden-api-blocklist-test-api/src/android/signature/cts/api/test/
DHiddenApiTest.java17 package android.signature.cts.api.test;
19 import android.signature.cts.DexMember;
22 public class HiddenApiTest extends android.signature.cts.api.HiddenApiTest {
/cts/tests/signature/api-check/system-annotation/src/java/android/signature/cts/api/
DAnnotationTest.java17 package android.signature.cts.api;
20 import android.signature.cts.AnnotationChecker;
21 import android.signature.cts.ApiDocumentParser;
22 import android.signature.cts.JDiffClassDescription;
24 import android.signature.cts.LogHelper;
/cts/tests/signature/api-check/hidden-api-blocklist-27-api/src/android/signature/cts/api/api27/
DHiddenApiTest.java17 package android.signature.cts.api.api27;
19 public class HiddenApiTest extends android.signature.cts.api.HiddenApiTest {
/cts/tests/signature/api-check/apache-http-legacy-uses-library-api/src/android/signature/cts/api/http_uses_library/
DSignatureTest.java17 package android.signature.cts.api.http_uses_library;
19 public class SignatureTest extends android.signature.cts.api.SignatureTest {
/cts/tests/signature/api-check/current-api/src/android/signature/cts/api/current/
DSignatureTest.java17 package android.signature.cts.api.current;
19 public class SignatureTest extends android.signature.cts.api.SignatureTest {
/cts/tests/signature/api-check/hidden-api-blocklist-28-api/src/android/signature/cts/api/api28/
DHiddenApiTest.java17 package android.signature.cts.api.api28;
19 public class HiddenApiTest extends android.signature.cts.api.HiddenApiTest {
/cts/tests/signature/api-check/hidden-api-blocklist-current-api/src/android/signature/cts/api/current/
DHiddenApiTest.java17 package android.signature.cts.api.current;
19 public class HiddenApiTest extends android.signature.cts.api.HiddenApiTest {
/cts/tests/signature/api-check/system-api/src/android/signature/cts/api/system/
DSignatureTest.java17 package android.signature.cts.api.system;
19 public class SignatureTest extends android.signature.cts.api.SignatureTest {

1234567891011