/packages/apps/Dialer/src/com/android/dialer/list/ |
D | PhoneFavoriteMergedAdapter.java | 86 return mContactTileAdapter.getCount() + mContactEntryListAdapter.getCount() == 0; in isEmpty() 90 public int getCount() { in getCount() method in PhoneFavoriteMergedAdapter 91 final int contactTileAdapterCount = mContactTileAdapter.getCount(); in getCount() 92 final int contactEntryListAdapterCount = mContactEntryListAdapter.getCount(); in getCount() 106 final int contactTileAdapterCount = mContactTileAdapter.getCount(); in getItem() 107 final int contactEntryListAdapterCount = mContactEntryListAdapter.getCount(); in getItem() 138 final int contactTileAdapterCount = mContactTileAdapter.getCount(); in getItemViewType() 139 final int contactEntryListAdapterCount = mContactEntryListAdapter.getCount(); in getItemViewType() 192 final int contactTileAdapterCount = mContactTileAdapter.getCount(); in getView() 193 final int contactEntryListAdapterCount = mContactEntryListAdapter.getCount(); in getView() [all …]
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarProvider2Test.java | 270 assertEquals(expected, cursor.getCount()); in execute() 333 assertEquals(expected, cursor.getCount()); in execute() 377 if (len != cursor.getCount()) { in execute() 380 assertEquals("number of instances don't match", len, cursor.getCount()); in execute() 1033 Log.i(TAG, "dumpCursor() count: " + cursor.getCount()); in dumpCursor() 1419 assertEquals(1, cursor.getCount()); in testInsertUpdateDeleteColor() 1428 assertEquals(0, cursor.getCount()); in testInsertUpdateDeleteColor() 1446 assertEquals(1, cursor.getCount()); in checkColor() 1470 assertEquals(0, cursor.getCount()); in testInsertNormalEvents() 1511 assertEquals("Item " + i + " not found", 1, cursor.getCount()); in testInsertNormalEvents() [all …]
|
D | CalendarDatabaseHelperTest.java | 351 assertEquals(mBadDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion50Events() 352 assertEquals(mGoodDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion50Events() 385 assertEquals(mBadDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion67Events() 386 assertEquals(mGoodDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion67Events() 532 if (c1.getCount() != c2.getCount()) { in compareCursors() 533 Log.d("CDBT","c1 has " + c1.getCount() + " rows and c2 has " + c2.getCount()); in compareCursors()
|
D | SyncCalendarTest.java | 77 int countBeforeNewEvent = cursor.getCount(); in testEditEventTitle() 105 int countBeforeNewEvent = cursor.getCount(); in testEditEventDate() 121 int countAfterNewEvent = cursor.getCount(); in testEditEventDate() 137 int countBeforeNewEvent = cursor.getCount(); in testEditEventDescription() 151 int countAfterNewEvent = cursor.getCount(); in testEditEventDescription()
|
/packages/apps/Gallery2/tests/src/com/android/photos/data/ |
D | PhotoProviderTest.java | 143 assertEquals(0, cursor.getCount()); in testDeleteMetadataId() 158 assertEquals(0, cursor.getCount()); in testDeleteAlbumCascade() 171 assertEquals(0, cursor.getCount()); in testDeleteAlbumCascade2() 184 assertEquals(0, cursor.getCount()); in testDeletePhotoCascade() 201 assertEquals(3, cursor.getCount()); in testDeleteAccountCascade() 207 assertEquals(1, cursor.getCount()); in testDeleteAccountCascade() 211 assertEquals(1, cursor.getCount()); in testDeleteAccountCascade() 242 assertEquals(1, cursor.getCount()); in testInsert() 256 assertEquals(1, cursor.getCount()); in testUpdate() 283 assertEquals(1, cursor.getCount()); in testUpdate() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsProvider2Test.java | 812 assertEquals(3, cursor.getCount()); in assertDataRows() 889 assertEquals(3, cursor.getCount()); in assertEntityRows() 1078 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "1234"), null, null)); in testPhonesNormalizedNumber() 1080 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "5678"), null, null)); in testPhonesNormalizedNumber() 1093 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "1234"), null, null)); in testPhonesNormalizedNumber() 1095 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "4321"), null, null)); in testPhonesNormalizedNumber() 1097 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "5678"), null, null)); in testPhonesNormalizedNumber() 1099 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "8765"), null, null)); in testPhonesNormalizedNumber() 1112 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "+1-800-466-5432"), null, in testPhonesNormalizedNumber() 1115 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "8765"), null, null)); in testPhonesNormalizedNumber() [all …]
|
D | ContactDirectoryManagerTest.java | 174 assertEquals(5, cursor.getCount()); in testScanAllProviders() 212 assertEquals(3, cursor.getCount()); in testPackageInstalled() 230 assertEquals(4, cursor.getCount()); in testPackageInstalled() 272 assertEquals(4, cursor.getCount()); in testPackageUninstalled() 281 assertEquals(3, cursor.getCount()); in testPackageUninstalled() 318 assertEquals(4, cursor.getCount()); in testPackageReplaced() 330 assertEquals(4, cursor.getCount()); in testPackageReplaced() 376 assertEquals(4, cursor.getCount()); in testPackageRenamed() 397 assertEquals(4, cursor.getCount()); in testPackageRenamed() 443 assertEquals(3, cursor.getCount()); in testAccountRemoval() [all …]
|
D | VoicemailProviderTest.java | 127 assertEquals(0, getCount(uri, null, null)); in testDelete() 184 assertEquals(2, getCount(voicemailUri(), null, null)); in testPermissions_InsertAndQuery() 188 assertEquals(1, getCount(voicemailUri(), null, null)); in testPermissions_InsertAndQuery() 205 assertEquals(2, getCount(voicemailUri(), null, null)); in testPermissions_UpdateAndDelete() 267 assertEquals(1, cursor.getCount()); in checkHasReadAccessToUri() 426 assertEquals(1, getCount(statusUri(), null, null)); in testStatusInsertDuplicate() 431 assertEquals(1, getCount(statusUri(), null, null)); in testStatusInsertDuplicate() 436 assertEquals(2, getCount(statusUri(), null, null)); in testStatusInsertDuplicate() 455 assertEquals(0, getCount(uri, null, null)); in testStatusDelete()
|
D | CallLogProviderTest.java | 157 assertEquals(0, getCount(uri, null, null)); in testDelete() 166 assertEquals(1, c.getCount()); in testCallLogFilter() 173 assertEquals(0, c.getCount()); in testCallLogFilter() 208 assertEquals(2, getCount(Calls.CONTENT_URI, null, null)); in testDifferentContentUris() 209 assertEquals(3, getCount(Calls.CONTENT_URI_WITH_VOICEMAIL, null, null)); in testDifferentContentUris() 219 assertEquals(4, getCount(uri, null, null)); in testLimitParamReturnsCorrectLimit()
|
D | GroupsTest.java | 118 assertTrue("Didn't return summary for all groups", (cursor.getCount() == 4)); in testGroupSummary() 185 assertEquals(1, getCount(uri, null, null)); in testGroupDeletion1() 187 assertEquals(1, getCount(uri, null, null)); in testGroupDeletion1() 192 assertEquals(0, getCount(uri, null, null)); in testGroupDeletion1() 199 assertEquals(1, getCount(uri, null, null)); in testGroupDeletion2() 202 assertEquals(0, getCount(uri, null, null)); in testGroupDeletion2()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | SuggestionsProviderImplTest.java | 65 assertEquals(0, promote(suggestions).getCount()); in testSingleCorpus() 69 assertEquals(MockCorpus.CORPUS_1.getSuggestions("foo", 3, true).getCount(), in testSingleCorpus() 70 promote(suggestions).getCount()); in testSingleCorpus() 83 int corpus1Count = MockCorpus.CORPUS_1.getSuggestions("foo", 3, true).getCount(); in testMultipleCorpora() 84 int corpus2Count = MockCorpus.CORPUS_2.getSuggestions("foo", 3, true).getCount(); in testMultipleCorpora() 87 assertEquals(0, promote(suggestions).getCount()); in testMultipleCorpora() 91 corpus1Count, promote(suggestions).getCount()); in testMultipleCorpora() 95 corpus1Count + corpus2Count, promote(suggestions).getCount()); in testMultipleCorpora() 111 for (int i = 0; i < c.getCount(); i++) { in pickPromoted() 112 if (promoted.getCount() >= maxPromoted) { in pickPromoted()
|
D | SuggestionCursorUtil.java | 40 assertEquals(message, 0, suggestions.getCount()); in assertNoSuggestions() 66 assertEquals(message + ", count", expected.getCount(), observed.getCount()); in assertSameSuggestions() 68 int count = expected.getCount(); in assertSameSuggestions() 113 return cursor.getPosition() < cursor.getCount() - 1; 127 return slice(cursor, start, cursor.getCount() - start); 141 for (int i = 0; i < cursor.getCount(); i++) { 192 int count = from.getCount(); 218 assertTrue(message + ", no suggestions", observed.getCount() > 0); 219 for (int i = 0; i < observed.getCount(); ++i) {
|
/packages/apps/Contacts/tests/src/com/android/contacts/widget/ |
D | CompositeListAdapterTest.java | 117 assertEquals(5, adapter.getCount()); in testGetCount() 122 assertEquals(0, adapter.getCount()); in testGetCountWithInvalidation() 125 assertEquals(2, adapter.getCount()); in testGetCountWithInvalidation() 128 assertEquals(2, adapter.getCount()); in testGetCountWithInvalidation() 131 assertEquals(5, adapter.getCount()); in testGetCountWithInvalidation() 221 assertEquals(3, adapter.getCount()); in testNotifyDataSetChangedPropagated() 229 assertEquals(4, adapter.getCount()); in testNotifyDataSetChangedPropagated() 247 assertEquals(5, adapter.getCount()); in testNotifyDataSetChangedOnAddingAdapter() 265 assertEquals(1, adapter.getCount()); in testNotifyDataSetInvalidated() 270 assertEquals(0, adapter.getCount()); in testNotifyDataSetInvalidated()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
D | HistoryAdapter.java | 68 if (getCount() <= 1) { in canReset() 75 if (mCurrentPresetPosition == getCount() - 1) { in canUndo() 115 if (getCount() == 0) { in reset() 118 ImagePreset first = getItem(getCount() - 1); in reset() 125 if (getCount() == 0) { in getLast() 145 for (int i = mCurrentPresetPosition; i < getCount(); i++) { in insert() 172 if (mCurrentPresetPosition >= getCount()) { in undo() 173 mCurrentPresetPosition = getCount() - 1; in undo() 197 if (position == getCount()-1 && mOriginalBitmap != null) { in getView()
|
/packages/apps/Browser/tests/src/com/android/browser/tests/ |
D | BP1to2UpgradeTests.java | 58 ArrayList<String> urls = new ArrayList<String>(c.getCount()); in testStockUpgrade() 67 assertEquals(urls.size(), c.getCount()); in testStockUpgrade() 77 assertEquals(urls.size(), c.getCount()); in testStockUpgrade() 95 assertEquals(1, c.getCount()); in testPreserveHistory() 104 assertEquals("public API", 1, c.getCount()); in testPreserveHistory() 124 assertEquals(1, c.getCount()); in testPreserveBookmarks() 133 assertEquals("public API", 1, c.getCount()); in testPreserveBookmarks() 144 assertEquals(0, c.getCount()); in testEmptyUpgrade()
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ContentCacheTests.java | 156 int activeCount = ContentCache.sActiveCursors.getCount(activeCursor); in testCachedCursors() 167 assertEquals(1, cursor.getCount()); in testCachedCursors() 268 assertEquals(2, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor() 275 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor() 283 assertEquals(2, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor() 286 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor() 291 assertEquals(1, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor() 296 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ContactTileAdapter.java | 183 mNumFrequents = cursor.getCount() - mDividerPosition; in saveNumFrequentsFromCursor() 186 mNumFrequents = cursor.getCount(); in saveNumFrequentsFromCursor() 241 return cursor.getCount(); in getDividerPosition() 247 if (cursor == null || cursor.isClosed() || cursor.getCount() <= position) return null; in createContactEntryFromCursor() 302 public int getCount() { in getCount() method in ContactTileAdapter 309 return getRowCount(mContactCursor.getCount()); in getCount() 323 return mContactCursor.getCount(); in getCount() 421 contactTileRowView.configureRow(contactList, position == getCount() - 1); in getView()
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | HeaderGridView.java | 289 public int getCount() { in getCount() method in HeaderGridView.HeaderViewGridAdapter 291 return getHeadersCount() * mNumColumns + mAdapter.getCount(); in getCount() 319 adapterCount = mAdapter.getCount(); in isEnabled() 343 adapterCount = mAdapter.getCount(); in getItem() 357 int adapterCount = mAdapter.getCount(); in getItemId() 398 adapterCount = mAdapter.getCount(); in getView() 416 int adapterCount = mAdapter.getCount(); in getItemViewType()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ViewImage.java | 141 boolean showNext = mCurrentPosition < mAllImages.getCount() - 1; in updateNextPrevControls() 411 if (mAllImages.getCount() > 0) { in onCreateOptionsMenu() 438 if (mAllImages.getCount() == 0) { 442 if (mCurrentPosition == mAllImages.getCount()) { 759 || mShuffleOrder.length != mAllImages.getCount()) { in generateShuffleOrder() 760 mShuffleOrder = new int[mAllImages.getCount()]; in generateShuffleOrder() 861 (mCurrentPosition + 1) % mAllImages.getCount(), in loadNextImage() 903 if (mAllImages.getCount() == 0) return null; in getCurrentUri() 931 int count = mAllImages.getCount(); in onStart() 1050 if ((0 <= nextImagePos) && (nextImagePos < mAllImages.getCount())) { in moveNextOrPrevious() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerFragment.java | 127 public int getCount() { in getCount() method in TimerFragment.TimersListAdapter 275 if (getCount() > 0) { in sort() 336 if (getCount() == 0) { in onRestoreInstanceState() 360 for (int i = 0; i < mAdapter.getCount(); i ++) { 450 if (mAdapter.getCount() != 0) { in onCreateView() 536 if (mAdapter.getCount() == 0) { in onResume() 601 switchToSetupView = mAdapter.getCount() == 0; in setPage() 616 for (int i = 0; i < mAdapter.getCount(); i ++) { in stopAllTimesUpTimers() 661 if (mAdapter.getCount() == 0) { in gotoSetupView() 729 if (mAdapter.getCount() == 0) { in onClickHelper() [all …]
|
/packages/apps/Email/src/com/android/email/provider/ |
D | ContentCache.java | 158 /*package*/ synchronized int getCount(T object) { in getCount() method in ContentCache.CounterMap 323 public int getCount() { in getCount() method in ContentCache.CachedCursor 325 mCount = super.getCount(); in getCount() 335 if (pos >= getCount() || pos < -1) { in moveToPosition() 369 return moveToPosition(getCount() - 1); in moveToLast() 374 return mPosition == (getCount() - 1); in isLast() 547 if (c.getCount() == 0) { in getMatrixCursor() 702 if (c.getCount() == 1) { in recordQueryTime()
|
/packages/apps/Music/src/com/android/music/ |
D | TrackBrowserActivity.java | 444 int numresults = mTrackCursor != null ? mTrackCursor.getCount() : 0; in setTitle() 462 if (cursor.getCount() != numresults) { in setTitle() 491 if (cursor.getCount() != 0) { in setTitle() 506 if (cursor.getCount() != 0) { in setTitle() 610 if (c.getCount() == 0) { 796 int curcount = mTrackCursor.getCount(); in removeItem() 839 int curcount = mTrackCursor.getCount(); 887 if (mTrackCursor.getCount() == 0) { 1032 if (ret.getCount() == 0) { 1134 int size = mCurrentPlaylistCursor.getCount(); [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | AtPhonebook.java | 126 if (cursor.getCount() < 1) { in getLastDialledNumber() 218 int size = pbr.cursor.getCount(); in handleCpbsCommand() 282 size = pbr.cursor.getCount(); in handleCpbrCommand() 417 Log.i(TAG, "Refreshed phonebook " + pb + " with " + pbr.cursor.getCount() + " results"); in queryPhonebook() 476 if (pbr.cursor.getCount() == 0 || mCpbrIndex1 <= 0 || mCpbrIndex2 < mCpbrIndex1 || in processCpbrCommand() 477 mCpbrIndex2 > pbr.cursor.getCount() || mCpbrIndex1 > pbr.cursor.getCount()) { in processCpbrCommand()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | RankAwarePromoter.java | 77 int slotsToFill = Math.min(getSlotsAboveKeyboard() - promoted.getCount(), slotsLeft); in promoteTopSuggestions() 130 if (result.getCount() > 0) { in partitionSuggestionsByRank() 151 return Math.max(0, maxPromoted - promoted.getCount()); in getSlotsLeft() 176 if (result.getPosition() == result.getCount()) { in roundRobin() 193 if (count < 1 || cursor.getPosition() >= cursor.getCount()) { in promote()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | SectionedAlbumDataAdapter.java | 70 if (DEBUG) Log.i(TAG, "numAlbums = " + mAlbumData.getCount()); in onChanged() 71 for (int i = 0; i < mAlbumData.getCount(); i++) { in onChanged() 85 for (int i = 0; i < mAlbumData.getCount(); i++) { in onChanged() 124 public int getCount() { in getCount() method in SectionedAlbumDataAdapter 125 return mAlbumData.getCount() + sections.length; in getCount()
|