Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenPrioritySendersHelper.java64 static final String KEY_STARRED = "senders_starred_contacts"; field in ZenPrioritySendersHelper
112 makeSelectorPreference(KEY_STARRED, in displayPreference()
169 case KEY_STARRED: in keyToSettingEndState()
189 case KEY_STARRED: in keyToSettingEndState()
275 if ((preference.getKey() == KEY_STARRED || preference.getKey() == KEY_CONTACTS) in settingsToSaveOnClick()
286 case KEY_STARRED: in getSummary()
351 if (!KEY_CONTACTS.equals(key) && !KEY_STARRED.equals(key) && !KEY_IMPORTANT.equals(key)) { in getWidgetClickListener()
355 if (KEY_STARRED.equals(key) && !isStarredIntentValid()) { in getWidgetClickListener()
366 if (KEY_STARRED.equals(key) in getWidgetClickListener()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/
DZenModePrioritySendersPreferenceControllerTest.java35 …tic com.android.settings.notification.modes.ZenModePrioritySendersPreferenceController.KEY_STARRED;
170 endState = mMessagesController.keyToSettingEndState(KEY_STARRED, true); in testKeyToSettingEndState_messagesCheck()
199 endState = mMessagesController.keyToSettingEndState(KEY_STARRED, false); in testKeyToSettingEndState_messagesUncheck()
229 endState = mCallsController.keyToSettingEndState(KEY_STARRED, true); in testKeyToSettingEndState_callsCheck()
254 endState = mCallsController.keyToSettingEndState(KEY_STARRED, false); in testKeyToSettingEndState_callsUncheck()
281 KEY_STARRED, true, PEOPLE_TYPE_NONE, CONVERSATION_SENDERS_NONE); in testSettingsToSaveOnClick_messagesCheck()
315 KEY_STARRED, false, PEOPLE_TYPE_STARRED, CONVERSATION_SENDERS_IMPORTANT); in testSettingsToSaveOnClick_messagesUncheck()
350 KEY_STARRED, true, PEOPLE_TYPE_CONTACTS, CONVERSATION_SENDERS_IMPORTANT); in testSettingsToSaveOnClick_callsCheck()
379 KEY_STARRED, false, PEOPLE_TYPE_STARRED, CONVERSATION_SENDERS_IMPORTANT); in testSettingsToSaveOnClick_callsUncheck()
404 KEY_STARRED, true, PEOPLE_TYPE_STARRED, CONVERSATION_SENDERS_ANYONE); in testSettingsToSave_messages_noChange()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/modes/
DZenModePrioritySendersPreferenceController.java71 static final String KEY_STARRED = "senders_starred_contacts"; field in ZenModePrioritySendersPreferenceController
113 makeSelectorPreference(KEY_STARRED, in displayPreference()
213 if (!KEY_CONTACTS.equals(key) && !KEY_STARRED.equals(key) && !KEY_IMPORTANT.equals(key)) { in getWidgetClickListener()
217 if (KEY_STARRED.equals(key) && !isStarredIntentValid()) { in getWidgetClickListener()
226 if (KEY_STARRED.equals(key) in getWidgetClickListener()
272 case KEY_STARRED:
292 case KEY_STARRED:
378 if ((key.equals(KEY_STARRED) || key.equals(KEY_CONTACTS))
389 case KEY_STARRED:
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/zen/
DZenPrioritySendersHelperTest.java31 import static com.android.settings.notification.zen.ZenPrioritySendersHelper.KEY_STARRED;
224 endState = messagesHelper.keyToSettingEndState(KEY_STARRED, true); in testKeyToSettingEndState_messagesCheck()
254 endState = messagesHelper.keyToSettingEndState(KEY_STARRED, false); in testKeyToSettingEndState_messagesUncheck()
285 endState = callsHelper.keyToSettingEndState(KEY_STARRED, true); in testKeyToSettingEndState_callsCheck()
311 endState = callsHelper.keyToSettingEndState(KEY_STARRED, false); in testKeyToSettingEndState_callsUncheck()
408 SelectorWithWidgetPreference starredPref = makePreference(KEY_STARRED, true); in testSettingsToSave_messagesContacts()
515 SelectorWithWidgetPreference starredPref = makePreference(KEY_STARRED, false); in testSettingsToSave_calls()