Searched refs:mockPreference (Results 1 – 1 of 1) sorted by relevance
168 RadioButtonPreference mockPreference = mock(RadioButtonPreference.class); in testDisabledPackageShownAsDisabled() local169 mPicker.bindPreference(mockPreference, in testDisabledPackageShownAsDisabled()171 mPicker.bindPreferenceExtra(mockPreference, in testDisabledPackageShownAsDisabled()173 verify(mockPreference, times(1)).setEnabled(eq(false)); in testDisabledPackageShownAsDisabled()174 verify(mockPreference, never()).setEnabled(eq(true)); in testDisabledPackageShownAsDisabled()183 RadioButtonPreference mockPreference = mock(RadioButtonPreference.class); in testEnabledPackageShownAsEnabled() local184 mPicker.bindPreference(mockPreference, in testEnabledPackageShownAsEnabled()186 mPicker.bindPreferenceExtra(mockPreference, in testEnabledPackageShownAsEnabled()188 verify(mockPreference, times(1)).setEnabled(eq(true)); in testEnabledPackageShownAsEnabled()189 verify(mockPreference, never()).setEnabled(eq(false)); in testEnabledPackageShownAsEnabled()[all …]