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.java57 SharedPreferences prefs = getPrefs(); in setUp()
70 private SharedPreferences getPrefs() { in getPrefs() method in SharedPreferencesTest
79 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()
/cts/hostsidetests/devicepolicy/app/TransferOwnerIncomingApp/src/com/android/cts/transferowner/
DDeviceAndProfileOwnerTransferIncomingTest.java128 private static SharedPreferences getPrefs(Context context) { in getPrefs() method in DeviceAndProfileOwnerTransferIncomingTest
133 getPrefs(context).edit().putBoolean(key, value).apply(); in putBooleanPref()
137 return getPrefs(context).getBoolean(key, false); in getBooleanPref()
/cts/hostsidetests/devicepolicy/app/TransferOwnerOutgoingApp/src/com/android/cts/transferowner/
DDeviceAndProfileOwnerTransferOutgoingTest.java201 private static SharedPreferences getPrefs(Context context) { in getPrefs() method in DeviceAndProfileOwnerTransferOutgoingTest
206 getPrefs(context).edit().putBoolean(key, value).apply(); in putBooleanPref()
210 return getPrefs(context).getBoolean(key, false); in getBooleanPref()