Searched refs:editor (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/content/src/android/content/cts/ |
D | SharedPreferencesTest.java | 98 SharedPreferences.Editor editor = prefs.edit().putString("test-key", null); in testPutNullRemovesKey() local 100 editor.commit(); in testPutNullRemovesKey() 108 public abstract void setUp(SharedPreferences.Editor editor); in setUp() argument 112 public abstract void subsequentEdit(SharedPreferences.Editor editor); in subsequentEdit() argument 122 SharedPreferences.Editor editor; in test() local 128 editor = prefs.edit(); in test() 129 setUp(editor); in test() 130 editor.commit(); in test() 139 editor = prefs.edit(); in test() 140 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/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/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/apps/CtsVerifier/src/com/android/cts/verifier/backup/ |
D | BackupTestActivity.java | 198 SharedPreferences.Editor editor = prefs.edit(); in generatePreferenceGroup1() local 199 editor.putInt(INT_PREF, (random.nextInt(100) + 1)); in generatePreferenceGroup1() 200 editor.putBoolean(BOOL_PREF, random.nextBoolean()); in generatePreferenceGroup1() 201 editor.commit(); in generatePreferenceGroup1() 206 SharedPreferences.Editor editor = prefs.edit(); in generatePreferenceGroup2() local 207 editor.putFloat(FLOAT_PREF, random.nextFloat()); in generatePreferenceGroup2() 208 editor.putLong(LONG_PREF, random.nextLong()); in generatePreferenceGroup2() 209 editor.putString(STRING_PREF, "Random number: " + (random.nextInt(100) + 1)); in generatePreferenceGroup2() 210 editor.commit(); in generatePreferenceGroup2()
|
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/ |
D | CreatePrivateDataTest.java | 110 SharedPreferences.Editor editor = prefs.edit(); in writeToPreferences() local 111 editor.putString(PREFERENCE_KEY, PREFERENCE_VALUE); in writeToPreferences() 112 editor.commit(); in writeToPreferences()
|