use of com.android.launcher3.util.WidgetUtils.createAppWidgetProviderInfo in project android_packages_apps_Launcher3 by ProtonAOSP.
the class WidgetsListTableViewHolderBinderTest 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_404Launcher by P-404.
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_404Launcher by P-404.
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_404Launcher by P-404.
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_404Launcher by P-404.
the class WidgetsListTableViewHolderBinderTest 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