Home
last modified time | relevance | path

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

1234

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DNfcTile.java82 if (getAdapter() == null) { in handleClick()
85 if (!getAdapter().isEnabled()) { in handleClick()
86 getAdapter().enable(); in handleClick()
88 getAdapter().disable(); in handleClick()
104 state.value = getAdapter() != null && getAdapter().isEnabled(); in handleUpdateState()
105 state.state = getAdapter() == null in handleUpdateState()
129 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.java56 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
73 assertEquals("Wrong view in last position", mGridView.getAdapter().getCount() - 1, in testNoScroll()
95 assertEquals("Wrong view in last position", mGridView.getAdapter().getCount() - 1, in testShortScroll()
157 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/
DChooserActivityTest.java139 assertThat(activity.getAdapter().getCount(), is(2)); in customTitle()
140 assertThat(activity.getAdapter().getServiceTargetCount(), is(0)); in customTitle()
248 assertThat(activity.getAdapter().getCount(), is(2)); in twoOptionsAndUserSelectsOne()
308 () -> activity.getAdapter().handlePackagesChanged() in noResultsFromPackageManager()
353 assertThat(activity.getAdapter().getCount(), is(1)); in hasOtherProfileOneOption()
392 assertThat(activity.getAdapter().getCount(), is(2)); in hasOtherProfileTwoOptionsAndUserSelectsOne()
429 assertThat(activity.getAdapter().getCount(), is(2)); in hasLastChosenActivityAndOtherProfile()
796 () -> activity.getAdapter().addServiceResults( in testDirectTargetSelectionLogging()
811 activity.getAdapter().getCount(), is(3)); in testDirectTargetSelectionLogging()
813 activity.getAdapter().getSelectableServiceTargetCount(), is(1)); in testDirectTargetSelectionLogging()
[all …]
DResolverActivityTest.java87 assertThat(activity.getAdapter().getCount(), is(2)); in twoOptionsAndUserSelectsOne()
191 assertThat(activity.getAdapter().getCount(), is(1)); in hasLastChosenActivity()
192 assertThat(activity.getAdapter().getPlaceholderCount(), is(1)); in hasLastChosenActivity()
220 assertThat(activity.getAdapter().getCount(), is(1)); in hasOtherProfileOneOption()
257 assertThat(activity.getAdapter().getCount(), is(2)); in hasOtherProfileTwoOptionsAndUserSelectsOne()
302 assertThat(activity.getAdapter().getCount(), is(2)); in hasLastChosenActivityAndOtherProfile()
/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/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/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/base/core/tests/coretests/src/android/widget/listview/
DListBottomGravityTest.java46 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()
DListBottomGravityManyTest.java46 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()

1234