Home
last modified time | relevance | path

Searched refs:toList (Results 1 – 25 of 232) sorted by relevance

12345678910

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DListenerSetTest.kt43 assertThat(runnableSet.toList()).isEmpty() in addIfAbsent_doesNotDoubleAdd()
47 assertThat(runnableSet.toList()).containsExactly(runnable1) in addIfAbsent_doesNotDoubleAdd()
51 assertThat(runnableSet.toList()).containsExactly(runnable1, runnable2) in addIfAbsent_doesNotDoubleAdd()
55 assertThat(runnableSet.toList()).containsExactly(runnable1, runnable2) in addIfAbsent_doesNotDoubleAdd()
63 assertThat(runnableSet.toList()).isEmpty() in remove_removesListener()
66 assertThat(runnableSet.toList()).containsExactly(runnable1, runnable2) in remove_removesListener()
70 assertThat(runnableSet.toList()).containsExactly(runnable2) in remove_removesListener()
74 assertThat(runnableSet.toList()).containsExactly(runnable2) in remove_removesListener()
78 assertThat(runnableSet.toList()).isEmpty() in remove_removesListener()
95 assertThat(runnableSet.toList()).isEmpty() in remove_isReentrantSafe()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/storage/
DBubbleVolatileRepositoryTest.kt78 assertEquals(user0bubbles, repository.getEntities(user0.identifier).toList()) in testAddBubbles()
79 assertEquals(user11bubbles, repository.getEntities(user11.identifier).toList()) in testAddBubbles()
110 assertEquals(listOf(bubble1, bubble2), repository.getEntities(user0.identifier).toList()) in testRemoveBubbles()
118 assertEquals(listOf(bubble11), repository.getEntities(user11.identifier).toList()) in testRemoveBubbles()
130 assertEquals(listOf(bubble2, bubble3), repository.getEntities(user0.identifier).toList()) in testAddAndRemoveBubblesWhenExceedingCapacity()
140 assertEquals(listOf(bubble3, bubble1), repository.getEntities(user0.identifier).toList()) in testAddAndRemoveBubblesWhenExceedingCapacity()
163 assertThat(repository.getEntities(user0.identifier).toList()) in testRemoveBubblesForUser()
169 assertThat(repository.getEntities(user0.identifier).toList()).isEmpty() in testRemoveBubblesForUser()
179 assertThat(repository.getEntities(user0.identifier).toList()) in testRemoveBubblesForUser_parentUserRemoved()
185 assertThat(repository.getEntities(user0.identifier).toList()) in testRemoveBubblesForUser_parentUserRemoved()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/listbuilder/
DShadeListBuilderHelperTest.kt34 assertThat(getContiguousSubLists("AAAAAA".toList()) { it }) in testGetContiguousSubLists()
39 assertThat(getContiguousSubLists("AAABBB".toList()) { it }) in testGetContiguousSubLists()
45 assertThat(getContiguousSubLists("AAABAA".toList()) { it }) in testGetContiguousSubLists()
52 assertThat(getContiguousSubLists("AAABAA".toList(), minLength = 2) { it }) in testGetContiguousSubLists()
58 assertThat(getContiguousSubLists("AAABBBBCCDEEE".toList()) { it }) in testGetContiguousSubLists()
67 assertThat(getContiguousSubLists("AAABBBBCCDEEE".toList(), minLength = 2) { it }) in testGetContiguousSubLists()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/settings/
DControlsSettingsRepositoryImplTest.kt28 import kotlinx.coroutines.flow.toList
64 userRepository.setUserInfos(ALL_USERS.values.toList()) in setUp()
85 underTest.canShowControlsInLockscreen.toList(values) in showInLockScreen()
112 underTest.canShowControlsInLockscreen.toList(values) in showInLockScreen_changesInOtherUsersAreNotQueued()
132 underTest.allowActionOnTrivialControlsInLockscreen.toList(values) in actionInLockScreen()
159 underTest.allowActionOnTrivialControlsInLockscreen.toList(values) in actionInLockScreen_changesInOtherUsersAreNotQueued()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/quickaffordance/
DFlashlightQuickAffordanceConfigTest.kt30 import kotlinx.coroutines.flow.toList
68 val job = launch(UnconfinedTestDispatcher()) { underTest.lockScreenState.toList(values) } in <lambda>()
91 val job = launch(UnconfinedTestDispatcher()) { underTest.lockScreenState.toList(values) } in <lambda>()
114 val job = launch(UnconfinedTestDispatcher()) { underTest.lockScreenState.toList(values) } in <lambda>()
137 val job = launch(UnconfinedTestDispatcher()) { underTest.lockScreenState.toList(values) } in <lambda>()
154 val job = launch(UnconfinedTestDispatcher()) { underTest.lockScreenState.toList(values) } in <lambda>()
176 val job = launch(UnconfinedTestDispatcher()) { underTest.lockScreenState.toList(values) } in <lambda>()
DKeyguardQuickAffordanceLocalUserSelectionManagerTest.kt34 import kotlinx.coroutines.flow.toList
96 underTest.selections.toList(affordanceIdsBySlotId) in <lambda>()
181 underTest.selections.toList(affordanceIdsBySlotId) in <lambda>()
265 underTest.selections.toList(affordanceIdsBySlotId) in <lambda>()
296 underTest.selections.toList(affordanceIdsBySlotId) in <lambda>()
328 underTest.selections.toList(affordanceIdsBySlotId) in <lambda>()
349 underTest.selections.toList(affordanceIdsBySlotId) in <lambda>()
DKeyguardQuickAffordanceRemoteUserSelectionManagerTest.kt31 import kotlinx.coroutines.flow.toList in <lambda>()
118 val job = launch { underTest.selections.toList(values) } in <lambda>()
170 val job = launch { underTest.selections.toList(values) } in <lambda>()
/frameworks/base/services/core/java/com/android/server/integrity/engine/
DRuleEvaluator.java56 .collect(Collectors.toList()); in evaluateRules()
62 .collect(Collectors.toList()); in evaluateRules()
72 .collect(Collectors.toList()); in evaluateRules()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/
DContactThrottlingList.java67 new ContactInfo(uri, sipCode, timestamp)).collect(Collectors.toList()); in addToThrottlingList()
78 contactInfo.mContactUri).collect(Collectors.toList()); in getNotInThrottlingListUris()
91 .collect(Collectors.toList()); in getInThrottlingListUris()
102 .collect(Collectors.toList()); in cleanUpExpiredContacts()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/ui/viewmodel/
DUserSwitcherViewModelTest.kt53 import kotlinx.coroutines.flow.toList in <lambda>()
209 val job = launch(testDispatcher) { underTest.users.toList(userViewModels) } in <lambda>()
238 val job = launch(testDispatcher) { underTest.maximumUserColumns.toList(values) } in <lambda>()
250 val job = launch(testDispatcher) { underTest.maximumUserColumns.toList(values) } in <lambda>()
262 val job = launch(testDispatcher) { underTest.isOpenMenuButtonVisible.toList(isVisible) } in <lambda>()
277 val job = launch(testDispatcher) { underTest.isOpenMenuButtonVisible.toList(isVisible) } in <lambda>()
287 val job = launch(testDispatcher) { underTest.isMenuVisible.toList(isMenuVisible) } in <lambda>()
304 val job = launch(testDispatcher) { underTest.menu.toList(actions) } in <lambda>()
325 launch(testDispatcher) { underTest.isFinishRequested.toList(isFinishRequested) } in <lambda>()
366 val job = launch(testDispatcher) { underTest.users.toList(userViewModels) } in <lambda>()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DVibrationTest.java21 import static java.util.stream.Collectors.toList;
43 .collect(toList())) in status_hasUniqueProtoEnumValues()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DDisplayTrackerImpl.kt49 val list = synchronized(displayCallbacks) { displayCallbacks.toList() } in onDisplayAdded()
54 val list = synchronized(displayCallbacks) { displayCallbacks.toList() } in onDisplayRemoved()
59 val list = synchronized(displayCallbacks) { displayCallbacks.toList() } in onDisplayChanged()
72 val list = synchronized(brightnessCallbacks) { brightnessCallbacks.toList() } in onDisplayChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/kotlin/
DFlowUtilTests.kt38 import kotlinx.coroutines.flow.toList in <lambda>()
256 }.throttle(1000, choreographer.fakeClock).toList(output) in <lambda>()
291 }.throttle(1000, choreographer.fakeClock).toList(output) in <lambda>()
329 }.throttle(1000, choreographer.fakeClock).toList(output) in <lambda>()
367 }.throttle(1000, choreographer.fakeClock).toList(output) in <lambda>()
408 assertThat(flow.toList()).containsExactly(*emissions).inOrder() in assertThatFlow()
409 suspend fun emitsNothing() = assertThat(flow.toList()).isEmpty() in assertThatFlow()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardActiveUnlockModel.kt88 fun toList(): List<Row> { in toList() method in com.android.keyguard.KeyguardActiveUnlockModel.Buffer
89 return buffer.asSequence().map { it.asStringList }.toList() in toList()
DKeyguardFingerprintListenModel.kt130 fun toList(): List<Row> { in toList() method in com.android.keyguard.KeyguardFingerprintListenModel.Buffer
131 return buffer.asSequence().map { it.asStringList }.toList() in toList()
DKeyguardFaceListenModel.kt127 fun toList(): List<Row> { in toList() method
128 return buffer.asSequence().map { it.asStringList }.toList() in toList()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/parsing/
DSystemPartitionParseTest.kt52 ?.toList() in <lambda>()
61 it.listFiles()?.toList().orEmpty() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DNPVCDownEventState.kt110 fun toList(): List<Row> { in toList() method
111 return buffer.asSequence().map { it.asStringList }.toList() in toList()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DStandardNetworkDetailsTracker.java24 import static java.util.stream.Collectors.toList;
179 .collect(toList())); in conditionallyUpdateConfig()
188 .collect(toList())); in cacheNewScanResults()
/frameworks/base/media/java/android/media/
DAudioPort.java134 .collect(Collectors.toList())); in AudioPort()
136 .collect(Collectors.toList())); in AudioPort()
138 .collect(Collectors.toList())); in AudioPort()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/settings/
DFakeUserTracker.kt75 val copy = callbacks.toList() in onUserChanging()
81 val copy = callbacks.toList() in onUserChanged()
/frameworks/base/services/java/com/android/server/
DSystemConfigService.java18 import static java.util.stream.Collectors.toList;
62 .collect(toList())));
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderDiffTest.java25 import static java.util.stream.Collectors.toList;
298 .map(t -> Arrays.stream(t.usageTimesMillis).boxed().collect(toList())) in cpuUsages()
299 .collect(toList()); in cpuUsages()
307 .collect(toList()); in threadNames()
/frameworks/base/packages/SystemUI/src/com/android/systemui/demomode/
DDemoModeController.kt171 synchronized(this) { copy = receivers.toList() } in <lambda>()
181 synchronized(this) { copy = receivers.toList() } in <lambda>()
214 synchronized(this) { copy = receivers.toList() } in <lambda>()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
DEncryptedFullRestoreTaskTest.java24 import static java.util.stream.Collectors.toList;
127 return Bytes.toArray(Bytes.asList(input).stream().map(b -> b + 1).collect(toList())); in fakeDecrypt()

12345678910