/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/Dialer/src/com/android/dialer/list/ |
D | PhoneFavoriteMergedAdapter.java | 132 public int getCount() { in getCount() method in PhoneFavoriteMergedAdapter 133 return mContactTileAdapter.getCount() + mCallLogAdapter.getCount() + getTeaserViewCount() in getCount() 139 final int callLogAdapterCount = mCallLogAdapter.getCount(); in getItem() 167 final int callLogAdapterCount = mCallLogAdapter.getCount(); in getItemId() 176 } else if (position < (callLogAdapterCount + mContactTileAdapter.getCount() + in getItemId() 204 final int callLogAdapterCount = mCallLogAdapter.getCount(); in getItemViewType() 217 } else if (position < getCount()) { in getItemViewType() 234 final int callLogAdapterCount = mCallLogAdapter.getCount(); in getView() 294 final int callLogAdapterCount = mCallLogAdapter.getCount(); in isEnabled() 311 final int callLogAdapterCount = mCallLogAdapter.getCount(); in getAdjustedPositionInContactTileAdapter() [all …]
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsProvider2Test.java | 823 assertEquals(3, cursor.getCount()); in assertDataRows() 900 assertEquals(3, cursor.getCount()); in assertEntityRows() 1089 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "1234"), null, null)); in testPhonesNormalizedNumber() 1091 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "5678"), null, null)); in testPhonesNormalizedNumber() 1104 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "1234"), null, null)); in testPhonesNormalizedNumber() 1106 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "4321"), null, null)); in testPhonesNormalizedNumber() 1108 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "5678"), null, null)); in testPhonesNormalizedNumber() 1110 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "8765"), null, null)); in testPhonesNormalizedNumber() 1123 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "+1-800-466-5432"), null, in testPhonesNormalizedNumber() 1126 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 | 158 assertEquals(0, getCount(uri, null, null)); in testDelete() 167 assertEquals(1, c.getCount()); in testCallLogFilter() 174 assertEquals(0, c.getCount()); in testCallLogFilter() 210 assertEquals(2, getCount(Calls.CONTENT_URI, null, null)); in testDifferentContentUris() 211 assertEquals(3, getCount(Calls.CONTENT_URI_WITH_VOICEMAIL, null, null)); in testDifferentContentUris() 221 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/Gallery2/src/com/android/gallery3d/filtershow/history/ |
D | HistoryManager.java | 40 private int getCount() { in getCount() method in HistoryManager 64 if (getCount() <= 0) { in canReset() 71 if (mCurrentPresetPosition == getCount() - 1) { in canUndo() 111 if (getCount() == 0) { in reset() 119 if (getCount() == 0) { in getLast() 138 for (int i = mCurrentPresetPosition; i < getCount(); i++) { in insert() 165 if (mCurrentPresetPosition >= getCount()) { in undo() 166 mCurrentPresetPosition = getCount() - 1; in undo()
|
/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 | 159 int activeCount = ContentCache.sActiveCursors.getCount(activeCursor); in testCachedCursors() 170 assertEquals(1, cursor.getCount()); in testCachedCursors() 271 assertEquals(2, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor() 278 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor() 286 assertEquals(2, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor() 289 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor() 294 assertEquals(1, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor() 299 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
|
/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/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() 304 public int getCount() { in getCount() method in ContactTileAdapter 311 return getRowCount(mContactCursor.getCount()); in getCount() 325 return mContactCursor.getCount(); in getCount() 423 contactTileRowView.configureRow(contactList, position == getCount() - 1); in getView()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerFragment.java | 133 public int getCount() { in getCount() method in TimerFragment.TimersListAdapter 281 if (getCount() == 1) { in getItemColumnSpan() 307 if (getCount() > 0) { in sort() 368 if (getCount() == 0) { in onRestoreInstanceState() 392 for (int i = 0; i < mAdapter.getCount(); i ++) { 472 if (mAdapter.getCount() != 0) { in onCreateView() 584 if (mAdapter.getCount() == 0) { in onResume() 653 switchToSetupView = mAdapter.getCount() == 0; in setPage() 668 for (int i = 0; i < mAdapter.getCount(); i ++) { in stopAllTimesUpTimers() 713 if (mAdapter.getCount() == 0) { in gotoSetupView() [all …]
|
/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/Email/src/com/android/email/provider/ |
D | ContentCache.java | 159 /*package*/ synchronized int getCount(T object) { in getCount() method in ContentCache.CounterMap 324 public int getCount() { in getCount() method in ContentCache.CachedCursor 326 mCount = super.getCount(); in getCount() 336 if (pos >= getCount() || pos < -1) { in moveToPosition() 370 return moveToPosition(getCount() - 1); in moveToLast() 375 return mPosition == (getCount() - 1); in isLast() 548 if (c.getCount() == 0) { in getMatrixCursor() 703 if (c.getCount() == 1) { in recordQueryTime()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | SeparatedFolderListAdapter.java | 41 int size = adapter.getCount(); in getItem() 54 public int getCount() { in getCount() method in SeparatedFolderListAdapter 58 total += adapter.getCount(); in getCount() 76 int size = adapter.getCount(); in getItemViewType() 102 int size = adapter.getCount(); in getView()
|
/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/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()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | AtPhonebook.java | 127 if (cursor.getCount() < 1) { in getLastDialledNumber() 219 int size = pbr.cursor.getCount(); in handleCpbsCommand() 283 size = pbr.cursor.getCount(); in handleCpbrCommand() 421 Log.i(TAG, "Refreshed phonebook " + pb + " with " + pbr.cursor.getCount() + " results"); in queryPhonebook() 480 if (pbr.cursor.getCount() == 0 || mCpbrIndex1 <= 0 || mCpbrIndex2 < mCpbrIndex1 || in processCpbrCommand() 481 mCpbrIndex2 > pbr.cursor.getCount() || mCpbrIndex1 > pbr.cursor.getCount()) { in processCpbrCommand()
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | ImageListUber.java | 79 public int getCount() { in getCount() method in ImageListUber 82 count += subList.getCount(); in getCount() 100 if (index < 0 || index > getCount()) { in getImageAt() 102 "index " + index + " out of range max is " + getCount()); in getImageAt() 283 if (mOffset >= mList.getCount() - 1) return false; in next()
|
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/ |
D | SourceLatency.java | 84 public synchronized int getCount() { in getCount() method in SourceLatency.ElapsedTime 111 while (time.getCount() < count) { in checkSourceConcurrent() 149 Log.d(TAG, src + ": " + cursor.getCount() + " rows in " + formatTime(elapsed) in checkSourceInternal() 244 Log.d(TAG, mSrc + ": " + cursor.getCount() + " rows in " + formatTime(elapsed) in run() 296 Log.d(TAG, mSrc + ", update " + mUpdateCount + ": " + mCursor.getCount() in onChanged()
|