/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/ui/ |
D | SortedArrayAdapterTest.java | 45 private TestSortedArrayAdapter mAdapter; field in SortedArrayAdapterTest 49 mAdapter = new TestSortedArrayAdapter(Integer.MAX_VALUE, null); in setUp() 59 mAdapter.add(P1); in testAdd_one() 61 assertContentsInOrder(mAdapter, P1); in testAdd_one() 66 mAdapter.add(P1); in testAdd_two() 67 mAdapter.add(P2); in testAdd_two() 69 assertContentsInOrder(mAdapter, P2, P1); in testAdd_two() 74 mAdapter.setInitialItems(Arrays.asList(P1, P2)); in testSetInitialItems_two() 76 assertContentsInOrder(mAdapter, P2, P1); in testSetInitialItems_two() 81 mAdapter = new TestSortedArrayAdapter(1, null); in testMaxInitialCount() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | HeaderGridView.java | 220 private final ListAdapter mAdapter; field in HeaderGridView.HeaderViewGridAdapter 231 mAdapter = adapter; in HeaderViewGridAdapter() 248 return (mAdapter == null || mAdapter.isEmpty()) && getHeadersCount() == 0; in isEmpty() 290 if (mAdapter != null) { in getCount() 291 return getHeadersCount() * mNumColumns + mAdapter.getCount(); in getCount() 299 if (mAdapter != null) { in areAllItemsEnabled() 300 return mAreAllFixedViewsSelectable && mAdapter.areAllItemsEnabled(); in areAllItemsEnabled() 318 if (mAdapter != null) { in isEnabled() 319 adapterCount = mAdapter.getCount(); in isEnabled() 321 return mAdapter.isEnabled(adjPosition); in isEnabled() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
D | CategoryPanel.java | 39 private CategoryAdapter mAdapter; field in CategoryPanel 56 mAdapter = activity.getCategoryLooksAdapter(); in loadAdapter() 57 if (mAdapter != null) { in loadAdapter() 58 mAdapter.initializeSelection(MainPanel.LOOKS); in loadAdapter() 64 mAdapter = activity.getCategoryBordersAdapter(); in loadAdapter() 65 if (mAdapter != null) { in loadAdapter() 66 mAdapter.initializeSelection(MainPanel.BORDERS); in loadAdapter() 72 mAdapter = activity.getCategoryGeometryAdapter(); in loadAdapter() 73 if (mAdapter != null) { in loadAdapter() 74 mAdapter.initializeSelection(MainPanel.GEOMETRY); in loadAdapter() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | HighlightablePreferenceGroupAdapterTest.java | 71 private HighlightablePreferenceGroupAdapter mAdapter; field in HighlightablePreferenceGroupAdapterTest 82 mAdapter = spy(new HighlightablePreferenceGroupAdapter(mPreferenceCatetory, TEST_KEY, in setUp() 84 when(mAdapter.getItem(anyInt())).thenReturn(mPreference); in setUp() 91 when(mAdapter.getPreferenceAdapterPosition(anyString())).thenReturn(1); in requestHighlight_hasKey_notHighlightedBefore_shouldRequest() 92 mAdapter.requestHighlight(mRoot, mock(RecyclerView.class), mock(AppBarLayout.class)); in requestHighlight_hasKey_notHighlightedBefore_shouldRequest() 102 ReflectionHelpers.setField(mAdapter, "mHighlightKey", null); in requestHighlight_noKey_highlightedBefore_noRecyclerView_shouldNotRequest() 103 ReflectionHelpers.setField(mAdapter, "mHighlightRequested", false); in requestHighlight_noKey_highlightedBefore_noRecyclerView_shouldNotRequest() 104 mAdapter.requestHighlight(mRoot, mock(RecyclerView.class), mock(AppBarLayout.class)); in requestHighlight_noKey_highlightedBefore_noRecyclerView_shouldNotRequest() 106 ReflectionHelpers.setField(mAdapter, "mHighlightKey", TEST_KEY); in requestHighlight_noKey_highlightedBefore_noRecyclerView_shouldNotRequest() 107 ReflectionHelpers.setField(mAdapter, "mHighlightRequested", true); in requestHighlight_noKey_highlightedBefore_noRecyclerView_shouldNotRequest() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactEntryListFragment.java | 121 private T mAdapter; field in ContactEntryListFragment 219 if (mAdapter != null) { in setEnabled() 223 mAdapter.clearPartitions(); in setEnabled() 242 return mAdapter; in getAdapter() 283 mAdapter = createListAdapter(); in onCreate() 326 if (mAdapter == null) { in startLoading() 332 int partitionCount = mAdapter.getPartitionCount(); in startLoading() 334 Partition partition = mAdapter.getPartition(i); in startLoading() 355 loader.setDirectorySearchMode(mAdapter.getDirectorySearchMode()); in onCreateLoader() 364 mAdapter.configureLoader(loader, directoryId); in onCreateLoader() [all …]
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | FilmstripDataAdapterProxy.java | 40 protected final LocalFilmstripDataAdapter mAdapter; field in FilmstripDataAdapterProxy 56 mAdapter = wrappedAdapter; in FilmstripDataAdapterProxy() 63 mAdapter.suggestViewSizeBound(w, h); in suggestViewSizeBound() 68 mAdapter.setListener(listener); in setListener() 73 mAdapter.setLocalDataListener(listener); in setLocalDataListener() 78 mAdapter.requestLoad(onDone); in requestLoad() 83 mAdapter.requestLoadNewPhotos(); in requestLoadNewPhotos() 88 return mAdapter.addOrUpdate(item); in addOrUpdate() 93 mAdapter.clear(); in clear() 98 return mAdapter.executeDeletion(); in executeDeletion() [all …]
|
D | FixedLastProxyAdapter.java | 62 int totalNumber = mAdapter.getTotalNumber(); in getItemAt() 65 return mAdapter.getItemAt(index); in getItemAt() 74 if (index < mAdapter.getTotalNumber()) { in removeAt() 75 mAdapter.removeAt(index); in removeAt() 81 return mAdapter.findByContentUri(uri); in findByContentUri() 86 int totalNumber = mAdapter.getTotalNumber(); in updateItemAt() 89 mAdapter.updateItemAt(pos, item); in updateItemAt() 110 return mAdapter.getTotalNumber() + 1; in getTotalNumber() 115 int totalNumber = mAdapter.getTotalNumber(); in getView() 118 return mAdapter.getView(recycled, index, videoClickedCallback); in getView() [all …]
|
D | FixedFirstProxyAdapter.java | 66 return mAdapter.getItemAt(index - 1); in getItemAt() 72 mAdapter.removeAt(index - 1); in removeAt() 78 int pos = mAdapter.findByContentUri(uri); in findByContentUri() 103 mAdapter.updateItemAt(pos - 1, item); in updateItemAt() 109 return (mAdapter.getTotalNumber() + 1); in getTotalNumber() 119 return mAdapter.getView(recycled, index - 1, videoClickedCallback); in getView() 127 return mAdapter.getItemViewType(index); in getItemViewType() 135 return mAdapter.getFilmstripItemAt(index - 1); in getFilmstripItemAt() 141 mAdapter.setListener((listener == null) ? null : this); in setListener() 195 return mAdapter.updateMetadataAt(index - 1); in updateMetadataAt() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardsAdapterTest.java | 55 private ContextualCardsAdapter mAdapter; field in ContextualCardsAdapterTest 67 mAdapter = new ContextualCardsAdapter(mActivity, fragment, mManager); in setUp() 72 mAdapter.mContextualCards.addAll(getContextualCardList()); in getItemViewType_sliceFullWidth_shouldReturnSliceFullWidthViewType() 74 final int viewType = mAdapter.getItemViewType(1); in getItemViewType_sliceFullWidth_shouldReturnSliceFullWidthViewType() 82 mAdapter.mContextualCards.addAll(cards); in getItemCount_cardList_shouldReturnListSize() 84 final int count = mAdapter.getItemCount(); in getItemCount_cardList_shouldReturnListSize() 94 final RecyclerView.ViewHolder holder = mAdapter.onCreateViewHolder(recyclerView, in onCreateViewHolder_conditionalCard_shouldReturnConditionalCardHolder() 102 mAdapter.mContextualCards.add(buildConditionContextualCard()); in onBindViewHolder_conditionalCard_shouldSetTestTitle() 109 mAdapter.onBindViewHolder(holder, 0); in onBindViewHolder_conditionalCard_shouldSetTestTitle() 116 mAdapter.mContextualCards.addAll(getContextualCardList()); in onContextualCardUpdated_emptyList_shouldClearCardList() [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/ |
D | RecyclerViewAdapterAdapterV1.java | 46 private final Adapter mAdapter; field in RecyclerViewAdapterAdapterV1 106 mAdapter = adapter; in RecyclerViewAdapterAdapterV1() 111 return mAdapter; in getAdapter() 116 return mAdapter.getItemCount(); in getItemCount() 121 return mAdapter.getItemId(position); in getItemId() 126 return mAdapter.getItemViewType(position); in getItemViewType() 131 switch (mAdapter.getStateRestorationPolicy()) { in getStateRestorationPolicyInt() 145 mAdapter.onAttachedToRecyclerView(mRecyclerView); in onAttachedToRecyclerView() 146 mAdapter.registerAdapterDataObserver(mAdapterDataObserver); in onAttachedToRecyclerView() 152 mAdapter.bindViewHolder(holder.getViewHolder(), position); in bindViewHolder() [all …]
|
D | CarUiListItemAdapterAdapterV1.java | 35 private AdapterOEMV1 mAdapter; field in CarUiListItemAdapterAdapterV1 78 this.mAdapter = adapter; in CarUiListItemAdapterAdapterV1() 84 switch (mAdapter.getStateRestorationPolicyInt()) { in updateStateRestorationPolicy() 108 return mAdapter.getItemCount(); in getItemCount() 113 return mAdapter.getItemId(position); in getItemId() 118 return mAdapter.getItemViewType(position); in getItemViewType() 123 mAdapter.bindViewHolder(holder.getViewHolder(), position); in onBindViewHolder() 128 return new ViewHolderWrapper(mAdapter.createViewHolder(parent, viewType)); in onCreateViewHolder() 133 return mAdapter.onFailedToRecycleView(holder.getViewHolder()); in onFailedToRecycleView() 138 mAdapter.onViewAttachedToWindow(holder.getViewHolder()); in onViewAttachedToWindow() [all …]
|
D | RangeFilterImpl.java | 31 private final RecyclerView.Adapter<?> mAdapter; field in RangeFilterImpl 47 mAdapter = adapter; in RangeFilterImpl() 78 mAdapter.notifyItemChanged(0); in invalidateMessagePositions() 81 mAdapter.notifyItemChanged(getFilteredCount() - 1); in invalidateMessagePositions() 88 mAdapter.notifyItemInserted(mUnlimitedCount); in applyFilter() 89 mAdapter.notifyItemRangeRemoved(mRange.mEndIndex, mUnlimitedCount - mRange.mEndIndex); in applyFilter() 92 mAdapter.notifyItemRangeRemoved(0, mRange.mStartIndex); in applyFilter() 93 mAdapter.notifyItemInserted(0); in applyFilter() 101 mAdapter.notifyItemRemoved(mRange.mLimitedCount - 1); in removeFilter() 103 mAdapter.notifyItemRangeInserted(mRange.mLimitedCount - 1, in removeFilter() [all …]
|
/packages/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/recyclerview/ |
D | AdapterWrapper.java | 37 private AdapterOEMV1 mAdapter; field in AdapterWrapper 79 this.mAdapter = adapter; in AdapterWrapper() 85 switch (mAdapter.getStateRestorationPolicyInt()) { in updateStateRestorationPolicy() 103 return mAdapter.getItemCount(); in getItemCount() 108 return mAdapter.getItemId(position); in getItemId() 113 return mAdapter.getItemViewType(position); in getItemViewType() 118 mAdapter.onAttachedToRecyclerView((RecyclerViewOEMV1) recyclerView); in onAttachedToRecyclerView() 123 mAdapter.bindViewHolder(holder.getViewHolder(), position); in onBindViewHolder() 128 return new ViewHolderWrapper(mAdapter.createViewHolder(parent, viewType)); in onCreateViewHolder() 133 mAdapter.onDetachedFromRecyclerView((RecyclerViewOEMV1) recyclerView); in onDetachedFromRecyclerView() [all …]
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/ |
D | WidgetsListAdapterTest.java | 71 private WidgetsListAdapter mAdapter; field in WidgetsListAdapterTest 84 mAdapter = new WidgetsListAdapter(mContext, mMockLayoutInflater, mMockWidgetCache, in setup() 86 mAdapter.registerAdapterDataObserver(mListener); in setup() 95 mAdapter.setWidgets(generateSampleMap(1)); in setWidgets_shouldNotifyDataSetChanged() 102 mAdapter.setWidgets(generateSampleMap(1)); in setWidgets_withItemInserted_shouldNotifyItemInserted() 103 mAdapter.setWidgets(generateSampleMap(2)); in setWidgets_withItemInserted_shouldNotifyItemInserted() 110 mAdapter.setWidgets(generateSampleMap(2)); in setWidgets_withItemRemoved_shouldNotifyItemRemoved() 111 mAdapter.setWidgets(generateSampleMap(1)); in setWidgets_withItemRemoved_shouldNotifyItemRemoved() 118 mAdapter.setWidgets(generateSampleMap(1)); in setWidgets_appIconChanged_shouldNotifyItemChanged() 119 mAdapter.setWidgets(generateSampleMap(1)); in setWidgets_appIconChanged_shouldNotifyItemChanged() [all …]
|
D | WidgetsDiffReporterTest.java | 66 @Mock private RecyclerView.Adapter mAdapter; field in WidgetsDiffReporterTest 91 mWidgetsDiffReporter = new WidgetsDiffReporter(mIconCache, mAdapter); in setUp() 118 verifyZeroInteractions(mAdapter); in listNotChanged_shouldNotInvokeAnyCallbacks() 137 verify(mAdapter).notifyDataSetChanged(); in headersOnly_emptyListToNonEmpty_shouldInvokeNotifyDataSetChanged() 154 verify(mAdapter).notifyDataSetChanged(); in headersOnly_nonEmptyToEmptyList_shouldInvokeNotifyDataSetChanged() 171 verify(mAdapter).notifyItemRemoved(/* position= */ 1); in headersOnly_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks() 173 verify(mAdapter).notifyItemRemoved(/* position= */ 2); in headersOnly_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks() 175 verify(mAdapter).notifyItemInserted(/* position= */ 1); in headersOnly_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks() 177 verify(mAdapter).notifyItemInserted(/* position= */ 2); in headersOnly_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks() 194 verify(mAdapter).notifyItemRemoved(/* position= */ 1); in headersContentsMix_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 97 private BluetoothAdapter mAdapter; field in HeadsetServiceAndStateMachineTest 180 mAdapter = BluetoothAdapter.getDefaultAdapter(); in setUp() 268 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testGetHeadsetService() 281 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testConnectFromApi() 324 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testUnbondDevice_disconnectBeforeUnbond() 367 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testUnbondDevice_disconnectAfterUnbond() 428 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, i); in testVirtualCall_normalStartStop() 433 new int[]{BluetoothProfile.STATE_CONNECTED}, mAdapter.getAttributionSource()), in testVirtualCall_normalStartStop() 441 mAdapter.getAttributionSource())); in testVirtualCall_normalStartStop() 445 mHeadsetServiceBinder.getActiveDevice(mAdapter.getAttributionSource())); in testVirtualCall_normalStartStop() [all …]
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/dirlist/ |
D | DirectoryAddonsAdapterTest.java | 43 private DirectoryAddonsAdapter mAdapter; field in DirectoryAddonsAdapterTest 55 mAdapter = new DirectoryAddonsAdapter( in setUp() 62 mEnv.model.addUpdateListener(mAdapter.getModelUpdateListener()); in setUp() 69 assertEquals(mEnv.model.getItemCount() + 1, mAdapter.getItemCount()); in testItemCount_mixed() 77 assertEquals(0, mAdapter.getPosition(ModelId.build(mEnv.model.mUserId, AUTHORITY, "1"))); in testGetPosition() 80 assertEquals(2, mAdapter.getPosition(ModelId.build(mEnv.model.mUserId, AUTHORITY, "2"))); in testGetPosition() 90 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount()); in testItemCount_allDirs() 100 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount()); in testItemCount_allFiles() 112 assertEquals(mEnv.model.getItemCount() + 1, mAdapter.getItemCount()); in testAddsInfoMessage_WithDirectoryChildren() 118 assertEquals(1, mAdapter.getItemCount()); in testItemCount_none() [all …]
|
/packages/apps/Car/Media/src/com/android/car/media/ |
D | UxrPivotFilterImpl.java | 28 private final RecyclerView.Adapter<?> mAdapter; field in UxrPivotFilterImpl 46 mAdapter = adapter; in UxrPivotFilterImpl() 74 mAdapter.notifyItemChanged(0); in invalidateMessagePositions() 77 mAdapter.notifyItemChanged(getFilteredCount() - 1); in invalidateMessagePositions() 170 mAdapter.notifyItemInserted(mSavedRange.mLimitedCount); in updatePivotIndex() 174 mAdapter.notifyItemRemoved(mSavedRange.mLimitedCount - 1); in updatePivotIndex() 181 mAdapter.notifyItemRangeInserted(insertPos, insertCount); in updatePivotIndex() 186 mAdapter.notifyItemRangeRemoved(delPos, delCount); in updatePivotIndex() 193 mAdapter.notifyItemRangeInserted(insertPos, insertCount); in updatePivotIndex() 198 mAdapter.notifyItemRangeRemoved(delPos, delCount); in updatePivotIndex() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothRequestPermissionActivityTest.java | 59 private LocalBluetoothAdapter mAdapter; field in BluetoothRequestPermissionActivityTest 69 mAdapter = LocalBluetoothManager.getInstance(mContext, in setUp() 128 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_NONE); in onCreate_requestDiscoverableIntent_bypassforSetup_startsDiscoverableScan() 134 assertThat(mAdapter.getScanMode()).isEqualTo( in onCreate_requestDiscoverableIntent_bypassforSetup_startsDiscoverableScan() 141 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_NONE); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_noDialog() 153 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_NONE); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_receiverRegistered() 165 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_NONE); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_enableDiscovery() 176 assertThat(mAdapter.getScanMode()).isEqualTo( in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_enableDiscovery() 183 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_NONE); in onCreate_requestDiscoverableIntent_bypassforGeneric_noScanModeChange() 198 assertThat(mAdapter.getScanMode()).isEqualTo(BluetoothAdapter.SCAN_MODE_NONE); in onCreate_requestDiscoverableIntent_bypassforGeneric_noScanModeChange() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
D | BaseActionFragment.java | 57 private ActionAdapter mAdapter; field in BaseActionFragment 102 mAdapter = new ActionAdapter(mFragment.getActivity()); in onCreate() 109 mAdapter.addAction(action); in onCreate() 126 mAdapter.setListener(this); in onCreate() 127 mAdapter.setOnFocusListener(this); in onCreate() 128 mAdapter.setOnKeyListener(this); in onCreate() 135 sav.addOnScrollListener(mAdapter); in onResume() 136 if (getAdapter() != mAdapter) { in onResume() 137 mAdapter.setScrollAdapterView(sav); in onResume() 138 setAdapter(mAdapter); in onResume() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | HorizontalBreadcrumb.java | 46 private BreadcrumbAdapter mAdapter; field in HorizontalBreadcrumb 69 mAdapter = new BreadcrumbAdapter(state, env, this::onKey); in setup() 89 setAdapter(mAdapter); in show() 91 int currentItemCount = mAdapter.getItemCount(); in show() 92 int lastItemCount = mAdapter.getLastItemSize(); in show() 94 mAdapter.notifyItemRangeInserted(lastItemCount, in show() 96 mAdapter.notifyItemChanged(lastItemCount - 1); in show() 98 mAdapter.notifyItemRangeRemoved(currentItemCount, in show() 100 mAdapter.notifyItemChanged(currentItemCount - 1); in show() 102 mAdapter.notifyItemChanged(currentItemCount - 1); in show() [all …]
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | FlipperDreamSettings.java | 42 private SectionedAlbumDataAdapter mAdapter; field in FlipperDreamSettings 69 mAdapter = new SectionedAlbumDataAdapter(FlipperDreamSettings.this, in init() 79 mAdapter.registerDataSetObserver(new DataSetObserver () { in init() 89 setListAdapter(mAdapter); in init() 92 showApology(mAdapter.getCount() == 0); in init() 111 if (mAdapter != null) { in onOptionsItemSelected() 112 mAdapter.selectAll(!mAdapter.areAllSelected()); in onOptionsItemSelected() 130 if (mAdapter != null && mSelectAll != null) { in updateActionItem() 131 if (mAdapter.areAllSelected()) { in updateActionItem()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/localepicker/ |
D | LocaleListEditorTest.java | 57 private LocaleDragAndDropAdapter mAdapter; field in LocaleListEditorTest 73 ReflectionHelpers.setField(mLocaleListEditor, "mAdapter", mAdapter); in setUp() 102 when(mAdapter.getCheckedCount()).thenReturn(1); in showRemoveLocaleWarningDialog_allLocaleSelected_shouldShowErrorDialog() 103 when(mAdapter.getItemCount()).thenReturn(1); in showRemoveLocaleWarningDialog_allLocaleSelected_shouldShowErrorDialog() 104 when(mAdapter.isFirstLocaleChecked()).thenReturn(true); in showRemoveLocaleWarningDialog_allLocaleSelected_shouldShowErrorDialog() 124 when(mAdapter.getCheckedCount()).thenReturn(1); in showRemoveLocaleWarningDialog_mainLocaleSelected_shouldShowLocaleChangeDialog() 125 when(mAdapter.getItemCount()).thenReturn(2); in showRemoveLocaleWarningDialog_mainLocaleSelected_shouldShowLocaleChangeDialog() 126 when(mAdapter.isFirstLocaleChecked()).thenReturn(true); in showRemoveLocaleWarningDialog_mainLocaleSelected_shouldShowLocaleChangeDialog() 146 when(mAdapter.getCheckedCount()).thenReturn(1); in showRemoveLocaleWarningDialog_mainLocaleNotSelected_shouldShowConfirmDialog() 147 when(mAdapter.getItemCount()).thenReturn(2); in showRemoveLocaleWarningDialog_mainLocaleNotSelected_shouldShowConfirmDialog() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | CategorySelectorFragment.java | 121 private CategoryAdapter mAdapter; field in CategorySelectorFragment 128 mAdapter = new CategoryAdapter(mCategories); in CategorySelectorFragment() 144 mImageGrid.setAdapter(mAdapter); in onCreateView() 148 gridLayoutManager.setSpanSizeLookup(new CategorySpanSizeLookup(mAdapter)); in onCreateView() 199 mAdapter.notifyItemChanged(getNumColumns()); in addCategory() 200 mAdapter.notifyItemInserted(getNumColumns()); in addCategory() 217 if (mAdapter != null) { in addCategory() 219 mAdapter.notifyItemInserted(index + NUM_NON_CATEGORY_VIEW_HOLDERS); in addCategory() 227 mAdapter.notifyItemRemoved(index + NUM_NON_CATEGORY_VIEW_HOLDERS); in removeCategory() 236 mAdapter.notifyItemChanged(index + NUM_NON_CATEGORY_VIEW_HOLDERS); in updateCategory() [all …]
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | CarNotificationView.java | 50 private CarNotificationViewAdapter mAdapter; field in CarNotificationView 84 mAdapter = new CarNotificationViewAdapter(mContext, /* isGroupNotificationAdapter= */ in onFinishInflate() 86 mListView.setAdapter(mAdapter); in onFinishInflate() 89 mUxrContentLimiter.setAdapter(mAdapter); in onFinishInflate() 92 mListView.addOnItemTouchListener(new CarNotificationItemTouchListener(mContext, mAdapter)); in onFinishInflate() 148 mAdapter.setNotifications(notifications, /* setRecyclerViewListHeaderAndFooter= */ true); in setNotifications() 150 if (mAdapter.hasNotifications()) { in setNotifications() 165 mAdapter.collapseAllGroups(); in resetState() 166 mAdapter.setChildNotificationsBeingCleared(new HashSet()); in resetState() 171 mAdapter.setCarUxRestrictions(restrictionInfo); in onUxRestrictionsChanged() [all …]
|