/cts/tests/tests/content/src/android/content/cts/ |
D | SharedPreferencesTest.java | 102 SharedPreferences.Editor editor = prefs.edit().putString("test-key", null); in testPutNullRemovesKey() local 104 editor.commit(); in testPutNullRemovesKey() 112 public abstract void setUp(SharedPreferences.Editor editor); in setUp() argument 116 public abstract void subsequentEdit(SharedPreferences.Editor editor); in subsequentEdit() argument 126 SharedPreferences.Editor editor; in test() local 132 editor = prefs.edit(); in test() 133 setUp(editor); in test() 134 editor.commit(); in test() 143 editor = prefs.edit(); in test() 144 subsequentEdit(editor); in test() [all …]
|
/cts/tests/sample/src/android/sample/ |
D | SampleDeviceActivity.java | 49 Editor editor = mPreferences.edit(); in savePreference() local 51 editor.putString(key, value); in savePreference() 53 editor.commit(); in savePreference() 71 Editor editor = mPreferences.edit(); in clearPreferences() local 73 editor.clear(); in clearPreferences() 75 editor.commit(); in clearPreferences()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | BlockChangeReceiver.java | 19 SharedPreferences.Editor editor = prefs.edit(); in onReceive() local 23 editor.putBoolean(id, in onReceive() 27 editor.putBoolean(id, in onReceive() 31 editor.putBoolean(id, in onReceive() 34 editor.commit(); in onReceive()
|
D | NotificationListenerVerifierActivity.java | 302 SharedPreferences.Editor editor = prefs.edit(); in tearDown() local 303 editor.remove(mChannelId); in tearDown() 381 SharedPreferences.Editor editor = prefs.edit(); in tearDown() local 382 editor.remove(mGroupId); in tearDown() 453 SharedPreferences.Editor editor = prefs.edit(); in tearDown() local 454 editor.remove(mContext.getPackageName()); in tearDown() 521 SharedPreferences.Editor editor = prefs.edit(); in tearDown() local 522 editor.remove(mContext.getPackageName()); in tearDown()
|
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/ |
D | IncludeExcludeTest.java | 253 SharedPreferences.Editor editor = mIncludeSharedPref.edit(); in generateSharedPrefs() local 254 editor.putInt(SHARED_PREF_KEY1, SHARED_PREF_VALUE1); in generateSharedPrefs() 255 editor.commit(); in generateSharedPrefs() 258 editor = mExcludeSharedPref.edit(); in generateSharedPrefs() 259 editor.putInt(SHARED_PREF_KEY2, SHARED_PREF_VALUE2); in generateSharedPrefs() 260 editor.commit(); in generateSharedPrefs() 272 SharedPreferences.Editor editor = mIncludeSharedPref.edit(); in deleteSharedPref() local 273 editor.clear(); in deleteSharedPref() 274 editor.commit(); in deleteSharedPref() 276 editor = mExcludeSharedPref.edit(); in deleteSharedPref() [all …]
|
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/ |
D | BroadcastIntentReceiver.java | 34 SharedPreferences.Editor editor = prefs.edit(); in onReceive() local 35 editor.putBoolean(OWNER_CHANGED_BROADCAST_RECEIVED_KEY, true); in onReceive() 36 editor.apply(); in onReceive()
|
/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/ |
D | KeyValueBackupRestoreTest.java | 217 SharedPreferences.Editor editor = prefs.edit(); in saveSharedPreferencesValues() local 218 editor.putInt(INT_PREF, INT_PREF_VALUE); in saveSharedPreferencesValues() 219 editor.putBoolean(BOOL_PREF, BOOL_PREF_VALUE); in saveSharedPreferencesValues() 220 assertTrue("Error committing shared preference 1 value", editor.commit()); in saveSharedPreferencesValues() 223 editor = prefs.edit(); in saveSharedPreferencesValues() 224 editor.putFloat(FLOAT_PREF, FLOAT_PREF_VALUE); in saveSharedPreferencesValues() 225 editor.putLong(LONG_PREF, LONG_PREF_VALUE); in saveSharedPreferencesValues() 226 editor.putString(STRING_PREF, STRING_PREF_VALUE); in saveSharedPreferencesValues() 227 assertTrue("Error committing shared preference 2 value", editor.commit()); in saveSharedPreferencesValues()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
D | PolicySerializationTestActivity.java | 129 SharedPreferences.Editor editor = prefs.edit(); in generateRandomPolicy() local 130 editor.clear(); in generateRandomPolicy() 131 editor.putBoolean(LOAD_EXPECTED_POLICY_PREFERENCE, false); in generateRandomPolicy() 132 editor.apply(); in generateRandomPolicy() 162 SharedPreferences.Editor editor = prefs.edit(); in handleAddDeviceAdminResult() local 163 editor.clear(); in handleAddDeviceAdminResult() 164 editor.putBoolean(LOAD_EXPECTED_POLICY_PREFERENCE, true); in handleAddDeviceAdminResult() 166 item.saveExpectedValue(editor); in handleAddDeviceAdminResult() 168 editor.apply(); in handleAddDeviceAdminResult() 250 void saveExpectedValue(SharedPreferences.Editor editor); in saveExpectedValue() argument [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
D | SimpleReaderActivity.java | 174 SharedPreferences.Editor editor = mPrefs.edit(); in onItemSelected() local 175 editor.putBoolean("typeB", false); in onItemSelected() 176 editor.commit(); in onItemSelected() 182 SharedPreferences.Editor editor = mPrefs.edit(); in onItemSelected() local 183 editor.putBoolean("typeB", true); in onItemSelected() 184 editor.commit(); in onItemSelected()
|
/cts/hostsidetests/backup/RestoreAnyVersion/src/ |
D | RestoreAnyVersionTest.java | 105 SharedPreferences.Editor editor = prefs.edit(); in saveAppVersionCodeToSharedPreference() local 106 editor.putInt(INT_PREF, in saveAppVersionCodeToSharedPreference() 109 assertTrue("Error committing shared preference value", editor.commit()); in saveAppVersionCodeToSharedPreference()
|
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/ |
D | CreatePrivateDataTest.java | 109 SharedPreferences.Editor editor = prefs.edit(); in writeToPreferences() local 110 editor.putString(PREFERENCE_KEY, PREFERENCE_VALUE); in writeToPreferences() 111 editor.commit(); in writeToPreferences()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vr/ |
D | VrListenerVerifierActivity.java | 694 SharedPreferences.Editor editor = sharedPref.edit(); in setStatusOfTest() local 695 editor.putString(key, stringStatus); in setStatusOfTest() 696 editor.apply(); in setStatusOfTest() 700 SharedPreferences.Editor editor = sharedPref.edit(); in clear() local 701 editor.clear(); in clear() 702 editor.apply(); in clear()
|
/cts/hostsidetests/media/bitstreams/app/src/android/media/cts/bitstreams/app/ |
D | MediaBitstreamsDeviceSideTest.java | 197 Editor editor = settings.edit(); in setup() local 198 editor.putInt(lastCrash, n + 1); in setup() 199 editor.commit(); in setup()
|