Home
last modified time | relevance | path

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

12345678

/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/Browser/src/com/android/browser/
DBrowserBookmarksPage.java127 BrowserBookmarksAdapter adapter = new BrowserBookmarksAdapter( in onLoadFinished() local
129 mBookmarkAdapters.put(id, adapter); in onLoadFinished()
135 mGrid.addAccount(accountName, adapter, expand); in onLoadFinished()
148 BrowserBookmarksAdapter adapter = mBookmarkAdapters.get(loader.getId()); in onLoadFinished() local
149 adapter.changeCursor(cursor); in onLoadFinished()
156 BrowserBookmarksAdapter adapter = mBookmarkAdapters.get(loader.getId()); in onLoaderReset() local
157 adapter.changeCursor(null); in onLoaderReset()
181 BrowserBookmarksAdapter adapter = getChildAdapter(groupPosition); in handleContextItem() local
185 loadUrl(adapter, childPosition); in handleContextItem()
188 editBookmark(adapter, childPosition); in handleContextItem()
[all …]
/packages/apps/Gallery2/src/com/android/photos/views/
DHeaderGridView.java81 ListAdapter adapter = getAdapter(); in onMeasure() local
82 if (adapter != null && adapter instanceof HeaderViewGridAdapter) { in onMeasure()
83 ((HeaderViewGridAdapter) adapter).setNumColumns(getNumColumns()); in onMeasure()
105 ListAdapter adapter = getAdapter(); in addHeaderView() local
107 if (adapter != null && ! (adapter instanceof HeaderViewGridAdapter)) { in addHeaderView()
123 if (adapter != null) { in addHeaderView()
124 ((HeaderViewGridAdapter) adapter).notifyDataSetChanged(); in addHeaderView()
156 ListAdapter adapter = getAdapter(); in removeHeaderView() local
157 if (adapter != null && ((HeaderViewGridAdapter) adapter).removeHeader(v)) { in removeHeaderView()
178 public void setAdapter(ListAdapter adapter) { in setAdapter() argument
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
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 …]
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()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DPhoneNumberPickerFragment.java186 final PhoneNumberListAdapter adapter = (PhoneNumberListAdapter) getAdapter(); in getPhoneUri() local
187 return adapter.getDataUri(position); in getPhoneUri()
214 PhoneNumberListAdapter adapter = new PhoneNumberListAdapter(getActivity()); in createListAdapter() local
215 adapter.setDisplayPhotos(true); in createListAdapter()
216 adapter.setUseCallableUri(mUseCallableUri); in createListAdapter()
217 return adapter; in createListAdapter()
224 final ContactEntryListAdapter adapter = getAdapter(); in configureAdapter() local
225 if (adapter == null) { in configureAdapter()
230 adapter.setFilter(mFilter); in configureAdapter()
233 setPhotoPosition(adapter); in configureAdapter()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DContactBrowseListFragment.java340 ContactListAdapter adapter = getAdapter(); in setSelectedContactUri() local
341 if (adapter != null) { in setSelectedContactUri()
342 adapter.setSelectedContact(mSelectedContactDirectoryId, in setSelectedContactUri()
386 ContactListAdapter adapter = getAdapter(); in configureAdapter() local
387 if (adapter == null) { in configureAdapter()
393 adapter.setFilter(mFilter); in configureAdapter()
396 adapter.setSelectedContact( in configureAdapter()
402 adapter.setIncludeProfile(!searchMode); in configureAdapter()
431 ContactListAdapter adapter = getAdapter(); in checkSelection() local
432 if (adapter == null) { in checkSelection()
[all …]
DPostalAddressPickerFragment.java50 PostalAddressListAdapter adapter = (PostalAddressListAdapter)getAdapter(); in onItemClick() local
51 pickPostalAddress(adapter.getDataUri(position)); in onItemClick()
53 LegacyPostalAddressListAdapter adapter = (LegacyPostalAddressListAdapter)getAdapter(); in onItemClick() local
54 pickPostalAddress(adapter.getContactMethodUri(position)); in onItemClick()
61 PostalAddressListAdapter adapter = new PostalAddressListAdapter(getActivity()); in createListAdapter() local
62 adapter.setSectionHeaderDisplayEnabled(true); in createListAdapter()
63 adapter.setDisplayPhotos(true); in createListAdapter()
64 return adapter; in createListAdapter()
66 LegacyPostalAddressListAdapter adapter = in createListAdapter() local
68 adapter.setSectionHeaderDisplayEnabled(false); in createListAdapter()
[all …]
DContactPickerFragment.java155 DefaultContactListAdapter adapter = new DefaultContactListAdapter(getActivity()); in createListAdapter() local
156 adapter.setFilter(ContactListFilter.createFilterWithType( in createListAdapter()
158 adapter.setSectionHeaderDisplayEnabled(true); in createListAdapter()
159 adapter.setDisplayPhotos(true); in createListAdapter()
160 adapter.setQuickContactEnabled(false); in createListAdapter()
161 return adapter; in createListAdapter()
163 LegacyContactListAdapter adapter = new LegacyContactListAdapter(getActivity()); in createListAdapter() local
164 adapter.setSectionHeaderDisplayEnabled(false); in createListAdapter()
165 adapter.setDisplayPhotos(false); in createListAdapter()
166 return adapter; in createListAdapter()
[all …]
DDefaultContactBrowseListFragment.java92 DefaultContactListAdapter adapter = new DefaultContactListAdapter(getContext()); in createListAdapter() local
93 adapter.setSectionHeaderDisplayEnabled(isSectionHeaderDisplayEnabled()); in createListAdapter()
94 adapter.setDisplayPhotos(getResources().getBoolean(R.bool.config_browse_list_show_images)); in createListAdapter()
95 return adapter; in createListAdapter()
210 ContactListAdapter adapter = getAdapter(); in showCount() local
211 if (adapter == null) { in showCount()
216 if (TextUtils.isEmpty(getQueryString()) || !adapter.areAllPartitionsEmpty()) { in showCount()
221 if (adapter.isLoading()) { in showCount()
DJoinContactListFragment.java63 JoinContactListAdapter adapter = getAdapter();
64 if (adapter != null) {
65 adapter.configureLoader(loader, 0);
119 JoinContactListAdapter adapter = getAdapter(); in onContactListLoaded() local
120 adapter.setSuggestionsCursor(suggestionsCursor); in onContactListLoaded()
144 JoinContactListAdapter adapter = getAdapter(); in configureAdapter() local
145 adapter.setTargetContactId(mTargetContactId); in configureAdapter()
DLegacyPhoneNumberPickerFragment.java40 final LegacyPhoneNumberListAdapter adapter = (LegacyPhoneNumberListAdapter) getAdapter(); in getPhoneUri() local
41 return adapter.getPhoneUri(position); in getPhoneUri()
46 LegacyPhoneNumberListAdapter adapter = new LegacyPhoneNumberListAdapter(getActivity()); in createListAdapter() local
47 adapter.setDisplayPhotos(true); in createListAdapter()
48 return adapter; in createListAdapter()
52 protected void setPhotoPosition(ContactEntryListAdapter adapter) { in setPhotoPosition() argument
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/
DCalendarSyncAdapterTests.java17 package com.android.exchange.adapter;
19 import com.android.exchange.adapter.AbstractSyncAdapter.Operation;
20 import com.android.exchange.adapter.CalendarSyncAdapter.CalendarOperations;
21 import com.android.exchange.adapter.CalendarSyncAdapter.EasCalendarSyncParser;
112 CalendarSyncAdapter adapter = getTestSyncAdapter(CalendarSyncAdapter.class); in testSetTimeRelatedValues_NonRecurring() local
113 EasCalendarSyncParser p = adapter.new EasCalendarSyncParser(getTestInputStream(), adapter); in testSetTimeRelatedValues_NonRecurring()
130 CalendarSyncAdapter adapter = getTestSyncAdapter(CalendarSyncAdapter.class); in testSetTimeRelatedValues_Recurring() local
131 EasCalendarSyncParser p = adapter.new EasCalendarSyncParser(getTestInputStream(), adapter); in testSetTimeRelatedValues_Recurring()
148 CalendarSyncAdapter adapter = getTestSyncAdapter(CalendarSyncAdapter.class); in testSetTimeRelatedValues_AllDay() local
149 EasCalendarSyncParser p = adapter.new EasCalendarSyncParser(getTestInputStream(), adapter); in testSetTimeRelatedValues_AllDay()
[all …]
DEmailSyncAdapterTests.java17 package com.android.exchange.adapter;
31 import com.android.exchange.adapter.EmailSyncAdapter.EasEmailSyncParser;
32 import com.android.exchange.adapter.EmailSyncAdapter.EasEmailSyncParser.ServerChange;
59 EmailSyncAdapter adapter = new EmailSyncAdapter(service); in testGetMimeTypeFromFileName() local
60 EasEmailSyncParser p = adapter.new EasEmailSyncParser(getTestInputStream(), adapter); in testGetMimeTypeFromFileName()
84 EmailSyncAdapter adapter = getTestSyncAdapter(EmailSyncAdapter.class); in testFormatDateTime() local
88 String date = adapter.formatDateTime(calendar); in testFormatDateTime()
92 date = adapter.formatDateTime(calendar); in testFormatDateTime()
DFolderSyncParserTests.java17 package com.android.exchange.adapter;
55 EmailSyncAdapter adapter = new EmailSyncAdapter(service); in testIsValidMailFolder() local
56 FolderSyncParser parser = new FolderSyncParser(getTestInputStream(), adapter); in testIsValidMailFolder()
140 EmailSyncAdapter adapter = new EmailSyncAdapter(service); in testSaveAndRestoreMailboxSyncOptions() local
141 FolderSyncParser parser = new FolderSyncParser(getTestInputStream(), adapter); in testSaveAndRestoreMailboxSyncOptions()
222 public MockFolderSyncParser(String fileName, AbstractSyncAdapter adapter) in MockFolderSyncParser() argument
224 super(null, adapter); in MockFolderSyncParser()
366 EmailSyncAdapter adapter = new EmailSyncAdapter(service); in testComplexFolderListParse() local
367 FolderSyncParser parser = new MockFolderSyncParser(fileName, adapter); in testComplexFolderListParse()
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
DCalendarSyncAdapterTests.java17 package com.android.exchange.adapter;
19 import com.android.exchange.adapter.AbstractSyncAdapter.Operation;
20 import com.android.exchange.adapter.CalendarSyncAdapter.CalendarOperations;
21 import com.android.exchange.adapter.CalendarSyncAdapter.EasCalendarSyncParser;
112 CalendarSyncAdapter adapter = getTestSyncAdapter(CalendarSyncAdapter.class); in testSetTimeRelatedValues_NonRecurring() local
113 EasCalendarSyncParser p = adapter.new EasCalendarSyncParser(getTestInputStream(), adapter); in testSetTimeRelatedValues_NonRecurring()
130 CalendarSyncAdapter adapter = getTestSyncAdapter(CalendarSyncAdapter.class); in testSetTimeRelatedValues_Recurring() local
131 EasCalendarSyncParser p = adapter.new EasCalendarSyncParser(getTestInputStream(), adapter); in testSetTimeRelatedValues_Recurring()
148 CalendarSyncAdapter adapter = getTestSyncAdapter(CalendarSyncAdapter.class); in testSetTimeRelatedValues_AllDay() local
149 EasCalendarSyncParser p = adapter.new EasCalendarSyncParser(getTestInputStream(), adapter); in testSetTimeRelatedValues_AllDay()
[all …]
DEmailSyncAdapterTests.java17 package com.android.exchange.adapter;
31 import com.android.exchange.adapter.EmailSyncAdapter.EasEmailSyncParser;
32 import com.android.exchange.adapter.EmailSyncAdapter.EasEmailSyncParser.ServerChange;
59 EmailSyncAdapter adapter = new EmailSyncAdapter(service); in testGetMimeTypeFromFileName() local
60 EasEmailSyncParser p = adapter.new EasEmailSyncParser(getTestInputStream(), adapter); in testGetMimeTypeFromFileName()
84 EmailSyncAdapter adapter = getTestSyncAdapter(EmailSyncAdapter.class); in testFormatDateTime() local
88 String date = adapter.formatDateTime(calendar); in testFormatDateTime()
92 date = adapter.formatDateTime(calendar); in testFormatDateTime()
DFolderSyncParserTests.java17 package com.android.exchange.adapter;
55 EmailSyncAdapter adapter = new EmailSyncAdapter(service); in testIsValidMailFolder() local
56 FolderSyncParser parser = new FolderSyncParser(getTestInputStream(), adapter); in testIsValidMailFolder()
140 EmailSyncAdapter adapter = new EmailSyncAdapter(service); in testSaveAndRestoreMailboxSyncOptions() local
141 FolderSyncParser parser = new FolderSyncParser(getTestInputStream(), adapter); in testSaveAndRestoreMailboxSyncOptions()
222 public MockFolderSyncParser(String fileName, AbstractSyncAdapter adapter) in MockFolderSyncParser() argument
224 super(null, adapter); in MockFolderSyncParser()
366 EmailSyncAdapter adapter = new EmailSyncAdapter(service); in testComplexFolderListParse() local
367 FolderSyncParser parser = new MockFolderSyncParser(fileName, adapter); in testComplexFolderListParse()
/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/Exchange/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java33 import com.android.exchange.adapter.CalendarSyncAdapter;
34 import com.android.exchange.adapter.CalendarSyncAdapter.EasCalendarSyncParser;
35 import com.android.exchange.adapter.Parser;
36 import com.android.exchange.adapter.Serializer;
37 import com.android.exchange.adapter.SyncAdapterTestCase;
38 import com.android.exchange.adapter.Tags;
714 private void testSingleRecurrenceFromRrule(CalendarSyncAdapter adapter, String rrule) in testSingleRecurrenceFromRrule() argument
719 EasCalendarSyncParser parser = adapter.new EasCalendarSyncParser( in testSingleRecurrenceFromRrule()
720 new ByteArrayInputStream(s.toByteArray()), adapter); in testSingleRecurrenceFromRrule()
732 CalendarSyncAdapter adapter = getTestSyncAdapter(CalendarSyncAdapter.class); in testRecurrenceFromRrule() local
[all …]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java33 import com.android.exchange.adapter.CalendarSyncAdapter;
34 import com.android.exchange.adapter.CalendarSyncAdapter.EasCalendarSyncParser;
35 import com.android.exchange.adapter.Parser;
36 import com.android.exchange.adapter.Serializer;
37 import com.android.exchange.adapter.SyncAdapterTestCase;
38 import com.android.exchange.adapter.Tags;
704 private void testSingleRecurrenceFromRrule(CalendarSyncAdapter adapter, String rrule) in testSingleRecurrenceFromRrule() argument
709 EasCalendarSyncParser parser = adapter.new EasCalendarSyncParser( in testSingleRecurrenceFromRrule()
710 new ByteArrayInputStream(s.toByteArray()), adapter); in testSingleRecurrenceFromRrule()
722 CalendarSyncAdapter adapter = getTestSyncAdapter(CalendarSyncAdapter.class); in testRecurrenceFromRrule() local
[all …]
/packages/apps/Exchange/exchange2/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/Browser/src/com/android/browser/view/
DBookmarkExpandableView.java104 public void setAdapter(ExpandableListAdapter adapter) { in setAdapter() argument
119 public void addAccount(String accountName, BrowserBookmarksAdapter adapter, in addAccount() argument
125 if (existing != adapter) { in addAccount()
129 mAdapter.mChildren.add(indexOf, adapter); in addAccount()
130 adapter.registerDataSetObserver(mAdapter.mObserver); in addAccount()
134 mAdapter.mChildren.add(adapter); in addAccount()
135 adapter.registerDataSetObserver(mAdapter.mObserver); in addAccount()
353 BrowserBookmarksAdapter adapter = mChildren.get(groupPosition); in getChildrenCount() local
354 return (int) Math.ceil(adapter.getCount() / (float)mRowCount); in getChildrenCount()
/packages/apps/Settings/src/com/android/settings/
DZonePicker.java103 final SimpleAdapter adapter = new SimpleAdapter(context, in constructTimezoneAdapter() local
109 return adapter; in constructTimezoneAdapter()
122 public static int getTimeZoneIndex(SimpleAdapter adapter, TimeZone tz) { in getTimeZoneIndex() argument
124 final int listSize = adapter.getCount(); in getTimeZoneIndex()
127 final HashMap<?,?> map = (HashMap<?,?>)adapter.getItem(i); in getTimeZoneIndex()
210 final SimpleAdapter adapter = in setSorting() local
212 setListAdapter(adapter); in setSorting()
214 final int defaultIndex = getTimeZoneIndex(adapter, TimeZone.getDefault()); in setSorting()
/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()

12345678