/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | BlockPreferenceController.java | 56 if (mAppRow == null) { in isAvailable() 91 if (mChannel == null && mAppRow.systemApp in updateState() 92 && (!mAppRow.banned || mAppRow.lockedImportance)) { in updateState() 97 bar.setChecked(!mAppRow.banned in updateState() 100 bar.setChecked(!mAppRow.banned && !mChannelGroup.isBlocked()); in updateState() 102 bar.setChecked(!mAppRow.banned); in updateState() 124 if (mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid)) { in onSwitchChanged() 125 if (mAppRow.banned != blocked) { in onSwitchChanged() 126 mAppRow.banned = blocked; in onSwitchChanged() 127 mBackend.setNotificationsEnabledForPackage(mAppRow.pkg, mAppRow.uid, !blocked); in onSwitchChanged() [all …]
|
D | BubblePreferenceController.java | 82 return mAppRow != null && mAppRow.bubblePreference != BUBBLE_PREFERENCE_NONE; in isAvailable() 95 if (mIsAppPage && mAppRow != null) { in updateState() 96 mHasSentInvalidMsg = mBackend.isInInvalidMsgState(mAppRow.pkg, mAppRow.uid); in updateState() 98 mAppRow.pkg, mAppRow.uid).getList().size(); in updateState() 100 int backEndPref = mAppRow.bubblePreference; in updateState() 126 if (mAppRow != null && mFragmentManager != null) { in onPreferenceChange() 133 .setPkgPrefInfo(mAppRow.pkg, mAppRow.uid, value) in onPreferenceChange() 137 mAppRow.bubblePreference = value; in onPreferenceChange() 138 mBackend.setAllowBubbles(mAppRow.pkg, mAppRow.uid, value); in onPreferenceChange()
|
D | AppConversationListPreferenceController.java | 62 if (mAppRow == null) { in isAvailable() 65 if (mAppRow.banned) { in isAvailable() 69 if (mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid) in isAvailable() 74 return mBackend.hasSentValidMsg(mAppRow.pkg, mAppRow.uid) || mBackend.isInInvalidMsgState( in isAvailable() 75 mAppRow.pkg, mAppRow.uid); in isAvailable() 90 if (mAppRow == null) { in loadConversationsAndPopulate() 98 mBackend.getConversations(mAppRow.pkg, mAppRow.uid); in loadConversationsAndPopulate() 165 pref.setIcon(mBackend.getConversationDrawable(mContext, si, mAppRow.pkg, mAppRow.uid, in populateConversationPreference() 171 channelArgs.putInt(AppInfoBase.ARG_PACKAGE_UID, mAppRow.uid); in populateConversationPreference() 172 channelArgs.putString(AppInfoBase.ARG_PACKAGE_NAME, mAppRow.pkg); in populateConversationPreference()
|
D | InvalidConversationPreferenceController.java | 44 if (mAppRow == null) { in isAvailable() 47 if (mAppRow.banned) { in isAvailable() 53 return mBackend.isInInvalidMsgState(mAppRow.pkg, mAppRow.uid); in isAvailable() 63 if (mAppRow == null) { in updateState() 69 pref.setChecked(!mBackend.hasUserDemotedInvalidMsgApp(mAppRow.pkg, mAppRow.uid)); in updateState() 75 if (mAppRow == null) { in onPreferenceChange() 78 mBackend.setInvalidMsgAppDemoted(mAppRow.pkg, mAppRow.uid, !((Boolean) newValue)); in onPreferenceChange()
|
D | NotificationPreferenceController.java | 53 protected NotificationBackend.AppRow mAppRow; field in NotificationPreferenceController 80 if (mAppRow == null) { in isAvailable() 83 if (mAppRow.banned) { in isAvailable() 106 mAppRow = appRow; in onResume() 131 if (mChannel != null && mAppRow != null) { in saveChannel() 132 mBackend.updateChannel(mAppRow.pkg, mAppRow.uid, mChannel); in saveChannel() 141 if (channel != null && mAppRow != null) { in isChannelBlockable() 147 return channel.isBlockable() || !mAppRow.systemApp in isChannelBlockable() 154 if (channel != null && mAppRow != null) { in isChannelConfigurable() 165 if (group != null && mAppRow != null) { in isChannelGroupBlockable() [all …]
|
D | BadgePreferenceController.java | 54 if (mAppRow == null && mChannel == null) { in isAvailable() 65 return mAppRow == null ? false : mAppRow.showBadge; in isAvailable() 77 if (mAppRow != null) { in updateState() 84 pref.setChecked(mAppRow.showBadge); in updateState() 95 } else if (mAppRow != null){ in onPreferenceChange() 96 mAppRow.showBadge = showBadge; in onPreferenceChange() 97 mBackend.setShowBadge(mAppRow.pkg, mAppRow.uid, showBadge); in onPreferenceChange()
|
D | BubbleSummaryPreferenceController.java | 53 if (mAppRow == null) { in isAvailable() 63 return mAppRow != null; in isAvailable() 66 return isGloballyEnabled() && mBackend.hasSentValidMsg(mAppRow.pkg, mAppRow.uid); in isAvailable() 83 if (mAppRow != null) { in updateState() 85 intent.putExtra(Settings.EXTRA_APP_PACKAGE, mAppRow.pkg); in updateState() 86 intent.putExtra(Settings.EXTRA_APP_UID, mAppRow.uid); in updateState() 93 if (mAppRow == null) { in getSummary() 96 int backEndPref = mAppRow.bubblePreference; in getSummary()
|
D | NotificationSettings.java | 82 protected NotificationBackend.AppRow mAppRow; field in NotificationSettings 157 controller.onResume(mAppRow, mChannel, mChannelGroup, null, null, in onAttach() 191 if (mUid < 0 || TextUtils.isEmpty(mPkg) || mPkgInfo == null || mAppRow == null) { in onResume() 200 if (mAppRow == null) { in onResume() 284 mContext, mConversationInfo, mAppRow.pkg, mAppRow.uid, in loadConversation() 290 mAppRow = mBackend.loadAppRow(mContext, mPm, mRm, mPkgInfo); in loadAppRow() 294 mShowLegacyChannelConfig = mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid) in loadChannelGroup() 300 mAppRow.pkg, mAppRow.uid, NotificationChannel.DEFAULT_CHANNEL_ID, null); in loadChannelGroup() 318 .setPackage(mAppRow.pkg); in collectConfigActivities() 329 if (mAppRow.settingsIntent != null) { in collectConfigActivities() [all …]
|
D | AppChannelsBypassingDndPreferenceController.java | 89 mBackend.updateChannel(mAppRow.pkg, mAppRow.uid, channel); in displayPreference() 114 return mAppRow != null; in isAvailable() 124 if (mAppRow != null) { in updateState() 135 List<NotificationChannelGroup> mChannelGroupList = mBackend.getGroups(mAppRow.pkg, in loadAppChannels() 136 mAppRow.uid).getList(); in loadAppChannels() 182 mBackend.updateChannel(mAppRow.pkg, mAppRow.uid, channel); in populateList() 189 channelArgs.putInt(AppInfoBase.ARG_PACKAGE_UID, mAppRow.uid); in populateList() 190 channelArgs.putString(AppInfoBase.ARG_PACKAGE_NAME, mAppRow.pkg); in populateList() 197 .setUserHandle(UserHandle.of(mAppRow.userId)) in populateList()
|
D | HeaderPreferenceController.java | 59 return mAppRow != null; in isAvailable() 69 if (mAppRow != null && mFragment != null) { in updateState() 84 pref = mHeaderController.setIcon(mAppRow.icon) in updateState() 88 .setPackageName(mAppRow.pkg) in updateState() 89 .setUid(mAppRow.uid) in updateState() 104 return mAppRow.label; in getLabel() 120 summary.append(bidi.unicodeWrap(mAppRow.label)); in getSummary() 126 return mAppRow.label.toString(); in getSummary()
|
D | ChannelListPreferenceController.java | 72 if (mAppRow == null) { in isAvailable() 75 if (mAppRow.banned) { in isAvailable() 79 if (mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid) in isAvailable() 99 mChannelGroupList = mBackend.getGroups(mAppRow.pkg, mAppRow.uid).getList(); in updateState() 303 mBackend.updateChannelGroup(mAppRow.pkg, mAppRow.uid, group); in addOrUpdateGroupToggle() 330 mContext, mAppRow.sentByChannel.get(channel.getId()), false)); in updateSingleChannelPrefs() 333 channelArgs.putInt(AppInfoBase.ARG_PACKAGE_UID, mAppRow.uid); in updateSingleChannelPrefs() 334 channelArgs.putString(AppInfoBase.ARG_PACKAGE_NAME, mAppRow.pkg); in updateSingleChannelPrefs() 357 mBackend.updateChannel(mAppRow.pkg, mAppRow.uid, channel); in updateSingleChannelPrefs()
|
D | InvalidConversationInfoPreferenceController.java | 44 if (mAppRow == null) { in isAvailable() 47 if (mAppRow.banned) { in isAvailable() 53 return mBackend.isInInvalidMsgState(mAppRow.pkg, mAppRow.uid); in isAvailable() 63 if (mAppRow == null) { in updateState() 67 R.string.convo_not_supported_summary, mAppRow.label)); in updateState()
|
D | ConversationHeaderPreferenceController.java | 59 return mAppRow != null; in isAvailable() 69 if (mAppRow != null && mFragment != null) { in updateState() 87 .setPackageName(mAppRow.pkg) in updateState() 88 .setUid(mAppRow.uid) in updateState() 107 summary.append(bidi.unicodeWrap(mAppRow.label.toString())); in getSummary() 113 return mAppRow.label.toString(); in getSummary() 116 return mAppRow.label.toString(); in getSummary()
|
D | DeletedChannelsPreferenceController.java | 51 return mBackend.getDeletedChannelCount(mAppRow.pkg, mAppRow.uid) > 0; in isAvailable() 60 if (mAppRow != null) { in updateState() 61 int deletedChannelCount = mBackend.getDeletedChannelCount(mAppRow.pkg, mAppRow.uid); in updateState()
|
D | AppLinkPreferenceController.java | 48 return mAppRow.settingsIntent != null; in isAvailable() 57 if (mAppRow != null) { in updateState() 58 preference.setIntent(mAppRow.settingsIntent); in updateState()
|
D | BubbleLinkPreferenceController.java | 60 if (mAppRow != null) { in updateState() 62 intent.putExtra(Settings.EXTRA_APP_PACKAGE, mAppRow.pkg); in updateState() 63 intent.putExtra(Settings.EXTRA_APP_UID, mAppRow.uid); in updateState()
|
D | BubbleCategoryPreferenceController.java | 60 if (mAppRow != null) { in updateState() 62 intent.putExtra(Settings.EXTRA_APP_PACKAGE, mAppRow.pkg); in updateState() 63 intent.putExtra(Settings.EXTRA_APP_UID, mAppRow.uid); in updateState()
|
D | VisibilityPreferenceController.java | 65 if (mChannel == null || mAppRow.banned) { in isAvailable() 77 if (mChannel != null && mAppRow != null) { in updateState() 140 mContext, keyguardNotificationFeatures, mAppRow.userId); in setRestrictedIfNotificationFeaturesDisabled()
|
D | NotificationsOffPreferenceController.java | 43 if (mAppRow == null) { in isAvailable() 60 if (mAppRow != null) { in updateState()
|
D | ConversationPriorityPreferenceController.java | 51 if (mAppRow == null || mChannel == null) { in isAvailable() 64 if (mAppRow != null) { in updateState()
|
D | AppNotificationSettings.java | 59 getActivity().setTitle(mAppRow.label); in onResume() 62 controller.onResume(mAppRow, mChannel, mChannelGroup, null, null, mSuspendedAppsAdmin, in onResume()
|
D | DescriptionPreferenceController.java | 63 if (mAppRow != null) { in updateState()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | AppBubbleListPreferenceController.java | 86 if (mAppRow == null) { in isAvailable() 89 if (mAppRow.banned) { in isAvailable() 93 if (mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid) in isAvailable() 98 if (mAppRow.bubblePreference == BUBBLE_PREFERENCE_NONE) { in isAvailable() 111 if (mAppRow.bubblePreference == BUBBLE_PREFERENCE_SELECTED) { in filterAndSortConversations() 113 } else if (mAppRow.bubblePreference == BUBBLE_PREFERENCE_ALL) { in filterAndSortConversations() 124 return mAppRow.bubblePreference == BUBBLE_PREFERENCE_SELECTED 134 pref.setOnClickBubblesConversation(mAppRow.bubblePreference == BUBBLE_PREFERENCE_ALL); 137 mBackend.updateChannel(mAppRow.pkg, mAppRow.uid, conversation.getNotificationChannel());
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | BubbleSummaryPreferenceControllerTest.java | 67 NotificationBackend.AppRow mAppRow; field in BubbleSummaryPreferenceControllerTest 77 mAppRow = new NotificationBackend.AppRow(); in setUp() 78 mAppRow.pkg = "pkg"; in setUp() 79 mAppRow.uid = 0; in setUp() 100 mController.onResume(mAppRow, null, null, null, null, null, null); in isAvailable_NOTIFICATION_BUBBLESisOn_shouldReturnTrue() 108 mController.onResume(mAppRow, null, null, null, null, null, null); in isAvailable_NOTIFICATION_BUBBLESisOn_neverSentMsg_shouldReturnFalse() 118 mController.onResume(mAppRow, null, null, null, null, null, null); in isAvailable_NOTIFICATION_BUBBLESisOff_shouldReturnFalse() 129 mController.onResume(mAppRow, channel, null, null, null, null, null); in isAvailable_nonNullChannelNOTIFICATION_BUBBLESisOff_shouldReturnFalse() 140 mController.onResume(mAppRow, channel, null, null, null, null, null); in isAvailable_defaultChannelNOTIFICATION_BUBBLESisOn_shouldReturnTrue() 148 mController.onResume(mAppRow, null, null, null, null, null, null); in isAvailable_lowRam_shouldReturnFalse() [all …]
|
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/notification/app/ |
D | ChannelListPreferenceControllerTest.java | 60 private NotificationBackend.AppRow mAppRow; field in ChannelListPreferenceControllerTest 73 mAppRow = mBackend.loadAppRow(mContext, in setUp() 76 mController.onResume(mAppRow, null, null, null, null, null); in setUp() 340 mAppRow.sentByChannel.put("channelA", sentA); in testUpdateFullList_channelUpdates() 368 mAppRow.sentByChannel.remove("channelA"); in testUpdateFullList_channelUpdates() 369 mAppRow.sentByChannel.put("channelB", sentB); in testUpdateFullList_channelUpdates()
|