Home
last modified time | relevance | path

Searched refs:providerInfo (Results 1 – 11 of 11) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/
DContentProviderController.java31 ProviderInfo providerInfo = null; in create() local
33 providerInfo = in create()
41 return create(providerInfo); in create()
51 ProviderInfo providerInfo = new ProviderInfo(); in create() local
52 providerInfo.authority = authority; in create()
53 return create(providerInfo); in create()
62 public ContentProviderController<T> create(ProviderInfo providerInfo) { in create() argument
71 contentProvider.attachInfo(baseContext, providerInfo); in create()
73 if (providerInfo != null) { in create()
74 ShadowContentResolver.registerProviderInternal(providerInfo.authority, contentProvider); in create()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAppWidgetHostViewTest.java34 AppWidgetProviderInfo providerInfo = new AppWidgetProviderInfo(); in shouldKnowItsAppWidgetProviderInfo() local
35 appWidgetHostView.setAppWidget(0, providerInfo); in shouldKnowItsAppWidgetProviderInfo()
36 assertThat(appWidgetHostView.getAppWidgetInfo()).isSameAs(providerInfo); in shouldKnowItsAppWidgetProviderInfo()
DShadowPackageManagerTest.java1110 ProviderInfo providerInfo = new ProviderInfo(); in queryIntentContentProviders_Match() local
1111 providerInfo.authority = "com.robolectric"; in queryIntentContentProviders_Match()
1112 resolveInfo.providerInfo = providerInfo; in queryIntentContentProviders_Match()
1118 assertThat(contentProviders.get(0).providerInfo.authority).isEqualTo(providerInfo.authority); in queryIntentContentProviders_Match()
1127 info1.providerInfo = new ProviderInfo(); in queryIntentContentProviders_MatchSystemOnly()
1128 info1.providerInfo.applicationInfo = new ApplicationInfo(); in queryIntentContentProviders_MatchSystemOnly()
1131 info2.providerInfo = new ProviderInfo(); in queryIntentContentProviders_MatchSystemOnly()
1132 info2.providerInfo.applicationInfo = new ApplicationInfo(); in queryIntentContentProviders_MatchSystemOnly()
1133 info2.providerInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in queryIntentContentProviders_MatchSystemOnly()
1160 resolveInfo.providerInfo = new ProviderInfo(); in queryIntentContentProviders_MatchDisabledComponents()
[all …]
DShadowAppWidgetManagerTest.java128 AppWidgetProviderInfo providerInfo = new AppWidgetProviderInfo(); in bindAppWidgetId_shouldRecordAppWidgetInfo() local
129 providerInfo.provider = provider; in bindAppWidgetId_shouldRecordAppWidgetInfo()
130 shadowAppWidgetManager.addInstalledProvider(providerInfo); in bindAppWidgetId_shouldRecordAppWidgetInfo()
134 assertSame(providerInfo, appWidgetManager.getAppWidgetInfo(90210)); in bindAppWidgetId_shouldRecordAppWidgetInfo()
DShadowContentResolverTest.java298 ProviderInfo providerInfo = captor.getValue(); in registerProvider_shouldAttachProviderInfo() local
300 assertThat(providerInfo.authority).isEqualTo("the-authority"); in registerProvider_shouldAttachProviderInfo()
301 assertThat(providerInfo.grantUriPermissions).isEqualTo(true); in registerProvider_shouldAttachProviderInfo()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DContentProviderControllerTest.java83 ProviderInfo providerInfo = new ProviderInfo(); in withoutManifest_shouldRegisterWithContentResolver() local
84 providerInfo.authority = "some-authority"; in withoutManifest_shouldRegisterWithContentResolver()
85 controller.create(providerInfo); in withoutManifest_shouldRegisterWithContentResolver()
87 …ContentProviderClient client = contentResolver.acquireContentProviderClient(providerInfo.authority… in withoutManifest_shouldRegisterWithContentResolver()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowAppWidgetManager.java101 public void addBoundWidget(int appWidgetId, AppWidgetProviderInfo providerInfo) { in addBoundWidget() argument
102 addInstalledProvider(providerInfo); in addBoundWidget()
103 bindAppWidgetId(appWidgetId, providerInfo.provider); in addBoundWidget()
104 widgetInfos.get(appWidgetId).info = providerInfo; in addBoundWidget()
DShadowContentResolver.java639 ProviderInfo providerInfo =
641 if (providerInfo != null) {
642 providers.put(providerInfo.authority, createAndInitialize(providerInfo));
827 private static ContentProvider createAndInitialize(ProviderInfo providerInfo) {
830 (ContentProvider) Class.forName(providerInfo.name).getDeclaredConstructor().newInstance();
831 provider.attachInfo(RuntimeEnvironment.application, providerInfo);
839 throw new RuntimeException("Error instantiating class " + providerInfo.name);
DShadowApplicationPackageManager.java291 for (ProviderInfo providerInfo : packageInfo.providers) { in resolveContentProvider()
292 if (name.equals(providerInfo.authority)) { // todo: support multiple authorities in resolveContentProvider()
293 return new ProviderInfo(providerInfo); in resolveContentProvider()
378 || (VERSION.SDK_INT >= VERSION_CODES.KITKAT && resolveInfo.providerInfo != null); in filterResolvedComponent()
625 resolveInfo.providerInfo = provider.info; in buildResolveInfo()
897 resolveInfoList, flags, (resolveInfo) -> resolveInfo.providerInfo)); in queryIntentContentProviders()
905 Arrays.asList(resolvedProvider), flags, (resolveInfo) -> resolveInfo.providerInfo)); in queryIntentContentProviders()
912 (resolveInfo) -> resolveInfo.providerInfo)); in queryIntentContentProviders()
DShadowPackageManager.java300 Build.VERSION.SDK_INT >= KITKAT ? info.providerInfo : null in addResolveInfoForIntent()
350 } else if (resolveInfo.providerInfo != null) { in getPackageName()
351 return resolveInfo.providerInfo.packageName; in getPackageName()
/external/kotlinc/lib/
Dkotlin-compiler.jarMETA-INF/MANIFEST.MF org/jetbrains/kotlin/utils/JavaSdkUtil.class JavaSdkUtil ...