/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyGenParameterSpecTest.java | 26 import java.security.spec.AlgorithmParameterSpec; 27 import java.security.spec.ECGenParameterSpec; 43 KeyGenParameterSpec spec = new KeyGenParameterSpec.Builder( in testDefaults() local 47 assertEquals("arbitrary", spec.getKeystoreAlias()); in testDefaults() 48 assertEquals(KeyProperties.PURPOSE_ENCRYPT, spec.getPurposes()); in testDefaults() 49 assertNull(null, spec.getAlgorithmParameterSpec()); in testDefaults() 50 MoreAsserts.assertEmpty(Arrays.asList(spec.getBlockModes())); in testDefaults() 51 assertEquals(DEFAULT_CERT_NOT_BEFORE, spec.getCertificateNotBefore()); in testDefaults() 52 assertEquals(DEFAULT_CERT_NOT_AFTER, spec.getCertificateNotAfter()); in testDefaults() 53 assertEquals(DEFAULT_CERT_SERIAL_NUMBER, spec.getCertificateSerialNumber()); in testDefaults() [all …]
|
D | KeyProtectionTest.java | 33 KeyProtection spec = new KeyProtection.Builder(KeyProperties.PURPOSE_ENCRYPT) in testDefaults() local 36 assertEquals(KeyProperties.PURPOSE_ENCRYPT, spec.getPurposes()); in testDefaults() 37 MoreAsserts.assertEmpty(Arrays.asList(spec.getBlockModes())); in testDefaults() 38 assertFalse(spec.isDigestsSpecified()); in testDefaults() 40 spec.getDigests(); in testDefaults() 43 MoreAsserts.assertEmpty(Arrays.asList(spec.getEncryptionPaddings())); in testDefaults() 44 assertNull(spec.getKeyValidityStart()); in testDefaults() 45 assertNull(spec.getKeyValidityForOriginationEnd()); in testDefaults() 46 assertNull(spec.getKeyValidityForConsumptionEnd()); in testDefaults() 47 assertTrue(spec.isRandomizedEncryptionRequired()); in testDefaults() [all …]
|
D | KeyPairGeneratorSpecTest.java | 43 KeyPairGeneratorSpec spec = new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_Unencrypted_Success() local 51 assertEquals("Context should be the one specified", getContext(), spec.getContext()); in testBuilder_Unencrypted_Success() 53 assertEquals("Alias should be the one specified", TEST_ALIAS_1, spec.getKeystoreAlias()); in testBuilder_Unencrypted_Success() 55 assertEquals("subjectDN should be the one specified", TEST_DN_1, spec.getSubjectDN()); in testBuilder_Unencrypted_Success() 57 assertEquals("startDate should be the one specified", NOW, spec.getStartDate()); in testBuilder_Unencrypted_Success() 59 assertEquals("endDate should be the one specified", NOW_PLUS_10_YEARS, spec.getEndDate()); in testBuilder_Unencrypted_Success() 61 assertFalse("encryption flag should not be on", spec.isEncryptionRequired()); in testBuilder_Unencrypted_Success() 65 KeyPairGeneratorSpec spec = new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_Encrypted_Success() local 74 assertEquals("Context should be the one specified", getContext(), spec.getContext()); in testBuilder_Encrypted_Success() 76 assertEquals("Alias should be the one specified", TEST_ALIAS_1, spec.getKeystoreAlias()); in testBuilder_Encrypted_Success() [all …]
|
D | KeyFactoryTest.java | 39 import java.security.spec.ECPrivateKeySpec; 40 import java.security.spec.ECPublicKeySpec; 41 import java.security.spec.InvalidKeySpecException; 42 import java.security.spec.KeySpec; 43 import java.security.spec.PKCS8EncodedKeySpec; 44 import java.security.spec.RSAPrivateKeySpec; 45 import java.security.spec.RSAPublicKeySpec; 46 import java.security.spec.X509EncodedKeySpec; 58 import javax.crypto.spec.SecretKeySpec; 240 ECPublicKeySpec spec = in testGetKeySpecWithKeystorePublicKeyAcceptsTransparentKeySpec() local [all …]
|
D | TestUtils.java | 56 import java.security.spec.ECParameterSpec; 57 import java.security.spec.EllipticCurve; 58 import java.security.spec.InvalidKeySpecException; 59 import java.security.spec.PKCS8EncodedKeySpec; 70 import javax.crypto.spec.SecretKeySpec; 507 KeyProtection spec, Integer newPurposes) { in buildUponInternal() argument 508 int purposes = (newPurposes == null) ? spec.getPurposes() : newPurposes; in buildUponInternal() 510 result.setBlockModes(spec.getBlockModes()); in buildUponInternal() 511 if (spec.isDigestsSpecified()) { in buildUponInternal() 512 result.setDigests(spec.getDigests()); in buildUponInternal() [all …]
|
D | AESCTRCipherTestBase.java | 20 import java.security.spec.AlgorithmParameterSpec; 21 import java.security.spec.InvalidParameterSpecException; 23 import javax.crypto.spec.IvParameterSpec; 54 IvParameterSpec spec = params.getParameterSpec(IvParameterSpec.class); in getIv() local 55 return spec.getIV(); in getIv()
|
D | AESCBCCipherTestBase.java | 20 import java.security.spec.AlgorithmParameterSpec; 21 import java.security.spec.InvalidParameterSpecException; 23 import javax.crypto.spec.IvParameterSpec; 54 IvParameterSpec spec = params.getParameterSpec(IvParameterSpec.class); in getIv() local 55 return spec.getIV(); in getIv()
|
D | DESedeCBCPKCS7PaddingCipherTest.java | 4 import java.security.spec.AlgorithmParameterSpec; 5 import java.security.spec.InvalidParameterSpecException; 7 import javax.crypto.spec.IvParameterSpec; 20 IvParameterSpec spec = params.getParameterSpec(IvParameterSpec.class); in getIv() local 21 return spec.getIV(); in getIv()
|
D | DESedeCBCNoPaddingCipherTest.java | 4 import java.security.spec.AlgorithmParameterSpec; 5 import java.security.spec.InvalidParameterSpecException; 7 import javax.crypto.spec.IvParameterSpec; 20 IvParameterSpec spec = params.getParameterSpec(IvParameterSpec.class); in getIv() local 21 return spec.getIV(); in getIv()
|
D | ECCurves.java | 20 import java.security.spec.ECField; 21 import java.security.spec.ECFieldFp; 22 import java.security.spec.ECParameterSpec; 23 import java.security.spec.ECPoint; 24 import java.security.spec.EllipticCurve;
|
D | KeyGeneratorTest.java | 34 import java.security.spec.AlgorithmParameterSpec; 35 import java.security.spec.ECGenParameterSpec; 266 KeyGenParameterSpec spec; in testAesKeySupportedSizesHelper() local 268 spec = TestUtils.buildUpon( in testAesKeySupportedSizesHelper() 272 spec = TestUtils.buildUpon( in testAesKeySupportedSizesHelper() 281 keyGenerator.init(spec, rng); in testAesKeySupportedSizesHelper() 287 keyGenerator.init(spec, rng); in testAesKeySupportedSizesHelper() 309 KeyGenParameterSpec spec; in testDESKeySupportedSizes() local 311 spec = TestUtils.buildUpon(goodSpec.setKeySize(i)).build(); in testDESKeySupportedSizes() 314 spec = TestUtils.buildUpon(goodSpec.setKeySize(i)).build(); in testDESKeySupportedSizes() [all …]
|
D | ImportWrappedKeyTest.java | 56 import java.security.spec.AlgorithmParameterSpec; 57 import java.security.spec.MGF1ParameterSpec; 58 import java.security.spec.RSAKeyGenParameterSpec; 63 import javax.crypto.spec.GCMParameterSpec; 64 import javax.crypto.spec.IvParameterSpec; 65 import javax.crypto.spec.OAEPParameterSpec; 66 import javax.crypto.spec.PSource; 67 import javax.crypto.spec.SecretKeySpec; 292 AlgorithmParameterSpec spec = new KeyGenParameterSpec.Builder(wrappingKeyAlias, in importWrappedKey() local 297 "RSA/ECB/OAEPPadding", spec); in importWrappedKey() [all …]
|
D | AESGCMCipherTestBase.java | 22 import java.security.spec.AlgorithmParameterSpec; 23 import java.security.spec.InvalidParameterSpecException; 27 import javax.crypto.spec.GCMParameterSpec; 61 GCMParameterSpec spec = params.getParameterSpec(GCMParameterSpec.class); in getIv() local 62 return spec.getIV(); in getIv()
|
D | DESedeECBPKCS7PaddingCipherTest.java | 4 import java.security.spec.AlgorithmParameterSpec; 5 import java.security.spec.InvalidParameterSpecException;
|
D | DESedeECBNoPaddingCipherTest.java | 4 import java.security.spec.AlgorithmParameterSpec; 5 import java.security.spec.InvalidParameterSpecException;
|
D | AESECBCipherTestBase.java | 20 import java.security.spec.AlgorithmParameterSpec; 21 import java.security.spec.InvalidParameterSpecException;
|
D | BlockCipherTestBase.java | 37 import java.security.spec.AlgorithmParameterSpec; 38 import java.security.spec.InvalidParameterSpecException; 49 import javax.crypto.spec.IvParameterSpec; 50 import javax.crypto.spec.SecretKeySpec; 1361 protected void init(int opmode, Key key, AlgorithmParameters spec) in init() argument 1363 mCipher.init(opmode, key, spec); in init() 1367 protected void init(int opmode, Key key, AlgorithmParameters spec, SecureRandom random) in init() argument 1369 mCipher.init(opmode, key, spec, random); in init() 1373 protected void init(int opmode, Key key, AlgorithmParameterSpec spec) in init() argument 1375 mCipher.init(opmode, key, spec); in init() [all …]
|
D | KeyAttestationTest.java | 91 import java.security.spec.ECGenParameterSpec; 215 KeyGenParameterSpec spec = new KeyGenParameterSpec.Builder(keystoreAlias, PURPOSE_SIGN) in testEcAttestation_NoChallenge() local 225 generateKeyPair(KEY_ALGORITHM_EC, spec); in testEcAttestation_NoChallenge() 281 KeyGenParameterSpec spec = new KeyGenParameterSpec.Builder(keystoreAlias, PURPOSE_SIGN) in testEcAttestation_KeyStoreExceptionWhenRequestingUniqueId() local 289 generateKeyPair(KEY_ALGORITHM_EC, spec); in testEcAttestation_KeyStoreExceptionWhenRequestingUniqueId() 384 KeyGenParameterSpec spec = new KeyGenParameterSpec.Builder(keystoreAlias, PURPOSE_SIGN) in testRsaAttestation_NoChallenge() local 393 generateKeyPair(KEY_ALGORITHM_RSA, spec); in testRsaAttestation_NoChallenge() 452 KeyGenParameterSpec spec = new KeyGenParameterSpec.Builder(keystoreAlias, in testAesAttestation() local 459 generateKey(spec, KeyProperties.KEY_ALGORITHM_AES); in testAesAttestation() 475 KeyGenParameterSpec spec = new KeyGenParameterSpec.Builder(keystoreAlias, PURPOSE_SIGN) in testHmacAttestation() local [all …]
|
D | KeyPairGeneratorTest.java | 47 import java.security.spec.AlgorithmParameterSpec; 48 import java.security.spec.ECGenParameterSpec; 49 import java.security.spec.ECParameterSpec; 50 import java.security.spec.RSAKeyGenParameterSpec; 160 KeyPairGeneratorSpec spec = new KeyPairGeneratorSpec.Builder(getContext()) in testInitialize_LegacySpec() local 167 getRsaGenerator().initialize(spec); in testInitialize_LegacySpec() 168 getRsaGenerator().initialize(spec, new SecureRandom()); in testInitialize_LegacySpec() 170 getEcGenerator().initialize(spec); in testInitialize_LegacySpec() 171 getEcGenerator().initialize(spec, new SecureRandom()); in testInitialize_LegacySpec() 175 KeyGenParameterSpec spec = new KeyGenParameterSpec.Builder( in testInitialize_ModernSpec() local [all …]
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | ThemeInfo.java | 26 public final int spec; field in ThemeInfo 31 ThemeInfo(int spec, int id, int apiLevel, String name) { in ThemeInfo() argument 32 this.spec = spec; in ThemeInfo()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | GridLayoutTest.java | 19 import static android.widget.GridLayout.spec; 167 new GridLayout.LayoutParams(GridLayout.spec(0), GridLayout.spec(0))); in testCheckLayoutParams() 208 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(spec(0), spec(0)); in populate() 216 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(spec(row), spec(0)); in populate() 227 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(spec(0), spec(col)); in populate() 241 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(spec(row), spec(col)); in populate()
|
D | TabHostTest.java | 406 TabSpec spec = tabHost.newTabSpec("Tab 1"); in testKeyboardNavigation() local 407 spec.setContent(R.id.tab1); in testKeyboardNavigation() 408 spec.setIndicator("Tab 1"); in testKeyboardNavigation() 409 tabHost.addTab(spec); in testKeyboardNavigation() 410 spec = tabHost.newTabSpec("Tab 2"); in testKeyboardNavigation() 411 spec.setContent(R.id.tab2); in testKeyboardNavigation() 412 spec.setIndicator("Tab 2"); in testKeyboardNavigation() 413 tabHost.addTab(spec); in testKeyboardNavigation()
|
/cts/hostsidetests/securitybulletin/securityPatch/pac/ |
D | pac.cpp | 24 const char16_t* spec = u""; variable 53 ProxyResolverV8Handle_GetProxyForURL(handle, spec, host); in main()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | FakeKeys.java | 27 import java.security.spec.InvalidKeySpecException; 28 import java.security.spec.PKCS8EncodedKeySpec;
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | HardwareRendererTests.kt | 117 val spec = RendererTest() in rendererTest() constant 118 setup.invoke(spec) in rendererTest() 119 assertNotNull(spec.verifier, "Missing BitmapVerifier") in rendererTest() 120 assertNotNull(spec.onDraw, "Missing onDraw callback") in rendererTest() 121 verify(spec.verifier!!) { in rendererTest() 122 spec.onPrepare?.invoke(this) in rendererTest() 125 spec.onDraw!!.invoke(content.beginRecording()) in rendererTest()
|