/cts/tests/sample/src/android/sample/ |
SampleDeviceActivity.java | 22 import android.content.SharedPreferences.Editor; 48 // Get an editor to modify the preferences. 49 Editor editor = mPreferences.edit(); local 51 editor.putString(key, value); 53 editor.commit(); 70 // Get an editor to modify the preferences. 71 Editor editor = mPreferences.edit(); local 73 editor.clear() [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
BlockChangeReceiver.java | 19 SharedPreferences.Editor editor = prefs.edit(); local 23 editor.putBoolean(id, 27 editor.putBoolean(id, 31 editor.putBoolean(id, 34 editor.commit();
|
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/ |
BroadcastIntentReceiver.java | 34 SharedPreferences.Editor editor = prefs.edit(); local 35 editor.putBoolean(OWNER_CHANGED_BROADCAST_RECEIVED_KEY, true); 36 editor.apply();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
CommonPreferences.java | 30 final SharedPreferences.Editor editor = pref.edit(); local 31 editor.putBoolean(id, true); 32 editor.apply(); 36 final SharedPreferences.Editor editor = pref.edit(); local 37 editor.putBoolean(id, false); 38 editor.apply();
|
/packages/apps/Dialer/java/com/android/dialer/configprovider/ |
SharedPrefConfigProvider.java | 22 import android.content.SharedPreferences.Editor; 81 Editor editor = getSharedPrefs(getApplicationContext()).edit(); local 84 editor.putBoolean(prefixedKey, (Boolean) value); 86 editor.putLong(prefixedKey, (Long) value); 88 editor.putString(prefixedKey, (String) value); 92 editor.apply();
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
BuglePrefsImpl.java | 85 final SharedPreferences.Editor editor = prefs.edit(); local 86 editor.putInt(key, value); 87 editor.apply(); 95 final SharedPreferences.Editor editor = prefs.edit(); local 96 editor.putLong(key, value); 97 editor.apply(); 105 final SharedPreferences.Editor editor = prefs.edit() local 115 final SharedPreferences.Editor editor = prefs.edit(); local 131 final SharedPreferences.Editor editor = prefs.edit(); local [all...] |
/external/proguard/src/proguard/classfile/editor/ |
BootstrapMethodsAttributeEditor.java | 21 package proguard.classfile.editor;
|
CodeAttributeEditorResetter.java | 21 package proguard.classfile.editor; 43 * @param codeAttributeEditor the code attribute editor that will be reset.
|
LineNumberInfoAdder.java | 21 package proguard.classfile.editor;
|
LocalVariableTableAttributeEditor.java | 21 package proguard.classfile.editor;
|
LocalVariableTypeTableAttributeEditor.java | 21 package proguard.classfile.editor;
|
SubclassAdder.java | 21 package proguard.classfile.editor;
|
SubclassToAdder.java | 21 package proguard.classfile.editor;
|
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/editor/ |
IntEditor.java | 17 package com.android.notificationstudio.editor;
|
LinesEditor.java | 17 package com.android.notificationstudio.editor;
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
PreferenceManagerTest.java | 5 import android.content.SharedPreferences.Editor; 25 Editor editor = testPrefs.edit(); local 26 editor.putInt("foobar", 13); 27 editor.commit();
|
/frameworks/support/compat/src/main/java/androidx/core/content/ |
SharedPreferencesCompat.java | 32 * {@link SharedPreferences.Editor} directly. 43 public void apply(@NonNull SharedPreferences.Editor editor) { 45 editor.apply(); 48 // SharedPreferences.Editor implementation without 50 editor.commit(); 62 * {@link SharedPreferences.Editor} directly. 73 * {@link SharedPreferences.Editor#apply()} directly. 76 public void apply(@NonNull SharedPreferences.Editor editor) { [all...] |
/packages/screensavers/WebView/src/com/android/dreams/web/ |
SetURL.java | 20 import android.content.SharedPreferences.Editor; 49 final Editor editor = prefs.edit(); local 50 editor.putString("url", url); 51 editor.putBoolean("interactive", false); 52 editor.commit();
|
SetURLInteractive.java | 20 import android.content.SharedPreferences.Editor; 49 final Editor editor = prefs.edit(); local 50 editor.putString("url", url); 51 editor.putBoolean("interactive", true); 52 editor.commit();
|
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
PresencePreferences.java | 33 import android.content.SharedPreferences.Editor; 74 Editor editor = mCommonPref.edit(); local 76 editor.putLong(CAPABILITY_DISCOVERY_TIME, time); 77 editor.commit(); 94 Editor editor = mCommonPref.edit(); local 95 editor.putString(PHONE_SUBSCRIBER_ID, id); 96 editor.commit(); 113 Editor editor = mCommonPref.edit() local 132 Editor editor = mCommonPref.edit(); local [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/ |
SharedPreferenceLoggerTest.java | 66 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); local 67 editor.putInt(TEST_KEY, 1); 68 editor.putInt(TEST_KEY, 1); 69 editor.putInt(TEST_KEY, 1); 70 editor.putInt(TEST_KEY, 2); 71 editor.putInt(TEST_KEY, 2); 72 editor.putInt(TEST_KEY, 2); 73 editor.putInt(TEST_KEY, 2); 82 final SharedPreferences.Editor editor = mSharedPrefLogger.edit() local 100 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); local 114 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); local 127 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); local 140 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); local [all...] |
/developers/build/prebuilts/gradle/WearComplicationProvidersTestSuite/Wearable/src/main/java/com/example/android/wearable/wear/wearcomplicationproviderstestsuite/ |
ComplicationToggleReceiver.java | 43 SharedPreferences.Editor editor = pref.edit(); local 44 editor.putInt(preferenceKey, value + 1); // Increase value by 1 45 editor.apply();
|
/developers/samples/android/wearable/wear/WearComplicationProvidersTestSuite/Wearable/src/main/java/com/example/android/wearable/wear/wearcomplicationproviderstestsuite/ |
ComplicationToggleReceiver.java | 43 SharedPreferences.Editor editor = pref.edit(); local 44 editor.putInt(preferenceKey, value + 1); // Increase value by 1 45 editor.apply();
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
ApprovedPrintServices.java | 103 SharedPreferences.Editor editor = mPreferences.edit(); local 104 editor.putStringSet(APPROVED_SERVICES_PREFERENCE, newApprovedServices); 105 editor.apply(); 153 SharedPreferences.Editor editor = mPreferences.edit(); local 155 editor.putStringSet(APPROVED_SERVICES_PREFERENCE, newApprovedServices); 156 editor.apply();
|
/packages/apps/BasicSmsReceiver/src/com/android/basicsmsreceiver/ |
BasicSmsReceiverApp.java | 54 SharedPreferences.Editor editor = prefs.edit(); local 55 editor.putInt(PREF_KEY_NOTIFICATION_ID, notificationId); 56 editor.apply();
|