Searched refs:getPrefs (Results 1 – 3 of 3) sorted by relevance
57 SharedPreferences prefs = getPrefs(); in setUp()70 private SharedPreferences getPrefs() { in getPrefs() method in SharedPreferencesTest79 SharedPreferences prefs = getPrefs(); in testCommitCreatesFiles()86 SharedPreferences prefs = getPrefs(); in testDefaults()100 SharedPreferences prefs = getPrefs(); in testPutNullRemovesKey()127 SharedPreferences prefs = getPrefs(); in test()227 SharedPreferences prefs = getPrefs(); in testRedundantCommitWritesFileIfNotAlreadyExisting()359 final SharedPreferences prefs = getPrefs(); in testSharedPrefsChangeListenerIsCalledOnCommit()376 final SharedPreferences prefs = getPrefs(); in testSharedPrefsChangeListenerIsCalledOnApply()
128 private static SharedPreferences getPrefs(Context context) { in getPrefs() method in DeviceAndProfileOwnerTransferIncomingTest133 getPrefs(context).edit().putBoolean(key, value).apply(); in putBooleanPref()137 return getPrefs(context).getBoolean(key, false); in getBooleanPref()
201 private static SharedPreferences getPrefs(Context context) { in getPrefs() method in DeviceAndProfileOwnerTransferOutgoingTest206 getPrefs(context).edit().putBoolean(key, value).apply(); in putBooleanPref()210 return getPrefs(context).getBoolean(key, false); in getBooleanPref()