Home
last modified time | relevance | path

Searched refs:WidgetsListBaseEntry (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsDiffReporter.java25 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
55 public void process(ArrayList<WidgetsListBaseEntry> currentEntries, in process()
56 List<WidgetsListBaseEntry> newEntries, in process()
75 ArrayList<WidgetsListBaseEntry> orgEntries = in process()
76 (ArrayList<WidgetsListBaseEntry>) currentEntries.clone(); in process()
77 Iterator<WidgetsListBaseEntry> orgIter = orgEntries.iterator(); in process()
78 Iterator<WidgetsListBaseEntry> newIter = newEntries.iterator(); in process()
80 WidgetsListBaseEntry orgRowEntry = orgIter.next(); in process()
81 WidgetsListBaseEntry newRowEntry = newIter.next(); in process()
140 private int compareAppNameAndType(WidgetsListBaseEntry curRow, WidgetsListBaseEntry newRow, in compareAppNameAndType()
[all …]
DWidgetsListAdapter.java55 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
100 private List<WidgetsListBaseEntry> mAllEntries = new ArrayList<>();
101 private ArrayList<WidgetsListBaseEntry> mVisibleEntries = new ArrayList<>();
104 private Predicate<WidgetsListBaseEntry> mHeaderAndSelectedContentFilter = entry ->
109 @Nullable private Predicate<WidgetsListBaseEntry> mFilter = null;
166 view.getTag(R.id.tag_widget_entry) instanceof WidgetsListBaseEntry.Header; in onAttachedToRecyclerView()
177 public void setFilter(Predicate<WidgetsListBaseEntry> filter) { in setFilter()
209 public List<WidgetsListBaseEntry> getItems() { in getItems()
219 public void setWidgets(List<WidgetsListBaseEntry> tempEntries) { in setWidgets()
230 public void setWidgetsOnSearch(List<WidgetsListBaseEntry> searchResults) { in setWidgetsOnSearch()
[all …]
DWidgetsFullSheet.java63 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
100 private final Predicate<WidgetsListBaseEntry> mPrimaryWidgetsFilter =
102 private final Predicate<WidgetsListBaseEntry> mWorkWidgetsFilter =
423 List<WidgetsListBaseEntry> allWidgets = in onWidgetsBound()
472 public void onSearchResults(List<WidgetsListBaseEntry> entries) { in onSearchResults()
DWidgetsRecyclerView.java35 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
275 WidgetsListBaseEntry entry = mAdapter.getItems().get(i); in getItemsHeight()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/
DWidgetsDiffReporterTest.java41 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
111 ArrayList<WidgetsListBaseEntry> currentList = new ArrayList<>( in listNotChanged_shouldNotInvokeAnyCallbacks()
126 ArrayList<WidgetsListBaseEntry> currentList = new ArrayList<>(); in headersOnly_emptyListToNonEmpty_shouldInvokeNotifyDataSetChanged()
128 List<WidgetsListBaseEntry> newList = List.of( in headersOnly_emptyListToNonEmpty_shouldInvokeNotifyDataSetChanged()
145 ArrayList<WidgetsListBaseEntry> currentList = new ArrayList<>( in headersOnly_nonEmptyToEmptyList_shouldInvokeNotifyDataSetChanged()
148 List<WidgetsListBaseEntry> newList = List.of(); in headersOnly_nonEmptyToEmptyList_shouldInvokeNotifyDataSetChanged()
162 ArrayList<WidgetsListBaseEntry> currentList = new ArrayList<>( in headersOnly_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks()
165 List<WidgetsListBaseEntry> newList = List.of(mHeaderA, mHeaderC, mHeaderE); in headersOnly_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks()
185 ArrayList<WidgetsListBaseEntry> currentList = new ArrayList<>( in headersContentsMix_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks()
188 List<WidgetsListBaseEntry> newList = List.of(mHeaderA, mContentC, mHeaderD); in headersContentsMix_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks()
[all …]
DWidgetsListAdapterTest.java44 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
147 ArrayList<WidgetsListBaseEntry> allEntries = generateSampleMap(2); in setWidgets_expandedApp_moreWidgets_shouldNotifyItemChangedWithWidgetItemInfoDiff()
176 List<WidgetsListBaseEntry> allAppsWithWidgets = generateSampleMap(5); in setWidgets_hodgepodge_shouldInvokeExpectedDataObserverCallbacks()
179 List<WidgetsListBaseEntry> currentList = List.of( in setWidgets_hodgepodge_shouldInvokeExpectedDataObserverCallbacks()
190 List<WidgetsListBaseEntry> newList = List.of( in setWidgets_hodgepodge_shouldInvokeExpectedDataObserverCallbacks()
217 ArrayList<WidgetsListBaseEntry> allEntries = generateSampleMap(2); in setWidgetsOnSearch_expandedApp_shouldResetExpandedApp()
246 private ArrayList<WidgetsListBaseEntry> generateSampleMap(int num) { in generateSampleMap()
247 ArrayList<WidgetsListBaseEntry> result = new ArrayList<>(); in generateSampleMap()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/search/
DWidgetsSearchBarController.java32 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
40 SearchCallback<WidgetsListBaseEntry>, ExtendedEditText.OnBackKeyListener,
45 protected SearchAlgorithm<WidgetsListBaseEntry> mSearchAlgorithm;
52 SearchAlgorithm<WidgetsListBaseEntry> algo, ExtendedEditText editText, in WidgetsSearchBarController()
90 public void onSearchResult(String query, ArrayList<WidgetsListBaseEntry> items) { in onSearchResult()
98 public void onAppendSearchResult(String query, ArrayList<WidgetsListBaseEntry> items) { in onAppendSearchResult()
DSimpleWidgetsSearchAlgorithm.java28 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
40 public final class SimpleWidgetsSearchAlgorithm implements SearchAlgorithm<WidgetsListBaseEntry> {
51 public void doSearch(String query, SearchCallback<WidgetsListBaseEntry> callback) { in doSearch()
52 ArrayList<WidgetsListBaseEntry> result = getFilteredWidgets(mDataProvider, query); in doSearch()
66 public static ArrayList<WidgetsListBaseEntry> getFilteredWidgets( in getFilteredWidgets()
68 ArrayList<WidgetsListBaseEntry> results = new ArrayList<>(); in getFilteredWidgets()
DSearchModeListener.java18 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
39 void onSearchResults(List<WidgetsListBaseEntry> entries); in onSearchResults()
/packages/apps/Launcher3/src/com/android/launcher3/widget/model/
DWidgetsListBaseEntry.java33 public abstract class WidgetsListBaseEntry { class
44 public WidgetsListBaseEntry(PackageItemInfo pkgItem, String titleSectionName, in WidgetsListBaseEntry() method in WidgetsListBaseEntry
67 public interface Header<T extends WidgetsListBaseEntry & Header<T>> {
DWidgetsListSearchHeaderEntry.java24 public final class WidgetsListSearchHeaderEntry extends WidgetsListBaseEntry
25 implements WidgetsListBaseEntry.Header<WidgetsListSearchHeaderEntry> {
DWidgetsListHeaderEntry.java24 public final class WidgetsListHeaderEntry extends WidgetsListBaseEntry
25 implements WidgetsListBaseEntry.Header<WidgetsListHeaderEntry> {
DWidgetsListContentEntry.java27 public final class WidgetsListContentEntry extends WidgetsListBaseEntry {
/packages/apps/Launcher3/go/src/com/android/launcher3/model/
DWidgetsModel.java29 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
48 private static final ArrayList<WidgetsListBaseEntry> EMPTY_WIDGET_LIST = new ArrayList<>();
58 public synchronized ArrayList<WidgetsListBaseEntry> getWidgetsListForPicker(Context context) { in getWidgetsListForPicker()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/search/
DWidgetsSearchBarControllerTest.java31 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
57 private SearchAlgorithm<WidgetsListBaseEntry> mSearchAlgorithm;
78 ArrayList<WidgetsListBaseEntry> entries = new ArrayList<>(); in onSearchResult_shouldInformSearchModeListener()
DSimpleWidgetsSearchAlgorithmTest.java45 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
82 private SearchCallback<WidgetsListBaseEntry> mSearchCallback;
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java34 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
64 private List<WidgetsListBaseEntry> mAllWidgets = List.of();
203 public void setAllWidgets(List<WidgetsListBaseEntry> allWidgets) { in setAllWidgets()
212 public List<WidgetsListBaseEntry> getAllWidgets() { in getAllWidgets()
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/
DLoaderResults.java24 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
50 final List<WidgetsListBaseEntry> widgets = in bindWidgets()
DWidgetsModel.java34 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
78 public synchronized ArrayList<WidgetsListBaseEntry> getWidgetsListForPicker(Context context) { in getWidgetsListForPicker()
79 ArrayList<WidgetsListBaseEntry> result = new ArrayList<>(); in getWidgetsListForPicker()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DBaseModelUpdateTask.java31 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
126 final ArrayList<WidgetsListBaseEntry> widgets = in bindUpdatedWidgets()
DBgDataModel.java53 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
470 void bindAllWidgets(List<WidgetsListBaseEntry> widgets); in bindAllWidgets()
/packages/apps/Launcher3/src/com/android/launcher3/secondarydisplay/
DSecondaryDisplayLauncher.java48 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
229 public void bindAllWidgets(List<WidgetsListBaseEntry> widgets) { } in bindAllWidgets()
/packages/apps/Launcher3/quickstep/robolectric_tests/src/com/android/launcher3/model/
DWidgetsPredicationUpdateTaskTest.java56 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
287 public void bindAllWidgets(List<WidgetsListBaseEntry> widgets) { } in bindAllWidgets()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncher.java197 import com.android.launcher3.widget.model.WidgetsListBaseEntry;
2699 public void bindAllWidgets(final List<WidgetsListBaseEntry> allWidgets) { in bindAllWidgets()