/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/ |
D | ListViewScrollHandlingDelegate.java | 40 @Nullable private final ListView listView; field in ListViewScrollHandlingDelegate 43 @NonNull RequireScrollMixin requireScrollMixin, @Nullable ListView listView) { in ListViewScrollHandlingDelegate() argument 45 this.listView = listView; in ListViewScrollHandlingDelegate() 50 if (listView != null) { in startListening() 51 listView.setOnScrollListener(this); in startListening() 53 final ListAdapter adapter = listView.getAdapter(); in startListening() 54 if (listView.getLastVisiblePosition() < adapter.getCount()) { in startListening() 64 if (listView != null) { in pageScrollDown() 65 final int height = listView.getHeight(); in pageScrollDown() 66 listView.smoothScrollBy(height, SCROLL_DURATION); in pageScrollDown()
|
D | ListMixin.java | 44 @Nullable private ListView listView; field in ListMixin 90 if (listView == null) { in getListViewInternal() 93 listView = (ListView) list; in getListViewInternal() 96 return listView; in getListViewInternal() 117 final ListView listView = getListViewInternal(); in getAdapter() local 118 if (listView != null) { in getAdapter() 119 final ListAdapter adapter = listView.getAdapter(); in getAdapter() 130 final ListView listView = getListViewInternal(); in setAdapter() local 131 if (listView != null) { in setAdapter() 132 listView.setAdapter(adapter); in setAdapter() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | ListViewTest.java | 44 ListView listView = new ListView(context); in testRequestLayout() local 47 listView.setAdapter(adapter); in testRequestLayout() 52 listView.measure(measureSpec, measureSpec); in testRequestLayout() 53 listView.layout(0, 0, 100, 100); in testRequestLayout() 55 MockView childView = (MockView) listView.getChildAt(0); in testRequestLayout() 59 listView.measure(measureSpec, measureSpec); in testRequestLayout() 60 listView.layout(0, 0, 100, 100); in testRequestLayout() 72 ListView listView = new ListView(context); in testNoSelectableItems() local 74 listView.addHeaderView(new View(context), null, false); in testNoSelectableItems() 77 listView.setAdapter(adapter); in testNoSelectableItems() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListWithHeaders.java | 38 final ListView listView = getListView(); in onCreate() local 39 listView.setItemsCanFocus(true); in onCreate() 44 listView.addHeaderView(header); in onCreate() 50 listView.addFooterView(footer); in onCreate() 53 final ListAdapter adapter = listView.getAdapter(); in onCreate() 54 listView.setAdapter(adapter); in onCreate()
|
D | ListRecyclerProfiling.java | 41 ListView listView = findViewById(R.id.list); in onCreate() local 43 ViewDebug.startRecyclerTracing("SimpleList", listView); in onCreate() 45 listView.setAdapter(new ArrayAdapter<String>(this, in onCreate()
|
D | ListWithDisappearingItemBug.java | 76 ListView listView = getListView(); in onCreate() local 77 listView.setLayoutAnimation(controller); in onCreate()
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/template/ |
D | ListViewScrollHandlingDelegateTest.java | 43 private ListView listView; field in ListViewScrollHandlingDelegateTest 50 listView = new TestListView(application); in setUp() 51 delegate = new ListViewScrollHandlingDelegate(requireScrollMixin, listView); in setUp() 53 listView.layout(0, 0, 50, 50); in setUp() 69 Shadows.shadowOf(listView).getOnScrollListener().onScroll(listView, 2, 20, 20); in testScrolledToBottom() 77 assertThat(Shadows.shadowOf(listView).getLastSmoothScrollByDistance()).isEqualTo(50); in testPageScrollDown()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/listview/ |
D | FadingEdgeListFragment.java | 26 ListView listView = getListView(); in onActivityCreated() local 27 listView.setVerticalFadingEdgeEnabled(true); in onActivityCreated() 28 listView.setFadingEdgeLength(500); in onActivityCreated()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | GlobalActionsGridLayout.java | 40 ListGridLayout listView = getListView(); in setupListView() local 41 listView.setExpectedCount(mAdapter.countListItems()); in setupListView() 42 listView.setReverseSublists(shouldReverseSublists()); in setupListView() 43 listView.setReverseItems(shouldReverseListItems()); in setupListView() 44 listView.setSwapRowsAndColumns(shouldSwapRowsAndColumns()); in setupListView()
|
D | GlobalActionsLayout.java | 106 ViewGroup listView = getListView(); in onUpdateList() local 115 v = mAdapter.getView(i, null, listView); in onUpdateList()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/ |
D | SupportPreferencesUtil.java | 158 LinearLayout listView = new LinearLayout(themedContext); in setUpPreferencesListView() local 159 listView.setOrientation(LinearLayout.VERTICAL); in setUpPreferencesListView() 160 listView.setLayoutParams( in setUpPreferencesListView() 164 bridgeContext.addViewKey(listView, viewCookie.get(0)); in setUpPreferencesListView() 172 return listView; in setUpPreferencesListView() 189 Object viewHolder = invoke(onCreateViewHolder, preferenceGroupAdapter, listView, type); in setUpPreferencesListView() 204 listView.addView(itemView); in setUpPreferencesListView() 209 return listView; in setUpPreferencesListView() 297 LinearLayout listView = setUpPreferencesListView(bridgeContext, context, viewCookie, in inflatePreference() local 303 scrollView.addView(listView); in inflatePreference()
|
/frameworks/base/core/java/android/content/ |
D | SyncActivityTooManyDeletes.java | 73 ListView listView = new ListView(this); in onCreate() local 74 listView.setAdapter(adapter); in onCreate() 75 listView.setItemsCanFocus(true); in onCreate() 76 listView.setOnItemClickListener(this); in onCreate() 89 ll.addView(listView, lp); in onCreate()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | DialogListActivity.java | 29 ListView listView = new ListView(this); in onCreate() local 30 listView.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, in onCreate() 35 builder.setView(listView); in onCreate()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/ |
D | HomeActivity.java | 66 ExpandableListView listView = (ExpandableListView) findViewById(R.id.test_list); in onCreate() local 69 listView.setAdapter(adapter); in onCreate() 72 ViewGroup.LayoutParams layoutParams = listView.getLayoutParams(); in onCreate() 74 listView.setLayoutParams(layoutParams); in onCreate() 75 listView.requestLayout(); in onCreate()
|
D | RunLocalBenchmarksActivity.java | 128 LocalBenchmarksList listView = new LocalBenchmarksList(); in onCreate() local 129 listView.setListAdapter(new LocalBenchmarksListAdapter(LayoutInflater.from(this))); in onCreate() 130 listView.setBenchmarks(mBenchmarksToRun); in onCreate() 131 listView.setRunId(mCurrentRunId); in onCreate() 132 fm.beginTransaction().add(R.id.list_fragment_container, listView).commit(); in onCreate()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/ |
D | ListActivityBase.java | 46 ListFragment listView = new ListFragment(); in onCreate() local 47 listView.setListAdapter(createListAdapter()); in onCreate() 48 fm.beginTransaction().add(R.id.list_fragment_container, listView).commit(); in onCreate()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | FrameworkActionBar.java | 143 ListView listView = new ListView(mActionBar.getPopupContext(), null, in createMenuPopup() local 156 listView.setLayoutParams(layoutParams); in createMenuPopup() 157 listView.setAdapter(adapter); in createMenuPopup() 160 listView.setBackground(a.getDrawable(R.styleable.PopupWindow_popupBackground)); in createMenuPopup() 161 listView.setDivider(a.getDrawable(R.attr.actionBarDivider)); in createMenuPopup() 163 listView.setElevation(mActionBar.getMenuPopupElevation()); in createMenuPopup() 165 mEnclosingLayout.addView(listView); in createMenuPopup()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | AlertController.java | 936 final ListView listView = mListView; in setBackground() local 937 if (listView != null && mAdapter != null) { in setBackground() 938 listView.setAdapter(mAdapter); in setBackground() 941 listView.setItemChecked(checkedItem, true); in setBackground() 942 listView.setSelectionFromTop(checkedItem, in setBackground() 1070 void onPrepareListView(ListView listView); in onPrepareListView() argument 1142 final RecycleListView listView = in createListView() local 1156 listView.setItemChecked(position, true); in createListView() 1177 listView.setItemChecked( in createListView() 1209 mOnPrepareListViewListener.onPrepareListView(listView); in createListView() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ListUtil.java | 35 public ListUtil(ListView listView, Instrumentation instrumentation) { in ListUtil() argument 36 mListView = listView; in ListUtil()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | CascadingMenuPopup.java | 434 final ListView listView = popupWindow.getListView(); in showMenu() local 435 listView.setOnKeyListener(this); in showMenu() 440 R.layout.popup_menu_header_item_layout, listView, false); in showMenu() 444 listView.addHeaderView(titleItemView, null, false); in showMenu() 492 final ListView listView = parentInfo.getListView(); in findParentViewForSubmenu() local 493 final ListAdapter listAdapter = listView.getAdapter(); in findParentViewForSubmenu() 520 final int ownerViewPosition = ownerPosition - listView.getFirstVisiblePosition(); in findParentViewForSubmenu() 521 if (ownerViewPosition < 0 || ownerViewPosition >= listView.getChildCount()) { in findParentViewForSubmenu() 526 return listView.getChildAt(ownerViewPosition); in findParentViewForSubmenu()
|
D | StandardMenuPopup.java | 182 ListView listView = mPopup.getListView(); in tryShow() local 183 listView.setOnKeyListener(this); in tryShow() 189 listView, in tryShow() 197 listView.addHeaderView(titleItemView, null, false); in tryShow()
|
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/ |
D | BitmapView.java | 52 public void setListView(final ListView listView) { in setListView() argument 53 mListView = listView; in setListView()
|
/frameworks/base/core/java/android/preference/ |
D | PreferenceScreen.java | 176 public void bind(ListView listView) { in bind() argument 177 listView.setOnItemClickListener(this); in bind() 178 listView.setAdapter(getRootAdapter()); in bind()
|
/frameworks/base/core/java/android/widget/ |
D | Spinner.java | 1143 final ListView listView = mPopup.getListView(); in show() local 1144 listView.setTextDirection(textDirection); in show() 1145 listView.setTextAlignment(textAlignment); in show() 1270 final ListView listView = getListView(); in show() local 1271 listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); in show() 1272 listView.setTextDirection(textDirection); in show() 1273 listView.setTextAlignment(textAlignment); in show()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | GlifListLayoutTest.java | 141 View listView = layout.findViewById(android.R.id.list); in assertListTemplateInflated() local 142 assertTrue("@android:id/list should be a ListView", listView instanceof ListView); in assertListTemplateInflated()
|