/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiScoreCardTest.java | 595 assertEquals(diag, 1, dailyStats.getCount(CNT_CONNECTION_ATTEMPT)); in checkSerializationBssidExample() 596 assertEquals(diag, 0, dailyStats.getCount(CNT_CONNECTION_FAILURE)); in checkSerializationBssidExample() 597 assertEquals(diag, 1, dailyStats.getCount(CNT_CONNECTION_DURATION_SEC)); in checkSerializationBssidExample() 598 assertEquals(diag, 0, dailyStats.getCount(CNT_SHORT_CONNECTION_NONLOCAL)); in checkSerializationBssidExample() 599 assertEquals(diag, 0, dailyStats.getCount(CNT_DISCONNECTION_NONLOCAL)); in checkSerializationBssidExample() 600 assertEquals(diag, 0, dailyStats.getCount(CNT_ASSOCIATION_REJECTION)); in checkSerializationBssidExample() 601 assertEquals(diag, 0, dailyStats.getCount(CNT_ASSOCIATION_TIMEOUT)); in checkSerializationBssidExample() 602 assertEquals(diag, 0, dailyStats.getCount(CNT_AUTHENTICATION_FAILURE)); in checkSerializationBssidExample() 603 assertEquals(diag, 0, dailyStats.getCount(CNT_CONSECUTIVE_WRONG_PASSWORD_FAILURE)); in checkSerializationBssidExample() 640 assertEquals(2, signal.getRssi().getCount()); in testAccessPointSerialization() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/ |
D | PickerDbFacadeTest.java | 114 assertThat(cr.getCount()).isEqualTo(1); in testAddLocalOnlyMedia() 123 assertThat(cr.getCount()).isEqualTo(1); in testAddLocalOnlyMedia() 136 assertThat(cr.getCount()).isEqualTo(1); in testAddCloudPlusLocal() 150 assertThat(cr.getCount()).isEqualTo(1); in testAddCloudOnly() 159 assertThat(cr.getCount()).isEqualTo(1); in testAddCloudOnly() 174 assertThat(cr.getCount()).isEqualTo(1); in testAddLocalAndCloud_Dedupe() 189 assertThat(cr.getCount()).isEqualTo(1); in testAddCloudAndLocal_Dedupe() 203 assertThat(cr.getCount()).isEqualTo(1); in testAddLocalAlbumMedia() 213 assertThat(cr.getCount()).isEqualTo(1); in testAddLocalAlbumMedia() 227 assertThat(cr.getCount()).isEqualTo(1); in testAddCloudAlbumMedia() [all …]
|
D | ExternalDbFacadeTest.java | 116 assertThat(cursor.getCount()).isEqualTo(2); in testDeletedMedia_addAndRemove() 129 assertThat(cursor.getCount()).isEqualTo(1); in testDeletedMedia_addAndRemove() 142 assertThat(cursor.getCount()).isEqualTo(2); in testDeletedMedia_addAndRemove() 152 assertThat(cursor.getCount()).isEqualTo(1); in testDeletedMedia_addAndRemove() 455 assertThat(cursor.getCount()).isEqualTo(2); in testQueryMedia_match() 467 assertThat(cursor.getCount()).isEqualTo(1); in testQueryMedia_match() 492 assertThat(cursor.getCount()).isEqualTo(0); in testQueryMedia_noMatch() 518 assertThat(cursor.getCount()).isEqualTo(2); in testQueryMedia_withDateModified() 529 assertThat(cursor.getCount()).isEqualTo(1); in testQueryMedia_withDateModified() 548 assertThat(cursor.getCount()).isEqualTo(1); in testQueryMedia_withMimeType() [all …]
|
/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/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ |
D | PickerSyncControllerTest.java | 167 assertThat(cr.getCount()).isEqualTo(2); in testSyncAllMediaNoCloud() 178 assertThat(cr.getCount()).isEqualTo(1); in testSyncAllMediaNoCloud() 188 assertThat(cr.getCount()).isEqualTo(1); in testSyncAllMediaNoCloud() 213 assertThat(cr.getCount()).isEqualTo(2); in testSyncAllAlbumMediaNoCloud() 225 assertThat(cr.getCount()).isEqualTo(2); in testSyncAllAlbumMediaNoCloud() 235 assertThat(cr.getCount()).isEqualTo(1); in testSyncAllAlbumMediaNoCloud() 246 assertThat(cr.getCount()).isEqualTo(1); in testSyncAllAlbumMediaNoCloud() 272 assertThat(cr.getCount()).isEqualTo(2); in testSyncAllMediaCloudOnly() 285 assertThat(cr.getCount()).isEqualTo(2); in testSyncAllMediaCloudOnly() 302 assertThat(cr.getCount()).isEqualTo(1); in testSyncAllMediaLocal() [all …]
|
D | PickerDataLayerTest.java | 153 assertThat(cr.getCount()).isEqualTo(2); in testFetchMediaNoFilter() 177 assertThat(cr.getCount()).isEqualTo(4); in testFetchMediaFavorites() 184 assertThat(cr.getCount()).isEqualTo(2); in testFetchMediaFavorites() 208 assertThat(cr.getCount()).isEqualTo(4); in testFetchMediaFavoritesMimeTypeFilter() 215 assertThat(cr.getCount()).isEqualTo(1); in testFetchMediaFavoritesMimeTypeFilter() 238 assertThat(cr.getCount()).isEqualTo(4); in testFetchMediaFavoritesSizeFilter() 245 assertThat(cr.getCount()).isEqualTo(1); in testFetchMediaFavoritesSizeFilter() 268 assertThat(cr.getCount()).isEqualTo(4); in testFetchMediaFavoritesMimeTypeAndSizeFilter() 275 assertThat(cr.getCount()).isEqualTo(0); in testFetchMediaFavoritesMimeTypeAndSizeFilter() 291 assertThat(cr.getCount()).isEqualTo(1); in testFetchMediaMimeTypeFilter() [all …]
|
D | ItemsProviderTest.java | 134 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_camera() 153 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_not_camera() 172 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_videos() 191 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_not_videos() 210 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_screenshots() 250 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_not_screenshots() 269 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_favorites() 289 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_not_favorites() 308 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_downloads() 327 assertThat(c.getCount()).isEqualTo(0); in testGetCategories_not_downloads() [all …]
|
/packages/services/Mtp/tests/src/com/android/mtp/ |
D | MtpDatabaseTest.java | 93 assertEquals(1, cursor.getCount()); in testPutSingleStorageDocuments() 126 assertEquals(1, cursor.getCount()); in testPutSingleStorageDocuments() 156 assertEquals(3, cursor.getCount()); in testPutStorageDocuments() 206 assertEquals(3, cursor.getCount()); in testPutChildDocuments() 282 assertEquals(1, cursor.getCount()); in testPutChildDocuments_operationsSupported() 299 assertEquals(1, cursor.getCount()); in testPutChildDocuments_operationsSupported() 315 assertEquals(1, cursor.getCount()); in testPutChildDocuments_operationsSupported() 338 assertEquals(2, cursor.getCount()); in testRestoreIdForRootDocuments() 356 assertEquals(0, cursor.getCount()); in testRestoreIdForRootDocuments() 371 assertEquals(2, cursor.getCount()); in testRestoreIdForRootDocuments() [all …]
|
D | MtpDocumentsProviderTest.java | 154 assertEquals(1, cursor.getCount()); in testOpenDeviceOnDemand() 212 assertEquals(2, cursor.getCount()); in testQueryRoots() 230 assertEquals(2, cursor.getCount()); in testQueryRoots() 277 assertEquals(2, cursor.getCount()); in testQueryRoots_error() 321 assertEquals(1, cursor.getCount()); in testQueryDocument() 358 assertEquals(1, cursor.getCount()); in testQueryDocument_directory() 385 assertEquals(1, cursor.getCount()); in testQueryDocument_forStorage() 409 assertEquals(1, cursor.getCount()); in testQueryDocument_forDeviceWithSingleStorage() 440 assertEquals(1, cursor.getCount()); in testQueryDocument_forDeviceWithTwoStorages() 471 assertEquals(1, cursor.getCount()); in testQueryChildDocuments() [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/services/Telephony/tests/src/com/android/services/telephony/rcs/ |
D | TransportSipMessageValidatorTest.java | 209 assertEquals(0, l.getCount()); in testTransportClosingGracefullyNoPendingSessions() 231 assertTrue(l.getCount() >= 1); in testTransportClosingGracefullyCloseCallIds() 239 assertEquals(0, l.getCount()); in testTransportClosingGracefullyCloseCallIds() 261 assertTrue(l.getCount() >= 1); in testTransportClosingGracefullyThenForceClose() 268 assertEquals(0, l.getCount()); in testTransportClosingGracefullyThenForceClose() 290 assertTrue(l.getCount() >= 1); in testTransportClosingGracefullyTimeout() 296 assertEquals(0, l.getCount()); in testTransportClosingGracefullyTimeout() 318 assertTrue(l.getCount() >= 1); in testTransportClosingGracefullyCleanup() 325 assertEquals(0, l.getCount()); in testTransportClosingGracefullyCleanup() 359 assertEquals(0, l.getCount()); in setRegStateChangedNoPendingCallIds() [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/Car/Settings/tests/unit/src/com/android/car/settings/search/ |
D | CarSettingsSearchIndexablesProviderTest.java | 94 assertThat(mProvider.queryXmlResources(null).getCount()).isEqualTo(0); in queryXmlResources_onEmptyResources_returnsEmptyList() 109 assertThat(c.getCount()).isEqualTo(1); in queryXmlResources_fillsColumns() 131 assertThat(c.getCount()).isEqualTo(resources.size()); in queryXmlResources_returnsAllRows() 153 assertThat(c.getCount()).isEqualTo(1); in queryXmlResources_onPartiallyFilledFields_returnsPartialRows() 166 assertThat(mProvider.queryXmlResources(null).getCount()).isEqualTo(0); in queryXmlResources_onNullResources_returnsEmptyList() 181 assertThat(c.getCount()).isEqualTo(1); in queryRawData_fillsColumns() 201 assertThat(c.getCount()).isEqualTo(rawData.size()); in queryRawData_returnsAllRows() 223 assertThat(c.getCount()).isEqualTo(1); in queryRawData_onPartiallyFilledFields_returnsPartialRows() 232 assertThat(mProvider.queryRawData(null).getCount()).isEqualTo(0); in queryRawData_onEmptyResources_returnsEmpty() 241 assertThat(mProvider.queryRawData(null).getCount()).isEqualTo(0); in queryRawData_onNullRawDataList_returnsEmptyList() [all …]
|
/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/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | AdSelectionDatabaseMigrationTest.java | 54 assertEquals(0, c.getCount()); in testMigrate1To2() 59 assertEquals(1, c.getCount()); in testMigrate1To2() 72 assertEquals(0, c.getCount()); in testMigrate2To3() 77 assertEquals(1, c.getCount()); in testMigrate2To3() 90 assertEquals(1, cursor.getCount()); in testMigrate3To4() 95 assertEquals(1, cursor.getCount()); in testMigrate3To4()
|
/packages/modules/ExtServices/java/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/apps/Launcher3/tests/src/com/android/launcher3/provider/ |
D | RestoreDbTaskTest.java | 98 assertEquals(5, getCount(db, "select * from favorites where profileId = 42")); in testMigrateProfileId() 103 assertEquals(0, getCount(db, "select * from favorites where profileId = 42")); in testMigrateProfileId() 104 assertEquals(5, getCount(db, "select * from favorites where profileId = 33")); in testMigrateProfileId() 118 assertEquals(5, getCount(db, "select * from favorites where profileId = 42")); in testChangeDefaultColumn() 127 assertEquals(1, getCount(db, "select * from favorites where profileId = 33")); in testChangeDefaultColumn() 188 assertEquals(10, getCount(db, "select * from favorites")); in testSanitizeDB_workItemsRemoved() 246 getCount(db, "select * from favorites where container = -100")); in runRemoveScreenIdGapsTest() 264 return getCount(db, "select * from favorites where profileId = " + profileId); in getItemCountForProfile() 267 private int getCount(SQLiteDatabase db, String sql) { in getCount() method in RestoreDbTaskTest 269 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/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyProviderTest.java | 445 assertEquals(1, cursor.getCount()); in testBulkInsertCarriers() 571 assertEquals(1, cursor.getCount()); in testUpdateConflictingCarriers() 620 assertEquals(1, cursor.getCount()); in doSimpleTestForUri() 637 assertEquals(0, cursor.getCount()); in doSimpleTestForUri() 676 assertEquals(1, cursor.getCount()); in testOwnedBy() 698 assertEquals(0, cursor.getCount()); in testOwnedBy() 754 assertEquals(1, cursor.getCount()); in testSimTable() 782 assertEquals(0, cursor.getCount()); in testSimTable() 802 assertEquals(1, cursor.getCount()); in testFullRestoreOnMatchingIccId() 849 assertEquals(1, cursor.getCount()); in testFullRestoreOnMatchingNumberAndCid() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/ |
D | DbTestUtil.java | 136 return cursor != null && cursor.getCount() > 0; in doesIndexExist() 142 return cursor != null && cursor.getCount() > 0; in doesTableExist() 167 columnsCursorExpected.getCount(), in assertTableSchemaEqual() 168 columnsCursorActual.getCount()); in assertTableSchemaEqual() 227 indexListCursorExpected.getCount(), in assertIndexesEqual() 228 indexListCursorActual.getCount()); in assertIndexesEqual() 256 indexInfoCursorExpected.getCount(), in assertIndexInfoEqual() 257 indexInfoCursorActual.getCount()); in assertIndexInfoEqual()
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarDatabaseHelperTest.java | 361 assertEquals(mBadDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion50Events() 362 assertEquals(mGoodDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion50Events() 395 assertEquals(mBadDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion67Events() 396 assertEquals(mGoodDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion67Events() 543 if (c1.getCount() != c2.getCount()) { in compareCursors() 544 Log.d("CDBT","c1 has " + c1.getCount() + " rows and c2 has " + c2.getCount()); in compareCursors()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | MediaScannerTest.java | 102 assertEquals(cl.getCount(), cm.getCount()); in testCorrectness() 179 getCount(context, MediaStore.Files.getContentUri(VOLUME_EXTERNAL)), in getCounts() 180 getCount(context, MediaStore.Audio.Media.getContentUri(VOLUME_EXTERNAL)), in getCounts() 181 getCount(context, MediaStore.Video.Media.getContentUri(VOLUME_EXTERNAL)), in getCounts() 182 getCount(context, MediaStore.Images.Media.getContentUri(VOLUME_EXTERNAL)), in getCounts() 186 private static int getCount(Context context, Uri uri) { in getCount() method in MediaScannerTest 189 return c.getCount(); in getCount()
|
D | ModernMediaScannerTest.java | 588 assertEquals(1, cursor.getCount()); in testScan_Common() 609 assertEquals(1, cursor.getCount()); in testScan_Common() 762 assertEquals(expected, cursor.getCount()); in assertQueryCount() 778 assertEquals(1, cursor.getCount()); in testScan_audio_empty_title() 797 assertEquals(1, cursor.getCount()); in testScan_audio_recording() 816 assertEquals(1, cursor.getCount()); in testScan_148316354() 840 assertThat(cursor.getCount()).isEqualTo(1); in testScan_audioMp4_notRescanIfUnchanged() 916 assertEquals(1, cursor.getCount()); in testScan_BitmapFile() 944 assertThat(cursor.getCount()).isEqualTo(1); in testScan_deleteStaleRowWithExpiredPendingFile() 954 assertThat(cursor.getCount()).isEqualTo(1); in testScan_deleteStaleRowWithExpiredPendingFile() [all …]
|
/packages/modules/NeuralNetworks/runtime/ |
D | ModelBuilder.cpp | 660 auto getCount = [this, &operation](uint32_t tailStartIndex, const std::vector<TailSpec>& tail) { in getNumTrailingArgumentsToRemove() local 673 return getCount(10, {TS::BOOL_FALSE}); in getNumTrailingArgumentsToRemove() 679 return getCount(7, {TS::BOOL_FALSE}); in getNumTrailingArgumentsToRemove() 688 uint32_t count = getCount(10, {TS::BOOL_FALSE, TS::INT32_ONE, TS::INT32_ONE}); in getNumTrailingArgumentsToRemove() 696 uint32_t count = getCount(7, {TS::BOOL_FALSE, TS::INT32_ONE, TS::INT32_ONE}); in getNumTrailingArgumentsToRemove() 707 uint32_t count = getCount(11, {TS::BOOL_FALSE, TS::INT32_ONE, TS::INT32_ONE}); in getNumTrailingArgumentsToRemove() 715 uint32_t count = getCount(8, {TS::BOOL_FALSE, TS::INT32_ONE, TS::INT32_ONE}); in getNumTrailingArgumentsToRemove() 724 return getCount(2, {TS::BOOL_FALSE}); in getNumTrailingArgumentsToRemove() 731 return getCount(1, {TS::INT32_NEGATIVE_ONE}); in getNumTrailingArgumentsToRemove() 739 return getCount(10, {TS::BOOL_FALSE}); in getNumTrailingArgumentsToRemove() [all …]
|