Home
last modified time | relevance | path

Searched refs:mapNotNull (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DMobileConnectionRepositoryImpl.kt84 import kotlinx.coroutines.flow.mapNotNull in <lambda>()
209 .mapNotNull { it.onServiceStateChanged } in <lambda>()
216 .mapNotNull { it.onDisplayInfoChanged } in <lambda>()
220 .mapNotNull { it.onServiceStateChanged } in <lambda>()
227 .mapNotNull { it.onServiceStateChanged } in <lambda>()
233 .mapNotNull { it.onServiceStateChanged } in <lambda>()
239 .mapNotNull { it.onCarrierRoamingNtnModeChanged } in <lambda>()
245 .mapNotNull { it.onSignalStrengthChanged } in <lambda>()
251 .mapNotNull { it.onSignalStrengthChanged } in <lambda>()
266 .mapNotNull { it.onSignalStrengthChanged } in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/shared/model/
DResult.kt21 import kotlinx.coroutines.flow.mapNotNull
37 fun <T> Flow<Result<T>>.filterData(): Flow<T> = mapNotNull { it as? Result.Data<T> }.map { it.data } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DConversationNotifications.kt123 .mapNotNull { view -> in view()
159 states.keys.asSequence().mapNotNull { notifCollection.getEntry(it) } in updateNotificationRanking()
168 ?.mapNotNull { it as? ConversationLayout } in updateNotificationRanking()
250 .mapNotNull { (key, _) -> in onNotificationPanelExpandStateChanged()
261 expanded.values.asSequence().mapNotNull { it.row }.forEach(::resetBadgeUi) in onNotificationPanelExpandStateChanged()
275 .mapNotNull { view -> view as? ConversationLayout } in view()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/base/actions/
DFakeQSTileIntentUserInputHandler.kt63 get() = handledInputs.mapNotNull { it as? FakeQSTileIntentUserInputHandler.Input.Intent } in <lambda>()
65 get() = handledInputs.mapNotNull { it as? FakeQSTileIntentUserInputHandler.Input.PendingIntent } in <lambda>()
/frameworks/base/packages/StatementService/src/com/android/statementservice/domain/
DDomainVerifier.kt67 return packageNames.mapNotNull { packageName -> in <lambda>()
73 } ?: return@mapNotNull null in <lambda>()
79 ?: return@mapNotNull null in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/data/repository/
DFakeCustomTileDefaultsRepository.kt26 import kotlinx.coroutines.flow.mapNotNull in <lambda>()
49 .mapNotNull { defaults[DefaultsKey(it.user, it.componentName)] } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/base/viewmodel/
DQSTileViewModelImpl.kt56 import kotlinx.coroutines.flow.mapNotNull in <lambda>()
194 .mapNotNull { action -> in <lambda>()
195 val state: QSTileState = state.replayCache.lastOrNull() ?: return@mapNotNull null in <lambda>()
196 val data: DATA_TYPE = tileData.replayCache.lastOrNull() ?: return@mapNotNull null in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationSectionsManager.kt188 val oldFirstChildren = sections.mapNotNull { it.firstVisibleChild }.toSet().toMutableSet() in <lambda>()
189 val oldLastChildren = sections.mapNotNull { it.lastVisibleChild }.toSet().toMutableSet() in <lambda>()
199 val newFirstChildren = sections.mapNotNull { it.firstVisibleChild } in <lambda>()
200 val newLastChildren = sections.mapNotNull { it.lastVisibleChild } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/domain/startable/
DSceneContainerStartable.kt89 import kotlinx.coroutines.flow.mapNotNull in <lambda>()
184 sceneInteractor.transitionState.mapNotNull { state -> in <lambda>()
316 .mapNotNull { deviceUnlockStatus -> in <lambda>()
329 return@mapNotNull if (isOnLockscreen || isOnBouncer) { in <lambda>()
468 .mapNotNull { it as? ObservableTransitionState.Idle } in <lambda>()
493 .mapNotNull { transitionState -> in <lambda>()
593 .mapNotNull { it as? ObservableTransitionState.Idle } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/repository/
DCommunalWidgetRepository.kt114 entries.mapNotNull { (rank, widget) -> in entries()
135 widgetEntries.mapNotNull { entry -> mapToContentModel(entry, sessions) } in widgetEntries()
236 state.widgets.mapNotNull { restoredWidget -> in restoreWidgets()
249 return@mapNotNull null in restoreWidgets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/autoaddable/
DWorkTileAutoAddable.kt33 import kotlinx.coroutines.flow.mapNotNull
54 workTileRestoreProcessor.removeTrackingForUser(UserHandle.of(userId)).mapNotNull { in autoAddSignal()
DAutoAddableSettingList.kt33 return autoAddList.mapNotNull { in parseSettingsResource()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/shared/
DAudioManagerEventsReceiver.kt34 import kotlinx.coroutines.flow.mapNotNull in <lambda>()
81 .mapNotNull { it.toAudioManagerEvent() } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/volume/slider/ui/viewmodel/
DCastVolumeSliderViewModel.kt32 import kotlinx.coroutines.flow.mapNotNull
48 .mapNotNull { it?.getCurrentState() } in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleDataRepository.kt141 return bubbles.mapNotNull { b -> in <lambda>()
145 b.metadataShortcutId ?: return@mapNotNull null, in <lambda>()
248 val bubbles = entities.mapNotNull { entity -> in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/mediaoutput/domain/interactor/
DMediaOutputComponentInteractor.kt39 import kotlinx.coroutines.flow.mapNotNull in <lambda>()
62 mediaDeviceSessionInteractor.playbackState(session).mapNotNull { playback -> in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/
DNotifCollectionInconsistencyTracker.kt91 .mapNotNull { key -> in <lambda>()
100 .mapNotNull { (key, entry) -> in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/
DCarrierConfigRepository.kt41 import kotlinx.coroutines.flow.mapNotNull in <lambda>()
89 .mapNotNull { subId -> in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/data/repository/
DAccessibilityQsShortcutsRepository.kt132 .mapNotNull { in getAccessibilityTileServices()
149 .mapNotNull { in getAccessibilityTileServices()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/hardware/
DInputManager.kt41 inputDeviceIds.asSequence().mapNotNull { getInputDevice(it) } in InputManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/
DKeyguardClockRepository.kt48 import kotlinx.coroutines.flow.mapNotNull
130 .mapNotNull { it } in setClockSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/data/repository/
DKeyboardRepository.kt46 import kotlinx.coroutines.flow.mapNotNull in <lambda>()
129 .mapNotNull { deviceIdToKeyboard(it) } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/
DCustomTileDataInteractor.kt43 import kotlinx.coroutines.flow.mapNotNull in <lambda>()
113 defaultsRepository.defaults(user).mapNotNull { it as? CustomTileDefaults.Result }, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/
DKeyguardTransitionAnimationFlow.kt40 import kotlinx.coroutines.flow.mapNotNull in <lambda>()
96 .mapNotNull { stateToValue -> stateToValue.value } in <lambda>()
/frameworks/base/tools/lint/framework/checks/src/main/java/com/google/android/lint/parcel/
DCallMigrators.kt64 val supers = getParentTypes(type).mapNotNull { it as? PsiClassType } in <lambda>()
106 return type.conjuncts.mapNotNull(this::filter).firstOrNull() in <lambda>()

123