Home
last modified time | relevance | path

Searched refs:mPreference (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceDataStoreTest.java65 private PreferenceWrapper mPreference; field in PreferenceDataStoreTest
84 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 …]
DPreferenceTest.java36 private Preference mPreference; field in PreferenceTest
46 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 …]