/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
D | CollectionUtilsTest.kt | 32 assertTrue(CollectionUtils.any(listOf("A", "B", "C", "D", "E")) { it == "E" }) in testAny() 33 assertFalse(CollectionUtils.any(listOf("A", "B", "C", "D", "E")) { it == "F" }) in testAny() 34 assertTrue(CollectionUtils.any(listOf("AA", "BBB")) { it.length >= 3 }) in testAny() 35 assertFalse(CollectionUtils.any(listOf("A", "BB", "CCC")) { it.length >= 4 }) in testAny() 36 assertFalse(CollectionUtils.any(listOf("A", "BB", "CCC")) { it.length < 0 }) in testAny() 37 assertFalse(CollectionUtils.any(listOf<String>()) { true }) in testAny() 38 assertFalse(CollectionUtils.any(listOf<String>()) { false }) in testAny() 39 assertTrue(CollectionUtils.any(listOf("A")) { true }) in testAny() 40 assertFalse(CollectionUtils.any(listOf("A")) { false }) in testAny() 45 assertEquals(4, CollectionUtils.indexOf(listOf("A", "B", "C", "D", "E")) { it == "E" }) in testIndexOf() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/storage/ |
D | BubbleVolatileRepositoryTest.kt | 56 private val user0bubbles = listOf(bubble1, bubble2, bubble3) 57 private val user11bubbles = listOf(bubble11, bubble12) 77 eq(listOf("shortcut-1", "shortcut-2")), eq(user0), in testAddBubbles() 80 eq(listOf("alice and bob")), eq(user10_managed), in testAddBubbles() 84 eq(listOf("shortcut-1")), eq(user11), in testAddBubbles() 87 eq(listOf("alice and bob")), eq(user11), in testAddBubbles() 90 repository.addBubbles(user0.identifier, listOf(bubble1)) in testAddBubbles() 91 assertEquals(listOf(bubble2, bubble3, bubble1), repository.getEntities(user0.identifier)) in testAddBubbles() 93 repository.addBubbles(user11.identifier, listOf(bubble12)) in testAddBubbles() 94 assertEquals(listOf(bubble11, bubble12), repository.getEntities(user11.identifier)) in testAddBubbles() [all …]
|
D | BubbleXmlHelperTest.kt | 36 private val user0Bubbles = listOf( 44 private val user1Bubbles = listOf( 148 expectedBubbles.put(0, listOf( in testReadXMLWithoutTaskId() 175 expectedBubbles.put(0, listOf( in testXMLWithoutLocusToLocus() 205 expectedBubbles.put(0, listOf( in testUpgradeToV2SavesPreviousData()
|
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
D | SystemStubMultiUserDisableUninstallTest.kt | 173 codePaths = listOf(CodePath.SAME, CodePath.SYSTEM) in <lambda>() 184 codePaths = listOf(CodePath.SAME, CodePath.SYSTEM) in <lambda>() 192 codePaths = listOf(CodePath.SAME, CodePath.SYSTEM) in <lambda>() 200 codePaths = listOf(CodePath.SYSTEM) in <lambda>() 211 codePaths = listOf(CodePath.SAME, CodePath.SYSTEM) in <lambda>() 219 codePaths = listOf(CodePath.SAME, CodePath.SYSTEM) in <lambda>() 227 codePaths = listOf(CodePath.SYSTEM) in <lambda>() 242 codePaths = listOf(CodePath.DIFFERENT, CodePath.SYSTEM) in <lambda>() 250 codePaths = listOf(CodePath.SAME, CodePath.SYSTEM) in <lambda>() 265 codePaths = listOf(CodePath.DIFFERENT, CodePath.SYSTEM) in <lambda>() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/ |
D | AndroidPackageInfoFlagBehaviorTest.kt | 78 pkgInfo(PackageManager.GET_ACTIVITIES) { listOf(it.activities) }, in <lambda>() 79 pkgInfo(PackageManager.GET_GIDS) { listOf(it.gids) }, in <lambda>() 80 pkgInfo(PackageManager.GET_INSTRUMENTATION) { listOf(it.instrumentation) }, in <lambda>() 81 pkgInfo(PackageManager.GET_META_DATA) { listOf(it.applicationInfo.metaData) }, in <lambda>() 82 pkgInfo(PackageManager.GET_PROVIDERS) { listOf(it.providers) }, in <lambda>() 83 pkgInfo(PackageManager.GET_RECEIVERS) { listOf(it.receivers) }, in <lambda>() 84 pkgInfo(PackageManager.GET_SERVICES) { listOf(it.services) }, in <lambda>() 85 pkgInfo(PackageManager.GET_SIGNATURES) { listOf(it.signatures) }, in <lambda>() 86 pkgInfo(PackageManager.GET_SIGNING_CERTIFICATES) { listOf(it.signingInfo) }, in <lambda>() 88 it.applicationInfo.run { listOf(sharedLibraryFiles, sharedLibraryFiles) } in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | PrivacyChipBuilderTest.kt | 45 val items = listOf(bar2, foo0, baz1, bar3) in testGenerateAppsList() 54 assertEquals(listOf("Bar", "Baz", "Foo"), appsList.map { it.packageName }) in testGenerateAppsList() 55 assertEquals(listOf(Privacy.TYPE_CAMERA, Privacy.TYPE_LOCATION), typesList[0]) in testGenerateAppsList() 56 assertEquals(listOf(Privacy.TYPE_CAMERA), typesList[1]) in testGenerateAppsList() 57 assertEquals(listOf(Privacy.TYPE_MICROPHONE), typesList[2]) in testGenerateAppsList() 72 val items = listOf(appLocation, appMicrophone, appCamera) in testOrder() 75 assertEquals(listOf("Camera", "Microphone", "Location"), appList) in testOrder()
|
D | PrivacyDialogControllerTest.kt | 171 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 183 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 202 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 219 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 233 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 251 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 281 listOf(usage_microphone, usage_camera) in <lambda>() 304 listOf(usage_recent, usage_active) in <lambda>() 327 listOf(usage_active, usage_active_moreRecent) in <lambda>() 354 listOf(usage_recent, usage_mostRecent, usage_moreRecent) in <lambda>() [all …]
|
D | PrivacyItemControllerTest.kt | 128 `when`(userTracker.userProfiles).thenReturn(listOf(UserInfo(CURRENT_USER_ID, "", 0))) in setup() 157 doReturn(listOf(AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, "", 0), in testDistinctItems() 169 doReturn(listOf(AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, "", 0), in testSimilarItemsDifferentTimeStamp() 255 doReturn(listOf(AppOpItem(AppOpsManager.OP_ACTIVATE_VPN, TEST_UID, "", 0), in testListShouldNotHaveNull() 269 val list = listOf(PrivacyItem(PrivacyType.TYPE_CAMERA, in testListShouldBeCopy() 293 doReturn(listOf(AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, "", 0), in testNotSendingLocationWhenOnlyMicCamera() 308 doReturn(listOf(AppOpItem(AppOpsManager.OP_COARSE_LOCATION, TEST_UID, "", 0))) in testNotUpdated_LocationChangeWhenOnlyMicCamera() 339 doReturn(listOf( in testLogListUpdated() 375 `when`(userTracker.userProfiles).thenReturn(listOf(UserInfo(otherUser, "", 0))) in testListFilterCurrentUser() 377 doReturn(listOf( in testListFilterCurrentUser() [all …]
|
D | PrivacyDialogTest.kt | 67 val list = listOf( in testStarterCalledWithCorrectParams() 111 val list = listOf( in testCorrectNumElements() 154 val list = listOf(element) in testUsingText() 180 val list = listOf(element) in testRecentText() 206 val list = listOf(element) in testEnterprise() 228 val list = listOf(element) in testPhoneCall() 250 val list = listOf(element) in testPhoneCallNotClickable() 271 val list = listOf(element) in testAttribution()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
D | ControlsControllerImplTest.kt | 122 TEST_STRUCTURE, listOf(TEST_CONTROL_INFO)) in <lambda>() 133 TEST_STRUCTURE_2, listOf(TEST_CONTROL_INFO_2)) in <lambda>() 210 `when`(persistenceWrapper.readFavorites()).thenReturn(listOf(TEST_STRUCTURE_INFO)) in <lambda>() 222 assertEquals(listOf(TEST_STRUCTURE_INFO), controller_other.getFavorites()) in <lambda>() 236 val list = listOf(control) in <lambda>() 282 controlLoadCallbackCaptor.value.accept(listOf(control)) in <lambda>() 317 controlLoadCallbackCaptor.value.accept(listOf(control, control2)) in <lambda>() 460 controlLoadCallbackCaptor.value.accept(listOf(control)) in <lambda>() 549 assertEquals(listOf(TEST_STRUCTURE_INFO), in <lambda>() 569 listOf(TEST_CONTROL_INFO, controlInfo) in <lambda>() [all …]
|
D | AuxiliaryPersistenceWrapperTest.kt | 71 listOf(structure1, structure2, structure3)) in any() 78 val expected = listOf(structure1, structure2, structure3) in testInitialStructures() 92 val expected = listOf(structure1, structure3) in testGetCachedValues_component() 100 val expected = listOf(structure2) in testGetCachedValues_componentOther() 108 verify(persistenceWrapper).storeFavorites(listOf(structure2)) in testGetCachedValues_component_removed()
|
D | ControlsFavoritePersistenceWrapperTest.kt | 62 listOf( in testSaveAndRestore() 70 listOf( in testSaveAndRestore() 75 val list = listOf(structureInfo1, structureInfo2) in testSaveAndRestore()
|
/frameworks/base/tools/sdkparcelables/tests/com/android/sdkparcelables/ |
D | ParcelableDetectorTest.kt | 31 assertEquals(parcelables, listOf("android/test/Parcelable")) in detect implements() 42 assertEquals(parcelables, listOf("android/test/Parcelable")) in detect implements in reverse order() 54 assertEquals(parcelables, listOf("android/test/Parcelable", "android/test/SuperParcelable")) in detect super implements() 66 assertEquals(parcelables, listOf("android/test/IParcelable", "android/test/Parcelable")) in detect super interface()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | ChannelEditorDialogControllerTest.kt | 84 .thenReturn(ParceledListSlice(listOf(group))) in setup() 92 group.channels = listOf(channel1, channel2) in testPrepareDialogForApp_noExtraChannels() 112 group.channels = listOf() in testPrepareDialogForApp_noProvidedChannels_noException() 123 group.channels = listOf(channel1, channel2, channel3, channel4) in testPrepareDialogForApp_retrievesUpTo4Channels() 134 group.channels = listOf(channel1, channel2) in testApply_demoteChannel() 153 group.channels = listOf(channel1, channel2) in testApply_demoteApp() 182 group.channels = listOf(channel1, channel2) in testSettingsClickListenerNull_noCrash() 198 group.channels = listOf(channel1, channel2) in testDoneButtonSaysDone_noChanges() 215 group.channels = listOf(channel1, channel2) in testDoneButtonGoesBackToNormal_changeThenNoChange()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationRankingManagerTest.kt | 123 listOf(b, a), in <lambda>() 124 rankingManager.updateRanking(null, listOf(a, b), "test")) in <lambda>() 161 listOf(a, b), in <lambda>() 162 rankingManager.updateRanking(null, listOf(a, b), "test")) in <lambda>() 205 assertEquals(listOf(b, a), rankingManager.updateRanking(null, listOf(a, b), "test")) in <lambda>() 249 listOf(b, a), in <lambda>() 250 rankingManager.updateRanking(null, listOf(a, b), "test")) in <lambda>() 294 listOf(b, a), in <lambda>() 295 rankingManager.updateRanking(null, listOf(a, b), "test")) in <lambda>() 314 rankingManager.updateRanking(RankingMap(arrayOf(e.ranking)), listOf(e), "test") in <lambda>() [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationManagerApiTest.kt | 72 val pkgWithDomains = mockPkgSetting(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>() 85 val pkgWithDomains = mockPkgSetting(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>() 100 val pkgWithDomains = mockPkgSetting(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>() 125 val pkg1 = mockPkgSetting(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>() 126 val pkg2 = mockPkgSetting(PKG_TWO, UUID_TWO, listOf(DOMAIN_3, DOMAIN_4)) in <lambda>() 167 val pkg1 = mockPkgSetting(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>() 168 val pkg2 = mockPkgSetting(PKG_TWO, UUID_TWO, listOf(DOMAIN_3, DOMAIN_4)) in <lambda>() 194 val pkg1 = mockPkgSetting(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>() 195 val pkg2 = mockPkgSetting(PKG_TWO, UUID_TWO, listOf(DOMAIN_3, DOMAIN_4)) in <lambda>() 196 val pkg3 = mockPkgSetting(PKG_THREE, UUID_THREE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>() [all …]
|
D | DomainVerificationValidIntentTest.kt | 53 succeeding += listOf(true, false).map { in parameters() 60 succeeding += listOf(true, false).map { in parameters() 68 failing += listOf( in parameters()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | DeviceControlsTileTest.kt | 124 .thenReturn(StructureInfo(ComponentName("pkg", "cls"), "structure", listOf())) in setUp() 215 listingCallbackCaptor.value.onServicesUpdated(listOf(serviceInfo)) in testStateUnavailableIfNotEnabled() 229 listingCallbackCaptor.value.onServicesUpdated(listOf(serviceInfo)) in testStateAvailableIfListings() 244 listingCallbackCaptor.value.onServicesUpdated(listOf(serviceInfo)) in testStateInactiveIfLocked() 257 listingCallbackCaptor.value.onServicesUpdated(listOf(serviceInfo)) in testMoveBetweenStates() 283 listingCallbackCaptor.value.onServicesUpdated(listOf(serviceInfo)) in handleClick_availableAndLocked_activityStarted() 304 listingCallbackCaptor.value.onServicesUpdated(listOf(serviceInfo)) in handleClick_availableAndUnlocked_activityStarted() 328 listingCallbackCaptor.value.onServicesUpdated(listOf(serviceInfo)) in handleClick_availableAfterUnlockAndIsLocked_keyguardDismissRequired() 355 listingCallbackCaptor.value.onServicesUpdated(listOf(serviceInfo)) in handleClick_availableAfterUnlockAndIsUnlocked_activityStarted()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/ |
D | MediaSessionBasedFilterTest.kt | 203 val controllers = listOf(controller1) in eq() 218 val controllers = listOf(controller1) in eq() 233 val controllers = listOf(controller1) in eq() 249 val controllers = listOf(controller1, controller2) in eq() 272 val controllers = listOf(controller1, controller2) in eq() 291 val controllers = listOf(controller1, controller2) in eq() 318 val controllers = listOf(controller1, controller2) in eq() 342 val controllers = listOf(controller1, controller2) in eq() 364 val controllers = listOf(controller1, controller2, controller3, controller4) in eq() 391 val controllers = listOf(controller1, controller2) in eq() [all …]
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/ime/ |
D | CloseImeWindowToHomeTest.kt | 97 this.visibleWindowsShownMoreThanOneConsecutiveEntry(listOf(IME_WINDOW_TITLE, in navBarWindowIsAlwaysVisible() 148 listOf(IME_WINDOW_TITLE, WindowManagerStateHelper.SPLASH_SCREEN_NAME)) in visibleLayersShownMoreThanOneConsecutiveEntry() 159 supportedRotations = listOf(Surface.ROTATION_0), in getParams() 160 supportedNavigationModes = listOf( in getParams()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | StatusBarStateEventTest.kt | 32 val events = listOf( in <lambda>() 39 val states = listOf( in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/lockscreen/ |
D | LockscreenSmartspaceControllerTest.kt | 127 private val userList = listOf( 273 val targets = listOf( in testSensitiveTargetsAreNotFilteredIfAllowed() 291 val targets = listOf( in testNonSensitiveTargetsAreNeverFiltered() 310 val targets = listOf( in testSensitiveTargetsAreFilteredOutForAppropriateUsers() 322 verify(plugin).onTargetsAvailable(eq(listOf( in testSensitiveTargetsAreFilteredOutForAppropriateUsers() 338 val targets = listOf( in testSettingsAreReloaded() 360 val targets = listOf( in testRecognizeSwitchToSecondaryUser() 372 verify(plugin).onTargetsAvailable(listOf( in testRecognizeSwitchToSecondaryUser()
|
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/ |
D | LogParserTest.kt | 96 .addAllSint64Params(listOf(1000, 20000, 300000)) in parse_formatting() 97 .addAllDoubleParams(listOf(0.1, 0.00001, 1000.1)) in parse_formatting() 119 .addAllSint64Params(listOf(1000, 20000, 300000)) in parse_invalidParamsTooMany() 120 .addAllDoubleParams(listOf(0.1, 0.00001, 1000.1)) in parse_invalidParamsTooMany()
|
D | CodeUtilsTest.kt | 128 assertTrue(imported.containsAll(listOf("a", "b"))) in staticallyImportedMethods_ab() 140 assertTrue(imported.containsAll(listOf("a"))) in staticallyImportedMethods_differentClass() 152 assertTrue(imported.containsAll(listOf("a"))) in staticallyImportedMethods_notStatic()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | RecommendationViewHolder.kt | 36 val mediaCoverItems = listOf<ImageView>( in <lambda>() 43 val mediaCoverContainers = listOf<ViewGroup>( in <lambda>() 50 val mediaCoverItemsResIds = listOf<@IntegerRes Int>( in <lambda>() 57 val mediaCoverContainersResIds = listOf<@IntegerRes Int>( in <lambda>()
|