Home
last modified time | relevance | path

Searched refs:notificationPolicy (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/statusbar/notification/domain/interactor/
DNotificationsSoundPolicyInteractor.kt38 val notificationPolicy: StateFlow<NotificationManager.Policy?> in <lambda>() constant in com.android.settingslib.statusbar.notification.domain.interactor.NotificationsSoundPolicyInteractor
39 get() = repository.notificationPolicy in <lambda>()
46 val areAlarmsAllowed: Flow<Boolean?> = notificationPolicy.map { it?.allowAlarms() } in <lambda>()
49 val isMediaAllowed: Flow<Boolean?> = notificationPolicy.map { it?.allowMedia() } in <lambda>()
52 val isSystemAllowed: Flow<Boolean?> = notificationPolicy.map { it?.allowSystem() } in <lambda>()
56 notificationPolicy.map { policy -> in <lambda>()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/statusbar/notification/data/repository/
DNotificationsSoundPolicyRepositoryTest.kt75 `when`(notificationManager.notificationPolicy).thenReturn(testPolicy1) in policyChanges_repositoryEmits()
76 underTest.notificationPolicy.onEach { values.add(it) }.launchIn(backgroundScope) in policyChanges_repositoryEmits()
79 `when`(notificationManager.notificationPolicy).thenReturn(testPolicy2) in policyChanges_repositoryEmits()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/statusbar/notification/data/repository/
DNotificationsSoundPolicyRepository.kt43 val notificationPolicy: StateFlow<NotificationManager.Policy?> in <lambda>() constant
80 override val notificationPolicy: StateFlow<NotificationManager.Policy?> = constant
DFakeNotificationsSoundPolicyRepository.kt29 override val notificationPolicy: StateFlow<NotificationManager.Policy?> constant in com.android.settingslib.statusbar.notification.data.repository.FakeNotificationsSoundPolicyRepository