/cts/tests/tests/content/src/android/content/cts/ |
D | SharedPreferencesTest.java | 104 SharedPreferences.Editor editor = prefs.edit().putString("test-key", null); in testPutNullRemovesKey() local 106 editor.commit(); in testPutNullRemovesKey() 114 public abstract void setUp(SharedPreferences.Editor editor); in setUp() argument 118 public abstract void subsequentEdit(SharedPreferences.Editor editor); in subsequentEdit() argument 128 SharedPreferences.Editor editor; in test() local 134 editor = prefs.edit(); in test() 135 setUp(editor); in test() 136 editor.commit(); in test() 145 editor = prefs.edit(); in test() 146 subsequentEdit(editor); in test() [all …]
|
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/ |
D | IncludeExcludeTest.java | 272 SharedPreferences.Editor editor = mIncludeSharedPref1.edit(); in generateSharedPrefs() local 273 editor.putInt(SHARED_PREF_KEY1, SHARED_PREF_VALUE1); in generateSharedPrefs() 274 editor.commit(); in generateSharedPrefs() 275 editor = mIncludeSharedPref2.edit(); in generateSharedPrefs() 276 editor.putInt(SHARED_PREF_KEY2, SHARED_PREF_VALUE2); in generateSharedPrefs() 277 editor.commit(); in generateSharedPrefs() 280 editor = mExcludeSharedPref1.edit(); in generateSharedPrefs() 281 editor.putInt(SHARED_PREF_KEY3, SHARED_PREF_VALUE3); in generateSharedPrefs() 282 editor.commit(); in generateSharedPrefs() 283 editor = mExcludeSharedPref2.edit(); in generateSharedPrefs() [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 | 337 SharedPreferences.Editor editor = prefs.edit(); in tearDown() local 338 editor.remove(mChannelId); in tearDown() 416 SharedPreferences.Editor editor = prefs.edit(); in tearDown() local 417 editor.remove(mGroupId); in tearDown() 488 SharedPreferences.Editor editor = prefs.edit(); in tearDown() local 489 editor.remove(mContext.getPackageName()); in tearDown() 556 SharedPreferences.Editor editor = prefs.edit(); in tearDown() local 557 editor.remove(mContext.getPackageName()); in tearDown()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
D | PolicySerializationTestActivity.java | 131 SharedPreferences.Editor editor = prefs.edit(); in generateRandomPolicy() local 132 editor.clear(); in generateRandomPolicy() 133 editor.putBoolean(LOAD_EXPECTED_POLICY_PREFERENCE, false); in generateRandomPolicy() 134 editor.apply(); in generateRandomPolicy() 164 SharedPreferences.Editor editor = prefs.edit(); in handleAddDeviceAdminResult() local 165 editor.clear(); in handleAddDeviceAdminResult() 166 editor.putBoolean(LOAD_EXPECTED_POLICY_PREFERENCE, true); in handleAddDeviceAdminResult() 168 item.saveExpectedValue(editor); in handleAddDeviceAdminResult() 170 editor.apply(); in handleAddDeviceAdminResult() 252 void saveExpectedValue(SharedPreferences.Editor editor); in saveExpectedValue() argument [all …]
|
/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/ |
D | KeyValueBackupRestoreTest.java | 221 SharedPreferences.Editor editor = prefs.edit(); in saveSharedPreferencesValues() local 222 editor.putInt(INT_PREF, INT_PREF_VALUE); in saveSharedPreferencesValues() 223 editor.putBoolean(BOOL_PREF, BOOL_PREF_VALUE); in saveSharedPreferencesValues() 224 assertTrue("Error committing shared preference 1 value", editor.commit()); in saveSharedPreferencesValues() 227 editor = prefs.edit(); in saveSharedPreferencesValues() 228 editor.putFloat(FLOAT_PREF, FLOAT_PREF_VALUE); in saveSharedPreferencesValues() 229 editor.putLong(LONG_PREF, LONG_PREF_VALUE); in saveSharedPreferencesValues() 230 editor.putString(STRING_PREF, STRING_PREF_VALUE); in saveSharedPreferencesValues() 231 assertTrue("Error committing shared preference 2 value", editor.commit()); in saveSharedPreferencesValues()
|
/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/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/ProfileKeyValueApp/src/android.cts.backup.profilekeyvalueapp/ |
D | ProfileKeyValueBackupRestoreTest.java | 59 SharedPreferences.Editor editor = mPreferences.edit(); in writeSharedPrefsAndAssertSuccess() local 60 editor.putInt(PREFS_USER_KEY, mUserId); in writeSharedPrefsAndAssertSuccess() 61 assertThat(editor.commit()).isTrue(); in writeSharedPrefsAndAssertSuccess()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/offhost/ |
D | SimpleOffhostReaderActivity.java | 201 SharedPreferences.Editor editor = mPrefs.edit(); in onItemSelected() local 202 editor.putBoolean("typeB", false); in onItemSelected() 203 editor.commit(); in onItemSelected() 209 SharedPreferences.Editor editor = mPrefs.edit(); in onItemSelected() local 210 editor.putBoolean("typeB", true); in onItemSelected() 211 editor.commit(); in onItemSelected()
|
/cts/hostsidetests/backup/RestoreAnyVersion/src/ |
D | RestoreAnyVersionTest.java | 103 SharedPreferences.Editor editor = prefs.edit(); in saveAppVersionCodeToSharedPreference() local 104 editor.putInt(INT_PREF, in saveAppVersionCodeToSharedPreference() 107 assertTrue("Error committing shared preference value", editor.commit()); in saveAppVersionCodeToSharedPreference()
|
/cts/libs/install/testapp/src/com/android/cts/install/lib/testapp/ |
D | CrashingMainActivity.java | 38 SharedPreferences.Editor editor = preferences.edit(); in incrementCountAndBroadcast() local 40 editor.putInt("crash_count", ++count).commit(); in incrementCountAndBroadcast()
|
/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 | 230 Editor editor = settings.edit(); in setup() local 231 editor.putInt(lastCrash, n + 1); in setup() 232 editor.commit(); in setup()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodFlowTestActivity.java | 883 final SharedPreferences.Editor editor = prefs.edit(); in markProvisioningCompleteBroadcastWithStatus() local 884 editor.putInt(PREFERENCE_PROVISIONING_COMPLETE_STATUS, status); in markProvisioningCompleteBroadcastWithStatus() 885 editor.commit(); in markProvisioningCompleteBroadcastWithStatus()
|