Home
last modified time | relevance | path

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

123456789

/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/UnifiedEmail/src/com/android/mail/ui/
DSwipeableListView.java222 final AnimatedAdapter adapter = getAnimatedAdapter(); in commitDestructiveActions() local
223 if (adapter != null) { in commitDestructiveActions()
224 adapter.commitLeaveBehindItems(animate); in commitDestructiveActions()
235 final AnimatedAdapter adapter = getAnimatedAdapter(); in dismissChild() local
236 if (adapter == null) { in dismissChild()
239 adapter.setupLeaveBehind(conv, undoOp, conv.position, target.getHeight()); in dismissChild()
240 ConversationCursor cc = (ConversationCursor) adapter.getCursor(); in dismissChild()
270 adapter.notifyDataSetChanged(); in dismissChild()
299 final AnimatedAdapter adapter = getAnimatedAdapter(); in onDragCancelled() local
300 if (adapter != null) { in onDragCancelled()
[all …]
DSeparatedFolderListAdapter.java34 public void addSection(FolderSelectorAdapter adapter) { in addSection() argument
35 mSections.add(adapter); in addSection()
40 for (FolderSelectorAdapter adapter : mSections) { in getItem()
41 int size = adapter.getCount(); in getItem()
45 return adapter.getItem(position); in getItem()
57 for (FolderSelectorAdapter adapter : mSections) { in getCount()
58 total += adapter.getCount(); in getCount()
67 for (Adapter adapter : mSections) in getViewTypeCount()
68 total += adapter.getViewTypeCount(); in getViewTypeCount()
75 for (FolderSelectorAdapter adapter : mSections) { in getItemViewType()
[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/ContactsCommon/src/com/android/contacts/common/list/
DPhoneNumberPickerFragment.java208 final PhoneNumberListAdapter adapter = (PhoneNumberListAdapter) getAdapter(); in getPhoneNumber() local
209 return adapter.getPhoneNumber(position); in getPhoneNumber()
213 final PhoneNumberListAdapter adapter = (PhoneNumberListAdapter) getAdapter(); in getPhoneUri() local
214 return adapter.getDataUri(position); in getPhoneUri()
241 PhoneNumberListAdapter adapter = new PhoneNumberListAdapter(getActivity()); in createListAdapter() local
242 adapter.setDisplayPhotos(true); in createListAdapter()
243 adapter.setUseCallableUri(mUseCallableUri); in createListAdapter()
244 return adapter; in createListAdapter()
251 final ContactEntryListAdapter adapter = getAdapter(); in configureAdapter() local
252 if (adapter == null) { in configureAdapter()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMergedAdapter.java51 public LocalAdapterPosition(T adapter, int offset) { in LocalAdapterPosition() argument
52 mAdapter = adapter; in LocalAdapterPosition()
68 for (T adapter : mAdapters) { in setAdapters()
69 adapter.unregisterDataSetObserver(mObserver); in setAdapters()
75 for (T adapter : mAdapters) { in setAdapters()
76 adapter.registerDataSetObserver(mObserver); in setAdapters()
91 for (T adapter : mAdapters) { in getCount()
92 count += adapter.getCount(); in getCount()
140 for (T adapter : mAdapters) { in getViewTypeCount()
141 count += adapter.getViewTypeCount(); in getViewTypeCount()
[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 …]
DJoinContactListFragment.java64 JoinContactListAdapter adapter = getAdapter();
65 if (adapter != null) {
66 adapter.configureLoader(loader, 0);
120 JoinContactListAdapter adapter = getAdapter(); in onContactListLoaded() local
121 adapter.setSuggestionsCursor(suggestionsCursor); in onContactListLoaded()
139 JoinContactListAdapter adapter = new JoinContactListAdapter(getActivity()); in createListAdapter() local
140 adapter.setPhotoPosition(ContactListItemView.getDefaultPhotoPosition(true /* opposite */)); in createListAdapter()
141 return adapter; in createListAdapter()
147 JoinContactListAdapter adapter = getAdapter(); in configureAdapter() local
148 adapter.setTargetContactId(mTargetContactId); in configureAdapter()
DDefaultContactBrowseListFragment.java94 DefaultContactListAdapter adapter = new DefaultContactListAdapter(getContext()); in createListAdapter() local
95 adapter.setSectionHeaderDisplayEnabled(isSectionHeaderDisplayEnabled()); in createListAdapter()
97 adapter.setDisplayPhotos(showPhoto); in createListAdapter()
100 adapter.setPhotoPosition(ContactListItemView.getDefaultPhotoPosition(reverse)); in createListAdapter()
102 return adapter; in createListAdapter()
217 ContactListAdapter adapter = getAdapter(); in showCount() local
218 if (adapter == null) { in showCount()
223 if (TextUtils.isEmpty(getQueryString()) || !adapter.areAllPartitionsEmpty()) { in showCount()
228 if (adapter.isLoading()) { in showCount()
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/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/Dialer/src/com/android/dialer/list/
DSearchFragment.java78 final ContactEntryListAdapter adapter = getAdapter(); in setSearchMode() local
79 if (adapter != null) { in setSearchMode()
80 adapter.setHasHeader(0, false); in setSearchMode()
86 DialerPhoneNumberListAdapter adapter = new DialerPhoneNumberListAdapter(getActivity()); in createListAdapter() local
87 adapter.setDisplayPhotos(true); in createListAdapter()
88 adapter.setUseCallableUri(super.usesCallableUri()); in createListAdapter()
89 return adapter; in createListAdapter()
94 final DialerPhoneNumberListAdapter adapter = (DialerPhoneNumberListAdapter) getAdapter(); in onItemClick() local
95 final int shortcutType = adapter.getShortcutTypeFromPosition(position); in onItemClick()
106 final String number = adapter.getFormattedQueryString(); in onItemClick()
DSmartDialSearchFragment.java38 SmartDialNumberListAdapter adapter = new SmartDialNumberListAdapter(getActivity()); in createListAdapter() local
39 adapter.setUseCallableUri(super.usesCallableUri()); in createListAdapter()
40 adapter.setQuickContactEnabled(true); in createListAdapter()
43 adapter.setShortcutEnabled(SmartDialNumberListAdapter.SHORTCUT_DIRECT_CALL, false); in createListAdapter()
44 return adapter; in createListAdapter()
56 final SmartDialNumberListAdapter adapter = (SmartDialNumberListAdapter) getAdapter(); in onCreateLoader() local
58 adapter.configureLoader(loader); in onCreateLoader()
70 final SmartDialNumberListAdapter adapter = (SmartDialNumberListAdapter) getAdapter(); in getPhoneUri() local
71 return adapter.getDataUri(position); in getPhoneUri()
DSmartDialNumberPickerFragment.java42 SmartDialNumberListAdapter adapter = new SmartDialNumberListAdapter(getActivity()); in createListAdapter() local
43 adapter.setDisplayPhotos(true); in createListAdapter()
44 adapter.setUseCallableUri(super.usesCallableUri()); in createListAdapter()
45 return adapter; in createListAdapter()
59 final SmartDialNumberListAdapter adapter = (SmartDialNumberListAdapter) getAdapter(); in onCreateLoader() local
61 adapter.configureLoader(loader); in onCreateLoader()
73 final SmartDialNumberListAdapter adapter = (SmartDialNumberListAdapter) getAdapter(); in getPhoneUri() local
74 return adapter.getDataUri(position); in getPhoneUri()
DRegularSearchFragment.java49 RegularSearchListAdapter adapter = new RegularSearchListAdapter(getActivity()); in createListAdapter() local
50 adapter.setDisplayPhotos(true); in createListAdapter()
51 adapter.setUseCallableUri(usesCallableUri()); in createListAdapter()
52 return adapter; in createListAdapter()
58 final RegularSearchListAdapter adapter = in cacheContactInfo() local
61 adapter.getContactInfo(mCachedNumberLookupService, position)); in cacheContactInfo()
/packages/apps/Exchange/src/com/android/exchange/adapter/
DAbstractSyncParser.java18 package com.android.exchange.adapter;
61 public AbstractSyncParser(InputStream in, AbstractSyncAdapter adapter) throws IOException { in AbstractSyncParser() argument
63 init(adapter); in AbstractSyncParser()
66 public AbstractSyncParser(Parser p, AbstractSyncAdapter adapter) throws IOException { in AbstractSyncParser() argument
68 init(adapter); in AbstractSyncParser()
77 private void init(final AbstractSyncAdapter adapter) { in init() argument
78 init(adapter.mContext, adapter.mContext.getContentResolver(), adapter.mMailbox, in init()
79 adapter.mAccount); in init()
/packages/apps/Camera2/src/com/android/camera/data/
DLocalMediaData.java206 LocalDataAdapter adapter) { in fillImageView() argument
211 ctx.getContentResolver(), adapter); in fillImageView()
219 LocalDataAdapter adapter) { in getView() argument
221 decodeWidth, decodeHeight, placeHolder, adapter); in getView()
285 ContentResolver resolver, LocalDataAdapter adapter); in getBitmapLoadTask() argument
471 ContentResolver resolver, LocalDataAdapter adapter) { in getBitmapLoadTask() argument
473 resolver, adapter); in getBitmapLoadTask()
486 LocalDataAdapter adapter) { in PhotoBitmapLoadTask() argument
491 mAdapter = adapter; in PhotoBitmapLoadTask()
562 public boolean rotate90Degrees(Context context, LocalDataAdapter adapter, in rotate90Degrees() argument
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchActivity.java373 protected SuggestionPosition getCurrentSuggestions(SuggestionsAdapter<?> adapter, long id) { in getCurrentSuggestions() argument
374 SuggestionPosition pos = adapter.getSuggestion(id); in getCurrentSuggestions()
406 private boolean launchSuggestion(SuggestionsAdapter<?> adapter, long id) { in launchSuggestion() argument
407 SuggestionPosition suggestion = getCurrentSuggestions(adapter, id); in launchSuggestion()
429 protected void refineSuggestion(SuggestionsAdapter<?> adapter, long id) { in refineSuggestion() argument
431 SuggestionPosition suggestion = getCurrentSuggestions(adapter, id); in refineSuggestion()
492 public void onSuggestionClicked(SuggestionsAdapter<?> adapter, long id) { in onSuggestionClicked() argument
493 launchSuggestion(adapter, id); in onSuggestionClicked()
497 public void onSuggestionQueryRefineClicked(SuggestionsAdapter<?> adapter, long id) { in onSuggestionQueryRefineClicked() argument
498 refineSuggestion(adapter, id); in onSuggestionQueryRefineClicked()
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
DFolderSyncParserTests.java17 package com.android.exchange.adapter;
78 EmailSyncAdapter adapter = new EmailSyncAdapter(service); in brokentestSaveAndRestoreMailboxSyncOptions() local
79 FolderSyncParser parser = new FolderSyncParser(getTestInputStream(), adapter); in brokentestSaveAndRestoreMailboxSyncOptions()
160 public MockFolderSyncParser(String fileName, AbstractSyncAdapter adapter) in MockFolderSyncParser() argument
162 super(null, adapter); in MockFolderSyncParser()
303 EmailSyncAdapter adapter = new EmailSyncAdapter(service); in testComplexFolderListParse() local
304 FolderSyncParser parser = new MockFolderSyncParser(fileName, adapter); in testComplexFolderListParse()
359 EmailSyncAdapter adapter = new EmailSyncAdapter(service); in brokentestComplexFolderListParse3() local
360 FolderSyncParser parser = new MockFolderSyncParser("FolderSyncParserTest3.txt", adapter); in brokentestComplexFolderListParse3()
/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()
356 BrowserBookmarksAdapter adapter = mChildren.get(groupPosition); in getChildrenCount() local
357 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()

123456789