/development/samples/browseable/MidiScope/src/com.example.android.common.midi/ |
D | MidiPortSelector.java | 39 protected ArrayAdapter<MidiPortWrapper> mAdapter; field in MidiPortSelector 59 mAdapter = new ArrayAdapter<MidiPortWrapper>(activity, in MidiPortSelector() 61 mAdapter.setDropDownViewResource( in MidiPortSelector() 63 mAdapter.add(new MidiPortWrapper(null, 0, 0)); in MidiPortSelector() 71 mCurrentWrapper = mAdapter.getItem(pos); in MidiPortSelector() 80 mSpinner.setAdapter(mAdapter); in MidiPortSelector() 109 mAdapter.add(wrapper); in onDeviceAdded() 111 mAdapter.notifyDataSetChanged(); in onDeviceAdded() 121 mAdapter.remove(wrapper); in onDeviceRemoved() 126 mAdapter.notifyDataSetChanged(); in onDeviceRemoved() [all …]
|
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/ |
D | MidiPortSelector.java | 39 protected ArrayAdapter<MidiPortWrapper> mAdapter; field in MidiPortSelector 59 mAdapter = new ArrayAdapter<MidiPortWrapper>(activity, in MidiPortSelector() 61 mAdapter.setDropDownViewResource( in MidiPortSelector() 63 mAdapter.add(new MidiPortWrapper(null, 0, 0)); in MidiPortSelector() 71 mCurrentWrapper = mAdapter.getItem(pos); in MidiPortSelector() 80 mSpinner.setAdapter(mAdapter); in MidiPortSelector() 109 mAdapter.add(wrapper); in onDeviceAdded() 111 mAdapter.notifyDataSetChanged(); in onDeviceAdded() 121 mAdapter.remove(wrapper); in onDeviceRemoved() 126 mAdapter.notifyDataSetChanged(); in onDeviceRemoved() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | ExpandableList2.java | 51 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()
|
D | List8.java | 41 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()
|
D | List12.java | 40 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()
|
/development/samples/ApiDemos/src/com/example/android/apis/nfc/ |
D | ForegroundDispatch.java | 37 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()
|
D | ForegroundNdefPush.java | 32 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/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/ |
D | ScannerFragment.java | 60 private ScanResultAdapter mAdapter; field in ScannerFragment 85 mAdapter = new ScanResultAdapter(getActivity().getApplicationContext(), in onCreate() 97 setListAdapter(mAdapter); in onCreateView() 173 mAdapter.notifyDataSetChanged(); in stopScanning() 209 mAdapter.add(result); in onBatchScanResults() 211 mAdapter.notifyDataSetChanged(); in onBatchScanResults() 218 mAdapter.add(result); in onScanResult() 219 mAdapter.notifyDataSetChanged(); in onScanResult()
|
/development/samples/RSSReader/src/com/example/android/rssreader/ |
D | RssReader.java | 77 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/training/threadsample/src/com/example/android/threadsample/ |
D | PhotoThumbnailFragment.java | 70 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/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/pickers/ |
D | PickerActivity.java | 45 private ArrayAdapter<String> mAdapter; field in PickerActivity 59 mAdapter = new ArrayAdapter<>(this, android.R.layout.simple_dropdown_item_1line); in onCreate() 62 mList.setAdapter(mAdapter); in onCreate() 95 final String val = mAdapter.getItem(position).toString(); in getSelectedItem() 136 mAdapter.clear(); in refreshList() 137 mAdapter.addAll(list); in refreshList()
|
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/ |
D | MainActivity.java | 29 private RecipeListAdapter mAdapter; field in MainActivity 36 String itemName = mAdapter.getItemName(position); in onListItemClick() 47 mAdapter = new RecipeListAdapter(this); in onCreate() 48 setListAdapter(mAdapter); in onCreate()
|
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/ |
D | ListViewRemovalAnimation.java | 40 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/samples/IntentPlayground/src/com/example/android/intentplayground/ |
D | ShowcaseFragment.java | 46 private StepAdapter mAdapter; field in ShowcaseFragment 59 mAdapter = new StepAdapter(context, mSteps); in onAttach() 83 mAdapter.setButtonCallbacks( in onCreateView() 101 mPager.setAdapter(mAdapter); in onCreateView() 127 if (mAdapter != null) mAdapter.notifyDataSetChanged(); in addStep() 157 Step current = mAdapter.getStep(i); in executeStep()
|
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/ |
D | EntryListFragment.java | 73 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/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/ui/ |
D | AttractionsActivity.java | 68 private AttractionsGridPagerAdapter mAdapter; field in AttractionsActivity 84 mAdapter = new AttractionsGridPagerAdapter(this, mAttractions); in onCreate() 85 mAdapter.setOnChromeFadeListener(this); in onCreate() 86 mGridViewPager.setAdapter(mAdapter); in onCreate() 88 mDotsPageIndicator.setOnPageChangeListener(mAdapter); in onCreate() 120 mAdapter.setInsets(mInsets); in onCreate() 246 mAdapter.setData(result); in onPostExecute() 247 mAdapter.notifyDataSetChanged(); in onPostExecute()
|
/development/apps/Development/src/com/android/development/ |
D | PackageBrowser.java | 51 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()
|
D | RunningProcesses.java | 46 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
|
D | AppHwConfigList.java | 49 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
|
/development/apps/GestureBuilder/src/com/android/gesture/builder/ |
D | GestureBuilderActivity.java | 80 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()
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/ui/ |
D | ImageGridFragment.java | 63 private ImageAdapter mAdapter; field in ImageGridFragment 79 mAdapter = new ImageAdapter(getActivity()); in onCreate() 98 mGridView.setAdapter(mAdapter); in onCreateView() 129 if (mAdapter.getNumColumns() == 0) { in onCreateView() 135 mAdapter.setNumColumns(numColumns); in onCreateView() 136 mAdapter.setItemHeight(columnWidth); in onCreateView() 159 mAdapter.notifyDataSetChanged(); in onResume()
|
/development/samples/browseable/DirectorySelection/src/com.example.android.directoryselection/ |
D | DirectorySelectionFragment.java | 56 DirectoryEntryAdapter mAdapter; field in DirectorySelectionFragment 128 mAdapter = new DirectoryEntryAdapter(new ArrayList<DirectoryEntry>()); in onViewCreated() 129 mRecyclerView.setAdapter(mAdapter); in onViewCreated() 138 mAdapter.notifyDataSetChanged(); in onActivityResult() 183 mAdapter.setDirectoryEntries(directoryEntries); in updateDirectoryEntries() 184 mAdapter.notifyDataSetChanged(); in updateDirectoryEntries()
|
/development/samples/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/ |
D | ScopedDirectoryAccessFragment.java | 66 private DirectoryEntryAdapter mAdapter; field in ScopedDirectoryAccessFragment 160 mAdapter = new DirectoryEntryAdapter(mDirectoryEntries); in onViewCreated() 161 if (mAdapter.getItemCount() == 0) { in onViewCreated() 166 mAdapter = new DirectoryEntryAdapter(); in onViewCreated() 168 recyclerView.setAdapter(mAdapter); in onViewCreated() 217 mAdapter.setDirectoryEntries(mDirectoryEntries); in updateDirectoryEntries() 218 mAdapter.notifyDataSetChanged(); in updateDirectoryEntries()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | LoaderRetained.java | 69 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()
|
D | LoaderCursor.java | 67 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()
|