Searched refs:mPreference (Results 1 – 2 of 2) sorted by relevance
66 private PreferenceWrapper mPreference; field in PreferenceDataStoreTest85 mPreference = new PreferenceWrapper(mActivity); in setup()86 mPreference.setKey(KEY); in setup()140 mPreference.setPreferenceDataStore(mDataStore); in testDataStoresHierarchy()142 mScreen.addPreference(mPreference); in testDataStoresHierarchy()144 mPreference.putString(TEST_STR); in testDataStoresHierarchy()147 assertEquals(mDataStore, mPreference.getPreferenceDataStore()); in testDataStoresHierarchy()158 mPreference.setPreferenceDataStore(mDataStore); in testPutStringWithDataStoreOnPref()159 mScreen.addPreference(mPreference); in testPutStringWithDataStoreOnPref()166 mScreen.addPreference(mPreference); in testPutStringWithDataStoreOnMgr()[all …]
34 private Preference mPreference; field in PreferenceTest44 mPreference = (CheckBoxPreference) mActivity.findPreference( in setUp()49 assertNotNull(mPreference); in testNotNull()53 String summary = (String) mPreference.getSummary(); in testGetSummary()63 mPreference.setSummary(summary); in testSetSummary()66 assertEquals(summary, mPreference.getSummary()); in testSetSummary()70 assertTrue(mPreference.isEnabled()); in testIsEnabled()76 mPreference.setEnabled(false); in testSetEnabled()79 assertFalse(mPreference.isEnabled()); in testSetEnabled()83 assertTrue(mPreference.isPersistent()); in testIsPersistent()[all …]