Home
last modified time | relevance | path

Searched refs:onlyHasDefaultChannel (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Settings/src/com/android/settings/spa/notification/
DAppNotificationRepository.kt114 if (onlyHasDefaultChannel(app)) { in setEnabled()
211 private fun onlyHasDefaultChannel(app: ApplicationInfo): Boolean = in onlyHasDefaultChannel() method in com.android.settings.spa.notification.AppNotificationRepository
212 notificationManager.onlyHasDefaultChannel(app.packageName, app.uid) in onlyHasDefaultChannel()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DNotificationsPreferenceControllerTest.java256 when(mMockNotificationManager.onlyHasDefaultChannel(PKG_NAME, UID)).thenReturn(false); in callChangeListener_setEnable_enablingNotification()
265 when(mMockNotificationManager.onlyHasDefaultChannel(PKG_NAME, UID)).thenReturn(false); in callChangeListener_setDisable_disablingNotification()
274 when(mMockNotificationManager.onlyHasDefaultChannel(PKG_NAME, UID)).thenReturn(true); in callChangeListener_onlyHasDefaultChannel_updateChannel()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/
DNotificationsAppListPreferenceControllerTest.java298 when(mMockNotificationManager.onlyHasDefaultChannel(PKG_NAME, UID)).thenReturn(false); in toggle_setEnable_enablingNotification()
315 when(mMockNotificationManager.onlyHasDefaultChannel(PKG_NAME, UID)).thenReturn(false); in toggle_setDisable_disablingNotification()
332 when(mMockNotificationManager.onlyHasDefaultChannel(PKG_NAME, UID)).thenReturn(true); in toggle_onlyHasDefaultChannel_updateChannel()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/notification/
DAppNotificationRepositoryTest.kt80 whenever(notificationManager.onlyHasDefaultChannel(APP.packageName, APP.uid)) in mockOnlyHasDefaultChannel()
237 whenever(notificationManager.onlyHasDefaultChannel(APP.packageName, APP.uid)) in setEnabled_toTrueWhenNotOnlyHasDefaultChannel()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java185 if (onlyHasDefaultChannel(pkg, uid)) { in setNotificationsEnabledForPackage()
407 public boolean onlyHasDefaultChannel(String pkg, int uid) { in onlyHasDefaultChannel() method in NotificationBackend
409 return sINM.onlyHasDefaultChannel(pkg, uid); in onlyHasDefaultChannel()
DAppBubbleListPreferenceController.java93 if (mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid) in isAvailable()
/packages/apps/Car/Settings/src/com/android/car/settings/notifications/
DBaseNotificationsPreferenceController.java71 if (mNotificationManager.onlyHasDefaultChannel(packageName, uid)) { in toggleNotificationsSetting()
/packages/apps/Settings/src/com/android/settings/notification/app/
DBlockPreferenceController.java123 if (mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid)) { in onCheckedChanged()
DAppConversationListPreferenceController.java69 if (mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid) in isAvailable()
DNotificationSettings.java294 mShowLegacyChannelConfig = mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid) in loadChannelGroup()
DChannelListPreferenceController.java82 if (mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid) in isAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DBlockPreferenceControllerTest.java354 when(mBackend.onlyHasDefaultChannel(anyString(), anyInt())).thenReturn(true); in testOnSwitchChanged_channel_default()