Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DOwnerChangedBroadcastTest.java32 private SharedPreferences mPreferences; field in OwnerChangedBroadcastTest
38 mPreferences = context.getSharedPreferences( in setUp()
56 mPreferences.registerOnSharedPreferenceChangeListener(listener); in testOwnerChangedBroadcastReceived()
58 if (mPreferences.getBoolean(BroadcastIntentReceiver.OWNER_CHANGED_BROADCAST_RECEIVED_KEY, in testOwnerChangedBroadcastReceived()
66 assertTrue(mPreferences.getBoolean( in testOwnerChangedBroadcastReceived()
71 assertFalse(mPreferences.getBoolean( in testOwnerChangedBroadcastNotReceived()
/cts/tests/sample/src/android/sample/
DSampleDeviceActivity.java32 private SharedPreferences mPreferences; field in SampleDeviceActivity
38 mPreferences = getPreferences(Context.MODE_PRIVATE); in onCreate()
49 Editor editor = mPreferences.edit(); in savePreference()
63 return mPreferences.getString(key, null); in getPreference()
71 Editor editor = mPreferences.edit(); in clearPreferences()
/cts/hostsidetests/backup/ProfileKeyValueApp/src/android.cts.backup.profilekeyvalueapp/
DProfileKeyValueBackupRestoreTest.java42 private SharedPreferences mPreferences; field in ProfileKeyValueBackupRestoreTest
48 mPreferences = context.getSharedPreferences(TEST_PREFS_NAME, Context.MODE_PRIVATE); in setUp()
53 int userIdPref = mPreferences.getInt(PREFS_USER_KEY, PREFS_USER_DEFAULT); in assertSharedPrefsIsEmpty()
59 SharedPreferences.Editor editor = mPreferences.edit(); in writeSharedPrefsAndAssertSuccess()
66 int userIdPref = mPreferences.getInt(PREFS_USER_KEY, PREFS_USER_DEFAULT); in assertSharedPrefsRestored()