/frameworks/base/tests/testables/src/android/testing/ |
D | TestableContentResolver.java | 17 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/ |
D | TestableContentResolverTest.java | 3 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/ |
D | MockContentResolver.java | 21 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/ |
D | SliceBroadcastRelayHandlerTest.java | 27 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/ |
D | ProviderTestCase2.java | 19 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()
|
D | ProviderTestCase.java | 19 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/ |
D | AppComponentFactory.java | 21 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/ |
D | GrantUri.java | 19 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/ |
D | SliceBroadcastRelay.java | 19 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/ |
D | DisabledProvider.java | 19 import android.content.ContentProvider; 28 public class DisabledProvider extends ContentProvider {
|
D | EnabledProvider.java | 19 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/ |
D | TestReceiver.java | 20 import android.content.ContentProvider; 25 public class TestReceiver extends ContentProvider {
|
D | TestProvider.java | 20 import android.content.ContentProvider; 25 public class TestProvider extends ContentProvider {
|
/frameworks/base/core/tests/coretests/apks/version/src/com/android/frameworks/coretests/version_test/ |
D | NullProvider.java | 3 import android.content.ContentProvider; 8 public class NullProvider extends ContentProvider {
|
/frameworks/base/services/tests/uiservicestests/src/com/android/frameworks/tests/uiservices/ |
D | DummyProvider.java | 17 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/ |
D | NullProvider.java | 3 import android.content.ContentProvider; 8 public class NullProvider extends ContentProvider {
|
/frameworks/base/tests/ActivityManagerPerfTests/test-app/src/com/android/frameworks/perftests/amteststestapp/ |
D | TestContentProvider.java | 19 import android.content.ContentProvider; 24 public class TestContentProvider extends ContentProvider {
|
/frameworks/base/tests/ActivityManagerPerfTests/stub-app/src/com/android/stubs/am/ |
D | TestContentProvider.java | 19 import android.content.ContentProvider; 25 public class TestContentProvider extends ContentProvider {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SystemUIAppComponentFactory.java | 23 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/ |
D | SingleUserProvider.java | 19 import android.content.ContentProvider; 26 public class SingleUserProvider extends ContentProvider {
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputContentInfo.java | 23 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/ |
D | RingtoneManager.java | 29 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/ |
D | SystemUIRootComponent.java | 21 import android.content.ContentProvider; 116 void inject(ContentProvider contentProvider); in inject()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/ |
D | SlicePermissionManagerTest.java | 21 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/ |
D | SliceManagerService.java | 21 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()
|