Searched refs:getPrefs (Results 1 – 3 of 3) sorted by relevance
55 SharedPreferences prefs = getPrefs(); in setUp()68 private SharedPreferences getPrefs() { in getPrefs() method in SharedPreferencesTest77 SharedPreferences prefs = getPrefs(); in testCommitCreatesFiles()84 SharedPreferences prefs = getPrefs(); in testDefaults()98 SharedPreferences prefs = getPrefs(); in testPutNullRemovesKey()125 SharedPreferences prefs = getPrefs(); in test()225 SharedPreferences prefs = getPrefs(); in testRedundantCommitWritesFileIfNotAlreadyExisting()360 final SharedPreferences prefs = getPrefs(); in testSharedPrefsChangeListenerIsCalledOnCommit()379 final SharedPreferences prefs = getPrefs(); in testSharedPrefsChangeListenerIsCalledOnApply()403 final SharedPreferences prefs = getPrefs(); in testSharedPrefsChangeListenerIsCalledForClearOnCommit()[all …]
115 private static SharedPreferences getPrefs(Context context) { in getPrefs() method in DeviceAndProfileOwnerTransferIncomingTest120 getPrefs(context).edit().putBoolean(key, value).apply(); in putBooleanPref()124 return getPrefs(context).getBoolean(key, false); in getBooleanPref()
191 private static SharedPreferences getPrefs(Context context) { in getPrefs() method in DeviceAndProfileOwnerTransferOutgoingTest196 getPrefs(context).edit().putBoolean(key, value).apply(); in putBooleanPref()200 return getPrefs(context).getBoolean(key, false); in getBooleanPref()