Home
last modified time | relevance | path

Searched refs:WidgetsListContentEntry (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/model/
DWidgetsListContentEntryTest.java41 import com.android.launcher3.widget.model.WidgetsListContentEntry;
100 WidgetsListContentEntry widgetsListRowEntry = new WidgetsListContentEntry(mPackageItemInfo1, in unsortedWidgets_diffLabels_shouldSortWidgetItems()
123 WidgetsListContentEntry widgetsListRowEntry = new WidgetsListContentEntry(mPackageItemInfo1, in unsortedWidgets_sameLabels_differentSize_shouldSortWidgetItems()
149 WidgetsListContentEntry widgetsListRowEntry = new WidgetsListContentEntry(mPackageItemInfo1, in unsortedWidgets_hodgepodge_shouldSortWidgetItems()
166 WidgetsListContentEntry widgetsListRowEntry1 = new WidgetsListContentEntry( in equals_entriesWithDifferentPackageItemInfo_returnFalse()
171 WidgetsListContentEntry widgetsListRowEntry2 = new WidgetsListContentEntry( in equals_entriesWithDifferentPackageItemInfo_returnFalse()
183 WidgetsListContentEntry widgetsListRowEntry1 = new WidgetsListContentEntry( in equals_entriesWithDifferentTitleSectionName_returnFalse()
188 WidgetsListContentEntry widgetsListRowEntry2 = new WidgetsListContentEntry( in equals_entriesWithDifferentTitleSectionName_returnFalse()
201 WidgetsListContentEntry widgetsListRowEntry1 = new WidgetsListContentEntry( in equals_entriesWithDifferentWidgetsList_returnFalse()
206 WidgetsListContentEntry widgetsListRowEntry2 = new WidgetsListContentEntry( in equals_entriesWithDifferentWidgetsList_returnFalse()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/widget/model/
DWidgetsListContentEntry.java29 public final class WidgetsListContentEntry extends WidgetsListBaseEntry { class
40 public WidgetsListContentEntry(PackageItemInfo pkgItem, String titleSectionName, in WidgetsListContentEntry() method in WidgetsListContentEntry
54 public WidgetsListContentEntry(PackageItemInfo pkgItem, String titleSectionName, in WidgetsListContentEntry() method in WidgetsListContentEntry
72 public WidgetsListContentEntry withMaxSpanSize(@Px int maxSpanSize) { in withMaxSpanSize()
74 return new WidgetsListContentEntry( in withMaxSpanSize()
92 if (!(obj instanceof WidgetsListContentEntry)) return false; in equals()
93 WidgetsListContentEntry otherEntry = (WidgetsListContentEntry) obj; in equals()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java36 import com.android.launcher3.widget.model.WidgetsListContentEntry;
212 .filter(entry -> entry instanceof WidgetsListContentEntry)
213 .forEach(entry -> ((WidgetsListContentEntry) entry).mWidgets
228 .filter(entry -> entry instanceof WidgetsListContentEntry)
254 .filter(row -> row instanceof WidgetsListContentEntry
256 .flatMap(row -> ((WidgetsListContentEntry) row).mWidgets.stream())
262 public WidgetsListContentEntry getSelectedAppWidgets(PackageUserKey packageUserKey) {
263 return (WidgetsListContentEntry) mAllWidgets.stream()
264 .filter(row -> row instanceof WidgetsListContentEntry
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/search/
DSimpleWidgetsSearchAlgorithmTest.java52 import com.android.launcher3.widget.model.WidgetsListContentEntry;
73 private WidgetsListContentEntry mCalendarContentEntry;
75 private WidgetsListContentEntry mCameraContentEntry;
77 private WidgetsListContentEntry mClockContentEntry;
145 new WidgetsListContentEntry( in filter_shouldMatchOnWidgetLabel()
153 new WidgetsListContentEntry( in filter_shouldMatchOnWidgetLabel()
181 private WidgetsListContentEntry createWidgetsContentEntry(String packageName, String appName, in createWidgetsContentEntry()
187 return new WidgetsListContentEntry(pInfo, /* titleSectionName= */ "", widgetItems); in createWidgetsContentEntry()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/
DWidgetsListTableViewHolderBinderTest.java58 import com.android.launcher3.widget.model.WidgetsListContentEntry;
111 WidgetsListContentEntry entry = generateSampleAppWithWidgets( in bindViewHolder_appWith3Widgets_shouldHave3Widgets()
133 private WidgetsListContentEntry generateSampleAppWithWidgets(String appName, String packageName, in generateSampleAppWithWidgets()
139 return new WidgetsListContentEntry(appInfo, in generateSampleAppWithWidgets()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsListAdapter.java51 import com.android.launcher3.widget.model.WidgetsListContentEntry;
198 || !(entry instanceof WidgetsListContentEntry))) in updateVisibleEntries()
204 } else if (entry instanceof WidgetsListContentEntry) { in updateVisibleEntries()
207 return ((WidgetsListContentEntry) entry).withMaxSpanSize( in updateVisibleEntries()
316 if (entry instanceof WidgetsListContentEntry) { in getItemViewType()
401 instanceof WidgetsListContentEntry) { in scrollToPositionAndMaintainOffset()
DWidgetsListTableViewHolderBinder.java44 import com.android.launcher3.widget.model.WidgetsListContentEntry;
54 implements ViewHolderBinder<WidgetsListContentEntry, WidgetsRowViewHolder> {
90 public void bindViewHolder(WidgetsRowViewHolder holder, WidgetsListContentEntry entry, in bindViewHolder()
DWidgetsTwoPaneSheet.java51 import com.android.launcher3.widget.model.WidgetsListContentEntry;
387 WidgetsListContentEntry contentEntry = mActivityContext.getPopupDataProvider() in getHeaderChangeListener()
398 WidgetsListContentEntry contentEntryToBind; in getHeaderChangeListener()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/search/
DSimpleWidgetsSearchAlgorithm.java29 import com.android.launcher3.widget.model.WidgetsListContentEntry;
76 results.add(new WidgetsListContentEntry(headerEntry.mPkgItem, in getFilteredWidgets()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DWidgetsModel.java43 import com.android.launcher3.widget.model.WidgetsListContentEntry;
97 result.add(new WidgetsListContentEntry(pkgItem, sectionName, widgetItems)); in getFilteredWidgetsListForPicker()