/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTestCase.java | 20 import android.appwidget.cts.provider.FirstAppWidgetProvider; 21 import android.appwidget.cts.provider.SecondAppWidgetProvider; 53 AppWidgetProviderInfo provider = providers.get(i); in verifyInstalledProviders() local 55 if (firstComponentName.equals(provider.provider) in verifyInstalledProviders() 56 && android.os.Process.myUserHandle().equals(provider.getProfile())) { in verifyInstalledProviders() 58 provider.minWidth); in verifyInstalledProviders() 60 provider.minHeight); in verifyInstalledProviders() 62 … android.appwidget.cts.R.dimen.first_min_resize_appwidget_size), provider.minResizeWidth); in verifyInstalledProviders() 64 … android.appwidget.cts.R.dimen.first_min_resize_appwidget_size), provider.minResizeHeight); in verifyInstalledProviders() 66 provider.updatePeriodMillis); in verifyInstalledProviders() [all …]
|
D | AppWidgetTest.java | 35 import android.appwidget.cts.provider.AppWidgetProviderCallbacks; 36 import android.appwidget.cts.provider.FirstAppWidgetProvider; 37 import android.appwidget.cts.provider.SecondAppWidgetProvider; 150 AppWidgetProviderInfo provider = getFirstAppWidgetProviderInfo(); in testBindAppWidget() local 154 provider.getProfile(), provider.provider, null); in testBindAppWidget() 164 appWidgetId, provider.getProfile(), provider.provider, null); in testBindAppWidget() 238 AppWidgetProviderInfo provider = getFirstAppWidgetProviderInfo(); in testAppWidgetProviderCallbacks() local 242 provider.getProfile(), provider.provider, null); in testAppWidgetProviderCallbacks() 263 provider.getProfile(), provider.provider, null); in testAppWidgetProviderCallbacks() 360 firstProvider.getProfile(), firstProvider.provider, null); in testTwoAppWidgetProviderCallbacks() [all …]
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoLocationPermissionTest.java | 61 private boolean isKnownLocationProvider(String provider) { in isKnownLocationProvider() argument 62 return mAllProviders.contains(provider); in isKnownLocationProvider() 133 private void checkRequestLocationUpdates(String provider) { in checkRequestLocationUpdates() argument 134 if (!isKnownLocationProvider(provider)) { in checkRequestLocationUpdates() 142 mLocationManager.requestLocationUpdates(provider, 0, 0, mockListener); in checkRequestLocationUpdates() 150 mLocationManager.requestLocationUpdates(provider, 0, 0, mockListener, looper); in checkRequestLocationUpdates() 204 private void checkGetLastKnownLocation(String provider) { in checkGetLastKnownLocation() argument 205 if (!isKnownLocationProvider(provider)) { in checkGetLastKnownLocation() 211 mLocationManager.getLastKnownLocation(provider); in checkGetLastKnownLocation() 247 private void checkGetProvider(String provider) { in checkGetProvider() argument [all …]
|
/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/tests/tests/provider/src/android/provider/cts/contacts/ |
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_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_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_CommonDataKinds_OrganizationTest.java | 17 package android.provider.cts.contacts; 22 import android.provider.ContactsContract.CommonDataKinds.Im; 23 import android.provider.ContactsContract.CommonDataKinds.Organization; 24 import android.provider.ContactsContract.Data;
|
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_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_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_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_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 …]
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
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 | 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 …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
D | LocationVerifier.java | 110 public void onStatusChanged(String provider, int status, Bundle extras) { } in onStatusChanged() argument 112 public void onProviderEnabled(String provider) { } in onProviderEnabled() argument 114 public void onProviderDisabled(String provider) { } in onProviderDisabled() argument 117 private void assertMeanAndStdev(String provider, List<Long> deltas, double minMeanRatio) { in assertMeanAndStdev() argument 123 fail(provider + " provider mean too small: " + mean in assertMeanAndStdev() 130 fail (provider + " provider stdev too big: " in assertMeanAndStdev() 135 mCb.log(provider + " provider mean: " + mean); in assertMeanAndStdev() 136 mCb.log(provider + " provider stdev: " + stdev); in assertMeanAndStdev() 191 public void onStatusChanged(String provider, int status, Bundle extras) { } in onStatusChanged() argument 193 public void onProviderEnabled(String provider) { } in onProviderEnabled() argument [all …]
|
/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; 25 context.getResources().getInteger(android.os.lib.provider.R.integer.version)); in getVersion()
|
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/build/ |
D | CompatibilityBuildHelperTest.java | 52 CompatibilityBuildProvider provider = new CompatibilityBuildProvider() { in setUp() local 70 OptionSetter setter = new OptionSetter(provider); in setUp() 73 mBuild = provider.getBuild(); in setUp() 103 CompatibilityBuildProvider provider = new CompatibilityBuildProvider() { in testProperty() local 109 OptionSetter setter = new OptionSetter(provider); in testProperty() 114 new CompatibilityBuildHelper(provider.getBuild()); in testProperty() 121 new CompatibilityBuildHelper(provider.getBuild()); in testProperty()
|
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/ |
D | ZenModeTest.java | 19 import static android.provider.Settings.ACTION_VOICE_CONTROL_DO_NOT_DISTURB_MODE; 20 import static android.provider.Settings.EXTRA_DO_NOT_DISTURB_MODE_ENABLED; 21 import static android.provider.Settings.EXTRA_DO_NOT_DISTURB_MODE_MINUTES; 26 import android.provider.Settings; 27 import android.provider.Settings.Global;
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/ |
D | AppWidgetProviderCallbacks.java | 17 package android.appwidget.cts.provider; 32 public final void setProvider(AppWidgetProvider provider) { in setProvider() argument 33 mProvider = provider; in setProvider()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | GeolocationTest.java | 167 for (String provider : mProviders) { in setUp() 169 if (provider.equals(LocationManager.PASSIVE_PROVIDER)) { in setUp() 170 mProviders.remove(provider); in setUp() 189 for (String provider : mProviders) { in tearDown() 192 mLocationManager.clearTestProviderEnabled(provider); in tearDown() 193 mLocationManager.removeTestProvider(provider); in tearDown() 212 LocationProvider provider = mLocationManager.getProvider(providerName); in addTestProviders() local 213 mLocationManager.addTestProvider(provider.getName(), in addTestProviders() 214 provider.requiresNetwork(), //requiresNetwork, in addTestProviders() 215 provider.requiresSatellite(), // requiresSatellite, in addTestProviders() [all …]
|