Searched refs:widgetId (Results 1 – 3 of 3) sorted by relevance
41 …int widgetId = shadowAppWidgetManager.createWidget(SpanishTestAppWidgetProvider.class, R.layout.ma… in createWidget_shouldInflateViewAndAssignId() local42 View widgetView = shadowAppWidgetManager.getViewFor(widgetId); in createWidget_shouldInflateViewAndAssignId()49 …int widgetId = shadowAppWidgetManager.createWidget(SpanishTestAppWidgetProvider.class, R.layout.ma… in getViewFor_shouldReturnSameViewEveryTimeForGivenWidgetId() local50 View widgetView = shadowAppWidgetManager.getViewFor(widgetId); in getViewFor_shouldReturnSameViewEveryTimeForGivenWidgetId()53 assertSame(widgetView, shadowAppWidgetManager.getViewFor(widgetId)); in getViewFor_shouldReturnSameViewEveryTimeForGivenWidgetId()58 …int widgetId = shadowAppWidgetManager.createWidget(SpanishTestAppWidgetProvider.class, R.layout.ma… in createWidget_shouldAllowForMultipleInstancesOfWidgets() local59 View widgetView = shadowAppWidgetManager.getViewFor(widgetId); in createWidget_shouldAllowForMultipleInstancesOfWidgets()61 assertNotSame(widgetId, in createWidget_shouldAllowForMultipleInstancesOfWidgets()69 …int widgetId = shadowAppWidgetManager.createWidget(SpanishTestAppWidgetProvider.class, R.layout.ma… in shouldReplaceLayoutIfAndOnlyIfLayoutIdIsDifferent() local70 View originalWidgetView = shadowAppWidgetManager.getViewFor(widgetId); in shouldReplaceLayoutIfAndOnlyIfLayoutIdIsDifferent()[all …]
175 public View getViewFor(int widgetId) { in getViewFor() argument176 return getWidgetInfo(widgetId).view; in getViewFor()185 public AppWidgetProvider getAppWidgetProviderFor(int widgetId) { in getAppWidgetProviderFor() argument186 return getWidgetInfo(widgetId).appWidgetProvider; in getAppWidgetProviderFor()209 private WidgetInfo getWidgetInfo(int widgetId) { in getWidgetInfo() argument210 return widgetInfos.get(widgetId); in getWidgetInfo()
37 for (int widgetId : appWidgetIds) { in onUpdate()84 appWidgetManager.updateAppWidget(widgetId, rv); in onUpdate()