Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DClearApplicationDataTest.java41 private SharedPreferences mSharedPrefs; field in ClearApplicationDataTest
46 mSharedPrefs = mContext.getSharedPreferences(SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE); in setUp()
51 mSharedPrefs.edit().putBoolean(I_WAS_HERE, true).commit(); in testWriteToSharedPreference()
52 assertTrue(mSharedPrefs.contains(I_WAS_HERE)); in testWriteToSharedPreference()
57 assertFalse(mSharedPrefs.contains(I_WAS_HERE)); in testSharedPreferenceCleared()
/cts/hostsidetests/devicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/
DDirectoryProvider.java86 private SharedPreferences mSharedPrefs; field in DirectoryProvider
103 mSharedPrefs = getContext().getSharedPreferences(CONFIG_NAME, Context.MODE_PRIVATE); in onCreate()
212 mSharedPrefs.edit().putString(SET_CUSTOM_PREFIX, arg).apply(); in call()
252 return mSharedPrefs.getString(SET_CUSTOM_PREFIX, ""); in getPrefix()