/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | NfcTile.java | 86 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/ |
D | GridTouchStackFromBottomTest.java | 49 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()
|
D | GridTouchVerticalSpacingStackFromBottomTest.java | 57 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()
|
D | GridTouchStackFromBottomManyTest.java | 50 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/ |
D | ListWithOffScreenNextSelectableTest.java | 48 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()
|
D | ListWithSeparatorsTest.java | 46 assertFalse(mListView.getAdapter().areAllItemsEnabled()); in testPreconditions() 47 assertFalse(mListView.getAdapter().isEnabled(0)); in testPreconditions() 48 assertFalse(mListView.getAdapter().isEnabled(2)); in testPreconditions()
|
D | ListOfThinItemsTest.java | 49 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()
|
D | ListWithScreenOfNoSelectablesTest.java | 45 mListView.getAdapter().isEnabled(0)); in testPreconditions() 49 mListView.getAdapter().isEnabled(i)); in testPreconditions()
|
/frameworks/base/core/java/android/widget/ |
D | AdapterView.java | 470 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/ |
D | ListTouchBottomGravityTest.java | 53 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()
|
D | ListTouchBottomGravityManyTest.java | 56 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()
|
D | ListSetSelectionTest.java | 64 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/ |
D | GridSetSelectionBaseTest.java | 49 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/ |
D | SetupWizardItemsLayout.java | 39 public ItemAdapter getAdapter() { in getAdapter() method in SetupWizardItemsLayout 40 final ListAdapter adapter = super.getAdapter(); in getAdapter()
|
D | SetupWizardListLayout.java | 100 public ListAdapter getAdapter() { in getAdapter() method in SetupWizardListLayout 101 return listMixin.getAdapter(); in getAdapter()
|
D | GlifListLayout.java | 104 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/ |
D | ListMixinTest.java | 86 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/ |
D | ResolverActivityTest.java | 100 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 …]
|
D | ChooserActivityTest.java | 174 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/ |
D | MainActivity.java | 70 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/ |
D | RecyclerMixinTest.java | 82 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/ |
D | UpdatableListPreferenceDialogFragmentTest.java | 82 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/ |
D | ScrollingTabContainerView.java | 153 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/ |
D | SetupWizardRecyclerLayout.java | 78 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/ |
D | SelectPrinterActivity.java | 159 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();
|