/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/ |
HierarchicalFolderTruncationTests.java | 24 private HierarchicalFolderSelectorAdapter mAdapter; 29 mAdapter = new HierarchicalFolderSelectorAdapter(mContext, null, null, 1, null); 33 assertEquals("", mAdapter.truncateHierarchy(null)); 37 assertEquals("name", mAdapter.truncateHierarchy("name")); 41 assertEquals("parent\u2215folder", mAdapter.truncateHierarchy("parent/folder")); 46 mAdapter.truncateHierarchy("grandparent/parent/folder")); 51 mAdapter.truncateHierarchy("grandparent/stuff/stuff/stuff/stuff/parent/folder"));
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
LocalBluetoothAdapter.java | 41 private final BluetoothAdapter mAdapter; 54 mAdapter = adapter; 81 mAdapter.cancelDiscovery(); 85 return mAdapter.enable(); 89 return mAdapter.disable(); 94 mAdapter.getProfileProxy(context, listener, profile); 98 return mAdapter.getBondedDevices(); 102 return mAdapter.getName(); 106 return mAdapter.getScanMode(); 110 return mAdapter.getState() [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/list/ |
PhoneFavoritesTileAdapterTest.java | 15 private PhoneFavoritesTileAdapter mAdapter; 57 mAdapter = getAdapterForTest(2, PhoneFavoritesTileAdapter.NO_ROW_LIMIT); 58 assertEquals(0, mAdapter.getRowCount(0)); 59 assertEquals(1, mAdapter.getRowCount(1)); 60 assertEquals(1, mAdapter.getRowCount(2)); 61 assertEquals(2, mAdapter.getRowCount(4)); 62 assertEquals(4, mAdapter.getRowCount(7)); 63 assertEquals(100, mAdapter.getRowCount(199)); 65 mAdapter = getAdapterForTest(5, PhoneFavoritesTileAdapter.NO_ROW_LIMIT); 66 assertEquals(0, mAdapter.getRowCount(0)) [all...] |
/frameworks/base/core/java/android/nfc/ |
NfcManager.java | 41 private final NfcAdapter mAdapter; 58 mAdapter = adapter; 67 return mAdapter;
|
/packages/apps/Camera2/src/com/android/camera/data/ |
AbstractLocalDataAdapterWrapper.java | 34 protected final LocalDataAdapter mAdapter; 47 mAdapter = wrappedAdapter; 54 mAdapter.suggestViewSizeBound(w, h); 59 mAdapter.setListener(listener); 64 mAdapter.requestLoad(resolver); 69 mAdapter.addNewVideo(resolver, uri); 74 mAdapter.addNewPhoto(resolver, uri); 79 mAdapter.insertData(data); 84 mAdapter.flush(); 89 return mAdapter.executeDeletion(context) [all...] |
FixedLastDataAdapter.java | 60 int totalNumber = mAdapter.getTotalNumber(); 63 return mAdapter.getLocalData(dataID); 73 if (dataID < mAdapter.getTotalNumber()) { 74 mAdapter.removeData(context, dataID); 80 return mAdapter.findDataByContentUri(uri); 85 int totalNumber = mAdapter.getTotalNumber(); 88 mAdapter.updateData(pos, data); 109 return mAdapter.getTotalNumber() + 1; 114 int totalNumber = mAdapter.getTotalNumber(); 117 return mAdapter.getView(activity, dataID) [all...] |
FixedFirstDataAdapter.java | 63 return mAdapter.getLocalData(dataID - 1); 69 mAdapter.removeData(context, dataID - 1); 75 int pos = mAdapter.findDataByContentUri(uri); 100 mAdapter.updateData(pos - 1, data); 106 return (mAdapter.getTotalNumber() + 1); 115 return mAdapter.getView(activity, dataID - 1); 123 return mAdapter.getImageData(dataID - 1); 129 mAdapter.setListener((listener == null) ? null : this); 142 return mAdapter.canSwipeInFullScreen(dataID - 1);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
CategoryPanel.java | 39 private CategoryAdapter mAdapter; 56 mAdapter = activity.getCategoryLooksAdapter(); 57 if (mAdapter != null) { 58 mAdapter.initializeSelection(MainPanel.LOOKS); 64 mAdapter = activity.getCategoryBordersAdapter(); 65 if (mAdapter != null) { 66 mAdapter.initializeSelection(MainPanel.BORDERS); 72 mAdapter = activity.getCategoryGeometryAdapter(); 73 if (mAdapter != null) { 74 mAdapter.initializeSelection(MainPanel.GEOMETRY) [all...] |
CategoryTrack.java | 32 private CategoryAdapter mAdapter; 40 if (getChildCount() != mAdapter.getCount()) { 60 mAdapter = adapter; 61 mAdapter.registerDataSetObserver(mDataSetObserver); 67 mAdapter.setItemWidth(mElemSize); 68 mAdapter.setItemHeight(LayoutParams.MATCH_PARENT); 69 int n = mAdapter.getCount(); 71 View view = mAdapter.getView(i, null, this);
|
/frameworks/ex/common/tests/src/com/android/common/widget/ |
GroupingListAdapterTests.java | 51 private GroupingListAdapter mAdapter = new GroupingListAdapter(null) { 118 mAdapter.changeCursor(mCursor); 120 assertEquals(3, mAdapter.getCount()); 128 mAdapter.changeCursor(mCursor); 130 assertEquals(2, mAdapter.getCount()); 137 mAdapter.changeCursor(mCursor); 138 mAdapter.toggleGroup(0); 140 assertEquals(4, mAdapter.getCount()); 149 mAdapter.changeCursor(mCursor); 150 mAdapter.toggleGroup(0) [all...] |
/frameworks/base/core/java/android/widget/ |
HeaderViewListAdapter.java | 34 private final ListAdapter mAdapter; 53 mAdapter = adapter; 82 return mAdapter == null || mAdapter.isEmpty(); 131 if (mAdapter != null) { 132 return getFootersCount() + getHeadersCount() + mAdapter.getCount(); 139 if (mAdapter != null) { 140 return mAreAllFixedViewsSelectable && mAdapter.areAllItemsEnabled(); 156 if (mAdapter != null) { 157 adapterCount = mAdapter.getCount() [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
OverlayTitleTemplatePicker.java | 34 private OverlaysAdapter mAdapter; 43 mAdapter = new OverlaysAdapter(this, getListView()); 44 setListAdapter(mAdapter); 51 if (mAdapter != null) { 52 mAdapter.onPause(); 60 if (mAdapter != null) { 61 mAdapter.onDestroy(); 69 final int overlayType = ((OverlayType) mAdapter.getItem(position)).getType();
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
HeaderGridView.java | 220 private final ListAdapter mAdapter; 231 mAdapter = adapter; 248 return (mAdapter == null || mAdapter.isEmpty()) && getHeadersCount() == 0; 290 if (mAdapter != null) { 291 return getHeadersCount() * mNumColumns + mAdapter.getCount(); 299 if (mAdapter != null) { 300 return mAreAllFixedViewsSelectable && mAdapter.areAllItemsEnabled(); 318 if (mAdapter != null) { 319 adapterCount = mAdapter.getCount() [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/nfc/ |
ForegroundNdefPush.java | 32 private NfcAdapter mAdapter; 40 mAdapter = NfcAdapter.getDefaultAdapter(this); 48 if (mAdapter != null) { 49 mAdapter.setNdefPushMessage(mMessage, this);
|
ForegroundDispatch.java | 37 private NfcAdapter mAdapter; 52 mAdapter = NfcAdapter.getDefaultAdapter(this); 78 if (mAdapter != null) mAdapter.enableForegroundDispatch(this, mPendingIntent, mFilters, 91 if (mAdapter != null) mAdapter.disableForegroundDispatch(this);
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
ListWithFooterViewAndNewLabelsTest.java | 32 private ListAdapter mAdapter; 49 mAdapter = a.getListAdapter(); 56 assertNotNull(mAdapter); 61 1, mAdapter.getCount());
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
AbstractTestListActivity.java | 30 protected TestListAdapter mAdapter; 33 mAdapter = adapter; 34 setListAdapter(mAdapter); 35 mAdapter.loadTestResults(); 39 TestListItem item = mAdapter.getItem(position); 59 mAdapter.setTestResult(testResult);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
SuggestionsListAdapter.java | 33 private Adapter mAdapter; 37 mAdapter = new Adapter(); 42 return mAdapter.getCount() == 0; 52 return mAdapter; 57 mAdapter.notifyDataSetChanged(); 62 mAdapter.notifyDataSetInvalidated();
|
BaseSuggestionView.java | 40 private SuggestionsAdapter<?> mAdapter; 70 mAdapter = adapter; 98 if (mAdapter != null) { 99 mAdapter.onSuggestionClicked(mSuggestionId); 104 if (mAdapter != null) { 105 mAdapter.onSuggestionQueryRefineClicked(mSuggestionId);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
ExpandableList2.java | 51 private CursorTreeAdapter mAdapter; 55 this.mAdapter = adapter; 62 mAdapter.setGroupCursor(cursor); 67 mAdapter.setChildrenCursor(groupPosition, cursor); 104 private CursorTreeAdapter mAdapter; 111 mAdapter = new MyExpandableListAdapter( 120 setListAdapter(mAdapter); 122 mQueryHandler = new QueryHandler(this, mAdapter); 135 mAdapter.changeCursor(null); 136 mAdapter = null [all...] |
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
FlipperDreamSettings.java | 42 private SectionedAlbumDataAdapter mAdapter; 69 mAdapter = new SectionedAlbumDataAdapter(FlipperDreamSettings.this, 79 mAdapter.registerDataSetObserver(new DataSetObserver () { 89 setListAdapter(mAdapter); 92 showApology(mAdapter.getCount() == 0); 111 if (mAdapter != null) { 112 mAdapter.selectAll(!mAdapter.areAllSelected()); 130 if (mAdapter != null && mSelectAll != null) { 131 if (mAdapter.areAllSelected()) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListWithEmptyView.java | 55 private CarefulAdapter<String> mAdapter; 64 mAdapter = new CarefulAdapter<String>(this, 67 setListAdapter(mAdapter); 88 mAdapter.add(str); 91 if (mAdapter.getCount() > 0) { 92 mAdapter.remove(mAdapter.getItem(0));
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/ |
PresetManagementDialog.java | 31 private UserPresetsAdapter mAdapter; 40 mAdapter = activity.getUserPresetsAdapter(); 53 mAdapter.clearChangedRepresentations(); 54 mAdapter.clearDeletedRepresentations(); 55 activity.updateUserPresetsFromAdapter(mAdapter); 61 mAdapter.updateCurrent(); 62 activity.updateUserPresetsFromAdapter(mAdapter);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ContactEntryListFragment.java | 106 private T mAdapter; 186 if (mAdapter != null) { 190 mAdapter.clearPartitions(); 209 return mAdapter; 246 mAdapter = createListAdapter(); 289 if (mAdapter == null) { 295 int partitionCount = mAdapter.getPartitionCount(); 297 Partition partition = mAdapter.getPartition(i); 318 loader.setDirectorySearchMode(mAdapter.getDirectorySearchMode()); 327 mAdapter.configureLoader(loader, directoryId) [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/ |
CallLogAdapterTest.java | 41 private TestCallLogAdapter mAdapter; 66 mAdapter = new TestCallLogAdapter(getContext(), fakeCallFetcher, fakeContactInfoHelper); 77 mAdapter = null; 87 mAdapter.bindStandAloneView(mView, getContext(), mCursor); 90 assertEquals(1, mAdapter.requests.size()); 92 TestCallLogAdapter.Request request = mAdapter.requests.get(0); 105 mAdapter.bindStandAloneView(mView, getContext(), mCursor); 108 assertEquals(1, mAdapter.requests.size()); 110 TestCallLogAdapter.Request request = mAdapter.requests.get(0); 120 mAdapter.injectContactInfoForTest(TEST_NUMBER, TEST_COUNTRY_ISO, createContactInfo()) [all...] |