use of com.android.launcher3.util.WidgetUtils.createAppWidgetProviderInfo in project android_packages_apps_Launcher3 by AOSPA.
the class WidgetsListHeaderViewHolderBinderTest method generateWidgetItems.
private List<WidgetItem> generateWidgetItems(String packageName, int numOfWidgets) {
ArrayList<WidgetItem> widgetItems = new ArrayList<>();
for (int i = 0; i < numOfWidgets; i++) {
ComponentName cn = ComponentName.createRelative(packageName, ".SampleWidget" + i);
AppWidgetProviderInfo widgetInfo = WidgetUtils.createAppWidgetProviderInfo(cn);
widgetItems.add(new WidgetItem(LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), mTestProfile, mIconCache));
}
return widgetItems;
}
use of com.android.launcher3.util.WidgetUtils.createAppWidgetProviderInfo in project android_packages_apps_Launcher3 by AOSPA.
the class WidgetsListAdapterTest method generateWidgetItems.
private List<WidgetItem> generateWidgetItems(String packageName, int numOfWidgets) {
ArrayList<WidgetItem> widgetItems = new ArrayList<>();
for (int i = 0; i < numOfWidgets; i++) {
ComponentName cn = ComponentName.createRelative(packageName, ".SampleWidget" + i);
AppWidgetProviderInfo widgetInfo = WidgetUtils.createAppWidgetProviderInfo(cn);
widgetItems.add(new WidgetItem(LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), mTestProfile, mIconCache));
}
return widgetItems;
}
use of com.android.launcher3.util.WidgetUtils.createAppWidgetProviderInfo in project android_packages_apps_Launcher3 by ArrowOS.
the class WidgetsListAdapterTest method generateWidgetItems.
private List<WidgetItem> generateWidgetItems(String packageName, int numOfWidgets) {
ArrayList<WidgetItem> widgetItems = new ArrayList<>();
for (int i = 0; i < numOfWidgets; i++) {
ComponentName cn = ComponentName.createRelative(packageName, ".SampleWidget" + i);
AppWidgetProviderInfo widgetInfo = WidgetUtils.createAppWidgetProviderInfo(cn);
widgetItems.add(new WidgetItem(LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), mTestProfile, mIconCache));
}
return widgetItems;
}
use of com.android.launcher3.util.WidgetUtils.createAppWidgetProviderInfo in project android_packages_apps_Launcher3 by ArrowOS.
the class WidgetsListSearchHeaderViewHolderBinderTest method generateWidgetItems.
private List<WidgetItem> generateWidgetItems(String packageName, int numOfWidgets) {
ArrayList<WidgetItem> widgetItems = new ArrayList<>();
for (int i = 0; i < numOfWidgets; i++) {
ComponentName cn = ComponentName.createRelative(packageName, ".SampleWidget" + i);
AppWidgetProviderInfo widgetInfo = WidgetUtils.createAppWidgetProviderInfo(cn);
widgetItems.add(new WidgetItem(LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), mTestProfile, mIconCache));
}
return widgetItems;
}
use of com.android.launcher3.util.WidgetUtils.createAppWidgetProviderInfo in project android_packages_apps_Launcher3 by ArrowOS.
the class WidgetsListHeaderViewHolderBinderTest method generateWidgetItems.
private List<WidgetItem> generateWidgetItems(String packageName, int numOfWidgets) {
ArrayList<WidgetItem> widgetItems = new ArrayList<>();
for (int i = 0; i < numOfWidgets; i++) {
ComponentName cn = ComponentName.createRelative(packageName, ".SampleWidget" + i);
AppWidgetProviderInfo widgetInfo = WidgetUtils.createAppWidgetProviderInfo(cn);
widgetItems.add(new WidgetItem(LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, widgetInfo), mTestProfile, mIconCache));
}
return widgetItems;
}
Aggregations