Home
last modified time | relevance | path

Searched refs:hasSize (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/support/transition/src/androidTest/java/androidx/transition/
DTransitionSetTest.java21 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/
DAutofillManagerServiceTest.java56 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/
DCachedBluetoothDeviceManagerTest.java247 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/
DSuggestionParserTest.java111 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/
DInvalidationTest.java22 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()
DSimpleEntityReadWriteTest.java25 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()
DClearAllTablesTest.java23 import static org.hamcrest.collection.IsCollectionWithSize.hasSize;
180 assertThat(tables, hasSize(1)); in observer()
DWriteAheadLoggingTest.java25 import static org.hamcrest.Matchers.hasSize;
230 assertThat(tables, hasSize(1)); in invalidation()
/frameworks/base/packages/ExtServices/tests/src/android/ext/services/storage/
DCacheQuotaServiceImplTest.java87 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/
DAAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java87 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/
DKeySyncTaskTest.java309 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()
DRecoverableKeyStoreManagerTest.java953 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/
DPomRewriteInZipTest.kt68 Truth.assertThat(resultFiles).hasSize(1) in rewritePomInZip_rewritingSL_shouldRewrite()
102 Truth.assertThat(resultFiles).hasSize(1) in rewritePomInZip_notRewritingSL_shouldStillRewrite()
DPomDocumentTest.kt239 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/
DClassFilesMoveTest.kt90 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/
DKeyChainSnapshotSerializerTest.java97 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/
DUserManagerHelperRoboTest.java119 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/
DRecentLocationAppsTest.java89 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/
DDataChangedJournalTest.java116 assertThat(journals).hasSize(2); in listJournals_returnsJournalsForEveryFileInDirectory()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbTest.java289 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/
DCertXmlTest.java73 assertThat(endpointCerts).hasSize(3); in parse_checkEndpointCerts()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DStringUtilTest.java110 assertThat(ttsSpans).asList().hasSize(1); in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DUserManagerHelperTest.java104 assertThat(mHelper.getAllUsersExcludesSystemUser()).hasSize(3); in getAllUsersExcludesSystemUser()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java426 assertThat(aps).hasSize(2); in startTrackingShouldSetConnectedAccessPointAsActive()
726 assertThat(tracker.getAccessPoints()).hasSize(1); in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults()
/frameworks/base/services/robotests/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java320 assertThat(mBackupManagerService.getPendingRestores()).hasSize(1); in testRestoreAll_whenRestoreInProgress_addsToPendingRestores()

12