/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/ui/ |
ImageGridFragment.java | 62 private ImageAdapter mAdapter; 78 mAdapter = new ImageAdapter(getActivity()); 96 mGridView.setAdapter(mAdapter); 123 if (mAdapter.getNumColumns() == 0) { 129 mAdapter.setNumColumns(numColumns); 130 mAdapter.setItemHeight(columnWidth); 146 mAdapter.notifyDataSetChanged();
|
/frameworks/base/core/java/android/app/ |
ListFragment.java | 164 ListAdapter mAdapter; 237 boolean hadAdapter = mAdapter != null; 238 mAdapter = adapter; 377 return mAdapter; 421 if (mAdapter != null) { 422 ListAdapter adapter = mAdapter; 423 mAdapter = null;
|
/frameworks/support/v4/java/android/support/v4/app/ |
ListFragment.java | 62 ListAdapter mAdapter; 179 boolean hadAdapter = mAdapter != null; 180 mAdapter = adapter; 319 return mAdapter; 362 if (mAdapter != null) { 363 ListAdapter adapter = mAdapter; 364 mAdapter = null;
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastListActivity.java | 87 CursorAdapter mAdapter; 112 mAdapter = new CellBroadcastCursorAdapter(getActivity(), null); 113 setListAdapter(mAdapter); 130 menu.findItem(MENU_DELETE_ALL).setVisible(!mAdapter.isEmpty()); 150 mAdapter.swapCursor(data); 158 mAdapter.swapCursor(null); 193 Cursor cursor = mAdapter.getCursor();
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
DigitalWidgetViewsFactory.java | 45 private RemoteWorldClockAdapter mAdapter; 140 mAdapter = new RemoteWorldClockAdapter(context); 150 return mAdapter.getCount(); 167 RemoteViews v = mAdapter.getViewAt(position); 194 mAdapter.loadData(mContext); 195 mAdapter.loadCitiesDb(mContext); 196 mAdapter.updateHomeLabel(mContext);
|
/packages/apps/Gallery2/src/com/android/photos/ |
AlbumFragment.java | 50 private PhotoThumbnailAdapter mAdapter; 59 mAdapter = new PhotoThumbnailAdapter(context); 94 int count = mAdapter.getCount(); 98 iv.setImageDrawable(mLoaderCompatShim.drawableForItem(mAdapter.getItem(0), null)); 120 mAdapter.setDrawableFactory(mLoaderCompatShim); 127 mAdapter.swapCursor(data); 129 setAdapter(mAdapter);
|
MultiSelectGridFragment.java | 47 ListAdapter mAdapter; 128 boolean hadAdapter = mAdapter != null; 129 mAdapter = adapter; 308 if (mAdapter != null) { 309 ListAdapter adapter = mAdapter; 310 mAdapter = null;
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
DayPickerView.java | 74 protected SimpleMonthAdapter mAdapter; 110 setAdapter(mAdapter); 125 setAdapter(mAdapter); 133 if (mAdapter == null) { 134 mAdapter = new SimpleMonthAdapter(getContext(), mController); 136 mAdapter.setSelectedDay(mSelectedDay); 137 mAdapter.notifyDataSetChanged(); 140 mAdapter.notifyDataSetChanged(); 213 mAdapter.setSelectedDay(mSelectedDay);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
ReportExporter.java | 44 private final TestListAdapter mAdapter; 48 this.mAdapter = adapter; 59 TestResultsReport report = new TestResultsReport(mContext, mAdapter);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
PolicySerializationTestActivity.java | 62 private PolicyAdapter mAdapter; 99 mAdapter = new PolicyAdapter(this); 100 setListAdapter(mAdapter); 107 mAdapter.clear(); 113 mAdapter.add(item); 120 mAdapter.clear(); 124 mAdapter.add(item); 182 mApplyPolicyButton.setEnabled(!mAdapter.isEmpty()); 185 boolean enablePass = !mAdapter.isEmpty(); 186 int numItems = mAdapter.getCount() [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ |
IngestActivity.java | 62 private MtpAdapter mAdapter; 93 mAdapter = new MtpAdapter(this); 94 mAdapter.registerDataSetObserver(mMasterObserver); 95 mGridView.setAdapter(mAdapter); 128 if (mAdapter.itemAtPositionIsBucket(position)) { 135 int nextSectionStart = mAdapter.getPositionForSection( 136 mAdapter.getSectionForPosition(position) + 1); 138 nextSectionStart = mAdapter.getCount(); 202 mAdapter); 282 mLastMappingGrid = mAdapter.translatePositionWithoutLabels(position) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
TimerFragment.java | 83 private TimersListAdapter mAdapter; 392 for (int i = 0; i < mAdapter.getCount(); i ++) { 393 TimerObj t = mAdapter.getItem(i); 472 if (mAdapter.getCount() != 0) { 490 mAdapter.addTimer(t); 496 mAdapter.findTimerPositionById(t.mTimerId), 0); 549 mAdapter = createAdapter(getActivity(), mPrefs); 550 mAdapter.onRestoreInstanceState(null); 565 mAdapter.setFooterView(footerView); 583 mTimersList.setAdapter(mAdapter); [all...] |
/development/samples/Spinner/src/com/android/example/spinner/ |
SpinnerActivity.java | 48 protected ArrayAdapter<CharSequence> mAdapter; 114 this.mAdapter = ArrayAdapter.createFromResource(this, R.array.Planets, 121 spinner.setAdapter(this.mAdapter); 128 OnItemSelectedListener spinnerListener = new myOnItemSelectedListener(this,this.mAdapter);
|
/frameworks/base/core/java/android/widget/ |
Spinner.java | 430 } else if (mAdapter != null && mAdapter.getCount() > 0) { 539 if (mAdapter != null) { 592 child = mAdapter.getView(position, null, this); 681 if (mAdapter != null) { 821 private SpinnerAdapter mAdapter; 830 this.mAdapter = adapter; 837 return mAdapter == null ? 0 : mAdapter.getCount(); 841 return mAdapter == null ? null : mAdapter.getItem(position) [all...] |
/packages/apps/Calendar/src/com/android/calendar/month/ |
MonthByWeekFragment.java | 127 if (mAdapter != null) { 128 mAdapter.refresh(); 236 if (mAdapter != null) { 237 mAdapter.setSelectedDay(mSelectedDay); 277 if (mAdapter == null) { 278 mAdapter = new MonthByWeekAdapter(getActivity(), weekParams, mEventDialogHandler); 279 mAdapter.registerDataSetObserver(mObserver); 281 mAdapter.updateParams(weekParams); 283 mAdapter.notifyDataSetChanged(); 316 mAdapter.setListView(mListView) [all...] |
/packages/apps/Dialer/src/com/android/dialer/list/ |
TileInteractionTeaserView.java | 34 private PhoneFavoriteMergedAdapter mAdapter; 95 mAdapter = adapter; 122 if (mAdapter != null) { 123 mAdapter.notifyDataSetChanged();
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
ConversationLongPressTipView.java | 48 private AnimatedAdapter mAdapter; 121 return !shouldShowSenderImage() && !mAdapter.isEmpty() 133 mAdapter = adapter; 221 * Ideally, we would like to call mAdapter.notifyDataSetChanged() in a listener's 244 mAdapter.getViewMode())) {
|
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
LiveWallpaperActivity.java | 67 private LiveWallpaperListAdapter mAdapter; 133 mAdapter = new LiveWallpaperListAdapter(getActivity()); 136 adapterView.setAdapter(mAdapter); 144 (LiveWallpaperListAdapter.LiveWallpaperInfo) mAdapter.getItem(position);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
RecentsHorizontalScrollView.java | 48 private TaskDescriptionAdapter mAdapter; 95 mAdapter.recycleView(v); 102 for (int i = 0; i < mAdapter.getCount(); i++) { 110 final View view = mAdapter.getView(i, old, mLinearLayout); 336 mAdapter = adapter; 337 mAdapter.registerDataSetObserver(new DataSetObserver() { 351 View child = mAdapter.createView(mLinearLayout); 358 addToRecycledViews(mAdapter.createView(mLinearLayout));
|
/packages/apps/Browser/src/com/android/browser/ |
UrlInputView.java | 71 private SuggestionsAdapter mAdapter; 105 mAdapter = new SuggestionsAdapter(ctx, this); 106 setAdapter(mAdapter); 202 mAdapter.setLandscapeMode(mLandscape); 218 mAdapter.clearCache(); 302 SuggestItem item = mAdapter.getItem(position); 318 mAdapter.setIncognitoMode(mIncognitoMode); 331 return mAdapter;
|
/development/apps/Development/src/com/android/development/ |
PackageBrowser.java | 51 private PackageListAdapter mAdapter; 123 mAdapter = new PackageListAdapter(this); 124 setListAdapter(mAdapter); 143 final MyPackageInfo packageInfo = mAdapter.itemForPosition(curSelection); 153 mAdapter.notifyDataSetChanged(); 191 mAdapter.itemForPosition(position);
|
/frameworks/support/v4/java/android/support/v4/view/ |
ViewPager.java | 135 private PagerAdapter mAdapter; 408 if (mAdapter != null) { 409 mAdapter.unregisterDataSetObserver(mObserver); 410 mAdapter.startUpdate(this); 413 mAdapter.destroyItem(this, ii.position, ii.object); 415 mAdapter.finishUpdate(this); 422 final PagerAdapter oldAdapter = mAdapter; 423 mAdapter = adapter; 426 if (mAdapter != null) { 430 mAdapter.registerDataSetObserver(mObserver) [all...] |
/development/apps/GestureBuilder/src/com/android/gesture/builder/ |
GestureBuilderActivity.java | 80 private GesturesAdapter mAdapter; 94 mAdapter = new GesturesAdapter(this); 95 setListAdapter(mAdapter); 154 if (mAdapter.getCount() == 0) { 276 final GesturesAdapter adapter = mAdapter; 308 final GesturesAdapter adapter = mAdapter; 335 mAdapter.setNotifyOnChange(false); 336 mAdapter.clear(); 359 mAdapter.addBitmap(namedGesture.gesture.getID(), bitmap); 374 final GesturesAdapter adapter = mAdapter; [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppManager.java | 73 private BluetoothAdapter mAdapter; 144 mAdapter = BluetoothAdapter.getDefaultAdapter(); 145 if (mAdapter == null) { 281 if (mAdapter != null) { 282 return mAdapter.isEnabled(); 293 if (mAdapter != null) { 294 mAdapter.enable(); 302 if (mAdapter != null) { 303 mAdapter.disable(); 315 if (deviceName == null && mAdapter != null) [all...] |
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
KeyboardLayoutDialogFragment.java | 56 private KeyboardLayoutAdapter mAdapter; 71 mAdapter = new KeyboardLayoutAdapter(context); 104 .setSingleChoiceItems(mAdapter, -1, 156 if (which >= 0 && which < mAdapter.getCount()) { 157 KeyboardLayout keyboardLayout = mAdapter.getItem(which); 173 mAdapter.clear(); 174 mAdapter.addAll(data.keyboardLayouts); 175 mAdapter.setCheckedItem(data.current); 185 mAdapter.clear(); 211 customPanel.setVisibility(mAdapter.getCount() > 1 ? View.VISIBLE : View.GONE) [all...] |