/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/ |
D | BooleanFlowOperators.kt | 19 import kotlinx.coroutines.flow.Flow in <lambda>() 34 fun allOf(vararg flows: Flow<Boolean>): Flow<Boolean> = flows.asIterable().all() in <lambda>() 40 fun Array<Flow<Boolean>>.all(): Flow<Boolean> = allOf(*this) in <lambda>() 46 fun Iterable<Flow<Boolean>>.all(): Flow<Boolean> = in <lambda>() 57 fun not(flow: Flow<Boolean>) = flow.map { !it } in <lambda>() 63 fun anyOf(vararg flows: Flow<Boolean>): Flow<Boolean> = flows.asIterable().any() in <lambda>() 69 fun Array<Flow<Boolean>>.any(): Flow<Boolean> = anyOf(*this) in <lambda>() 75 fun Iterable<Flow<Boolean>>.any(): Flow<Boolean> = in <lambda>() 82 fun noneOf(vararg flows: Flow<Boolean>): Flow<Boolean> = not(anyOf(*flows)) in <lambda>() 88 fun Array<Flow<Boolean>>.none(): Flow<Boolean> = noneOf(*this) in <lambda>() [all …]
|
D | Flow.kt | 28 import kotlinx.coroutines.flow.Flow in <lambda>() 45 fun <T, R> Flow<T>.pairwiseBy(transform: suspend (old: T, new: T) -> R): Flow<R> = flow { in <lambda>() 62 fun <S, T : S, R> Flow<T>.pairwiseBy( in pairwiseBy() 65 ): Flow<R> = pairwiseBy(getInitialValue = { initialValue }, transform) in pairwiseBy() 76 fun <S, T : S, R> Flow<T>.pairwiseBy( in pairwiseBy() 79 ): Flow<R> = flow { in pairwiseBy() 93 fun <T> Flow<T>.pairwise(): Flow<WithPrev<T, T>> = pairwiseBy(::WithPrev) in pairwise() 101 fun <S, T : S> Flow<T>.pairwise(initialValue: S): Flow<WithPrev<S, T>> = in pairwise() 108 fun <T> MutableSharedFlow<T>.onSubscriberAdded(): Flow<Unit> { in pairwise() 126 fun <T, R> Flow<Set<T>>.setChangesBy( in setChangesBy() [all …]
|
D | Utils.kt | 20 import kotlinx.coroutines.flow.Flow in <lambda>() 61 fun <A, B> Flow<A>.sampleFilter(b: Flow<B>, predicate: (B) -> Boolean): Flow<A> { in <lambda>() 71 fun <A, B, C> Flow<A>.sample(b: Flow<B>, c: Flow<C>): Flow<Triple<A, B, C>> { in <lambda>() 81 fun <A, B, C, D> Flow<A>.sample( in <lambda>() 82 b: Flow<B>, in <lambda>() 83 c: Flow<C>, in <lambda>() 84 d: Flow<D> in <lambda>() 85 ): Flow<Quad<A, B, C, D>> { in <lambda>() 95 fun <A, B, C, D, E> Flow<A>.sample( in <lambda>() 96 b: Flow<B>, in <lambda>() [all …]
|
D | JavaAdapter.kt | 32 import kotlinx.coroutines.flow.Flow 55 flow: Flow<T>, in alwaysCollectFlow() 70 flow: Flow<T>, in collectFlow() 88 flow: Flow<T>, in collectFlow() 97 fun <A, B, R> combineFlows(flow1: Flow<A>, flow2: Flow<B>, bifunction: (A, B) -> R): Flow<R> { in combineFlows() 102 flow1: Flow<A>, in combineFlows() 103 flow2: Flow<B>, in combineFlows() 104 flow3: Flow<C>, in combineFlows() 106 ): Flow<R> { in combineFlows()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/viewmodel/ |
D | MobileIconViewModel.kt | 35 import kotlinx.coroutines.flow.Flow in <lambda>() 52 val icon: Flow<SignalIconModel> in <lambda>() 53 val contentDescription: Flow<ContentDescription?> in <lambda>() 54 val roaming: Flow<Boolean> in <lambda>() 56 val networkTypeIcon: Flow<Icon.Resource?> in <lambda>() 59 val activityInVisible: Flow<Boolean> in <lambda>() 60 val activityOutVisible: Flow<Boolean> in <lambda>() 61 val activityContainerVisible: Flow<Boolean> in <lambda>() 108 private val vmProvider: Flow<MobileIconViewModelCommon> = 124 override val icon: Flow<SignalIconModel> = vmProvider.flatMapLatest { it.icon } in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/domain/interactor/ |
D | ShadeInteractor.kt | 21 import kotlinx.coroutines.flow.Flow in <lambda>() 39 val isShadeFullyExpanded: Flow<Boolean> in <lambda>() 42 val isShadeFullyCollapsed: Flow<Boolean> in <lambda>() 52 val isShadeTouchable: Flow<Boolean> in <lambda>() 55 val isExpandToQsEnabled: Flow<Boolean> in <lambda>() 92 val isQsBypassingShade: Flow<Boolean> 98 val isQsFullscreen: Flow<Boolean> 104 val isUserInteractingWithShade: Flow<Boolean> 111 val isUserInteractingWithQs: Flow<Boolean> 118 shadeExpansion: Flow<Float>, in createAnyExpansionFlow() [all …]
|
D | ShadeInteractorEmptyImpl.kt | 22 import kotlinx.coroutines.flow.Flow 36 override val isQsBypassingShade: Flow<Boolean> = inactiveFlowBoolean 37 override val isQsFullscreen: Flow<Boolean> = inactiveFlowBoolean 40 override val isShadeFullyExpanded: Flow<Boolean> = inactiveFlowBoolean 41 override val isShadeFullyCollapsed: Flow<Boolean> = inactiveFlowBoolean 43 override val isUserInteractingWithShade: Flow<Boolean> = inactiveFlowBoolean 44 override val isUserInteractingWithQs: Flow<Boolean> = inactiveFlowBoolean 46 override val isShadeTouchable: Flow<Boolean> = inactiveFlowBoolean 47 override val isExpandToQsEnabled: Flow<Boolean> = inactiveFlowBoolean
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/util/ |
D | Flows.kt | 24 import kotlinx.coroutines.flow.Flow in <lambda>() 35 inline fun <T, R> Flow<List<T>>.mapItem(crossinline transform: (T) -> R): Flow<List<R>> = in <lambda>() 42 inline fun <T, R> Flow<List<T>>.asyncMapItem(crossinline transform: (T) -> R): Flow<List<R>> = in asyncMapItem() 48 inline fun <T> Flow<List<T>>.filterItem(crossinline predicate: (T) -> Boolean): Flow<List<T>> = in filterItem() 54 fun <T1, T2> Flow<T1>.waitFirst(otherFlow: Flow<T2>): Flow<T1> = in waitFirst() 61 fun <T> Flow<T>.collectLatestWithLifecycle( in collectLatestWithLifecycle()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/ |
D | KeyguardBouncerViewModel.kt | 26 import kotlinx.coroutines.flow.Flow in <lambda>() 38 val bouncerExpansionAmount: Flow<Float> = interactor.panelExpansionAmount in <lambda>() 41 val isInteractable: Flow<Boolean> = interactor.isInteractable in <lambda>() 44 val isShowing: Flow<Boolean> = interactor.isShowing in <lambda>() 47 val startingToHide: Flow<Unit> = interactor.startingToHide in <lambda>() 50 val startDisappearAnimation: Flow<Runnable> = interactor.startingDisappearAnimation in <lambda>() 53 val keyguardPosition: Flow<Float> = interactor.keyguardPosition in <lambda>() 56 val updateResources: Flow<Boolean> = interactor.resourceUpdateRequests in <lambda>() 59 val bouncerShowMessage: Flow<BouncerShowMessageModel> = interactor.showMessage in <lambda>() 62 val keyguardAuthenticated: Flow<Boolean> = interactor.keyguardAuthenticatedBiometrics in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/log/table/ |
D | Diffable.kt | 20 import kotlinx.coroutines.flow.Flow in <lambda>() 66 fun <T : Diffable<T>> Flow<T>.logDiffsForTable( in logDiffsForTable() 70 ): Flow<T> { in logDiffsForTable() 88 fun Flow<Boolean>.logDiffsForTable( in logDiffsForTable() method 93 ): Flow<Boolean> { in logDiffsForTable() 107 fun Flow<Int>.logDiffsForTable( in logDiffsForTable() method 112 ): Flow<Int> { in logDiffsForTable() 126 fun Flow<Int?>.logDiffsForTable( in logDiffsForTable() method 131 ): Flow<Int?> { in logDiffsForTable() 145 fun Flow<String?>.logDiffsForTable( in logDiffsForTable() method [all …]
|
/frameworks/base/packages/SystemUI/utils/src/com/android/systemui/utils/coroutines/flow/ |
D | LatestConflated.kt | 23 import kotlinx.coroutines.flow.Flow 57 fun <T, R> Flow<T>.mapLatestConflated(@BuilderInference transform: suspend (T) -> R): Flow<R> = 88 fun <T, R> Flow<T>.flatMapLatestConflated( 89 @BuilderInference transform: suspend (T) -> Flow<R>, 90 ): Flow<R> = flatMapLatest(transform).conflate() 118 fun <T, R> Flow<T>.transformLatestConflated( 120 ): Flow<R> = transformLatest(transform).conflate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/ |
D | KeyguardInteractor.kt | 63 import kotlinx.coroutines.flow.Flow in <lambda>() 172 val dozeAmount: Flow<Float> = repository.linearDozeAmount in <lambda>() 178 val dozeTimeTick: Flow<Long> = repository.dozeTimeTick in <lambda>() 184 val dozeTransitionModel: Flow<DozeTransitionModel> = repository.dozeTransitionModel in <lambda>() 186 val isPulsing: Flow<Boolean> = dozeTransitionModel.map { it.to == DozeStateModel.DOZE_PULSING } in <lambda>() 192 val isDreaming: Flow<Boolean> = repository.isDreaming in <lambda>() 195 val isDreamingWithOverlay: Flow<Boolean> = repository.isDreamingWithOverlay in <lambda>() 201 val onCameraLaunchDetected: Flow<CameraLaunchSourceModel> = conflatedCallbackFlow { in <lambda>() 224 val isAbleToDream: Flow<Boolean> = in <lambda>() 239 val isKeyguardShowing: Flow<Boolean> = repository.isKeyguardShowing in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/ui/viewmodel/ |
D | WifiViewModelCommon.kt | 20 import kotlinx.coroutines.flow.Flow 32 val isActivityInViewVisible: Flow<Boolean> 35 val isActivityOutViewVisible: Flow<Boolean> 38 val isActivityContainerVisible: Flow<Boolean> 41 val isAirplaneSpacerVisible: Flow<Boolean> 44 val isSignalSpacerVisible: Flow<Boolean>
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/domain/interactor/ |
D | WifiInteractor.kt | 29 import kotlinx.coroutines.flow.Flow in <lambda>() 47 val ssid: Flow<String?> in <lambda>() 50 val isEnabled: Flow<Boolean> in <lambda>() 53 val isDefault: Flow<Boolean> in <lambda>() 56 val wifiNetwork: Flow<WifiNetworkModel> in <lambda>() 62 val isForceHidden: Flow<Boolean> in <lambda>() 77 override val ssid: Flow<String?> = 94 override val isEnabled: Flow<Boolean> = wifiRepository.isWifiEnabled 96 override val isDefault: Flow<Boolean> = wifiRepository.isWifiDefault 98 override val wifiNetwork: Flow<WifiNetworkModel> = wifiRepository.wifiNetwork [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/ |
D | DeviceEntryBiometricSettingsInteractor.kt | 24 import kotlinx.coroutines.flow.Flow in <lambda>() 41 val authenticationFlags: Flow<AuthenticationFlags> = repository.authenticationFlags in <lambda>() 44 val isFingerprintAuthEnrolledAndEnabled: Flow<Boolean> = in <lambda>() 47 val fingerprintAuthCurrentlyAllowed: Flow<Boolean> = in <lambda>() 50 val isFaceAuthEnrolledAndEnabled: Flow<Boolean> = repository.isFaceAuthEnrolledAndEnabled in <lambda>() 51 val faceAuthCurrentlyAllowed: Flow<Boolean> = repository.isFaceAuthCurrentlyAllowed in <lambda>() 54 val fingerprintAndFaceEnrolledAndEnabled: Flow<Boolean> = in <lambda>()
|
D | DeviceEntryFingerprintAuthInteractor.kt | 30 import kotlinx.coroutines.flow.Flow in <lambda>() 51 val isRunning: Flow<Boolean> = repository.isRunning in <lambda>() 57 val authenticationStatus: Flow<FingerprintAuthenticationStatus> = in <lambda>() 60 val isLockedOut: Flow<Boolean> = repository.isLockedOut in <lambda>() 62 val fingerprintFailure: Flow<FailFingerprintAuthenticationStatus> = in <lambda>() 64 val fingerprintError: Flow<ErrorFingerprintAuthenticationStatus> = in <lambda>() 66 val fingerprintHelp: Flow<HelpFingerprintAuthenticationStatus> = in <lambda>() 69 val fingerprintSuccess: Flow<SuccessFingerprintAuthenticationStatus> = in <lambda>() 78 val isFingerprintAuthCurrentlyAllowed: Flow<Boolean> = in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/domain/interactor/ |
D | ConfigurationInteractor.kt | 27 import kotlinx.coroutines.flow.Flow 52 val maxBounds: Flow<Rect> = 62 val naturalMaxBounds: Flow<Rect> = 69 val layoutDirection: Flow<Int> = 73 fun dimensionPixelSize(resourceId: Int): Flow<Int> { in dimensionPixelSize() 78 fun dimensionPixelSize(resourceIds: Set<Int>): Flow<Map<Int, Int>> { in dimensionPixelSize() 85 val onAnyConfigurationChange: Flow<Unit> = 89 val configurationValues: Flow<Configuration> = repository.configurationValues 92 val scaleForResolution: Flow<Float> = repository.scaleForResolution
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/ |
D | BiometricSettingsRepository.kt | 51 import kotlinx.coroutines.flow.Flow in <lambda>() 101 val isFaceAuthCurrentlyAllowed: Flow<Boolean> in <lambda>() 107 val isFaceAuthSupportedInCurrentPosture: Flow<Boolean> in <lambda>() 113 val isCurrentUserInLockdown: Flow<Boolean> in <lambda>() 116 val authenticationFlags: Flow<AuthenticationFlags> in <lambda>() 144 override val isFaceAuthSupportedInCurrentPosture: Flow<Boolean> 148 override val isCurrentUserInLockdown: Flow<Boolean> = 151 override val authenticationFlags: Flow<AuthenticationFlags> = 181 private val selectedUserId: Flow<Int> = 190 private val isFingerprintEnrolled: Flow<Boolean> = [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/display/data/repository/ |
D | DisplayRepository.kt | 41 import kotlinx.coroutines.flow.Flow in <lambda>() 59 val displayChangeEvent: Flow<Int> in <lambda>() 62 val displayAdditionEvent: Flow<Display?> in <lambda>() 65 val displays: Flow<Set<Display>> in <lambda>() 72 val pendingDisplay: Flow<PendingDisplay?> in <lambda>() 75 val defaultDisplayOff: Flow<Boolean> in <lambda>() 106 private val allDisplayEvents: Flow<DisplayEvent> = 135 override val displayChangeEvent: Flow<Int> = 138 override val displayAdditionEvent: Flow<Display?> = 141 private val oldEnabledDisplays: Flow<Set<Display>> = [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/ |
D | AlternateBouncerUdfpsIconViewModel.kt | 29 import kotlinx.coroutines.flow.Flow in <lambda>() 50 private val isSupported: Flow<Boolean> = deviceEntryUdfpsInteractor.isUdfpsSupported in <lambda>() 51 val alpha: Flow<Float> = in <lambda>() 60 val iconLocation: Flow<IconLocation> = in <lambda>() 75 val accessibilityDelegateHint: Flow<DeviceEntryIconView.AccessibilityHintType> = in <lambda>() 78 private val fgIconColor: Flow<Int> = in <lambda>() 84 private val fgIconPadding: Flow<Int> = udfpsOverlayInteractor.iconPadding in <lambda>() 85 val fgViewModel: Flow<DeviceEntryForegroundViewModel.ForegroundIconViewModel> = in <lambda>() 98 val bgColor: Flow<Int> = deviceEntryBackgroundViewModel.color in <lambda>() 99 val bgAlpha: Flow<Float> = flowOf(1f) in <lambda>()
|
D | DeviceEntryIconViewModel.kt | 43 import kotlinx.coroutines.flow.Flow in <lambda>() 85 private val showingAlternateBouncer: Flow<Boolean> = in <lambda>() 89 private val qsProgress: Flow<Float> = shadeInteractor.qsExpansion.onStart { emit(0f) } in <lambda>() 90 private val shadeExpansion: Flow<Float> = shadeInteractor.shadeExpansion.onStart { emit(0f) } in <lambda>() 91 private val transitionAlpha: Flow<Float> = in <lambda>() 97 private val alphaMultiplierFromShadeExpansion: Flow<Float> = in <lambda>() 112 private val nonAnimatedBurnInOffsets: Flow<BurnInOffsets> = in <lambda>() 125 private val dozeAmount: Flow<Float> = transitionInteractor.transitionValue(KeyguardState.AOD) in <lambda>() 127 private val animatedBurnInOffsets: Flow<BurnInOffsets> = in <lambda>() 136 val deviceEntryViewAlpha: Flow<Float> = in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/domain/interactor/ |
D | ActiveNotificationsInteractor.kt | 25 import kotlinx.coroutines.flow.Flow in <lambda>() 40 val topLevelRepresentativeNotifications: Flow<List<ActiveNotificationModel>> = in <lambda>() 61 val allRepresentativeNotifications: Flow<Map<String, ActiveNotificationModel>> = in <lambda>() 65 val allNotificationsCount: Flow<Int> = in <lambda>() 75 val areAnyNotificationsPresent: Flow<Boolean> = in <lambda>() 95 val activeNotificationRanks: Flow<Map<String, Int>> = in <lambda>() 99 val hasClearableNotifications: Flow<Boolean> = in <lambda>() 105 val hasClearableAlertingNotifications: Flow<Boolean> = in <lambda>() 111 val hasNonClearableSilentNotifications: Flow<Boolean> = in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/ui/viewmodel/ |
D | BaseCommunalViewModel.kt | 31 import kotlinx.coroutines.flow.Flow 42 val currentScene: Flow<SceneKey> = communalSceneInteractor.currentScene 45 open val isCommunalContentVisible: Flow<Boolean> = MutableStateFlow(false) 48 open val isFocusable: Flow<Boolean> = MutableStateFlow(false) 77 fun setTransitionState(transitionState: Flow<ObservableTransitionState>?) { in setEditModeState() 98 abstract val communalContent: Flow<List<CommunalContentModel>> 104 open val isCommunalContentFlowFrozen: Flow<Boolean> = flowOf(false) 110 open val currentPopup: Flow<PopupType?> = flowOf(null) 113 open val isEmptyState: Flow<Boolean> = flowOf(false)
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/ |
D | AppListModel.kt | 25 import kotlinx.coroutines.flow.Flow 47 fun transform(userIdFlow: Flow<Int>, appListFlow: Flow<List<ApplicationInfo>>): Flow<List<T>> in getSpinnerOptions() 54 fun filter(userIdFlow: Flow<Int>, option: Int, recordListFlow: Flow<List<T>>): Flow<List<T>> = in getSpinnerOptions()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/base/interactor/ |
D | QSTileDataInteractor.kt | 21 import kotlinx.coroutines.flow.Flow 39 fun tileData(user: UserHandle, triggers: Flow<DataUpdateTrigger>): Flow<DATA_TYPE> in tileData() 49 fun availability(user: UserHandle): Flow<Boolean> in tileData() 53 override fun availability(user: UserHandle): Flow<Boolean> { in tileData()
|