Home
last modified time | relevance | path

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

12

/cts/tests/tests/keystore/src/android/keystore/cts/
DECDSASignatureTest.java53 assertSame(Security.getProvider(SignatureTest.EXPECTED_PROVIDER_NAME), in assertNONEwithECDSATruncatesInputToFieldSize()
54 signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize()
58 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSATruncatesInputToFieldSize()
95 assertSame(Security.getProvider(SignatureTest.EXPECTED_PROVIDER_NAME), in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
96 signature.getProvider()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
100 signature = Signature.getInstance(signature.getAlgorithm(), signature.getProvider()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize()
DRSACipherTest.java40 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
73 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus()
101 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus()
129 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus()
159 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus()
191 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
222 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingWithZeroMessage()
DMacTest.java193 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
210 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider()
219 assertSame(provider, mac.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider()
227 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMacGeneratedForEmptyMessage()
248 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
269 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMacGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
291 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMacGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore()
302 signingProvider = mac.getProvider(); in testMacGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore()
478 + ", provider: " + m.getProvider().getName() in assertMacVerifiesOneShot()
494 + ", provider: " + m.getProvider().getName() in assertMacDoesNotVerifyOneShot()
[all …]
DSignatureTest.java339 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
366 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning()
373 assertSame(provider, signature.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning()
382 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenVerifying()
397 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testValidSignatureGeneratedForEmptyMessage()
426 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEmptySignatureDoesNotVerify()
449 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSignatureGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
480 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSignatureGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
505 verificationProvider = signature.getProvider(); in testSignatureGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
525 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSignatureGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore()
[all …]
DCipherTest.java310 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
328 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
347 assertSame(provider, cipher.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
356 assertSame(provider, cipher.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
365 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenEncrypting()
390 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEmptyPlaintextEncryptsAndDecrypts()
483 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired()
544 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()
589 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
615 encryptionProvider = cipher.getProvider(); in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
[all …]
DKeyStoreTest.java175 assertEquals(provider, ks.getProvider()); in keyStores()
195 return (!(ks.getType().equals("PKCS12") && ks.getProvider().getName().equals("SunJSSE"))); in isCertificateEnabled()
209 return (StandardNames.IS_RI && ks.getProvider().getName().equals("BC")) in isUnsupported()
226 return (ks.getType().equals("PKCS12") && ks.getProvider().getName().equals("BC")); in isKeyPasswordIgnored()
231 return (ks.getType().equals("PKCS12") && ks.getProvider().getName().equals("BC")); in isLoadStoreParameterSupported()
246 return (ks.getProvider().getName().equals("BC")); in isSetKeyByteArrayUnimplemented()
452 assertEquals(provider, ks.getProvider()); in test_KeyStore_create()
490 Provider provider = Security.getProvider(providerName); in test_KeyStore_getInstance()
519 assertNotNull(ks.getProvider()); in test_KeyStore_getProvider()
520 assertNotNull(StandardNames.SECURITY_PROVIDER_NAME, ks.getProvider().getName()); in test_KeyStore_getProvider()
[all …]
DRSASignatureTest.java56 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMaxMessageSizeWhenNoDigestUsed()
107 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSmallKeyRejected()
DSecretKeyFactoryTest.java71 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
DKeyFactoryTest.java75 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
DKeyGeneratorTest.java95 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
DBlockCipherTestBase.java129 Provider expectedProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testGetProvider()
130 assertSame(expectedProvider, mCipher.getProvider()); in testGetProvider()
/cts/tests/tests/location/src/android/location/cts/
DLocationManagerTest.java78 LocationProvider lp = mManager.getProvider(TEST_MOCK_PROVIDER_NAME); in setUp()
104 LocationProvider provider = mManager.getProvider(TEST_MOCK_PROVIDER_NAME); in tearDown()
119 LocationProvider provider = mManager.getProvider(TEST_MOCK_PROVIDER_NAME); in testRemoveTestProvider()
138 provider = mManager.getProvider(TEST_MOCK_PROVIDER_NAME); in testRemoveTestProvider()
205 LocationProvider p = mManager.getProvider(TEST_MOCK_PROVIDER_NAME); in testGetProvider()
209 p = mManager.getProvider(LocationManager.GPS_PROVIDER); in testGetProvider()
217 p = mManager.getProvider(UNKNOWN_PROVIDER_NAME); in testGetProvider()
221 mManager.getProvider(null); in testGetProvider()
335 assertEquals(providerName, location.getProvider()); in doLocationUpdatesWithLocationListener()
387 assertEquals(TEST_MOCK_PROVIDER_NAME, location.getProvider()); in testLocationUpdatesWithLocationListenerAndLooper()
[all …]
DLocationProviderTest.java63 LocationProvider locationProvider = mLocationManager.getProvider(PROVIDER_NAME); in testGetName()
68 LocationProvider locationProvider = mLocationManager.getProvider(PROVIDER_NAME); in testMeetsCriteria()
DTestLocationManager.java108 if (mLocationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { in requestLocationUpdates()
133 if (mLocationManager.getProvider(LocationManager.NETWORK_PROVIDER) != null) { in requestNetworkLocationUpdates()
149 if (mLocationManager.getProvider(LocationManager.PASSIVE_PROVIDER) != null) { in requestPassiveLocationUpdates()
DLocationTest.java380 assertEquals(provider, location.getProvider()); in testAccessProvider()
383 assertNull(location.getProvider()); in testAccessProvider()
448 assertNull(location.getProvider()); in testSet()
544 assertEquals(TEST_PROVIDER, l.getProvider()); in assertTestLocation()
DGnssLocationValuesTest.java189 assertEquals("gps", location.getProvider()); in checkLocationRegularFields()
DGnssLocationUpdateIntervalTest.java142 if (!location.getProvider().equals(LocationManager.GPS_PROVIDER)) { in getTimeBetweenFixes()
/cts/tests/tests/location2/src/android/location2/cts/
DLocationManagerTest.java93 mManager.getProvider(providerName); in doTestGetFineProvider_notAllowed()
120 assertNotNull(mManager.getProvider(providerName)); in doTestGetCoarseProvider_allowed()
180 assertEquals(providerName, location.getProvider());
207 assertEquals(providerName, location.getProvider());
476 public String getProvider() { in getProvider() method in LocationManagerTest
/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/tests/permission2/src/android/permission2/cts/
DNoLocationPermissionTest.java271 mLocationManager.getProvider(provider); in checkGetProvider()
/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/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverLocationTest.java116 LocationProvider lp = mLocationManager.getProvider(TEST_PROVIDER_NAME); in setUp()
/cts/tests/tests/webkit/src/android/webkit/cts/
DGeolocationTest.java216 LocationProvider provider = mLocationManager.getProvider(providerName); in addTestProviders()

12