Home
last modified time | relevance | path

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

123456

/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/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/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DCanUseIconPredicateTest.kt19 import android.content.ContentProvider
46 ContentProvider.createContentUriForUser( in testReturnsFalseForDifferentUser()
59 ContentProvider.createContentUriForUser( in testReturnsTrueForCorrectUser()
/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/packages/SystemUI/src/com/android/systemui/controls/ui/
DCanUseIconPredicate.kt19 import android.content.ContentProvider
26 ContentProvider.getUserIdFromUri(icon.uri, currentUserId) == currentUserId in invoke()
/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/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/SystemUI/tests/src/com/android/systemui/
DSliceBroadcastRelayHandlerTest.java28 import android.content.ContentProvider;
96 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testRegister()
117 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testUnregister()
129 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testUnregister()
144 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testUnregisterWithoutRegister()
159 intent.putExtra(SliceBroadcastRelay.EXTRA_URI, ContentProvider.maybeAddUserId(testUri, 0)); in testRelay()
/frameworks/base/core/tests/coretests/src/android/content/
DContentProviderTest.java41 private ContentProvider mCp;
57 mCp = mock(ContentProvider.class, withSettings().defaultAnswer(Answers.CALLS_REAL_METHODS)); in setUp()
97 assertEquals(expectedUri, ContentProvider.createContentUriForUser(uri, UserHandle.of(7))); in testCreateContentUriForUser()
/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/services/tests/uiservicestests/src/com/android/frameworks/tests/uiservices/
DDummyProvider.java17 import android.content.ContentProvider;
22 public class DummyProvider extends ContentProvider {
/frameworks/base/services/tests/PackageManagerServiceTests/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/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/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/PackageManagerServiceTests/appenumeration/test-apps/target/src/com/android/appenumeration/testapp/
DDummyProvider.java19 import android.content.ContentProvider;
24 public class DummyProvider extends ContentProvider {
/frameworks/base/services/tests/servicestests/test-apps/PackageParserApp/src/com/android/servicestests/apps/packageparserapp/
DMyProvider.java19 import android.content.ContentProvider;
24 public class MyProvider 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/tests/ActivityTests/src/com/google/android/test/activity/
DSingleUserProvider.java19 import android.content.ContentProvider;
26 public class SingleUserProvider extends ContentProvider {
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillUriGrantsManager.java31 import android.content.ContentProvider;
101 final int sourceUserId = ContentProvider.getUserIdFromUri(uri, mSourceUserId); in grantUriPermissions()
108 final Uri uriWithoutUserId = ContentProvider.getUriWithoutUserId(uri); in grantUriPermissions()

123456