Home
last modified time | relevance | path

Searched refs:getAdapter (Results 1 – 25 of 101) sorted by relevance

12345

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DNfcTile.java86 if (getAdapter() == null) { in handleClick()
89 if (!getAdapter().isEnabled()) { in handleClick()
90 getAdapter().enable(); in handleClick()
92 getAdapter().disable(); in handleClick()
108 state.value = getAdapter() != null && getAdapter().isEnabled(); in handleUpdateState()
109 state.state = getAdapter() == null in handleUpdateState()
133 private NfcAdapter getAdapter() { in getAdapter() method in NfcTile
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchStackFromBottomTest.java49 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
63 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUp()
80 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPullDown()
97 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUpFast()
114 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPullDownFast()
DGridTouchVerticalSpacingStackFromBottomTest.java57 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
74 assertEquals("Wrong view in last position", mGridView.getAdapter().getCount() - 1, in testNoScroll()
96 assertEquals("Wrong view in last position", mGridView.getAdapter().getCount() - 1, in testShortScroll()
159 assertEquals("Grid is not scrolled to the bottom", mGridView.getAdapter().getCount() - 1, in testManyScrolls()
DGridTouchStackFromBottomManyTest.java50 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
80 assertEquals("Grid is not scrolled to the bottom", mGridView.getAdapter().getCount() - 1, in testScrollToBottom()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListWithOffScreenNextSelectableTest.java48 assertEquals(5, mListView.getAdapter().getCount()); in testPreconditions()
49 assertFalse(mListView.getAdapter().areAllItemsEnabled()); in testPreconditions()
50 assertFalse(mListView.getAdapter().isEnabled(1)); in testPreconditions()
51 assertFalse(mListView.getAdapter().isEnabled(2)); in testPreconditions()
52 assertFalse(mListView.getAdapter().isEnabled(3)); in testPreconditions()
DListWithSeparatorsTest.java46 assertFalse(mListView.getAdapter().areAllItemsEnabled()); in testPreconditions()
47 assertFalse(mListView.getAdapter().isEnabled(0)); in testPreconditions()
48 assertFalse(mListView.getAdapter().isEnabled(2)); in testPreconditions()
DListOfThinItemsTest.java49 mListView.getChildCount() < mListView.getAdapter().getCount()); in testPreconditions()
58 final int numItems = mListView.getAdapter().getCount(); in testScrollToBottom()
68 int bottomThreshold = (lastVisiblePosition < mListView.getAdapter().getCount() - 1) ? in testScrollToBottom()
90 final int numItems = mListView.getAdapter().getCount(); in testScrollToTop()
DListWithScreenOfNoSelectablesTest.java45 mListView.getAdapter().isEnabled(0)); in testPreconditions()
49 mListView.getAdapter().isEnabled(i)); in testPreconditions()
/frameworks/base/core/java/android/widget/
DAdapterView.java470 public abstract T getAdapter(); in getAdapter() method in AdapterView
603 T adapter = getAdapter(); in getSelectedItem()
705 final T adapter = getAdapter(); in setEmptyView()
733 final T adapter = getAdapter(); in setFocusable()
746 final T adapter = getAdapter(); in setFocusableInTouchMode()
758 final T adapter = getAdapter(); in checkFocus()
809 T adapter = getAdapter(); in getItemAtPosition()
814 T adapter = getAdapter(); in getItemIdAtPosition()
848 mItemCount = getAdapter().getCount(); in onChanged()
852 if (AdapterView.this.getAdapter().hasStableIds() && mInstanceState != null in onChanged()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchBottomGravityTest.java53 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()
68 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPullDown()
87 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPushUp()
DListTouchBottomGravityManyTest.java56 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()
91 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPushUp()
111 assertEquals("Wrong view in last position", mListView.getAdapter().getCount() - 1, in testNoScroll()
133 assertEquals("Wrong view in last position", mListView.getAdapter().getCount() - 1, in testShortScroll()
DListSetSelectionTest.java64 final int targetPosition = mListView.getAdapter().getCount() / 2; in testSetSelection()
94 final int targetPosition = mListView.getAdapter().getCount() / 2; in testSetSelectionFromTop()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridSetSelectionBaseTest.java49 assertEquals(mGridView.getAdapter().getCount() - 1, in testPreconditions()
58 final int target = mGridView.getAdapter().getCount() - 1; in testSetSelectionToTheEnd()
74 final int target = mGridView.getAdapter().getCount() / 2; in testSetSelectionToMiddle()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DSetupWizardItemsLayout.java39 public ItemAdapter getAdapter() { in getAdapter() method in SetupWizardItemsLayout
40 final ListAdapter adapter = super.getAdapter(); in getAdapter()
DSetupWizardListLayout.java100 public ListAdapter getAdapter() { in getAdapter() method in SetupWizardListLayout
101 return listMixin.getAdapter(); in getAdapter()
DGlifListLayout.java104 public ListAdapter getAdapter() { in getAdapter() method in GlifListLayout
105 return listMixin.getAdapter(); in getAdapter()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
DListMixinTest.java86 assertSame(mAdapter, mixin.getAdapter()); in testGetAdapter()
91 assertNull(mListView.getAdapter()); in testSetAdapter()
96 assertSame(mAdapter, mListView.getAdapter()); in testSetAdapter()
181 assertNull(mixin.getAdapter()); in testNoList()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverActivityTest.java100 Espresso.registerIdlingResources(activity.getAdapter().getLabelIdlingResource()); in twoOptionsAndUserSelectsOne()
103 assertThat(activity.getAdapter().getCount(), is(2)); in twoOptionsAndUserSelectsOne()
212 assertThat(activity.getAdapter().getCount(), is(1)); in hasLastChosenActivity()
213 assertThat(activity.getAdapter().getPlaceholderCount(), is(1)); in hasLastChosenActivity()
239 Espresso.registerIdlingResources(activity.getAdapter().getLabelIdlingResource()); in hasOtherProfileOneOption()
243 assertThat(activity.getAdapter().getCount(), is(1)); in hasOtherProfileOneOption()
277 Espresso.registerIdlingResources(activity.getAdapter().getLabelIdlingResource()); in hasOtherProfileTwoOptionsAndUserSelectsOne()
281 assertThat(activity.getAdapter().getCount(), is(2)); in hasOtherProfileTwoOptionsAndUserSelectsOne()
323 Espresso.registerIdlingResources(activity.getAdapter().getLabelIdlingResource()); in hasLastChosenActivityAndOtherProfile()
327 assertThat(activity.getAdapter().getCount(), is(2)); in hasLastChosenActivityAndOtherProfile()
[all …]
DChooserActivityTest.java174 assertThat(activity.getAdapter().getCount(), is(2)); in customTitle()
175 assertThat(activity.getAdapter().getServiceTargetCount(), is(0)); in customTitle()
283 assertThat(activity.getAdapter().getCount(), is(2)); in twoOptionsAndUserSelectsOne()
332 assertThat(activity.getAdapter().getCount(), is(6)); in fourOptionsStackedIntoOneTarget()
397 () -> activity.getAdapter().handlePackagesChanged() in noResultsFromPackageManager()
442 assertThat(activity.getAdapter().getCount(), is(1)); in hasOtherProfileOneOption()
484 assertThat(activity.getAdapter().getCount(), is(2)); in hasOtherProfileTwoOptionsAndUserSelectsOne()
521 assertThat(activity.getAdapter().getCount(), is(2)); in hasLastChosenActivityAndOtherProfile()
913 final ChooserListAdapter adapter = activity.getAdapter(); in testGetBaseScore()
1051 () -> activity.getAdapter().addServiceResults( in testDirectTargetSelectionLogging()
[all …]
/frameworks/opt/chips/sample/src/com/android/ex/chips/sample/
DMainActivity.java70 mEmailRetv.getAdapter().setShowRequestPermissionsItem(false); in onPermissionRequestDismissed()
71 mPhoneRetv.getAdapter().setShowRequestPermissionsItem(false); in onPermissionRequestDismissed()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/template/
DRecyclerMixinTest.java82 assertSame(mAdapter, mixin.getAdapter()); in testGetAdapter()
87 assertNull(mRecyclerView.getAdapter()); in testSetAdapter()
92 assertSame(mAdapter, mRecyclerView.getAdapter()); in testSetAdapter()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DUpdatableListPreferenceDialogFragmentTest.java82 assertThat(mUpdatableListPrefDlgFragment.getAdapter().getCount()).isEqualTo(0); in onListPreferenceUpdated_verifyAdapterCanBeUpdate()
89 assertThat(mUpdatableListPrefDlgFragment.getAdapter().getCount()).isEqualTo(2); in onListPreferenceUpdated_verifyAdapterCanBeUpdate()
/frameworks/base/core/java/com/android/internal/widget/
DScrollingTabContainerView.java153 if (mTabSpinner.getAdapter() == null) { in performCollapse()
308 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in addTab()
324 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in addTab()
338 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in updateTab()
349 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in removeTabAt()
360 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in removeAllTabs()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/
DSetupWizardRecyclerLayout.java78 public Adapter<? extends ViewHolder> getAdapter() { in getAdapter() method in SetupWizardRecyclerLayout
79 return mRecyclerMixin.getAdapter(); in getAdapter()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DSelectPrinterActivity.java159 if (!((DestinationAdapter) mListView.getAdapter()).isActionable(position)) { in onCreate()
163 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position); in onCreate()
247 ((DestinationAdapter) mListView.getAdapter()).getFilter().filter(searchString); in onCreateOptionsMenu()
286 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position); in onCreateContextMenu()
335 updateEmptyView((DestinationAdapter)mListView.getAdapter()); in onPrintServicesUpdate()
361 DestinationAdapter adapter = (DestinationAdapter) mListView.getAdapter(); in onDestroy()
772 final int count = mListView.getAdapter().getCount();

12345