Home
last modified time | relevance | path

Searched refs:getFlow (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/pipeline/data/repository/
DFakeTileSpecRepository.kt33 return getFlow(userId).asStateFlow() in tilesSpecs()
38 with(getFlow(userId)) { in addTile()
51 with(getFlow(userId)) { in removeTiles()
58 getFlow(userId).value = tiles.filter { it != TileSpec.Invalid } in setTiles()
61 private fun getFlow(userId: Int): MutableStateFlow<List<TileSpec>> = in getFlow() method in com.android.systemui.qs.pipeline.data.repository.FakeTileSpecRepository
68 with(getFlow(restoreData.userId)) { in reconcileRestore()
74 with(getFlow(userId)) { value = defaultTilesRepository.defaultTiles + value } in prependDefault()
DFakeAutoAddRepository.kt29 return getFlow(userId) in autoAddedTiles()
34 with(getFlow(userId)) { value = value.toMutableSet().apply { add(spec) } } in markTileAdded()
38 with(getFlow(userId)) { value = value.toMutableSet().apply { remove(spec) } } in unmarkTileAdded()
41 private fun getFlow(userId: Int): MutableStateFlow<Set<TileSpec>> = in getFlow() method in com.android.systemui.qs.pipeline.data.repository.FakeAutoAddRepository
45 with(getFlow(restoreData.userId)) { value = value + restoreData.restoredAutoAddedTiles } in reconcileRestore()
DFakeInstalledTilesComponentRepository.kt33 return getFlow(userId).map { it.map { it.componentName }.toSet() } in getInstalledTilesComponents()
37 return getFlow(userId).value in getInstalledTilesServiceInfos()
41 getFlow(userId).value = in setInstalledPackagesForUser()
52 getFlow(userId).value = services.toList() in setInstalledServicesForUser()
55 private fun getFlow(userId: Int): MutableStateFlow<List<ServiceInfo>> = in getFlow() method in com.android.systemui.qs.pipeline.data.repository.FakeInstalledTilesComponentRepository
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/pipeline/domain/autoaddable/
DFakeAutoAddable.kt35 private fun getFlow(userId: Int): MutableStateFlow<AutoAddSignal?> = in getFlow() method in com.android.systemui.qs.pipeline.domain.autoaddable.FakeAutoAddable
39 return getFlow(userId).asStateFlow().filterNotNull() in autoAddSignal()
43 getFlow(userId).value = AutoAddSignal.Remove(spec) in sendRemoveSignal()
47 getFlow(userId).value = AutoAddSignal.Add(spec, position) in sendAddSignal()
51 getFlow(userId).value = AutoAddSignal.RemoveTracking(spec) in sendRemoveTrackingSignal()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/camera/data/repository/
DFakeCameraSensorPrivacyRepository.kt27 getFlow(userHandle.identifier) in isEnabled()
30 getFlow(userHandle.identifier).value = enabled in isEnabled()
34 private fun getFlow(userId: Int): MutableStateFlow<Boolean> = in getFlow() method in com.android.systemui.camera.data.repository.FakeCameraSensorPrivacyRepository
DFakeCameraAutoRotateRepository.kt28 getFlow(userHandle.identifier) in isCameraAutoRotateSettingEnabled()
31 getFlow(userHandle.identifier).value = enabled in isCameraAutoRotateSettingEnabled()
35 private fun getFlow(userId: Int): MutableStateFlow<Boolean> = in getFlow() method in com.android.systemui.camera.data.repository.FakeCameraAutoRotateRepository
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/accessibility/data/repository/
DFakeColorInversionRepository.kt27 return getFlow(userHandle.identifier) in isEnabled()
31 getFlow(userHandle.identifier).value = isEnabled in setIsEnabled()
36 private fun getFlow(userId: Int): MutableStateFlow<Boolean> { in getFlow() method in com.android.systemui.accessibility.data.repository.FakeColorInversionRepository
DFakeOneHandedModeRepository.kt27 return getFlow(userHandle.identifier) in isEnabled()
31 getFlow(userHandle.identifier).value = isEnabled in setIsEnabled()
36 private fun getFlow(userId: Int): MutableStateFlow<Boolean> { in getFlow() method
DFakeColorCorrectionRepository.kt27 return getFlow(userHandle.identifier) in isEnabled()
31 getFlow(userHandle.identifier).value = isEnabled in setIsEnabled()
36 private fun getFlow(userId: Int): MutableStateFlow<Boolean> { in getFlow() method
DFakeAccessibilityQsShortcutsRepository.kt34 return getFlow(userId).asSharedFlow() in a11yQsShortcutTargets()
51 getFlow(userId).emit(targets) in setA11yQsShortcutTargets()
54 private fun getFlow(userId: Int): MutableSharedFlow<Set<String>> = in getFlow() method in com.android.systemui.accessibility.data.repository.FakeAccessibilityQsShortcutsRepository