/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | ECDSASignatureTest.java | 53 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()
|
D | RSACipherTest.java | 40 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()
|
D | MacTest.java | 193 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 …]
|
D | SignatureTest.java | 339 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 …]
|
D | CipherTest.java | 316 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList() 334 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 353 assertSame(provider, cipher.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 362 assertSame(provider, cipher.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 371 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenEncrypting() 396 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEmptyPlaintextEncryptsAndDecrypts() 446 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEncryptsAndDecryptsInterrupted() 542 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired() 603 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore() 648 Provider keystoreProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore() [all …]
|
D | PerformanceTestBase.java | 189 return mGenerator.getProvider() + "/" + Build.CPU_ABI; in getEnvironment() 287 this(algorithm, KeyGenerator.getInstance("AES").getProvider().getName()); in KeystoreKeyGenerator() 294 String getProvider() { in getProvider() method in PerformanceTestBase.KeystoreKeyGenerator 330 mKeyStore = KeyStore.getInstance(getProvider()); in AndroidKeystoreKeyGenerator()
|
D | KeyStoreTest.java | 175 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 …]
|
D | RSASignatureTest.java | 56 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMaxMessageSizeWhenNoDigestUsed() 107 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testSmallKeyRejected()
|
D | SecretKeyFactoryTest.java | 71 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
|
D | KeyFactoryTest.java | 75 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList()
|
D | BlockCipherTestBase.java | 129 Provider expectedProvider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testGetProvider() 130 assertSame(expectedProvider, mCipher.getProvider()); in testGetProvider()
|
/cts/tests/tests/location/src/android/location/cts/ |
D | LocationManagerTest.java | 78 LocationProvider lp = mManager.getProvider(TEST_MOCK_PROVIDER_NAME); in setUp() 105 LocationProvider provider = mManager.getProvider(TEST_MOCK_PROVIDER_NAME); in tearDown() 120 LocationProvider provider = mManager.getProvider(TEST_MOCK_PROVIDER_NAME); in testRemoveTestProvider() 139 provider = mManager.getProvider(TEST_MOCK_PROVIDER_NAME); in testRemoveTestProvider() 208 LocationProvider p = mManager.getProvider(TEST_MOCK_PROVIDER_NAME); in testGetProvider() 212 p = mManager.getProvider(LocationManager.GPS_PROVIDER); in testGetProvider() 220 p = mManager.getProvider(UNKNOWN_PROVIDER_NAME); in testGetProvider() 224 mManager.getProvider(null); in testGetProvider() 338 assertEquals(providerName, location.getProvider()); in doLocationUpdatesWithLocationListener() 390 assertEquals(TEST_MOCK_PROVIDER_NAME, location.getProvider()); in testLocationUpdatesWithLocationListenerAndLooper() [all …]
|
D | LocationProviderTest.java | 63 LocationProvider locationProvider = mLocationManager.getProvider(PROVIDER_NAME); in testGetName() 68 LocationProvider locationProvider = mLocationManager.getProvider(PROVIDER_NAME); in testMeetsCriteria()
|
D | TestLocationManager.java | 108 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()
|
D | LocationTest.java | 380 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()
|
D | GnssLocationValuesTest.java | 189 assertEquals("gps", location.getProvider()); in checkLocationRegularFields()
|
D | GnssLocationUpdateIntervalTest.java | 142 if (!location.getProvider().equals(LocationManager.GPS_PROVIDER)) { in getTimeBetweenFixes()
|
/cts/tests/tests/location2/src/android/location2/cts/ |
D | LocationManagerTest.java | 93 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/ |
D | AppWidgetProviderCallbacks.java | 28 public final AppWidgetProvider getProvider() { in getProvider() method in AppWidgetProviderCallbacks
|
/cts/hostsidetests/devicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/ |
D | SimpleAppWidgetHostService.java | 94 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/ |
D | NoLocationPermissionTest.java | 271 mLocationManager.getProvider(provider); in checkGetProvider()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | SearchRecentSuggestionsTest.java | 42 mTestSRSProvider = getProvider(); in setUp()
|
/cts/tests/app/src/android/app/cts/ |
D | SystemFeaturesTest.java | 305 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/ |
D | BatterySaverLocationTest.java | 116 LocationProvider lp = mLocationManager.getProvider(TEST_PROVIDER_NAME); in setUp()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | GeolocationTest.java | 216 LocationProvider provider = mLocationManager.getProvider(providerName); in addTestProviders()
|