Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DLocalMediaManagerTest.java91 assertThat(mLocalMediaManager.mMediaDevices).hasSize(1); in startScan_mediaDevicesListShouldBeClear()
173 assertThat(mLocalMediaManager.mMediaDevices).hasSize(2); in onDeviceAdded_mediaDeviceAndPhoneDeviceNotExistInList_addBothDevice()
185 assertThat(mLocalMediaManager.mMediaDevices).hasSize(2); in onDeviceAdded_mediaDeviceNotExistAndPhoneDeviceExistInList_addMediaDevice()
189 assertThat(mLocalMediaManager.mMediaDevices).hasSize(3); in onDeviceAdded_mediaDeviceNotExistAndPhoneDeviceExistInList_addMediaDevice()
200 assertThat(mLocalMediaManager.mMediaDevices).hasSize(2); in onDeviceAdded_mediaDeviceAndPhoneDeviceExistInList_doNothing()
204 assertThat(mLocalMediaManager.mMediaDevices).hasSize(2); in onDeviceAdded_mediaDeviceAndPhoneDeviceExistInList_doNothing()
223 assertThat(mLocalMediaManager.mMediaDevices).hasSize(3); in onDeviceListAdded_phoneDeviceNotExistInList_addPhoneDeviceAndDevicesList()
244 assertThat(mLocalMediaManager.mMediaDevices).hasSize(2); in onDeviceListAdded_phoneDeviceExistInList_addDeviceList()
248 assertThat(mLocalMediaManager.mMediaDevices).hasSize(4); in onDeviceListAdded_phoneDeviceExistInList_addDeviceList()
259 assertThat(mLocalMediaManager.mMediaDevices).hasSize(2); in onDeviceRemoved_phoneDeviceIsLastDeviceAfterRemoveMediaDevice_removeBothDevice()
[all …]
DBluetoothMediaManagerTest.java103 assertThat(mMediaManager.mMediaDevices).hasSize(devices.size()); in startScan_haveA2dpProfileDeviceIsPreferredAndBonded_shouldAddDevice()
148 assertThat(mMediaManager.mMediaDevices).hasSize(devices.size()); in startScan_haveHapProfileDeviceIsPreferredAndBonded_shouldAddDevice()
262 assertThat(mMediaManager.mMediaDevices).hasSize(1); in onDeviceAdded_cachedDeviceIsConnected_callOnDeviceAdded()
294 assertThat(mMediaManager.mMediaDevices).hasSize(1); in onDeviceDeleted_cachedDeviceIsConnected_doNothing()
298 assertThat(mMediaManager.mMediaDevices).hasSize(1); in onDeviceDeleted_cachedDeviceIsConnected_doNothing()
313 assertThat(mMediaManager.mMediaDevices).hasSize(1); in onDeviceDeleted_cachedDeviceIsDisconnected_callOnDeviceRemoved()
331 assertThat(mMediaManager.mMediaDevices).hasSize(1); in onProfileConnectionStateChanged_cachedDeviceIsBonded_callDeviceAttributesChanged()
335 assertThat(mMediaManager.mMediaDevices).hasSize(1); in onProfileConnectionStateChanged_cachedDeviceIsBonded_callDeviceAttributesChanged()
349 assertThat(mMediaManager.mMediaDevices).hasSize(1); in onProfileConnectionStateChanged_cachedDeviceIsBondNone_callOnDeviceRemoved()
367 assertThat(mMediaManager.mMediaDevices).hasSize(1); in onAclConnectionStateChanged_cachedDeviceIsBonded_callDeviceAttributesChanged()
[all …]
DInfoMediaManagerTest.java104 assertThat(mInfoMediaManager.mMediaDevices).hasSize(size); in onRouteAdded_mediaDeviceExistInList_doNothing()
116 assertThat(mInfoMediaManager.mMediaDevices).hasSize(1); in onRouteRemoved_mediaDeviceExistInList_removeMediaDevice()
134 assertThat(mInfoMediaManager.mMediaDevices).hasSize(size); in onRouteRemoved_mediaDeviceNotExistInList_doNothing()
/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/core/tests/coretests/src/com/android/internal/os/
DLooperStatsTest.java91 assertThat(entries).hasSize(1); in testSingleMessageDispatched()
123 assertThat(entries).hasSize(1); in testThrewException()
148 assertThat(looperStats.getEntries()).hasSize(1); in testThrewException_notSampled()
156 assertThat(looperStats.getEntries()).hasSize(1); in testThrewException_notSampled()
196 assertThat(entries).hasSize(3); in testMultipleMessagesDispatched()
285 assertThat(entries).hasSize(1); in testDispatchDelayIsRecorded()
306 assertThat(entries).hasSize(0); in testDataNotCollectedBeforeDeviceStateSet()
321 assertThat(entries).hasSize(0); in testDataNotCollectedOnCharger()
344 assertThat(entries).hasSize(2); in testScreenStateCollected()
383 assertThat(entries).hasSize(2); in testMessagesOverSizeCap()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/
DAAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java91 boolean hasSize = hasSize(cls); in testAllClassInheritance()
92 if (!hasSize) { in testAllClassInheritance()
104 private boolean hasSize(Class<?> cls) { in hasSize() method in AAAPlusPlusVerifySysuiRequiredTestPropertiesTest
/frameworks/base/core/tests/coretests/src/android/widget/
DAbsSeekBarTest.java23 import static org.hamcrest.Matchers.hasSize;
106 assertThat(mBar.getSystemGestureExclusionRects(), hasSize(2)); in testExclusionForThumb_passesThroughUserExclusions()
110 assertThat(mBar.getSystemGestureExclusionRects(), hasSize(2)); in testExclusionForThumb_passesThroughUserExclusions()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRecentTasksTest.java207 assertThat(mCallbacksRecorder.mAdded).hasSize(1); in testAddTasksSameTask_expectNoTrim()
222 assertThat(mCallbacksRecorder.mAdded).hasSize(2); in testAddTasksMultipleDocumentTasks_expectNoTrim()
240 assertThat(mCallbacksRecorder.mAdded).hasSize(1); in testAddTasksMultipleTasks_expectRemovedNoTrim()
246 assertThat(mCallbacksRecorder.mAdded).hasSize(1); in testAddTasksMultipleTasks_expectRemovedNoTrim()
249 assertThat(mCallbacksRecorder.mRemoved).hasSize(1); in testAddTasksMultipleTasks_expectRemovedNoTrim()
265 assertThat(mCallbacksRecorder.mAdded).hasSize(2); in testAddTasksDifferentStacks_expectNoRemove()
291 assertThat(mCallbacksRecorder.mAdded).hasSize(1); in testAddTaskCompatibleActivityType_expectRemove()
294 assertThat(mCallbacksRecorder.mRemoved).hasSize(1); in testAddTaskCompatibleActivityType_expectRemove()
317 assertThat(mCallbacksRecorder.mAdded).hasSize(1); in testAddTaskCompatibleActivityTypeDifferentUser_expectNoRemove()
342 assertThat(mCallbacksRecorder.mAdded).hasSize(1); in testAddTaskCompatibleWindowingMode_expectRemove()
[all …]
DRunningTasksTest.java85 assertThat(tasks).hasSize(numFetchTasks); in testCollectTasksByLastActiveTime()
96 assertThat(tasks).hasSize(numTasks); in testCollectTasksByLastActiveTime()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/intent/
DLegacyIntentClassificationFactoryTest.java78 assertThat(intents).hasSize(1); in create_typeDictionary()
114 assertThat(intents).hasSize(2); in create_translateAndDictionary()
DTemplateClassificationIntentFactoryTest.java98 assertThat(intents).hasSize(2); in create_foreignText()
139 assertThat(intents).hasSize(1); in create_notForeignText()
DTemplateIntentFactoryTest.java91 assertThat(intents).hasSize(1); in create_full()
153 assertThat(intents).hasSize(1); in create_minimal()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncTaskTest.java317 assertThat(keyChainSnapshot.getKeyChainProtectionParams()).hasSize(1); in run_useScryptToHashPasswordInTestMode()
354 assertThat(keyChainSnapshot.getKeyChainProtectionParams()).hasSize(1); in run_useSha256ToHashPatternInProdMode()
388 assertThat(keyChainSnapshot.getKeyChainProtectionParams()).hasSize(1); in run_useScryptToHashPasswordInProdMode()
442 assertThat(applicationKeys).hasSize(0); // non whitelisted key is not included in run_InTestModeWithWhitelistedCredentials()
546 assertThat(applicationKeys).hasSize(1); in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey()
576 assertThat(applicationKeys).hasSize(1); in run_sendsEncryptedKeysIfAvailableToSync_withCertPath_withNullKeyMetadata()
600 assertThat(applicationKeys).hasSize(1); in run_sendsEncryptedKeysIfAvailableToSync_withCertPath_withNonNullKeyMetadata()
670 assertThat(keyChainSnapshot.getKeyChainProtectionParams()).hasSize(1); in run_setsCorrectTypeForPassword()
702 assertThat(keyChainSnapshot.getKeyChainProtectionParams()).hasSize(1); in run_setsCorrectTypeForPin()
734 assertThat(keyChainSnapshot.getKeyChainProtectionParams()).hasSize(1); in run_setsCorrectTypeForPattern()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassifierTest.java222 Truth.assertThat(entities).hasSize(1); in testClassifyText_date()
375 Truth.assertThat(textLinks.getLinks()).hasSize(1); in testGenerateLinks_entityData()
378 Truth.assertThat(entities).hasSize(1); in testGenerateLinks_entityData()
391 Truth.assertThat(textLinks.getLinks()).hasSize(1); in testGenerateLinks_entityData_disabled()
436 Truth.assertThat(conversationActions.getConversationActions()).hasSize(1); in testSuggestConversationActions_textReplyOnly_maxOne()
491 Truth.assertThat(conversationActions.getConversationActions()).hasSize(1); in testSuggestConversationActions_openUrl()
520 Truth.assertThat(conversationActions.getConversationActions()).hasSize(1); in testSuggestConversationActions_copy()
DModelFileManagerTest.java94 assertThat(modelFiles).hasSize(1); in get()
327 assertThat(modelFiles).hasSize(3); in testFileSupplierImpl_updatedFileOnly()
339 assertThat(modelFiles).hasSize(0); in testFileSupplierImpl_empty()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/storage/
DTertiaryKeysTableTest.java141 assertThat(keysByPackageName).hasSize(3); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary()
162 assertThat(keysByPackageName).hasSize(1); in getAllKeys_withMatchingKeys_doesNotReturnKeysWrappedWithOtherAlias()
/frameworks/base/services/tests/servicestests/src/com/android/server/signedconfig/
DSignedConfigTest.java148 assertThat(config.values).hasSize(0); in testParsePerSdkConfigZeroValues()
343 assertThat(config.perSdkConfig).hasSize(1); in testParseSdkConfigSingle()
352 assertThat(config.perSdkConfig).hasSize(2); in testParseSdkConfigMultiple()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java516 assertThat(aps).hasSize(2); in startTrackingShouldSetConnectedAccessPointAsActive()
816 assertThat(tracker.getAccessPoints()).hasSize(1); in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults()
999 assertThat(tracker.getAccessPoints()).hasSize(2); in onStart_updateScanResults_evictOldScanResult()
1018 assertThat(tracker.getAccessPoints()).hasSize(3); in failedScan_increasesEvictionTimeout()
1026 assertThat(tracker.getAccessPoints()).hasSize(2); in failedScan_increasesEvictionTimeout()
1061 assertThat(passpointAccessPoints).hasSize(2); in updatePasspointAccessPoints_ignoresDuplicateFQDNs()
1139 assertThat(osuAccessPoints).hasSize(2); in updateOsuAccessPoints_returnedAccessPointsAreOsuProviders()
1165 assertThat(osuAccessPoints).hasSize(2); in updateOsuAccessPoints_doesNotReturnAlreadyProvisionedOsuAccessPoints()
1183 assertThat(osuAccessPoints).hasSize(1); in updateOsuAccessPoints_doesNotReturnAlreadyProvisionedOsuAccessPoints()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/
DRecentLocationAccessesTest.java91 assertThat(requests).hasSize(2); in testGetAppList_shouldFilterRecentAccesses()
120 assertThat(requests).hasSize(2); in testGetAppList_shouldNotShowAndroidOS()
DRecentLocationAppsTest.java89 assertThat(requests).hasSize(2); in testGetAppList_shouldFilterRecentApps()
118 assertThat(requests).hasSize(2); in testGetAppList_shouldNotShowAndroidOS()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/serialization/
DKeyChainSnapshotSerializerTest.java100 assertThat(roundTrip().getKeyChainProtectionParams()).hasSize(1); in roundTrip_persistsParamsList()
136 assertThat(roundTripKeys()).hasSize(3); in roundTripKeys_hasCorrectLength()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
DTileUtilsTest.java130 assertThat(outTiles).hasSize(1); in getTilesForIntent_shouldParseKeyHintForSystemApp()
247 assertThat(outTiles).hasSize(1); in getTilesForIntent_tileAlreadyInCache_shouldUpdateMetaData()
257 assertThat(outTiles).hasSize(1); in getTilesForIntent_tileAlreadyInCache_shouldUpdateMetaData()
/frameworks/base/core/tests/coretests/src/com/android/internal/statusbar/
DRegisterStatusBarResultTest.java65 assertThat(copy.mIcons).hasSize(original.mIcons.size()); in testParcelable()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/cdc/
DRabinFingerprint64Test.java69 .hasSize(1); in computeFingerprint64_forSameWindow_returnsSameFingerprint()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DDataChangedJournalTest.java118 assertThat(journals).hasSize(2); in listJournals_returnsJournalsForEveryFileInDirectory()

12