/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 | 116 private T mAdapter; field in ContactEntryListFragment 198 if (mAdapter != null) { in setEnabled() 202 mAdapter.clearPartitions(); in setEnabled() 221 return mAdapter; in getAdapter() 325 if (mAdapter == null) { in startLoading() 331 int partitionCount = mAdapter.getPartitionCount(); in startLoading() 333 Partition partition = mAdapter.getPartition(i); in startLoading() 354 mAdapter.configureDirectoryLoader(loader); in onCreateLoader() 361 mAdapter.configureLoader(loader, directoryId); in onCreateLoader() 371 DirectoryPartition partition = (DirectoryPartition)mAdapter.getPartition(partitionIndex); in startLoadingDirectoryPartition() [all …]
|
D | ContactTileListFragment.java | 52 private ContactTileAdapter mAdapter; field in ContactTileListFragment 64 mAdapter = new ContactTileAdapter(activity, mAdapterListener, in onAttach() 66 mAdapter.setPhotoLoader(ContactPhotoManager.getInstance(activity)); in onAttach() 78 mListView.setAdapter(mAdapter); in onCreateView() 91 mAdapter.setColumnCount(columnCount); in setColumnCount() 96 mAdapter.setDisplayType(mDisplayType); in setDisplayType() 100 mAdapter.enableQuickContact(enableQuickContact); in enableQuickContact() 125 mAdapter.setContactCursor(data);
|
/packages/apps/Contacts/tests/src/com/android/contacts/calllog/ |
D | CallLogAdapterTest.java | 42 private TestCallLogAdapter mAdapter; field in CallLogAdapterTest 67 mAdapter = new TestCallLogAdapter(getContext(), fakeCallFetcher, fakeContactInfoHelper, in setUp() 79 mAdapter = null; in tearDown() 89 mAdapter.bindStandAloneView(mView, getContext(), mCursor); in testBindView_NoCallLogCacheNorMemoryCache_EnqueueRequest() 92 assertEquals(1, mAdapter.requests.size()); in testBindView_NoCallLogCacheNorMemoryCache_EnqueueRequest() 94 TestCallLogAdapter.Request request = mAdapter.requests.get(0); in testBindView_NoCallLogCacheNorMemoryCache_EnqueueRequest() 107 mAdapter.bindStandAloneView(mView, getContext(), mCursor); in testBindView_CallLogCacheButNoMemoryCache_EnqueueRequest() 110 assertEquals(1, mAdapter.requests.size()); in testBindView_CallLogCacheButNoMemoryCache_EnqueueRequest() 112 TestCallLogAdapter.Request request = mAdapter.requests.get(0); in testBindView_CallLogCacheButNoMemoryCache_EnqueueRequest() 122 mAdapter.injectContactInfoForTest(TEST_NUMBER, createContactInfo()); in testBindView_NoCallLogButMemoryCache_EnqueueRequest() [all …]
|
/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 85 mAdapter = new TransitionsAdapter(this, getListView()); in onCreate() 86 setListAdapter(mAdapter); in onCreate() 91 final TransitionType[] transitions = mAdapter.getTransitions(); in onCreate() 108 if (mAdapter != null) { in onPause() 109 mAdapter.onPause(); in onPause() 120 if (mAdapter != null) { in onDestroy() 121 mAdapter.onDestroy(); in onDestroy() 142 ((TransitionType)mAdapter.getItem(position)).getType()); in onListItemClick() 150 mAdapter.onDestroy(); in onListItemClick() [all …]
|
/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/Contacts/tests/src/com/android/contacts/activities/ |
D | CallLogActivityTests.java | 85 private CallLogAdapter mAdapter; field in CallLogActivityTests 116 mAdapter = mFragment.getAdapter(); in setUp() 119 mAdapter.disableRequestProcessingForTest(); in setUp() 120 mAdapter.stopRequestProcessing(); in setUp() 163 View view = mAdapter.newGroupView(getActivity(), mParentView); in testCallAndGroupViews_GroupView() 164 mAdapter.bindGroupView(view, getActivity(), mCursor, 3, false); in testCallAndGroupViews_GroupView() 172 View view = mAdapter.newStandAloneView(getActivity(), mParentView); in testCallAndGroupViews_StandAloneView() 173 mAdapter.bindStandAloneView(view, getActivity(), mCursor); in testCallAndGroupViews_StandAloneView() 181 View view = mAdapter.newChildView(getActivity(), mParentView); in testCallAndGroupViews_ChildView() 182 mAdapter.bindChildView(view, getActivity(), mCursor); in testCallAndGroupViews_ChildView() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/detail/ |
D | StreamItemAdapterTest.java | 37 private StreamItemAdapter mAdapter; field in StreamItemAdapterTest 46 mAdapter = new StreamItemAdapter(getContext(), mListener, mPhotoListener); in setUp() 51 mAdapter = null; in tearDown() 57 mAdapter.setStreamItems(createStreamItemList(0)); in testGetCount_Empty() 59 assertEquals(0, mAdapter.getCount()); in testGetCount_Empty() 63 mAdapter.setStreamItems(createStreamItemList(3)); in testGetCount_NonEmpty() 65 assertEquals(5, mAdapter.getCount()); in testGetCount_NonEmpty() 70 mView = mAdapter.getView(0, null, null); in testGetView_Header()
|
/packages/apps/Browser/src/com/android/browser/view/ |
D | BookmarkExpandableView.java | 60 private BookmarkAccountAdapter mAdapter; field in BookmarkExpandableView 95 mAdapter = new BookmarkAccountAdapter(mContext); in init() 96 super.setAdapter(mAdapter); in init() 104 mAdapter.measureChildren(width); in onMeasure() 105 setPadding(mAdapter.mRowPadding, 0, mAdapter.mRowPadding, 0); in onMeasure() 110 mAdapter.measureChildren(getMeasuredWidth()); in onMeasure() 127 mAdapter.clear(); in clearAccounts() 133 int indexOf = mAdapter.mGroups.indexOf(accountName); in addAccount() 135 BrowserBookmarksAdapter existing = mAdapter.mChildren.get(indexOf); in addAccount() 137 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/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 65 mAdapter = new SelectSyncedCalendarsMultiAccountAdapter(findViewById(R.id.calendars) in onCreate() 67 mList.setAdapter(mAdapter); in onCreate() 86 mAdapter.doSaveAction(); in onClick() 99 if (mAdapter != null) { in onResume() 100 mAdapter.startRefreshStopDelay(); in onResume() 107 mAdapter.cancelRefreshStopDelay(); in onPause()
|
/packages/apps/Contacts/src/com/android/contacts/calllog/ |
D | CallLogFragment.java | 63 private CallLogAdapter mAdapter; field in CallLogFragment 98 mAdapter.setLoading(false); in onCallsFetched() 99 mAdapter.changeCursor(cursor); in onCallsFetched() 153 mAdapter = new CallLogAdapter(getActivity(), this, in onViewCreated() 155 setListAdapter(mAdapter); in onViewCreated() 204 mAdapter.stopRequestProcessing(); in onPause() 216 mAdapter.stopRequestProcessing(); in onDestroy() 217 mAdapter.changeCursor(null); in onDestroy() 230 mAdapter.setLoading(true); in startCallsQuery() 253 menu.findItem(R.id.delete_all).setEnabled(mAdapter != null && !mAdapter.isEmpty()); in onPrepareOptionsMenu() [all …]
|
/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/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/Contacts/src/com/android/contacts/group/ |
D | GroupBrowseListFragment.java | 90 private GroupBrowseListAdapter mAdapter; field in GroupBrowseListFragment 116 mAdapter = new GroupBrowseListAdapter(mContext); in onCreateView() 117 mAdapter.setSelectionVisible(mSelectionVisible); in onCreateView() 118 mAdapter.setSelectedGroup(mSelectedGroupUri); in onCreateView() 123 mListView.setAdapter(mAdapter); in onCreateView() 221 mAdapter.setCursor(mGroupListCursor); in bindGroupList() 228 mSelectedGroupUri = mAdapter.getSelectedGroup(); in bindGroupList() 240 if (mAdapter != null) { in setSelectionVisible() 241 mAdapter.setSelectionVisible(mSelectionVisible); in setSelectionVisible() 247 mAdapter.setSelectedGroup(groupUri); in setSelectedGroup() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | MonthByWeekFragment.java | 106 if (mAdapter != null) { 107 mAdapter.refresh(); 226 if (mAdapter != null) { in onAttach() 227 mAdapter.setSelectedDay(mSelectedDay); in onAttach() 257 if (mAdapter == null) { in setUpAdapter() 258 mAdapter = new MonthByWeekAdapter(getActivity(), weekParams); in setUpAdapter() 259 mAdapter.registerDataSetObserver(mObserver); in setUpAdapter() 261 mAdapter.updateParams(weekParams); in setUpAdapter() 263 mAdapter.notifyDataSetChanged(); in setUpAdapter() 345 mAdapter.setSelectedDay(mSelectedDay); in doResumeUpdates() [all …]
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
D | GroupsListFragment.java | 46 CursorFactoryListAdapter mAdapter; field in GroupsListFragment 62 mAdapter = new CursorFactoryListAdapter(getActivity(), in onCreateView() 64 list.setAdapter(mAdapter); in onCreateView() 99 mAdapter.changeCursor(new MergeCursor(new Cursor[] { psuedoGroups, groups })); in setData() 108 Cursor cursor = (Cursor) mAdapter.getItem(position); in onItemClick()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | GroupMembershipView.java | 92 private ArrayAdapter<GroupSelectionItem> mAdapter; field in GroupMembershipView 227 mAdapter = new ArrayAdapter<GroupSelectionItem>( in onClick() 242 mAdapter.add(new GroupSelectionItem(groupId, title, checked)); in onClick() 247 mAdapter.add(new GroupSelectionItem(CREATE_NEW_GROUP_GROUP_ID, in onClick() 252 mPopup.setAdapter(mAdapter); in onClick() 258 int count = mAdapter.getCount(); in onClick() 260 listView.setItemChecked(i, mAdapter.getItem(i).isChecked()); in onClick() 278 int count = mAdapter.getCount(); in onItemClick() 287 mAdapter.getItem(i).setChecked(list.isItemChecked(i)); in onItemClick() 307 GroupSelectionItem item = mAdapter.getItem(i); in onItemClick() [all …]
|
/packages/apps/Browser/src/com/android/browser/ |
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 …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppManager.java | 69 private BluetoothAdapter mAdapter; field in BluetoothOppManager 131 mAdapter = BluetoothAdapter.getDefaultAdapter(); in init() 132 if (mAdapter == null) { in init() 226 if (mAdapter != null) { in isEnabled() 227 return mAdapter.isEnabled(); in isEnabled() 238 if (mAdapter != null) { in enableBluetooth() 239 mAdapter.enable(); in enableBluetooth() 247 if (mAdapter != null) { in disableBluetooth() 248 mAdapter.disable(); in disableBluetooth() 260 if (deviceName == null && mAdapter != null) { in getDeviceName()
|