Home
last modified time | relevance | path

Searched refs:ContentProvider (Results 1 – 25 of 110) 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.java21 import android.content.ContentProvider;
56 Map<String, ContentProvider> mProviders;
82 public void addProvider(String name, ContentProvider provider) { in addProvider()
103 final ContentProvider provider = mProviders.get(name); in acquireExistingProvider()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSliceBroadcastRelayHandlerTest.java27 import android.content.ContentProvider;
74 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testRegister()
94 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testUnregister()
105 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testUnregister()
119 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testUnregisterWithoutRegister()
133 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;
80 return new GrantUri(ContentProvider.getUserIdFromUri(uri, defaultSourceUserHandle), in resolve()
81 ContentProvider.getUriWithoutUserId(uri), modeFlags); 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/install_complete_package_info/src/com/android/frameworks/coretests/
DTestReceiver.java20 import android.content.ContentProvider;
25 public class TestReceiver extends ContentProvider {
DTestProvider.java20 import android.content.ContentProvider;
25 public class TestProvider 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/version_nosys/src/com/android/frameworks/coretests/version_test/
DNullProvider.java3 import android.content.ContentProvider;
8 public class NullProvider 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/tests/ActivityManagerPerfTests/stub-app/src/com/android/stubs/am/
DTestContentProvider.java19 import android.content.ContentProvider;
25 public class TestContentProvider extends ContentProvider {
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIAppComponentFactory.java23 import android.content.ContentProvider;
75 public ContentProvider instantiateProviderCompat( in instantiateProviderCompat()
79 ContentProvider contentProvider = super.instantiateProviderCompat(cl, className); in instantiateProviderCompat()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DSingleUserProvider.java19 import android.content.ContentProvider;
26 public class SingleUserProvider extends ContentProvider {
/frameworks/base/core/java/android/view/inputmethod/
DInputContentInfo.java23 import android.content.ContentProvider;
96 ContentProvider.getUserIdFromUri(mContentUri, UserHandle.myUserId()); in InputContentInfo()
167 return ContentProvider.maybeAddUserId(mContentUri, mContentUriOwnerUserId); in getContentUri()
/frameworks/base/media/java/android/media/
DRingtoneManager.java29 import android.content.ContentProvider;
463 return new ExternalRingtonesCursorWrapper(res, ContentProvider.maybeAddUserId( in getParentProfileRingtones()
792 && ContentProvider.getUserIdFromUri(ringtoneUri) == context.getUserId()) { in getActualDefaultRingtoneUri()
793 ringtoneUri = ContentProvider.getUriWithoutUserId(ringtoneUri); in getActualDefaultRingtoneUri()
820 ringtoneUri = ContentProvider.maybeAddUserId(ringtoneUri, context.getUserId()); in setActualDefaultRingtoneUri()
847 Uri uriWithoutUserId = ContentProvider.getUriWithoutUserId(ringtone); in isRingtoneUriInStorage()
973 return ContentProvider.maybeAddUserId(Settings.System.RINGTONE_CACHE_URI, userId); in getCacheForType()
975 return ContentProvider.maybeAddUserId(Settings.System.NOTIFICATION_SOUND_CACHE_URI, in getCacheForType()
978 return ContentProvider.maybeAddUserId(Settings.System.ALARM_ALERT_CACHE_URI, userId); in getCacheForType()
1003 defaultRingtoneUri = ContentProvider.getUriWithoutUserId(defaultRingtoneUri); in getDefaultType()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DSystemUIRootComponent.java21 import android.content.ContentProvider;
116 void inject(ContentProvider contentProvider); in inject()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSlicePermissionManagerTest.java21 import android.content.ContentProvider;
107 ContentProvider.maybeAddUserId(uri, 1))); in testBackup()
110 ContentProvider.maybeAddUserId(uri, 1))); in testBackup()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceManagerService.java21 import static android.content.ContentProvider.getUriWithoutUserId;
22 import static android.content.ContentProvider.getUserIdFromUri;
23 import static android.content.ContentProvider.maybeAddUserId;
35 import android.content.ContentProvider;
149 int userId = ContentProvider.getUserIdFromUri(uri, callingUser); in getPinnedSlices()
151 ret.add(ContentProvider.getUriWithoutUserId(uri)); in getPinnedSlices()
247 int providerUser = ContentProvider.getUserIdFromUri(uri, userId); in checkSlicePermission()
275 int providerUser = ContentProvider.getUserIdFromUri(grantUri, userId); in grantPermissionFromUser()
422 int userId = ContentProvider.getUserIdFromUri(uri, in enforceAccess()

12345