/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTestCase.java | 25 import android.appwidget.cts.provider.FirstAppWidgetProvider; 26 import android.appwidget.cts.provider.SecondAppWidgetProvider; 82 AppWidgetProviderInfo provider = providers.get(i); in verifyInstalledProviders() local 84 if (firstComponentName.equals(provider.provider) in verifyInstalledProviders() 85 && android.os.Process.myUserHandle().equals(provider.getProfile())) { in verifyInstalledProviders() 87 provider.minWidth); in verifyInstalledProviders() 89 provider.minHeight); in verifyInstalledProviders() 91 … android.appwidget.cts.R.dimen.first_min_resize_appwidget_size), provider.minResizeWidth); in verifyInstalledProviders() 93 … android.appwidget.cts.R.dimen.first_min_resize_appwidget_size), provider.minResizeHeight); in verifyInstalledProviders() 95 provider.updatePeriodMillis); in verifyInstalledProviders() [all …]
|
D | AppWidgetTest.java | 41 import android.appwidget.cts.provider.AppWidgetProviderCallbacks; 42 import android.appwidget.cts.provider.AppWidgetProviderWithFeatures; 43 import android.appwidget.cts.provider.FirstAppWidgetProvider; 44 import android.appwidget.cts.provider.SecondAppWidgetProvider; 166 AppWidgetProviderInfo provider = getFirstAppWidgetProviderInfo(); in testBindAppWidget() local 170 provider.getProfile(), provider.provider, null); in testBindAppWidget() 180 appWidgetId, provider.getProfile(), provider.provider, null); in testBindAppWidget() 251 AppWidgetProviderInfo provider = getFirstAppWidgetProviderInfo(); in testAppWidgetProviderCallbacks() local 255 provider.getProfile(), provider.provider, null); in testAppWidgetProviderCallbacks() 276 provider.getProfile(), provider.provider, null); in testAppWidgetProviderCallbacks() [all …]
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | NoLocationPermissionTest.java | 63 private boolean isKnownLocationProvider(String provider) { in isKnownLocationProvider() argument 64 return mAllProviders.contains(provider); in isKnownLocationProvider() 150 private void checkRequestLocationUpdates(String provider) { in checkRequestLocationUpdates() argument 151 if (!isKnownLocationProvider(provider)) { in checkRequestLocationUpdates() 159 mLocationManager.requestLocationUpdates(provider, 0, 0, mockListener); in checkRequestLocationUpdates() 167 mLocationManager.requestLocationUpdates(provider, 0, 0, mockListener, looper); in checkRequestLocationUpdates() 221 private void checkGetLastKnownLocation(String provider) { in checkGetLastKnownLocation() argument 222 if (!isKnownLocationProvider(provider)) { in checkGetLastKnownLocation() 228 mLocationManager.getLastKnownLocation(provider); in checkGetLastKnownLocation() 264 private void checkGetProvider(String provider) { in checkGetProvider() argument [all …]
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | SignatureTest.java | 339 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList() local 340 Set<Service> services = provider.getServices(); in testAlgorithmList() 366 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning() local 367 assertNotNull(provider); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning() 373 assertSame(provider, signature.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning() 382 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenVerifying() local 383 assertNotNull(provider); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenVerifying() 397 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testValidSignatureGeneratedForEmptyMessage() local 398 assertNotNull(provider); in testValidSignatureGeneratedForEmptyMessage() 409 Signature signature = Signature.getInstance(sigAlgorithm, provider); in testValidSignatureGeneratedForEmptyMessage() [all …]
|
D | RSACipherTest.java | 40 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() local 41 assertNotNull(provider); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() 59 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() 73 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() local 74 assertNotNull(provider); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() 89 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() 101 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus() local 102 assertNotNull(provider); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus() 115 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus() 129 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus() local [all …]
|
D | MacTest.java | 193 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAlgorithmList() local 194 Set<Service> services = provider.getServices(); in testAlgorithmList() 210 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider() local 211 assertNotNull(provider); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider() 219 assertSame(provider, mac.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider() 227 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMacGeneratedForEmptyMessage() local 228 assertNotNull(provider); in testMacGeneratedForEmptyMessage() 234 Mac mac = Mac.getInstance(algorithm, provider); in testMacGeneratedForEmptyMessage() 248 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore() local 249 assertNotNull(provider); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactsContract_StructuredPhoneticName.java | 17 package android.provider.cts.contacts; 23 import android.provider.ContactsContract; 24 import android.provider.ContactsContract.AggregationExceptions; 25 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 26 import android.provider.ContactsContract.Contacts; 27 import android.provider.ContactsContract.Data; 28 import android.provider.ContactsContract.DisplayNameSources; 29 import android.provider.ContactsContract.RawContacts; 30 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; 31 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestData; [all …]
|
D | ContactsContract_ProviderStatus.java | 17 package android.provider.cts.contacts; 23 import android.provider.ContactsContract; 24 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 25 import android.provider.ContactsContract.ProviderStatus; 26 import android.provider.ContactsContract.RawContacts; 27 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 45 ContentProviderClient provider = in setUp() local 47 mBuilder = new ContactsContract_TestDataBuilder(provider); in setUp()
|
D | ContactsContract_GroupMembershipTest.java | 17 package android.provider.cts.contacts; 22 import android.provider.ContactsContract; 23 import android.provider.ContactsContract.CommonDataKinds.GroupMembership; 24 import android.provider.ContactsContract.Groups; 25 import android.provider.ContactsContract.RawContacts; 26 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestData; 27 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestGroup; 28 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 39 ContentProviderClient provider = in setUp() local 41 mBuilder = new ContactsContract_TestDataBuilder(provider); in setUp()
|
D | ContactsContract_PhotoTest.java | 17 package android.provider.cts.contacts; 22 import android.provider.ContactsContract; 23 import android.provider.ContactsContract.CommonDataKinds.Photo; 24 import android.provider.ContactsContract.Contacts; 25 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; 26 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestData; 27 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 28 import android.provider.cts.PhotoUtil; 51 ContentProviderClient provider = in setUp() local 53 mBuilder = new ContactsContract_TestDataBuilder(provider); in setUp()
|
D | ContactsContract_IsSuperPrimaryName.java | 17 package android.provider.cts.contacts; 24 import android.provider.ContactsContract; 25 import android.provider.ContactsContract.AggregationExceptions; 26 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 27 import android.provider.ContactsContract.Contacts; 28 import android.provider.ContactsContract.RawContacts; 29 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; 30 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestData; 31 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 49 ContentProviderClient provider = in setUp() local [all …]
|
D | ContactsContract_PhoneLookup.java | 17 package android.provider.cts.contacts; 23 import android.provider.ContactsContract; 24 import android.provider.ContactsContract.CommonDataKinds.Email; 25 import android.provider.ContactsContract.CommonDataKinds.Phone; 26 import android.provider.ContactsContract.CommonDataKinds.SipAddress; 27 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 28 import android.provider.ContactsContract.Contacts; 29 import android.provider.ContactsContract.PhoneLookup; 30 import android.provider.ContactsContract.RawContacts; 31 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; [all …]
|
D | ContactsContract_ContactCountsTest.java | 17 package android.provider.cts.contacts; 27 import android.provider.ContactsContract; 28 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 29 import android.provider.ContactsContract.Contacts; 30 import android.provider.ContactsContract.RawContacts; 31 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; 32 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 48 ContentProviderClient provider = in setUp() local 50 mBuilder = new ContactsContract_TestDataBuilder(provider); in setUp()
|
D | ContactsContract_AggregationSuggestionsTest.java | 17 package android.provider.cts.contacts; 24 import android.provider.ContactsContract; 25 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 26 import android.provider.ContactsContract.Contacts; 27 import android.provider.ContactsContract.Contacts.AggregationSuggestions; 28 import android.provider.ContactsContract.RawContacts; 29 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 46 ContentProviderClient provider = in setUp() local 48 mBuilder = new ContactsContract_TestDataBuilder(provider); in setUp()
|
D | ContactsContract_SearchSnippetsTest.java | 17 package android.provider.cts.contacts; 24 import android.provider.ContactsContract; 25 import android.provider.ContactsContract.CommonDataKinds.Email; 26 import android.provider.ContactsContract.CommonDataKinds.Note; 27 import android.provider.ContactsContract.CommonDataKinds.Phone; 28 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 29 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 30 import android.provider.ContactsContract.Contacts; 31 import android.provider.ContactsContract.Directory; 32 import android.provider.ContactsContract.RawContacts; [all …]
|
D | ContactsContract_FrequentsStrequentsTest.java | 17 package android.provider.cts.contacts; 25 import android.provider.ContactsContract; 26 import android.provider.ContactsContract.CommonDataKinds.Email; 27 import android.provider.ContactsContract.CommonDataKinds.Phone; 28 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 29 import android.provider.ContactsContract.Contacts; 30 import android.provider.ContactsContract.Data; 31 import android.provider.ContactsContract.DataUsageFeedback; 32 import android.provider.ContactsContract.RawContacts; 33 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; [all …]
|
D | ContactsContract_DeletedContacts.java | 17 package android.provider.cts.contacts; 19 import static android.provider.cts.contacts.DatabaseAsserts.ContactIdPair; 25 import android.provider.ContactsContract; 26 import android.provider.cts.contacts.CommonDatabaseUtils; 27 import android.provider.cts.contacts.DatabaseAsserts; 28 import android.provider.cts.contacts.DeletedContactUtil; 29 import android.provider.cts.contacts.RawContactUtil;
|
D | ContactsContract_DataUsageTest.java | 17 package android.provider.cts.contacts; 19 import static android.provider.ContactsContract.DataUsageFeedback; 25 import android.provider.ContactsContract; 26 import android.provider.ContactsContract.Contacts; 27 import android.provider.ContactsContract.Data; 28 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; 29 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 46 ContentProviderClient provider = in setUp() local 48 mBuilder = new ContactsContract_TestDataBuilder(provider); in setUp()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/ |
D | ContactsContract_Subquery.java | 17 package android.provider.cts.contacts.account; 22 import android.provider.ContactsContract; 23 import android.provider.ContactsContract.Contacts; 24 import android.provider.ContactsContract.RawContacts; 25 import android.provider.cts.contacts.ContactsContract_TestDataBuilder; 26 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 37 ContentProviderClient provider = in setUp() local 39 mBuilder = new ContactsContract_TestDataBuilder(provider); in setUp()
|
/cts/hostsidetests/incident/apps/boundwidgetapp/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 22 import android.appwidget.cts.provider.FirstAppWidgetProvider; 23 import android.appwidget.cts.provider.SecondAppWidgetProvider; 97 assertEquals(0, mgr.getAppWidgetIds(prov.provider).length); in setupWidget() 105 prov.getProfile(), prov.provider, options); in setupWidget() 107 assertEquals(1, mgr.getAppWidgetIds(prov.provider).length); in setupWidget() 150 AppWidgetProviderInfo provider = providers.get(i); in getProviderInfo() local 151 if (componentName.equals(provider.provider) in getProviderInfo() 152 && Process.myUserHandle().equals(provider.getProfile())) { in getProviderInfo() 153 return provider; in getProviderInfo()
|
/cts/hostsidetests/os/test-apps/StaticSharedLibProviderApp1/src/android/os/lib/provider/ |
D | StaticSharedLib.java | 17 package android.os.lib.provider; 20 import android.os.lib.provider.recursive.StaticSharedLibRecursive; 21 import android.os.lib.provider.recursive.R; 26 context.getResources().getInteger(android.os.lib.provider.R.integer.version)); in getVersion() 30 .getInteger(android.os.lib.provider.recursive.R.integer.version); in getRecursiveVersion()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | DocumentsContractTest.java | 17 package android.provider.cts; 19 import static android.provider.DocumentsContract.buildChildDocumentsUri; 20 import static android.provider.DocumentsContract.buildDocumentUri; 21 import static android.provider.DocumentsContract.buildDocumentUriUsingTree; 22 import static android.provider.DocumentsContract.buildRecentDocumentsUri; 23 import static android.provider.DocumentsContract.buildRootUri; 24 import static android.provider.DocumentsContract.buildRootsUri; 25 import static android.provider.DocumentsContract.buildSearchDocumentsUri; 26 import static android.provider.DocumentsContract.buildTreeDocumentUri; 27 import static android.provider.DocumentsContract.copyDocument; [all …]
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | GeolocationTest.java | 170 for (String provider : mProviders) { in setUp() 172 if (provider.equals(LocationManager.PASSIVE_PROVIDER)) { in setUp() 173 mProviders.remove(provider); in setUp() 192 for (String provider : mProviders) { in tearDown() 195 mLocationManager.clearTestProviderEnabled(provider); in tearDown() 196 mLocationManager.removeTestProvider(provider); in tearDown() 216 LocationProvider provider = mLocationManager.getProvider(providerName); in addTestProviders() local 217 if (provider == null) { in addTestProviders() 221 mLocationManager.addTestProvider(provider.getName(), in addTestProviders() 222 provider.requiresNetwork(), //requiresNetwork, in addTestProviders() [all …]
|
/cts/tests/tests/location/src/android/location/cts/ |
D | GnssLocationUpdateIntervalTest.java | 136 private static List<Long> getTimeBetweenFixes(String provider, List<Location> locations, in getTimeBetweenFixes() argument 148 Log.i(TAG, provider + " provider, ignoring location update from an earlier test"); in getTimeBetweenFixes() 156 Log.i(TAG, provider + " provider, ignoring location update with delta: " in getTimeBetweenFixes() 167 private static void assertMeanAndStdev(SoftAssert softAssert, String provider, in assertMeanAndStdev() argument 173 softAssert.assertTrue(provider + " provider mean too small: " + mean in assertMeanAndStdev() 177 softAssert.assertTrue(provider + " provider stdev too big: " in assertMeanAndStdev() 179 Log.i(TAG, provider + " provider mean: " + mean); in assertMeanAndStdev() 180 Log.i(TAG, provider + " provider stdev: " + stdev); in assertMeanAndStdev()
|
/cts/tests/signature/tests/src/android/signature/cts/tests/ |
D | AbstractApiCheckerTest.java | 38 ClassProvider provider = new TestClassesProvider(); in createClassProvider() local 40 provider = new ExcludingClassProvider(provider, in createClassProvider() 44 return provider; in createClassProvider() 79 ClassProvider provider = createClassProvider(excludedRuntimeClasses); in runWithApiChecker() local 80 T checker = createChecker(resultObserver, provider); in runWithApiChecker() 85 protected abstract T createChecker(ResultObserver resultObserver, ClassProvider provider); in createChecker() argument
|