/frameworks/support/transition/src/androidTest/java/androidx/transition/ |
D | TransitionSetTest.java | 21 import static org.hamcrest.Matchers.hasSize; 87 assertThat(mTransitionSet.getTargetIds(), hasSize(1)); in testTargetId() 89 assertThat(mTransition.getTargetIds(), hasSize(1)); in testTargetId() 91 assertThat(mTransitionSet.getTargetIds(), hasSize(0)); in testTargetId() 92 assertThat(mTransition.getTargetIds(), hasSize(0)); in testTargetId() 100 assertThat(mTransitionSet.getTargets(), hasSize(1)); in testTargetView() 102 assertThat(mTransition.getTargets(), hasSize(1)); in testTargetView() 104 assertThat(mTransitionSet.getTargets(), hasSize(0)); in testTargetView() 105 assertThat(mTransition.getTargets(), hasSize(0)); in testTargetView() 112 assertThat(mTransitionSet.getTargetNames(), hasSize(1)); in testTargetName() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/autofill/ |
D | AutofillManagerServiceTest.java | 56 assertThat(result).hasSize(1); in testGetWhitelistedCompatModePackages_onePackageOneUrl() 64 assertThat(result).hasSize(1); in testGetWhitelistedCompatModePackages_onePackageMultipleUrls() 72 assertThat(result).hasSize(1); in testGetWhitelistedCompatModePackages_multiplePackagesOneInvalid() 80 assertThat(result).hasSize(3); in testGetWhitelistedCompatModePackages_multiplePackagesMultipleUrls() 90 assertThat(result).hasSize(2); in testGetWhitelistedCompatModePackages_threePackagesOneInvalid()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceManagerTest.java | 247 assertThat(mCachedDeviceManager.getCachedDevicesCopy()).hasSize(2); in testOnHiSyncIdChanged_sameHiSyncId_populateInDifferentLists() 259 assertThat(mCachedDeviceManager.getCachedDevicesCopy()).hasSize(1); in testOnHiSyncIdChanged_sameHiSyncId_populateInDifferentLists() 260 assertThat(mCachedDeviceManager.mHearingAidDevicesNotAddedInCache).hasSize(1); in testOnHiSyncIdChanged_sameHiSyncId_populateInDifferentLists() 261 assertThat(mCachedDeviceManager.mCachedDevicesMapForHearingAids).hasSize(1); in testOnHiSyncIdChanged_sameHiSyncId_populateInDifferentLists() 290 assertThat(mCachedDeviceManager.getCachedDevicesCopy()).hasSize(2); in testOnHiSyncIdChanged_sameHiSyncIdAndOneConnected_chooseConnectedDevice() 319 assertThat(mCachedDeviceManager.getCachedDevicesCopy()).hasSize(2); in testOnHiSyncIdChanged_differentHiSyncId_populateInSameList() 330 assertThat(mCachedDeviceManager.getCachedDevicesCopy()).hasSize(2); in testOnHiSyncIdChanged_differentHiSyncId_populateInSameList() 332 assertThat(mCachedDeviceManager.mCachedDevicesMapForHearingAids).hasSize(2); in testOnHiSyncIdChanged_differentHiSyncId_populateInSameList() 397 assertThat(mCachedDeviceManager.getCachedDevicesCopy()).hasSize(2); in testOnProfileConnectionStateChanged_twoDevicesConnected_oneDeviceVisible() 406 assertThat(mCachedDeviceManager.getCachedDevicesCopy()).hasSize(1); in testOnProfileConnectionStateChanged_twoDevicesConnected_oneDeviceVisible() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/suggestions/ |
D | SuggestionParserTest.java | 111 assertThat(mSuggestionsBeforeDismiss).hasSize(2); in testGetSuggestions_withoutSmartSuggestions_shouldDismiss() 112 assertThat(mSuggestionsAfterDismiss).hasSize(1); in testGetSuggestions_withoutSmartSuggestions_shouldDismiss() 119 assertThat(mSuggestionsBeforeDismiss).hasSize(2); in testGetSuggestions_withSmartSuggestions_shouldDismiss() 120 assertThat(mSuggestionsAfterDismiss).hasSize(1); in testGetSuggestions_withSmartSuggestions_shouldDismiss() 136 assertThat(suggestions).hasSize(2); in testGetSuggestion_exclusiveNotAvailable_onlyRegularCategoryAndNoDupe() 159 assertThat(suggestions).hasSize(3); in testGetSuggestion_exclusiveExpiredAvailable_shouldLoadWithRegularCategory() 168 assertThat(suggestions).hasSize(1); in testGetSuggestions_exclusive()
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/ |
D | InvalidationTest.java | 22 import static org.hamcrest.collection.IsCollectionWithSize.hasSize; 85 assertThat(observer.getInvalidatedTables(), hasSize(1)); in testInvalidationOnUpdate() 98 assertThat(observer.getInvalidatedTables(), hasSize(1)); in testInvalidationOnDelete() 109 assertThat(observer.getInvalidatedTables(), hasSize(1)); in testInvalidationOnInsert() 130 assertThat(observer.getInvalidatedTables(), hasSize(1)); in testMultipleTables()
|
D | SimpleEntityReadWriteTest.java | 25 import static org.hamcrest.Matchers.hasSize; 119 assertThat(inserted, hasSize(1)); in insertDifferentEntities() 122 assertThat(inserted.get(0).pets, hasSize(1)); in insertDifferentEntities() 129 assertThat(updated, hasSize(1)); in insertDifferentEntities() 130 assertThat(updated.get(0).pets, hasSize(1)); in insertDifferentEntities() 138 assertThat(deleted, hasSize(0)); in insertDifferentEntities() 288 assertThat(users, hasSize(1)); in findByCollateNoCase() 448 assertThat(list, hasSize(2)); in blob()
|
D | ClearAllTablesTest.java | 23 import static org.hamcrest.collection.IsCollectionWithSize.hasSize; 180 assertThat(tables, hasSize(1)); in observer()
|
D | WriteAheadLoggingTest.java | 25 import static org.hamcrest.Matchers.hasSize; 230 assertThat(tables, hasSize(1)); in invalidation()
|
/frameworks/base/packages/ExtServices/tests/src/android/ext/services/storage/ |
D | CacheQuotaServiceImplTest.java | 87 assertThat(output).hasSize(1); in testOneApp() 100 assertThat(output).hasSize(2); in testTwoAppsOneVolume() 113 assertThat(output).hasSize(2); in testTwoAppsTwoVolumes() 126 assertThat(output).hasSize(1); in testMultipleAppsPerUidIsCollated() 138 assertThat(output).hasSize(2); in testTwoAppsTwoVolumesTwoUuidsShouldBESeparate()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/ |
D | AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java | 87 boolean hasSize = hasSize(cls); in testAllClassInheritance() 88 if (!hasSize) { in testAllClassInheritance() 102 private boolean hasSize(Class<?> cls) { in hasSize() method in AAAPlusPlusVerifySysuiRequiredTestPropertiesTest
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | KeySyncTaskTest.java | 309 assertThat(keyChainSnapshot.getKeyChainProtectionParams()).hasSize(1); in run_useScryptToHashPasswordInTestMode() 346 assertThat(keyChainSnapshot.getKeyChainProtectionParams()).hasSize(1); in run_useSha256ToHashPatternInProdMode() 380 assertThat(keyChainSnapshot.getKeyChainProtectionParams()).hasSize(1); in run_useScryptToHashPasswordInProdMode() 434 assertThat(applicationKeys).hasSize(0); // non whitelisted key is not included in run_InTestModeWithWhitelistedCredentials() 538 assertThat(applicationKeys).hasSize(1); in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey() 566 assertThat(applicationKeys).hasSize(1); in run_sendsEncryptedKeysIfAvailableToSync_withCertPath() 633 assertThat(keyChainSnapshot.getKeyChainProtectionParams()).hasSize(1); in run_setsCorrectTypeForPassword() 665 assertThat(keyChainSnapshot.getKeyChainProtectionParams()).hasSize(1); in run_setsCorrectTypeForPin() 697 assertThat(keyChainSnapshot.getKeyChainProtectionParams()).hasSize(1); in run_setsCorrectTypeForPattern()
|
D | RecoverableKeyStoreManagerTest.java | 953 assertThat(recoveredKeys).hasSize(1); in recoverKeyChainSnapshot_returnsDecryptedKeys() 991 assertThat(recoveredKeys).hasSize(1); in recoverKeyChainSnapshot_worksOnOtherApplicationKeysIfOneDecryptionFails() 1153 assertThat(statuses).hasSize(1); in setRecoveryStatus() 1158 assertThat(statuses).hasSize(1); in setRecoveryStatus()
|
/frameworks/support/jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/transform/pom/ |
D | PomRewriteInZipTest.kt | 68 Truth.assertThat(resultFiles).hasSize(1) in rewritePomInZip_rewritingSL_shouldRewrite() 102 Truth.assertThat(resultFiles).hasSize(1) in rewritePomInZip_notRewritingSL_shouldStillRewrite()
|
D | PomDocumentTest.kt | 239 Truth.assertThat(document.dependencies).hasSize(1) in pom_usingEmptyProperties_shouldNotCrash() 257 Truth.assertThat(document.dependencies).hasSize(1) in pom_usingProperties_shouldResolve()
|
/frameworks/support/jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/transform/bytecode/ |
D | ClassFilesMoveTest.kt | 90 Truth.assertThat(resultFiles).hasSize(1) in fileMove_forwardRewrite_shouldMoveFilesProperly() 112 Truth.assertThat(resultFiles).hasSize(1) in fileMove_forwardRewrite_nestedArchive_shouldMoveFilesProperly()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/serialization/ |
D | KeyChainSnapshotSerializerTest.java | 97 assertThat(roundTrip().getKeyChainProtectionParams()).hasSize(1); in roundTrip_persistsParamsList() 133 assertThat(roundTripKeys()).hasSize(3); in roundTripKeys_hasCorrectLength()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/users/ |
D | UserManagerHelperRoboTest.java | 119 assertThat(mHelper.getAllUsersExcludesCurrentProcessUser()).hasSize(3); in getAllUsersExcludesCurrentProcessUser() 142 assertThat(mHelper.getAllUsersExcludesForegroundUser()).hasSize(3); in getAllUsersExcludesForegroundUser()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/ |
D | RecentLocationAppsTest.java | 89 assertThat(requests).hasSize(2); in testGetAppList_shouldFilterRecentApps() 117 assertThat(requests).hasSize(2); in testGetAppList_shouldNotShowAndroidOS()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/ |
D | DataChangedJournalTest.java | 116 assertThat(journals).hasSize(2); in listJournals_returnsJournalsForEveryFileInDirectory()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverableKeyStoreDbTest.java | 289 assertThat(statuses).hasSize(3); in getStatusForAllKeys_with3Keys() 301 assertThat(statuses).hasSize(3); in getStatusForAllKeys_with3Keys() 321 assertThat(statuses).hasSize(0); in getStatusForAllKeys_withEmptyDatabase() 533 assertThat(agents).hasSize(2); in getRecoveryAgents_withTwoAgents()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/ |
D | CertXmlTest.java | 73 assertThat(endpointCerts).hasSize(3); in parse_checkEndpointCerts()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/ |
D | StringUtilTest.java | 110 assertThat(ttsSpans).asList().hasSize(1); in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/ |
D | UserManagerHelperTest.java | 104 assertThat(mHelper.getAllUsersExcludesSystemUser()).hasSize(3); in getAllUsersExcludesSystemUser()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | WifiTrackerTest.java | 426 assertThat(aps).hasSize(2); in startTrackingShouldSetConnectedAccessPointAsActive() 726 assertThat(tracker.getAccessPoints()).hasSize(1); in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults()
|
/frameworks/base/services/robotests/src/com/android/server/backup/restore/ |
D | ActiveRestoreSessionTest.java | 320 assertThat(mBackupManagerService.getPendingRestores()).hasSize(1); in testRestoreAll_whenRestoreInProgress_addsToPendingRestores()
|