Home
last modified time | relevance | path

Searched refs:adapter (Results 1 – 25 of 129) sorted by relevance

123456

/packages/apps/Contacts/tests/src/com/android/contacts/widget/
DCompositeListAdapterTest.java112 CompositeListAdapter adapter = new CompositeListAdapter(); in testGetCount() local
113 adapter.addAdapter(mAdapter1); in testGetCount()
114 adapter.addAdapter(mAdapter2); in testGetCount()
115 adapter.addAdapter(mAdapter3); in testGetCount()
117 assertEquals(5, adapter.getCount()); in testGetCount()
121 CompositeListAdapter adapter = new CompositeListAdapter(); in testGetCountWithInvalidation() local
122 assertEquals(0, adapter.getCount()); in testGetCountWithInvalidation()
124 adapter.addAdapter(mAdapter1); in testGetCountWithInvalidation()
125 assertEquals(2, adapter.getCount()); in testGetCountWithInvalidation()
127 adapter.addAdapter(mAdapter2); in testGetCountWithInvalidation()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DPostalAddressPickerFragment.java47 PostalAddressListAdapter adapter = (PostalAddressListAdapter)getAdapter(); in onItemClick() local
48 pickPostalAddress(adapter.getDataUri(position)); in onItemClick()
50 LegacyPostalAddressListAdapter adapter = (LegacyPostalAddressListAdapter)getAdapter(); in onItemClick() local
51 pickPostalAddress(adapter.getContactMethodUri(position)); in onItemClick()
58 PostalAddressListAdapter adapter = new PostalAddressListAdapter(getActivity()); in createListAdapter() local
59 adapter.setSectionHeaderDisplayEnabled(true); in createListAdapter()
60 adapter.setDisplayPhotos(true); in createListAdapter()
61 return adapter; in createListAdapter()
63 LegacyPostalAddressListAdapter adapter = in createListAdapter() local
65 adapter.setSectionHeaderDisplayEnabled(false); in createListAdapter()
[all …]
DPhoneNumberPickerFragment.java197 PhoneNumberListAdapter adapter = (PhoneNumberListAdapter) getAdapter(); in onItemClick() local
198 phoneUri = adapter.getDataUri(position); in onItemClick()
201 LegacyPhoneNumberListAdapter adapter = (LegacyPhoneNumberListAdapter) getAdapter(); in onItemClick() local
202 phoneUri = adapter.getPhoneUri(position); in onItemClick()
221 PhoneNumberListAdapter adapter = new PhoneNumberListAdapter(getActivity()); in createListAdapter() local
222 adapter.setDisplayPhotos(true); in createListAdapter()
223 return adapter; in createListAdapter()
225 LegacyPhoneNumberListAdapter adapter = new LegacyPhoneNumberListAdapter(getActivity()); in createListAdapter() local
226 adapter.setDisplayPhotos(true); in createListAdapter()
227 return adapter; in createListAdapter()
[all …]
DContactPickerFragment.java153 DefaultContactListAdapter adapter = new DefaultContactListAdapter(getActivity()); in createListAdapter() local
154 adapter.setFilter(ContactListFilter.createFilterWithType( in createListAdapter()
156 adapter.setSectionHeaderDisplayEnabled(true); in createListAdapter()
157 adapter.setDisplayPhotos(true); in createListAdapter()
158 adapter.setQuickContactEnabled(false); in createListAdapter()
159 return adapter; in createListAdapter()
161 LegacyContactListAdapter adapter = new LegacyContactListAdapter(getActivity()); in createListAdapter() local
162 adapter.setSectionHeaderDisplayEnabled(false); in createListAdapter()
163 adapter.setDisplayPhotos(false); in createListAdapter()
164 return adapter; in createListAdapter()
[all …]
DEmailAddressPickerFragment.java44 EmailAddressListAdapter adapter = (EmailAddressListAdapter)getAdapter(); in onItemClick() local
45 pickEmailAddress(adapter.getDataUri(position)); in onItemClick()
50 EmailAddressListAdapter adapter = new EmailAddressListAdapter(getActivity()); in createListAdapter() local
51 adapter.setSectionHeaderDisplayEnabled(true); in createListAdapter()
52 adapter.setDisplayPhotos(true); in createListAdapter()
53 return adapter; in createListAdapter()
DJoinContactListFragment.java61 JoinContactListAdapter adapter = getAdapter();
62 if (adapter != null) {
63 adapter.configureLoader(loader, 0);
113 JoinContactListAdapter adapter = getAdapter(); in onContactListLoaded() local
114 adapter.setSuggestionsCursor(suggestionsCursor); in onContactListLoaded()
141 JoinContactListAdapter adapter = getAdapter(); in configureAdapter() local
142 adapter.setAllContactsListShown(mAllContactsListShown); in configureAdapter()
143 adapter.setTargetContactId(mTargetContactId); in configureAdapter()
153 JoinContactListAdapter adapter = getAdapter(); in onItemClick() local
154 int partition = adapter.getPartitionForPosition(position); in onItemClick()
[all …]
DContactBrowseListContextMenuAdapter.java63 ContactListAdapter adapter = mContactListFragment.getAdapter(); in onCreateContextMenu() local
68 menu.setHeaderTitle(adapter.getContactDisplayName(position)); in onCreateContextMenu()
73 if (adapter.getHasPhoneNumber(position)) { in onCreateContextMenu()
84 if (!adapter.isContactStarred(position)) { in onCreateContextMenu()
105 ContactListAdapter adapter = mContactListFragment.getAdapter(); in onContextItemSelected() local
109 final Uri contactUri = adapter.getContactUri(position); in onContextItemSelected()
117 if (adapter.isContactStarred(position)) { in onContextItemSelected()
DContactBrowseListFragment.java330 ContactListAdapter adapter = getAdapter(); in setSelectedContactUri() local
331 if (adapter != null) { in setSelectedContactUri()
332 adapter.setSelectedContact(mSelectedContactDirectoryId, in setSelectedContactUri()
376 ContactListAdapter adapter = getAdapter(); in configureAdapter() local
377 if (adapter == null) { in configureAdapter()
383 adapter.setFilter(mFilter); in configureAdapter()
386 adapter.setSelectedContact( in configureAdapter()
392 adapter.setIncludeProfile(!searchMode); in configureAdapter()
421 ContactListAdapter adapter = getAdapter(); in checkSelection() local
422 if (adapter == null) { in checkSelection()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DClusteredSuggestionsView.java36 public void setSuggestionsAdapter(SuggestionsAdapter<ExpandableListAdapter> adapter) { in setSuggestionsAdapter() argument
37 mSuggestionsAdapter = adapter; in setSuggestionsAdapter()
38 super.setAdapter(adapter == null ? null : adapter.getListAdapter()); in setSuggestionsAdapter()
63 ExpandableListAdapter adapter = mSuggestionsAdapter.getListAdapter(); in expandAll() local
64 for (int i = 0; i < adapter.getGroupCount(); ++i) { in expandAll()
DSuggestionClickListener.java31 void onSuggestionClicked(SuggestionsAdapter<?> adapter, long suggestionId); in onSuggestionClicked() argument
40 void onSuggestionQuickContactClicked(SuggestionsAdapter<?> adapter, long suggestionId); in onSuggestionQuickContactClicked() argument
49 void onSuggestionRemoveFromHistoryClicked(SuggestionsAdapter<?> adapter, long suggestionId); in onSuggestionRemoveFromHistoryClicked() argument
58 void onSuggestionQueryRefineClicked(SuggestionsAdapter<?> adapter, long suggestionId); in onSuggestionQueryRefineClicked() argument
DSuggestionsView.java45 public void setSuggestionsAdapter(SuggestionsAdapter<ListAdapter> adapter) { in setSuggestionsAdapter() argument
46 super.setAdapter(adapter == null ? null : adapter.getListAdapter()); in setSuggestionsAdapter()
47 mSuggestionsAdapter = adapter; in setSuggestionsAdapter()
/packages/apps/Tag/canon/src/com/android/apps/tagcanon/
DTagCanon.java133 ArrayAdapter<TagDescription> adapter = new ArrayAdapter<TagDescription>(this, in onCreate() local
135 adapter.add(new TagDescription("Image", buildImageMessages())); in onCreate()
136 adapter.add(new TagDescription("Real NFC message", MockNdefMessages.REAL_NFC_MSG)); in onCreate()
137 adapter.add(new TagDescription("Call Google", MockNdefMessages.CALL_GOOGLE)); in onCreate()
138 adapter.add(new TagDescription("English text", MockNdefMessages.ENGLISH_PLAIN_TEXT)); in onCreate()
139 adapter.add(new TagDescription("Send text message", MockNdefMessages.SEND_TEXT_MESSAGE)); in onCreate()
140adapter.add(new TagDescription("SmartPoster URL & text", MockNdefMessages.SMART_POSTER_URL_AND_TEX… in onCreate()
141adapter.add(new TagDescription("SmartPoster URL", MockNdefMessages.SMART_POSTER_URL_NO_TEXT)); in onCreate()
142 adapter.add(new TagDescription("VCARD", MockNdefMessages.VCARD)); in onCreate()
143 adapter.add(new TagDescription("URI", MockNdefMessages.URI)); in onCreate()
[all …]
/packages/apps/Browser/src/com/android/browser/
DBrowserBookmarksPage.java136 BrowserBookmarksAdapter adapter = new BrowserBookmarksAdapter( in onLoadFinished() local
138 mBookmarkAdapters.put(id, adapter); in onLoadFinished()
144 mGrid.addAccount(accountName, adapter, expand); in onLoadFinished()
157 BrowserBookmarksAdapter adapter = mBookmarkAdapters.get(loader.getId()); in onLoadFinished() local
158 adapter.changeCursor(cursor); in onLoadFinished()
186 BrowserBookmarksAdapter adapter = getChildAdapter(groupPosition); in handleContextItem() local
190 loadUrl(adapter, childPosition); in handleContextItem()
193 editBookmark(adapter, childPosition); in handleContextItem()
196 Cursor c = adapter.getItem(childPosition); in handleContextItem()
200 displayRemoveBookmarkDialog(adapter, childPosition); in handleContextItem()
[all …]
/packages/apps/Exchange/src/com/android/exchange/adapter/
DAbstractSyncParser.java18 package com.android.exchange.adapter;
52 public AbstractSyncParser(InputStream in, AbstractSyncAdapter adapter) throws IOException { in AbstractSyncParser() argument
54 init(adapter); in AbstractSyncParser()
57 public AbstractSyncParser(Parser p, AbstractSyncAdapter adapter) throws IOException { in AbstractSyncParser() argument
59 init(adapter); in AbstractSyncParser()
62 private void init(AbstractSyncAdapter adapter) { in init() argument
63 mAdapter = adapter; in init()
64 mService = adapter.mService; in init()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothManager.java53 LocalBluetoothAdapter adapter = LocalBluetoothAdapter.getInstance(); in getInstance() local
54 if (adapter == null) { in getInstance()
59 sInstance = new LocalBluetoothManager(adapter, appContext); in getInstance()
73 private LocalBluetoothManager(LocalBluetoothAdapter adapter, Context context) { in LocalBluetoothManager() argument
75 mLocalAdapter = adapter; in LocalBluetoothManager()
DLocalBluetoothAdapter.java53 private LocalBluetoothAdapter(BluetoothAdapter adapter) { in LocalBluetoothAdapter() argument
54 mAdapter = adapter; in LocalBluetoothAdapter()
69 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in getInstance() local
70 if (adapter != null) { in getInstance()
71 sInstance = new LocalBluetoothAdapter(adapter); in getInstance()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DCorpusSelectionDialog.java105 CorporaAdapter adapter = in onStart() local
107 adapter.setCurrentCorpus(mCorpus); in onStart()
108 setAdapter(adapter); in onStart()
109 mCorpusGrid.setSelection(adapter.getCorpusPosition(mCorpus)); in onStart()
170 private void setAdapter(CorporaAdapter adapter) { in setAdapter() argument
171 if (adapter == mAdapter) return; in setAdapter()
173 mAdapter = adapter; in setAdapter()
DSearchActivity.java461 protected SuggestionPosition getCurrentSuggestions(SuggestionsAdapter<?> adapter, long id) { in getCurrentSuggestions() argument
462 SuggestionPosition pos = adapter.getSuggestion(id); in getCurrentSuggestions()
499 private boolean launchSuggestion(SuggestionsAdapter<?> adapter, long id) { in launchSuggestion() argument
500 SuggestionPosition suggestion = getCurrentSuggestions(adapter, id); in launchSuggestion()
525 protected void removeFromHistoryClicked(final SuggestionsAdapter<?> adapter, in removeFromHistoryClicked() argument
527 SuggestionPosition suggestion = getCurrentSuggestions(adapter, id); in removeFromHistoryClicked()
537 removeFromHistory(adapter, id); in removeFromHistoryClicked()
545 protected void removeFromHistory(SuggestionsAdapter<?> adapter, long id) { in removeFromHistory() argument
546 SuggestionPosition suggestion = getCurrentSuggestions(adapter, id); in removeFromHistory()
572 protected void clickedQuickContact(SuggestionsAdapter<?> adapter, long id) { in clickedQuickContact() argument
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
DCalendarSyncAdapterTests.java17 package com.android.exchange.adapter;
19 import com.android.exchange.adapter.CalendarSyncAdapter.CalendarOperations;
20 import com.android.exchange.adapter.CalendarSyncAdapter.EasCalendarSyncParser;
110 CalendarSyncAdapter adapter = getTestSyncAdapter(CalendarSyncAdapter.class); in testSetTimeRelatedValues_NonRecurring() local
111 EasCalendarSyncParser p = adapter.new EasCalendarSyncParser(getTestInputStream(), adapter); in testSetTimeRelatedValues_NonRecurring()
128 CalendarSyncAdapter adapter = getTestSyncAdapter(CalendarSyncAdapter.class); in testSetTimeRelatedValues_Recurring() local
129 EasCalendarSyncParser p = adapter.new EasCalendarSyncParser(getTestInputStream(), adapter); in testSetTimeRelatedValues_Recurring()
146 CalendarSyncAdapter adapter = getTestSyncAdapter(CalendarSyncAdapter.class); in testSetTimeRelatedValues_AllDay() local
147 EasCalendarSyncParser p = adapter.new EasCalendarSyncParser(getTestInputStream(), adapter); in testSetTimeRelatedValues_AllDay()
172 CalendarSyncAdapter adapter = getTestSyncAdapter(CalendarSyncAdapter.class); in testSetTimeRelatedValues_Recurring_AllDay_Exception() local
[all …]
DSyncAdapterTestCase.java17 package com.android.exchange.adapter;
27 import com.android.exchange.adapter.AbstractSyncAdapter;
28 import com.android.exchange.adapter.EmailSyncAdapter;
29 import com.android.exchange.adapter.EmailSyncAdapter.EasEmailSyncParser;
/packages/apps/Browser/src/com/android/browser/view/
DBookmarkExpandableView.java115 public void setAdapter(ExpandableListAdapter adapter) { in setAdapter() argument
130 public void addAccount(String accountName, BrowserBookmarksAdapter adapter, in addAccount() argument
136 if (existing != adapter) { in addAccount()
140 mAdapter.mChildren.add(indexOf, adapter); in addAccount()
141 adapter.registerDataSetObserver(mAdapter.mObserver); in addAccount()
145 adapter.selectView(mCurrentView); in addAccount()
148 mAdapter.mChildren.add(adapter); in addAccount()
149 adapter.registerDataSetObserver(mAdapter.mObserver); in addAccount()
319 for (BrowserBookmarksAdapter adapter : mAdapter.mChildren) { in selectView()
320 adapter.selectView(mCurrentView); in selectView()
[all …]
/packages/apps/Contacts/src/com/android/contacts/widget/
DPinnedHeaderListDemoActivity.java103 final TestPinnedHeaderListAdapter adapter = new TestPinnedHeaderListAdapter(this); in onCreate() local
116 adapter.setHeaders(names); in onCreate()
118 adapter.addPartition(showIfEmpty[i], names[i] != null); in onCreate()
119 adapter.mPinnedHeaderCount = names.length; in onCreate()
121 setListAdapter(adapter); in onCreate()
128 adapter.changeCursor(sectionId, cursor); in onCreate()
DCompositeListAdapter.java70 /*package*/ void addAdapter(ListAdapter adapter) { in addAdapter() argument
86 adapter.registerDataSetObserver(mDataSetObserver); in addAdapter()
88 int count = adapter.getCount(); in addAdapter()
89 int viewTypeCount = adapter.getViewTypeCount(); in addAdapter()
91 mAdapters[mSize] = adapter; in addAdapter()
94 mAllItemsEnabled &= adapter.areAllItemsEnabled(); in addAdapter()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapReceiver.java66 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in onReceive() local
67 if (adapter == null || !adapter.isEnabled()) { in onReceive()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DImportExportDialogFragment.java77 final ArrayAdapter<Integer> adapter = new ArrayAdapter<Integer>(getActivity(), in onCreateDialog() local
91 adapter.add(R.string.import_from_sim); in onCreateDialog()
94 adapter.add(R.string.import_from_sdcard); in onCreateDialog()
97 adapter.add(R.string.export_to_sdcard); in onCreateDialog()
100 adapter.add(R.string.share_visible_contacts); in onCreateDialog()
108 final int resId = adapter.getItem(which); in onCreateDialog()
139 .setSingleChoiceItems(adapter, -1, clickListener) in onCreateDialog()

123456