Home
last modified time | relevance | path

Searched refs:mMockPref (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityTimeoutControllerTest.java53 private SelectorWithWidgetPreference mMockPref; field in AccessibilityTimeoutControllerTest
67 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mMockPref); in setup()
68 when(mMockPref.getKey()).thenReturn(PREF_KEY); in setup()
71 when(mMockPref.getTitle()).thenReturn(prefTitle); in setup()
86 mController.updateState(mMockPref); in updateState_notChecked()
89 verify(mMockPref).setChecked(false); in updateState_notChecked()
90 verify(mMockPref).setChecked(false); in updateState_notChecked()
98 mController.updateState(mMockPref); in updateState_checked()
101 verify(mMockPref).setChecked(false); in updateState_checked()
102 verify(mMockPref).setChecked(true); in updateState_checked()
[all …]
DDaltonizerRadioButtonPreferenceControllerTest.java54 private SelectorWithWidgetPreference mMockPref; field in DaltonizerRadioButtonPreferenceControllerTest
68 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mMockPref); in setUp()
69 when(mMockPref.getKey()).thenReturn(PREF_KEY); in setUp()
88 mController.updateState(mMockPref); in updateState_notChecked()
91 verify(mMockPref, atLeastOnce()).setChecked(false); in updateState_notChecked()
92 verify(mMockPref, never()).setChecked(true); in updateState_notChecked()
100 mController.updateState(mMockPref); in updateState_checked()
103 verify(mMockPref, atLeastOnce()).setChecked(false); in updateState_checked()
104 verify(mMockPref, atLeastOnce()).setChecked(true); in updateState_checked()
109 mController.onRadioButtonClicked(mMockPref); in onRadioButtonClick_shouldReturnDaltonizerValue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DZenRuleVisEffectsAllPreferenceControllerTest.java51 private SelectorWithWidgetPreference mMockPref; field in ZenRuleVisEffectsAllPreferenceControllerTest
73 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mMockPref); in setup()
82 mController.updateState(mMockPref); in updateState_noVisEffects()
83 verify(mMockPref).setChecked(false); in updateState_noVisEffects()
91 mController.updateState(mMockPref); in updateState_showAllVisualEffects()
92 verify(mMockPref).setChecked(true); in updateState_showAllVisualEffects()
101 mController.updateState(mMockPref); in updateState_customEffects()
103 verify(mMockPref).setChecked(false); in updateState_customEffects()
DZenRuleVisEffectsNonePreferenceControllerTest.java51 private SelectorWithWidgetPreference mMockPref; field in ZenRuleVisEffectsNonePreferenceControllerTest
73 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mMockPref); in setup()
82 mController.updateState(mMockPref); in updateState_noVisEffects()
83 verify(mMockPref).setChecked(true); in updateState_noVisEffects()
91 mController.updateState(mMockPref); in updateState_showAllVisualEffects()
92 verify(mMockPref).setChecked(false); in updateState_showAllVisualEffects()
101 mController.updateState(mMockPref); in updateState_custom()
103 verify(mMockPref).setChecked(false); in updateState_custom()
DZenRuleVisEffectsCustomPreferenceControllerTest.java51 private SelectorWithWidgetPreference mMockPref; field in ZenRuleVisEffectsCustomPreferenceControllerTest
73 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mMockPref); in setup()
82 mController.updateState(mMockPref); in updateState_noVisEffects()
83 verify(mMockPref).setChecked(false); in updateState_noVisEffects()
91 mController.updateState(mMockPref); in updateState_showAllVisualEffects()
92 verify(mMockPref).setChecked(false); in updateState_showAllVisualEffects()
101 mController.updateState(mMockPref); in updateState_customEffects()
103 verify(mMockPref).setChecked(true); in updateState_customEffects()
DZenRuleCustomPolicyPreferenceControllerTest.java51 private SelectorWithWidgetPreference mMockPref; field in ZenRuleCustomPolicyPreferenceControllerTest
74 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mMockPref); in setup()
81 mController.updateState(mMockPref); in updateState_nullZenPolicy()
82 verify(mMockPref).setChecked(false); in updateState_nullZenPolicy()
88 mController.updateState(mMockPref); in updateState_hasZenPolicy()
89 verify(mMockPref).setChecked(true); in updateState_hasZenPolicy()
DZenRuleDefaultPolicyPreferenceControllerTest.java51 private SelectorWithWidgetPreference mMockPref; field in ZenRuleDefaultPolicyPreferenceControllerTest
74 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mMockPref); in setup()
81 mController.updateState(mMockPref); in updateState_nullZenPolicy()
82 verify(mMockPref).setChecked(true); in updateState_nullZenPolicy()
88 mController.updateState(mMockPref); in updateState_hasZenPolicy()
89 verify(mMockPref).setChecked(false); in updateState_hasZenPolicy()
DZenModeVisEffectsNonePreferenceControllerTest.java64 private SelectorWithWidgetPreference mMockPref; field in ZenModeVisEffectsNonePreferenceControllerTest
87 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mMockPref); in setup()
99 mController.updateState(mMockPref); in updateState_notChecked()
101 verify(mMockPref).setChecked(false); in updateState_notChecked()
107 mController.updateState(mMockPref); in updateState_checked()
109 verify(mMockPref).setChecked(true); in updateState_checked()
124 mController.onRadioButtonClicked(mMockPref); in onRadioButtonClick()
DZenModeButtonPreferenceControllerTest.java65 private Preference mMockPref; field in ZenModeButtonPreferenceControllerTest
93 mMockPref); in setup()
100 mController.updateState(mMockPref); in updateState_TotalSilence()
109 mController.updateState(mMockPref); in updateState_AlarmsOnly()
118 mController.updateState(mMockPref); in updateState_Priority()
127 mController.updateState(mMockPref); in updateState_ZenOff()
136 mController.updateState(mMockPref); in updateState_otherUserChangedZen()
DZenRulePreferenceControllerTest.java52 private SelectorWithWidgetPreference mMockPref; field in ZenRulePreferenceControllerTest
68 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mMockPref); in setup()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastListItemTest.java54 private SharedPreferences mMockPref; field in CellBroadcastListItemTest
75 doReturn(FAKE_MCC).when(mMockPref).getString(anyString(), anyString()); in setUp()
78 mContext.injectSharedPreferences(mMockPref); in setUp()