Home
last modified time | relevance | path

Searched refs:getPrefs (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java55 SharedPreferences prefs = getPrefs(); in setUp()
68 private SharedPreferences getPrefs() { in getPrefs() method in SharedPreferencesTest
77 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 …]
/cts/hostsidetests/devicepolicy/app/TransferOwnerIncomingApp/src/com/android/cts/transferowner/
DDeviceAndProfileOwnerTransferIncomingTest.java115 private static SharedPreferences getPrefs(Context context) { in getPrefs() method in DeviceAndProfileOwnerTransferIncomingTest
120 getPrefs(context).edit().putBoolean(key, value).apply(); in putBooleanPref()
124 return getPrefs(context).getBoolean(key, false); in getBooleanPref()
/cts/hostsidetests/devicepolicy/app/TransferOwnerOutgoingApp/src/com/android/cts/transferowner/
DDeviceAndProfileOwnerTransferOutgoingTest.java191 private static SharedPreferences getPrefs(Context context) { in getPrefs() method in DeviceAndProfileOwnerTransferOutgoingTest
196 getPrefs(context).edit().putBoolean(key, value).apply(); in putBooleanPref()
200 return getPrefs(context).getBoolean(key, false); in getBooleanPref()