Home
last modified time | relevance | path

Searched refs:getProvider (Results 1 – 25 of 31) sorted by relevance

12

/cts/tests/tests/keystore/src/android/keystore/cts/
DMacTest.java238 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
256 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider()
265 assertSame(provider, mac.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider()
274 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMacGeneratedForEmptyMessage()
296 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
318 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMacGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
341 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMacGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore()
352 signingProvider = mac.getProvider(); in testMacGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore()
545 + ", provider: " + m.getProvider().getName() in assertMacVerifiesOneShot()
561 + ", provider: " + m.getProvider().getName() in assertMacDoesNotVerifyOneShot()
[all …]
DRSACipherTest.java74 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
108 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus()
137 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus()
166 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus()
197 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus()
230 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
262 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingWithZeroMessage()
301 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testRsaOaepDecryptWithWrongMGF1DigestFails()
DECDSASignatureTest.java98 assertSame(Security.getProvider(SignatureTest.EXPECTED_PROVIDER_NAME), in assertNONEwithECDSATruncatesInputToFieldSize()
99 signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize()
103 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize()
251 assertSame(Security.getProvider(SignatureTest.EXPECTED_PROVIDER_NAME), in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
252 signature.getProvider()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
256 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
DSignatureTest.java363 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
394 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning()
401 assertSame(provider, signature.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning()
411 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenVerifying()
427 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testValidSignatureGeneratedForEmptyMessage()
457 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
514 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEmptySignatureDoesNotVerify()
538 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSignatureGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
570 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSignatureGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
595 verificationProvider = signature.getProvider(); in testSignatureGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
[all …]
DCipherTest.java364 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
383 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
402 assertSame(provider, cipher.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
411 assertSame(provider, cipher.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
421 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenEncrypting()
447 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEmptyPlaintextEncryptsAndDecrypts()
499 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEncryptsAndDecryptsInterrupted()
551 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEncryptsAndDecryptsUsingCipherStreams()
672 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired()
818 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()
[all …]
DKeyStoreTest.java209 assertEquals(provider, ks.getProvider()); in keyStores()
229 return (!(ks.getType().equals("PKCS12") && ks.getProvider().getName().equals("SunJSSE"))); in isCertificateEnabled()
243 return (StandardNames.IS_RI && ks.getProvider().getName().equals("BC")) in isUnsupported()
261 return (ks.getType().equals("PKCS12") && ks.getProvider().getName().equals("BC")); in isKeyPasswordIgnored()
266 return (ks.getType().equals("PKCS12") && ks.getProvider().getName().equals("BC")); in isLoadStoreParameterSupported()
281 return (ks.getProvider().getName().equals("BC")); in isSetKeyByteArrayUnimplemented()
488 assertEquals(provider, ks.getProvider()); in test_KeyStore_create()
527 Provider provider = Security.getProvider(providerName); in test_KeyStore_getInstance()
558 assertNotNull(ks.getProvider()); in test_KeyStore_getProvider()
559 assertNotNull(StandardNames.SECURITY_PROVIDER_NAME, ks.getProvider().getName()); in test_KeyStore_getProvider()
[all …]
DRSASignatureTest.java72 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMaxMessageSizeWhenNoDigestUsed()
125 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSmallKeyRejected()
DSecretKeyFactoryTest.java80 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
DKeyFactoryTest.java92 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
DBlockCipherTestBase.java153 Provider expectedProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testGetProvider()
154 assertSame(expectedProvider, mCipher.getProvider()); in testGetProvider()
DKeyGeneratorTest.java117 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
/cts/tests/location/common/src/android/location/cts/common/
DTestLocationManager.java139 if (mLocationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { in requestLowPowerModeGnssLocationUpdates()
166 if (mLocationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { in requestLocationUpdates()
192 if (mLocationManager.getProvider(LocationManager.NETWORK_PROVIDER) != null) { in requestNetworkLocationUpdates()
210 if (mLocationManager.getProvider(LocationManager.PASSIVE_PROVIDER) != null) { in requestPassiveLocationUpdates()
/cts/tests/tests/keystore/src/android/keystore/cts/performance/
DPerformanceTestBase.java194 return mGenerator.getProvider() + "/" + Build.CPU_ABI; in getEnvironment()
292 this(algorithm, KeyGenerator.getInstance("AES").getProvider().getName()); in KeystoreKeyGenerator()
299 String getProvider() { in getProvider() method in PerformanceTestBase.KeystoreKeyGenerator
335 mKeyStore = KeyStore.getInstance(getProvider()); in AndroidKeystoreKeyGenerator()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothHidDeviceAppSdpSettingsTest.java39 assertEquals(provider, settings.getProvider()); in testGetters()
/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/
DAppWidgetProviderCallbacks.java28 public final AppWidgetProvider getProvider() { in getProvider() method in AppWidgetProviderCallbacks
/cts/hostsidetests/devicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/
DSimpleAppWidgetHostService.java94 AppWidgetProviderInfo info = mAppWidgetHost.getProvider(params); in handleMessage()
218 public AppWidgetProviderInfo getProvider(Bundle params) throws InterruptedException { in getProvider() method in SimpleAppWidgetHostService.SimpleAppWidgetHost
/cts/tests/location/location_privileged/src/android/location/cts/privileged/
DGnssLocationValuesTest.java158 assertEquals("gps", location.getProvider()); in checkLocationRegularFields()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/
DGnssLocationValuesTest.java193 assertEquals("gps", location.getProvider()); in checkLocationRegularFields()
DGnssLocationUpdateIntervalTest.java261 if (!location.getProvider().equals(LocationManager.GPS_PROVIDER)) { in getTimeBetweenFixes()
/cts/tests/location/location_none/src/android/location/cts/none/
DLocationTest.java46 assertThat(l.getProvider()).isEqualTo("provider"); in testConstructor_Defaults()
96 assertThat(l.getProvider()).isEqualTo("test"); in testValues()
/cts/tests/tests/provider/src/android/provider/cts/
DSearchRecentSuggestionsTest.java42 mTestSRSProvider = getProvider(); in setUp()
/cts/tests/app/src/android/app/cts/
DSystemFeaturesTest.java305 if (mLocationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { in testLocationFeatures()
312 if (mLocationManager.getProvider(LocationManager.NETWORK_PROVIDER) != null) { in testLocationFeatures()
/cts/tests/location/location_coarse/src/android/location/cts/coarse/
DLocationManagerCoarseTest.java254 if (mManager.getProvider(FUSED_PROVIDER) != null) { in testGetBestProvider()
/cts/tests/location/location_fine/src/android/location/cts/fine/
DLocationManagerFineTest.java1347 LocationProvider provider = mManager.getProvider(TEST_PROVIDER); in testGetProvider()
1351 provider = mManager.getProvider(LocationManager.GPS_PROVIDER); in testGetProvider()
1359 assertThat(mManager.getProvider("fake")).isNull(); in testGetProvider()
1362 mManager.getProvider(null); in testGetProvider()
/cts/tests/tests/webkit/src/android/webkit/cts/
DGeolocationTest.java222 LocationProvider provider = mLocationManager.getProvider(providerName); in addTestProviders()

12