/packages/apps/Contacts/tests/src/com/android/contacts/widget/ |
D | CompositeListAdapterTest.java | 112 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/ |
D | PostalAddressPickerFragment.java | 47 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 …]
|
D | PhoneNumberPickerFragment.java | 174 PhoneNumberListAdapter adapter = (PhoneNumberListAdapter) getAdapter(); in onItemClick() local 175 phoneUri = adapter.getDataUri(position); in onItemClick() 178 LegacyPhoneNumberListAdapter adapter = (LegacyPhoneNumberListAdapter) getAdapter(); in onItemClick() local 179 phoneUri = adapter.getPhoneUri(position); in onItemClick() 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() 219 LegacyPhoneNumberListAdapter adapter = new LegacyPhoneNumberListAdapter(getActivity()); in createListAdapter() local 220 adapter.setDisplayPhotos(true); in createListAdapter() [all …]
|
D | ContactPickerFragment.java | 152 DefaultContactListAdapter adapter = new DefaultContactListAdapter(getActivity()); in createListAdapter() local 153 adapter.setFilter(ContactListFilter.createFilterWithType( in createListAdapter() 155 adapter.setSectionHeaderDisplayEnabled(true); in createListAdapter() 156 adapter.setDisplayPhotos(true); in createListAdapter() 157 adapter.setQuickContactEnabled(false); in createListAdapter() 158 return adapter; in createListAdapter() 160 LegacyContactListAdapter adapter = new LegacyContactListAdapter(getActivity()); in createListAdapter() local 161 adapter.setSectionHeaderDisplayEnabled(false); in createListAdapter() 162 adapter.setDisplayPhotos(false); in createListAdapter() 163 return adapter; in createListAdapter() [all …]
|
D | EmailAddressPickerFragment.java | 44 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()
|
D | ContactBrowseListFragment.java | 356 ContactListAdapter adapter = getAdapter(); in setSelectedContactUri() local 357 if (adapter != null) { in setSelectedContactUri() 358 adapter.setSelectedContact(mSelectedContactDirectoryId, in setSelectedContactUri() 402 ContactListAdapter adapter = getAdapter(); in configureAdapter() local 403 if (adapter == null) { in configureAdapter() 409 adapter.setFilter(mFilter); in configureAdapter() 412 adapter.setSelectedContact( in configureAdapter() 418 adapter.setIncludeProfile(!searchMode); in configureAdapter() 447 ContactListAdapter adapter = getAdapter(); in checkSelection() local 448 if (adapter == null) { in checkSelection() [all …]
|
D | JoinContactListFragment.java | 62 JoinContactListAdapter adapter = getAdapter(); 63 if (adapter != null) { 64 adapter.configureLoader(loader, 0); 118 JoinContactListAdapter adapter = getAdapter(); in onContactListLoaded() local 119 adapter.setSuggestionsCursor(suggestionsCursor); in onContactListLoaded() 143 JoinContactListAdapter adapter = getAdapter(); in configureAdapter() local 144 adapter.setTargetContactId(mTargetContactId); in configureAdapter()
|
D | DefaultContactBrowseListFragment.java | 87 DefaultContactListAdapter adapter = new DefaultContactListAdapter(getContext()); in createListAdapter() local 88 adapter.setSectionHeaderDisplayEnabled(isSectionHeaderDisplayEnabled()); in createListAdapter() 89 adapter.setDisplayPhotos(getResources().getBoolean(R.bool.config_browse_list_show_images)); in createListAdapter() 90 return adapter; in createListAdapter() 205 ContactListAdapter adapter = getAdapter(); in showCount() local 206 if (adapter == null) { in showCount() 211 if (TextUtils.isEmpty(getQueryString()) || !adapter.areAllPartitionsEmpty()) { in showCount() 216 if (adapter.isLoading()) { in showCount()
|
/packages/apps/Tag/canon/src/com/android/apps/tagcanon/ |
D | TagCanon.java | 133 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() 140 …adapter.add(new TagDescription("SmartPoster URL & text", MockNdefMessages.SMART_POSTER_URL_AND_TEX… in onCreate() 141 … adapter.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/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | ClusteredSuggestionsView.java | 36 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()
|
D | SuggestionClickListener.java | 31 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
|
D | SuggestionsView.java | 45 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/Browser/src/com/android/browser/ |
D | BrowserBookmarksPage.java | 127 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/Exchange/exchange2/src/com/android/exchange/adapter/ |
D | AbstractSyncParser.java | 18 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/ |
D | LocalBluetoothManager.java | 53 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()
|
D | LocalBluetoothAdapter.java | 53 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/ |
D | SearchActivity.java | 461 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 …]
|
D | CorpusSelectionDialog.java | 105 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/Exchange/tests/src/com/android/exchange/adapter/ |
D | CalendarSyncAdapterTests.java | 17 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 …]
|
D | SyncAdapterTestCase.java | 17 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/Exchange/exchange2/tests/src/com/android/exchange/adapter/ |
D | CalendarSyncAdapterTests.java | 17 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 …]
|
D | SyncAdapterTestCase.java | 17 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/Contacts/src/com/android/contacts/widget/ |
D | PinnedHeaderListDemoActivity.java | 103 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()
|
D | CompositeListAdapter.java | 75 /*package*/ void addAdapter(ListAdapter adapter) { in addAdapter() argument 91 adapter.registerDataSetObserver(mDataSetObserver); in addAdapter() 93 int count = adapter.getCount(); in addAdapter() 94 int viewTypeCount = adapter.getViewTypeCount(); in addAdapter() 96 mAdapters[mSize] = adapter; in addAdapter() 99 mAllItemsEnabled &= adapter.areAllItemsEnabled(); in addAdapter()
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | ImportExportDialogFragment.java | 82 final ArrayAdapter<Integer> adapter = new ArrayAdapter<Integer>(getActivity(), in onCreateDialog() local 97 adapter.add(R.string.import_from_sim); in onCreateDialog() 100 adapter.add(R.string.import_from_sdcard); in onCreateDialog() 104 adapter.add(R.string.export_to_sdcard); in onCreateDialog() 109 adapter.add(R.string.share_visible_contacts); in onCreateDialog() 118 final int resId = adapter.getItem(which); in onCreateDialog() 151 .setSingleChoiceItems(adapter, -1, clickListener) in onCreateDialog()
|