/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | AccessibilityTimeoutControllerTest.java | 53 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 …]
|
D | DaltonizerRadioButtonPreferenceControllerTest.java | 54 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/ |
D | ZenRuleVisEffectsAllPreferenceControllerTest.java | 51 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()
|
D | ZenRuleVisEffectsNonePreferenceControllerTest.java | 51 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()
|
D | ZenRuleVisEffectsCustomPreferenceControllerTest.java | 51 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()
|
D | ZenRuleCustomPolicyPreferenceControllerTest.java | 51 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()
|
D | ZenRuleDefaultPolicyPreferenceControllerTest.java | 51 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()
|
D | ZenModeVisEffectsNonePreferenceControllerTest.java | 64 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()
|
D | ZenModeButtonPreferenceControllerTest.java | 65 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()
|
D | ZenRulePreferenceControllerTest.java | 52 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/ |
D | CellBroadcastListItemTest.java | 54 private SharedPreferences mMockPref; field in CellBroadcastListItemTest 75 doReturn(FAKE_MCC).when(mMockPref).getString(anyString(), anyString()); in setUp() 78 mContext.injectSharedPreferences(mMockPref); in setUp()
|