Home
last modified time | relevance | path

Searched refs:mAdapter (Results 1 – 25 of 40) sorted by relevance

12

/development/samples/ApiDemos/src/com/example/android/apis/view/
DExpandableList2.java51 private CursorTreeAdapter mAdapter; field in ExpandableList2.QueryHandler
55 this.mAdapter = adapter; in QueryHandler()
62 mAdapter.setGroupCursor(cursor); in onQueryComplete()
67 mAdapter.setChildrenCursor(groupPosition, cursor); in onQueryComplete()
104 private CursorTreeAdapter mAdapter; field in ExpandableList2
111 mAdapter = new MyExpandableListAdapter( in onCreate()
120 setListAdapter(mAdapter); in onCreate()
122 mQueryHandler = new QueryHandler(this, mAdapter); in onCreate()
135 mAdapter.changeCursor(null); in onDestroy()
136 mAdapter = null; in onDestroy()
DList12.java40 private ArrayAdapter<String> mAdapter; field in List12
50 mAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, mStrings); in onCreate()
52 setListAdapter(mAdapter); in onCreate()
66 mAdapter.add(text); in sendText()
DList8.java41 PhotoAdapter mAdapter; field in List8
54 mAdapter = new PhotoAdapter(this); in onCreate()
55 setListAdapter(mAdapter); in onCreate()
62 mAdapter.clearPhotos(); in onCreate()
70 mAdapter.addPhotos(); in onCreate()
DExpandableList3.java37 private ExpandableListAdapter mAdapter; field in ExpandableList3
62 mAdapter = new SimpleExpandableListAdapter( in onCreate()
73 setListAdapter(mAdapter); in onCreate()
DSearchViewFilterMode.java39 private ArrayAdapter<String> mAdapter; field in SearchViewFilterMode
52 mListView.setAdapter(mAdapter = new ArrayAdapter<String>(this, in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/nfc/
DForegroundDispatch.java37 private NfcAdapter mAdapter; field in ForegroundDispatch
52 mAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate()
78 if (mAdapter != null) mAdapter.enableForegroundDispatch(this, mPendingIntent, mFilters, in onResume()
91 if (mAdapter != null) mAdapter.disableForegroundDispatch(this); in onPause()
DForegroundNdefPush.java32 private NfcAdapter mAdapter; field in ForegroundNdefPush
40 mAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate()
48 if (mAdapter != null) { in onCreate()
49 mAdapter.setNdefPushMessage(mMessage, this); in onCreate()
/development/samples/training/threadsample/src/com/example/android/threadsample/
DPhotoThumbnailFragment.java70 private GridViewAdapter mAdapter; field in PhotoThumbnailFragment
136 mAdapter = new GridViewAdapter(getActivity()); in onCreateView()
170 mGridView.setAdapter(mAdapter); in onCreateView()
253 if (mAdapter != null) { in onDetach()
254 mAdapter.changeCursor(null); in onDetach()
255 mAdapter = null; in onDetach()
281 Cursor cursor = (Cursor) mAdapter.getItem(viewId); in onItemClick()
310 mAdapter.changeCursor(returnCursor); in onLoadFinished()
321 mAdapter.changeCursor(null); in onLoaderReset()
/development/samples/RSSReader/src/com/example/android/rssreader/
DRssReader.java77 private RSSListAdapter mAdapter; field in RssReader
129 mAdapter = new RSSListAdapter(this, items); in onCreate()
130 getListView().setAdapter(mAdapter); in onCreate()
216 RssItem item = mAdapter.getItem(position); in onListItemClick()
229 mAdapter = new RSSListAdapter(this, items); in resetUI()
230 getListView().setAdapter(mAdapter); in resetUI()
284 mAdapter.add(mItem); in run()
315 parseRSS(in, mAdapter); in run()
408 int count = mAdapter.getCount(); in onSaveInstanceState()
414 RssItem item = mAdapter.getItem(i); in onSaveInstanceState()
[all …]
/development/samples/Support13Demos/src/com/example/android/supportv13/app/
DCursorFragment.java43 SimpleCursorAdapter mAdapter; field in CursorFragment
59 mAdapter = new SimpleCursorAdapter(getActivity(), in onActivityCreated()
63 setListAdapter(mAdapter); in onActivityCreated()
139 mAdapter.swapCursor(data); in onLoadFinished()
153 mAdapter.swapCursor(null); in onLoaderReset()
DFragmentPagerSupport.java44 MyAdapter mAdapter; field in FragmentPagerSupport
53 mAdapter = new MyAdapter(getFragmentManager()); in onCreate()
56 mPager.setAdapter(mAdapter); in onCreate()
DFragmentStatePagerSupport.java44 MyAdapter mAdapter; field in FragmentStatePagerSupport
53 mAdapter = new MyAdapter(getFragmentManager()); in onCreate()
56 mPager.setAdapter(mAdapter); in onCreate()
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
DListViewRemovalAnimation.java40 StableArrayAdapter mAdapter; field in ListViewRemovalAnimation
62 mAdapter = new StableArrayAdapter(this,R.layout.opaque_text_view, cheeseList, in onCreate()
64 mListView.setAdapter(mAdapter); in onCreate()
185 long itemId = mAdapter.getItemId(position); in animateRemoval()
191 mAdapter.remove(mAdapter.getItem(position)); in animateRemoval()
202 long itemId = mAdapter.getItemId(position); in animateRemoval()
/development/apps/Development/src/com/android/development/
DAppHwConfigList.java49 mAdapter = new AppListAdapter(this); in onCreate()
50 if (mAdapter.getCount() <= 0) { in onCreate()
53 setListAdapter(mAdapter); in onCreate()
69 PackageInfo app = mAdapter.appForPosition(position); in onListItemClick()
154 private AppListAdapter mAdapter; field in AppHwConfigList
DRunningProcesses.java46 mAdapter = new AppListAdapter(this); in onCreate()
47 if (mAdapter.getCount() <= 0) { in onCreate()
50 setListAdapter(mAdapter); in onCreate()
66 ListItem app = mAdapter.appForPosition(position); in onListItemClick()
152 private AppListAdapter mAdapter; field in RunningProcesses
DPackageBrowser.java51 private PackageListAdapter mAdapter; field in PackageBrowser
123 mAdapter = new PackageListAdapter(this); in setupAdapter()
124 setListAdapter(mAdapter); in setupAdapter()
143 final MyPackageInfo packageInfo = mAdapter.itemForPosition(curSelection); in deletePackage()
153 mAdapter.notifyDataSetChanged(); in deletePackage()
191 mAdapter.itemForPosition(position); in onListItemClick()
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
DEntryListFragment.java73 private SimpleCursorAdapter mAdapter; field in EntryListFragment
155 mAdapter = new SimpleCursorAdapter( in onViewCreated()
163 mAdapter.setViewBinder(new SimpleCursorAdapter.ViewBinder() { in onViewCreated()
178 setListAdapter(mAdapter); in onViewCreated()
229 mAdapter.changeCursor(cursor); in onLoadFinished()
240 mAdapter.changeCursor(null); in onLoaderReset()
279 Cursor c = (Cursor) mAdapter.getItem(position); in onListItemClick()
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
DLoaderRetainedSupport.java68 SimpleCursorAdapter mAdapter; field in LoaderRetainedSupport.CursorLoaderListFragment
87 mAdapter = new SimpleCursorAdapter(getActivity(), in onActivityCreated()
91 setListAdapter(mAdapter); in onActivityCreated()
169 mAdapter.swapCursor(data); in onLoadFinished()
183 mAdapter.swapCursor(null); in onLoaderReset()
DLoaderCursorSupport.java69 SimpleCursorAdapter mAdapter; field in LoaderCursorSupport.CursorLoaderListFragment
85 mAdapter = new SimpleCursorAdapter(getActivity(), in onActivityCreated()
89 setListAdapter(mAdapter); in onActivityCreated()
178 mAdapter.swapCursor(data); in onLoadFinished()
192 mAdapter.swapCursor(null); in onLoaderReset()
/development/samples/Spinner/src/com/android/example/spinner/
DSpinnerActivity.java48 protected ArrayAdapter<CharSequence> mAdapter; field in SpinnerActivity
114 this.mAdapter = ArrayAdapter.createFromResource(this, R.array.Planets, in onCreate()
121 spinner.setAdapter(this.mAdapter); in onCreate()
128 OnItemSelectedListener spinnerListener = new myOnItemSelectedListener(this,this.mAdapter); in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DLoaderCursor.java67 SimpleCursorAdapter mAdapter; field in LoaderCursor.CursorLoaderListFragment
86 mAdapter = new SimpleCursorAdapter(getActivity(), in onActivityCreated()
90 setListAdapter(mAdapter); in onActivityCreated()
199 mAdapter.swapCursor(data); in onLoadFinished()
213 mAdapter.swapCursor(null); in onLoaderReset()
DLoaderRetained.java69 SimpleCursorAdapter mAdapter; field in LoaderRetained.CursorLoaderListFragment
91 mAdapter = new SimpleCursorAdapter(getActivity(), in onActivityCreated()
95 setListAdapter(mAdapter); in onActivityCreated()
204 mAdapter.swapCursor(data); in onLoadFinished()
218 mAdapter.swapCursor(null); in onLoaderReset()
/development/samples/training/bitmapfun/BitmapFun/src/main/java/com/example/android/bitmapfun/ui/
DImageGridFragment.java62 private ImageAdapter mAdapter; field in ImageGridFragment
78 mAdapter = new ImageAdapter(getActivity()); in onCreate()
96 mGridView.setAdapter(mAdapter); in onCreateView()
126 if (mAdapter.getNumColumns() == 0) { in onCreateView()
132 mAdapter.setNumColumns(numColumns); in onCreateView()
133 mAdapter.setItemHeight(columnWidth); in onCreateView()
149 mAdapter.notifyDataSetChanged(); in onResume()
/development/samples/devbytes/telephony/SmsSampleProject/SmsSample/src/main/java/com/example/android/smssample/
DMainActivity.java60 private SimpleCursorAdapter mAdapter; field in MainActivity
84 mAdapter = new SimpleCursorAdapter(this, android.R.layout.simple_list_item_2, null, in onCreate()
86 listView.setAdapter(mAdapter); in onCreate()
173 mAdapter.swapCursor(cursor); in onLoadFinished()
180 mAdapter.swapCursor(null); in onLoaderReset()
/development/apps/GestureBuilder/src/com/android/gesture/builder/
DGestureBuilderActivity.java80 private GesturesAdapter mAdapter; field in GestureBuilderActivity
94 mAdapter = new GesturesAdapter(this); in onCreate()
95 setListAdapter(mAdapter); in onCreate()
154 if (mAdapter.getCount() == 0) { in checkForEmpty()
276 final GesturesAdapter adapter = mAdapter; in changeGestureName()
308 final GesturesAdapter adapter = mAdapter; in deleteGesture()
335 mAdapter.setNotifyOnChange(false); in onPreExecute()
336 mAdapter.clear(); in onPreExecute()
359 mAdapter.addBitmap(namedGesture.gesture.getID(), bitmap); in doInBackground()
374 final GesturesAdapter adapter = mAdapter; in onProgressUpdate()

12