/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | LocalBluetoothAdapter.java | 41 private final BluetoothAdapter mAdapter; field in LocalBluetoothAdapter 54 mAdapter = adapter; in LocalBluetoothAdapter() 81 mAdapter.cancelDiscovery(); in cancelDiscovery() 85 return mAdapter.enable(); in enable() 89 return mAdapter.disable(); in disable() 94 mAdapter.getProfileProxy(context, listener, profile); in getProfileProxy() 98 return mAdapter.getBondedDevices(); in getBondedDevices() 102 return mAdapter.getName(); in getName() 106 return mAdapter.getScanMode(); in getScanMode() 110 return mAdapter.getState(); in getState() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactEntryListFragment.java | 115 private T mAdapter; field in ContactEntryListFragment 196 if (mAdapter != null) { in setEnabled() 200 mAdapter.clearPartitions(); in setEnabled() 219 return mAdapter; in getAdapter() 302 if (mAdapter == null) { in startLoading() 308 int partitionCount = mAdapter.getPartitionCount(); in startLoading() 310 Partition partition = mAdapter.getPartition(i); in startLoading() 331 mAdapter.configureDirectoryLoader(loader); in onCreateLoader() 338 mAdapter.configureLoader(loader, directoryId); in onCreateLoader() 348 DirectoryPartition partition = (DirectoryPartition)mAdapter.getPartition(partitionIndex); in startLoadingDirectoryPartition() [all …]
|
D | ContactTileListFragment.java | 57 private ContactTileAdapter mAdapter; field in ContactTileListFragment 71 mAdapter = new ContactTileAdapter(activity, mAdapterListener, in onAttach() 73 mAdapter.setPhotoLoader(ContactPhotoManager.getInstance(activity)); in onAttach() 91 mListView.setAdapter(mAdapter); in inflateAndSetupView() 126 return mAdapter.getNumFrequents() > 0; in internalHasFrequents() 130 mAdapter.setColumnCount(columnCount); in setColumnCount() 135 mAdapter.setDisplayType(mDisplayType); in setDisplayType() 139 mAdapter.enableQuickContact(enableQuickContact); in enableQuickContact() 164 mAdapter.setContactCursor(data); 226 return getView().getWidth() / mAdapter.getColumnCount();
|
/packages/apps/Contacts/tests/src/com/android/contacts/calllog/ |
D | CallLogAdapterTest.java | 41 private TestCallLogAdapter mAdapter; field in CallLogAdapterTest 66 mAdapter = new TestCallLogAdapter(getContext(), fakeCallFetcher, fakeContactInfoHelper); in setUp() 77 mAdapter = null; in tearDown() 87 mAdapter.bindStandAloneView(mView, getContext(), mCursor); in testBindView_NoCallLogCacheNorMemoryCache_EnqueueRequest() 90 assertEquals(1, mAdapter.requests.size()); in testBindView_NoCallLogCacheNorMemoryCache_EnqueueRequest() 92 TestCallLogAdapter.Request request = mAdapter.requests.get(0); in testBindView_NoCallLogCacheNorMemoryCache_EnqueueRequest() 105 mAdapter.bindStandAloneView(mView, getContext(), mCursor); in testBindView_CallLogCacheButNoMemoryCache_EnqueueRequest() 108 assertEquals(1, mAdapter.requests.size()); in testBindView_CallLogCacheButNoMemoryCache_EnqueueRequest() 110 TestCallLogAdapter.Request request = mAdapter.requests.get(0); in testBindView_CallLogCacheButNoMemoryCache_EnqueueRequest() 120 mAdapter.injectContactInfoForTest(TEST_NUMBER, TEST_COUNTRY_ISO, createContactInfo()); in testBindView_NoCallLogButMemoryCache_EnqueueRequest() [all …]
|
D | CallLogFragmentTest.java | 82 private CallLogAdapter mAdapter; field in CallLogFragmentTest 124 mAdapter = mFragment.getAdapter(); in setUp() 127 mAdapter.disableRequestProcessingForTest(); in setUp() 128 mAdapter.stopRequestProcessing(); in setUp() 171 View view = mAdapter.newGroupView(getActivity(), mParentView); in testCallAndGroupViews_GroupView() 172 mAdapter.bindGroupView(view, getActivity(), mCursor, 3, false); in testCallAndGroupViews_GroupView() 180 View view = mAdapter.newStandAloneView(getActivity(), mParentView); in testCallAndGroupViews_StandAloneView() 181 mAdapter.bindStandAloneView(view, getActivity(), mCursor); in testCallAndGroupViews_StandAloneView() 189 View view = mAdapter.newChildView(getActivity(), mParentView); in testCallAndGroupViews_ChildView() 190 mAdapter.bindChildView(view, getActivity(), mCursor); in testCallAndGroupViews_ChildView() [all …]
|
/packages/apps/Browser/src/com/android/browser/view/ |
D | BookmarkExpandableView.java | 51 private BookmarkAccountAdapter mAdapter; field in BookmarkExpandableView 84 mAdapter = new BookmarkAccountAdapter(mContext); in init() 85 super.setAdapter(mAdapter); in init() 93 mAdapter.measureChildren(width); in onMeasure() 94 setPadding(mAdapter.mRowPadding, 0, mAdapter.mRowPadding, 0); in onMeasure() 99 mAdapter.measureChildren(getMeasuredWidth()); in onMeasure() 116 mAdapter.clear(); in clearAccounts() 122 int indexOf = mAdapter.mGroups.indexOf(accountName); in addAccount() 124 BrowserBookmarksAdapter existing = mAdapter.mChildren.get(indexOf); in addAccount() 126 existing.unregisterDataSetObserver(mAdapter.mObserver); in addAccount() [all …]
|
D | BasePieView.java | 32 protected Adapter mAdapter; field in BasePieView 54 mAdapter = adapter; in setAdapter() 56 if (mAdapter != null) { in setAdapter() 57 mAdapter.unregisterDataSetObserver(mObserver); in setAdapter() 73 mAdapter.registerDataSetObserver(mObserver); in setAdapter() 83 return mAdapter; in getAdapter() 87 if (mAdapter != null) { in buildViews() 88 final int n = mAdapter.getCount(); in buildViews() 97 View view = mAdapter.getView(i, null, null); in buildViews()
|
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
D | OverlayTitleTemplatePicker.java | 34 private OverlaysAdapter mAdapter; field in OverlayTitleTemplatePicker 43 mAdapter = new OverlaysAdapter(this, getListView()); in onCreate() 44 setListAdapter(mAdapter); in onCreate() 51 if (mAdapter != null) { in onPause() 52 mAdapter.onPause(); in onPause() 60 if (mAdapter != null) { in onDestroy() 61 mAdapter.onDestroy(); in onDestroy() 69 final int overlayType = ((OverlayType) mAdapter.getItem(position)).getType(); in onListItemClick()
|
D | TransitionsActivity.java | 50 private TransitionsAdapter mAdapter; field in TransitionsActivity 82 mAdapter = new TransitionsAdapter(this, getListView()); in onCreate() 83 setListAdapter(mAdapter); in onCreate() 88 final TransitionType[] transitions = mAdapter.getTransitions(); in onCreate() 102 if (mAdapter != null) { in onPause() 103 mAdapter.onPause(); in onPause() 111 if (mAdapter != null) { in onDestroy() 112 mAdapter.onDestroy(); in onDestroy() 113 mAdapter = null; in onDestroy() 128 ((TransitionType)mAdapter.getItem(position)).getType()); in onListItemClick()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | BaseSuggestionView.java | 40 private SuggestionsAdapter<?> mAdapter; field in BaseSuggestionView 75 mAdapter = adapter; in bindAdapter() 103 if (mAdapter != null) { in onSuggestionClicked() 104 mAdapter.onSuggestionClicked(mSuggestionId); in onSuggestionClicked() 109 if (mAdapter != null) { in onSuggestionQuickContactClicked() 110 mAdapter.onSuggestionQuickContactClicked(mSuggestionId); in onSuggestionQuickContactClicked() 115 if (mAdapter != null) { in onRemoveFromHistoryClicked() 116 mAdapter.onSuggestionRemoveFromHistoryClicked(mSuggestionId); in onRemoveFromHistoryClicked() 121 if (mAdapter != null) { in onSuggestionQueryRefineClicked() 122 mAdapter.onSuggestionQueryRefineClicked(mSuggestionId); in onSuggestionQueryRefineClicked()
|
D | SuggestionsListAdapter.java | 32 private Adapter mAdapter; field in SuggestionsListAdapter 36 mAdapter = new Adapter(); in SuggestionsListAdapter() 41 return mAdapter.getCount() == 0; in isEmpty() 56 return mAdapter; in getListAdapter() 61 mAdapter.notifyDataSetChanged(); in notifyDataSetChanged() 66 mAdapter.notifyDataSetInvalidated(); in notifyDataSetInvalidated()
|
D | ClusteredSuggestionsAdapter.java | 48 private final Adapter mAdapter; field in ClusteredSuggestionsAdapter 54 mAdapter = new Adapter(); in ClusteredSuggestionsAdapter() 61 return mAdapter.getGroupCount() == 0; in isEmpty() 71 return mAdapter.getChildById(suggestionId); in getSuggestion() 76 return mAdapter; in getListAdapter() 81 mAdapter.buildCorpusGroups(); in notifyDataSetChanged() 82 mAdapter.notifyDataSetChanged(); in notifyDataSetChanged() 87 mAdapter.buildCorpusGroups(); in notifyDataSetInvalidated() 88 mAdapter.notifyDataSetInvalidated(); in notifyDataSetInvalidated()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | ClockFragment.java | 52 private WorldClockAdapter mAdapter; field in ClockFragment 70 if (mAdapter != null) { 72 if (changed && (mAdapter.hasHomeCity() != mAdapter.needHomeCity())) { 73 mAdapter.reloadData(context); 75 mAdapter.notifyDataSetChanged(); 79 mAdapter.loadCitiesDb(context); 80 mAdapter.notifyDataSetChanged(); 119 mAdapter = new WorldClockAdapter(getActivity()); in onCreateView() 120 mList.setAdapter(mAdapter); in onCreateView() 178 if (mAdapter != null) { in onResume() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/detail/ |
D | StreamItemAdapterTest.java | 39 private StreamItemAdapter mAdapter; field in StreamItemAdapterTest 48 mAdapter = new StreamItemAdapter(getContext(), mListener, mPhotoListener); in setUp() 53 mAdapter = null; in tearDown() 59 mAdapter.setStreamItems(createStreamItemList(0)); in testGetCount_Empty() 61 assertEquals(0, mAdapter.getCount()); in testGetCount_Empty() 65 mAdapter.setStreamItems(createStreamItemList(3)); in testGetCount_NonEmpty() 67 assertEquals(4, mAdapter.getCount()); in testGetCount_NonEmpty() 72 mView = mAdapter.getView(0, null, null); in testGetView_Header()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | MiscFilesHandler.java | 55 private MemoryMearurementAdapter mAdapter; field in MiscFilesHandler 65 mAdapter = new MemoryMearurementAdapter(this); in onCreate() 72 setListAdapter(mAdapter); in onCreate() 81 mDataCount = mAdapter.getCount(); in ModeCallback() 113 Log.i(TAG, "deleting: " + mAdapter.getItem(i)); in onActionItemClicked() 116 File file = new File(mAdapter.getItem(i).mFileName); in onActionItemClicked() 122 toRemove.add(mAdapter.getItem(i)); in onActionItemClicked() 124 mAdapter.removeAll(toRemove); in onActionItemClicked() 125 mAdapter.notifyDataSetChanged(); in onActionItemClicked() 126 mDataCount = mAdapter.getCount(); in onActionItemClicked() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
D | SelectVisibleCalendarsFragment.java | 65 private SelectCalendarsSimpleAdapter mAdapter; field in SelectVisibleCalendarsFragment 84 mAdapter.changeCursor(cursor); in onAttach() 94 mAdapter.changeCursor(null); in onDetach() 128 mAdapter = new SelectCalendarsSimpleAdapter(mContext, mCalendarItemLayout, null); in onActivityCreated() 129 mList.setAdapter(mAdapter); in onActivityCreated() 134 if (mAdapter == null || mAdapter.getCount() <= position) { in onItemClick() 154 Uri uri = ContentUris.withAppendedId(Calendars.CONTENT_URI, mAdapter.getItemId(position)); in toggleVisibility() 157 int visibility = mAdapter.getVisible(position)^1; in toggleVisibility() 160 mAdapter.setVisible(position, visibility); in toggleVisibility()
|
D | SelectSyncedCalendarsMultiAccountActivity.java | 42 private SelectSyncedCalendarsMultiAccountAdapter mAdapter; field in SelectSyncedCalendarsMultiAccountActivity 67 mAdapter = new SelectSyncedCalendarsMultiAccountAdapter(findViewById(R.id.calendars) in onCreate() 69 mList.setAdapter(mAdapter); in onCreate() 87 mAdapter.doSaveAction(); in onClick() 97 if (mAdapter != null) { in onResume() 98 mAdapter.startRefreshStopDelay(); in onResume() 105 mAdapter.cancelRefreshStopDelay(); in onPause()
|
/packages/apps/Music/src/com/android/music/ |
D | QueryBrowserActivity.java | 68 private QueryListAdapter mAdapter; field in QueryBrowserActivity 83 mAdapter = (QueryListAdapter) getLastNonConfigurationInstance(); in onCreate() 156 if (mAdapter == null) { in onServiceConnected() 157 mAdapter = new QueryListAdapter( in onServiceConnected() 164 setListAdapter(mAdapter); in onServiceConnected() 166 getQueryCursor(mAdapter.getQueryHandler(), null); in onServiceConnected() 172 mAdapter.setActivity(this); in onServiceConnected() 173 setListAdapter(mAdapter); in onServiceConnected() 174 mQueryCursor = mAdapter.getCursor(); in onServiceConnected() 178 getQueryCursor(mAdapter.getQueryHandler(), mFilterString); in onServiceConnected() [all …]
|
D | PlaylistBrowserActivity.java | 71 private PlaylistListAdapter mAdapter; field in PlaylistBrowserActivity 146 mAdapter = (PlaylistListAdapter) getLastNonConfigurationInstance(); in onCreate() 147 if (mAdapter == null) { in onCreate() 149 mAdapter = new PlaylistListAdapter( in onCreate() 156 setListAdapter(mAdapter); in onCreate() 158 getPlaylistCursor(mAdapter.getQueryHandler(), null); in onCreate() 160 mAdapter.setActivity(this); in onCreate() 161 setListAdapter(mAdapter); in onCreate() 162 mPlaylistCursor = mAdapter.getCursor(); in onCreate() 173 getPlaylistCursor(mAdapter.getQueryHandler(), null); in onCreate() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerFragment.java | 76 private TimersListAdapter mAdapter; field in TimerFragment 359 for (int i = 0; i < mAdapter.getCount(); i ++) { 360 TimerObj t = (TimerObj) mAdapter.getItem(i); 446 if (mAdapter.getCount() != 0) { in onCreateView() 464 mAdapter.addTimer(t); in onCreateView() 467 mTimersList.setSelection(mAdapter.findTimerPositionById(t.mTimerId)); in onCreateView() 505 mAdapter = createAdapter(getActivity(), mPrefs); in onResume() 506 mAdapter.onRestoreInstanceState(null); in onResume() 515 TimerObj t = Timers.findTimer(mAdapter.mTimers, timerId); in onResume() 531 mTimersList.setAdapter(mAdapter); in onResume() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | GroupBrowseListFragment.java | 88 private GroupBrowseListAdapter mAdapter; field in GroupBrowseListFragment 114 mAdapter = new GroupBrowseListAdapter(mContext); in onCreateView() 115 mAdapter.setSelectionVisible(mSelectionVisible); in onCreateView() 116 mAdapter.setSelectedGroup(mSelectedGroupUri); in onCreateView() 121 mListView.setAdapter(mAdapter); in onCreateView() 219 mAdapter.setCursor(mGroupListCursor); in bindGroupList() 226 mSelectedGroupUri = mAdapter.getSelectedGroup(); in bindGroupList() 238 if (mAdapter != null) { in setSelectionVisible() 239 mAdapter.setSelectionVisible(mSelectionVisible); in setSelectionVisible() 245 mAdapter.setSelectedGroup(groupUri); in setSelectedGroup() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | MonthByWeekFragment.java | 105 if (mAdapter != null) { 106 mAdapter.refresh(); 214 if (mAdapter != null) { in onAttach() 215 mAdapter.setSelectedDay(mSelectedDay); in onAttach() 255 if (mAdapter == null) { in setUpAdapter() 256 mAdapter = new MonthByWeekAdapter(getActivity(), weekParams); in setUpAdapter() 257 mAdapter.registerDataSetObserver(mObserver); in setUpAdapter() 259 mAdapter.updateParams(weekParams); in setUpAdapter() 261 mAdapter.notifyDataSetChanged(); in setUpAdapter() 292 mAdapter.setListView(mListView); in onActivityCreated() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | GroupMembershipView.java | 135 private GroupMembershipAdapter<GroupSelectionItem> mAdapter; field in GroupMembershipView 188 int position = mAdapter.getCount() - 2; in setGroupMetaData() 288 mAdapter = new GroupMembershipAdapter<GroupSelectionItem>( in onClick() 303 mAdapter.add(new GroupSelectionItem(groupId, title, checked)); in onClick() 308 mAdapter.add(new GroupSelectionItem(CREATE_NEW_GROUP_GROUP_ID, in onClick() 313 mPopup.setAdapter(mAdapter); in onClick() 321 int count = mAdapter.getCount(); in onClick() 323 listView.setItemChecked(i, mAdapter.getItem(i).isChecked()); in onClick() 341 int count = mAdapter.getCount(); in onItemClick() 350 mAdapter.getItem(i).setChecked(list.isItemChecked(i)); in onItemClick() [all …]
|
/packages/apps/Browser/src/com/android/browser/ |
D | BrowserHistoryPage.java | 75 HistoryAdapter mAdapter; field in BrowserHistoryPage 144 mAdapter.getGroupView(position, false, null, null), in selectGroup() 149 if (mAdapter.mMostVisited != null && mAdapter.mHistoryCursor != null) { in checkIfEmpty() 151 if (mAdapter.isEmpty()) { in checkIfEmpty() 165 mAdapter.changeCursor(data); in onLoadFinished() 166 if (!mAdapter.isEmpty() && mGroupList != null in onLoadFinished() 176 mAdapter.changeMostVisitedCursor(data); in onLoadFinished() 209 mAdapter = new HistoryAdapter(getActivity()); in onCreateView() 226 mHistoryList.setAdapter(mAdapter); in inflateSinglePane() 240 mGroupList.setAdapter(new HistoryGroupWrapper(mAdapter)); in inflateTwoPane() [all …]
|
D | BrowserSnapshotPage.java | 80 SnapshotAdapter mAdapter; field in BrowserSnapshotPage 106 if (mAdapter != null) { in onDestroyView() 107 mAdapter.changeCursor(null); in onDestroyView() 108 mAdapter = null; in onDestroyView() 135 if (mAdapter == null) { in onLoadFinished() 136 mAdapter = new SnapshotAdapter(getActivity(), data); in onLoadFinished() 137 mGrid.setAdapter(mAdapter); in onLoadFinished() 139 mAdapter.changeCursor(data); in onLoadFinished() 142 mAdapter.animateIn(mAnimateId); in onLoadFinished() 146 boolean empty = mAdapter.isEmpty(); in onLoadFinished() [all …]
|