/aosp12/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/tzs2range/write/ |
H A D | BankedTzIdSetsPackerTest.java | 42 listOf("One"), in simplePacking() 43 listOf("One", "Two"), in simplePacking() 51 listOf("Two"), in simplePacking() 76 listOf("One"), in overflowPacking() 77 listOf("One", "Two"), in overflowPacking() 83 List<List<String>> idSet1_2 = listOf(listOf("One", "Two", "Three", "Four", "Five")); in overflowPacking() 93 List<List<String>> idSet2 = listOf(listOf("Two")); in overflowPacking() 103 listOf("One"), in exceedMaxBankSize() 126 listOf("One"), in extractUniqueTzIdSets() 127 listOf("Two"), in extractUniqueTzIdSets() [all …]
|
/aosp12/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
H A D | CollectionUtilsTest.kt | 34 assertTrue(CollectionUtils.any(listOf("AA", "BBB")) { it.length >= 3 }) 35 assertFalse(CollectionUtils.any(listOf("A", "BB", "CCC")) { it.length >= 4 }) 36 assertFalse(CollectionUtils.any(listOf("A", "BB", "CCC")) { it.length < 0 }) 37 assertFalse(CollectionUtils.any(listOf<String>()) { true }) 38 assertFalse(CollectionUtils.any(listOf<String>()) { false }) 39 assertTrue(CollectionUtils.any(listOf("A")) { true }) 40 assertFalse(CollectionUtils.any(listOf("A")) { false }) 59 assertTrue(CollectionUtils.all(listOf<String>()) { true }) 60 assertTrue(CollectionUtils.all(listOf<String>()) { false }) 61 assertTrue(CollectionUtils.all(listOf(1)) { true }) [all …]
|
/aosp12/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/tzs2range/ |
H A D | BankedTzIdSetsTest.java | 37 bank1Builder.addTzIdSet(listOf(0)) in test() 38 .addTzIdSet(listOf(0, 1)) in test() 39 .addTzIdSet(listOf(0, 1, 2)); in test() 42 bank2Builder.addTzIdSet(listOf(1)) in test() 43 .addTzIdSet(listOf(1, 2)) in test() 44 .addTzIdSet(listOf(1, 2, 3)) in test() 45 .addTzIdSet(listOf(1, 2, 3, 4)); in test() 56 assertEquals(listOf("One"), bank1.getTzIdSet(0).getTzIds()); in test() 57 assertEquals(listOf(0), bank1.getTzIdSet(0).getStringIds()); in test() 65 assertEquals(listOf("Two"), bank2.getTzIdSet(0).getTzIds()); in test() [all …]
|
H A D | HeaderBlockTest.java | 19 import static com.android.timezone.location.storage.testing.TestSupport.listOf; 45 tzIdSetPacker.addTzIdSets(listOf( in readWrite() 46 listOf("One"), in readWrite() 47 listOf("One", "Two"), in readWrite() 48 listOf("Two", "Three"))); in readWrite() 66 tzIdSetPacker.addTzIdSets(listOf( in visit() 67 listOf("One"), in visit() 68 listOf("One", "Two"), in visit() 69 listOf("Two", "Three"))); in visit()
|
H A D | TzS2RangeFileTest.java | 20 import static com.android.timezone.location.storage.testing.TestSupport.listOf; 49 listOf("One")); in findEntryByCellId() 53 listOf("Two")); in findEntryByCellId() 58 listOf("Three")); in findEntryByCellId() 59 tzS2RangeFileWriter.processRanges(listOf(range1, range2, range3).iterator()); in findEntryByCellId()
|
H A D | TzS2RangeTest.java | 21 import static com.android.timezone.location.storage.testing.TestSupport.listOf; 39 List<String> tzIds = listOf("One", "Two"); in constructorInvariants() 51 List<String> tzIdSet = listOf("One", "Two"); in equalsAndHashcode() 61 TzS2Range tzS2Range3 = new TzS2Range(startCellId, endCellId, listOf("Not One", "Not Two")); in equalsAndHashcode()
|
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
H A D | ConnectedClientsTrackerTest.kt | 43 private val servers = listOf(server1, server2) 48 private val client1 = TetheredClient(client1Addr, listOf( 55 private val client2 = TetheredClient(client2Addr, listOf( 80 doReturn(listOf(client1)).`when`(server1).allLeases 81 assertSameClients(listOf(client1), assertNewClients(tracker, servers, listOf(wifiClient1))) 93 doReturn(listOf(client3)).`when`(server2).allLeases 98 assertSameClients(listOf(client1, client3), 105 assertSameClients(listOf(client1, client3), 119 doReturn(listOf(client3)).`when`(server2).allLeases 125 val expectedClients = listOf( [all …]
|
H A D | TetheringNotificationUpdaterTest.kt | 235 verifyNotificationCancelled(listOf(NO_UPSTREAM_NOTIFICATION_ID, ROAMING_NOTIFICATION_ID)) 244 verifyNotificationCancelled(listOf(RESTRICTED_NOTIFICATION_ID)) 295 verifyNotificationCancelled(listOf(NO_UPSTREAM_NOTIFICATION_ID, ROAMING_NOTIFICATION_ID)) 299 verifyNotificationCancelled(listOf(NO_UPSTREAM_NOTIFICATION_ID, ROAMING_NOTIFICATION_ID)) 314 verifyNotificationCancelled(listOf(NO_UPSTREAM_NOTIFICATION_ID)) 325 verifyNotificationCancelled(listOf(NO_UPSTREAM_NOTIFICATION_ID, ROAMING_NOTIFICATION_ID)) 330 verifyNotificationCancelled(listOf(NO_UPSTREAM_NOTIFICATION_ID, ROAMING_NOTIFICATION_ID)) 338 verifyNotificationCancelled(listOf(NO_UPSTREAM_NOTIFICATION_ID)) 390 verifyNotificationCancelled(listOf(ROAMING_NOTIFICATION_ID)) 400 verifyNotificationCancelled(listOf(ROAMING_NOTIFICATION_ID), false) [all …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/storage/ |
H A D | BubbleVolatileRepositoryTest.kt | 56 private val user0bubbles = listOf(bubble1, bubble2, bubble3) 57 private val user11bubbles = listOf(bubble11, bubble12) 80 eq(listOf("alice and bob")), eq(user10_managed), 84 eq(listOf("shortcut-1")), eq(user11), 87 eq(listOf("alice and bob")), eq(user11), 90 repository.addBubbles(user0.identifier, listOf(bubble1)) 107 eq(listOf("shortcut-2")), eq(user0), 115 eq(listOf("alice and bob")), eq(user11), 127 eq(listOf("shortcut-2")), eq(user0), 130 eq(listOf("alice and bob")), eq(user10_managed), [all …]
|
/aosp12/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
H A D | SystemStubMultiUserDisableUninstallTest.kt | 173 codePaths = listOf(CodePath.SAME, CodePath.SYSTEM) 184 codePaths = listOf(CodePath.SAME, CodePath.SYSTEM) 192 codePaths = listOf(CodePath.SAME, CodePath.SYSTEM) 200 codePaths = listOf(CodePath.SYSTEM) 211 codePaths = listOf(CodePath.SAME, CodePath.SYSTEM) 219 codePaths = listOf(CodePath.SAME, CodePath.SYSTEM) 227 codePaths = listOf(CodePath.SYSTEM) 417 codePaths = listOf(CodePath.SYSTEM) 448 codePaths = listOf(CodePath.SYSTEM) 479 codePaths = listOf(CodePath.SYSTEM) [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/ |
H A D | AndroidPackageInfoFlagBehaviorTest.kt | 78 pkgInfo(PackageManager.GET_ACTIVITIES) { listOf(it.activities) }, 79 pkgInfo(PackageManager.GET_GIDS) { listOf(it.gids) }, 80 pkgInfo(PackageManager.GET_INSTRUMENTATION) { listOf(it.instrumentation) }, 82 pkgInfo(PackageManager.GET_PROVIDERS) { listOf(it.providers) }, 83 pkgInfo(PackageManager.GET_RECEIVERS) { listOf(it.receivers) }, 84 pkgInfo(PackageManager.GET_SERVICES) { listOf(it.services) }, 85 pkgInfo(PackageManager.GET_SIGNATURES) { listOf(it.signatures) }, 86 pkgInfo(PackageManager.GET_SIGNING_CERTIFICATES) { listOf(it.signingInfo) }, 91 listOf(it.configPreferences, it.reqFeatures, it.featureGroups) 97 appInfo(PackageManager.GET_META_DATA) { listOf(it.metaData) }, [all …]
|
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/common/android/net/ |
H A D | TetheredClientTest.kt | 65 listOf(TEST_ADDRINFO1, TEST_ADDRINFO2), 71 listOf(AddressInfo(TEST_ADDR1, TEST_OTHER_HOSTNAME), TEST_ADDRINFO2), 77 listOf(AddressInfo(TEST_ADDR1, null), TEST_ADDRINFO2), 83 listOf(TEST_ADDRINFO2), 89 listOf(TEST_ADDRINFO1, TEST_ADDRINFO2), 95 val client1 = TetheredClient(TEST_MACADDR, listOf(TEST_ADDRINFO1), TETHERING_USB) 96 val client2 = TetheredClient(TEST_OTHER_MACADDR, listOf(TEST_ADDRINFO2), TETHERING_USB) 99 listOf(TEST_ADDRINFO1, TEST_ADDRINFO2), 106 assertEquals(listOf(TEST_ADDRINFO1, TEST_ADDRINFO2), makeTestClient().addresses) 120 listOf(TEST_ADDRINFO1, TEST_ADDRINFO2),
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | DisableFlagsLoggerTest.kt | 27 private val disable1Flags = listOf( 32 private val disable2Flags = listOf( 158 disable1FlagsList = listOf( 162 listOf() 171 disable1FlagsList = listOf( 175 listOf() 184 disable1FlagsList = listOf(), 185 disable2FlagsList = listOf( 197 disable1FlagsList = listOf(), 198 disable2FlagsList = listOf(
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
H A D | PrivacyDialogControllerTest.kt | 287 listOf(usage_microphone, usage_camera) 310 listOf(usage_recent, usage_active) 333 listOf(usage_active, usage_active_moreRecent) 383 listOf(usage_camera, usage_location, usage_microphone) 407 listOf(usage_camera, usage_location, usage_microphone) 433 listOf(usage_camera, usage_location, usage_microphone) 457 listOf(usage_camera, usage_location, usage_microphone) 474 .thenReturn(listOf(usage_enterprise)) 488 .thenReturn(listOf(usage_other)) 564 `when`(userTracker.userProfiles).thenReturn(listOf( [all …]
|
H A D | PrivacyChipBuilderTest.kt | 45 val items = listOf(bar2, foo0, baz1, bar3) 54 assertEquals(listOf("Bar", "Baz", "Foo"), appsList.map { it.packageName }) 55 assertEquals(listOf(Privacy.TYPE_CAMERA, Privacy.TYPE_LOCATION), typesList[0]) 56 assertEquals(listOf(Privacy.TYPE_CAMERA), typesList[1]) 57 assertEquals(listOf(Privacy.TYPE_MICROPHONE), typesList[2]) 72 val items = listOf(appLocation, appMicrophone, appCamera) 75 assertEquals(listOf("Camera", "Microphone", "Location"), appList)
|
H A D | PrivacyItemControllerTest.kt | 157 doReturn(listOf(AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, "", 0), 169 doReturn(listOf(AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, "", 0), 269 val list = listOf(PrivacyItem(PrivacyType.TYPE_CAMERA, 339 doReturn(listOf( 377 doReturn(listOf( 400 doReturn(listOf( 423 doReturn(listOf( 443 doReturn(listOf( 459 doReturn(listOf( 482 doReturn(listOf( [all …]
|
H A D | PrivacyDialogTest.kt | 67 val list = listOf( 111 val list = listOf( 154 val list = listOf(element) 180 val list = listOf(element) 206 val list = listOf(element) 228 val list = listOf(element) 250 val list = listOf(element) 271 val list = listOf(element)
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
H A D | ControlsControllerImplTest.kt | 122 TEST_STRUCTURE, listOf(TEST_CONTROL_INFO)) 236 val list = listOf(control) 549 assertEquals(listOf(TEST_STRUCTURE_INFO), 569 listOf(TEST_CONTROL_INFO, controlInfo) 580 listOf(controlInfo, TEST_CONTROL_INFO) 594 assertEquals(listOf(TEST_STRUCTURE_INFO), 615 assertEquals(listOf(TEST_CONTROL_INFO), 630 listOf(controlInfo) 636 listOf(TEST_CONTROL_INFO) 641 assertEquals(listOf(TEST_CONTROL_INFO), controller [all …]
|
H A D | AuxiliaryPersistenceWrapperTest.kt | 71 listOf(structure1, structure2, structure3)) 78 val expected = listOf(structure1, structure2, structure3) 92 val expected = listOf(structure1, structure3) 100 val expected = listOf(structure2) 108 verify(persistenceWrapper).storeFavorites(listOf(structure2))
|
/aosp12/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
H A D | NetworkRankerTest.kt | 57 val scores = listOf(winner) 66 val scores = listOf( 79 val scores = listOf( 95 val scores = listOf( 109 val scores = listOf( 123 val scores = listOf( 137 val scores = listOf( 153 val scores = listOf( 165 val scores = listOf(
|
/aosp12/packages/modules/GeoTZ/s2storage/tools/src/java/com/android/timezone/location/tools/ |
H A D | CreateTestFile.java | 47 listOf("One")); in main() 51 listOf("Two")); in main() 57 listOf("Three")); in main() 58 List<TzS2Range> allRanges = listOf(range1, range2, range3); in main() 65 private static <E> List<E> listOf(E... values) { in listOf() method in CreateTestFile
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
H A D | ChannelEditorDialogControllerTest.kt | 84 .thenReturn(ParceledListSlice(listOf(group))) 92 group.channels = listOf(channel1, channel2) 112 group.channels = listOf() 123 group.channels = listOf(channel1, channel2, channel3, channel4) 134 group.channels = listOf(channel1, channel2) 153 group.channels = listOf(channel1, channel2) 182 group.channels = listOf(channel1, channel2) 198 group.channels = listOf(channel1, channel2) 215 group.channels = listOf(channel1, channel2)
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
H A D | NotificationRankingManagerTest.kt | 123 listOf(b, a), 124 rankingManager.updateRanking(null, listOf(a, b), "test")) 161 listOf(a, b), 162 rankingManager.updateRanking(null, listOf(a, b), "test")) 205 assertEquals(listOf(b, a), rankingManager.updateRanking(null, listOf(a, b), "test")) 249 listOf(b, a), 250 rankingManager.updateRanking(null, listOf(a, b), "test")) 294 listOf(b, a), 295 rankingManager.updateRanking(null, listOf(a, b), "test")) 411 assertThat(rankingManager.updateRanking(null, listOf(a, b, c), "test")) [all …]
|
/aosp12/frameworks/base/tools/sdkparcelables/tests/com/android/sdkparcelables/ |
H A D | ParcelableDetectorTest.kt | 31 assertEquals(parcelables, listOf("android/test/Parcelable")) 42 assertEquals(parcelables, listOf("android/test/Parcelable")) 54 assertEquals(parcelables, listOf("android/test/Parcelable", "android/test/SuperParcelable")) 66 assertEquals(parcelables, listOf("android/test/IParcelable", "android/test/Parcelable"))
|
/aosp12/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
H A D | DomainVerificationManagerApiTest.kt | 125 val pkg1 = mockPkgSetting(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) 126 val pkg2 = mockPkgSetting(PKG_TWO, UUID_TWO, listOf(DOMAIN_3, DOMAIN_4)) 167 val pkg1 = mockPkgSetting(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) 168 val pkg2 = mockPkgSetting(PKG_TWO, UUID_TWO, listOf(DOMAIN_3, DOMAIN_4)) 194 val pkg1 = mockPkgSetting(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) 195 val pkg2 = mockPkgSetting(PKG_TWO, UUID_TWO, listOf(DOMAIN_3, DOMAIN_4)) 196 val pkg3 = mockPkgSetting(PKG_THREE, UUID_THREE, listOf(DOMAIN_1, DOMAIN_2)) 285 val pkg2 = mockPkgSetting(PKG_TWO, UUID_TWO, listOf(DOMAIN_1, DOMAIN_2)) 295 listOf(DOMAIN_1, "").forEach { 492 domains: List<String> = listOf(DOMAIN_1, DOMAIN_2), [all …]
|