Home
last modified time | relevance | path

Searched refs:ContentProvider (Results 1 – 25 of 104) sorted by relevance

12345

/frameworks/base/tests/testables/src/android/testing/
DTestableContentResolver.java17 import android.content.ContentProvider;
42 private final Map<String, ContentProvider> mProviders = new ArrayMap<>();
43 private final Map<String, ContentProvider> mUnstableProviders = new ArrayMap<>();
45 private final ArraySet<ContentProvider> mInUse = new ArraySet<>();
69 public void addProvider(String name, ContentProvider provider) { in addProvider()
80 public void addProvider(String name, ContentProvider provider, int flags) { in addProvider()
91 final ContentProvider provider = mProviders.get(name); in acquireProvider()
101 final ContentProvider provider = mProviders.get(name); in acquireExistingProvider()
122 final ContentProvider provider = mUnstableProviders.get(name); in acquireUnstableProvider()
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableContentResolverTest.java3 import android.content.ContentProvider;
32 ContentProvider provider = Mockito.mock(ContentProvider.class); in testDefaultContentProvider()
43 ContentProvider provider = Mockito.mock(ContentProvider.class); in testStableContentProvider()
54 ContentProvider provider = Mockito.mock(ContentProvider.class); in testUnstableContentProvider()
/frameworks/base/test-mock/src/android/test/mock/
DMockContentResolver.java19 import android.content.ContentProvider;
53 Map<String, ContentProvider> mProviders;
79 public void addProvider(String name, ContentProvider provider) { in addProvider()
100 final ContentProvider provider = mProviders.get(name); in acquireExistingProvider()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSliceBroadcastRelayHandlerTest.java26 import android.content.ContentProvider;
59 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testRegister()
81 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testUnregister()
92 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testUnregister()
108 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testUnregisterWithoutRegister()
125 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testRelay()
/frameworks/base/test-runner/src/android/test/
DProviderTestCase2.java19 import android.content.ContentProvider;
71 public abstract class ProviderTestCase2<T extends ContentProvider> extends AndroidTestCase {
150 static <T extends ContentProvider> T createProviderForTest( in createProviderForTest()
221 public static <T extends ContentProvider> ContentResolver newResolverWithContentProviderFromSql( in newResolverWithContentProviderFromSql()
DProviderTestCase.java19 import android.content.ContentProvider;
35 public abstract class ProviderTestCase<T extends ContentProvider>
95 public static <T extends ContentProvider> ContentResolver newResolverWithContentProviderFromSql( in newResolverWithContentProviderFromSql()
/frameworks/base/core/java/android/app/
DAppComponentFactory.java21 import android.content.ContentProvider;
144 public @NonNull ContentProvider instantiateProvider(@NonNull ClassLoader cl, in instantiateProvider()
147 return (ContentProvider) cl.loadClass(className).newInstance(); in instantiateProvider()
/frameworks/base/services/core/java/com/android/server/uri/
DGrantUri.java19 import android.content.ContentProvider;
79 return new GrantUri(ContentProvider.getUserIdFromUri(uri, defaultSourceUserHandle), in resolve()
80 ContentProvider.getUriWithoutUserId(uri), false); in resolve()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DSliceBroadcastRelay.java19 import android.content.ContentProvider;
60 registerBroadcast.putExtra(EXTRA_URI, ContentProvider.maybeAddUserId(sliceUri, in registerReceiver()
80 registerBroadcast.putExtra(EXTRA_URI, ContentProvider.maybeAddUserId(sliceUri, in unregisterReceivers()
/frameworks/base/core/tests/coretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/
DDisabledProvider.java19 import android.content.ContentProvider;
28 public class DisabledProvider extends ContentProvider {
DEnabledProvider.java19 import android.content.ContentProvider;
28 public class EnabledProvider extends ContentProvider {
/frameworks/base/core/tests/coretests/apks/version_nosys/src/com/android/frameworks/coretests/version_test/
DNullProvider.java3 import android.content.ContentProvider;
8 public class NullProvider extends ContentProvider {
/frameworks/base/core/tests/coretests/apks/install_multi_package/src/com/android/frameworks/coretests/
DFirstChildTestReceiver.java20 import android.content.ContentProvider;
25 public class FirstChildTestReceiver extends ContentProvider {
DSecondChildTestProvider.java20 import android.content.ContentProvider;
25 public class SecondChildTestProvider extends ContentProvider {
DSecondChildTestReceiver.java20 import android.content.ContentProvider;
25 public class SecondChildTestReceiver extends ContentProvider {
DTestReceiver.java20 import android.content.ContentProvider;
25 public class TestReceiver extends ContentProvider {
DTestProvider.java20 import android.content.ContentProvider;
25 public class TestProvider extends ContentProvider {
DFirstChildTestProvider.java20 import android.content.ContentProvider;
25 public class FirstChildTestProvider extends ContentProvider {
/frameworks/base/tests/ActivityManagerPerfTests/test-app/src/com/android/frameworks/perftests/amteststestapp/
DTestContentProvider.java19 import android.content.ContentProvider;
24 public class TestContentProvider extends ContentProvider {
/frameworks/base/core/tests/coretests/apks/version/src/com/android/frameworks/coretests/version_test/
DNullProvider.java3 import android.content.ContentProvider;
8 public class NullProvider extends ContentProvider {
/frameworks/base/services/tests/uiservicestests/src/com/android/frameworks/tests/uiservices/
DDummyProvider.java17 import android.content.ContentProvider;
22 public class DummyProvider extends ContentProvider {
/frameworks/base/core/tests/coretests/apks/install_complete_package_info/src/com/android/frameworks/coretests/
DTestProvider.java20 import android.content.ContentProvider;
25 public class TestProvider extends ContentProvider {
DTestReceiver.java20 import android.content.ContentProvider;
25 public class TestReceiver extends ContentProvider {
/frameworks/base/media/java/android/media/
DRingtoneManager.java28 import android.content.ContentProvider;
460 return new ExternalRingtonesCursorWrapper(res, ContentProvider.maybeAddUserId( in getParentProfileRingtones()
789 && ContentProvider.getUserIdFromUri(ringtoneUri) == context.getUserId()) { in getActualDefaultRingtoneUri()
790 ringtoneUri = ContentProvider.getUriWithoutUserId(ringtoneUri); in getActualDefaultRingtoneUri()
817 ringtoneUri = ContentProvider.maybeAddUserId(ringtoneUri, context.getUserId()); in setActualDefaultRingtoneUri()
844 Uri uriWithoutUserId = ContentProvider.getUriWithoutUserId(ringtone); in isRingtoneUriInStorage()
970 return ContentProvider.maybeAddUserId(Settings.System.RINGTONE_CACHE_URI, userId); in getCacheForType()
972 return ContentProvider.maybeAddUserId(Settings.System.NOTIFICATION_SOUND_CACHE_URI, in getCacheForType()
975 return ContentProvider.maybeAddUserId(Settings.System.ALARM_ALERT_CACHE_URI, userId); in getCacheForType()
1000 defaultRingtoneUri = ContentProvider.getUriWithoutUserId(defaultRingtoneUri); in getDefaultType()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DSingleUserProvider.java19 import android.content.ContentProvider;
26 public class SingleUserProvider extends ContentProvider {

12345