HomeSort by relevance Sort by last modified time
    Searched refs:mAdapter (Results 76 - 100 of 633) sorted by null

1 2 34 5 6 7 8 91011>>

  /development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/
ScannerFragment.java 60 private ScanResultAdapter mAdapter;
85 mAdapter = new ScanResultAdapter(getActivity().getApplicationContext(),
97 setListAdapter(mAdapter);
173 mAdapter.notifyDataSetChanged();
209 mAdapter.add(result);
211 mAdapter.notifyDataSetChanged();
218 mAdapter.add(result);
219 mAdapter.notifyDataSetChanged();
  /frameworks/base/core/java/android/widget/
ActivityChooserView.java 74 private final ActivityChooserViewAdapter mAdapter;
129 mAdapter.notifyDataSetChanged();
134 mAdapter.notifyDataSetInvalidated();
290 mAdapter = new ActivityChooserViewAdapter();
291 mAdapter.registerDataSetObserver(new DataSetObserver() {
308 mAdapter.setDataModel(dataModel);
373 if (mAdapter.getDataModel() == null) {
382 final int activityCount = mAdapter.getActivityCount();
386 mAdapter.setShowFooterView(true);
387 mAdapter.setMaxActivityCount(maxActivityCount - 1)
    [all...]
  /packages/apps/TV/src/com/android/tv/dialog/
RecentlyWatchedDialogFragment.java 48 private SimpleCursorAdapter mAdapter;
67 mAdapter = new SimpleCursorAdapter(getActivity(), R.layout.list_item_watched_program, null,
69 mAdapter.setViewBinder(new SimpleCursorAdapter.ViewBinder() {
101 listView.setAdapter(mAdapter);
111 if (mAdapter != null) {
112 mAdapter.changeCursor(null);
134 mAdapter.changeCursor(cursor);
139 mAdapter.changeCursor(null);
  /packages/apps/UnifiedEmail/src/com/android/mail/browse/
MergedAdapter.java 40 private final T mAdapter;
44 mAdapter = adapter;
49 return mAdapter;
129 return result.mAdapter.getItem(result.mLocalPosition);
151 if (adapter == result.mAdapter) {
156 int type = result.mAdapter.getItemViewType(result.mLocalPosition);
168 return result.mAdapter.getView(result.mLocalPosition, convertView, parent);
183 return result.mAdapter.isEnabled(result.mLocalPosition);
  /developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
VerticalGridFragment.java 36 private ArrayObjectAdapter mAdapter;
53 mAdapter = new ArrayObjectAdapter(new CardPresenter());
64 mAdapter.add(list.get(j));
68 setAdapter(mAdapter);
  /developers/samples/android/ui/transition/FragmentTransition/Application/src/main/java/com/example/android/fragmenttransition/
FragmentTransitionFragment.java 35 private MeatAdapter mAdapter;
47 mAdapter = new MeatAdapter(inflater, R.layout.item_meat_grid);
55 grid.setAdapter(mAdapter);
61 Meat meat = mAdapter.getItem(position);
  /frameworks/base/core/java/android/app/
ExpandableListActivity.java 158 ExpandableListAdapter mAdapter;
233 setListAdapter(mAdapter);
244 mAdapter = adapter;
265 return mAdapter;
ListActivity.java 180 protected ListAdapter mAdapter;
252 setListAdapter(mAdapter);
264 mAdapter = adapter;
305 return mAdapter;
  /frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
BluetoothInstrumentation.java 30 private BluetoothAdapter mAdapter = null;
43 if (mAdapter == null) {
44 mAdapter = ((BluetoothManager)getContext().getSystemService(
47 return mAdapter;
  /frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/grid/
GridExampleFragment.java 39 private ArrayObjectAdapter mAdapter;
53 mAdapter = new ArrayObjectAdapter(cardPresenterSelector);
54 setAdapter(mAdapter);
70 mAdapter.addAll(0, row.getCards());
  /packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
ModelBackedDocumentsAdapterTest.java 39 private ModelBackedDocumentsAdapter mAdapter;
49 mAdapter = new ModelBackedDocumentsAdapter(
51 mAdapter.getModelUpdateListener().accept(Model.Update.UPDATE);
56 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount());
  /frameworks/support/v7/appcompat/src/android/support/v7/widget/
ActivityChooserView.java 82 final ActivityChooserViewAdapter mAdapter;
137 mAdapter.notifyDataSetChanged();
142 mAdapter.notifyDataSetInvalidated();
278 mAdapter = new ActivityChooserViewAdapter();
279 mAdapter.registerDataSetObserver(new DataSetObserver() {
297 mAdapter.setDataModel(dataModel);
363 if (mAdapter.getDataModel() == null) {
372 final int activityCount = mAdapter.getActivityCount();
376 mAdapter.setShowFooterView(true);
377 mAdapter.setMaxActivityCount(maxActivityCount - 1)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hcef/
HceFEmulatorActivity.java 33 NfcAdapter mAdapter;
53 mAdapter = NfcAdapter.getDefaultAdapter(this);
54 mNfcFCardEmulation = NfcFCardEmulation.getInstance(mAdapter);
  /frameworks/base/core/java/com/android/internal/view/menu/
ListMenuPresenter.java 52 MenuAdapter mAdapter;
92 if (mAdapter != null) {
93 mAdapter.notifyDataSetChanged();
102 if (mAdapter == null) {
103 mAdapter = new MenuAdapter();
105 mMenuView.setAdapter(mAdapter);
119 if (mAdapter == null) {
120 mAdapter = new MenuAdapter();
122 return mAdapter;
127 if (mAdapter != null) mAdapter.notifyDataSetChanged()
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
ListMenuPresenter.java 57 MenuAdapter mAdapter;
97 if (mAdapter != null) {
98 mAdapter.notifyDataSetChanged();
107 if (mAdapter == null) {
108 mAdapter = new MenuAdapter();
110 mMenuView.setAdapter(mAdapter);
124 if (mAdapter == null) {
125 mAdapter = new MenuAdapter();
127 return mAdapter;
132 if (mAdapter != null) mAdapter.notifyDataSetChanged()
    [all...]
  /frameworks/support/wear/src/android/support/wear/internal/widget/drawer/
MultiPagePresenter.java 37 @Nullable private WearableNavigationDrawerAdapter mAdapter;
96 mAdapter = adapter;
97 mAdapter.setPresenter(this);
  /packages/apps/Calendar/src/com/android/calendar/selectcalendars/
SelectVisibleCalendarsFragment.java 68 private SelectCalendarsSimpleAdapter mAdapter;
89 mAdapter.changeCursor(cursor);
100 mAdapter.changeCursor(null);
134 mAdapter = new SelectCalendarsSimpleAdapter(mContext, mCalendarItemLayout, null,
136 mList.setAdapter(mAdapter);
141 if (mAdapter == null || mAdapter.getCount() <= position) {
160 Uri uri = ContentUris.withAppendedId(Calendars.CONTENT_URI, mAdapter.getItemId(position));
163 int visibility = mAdapter.getVisible(position)^1;
166 mAdapter.setVisible(position, visibility)
    [all...]
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
ItemBridgeAdapter.java 58 private ObjectAdapter mAdapter;
180 if (adapter == mAdapter) {
183 if (mAdapter != null) {
184 mAdapter.unregisterObserver(mDataObserver);
186 mAdapter = adapter;
187 if (mAdapter == null) {
192 mAdapter.registerObserver(mDataObserver);
193 if (hasStableIds() != mAdapter.hasStableIds()) {
194 setHasStableIds(mAdapter.hasStableIds());
250 return mAdapter != null ? mAdapter.size() : 0
    [all...]
  /developers/build/prebuilts/gradle/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/
ImageClientFragment.kt 42 private var mAdapter: ImageAdapter? = null
68 if (mAdapter == null) {
69 mAdapter = ImageAdapter(activity)
71 recyclerView.adapter = mAdapter
75 if (lastVisiblePosition >= mAdapter!!.fetchedItemCount) {
78 + ", NonEmptyItemCount: " + mAdapter!!.fetchedItemCount)
113 mAdapter!!.setTotalSize(totalSize)
114 val beforeCount = mAdapter!!.fetchedItemCount
122 mAdapter!!.add(imageDocument)
129 mAdapter!!.notifyItemRangeChanged(beforeCount, cursorCount
    [all...]
  /developers/samples/android/content/documentsUi/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/
ImageClientFragment.kt 42 private var mAdapter: ImageAdapter? = null
68 if (mAdapter == null) {
69 mAdapter = ImageAdapter(activity)
71 recyclerView.adapter = mAdapter
75 if (lastVisiblePosition >= mAdapter!!.fetchedItemCount) {
78 + ", NonEmptyItemCount: " + mAdapter!!.fetchedItemCount)
113 mAdapter!!.setTotalSize(totalSize)
114 val beforeCount = mAdapter!!.fetchedItemCount
122 mAdapter!!.add(imageDocument)
129 mAdapter!!.notifyItemRangeChanged(beforeCount, cursorCount
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/view/
List8.java 41 PhotoAdapter mAdapter;
54 mAdapter = new PhotoAdapter(this);
55 setListAdapter(mAdapter);
62 mAdapter.clearPhotos();
70 mAdapter.addPhotos();
  /frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
VerticalGridFragment.java 47 private Adapter mAdapter;
78 mAdapter.add(Integer.toString(i));
87 mAdapter = new Adapter(new StringPresenter());
88 setAdapter(mAdapter);
103 mAdapter.callNotifyChanged();
VerticalGridSupportFragment.java 50 private Adapter mAdapter;
81 mAdapter.add(Integer.toString(i));
90 mAdapter = new Adapter(new StringPresenter());
91 setAdapter(mAdapter);
106 mAdapter.callNotifyChanged();
  /packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DeviceListFragment.java 35 private FileAdapter mAdapter;
44 mAdapter = new FileAdapter(mActivity, R.layout.folder_entry, mFileNames);
55 mFolderListView.setAdapter(mAdapter);
65 if (mAdapter != null) {
66 mAdapter.setLocations(mFileNames);
  /packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
GroupsListFragment.java 46 CursorFactoryListAdapter mAdapter;
62 mAdapter = new CursorFactoryListAdapter(getActivity(),
64 list.setAdapter(mAdapter);
99 mAdapter.changeCursor(new MergeCursor(new Cursor[] { psuedoGroups, groups }));
108 Cursor cursor = (Cursor) mAdapter.getItem(position);

Completed in 1212 milliseconds

1 2 34 5 6 7 8 91011>>