Lines Matching refs:mObserver
61 @Mock private PreferenceAvailabilityObserver mObserver;
70 mController.setAvailabilityObserver(mObserver);
81 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver);
93 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_EXPOSURE_CHANGES_CATEGORY, true);
95 reset(mObserver);
98 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_EXPOSURE_CHANGES_CATEGORY, true);
100 reset(mObserver);
103 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_EXPOSURE_CHANGES_CATEGORY, true);
105 reset(mObserver);
108 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_EXPOSURE_CHANGES_CATEGORY, false);
125 verify(mObserver, never()).onPreferenceAvailabilityUpdated(
129 reset(mObserver);
131 verify(mObserver, never()).onPreferenceAvailabilityUpdated(
135 reset(mObserver);
137 verify(mObserver, never()).onPreferenceAvailabilityUpdated(
146 controller.setAvailabilityObserver(mObserver);
151 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_EXPOSURE_CHANGES_CATEGORY, false);
152 reset(mObserver);
155 verify(mObserver, never()).onPreferenceAvailabilityUpdated(
158 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_EXPOSURE_CHANGES_CATEGORY, true);
159 reset(mObserver);
162 verify(mObserver, never()).onPreferenceAvailabilityUpdated(
165 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_EXPOSURE_CHANGES_CATEGORY, true);
166 reset(mObserver);
169 verify(mObserver, never()).onPreferenceAvailabilityUpdated(
172 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_EXPOSURE_CHANGES_CATEGORY, true);
173 reset(mObserver);
176 verify(mObserver, never()).onPreferenceAvailabilityUpdated(
179 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_EXPOSURE_CHANGES_CATEGORY, false);