/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | CompositeAdapter.java | 55 public int getCount() { in getCount() method in CompositeAdapter.Partition 56 int count = mAdapter.getCount(); in getCount() 147 final int end = start + mPartitions[i].getCount(); in getPartitionAtPosition() 151 (mPartitions[i].getCount() > 0 || mPartitions[i].showIfEmpty())) { in getPartitionAtPosition() 178 mCount += mPartitions[i].getCount(); in ensureCacheValid() 183 public int getCount() { in getCount() method in CompositeAdapter 188 public int getCount(final int index) { in getCount() method in CompositeAdapter 190 return mPartitions[index].getCount(); in getCount() 198 final int end = start + mPartitions[i].getCount(); in getItem() 203 (partition.getCount() > 0 || partition.showIfEmpty())) { in getItem() [all …]
|
/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/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyProviderTest.java | 300 assertEquals(1, cursor.getCount()); in testBulkInsertCarriers() 426 assertEquals(1, cursor.getCount()); in testUpdateConflictingCarriers() 475 assertEquals(1, cursor.getCount()); in doSimpleTestForUri() 492 assertEquals(0, cursor.getCount()); in doSimpleTestForUri() 531 assertEquals(1, cursor.getCount()); in testOwnedBy() 553 assertEquals(0, cursor.getCount()); in testOwnedBy() 600 assertEquals(1, cursor.getCount()); in testSimTable() 623 assertEquals(0, cursor.getCount()); in testSimTable() 680 assertEquals(1, enforceCursor.getCount()); in testEnforceManagedUri() 695 assertEquals(1, cursorNotEnforced.getCount()); in testEnforceManagedUri() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/ |
D | SearchCursorManager.java | 176 return searchActions.get(position - getCount() + searchActions.size()); in getSearchAction() 180 int getCount() { in getCount() method in SearchCursorManager 183 count += contactsCursor.getCount(); in getCount() 189 count += nearbyPlacesCursor.getCount(); in getCount() 193 count += corpDirectoryCursor.getCount(); in getCount() 201 int cursorCount = getCount(); in getRowType() 243 int count = contactsCursor.getCount(); in getCursor() 253 int count = nearbyPlacesCursor.getCount(); in getCursor() 263 int count = corpDirectoryCursor.getCount(); in getCursor()
|
/packages/apps/Contacts/tests/src/com/android/contacts/widget/ |
D | CompositeListAdapterTest.java | 119 assertEquals(5, adapter.getCount()); in testGetCount() 124 assertEquals(0, adapter.getCount()); in testGetCountWithInvalidation() 127 assertEquals(2, adapter.getCount()); in testGetCountWithInvalidation() 130 assertEquals(2, adapter.getCount()); in testGetCountWithInvalidation() 133 assertEquals(5, adapter.getCount()); in testGetCountWithInvalidation() 223 assertEquals(3, adapter.getCount()); in testNotifyDataSetChangedPropagated() 231 assertEquals(4, adapter.getCount()); in testNotifyDataSetChangedPropagated() 249 assertEquals(5, adapter.getCount()); in testNotifyDataSetChangedOnAddingAdapter() 267 assertEquals(1, adapter.getCount()); in testNotifyDataSetInvalidated() 272 assertEquals(0, adapter.getCount()); in testNotifyDataSetInvalidated()
|
/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/Launcher3/tests/src/com/android/launcher3/provider/ |
D | RestoreDbTaskTest.java | 42 assertEquals(5, getCount(db, "select * from favorites where profileId = 42")); in testMigrateProfileId() 47 assertEquals(0, getCount(db, "select * from favorites where profileId = 42")); in testMigrateProfileId() 48 assertEquals(5, getCount(db, "select * from favorites where profileId = 33")); in testMigrateProfileId() 62 assertEquals(5, getCount(db, "select * from favorites where profileId = 42")); in testChangeDefaultColumn() 71 assertEquals(1, getCount(db, "select * from favorites where profileId = 33")); in testChangeDefaultColumn() 74 private int getCount(SQLiteDatabase db, String sql) { in getCount() method in RestoreDbTaskTest 76 return c.getCount(); in getCount()
|
/packages/apps/Messaging/tests/src/com/android/messaging/util/ |
D | ContactUtilTest.java | 146 cur.getCount()); in ingoredTestGetPhones() 162 if (cur.getCount() != 5) { in ingoredTestFilterPhonesByName() 185 cur.getCount()); in ingoredTestFilterPhonesByPartialNumber() 207 cur.getCount()); in ingoredTestFilterPhonesByFullNumber() 227 cur.getCount()); in ingoredTestLookupPhoneWithAreaCode() 247 cur.getCount()); in ingoredTestLookupPhoneWithoutAreaCode() 260 cur.getCount()); in ingoredTestGetFrequentPhones() 274 cur.getCount()); in ingoredTestFilterEmails() 287 cur.getCount()); in ingoredTestLookupEmail()
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarProvider2Test.java | 314 assertEquals(expected, cursor.getCount()); in execute() 377 assertEquals(expected, cursor.getCount()); in execute() 421 if (len != cursor.getCount()) { in execute() 424 assertEquals("number of instances don't match", len, cursor.getCount()); in execute() 1131 Log.i(TAG, "dumpCursor() count: " + cursor.getCount()); in dumpCursor() 1542 assertEquals(1, cursor.getCount()); in testInsertUpdateDeleteColor() 1551 assertEquals(0, cursor.getCount()); in testInsertUpdateDeleteColor() 1569 assertEquals(1, cursor.getCount()); in checkColor() 1593 assertEquals(0, cursor.getCount()); in testInsertNormalEvents() 1634 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()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactMetadataProviderTest.java | 133 assertEquals(1, c.getCount()); in testGetMetadataByAccount() 348 assertEquals(2, c.getCount()); in testDeleteMetadata() 354 assertEquals(0, c.getCount()); in testDeleteMetadata() 360 assertEquals(1, c.getCount()); in testBulkInsert() 371 assertEquals(3, c.getCount()); in testBulkInsert() 379 assertEquals(2, c.getCount()); in testBatchOperations() 443 assertEquals(2, c.getCount()); in testBatchOperations() 453 assertEquals(0, c.getCount()); in testBatchOperations() 463 assertEquals(1, c.getCount()); in testQueryMetadataSyncState() 479 assertEquals(1, c.getCount()); in testUpdateMetadataSyncState() [all …]
|
D | ContactDirectoryManagerTest.java | 191 assertEquals(5, cursor.getCount()); in testScanAllProviders() 272 assertEquals(3, cursor.getCount()); in testPackageInstalled() 290 assertEquals(4, cursor.getCount()); in testPackageInstalled() 332 assertEquals(4, cursor.getCount()); in testPackageUninstalled() 341 assertEquals(3, cursor.getCount()); in testPackageUninstalled() 378 assertEquals(4, cursor.getCount()); in testPackageReplaced() 390 assertEquals(4, cursor.getCount()); in testPackageReplaced() 436 assertEquals(4, cursor.getCount()); in testPackageRenamed() 457 assertEquals(4, cursor.getCount()); in testPackageRenamed() 503 assertEquals(3, cursor.getCount()); in testAccountRemoval() [all …]
|
D | VoicemailProviderTest.java | 135 assertEquals("Record count", 1, c.getCount()); in testInsertReadMessageIsNotNew() 292 assertEquals(1, getCount(voicemailUri(), null, null)); in testDeleteOwnPackageVoicemail_DeletesRow() 296 assertEquals(0, getCount(ownVoicemail, null, null)); in testDeleteOwnPackageVoicemail_DeletesRow() 303 assertEquals(1, getCount(voicemailUri(), null, null)); in testDeleteOtherPackageVoicemail_SetsDirtyStatus() 313 assertEquals(1, getCount(anotherVoicemail, null, null)); in testDeleteOtherPackageVoicemail_SetsDirtyStatus() 323 assertEquals(0, getCount(uri, null, null)); in testDelete() 330 assertEquals(1, getCount(voicemailUri(), null, null)); in testUpdateAfterDelete_lastModifiedNotChanged() 409 assertEquals(2, getCount(voicemailUri(), null, null)); in testPermissions_InsertAndQuery() 422 assertEquals(2, getCount(voicemailUri(), null, null)); in testPermissions_InsertAndQuery() 434 assertEquals(1, getCount(voicemailUri(), null, null)); in assertOnlyOwnVoicemailsCanBeQueriedAndInserted() [all …]
|
D | ContactsProvider2Test.java | 1054 assertEquals(3, cursor.getCount()); in assertDataRows() 1131 assertEquals(3, cursor.getCount()); in assertEntityRows() 1427 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "1234"), null, null)); in testPhonesNormalizedNumber() 1429 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "5678"), null, null)); in testPhonesNormalizedNumber() 1442 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "1234"), null, null)); in testPhonesNormalizedNumber() 1444 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "4321"), null, null)); in testPhonesNormalizedNumber() 1446 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "5678"), null, null)); in testPhonesNormalizedNumber() 1448 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "8765"), null, null)); in testPhonesNormalizedNumber() 1461 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "+1-800-466-5432"), null, in testPhonesNormalizedNumber() 1464 getCount(Uri.withAppendedPath(Phone.CONTENT_FILTER_URI, "8765"), null, null)); in testPhonesNormalizedNumber() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | MediaScannerTest.java | 139 assertEquals(cl.getCount(), cm.getCount()); in testCorrectness() 215 getCount(context, MediaStore.Files.EXTERNAL_CONTENT_URI), in getCounts() 216 getCount(context, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI), in getCounts() 217 getCount(context, MediaStore.Video.Media.EXTERNAL_CONTENT_URI), in getCounts() 218 getCount(context, MediaStore.Images.Media.EXTERNAL_CONTENT_URI), in getCounts() 222 private static int getCount(Context context, Uri uri) { in getCount() method in MediaScannerTest 225 return c.getCount(); in getCount()
|
/packages/modules/ExtServices/tests/src/android/ext/services/notification/ |
D | EntityTypeCounterTest.java | 46 assertThat(mCounter.getCount(TextClassifier.TYPE_URL)).isEqualTo(3); in testIncrementAndGetCount() 47 assertThat(mCounter.getCount(TextClassifier.TYPE_PHONE)).isEqualTo(2); in testIncrementAndGetCount() 48 assertThat(mCounter.getCount(TextClassifier.TYPE_DATE_TIME)).isEqualTo(0); in testIncrementAndGetCount() 56 assertThat(mCounter.getCount(TextClassifier.TYPE_DATE_TIME)).isEqualTo(2); in testIncrementAndGetCount_typeDateAndDateTime() 57 assertThat(mCounter.getCount(TextClassifier.TYPE_DATE)).isEqualTo(2); in testIncrementAndGetCount_typeDateAndDateTime()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | language_model_dict_content.cpp | 59 if (mHasHistoricalInfo && unigramProbabilityEntry.getHistoricalInfo()->getCount() == 0) { in getWordAttributes() 87 && historicalInfo->getCount() == 1) { in getWordAttributes() 91 contextCount = prevWordProbabilityEntry.getHistoricalInfo()->getCount(); in getWordAttributes() 96 historicalInfo->getCount(), contextCount, ngramType); in getWordAttributes() 235 updatedUnigramProbabilityEntry.getHistoricalInfo()->getCount()); in updateAllEntriesOnInputWord() 250 updatedNgramProbabilityEntry.getHistoricalInfo()->getCount()); in updateAllEntriesOnInputWord() 265 0 /* level */, originalProbabilityEntry.getHistoricalInfo()->getCount() in createUpdatedEntryFrom() 266 + historicalInfo.getCount()); in createUpdatedEntryFrom() 360 const int updatedCount = originalHistoricalInfo->getCount() / 2; in updateAllProbabilityEntriesForGCInner() 443 outEntryInfo->emplace_back(priority, probabilityEntry.getHistoricalInfo()->getCount(), in getEntryInfo()
|
/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/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | DatabaseHelperTest.java | 94 assertEquals(1, c.getCount()); in assertDowngrade() 103 assertEquals(0, c.getCount()); in assertDowngrade() 192 assertEquals(1, c.getCount()); in assertUpgrade() 202 assertEquals(1, c.getCount()); in assertUpgrade() 212 assertEquals(1, c.getCount()); in assertUpgrade() 224 assertEquals(1, c.getCount()); in assertUpgrade() 237 assertEquals(1, c.getCount()); in assertUpgrade() 248 assertEquals(1, c.getCount()); in assertUpgrade() 277 assertEquals(c1.getCount(), c2.getCount()); in assertUpgrade()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/ |
D | SortingCursorWrapperTest.java | 144 for (int i = 0; i < cursor.getCount(); ++i) { in testSort_names_ascending() 168 for (int i = 0; i < cursor.getCount(); ++i) { in testSort_names_descending() 191 for (int i = 0; i < cursor.getCount(); ++i) { in testSort_sizes_ascending() 214 for (int i = 0; i < cursor.getCount(); ++i) { in testSort_sizes_descending() 253 for (int i = 0; i < cursor.getCount(); ++i) { in testSort_sizesWithBucketing_ascending() 305 for (int i = 0; i < cursor.getCount(); ++i) { in testSort_sizesWithBucketing_descending() 358 assertEquals(ITEM_COUNT + DL_COUNT, cursor.getCount()); in testSort_time_ascending() 395 assertEquals(ITEM_COUNT + DL_COUNT, cursor.getCount()); in testSort_time_descending() 413 assertEquals(ITEM_COUNT, cursor.getCount()); in testSort_type_ascending() 445 assertEquals(ITEM_COUNT, cursor.getCount()); in testSort_type_descending()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | forgetting_curve_utils.cpp | 53 const int count = clampToValidCountRange(newHistoricalInfo->getCount(), headerPolicy); in createUpdatedHistoricalInfo() 58 && originalHistoricalInfo->getCount() < newHistoricalInfo->getCount())) { in createUpdatedHistoricalInfo() 60 int count = newHistoricalInfo->getCount(); in createUpdatedHistoricalInfo() 68 const int updatedCount = originalHistoricalInfo->getCount() + 1; in createUpdatedHistoricalInfo() 74 originalHistoricalInfo->getLevel(), originalHistoricalInfo->getCount()); in createUpdatedHistoricalInfo()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | SyncCursorPair.java | 293 return mLocalCursorIterator.getCount(); in getLocalCount() 297 return mRemoteCursorsIterator.getCount(); in getRemoteCount() 321 public int getCount(); in getCount() method 406 public int getCount() { in getCount() method in SyncCursorPair.LocalCursorIterator 407 return (mCursor == null ? 0 : mCursor.getCount()); in getCount() 534 public int getCount() { in getCount() method in SyncCursorPair.RemoteCursorsIterator 535 return (mSmsCursor == null ? 0 : mSmsCursor.getCount()) + in getCount() 536 (mMmsCursor == null ? 0 : mMmsCursor.getCount()); in getCount() 612 } else if (cursor.getCount() == 0) { in getCountFromCursor()
|
/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/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | GridSizeMigrationTaskTest.java | 90 assertEquals(0, c.getCount()); in verifyHotseat() 92 assertEquals(1, c.getCount()); in verifyHotseat() 106 assertEquals(total, c.getCount()); in verifyHotseat() 290 assertEquals(0, c.getCount()); in verifyWorkspace() 292 assertEquals(1, c.getCount()); in verifyWorkspace() 307 assertEquals(total, c.getCount()); in verifyWorkspace()
|
/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()
|