Home
last modified time | relevance | path

Searched refs:mChipGroup (Results 1 – 2 of 2) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchChipViewManager.java73 private final ViewGroup mChipGroup; field in SearchChipViewManager
95 mChipGroup = chipGroup; in SearchChipViewManager()
123 mChipGroup.setVisibility(show && mChipGroup.getChildCount() > 1 ? View.VISIBLE : View.GONE); in setChipsRowVisible()
139 final int count = mChipGroup.getChildCount(); in clearCheckedChips()
141 Chip child = (Chip) mChipGroup.getChildAt(i); in clearCheckedChips()
205 final Context context = mChipGroup.getContext(); in updateChips()
206 mChipGroup.removeAllViews(); in updateChips()
214 addChipToGroup(mChipGroup, chipData, inflater); in updateChips()
220 if (mChipGroup.getChildCount() < 2) { in updateChips()
221 mChipGroup.setVisibility(View.GONE); in updateChips()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchChipViewManagerTest.java55 private LinearLayout mChipGroup; field in SearchChipViewManagerTest
62 mChipGroup = spy(new LinearLayout(mContext)); in setUp()
64 mSearchChipViewManager = new SearchChipViewManager(mChipGroup); in setUp()
73 assertThat(mChipGroup.getChildCount()).isEqualTo(TEST_MIME_TYPES.length); in testInitChipSets_HasCorrectValue()
80 assertThat(mChipGroup.getChildCount()).isEqualTo(TEST_MIME_TYPES.length); in testUpdateChips_HasCorrectValue()
125 assertThat(mChipGroup.getChildCount()).isEqualTo(mirror.getChildCount()); in testBindMirrorGroup_sameValue()
126 assertThat(mChipGroup.getChildAt(0).getTag()).isEqualTo(mirror.getChildAt(0).getTag()); in testBindMirrorGroup_sameValue()