Home
last modified time | relevance | path

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

123456789

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DMetricsCollectorTest.java166 assertThat(actualAtoms).hasSize(1); in onPullAtom_simSlotState_bothSimPresent()
181 assertThat(actualAtoms).hasSize(0); in onPullAtom_simSlotState_beforeUiccControllerReady()
198 assertThat(actualAtoms).hasSize(1); in onPullAtom_supportedRadioAccessFamily_singlePhone()
218 assertThat(actualAtoms).hasSize(1); in onPullAtom_supportedRadioAccessFamily_dualPhones()
240 assertThat(actualAtoms).hasSize(1); in onPullAtom_supportedRadioAccessFamily_dualPhonesWithUnknownRaf()
253 assertThat(actualAtoms).hasSize(0); in onPullAtom_supportedRadioAccessFamily_beforePhoneReady()
267 assertThat(actualAtoms).hasSize(0); in onPullAtom_voiceCallRatUsage_empty()
279 assertThat(actualAtoms).hasSize(0); in onPullAtom_voiceCallRatUsage_tooFrequent()
299 assertThat(actualAtoms).hasSize(3); // usage 2 should be dropped in onPullAtom_voiceCallRatUsage_bucketWithTooFewCalls()
314 assertThat(actualAtoms).hasSize(0); in onPullAtom_voiceCallSession_empty()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/autofill/
DAutofillManagerServiceTest.java56 assertThat(result).hasSize(1); in testGetAllowedCompatModePackages_onePackageOneUrl()
64 assertThat(result).hasSize(1); in testGetAllowedCompatModePackages_onePackageMultipleUrls()
72 assertThat(result).hasSize(1); in testGetAllowedCompatModePackages_multiplePackagesOneInvalid()
80 assertThat(result).hasSize(3); in testGetAllowedCompatModePackages_multiplePackagesMultipleUrls()
90 assertThat(result).hasSize(2); in testGetAllowedCompatModePackages_threePackagesOneInvalid()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/base/actions/
DQSTileIntentUserInputHandlerSubject.kt34 check("handledInputs").that(subject.handledInputs).hasSize(1) in <lambda>()
36 check("intentInputs").that(subject.intentInputs).hasSize(1) in <lambda>()
45 check("handledInputs").that(subject.handledInputs).hasSize(1) in <lambda>()
47 check("intentInputs").that(subject.pendingIntentInputs).hasSize(1) in <lambda>()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DDataUtilsTest.java102 assertThat(requestList).hasSize(10); in testGetGroupedNetworkRequestList()
107 assertThat(requestListList).hasSize(7); in testGetGroupedNetworkRequestList()
109 assertThat(requestList).hasSize(1); in testGetGroupedNetworkRequestList()
114 assertThat(requestList).hasSize(2); in testGetGroupedNetworkRequestList()
121 assertThat(requestList).hasSize(1); in testGetGroupedNetworkRequestList()
128 assertThat(requestList).hasSize(1); in testGetGroupedNetworkRequestList()
135 assertThat(requestList).hasSize(2); in testGetGroupedNetworkRequestList()
142 assertThat(requestList).hasSize(1); in testGetGroupedNetworkRequestList()
148 assertThat(requestList).hasSize(2); in testGetGroupedNetworkRequestList()
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiCecNetworkTest.java136 assertThat(mHdmiCecNetwork.getPortInfo()).hasSize(mHdmiPortInfo.length); in initializeNetwork_verifyPortInfo()
192 assertThat(mHdmiCecNetwork.getLocalDeviceList()).hasSize(1); in localDevices_verifyOne_tv()
205 assertThat(mHdmiCecNetwork.getLocalDeviceList()).hasSize(1); in localDevices_verifyOne_playback()
218 assertThat(mHdmiCecNetwork.getSafeCecDevicesLocked()).hasSize(1); in cecDevices_tracking_logicalAddressOnly()
255 assertThat(mHdmiCecNetwork.getSafeCecDevicesLocked()).hasSize(1); in cecDevices_tracking_reportPhysicalAddress()
301 assertThat(mHdmiCecNetwork.getSafeCecDevicesLocked()).hasSize(1); in cecDevices_tracking_reportPowerStatus()
324 assertThat(mHdmiCecNetwork.getSafeCecDevicesLocked()).hasSize(1); in cecDevices_tracking_reportOsdName()
346 assertThat(mHdmiCecNetwork.getSafeCecDevicesLocked()).hasSize(1); in cecDevices_tracking_reportVendorId()
386 assertThat(mHdmiCecNetwork.getSafeCecDevicesLocked()).hasSize(1); in cecDevices_tracking_updatesDeviceInfo()
411 assertThat(mHdmiCecNetwork.getSafeCecDevicesLocked()).hasSize(1); in cecDevices_tracking_updatesPhysicalAddress()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/demo/
DDemoMobileConnectionsRepositoryTest.kt124 assertThat(latest).hasSize(1) in <lambda>()
140 assertThat(latest).hasSize(1) in <lambda>()
156 assertThat(latest).hasSize(1) in <lambda>()
162 assertThat(latest).hasSize(1) in <lambda>()
178 assertThat(latest).hasSize(1) in <lambda>()
184 assertThat(latest).hasSize(1) in <lambda>()
199 assertThat(latest).hasSize(2) in <lambda>()
213 assertThat(latest).hasSize(2) in <lambda>()
228 assertThat(latest).hasSize(3) in <lambda>()
243 assertThat(latest).hasSize(0) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ui/viewmodel/
DScreenshotViewModelTest.kt39 assertThat(viewModel.actions.value).hasSize(1) in testAddAction()
53 assertThat(viewModel.actions.value).hasSize(2) in testRemoveAction()
58 assertThat(viewModel.actions.value).hasSize(1) in testRemoveAction()
74 assertThat(viewModel.actions.value).hasSize(1) in testUpdateActionAppearance()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/
DMediaPlayerDataTest.kt81 assertThat(players).hasSize(2) in addPlayingThenRemote()
132 assertThat(players).hasSize(2) in switchPlayersPlaying()
199 assertThat(players).hasSize(6) in fullOrderTest()
219 assertThat(MediaPlayerData.players()).hasSize(0) in testMoveMediaKeysAround()
230 assertThat(MediaPlayerData.players()).hasSize(1) in testMoveMediaKeysAround()
240 assertThat(MediaPlayerData.players()).hasSize(2) in testMoveMediaKeysAround()
244 assertThat(MediaPlayerData.players()).hasSize(1) in testMoveMediaKeysAround()
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/common/
DSettingsEntryRepositoryTest.kt44 assertThat(pageWithEntry).hasSize(4) in testGetPageWithEntry()
46 .hasSize(2) in testGetPageWithEntry()
48 .hasSize(3) in testGetPageWithEntry()
50 .hasSize(2) in testGetPageWithEntry()
57 assertThat(entry).hasSize(8) in testGetEntry()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/
DPackageParsingDeferErrorTest.kt64 assertThat(activities).hasSize(2) in <lambda>()
68 assertThat(intents).hasSize(1) in <lambda>()
86 assertThat(activities).hasSize(2) in <lambda>()
90 assertThat(intents).hasSize(1) in <lambda>()
106 assertThat(permissions).hasSize(1) in <lambda>()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/compat/overrides/
DAppCompatOverridesParserTest.java97 assertThat(result).hasSize(3); in parseRemoveOverrides_configHasWildcard_returnsAllInstalledPackagesToAllOwnedIds()
117 assertThat(result).hasSize(1); in parseRemoveOverrides_configHasSingleEntry_returnsPackageToChangeIds()
129 assertThat(result).hasSize(3); in parseRemoveOverrides_configHasMultipleEntries_returnsPackagesToChangeIds()
140 assertThat(result).hasSize(1); in parseRemoveOverrides_configHasPackageWithWildcardNoOwnedId_returnsWithoutPackage()
159 assertThat(result).hasSize(2); in parseRemoveOverrides_configHasInvalidChangeIds_returnsWithoutInvalidChangeIds()
203 assertThat(result).hasSize(1); in parsePackageOverrides_configWithSingleOverride_returnsOverride()
216 assertThat(result).hasSize(6); in parsePackageOverrides_configWithMultipleOverrides_returnsOverrides()
241 assertThat(result).hasSize(1); in parsePackageOverrides_changeIdsToSkipSpecified_returnsWithoutChangeIdsToSkip()
332 assertThat(result).hasSize(2); in parsePackageOverrides_someOverridesAreInvalid_returnsWithoutInvalidOverrides()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/
DDumpManagerTest.kt152 assertThat(dumpables).hasSize(3) in getDumpables_returnsSafeCollection()
168 assertThat(dumpManager.getLogBuffers()).hasSize(3) in getBuffers_returnsSafeCollection()
171 assertThat(buffers).hasSize(2) in getBuffers_returnsSafeCollection()
187 assertThat(dumpManager.getTableLogBuffers()).hasSize(3) in getTableBuffers_returnsSafeCollection()
190 assertThat(tables).hasSize(2) in getTableBuffers_returnsSafeCollection()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/wakeups/
DIrqDeviceMapTest.java67 assertThat(subsystems).hasSize(2); in simpleXml()
72 assertThat(subsystems).hasSize(2); in simpleXml()
85 assertThat(subsystems).hasSize(3); in complexXml()
94 assertThat(subsystems).hasSize(2); in complexXml()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLooperStatsTest.java96 assertThat(entries).hasSize(1); in testSingleMessageDispatched()
128 assertThat(entries).hasSize(1); in testThrewException()
153 assertThat(looperStats.getEntries()).hasSize(1); in testThrewException_notSampled()
161 assertThat(looperStats.getEntries()).hasSize(1); in testThrewException_notSampled()
201 assertThat(entries).hasSize(3); in testMultipleMessagesDispatched()
290 assertThat(entries).hasSize(1); in testDispatchDelayIsRecorded()
311 assertThat(entries).hasSize(0); in testDataNotCollectedBeforeDeviceStateSet()
326 assertThat(entries).hasSize(0); in testDataNotCollectedOnCharger()
342 assertThat(entries).hasSize(1); in testDataCollectedIfIgnoreBatteryStatusFlagSet()
366 assertThat(entries).hasSize(2); in testScreenStateCollected()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/scene/shared/flag/
DSceneContainerFlagParameterizationTest.kt39 Truth.assertThat(result).hasSize(2) in emptyAndSceneContainer()
47 Truth.assertThat(result).hasSize(2) in parameterizeSceneContainer()
56 Truth.assertThat(result).hasSize(4) in oneUnrelatedAndSceneContainer()
71 Truth.assertThat(result).hasSize(3) in oneDependencyAndSceneContainer()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRunningTasksTest.java85 assertThat(tasks).hasSize(numFetchTasks); in testTaskInfo_expectNoExtrasByDefault()
111 assertThat(tasks).hasSize(numFetchTasks); in testTaskInfo_expectExtrasWithKeepExtraFlag()
151 assertThat(fetchTasks).hasSize(numFetchTasks); in testGetTasksSortByFocusAndVisibility()
162 assertThat(fetchTasks).hasSize(numTasks); in testGetTasksSortByFocusAndVisibility()
207 assertThat(fetchTasks).hasSize(numTasks / 2); in testMultipleDisplays()
215 assertThat(fetchTasks).hasSize(numTasks / 2); in testMultipleDisplays()
223 assertThat(fetchTasks).hasSize(numTasks); in testMultipleDisplays()
/frameworks/base/services/tests/ondeviceintelligencetests/src/com/android/server/ondeviceintelligence/
DInferenceInfoStoreTest.java54 assertThat(inferenceInfos).hasSize(1); in testInferenceInfoParsesFromBundleSuccessfully()
67 assertThat(inferenceInfos).hasSize(1); in testInferenceInfoParsesFromPersistableBundleSuccessfully()
88 assertThat(inferenceInfos).hasSize(2); in testEvictionAfterMaxAge()
94 assertThat(inferenceInfos2).hasSize(1); //previous entries should have been evicted in testEvictionAfterMaxAge()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/security/
DCellularNetworkSecuritySafetySourceTest.java154 assertThat(data.getAllValues().get(1).getIssues()).hasSize(1); in setNullCipherState_notifyEncrypted_statusWithIssue()
166 assertThat(data.getAllValues().get(1).getIssues()).hasSize(1); in setNullCipherState_notifyNonEncrypted_statusWithIssue()
179 assertThat(data.getAllValues().get(2).getIssues()).hasSize(2); in setNullCipherState_multipleNonEncrypted_statusWithTwoIssues()
195 assertThat(data.getAllValues().get(1).getIssues()).hasSize(1); in clearNullCipherState()
224 assertThat(data.getAllValues().get(1).getIssues()).hasSize(1); in enableIdentifierDisclosureIssue_enableTwice()
247 assertThat(data.getAllValues().get(1).getIssues()).hasSize(1); in setIdentifierDisclosure_singleDisclosure_statusWithIssue()
260 assertThat(data.getAllValues().get(2).getIssues()).hasSize(2); in setIdentifierDisclosure_multipleDisclosures_statusWithTwoIssues()
274 assertThat(data.getAllValues().get(3).getIssues()).hasSize(2); in multipleIssuesKinds_statusWithTwoIssues()
293 assertThat(actions).hasSize(1); in learnMoreLinkEmpty_learnMoreIsHidden()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/camera/data/repository/
DFakeCameraSensorPrivacyRepositoryTest.kt45 assertThat(isCameraSensorPrivacySettingEnabled).hasSize(1) in <lambda>()
58 assertThat(isCameraSensorPrivacySettingEnabled).hasSize(1) in <lambda>()
72 assertThat(isCameraSensorPrivacySettingEnabled).hasSize(4) in <lambda>()
DFakeCameraAutoRotateRepositoryTest.kt46 assertThat(isCameraAutoRotateSettingEnabled).hasSize(1) in <lambda>()
60 assertThat(isCameraAutoRotateSettingEnabled).hasSize(1) in <lambda>()
75 assertThat(isCameraAutoRotateSettingEnabled).hasSize(4) in <lambda>()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DTimeToLiveHelperTest.java91 assertThat(mHelper.mKeys).hasSize(1); in testTimeout()
121 assertThat(mHelper.mKeys).hasSize(1); in testTimeoutExpires_twoEntries()
133 assertThat(mHelper.mKeys).hasSize(1); in testTimeout_earlierEntryAddedSecond()
141 assertThat(mHelper.mKeys).hasSize(2); in testTimeout_earlierEntryAddedSecond()
160 assertThat(mHelper.mKeys).hasSize(2); in testTimeout_earlierEntryAddedFirst()
179 assertThat(mHelper.mKeys).hasSize(1); in testTimeout_updateEarliestEntry()
208 assertThat(mHelper.mKeys).hasSize(2); in testTimeout_twoEntries_updateEarliestEntry()
DArchiveTest.java101 assertThat(actual).hasSize(expected.size()); in testRecordAndRead()
115 assertThat(actual).hasSize(3); in testCrossUser()
136 assertThat(actual).hasSize(expected.size()); in testRecordAndRead_overLimit()
156 assertThat(actual).hasSize(expected.size()); in testDoesNotRecordIfHistoryDisabled()
177 assertThat(actual).hasSize(expected.size()); in testRemovesEntriesWhenHistoryDisabled()
202 assertThat(actual).hasSize(expected.size()); in testRemoveChannelNotifications()
252 assertThat(actual).hasSize(expected.size()); in testRemoveChannelNotifications_concurrently()
277 assertThat(actual).hasSize(expected.size()); in testRemoveNotificationsByPackage()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ui/
DStatusBarIconControllerImplTest.kt93 assertThat(iconList.slots).hasSize(2) in <lambda>()
122 assertThat(iconList.slots).hasSize(2) in <lambda>()
147 assertThat(iconList.slots).hasSize(2) in <lambda>()
171 assertThat(iconList.slots).hasSize(2) in <lambda>()
195 assertThat(iconList.slots).hasSize(2) in <lambda>()
219 assertThat(iconList.slots).hasSize(2) in <lambda>()
369 assertThat(iconList.slots).hasSize(1) in <lambda>()
377 assertThat(iconList.slots).hasSize(1) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/commandline/
DParseableCommandTest.kt76 assertThat(flags).hasSize(2) in testFactoryMethods()
80 assertThat(params).hasSize(2) in testFactoryMethods()
83 assertThat(req).hasSize(1) in testFactoryMethods()
84 assertThat(opt).hasSize(1) in testFactoryMethods()
88 assertThat(reqSub).hasSize(1) in testFactoryMethods()
89 assertThat(optSub).hasSize(1) in testFactoryMethods()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/
DCustomTileUserActionInteractorTest.kt109 assertThat(inputHandler.pendingIntentInputs).hasSize(1) in clickStartsActivityWhenPossible()
110 assertThat(iQSTileService.clicks).hasSize(0) in clickStartsActivityWhenPossible()
123 assertThat(inputHandler.pendingIntentInputs).hasSize(0) in clickPassedToTheServiceWhenNoActivity()
124 assertThat(iQSTileService.clicks).hasSize(1) in clickPassedToTheServiceWhenNoActivity()
140 assertThat(inputHandler.intentInputs).hasSize(1) in longClickOpensResolvedIntent()
164 assertThat(inputHandler.intentInputs).hasSize(1) in longClickOpensDefaultIntentWhenNoResolved()

123456789