Searched refs:mPreference (Results 1 – 2 of 2) sorted by relevance
65 private PreferenceWrapper mPreference; field in PreferenceDataStoreTest84 mPreference = new PreferenceWrapper(mActivity); in setup()85 mPreference.setKey(KEY); in setup()139 mPreference.setPreferenceDataStore(mDataStore); in testDataStoresHierarchy()141 mScreen.addPreference(mPreference); in testDataStoresHierarchy()143 mPreference.putString(TEST_STR); in testDataStoresHierarchy()146 assertEquals(mDataStore, mPreference.getPreferenceDataStore()); in testDataStoresHierarchy()157 mPreference.setPreferenceDataStore(mDataStore); in testPutStringWithDataStoreOnPref()158 mScreen.addPreference(mPreference); in testPutStringWithDataStoreOnPref()165 mScreen.addPreference(mPreference); in testPutStringWithDataStoreOnMgr()[all …]
36 private Preference mPreference; field in PreferenceTest46 mPreference = (CheckBoxPreference) mActivity.findPreference( in setUp()51 assertNotNull(mPreference); in testNotNull()55 String summary = (String) mPreference.getSummary(); in testGetSummary()65 mPreference.setSummary(summary); in testSetSummary()68 assertEquals(summary, mPreference.getSummary()); in testSetSummary()72 assertTrue(mPreference.isEnabled()); in testIsEnabled()78 mPreference.setEnabled(false); in testSetEnabled()81 assertFalse(mPreference.isEnabled()); in testSetEnabled()85 assertTrue(mPreference.isPersistent()); in testIsPersistent()[all …]