/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/ |
D | SharedPreferenceLoggerTest.java | 59 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putInt_shouldNotLogInitialPut() local 60 editor.putInt(TEST_KEY, 1); in putInt_shouldNotLogInitialPut() 61 editor.putInt(TEST_KEY, 1); in putInt_shouldNotLogInitialPut() 62 editor.putInt(TEST_KEY, 1); in putInt_shouldNotLogInitialPut() 63 editor.putInt(TEST_KEY, 2); in putInt_shouldNotLogInitialPut() 64 editor.putInt(TEST_KEY, 2); in putInt_shouldNotLogInitialPut() 65 editor.putInt(TEST_KEY, 2); in putInt_shouldNotLogInitialPut() 66 editor.putInt(TEST_KEY, 2); in putInt_shouldNotLogInitialPut() 77 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putBoolean_shouldNotLogInitialPut() local 78 editor.putBoolean(TEST_KEY, true); in putBoolean_shouldNotLogInitialPut() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | VoicemailNotificationSettingsUtil.java | 49 SharedPreferences.Editor editor = prefs.edit(); in setVibrationEnabled() local 50 editor.putBoolean(getVoicemailVibrationSharedPrefsKey(), isEnabled); in setVibrationEnabled() 51 editor.commit(); in setVibrationEnabled() 70 SharedPreferences.Editor editor = prefs.edit(); in setRingtoneUri() local 71 editor.putString(getVoicemailRingtoneSharedPrefsKey(), ringtoneUriStr); in setRingtoneUri() 72 editor.commit(); in setRingtoneUri() 110 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded() local 111 editor.putBoolean(key, voicemailVibrate) in migrateVoicemailVibrationSettingsIfNeeded() 123 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded() local 124 editor.putBoolean(key, voicemailVibrate) in migrateVoicemailVibrationSettingsIfNeeded() [all …]
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
D | ApprovedPrintServices.java | 103 SharedPreferences.Editor editor = mPreferences.edit(); in addApprovedService() local 104 editor.putStringSet(APPROVED_SERVICES_PREFERENCE, newApprovedServices); in addApprovedService() 105 editor.apply(); in addApprovedService() 153 SharedPreferences.Editor editor = mPreferences.edit(); in pruneApprovedServices() local 155 editor.putStringSet(APPROVED_SERVICES_PREFERENCE, newApprovedServices); in pruneApprovedServices() 156 editor.apply(); in pruneApprovedServices()
|
/frameworks/base/media/java/android/media/ |
D | RemoteControlClient.java | 589 MetadataEditor editor = new MetadataEditor(); in editMetadata() local 591 editor.mEditorMetadata = new Bundle(); in editMetadata() 592 editor.mEditorArtwork = null; in editMetadata() 593 editor.mMetadataChanged = true; in editMetadata() 594 editor.mArtworkChanged = true; in editMetadata() 595 editor.mEditableKeys = 0; in editMetadata() 597 editor.mEditorMetadata = new Bundle(mMetadata); in editMetadata() 598 editor.mEditorArtwork = mOriginalArtwork; in editMetadata() 599 editor.mMetadataChanged = false; in editMetadata() 600 editor.mArtworkChanged = false; in editMetadata() [all …]
|
D | RemoteController.java | 382 MetadataEditor editor = new MetadataEditor(); in editMetadata() local 383 editor.mEditorMetadata = new Bundle(); in editMetadata() 384 editor.mEditorArtwork = null; in editMetadata() 385 editor.mMetadataChanged = true; in editMetadata() 386 editor.mArtworkChanged = true; in editMetadata() 387 editor.mEditableKeys = 0; in editMetadata() 388 return editor; in editMetadata()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | ConnectionRecordManager.java | 74 final SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in setConnectionRecord() local 77 editor.putInt(mLastSelectedDevice, record); in setConnectionRecord() 79 editor.putString(KEY_LAST_SELECTED_DEVICE, mLastSelectedDevice); in setConnectionRecord() 80 editor.apply(); in setConnectionRecord()
|
/frameworks/ex/common/java/com/android/common/ |
D | SharedPreferencesCompat.java | 39 public static void apply(SharedPreferences.Editor editor) { in apply() argument 42 sApplyMethod.invoke(editor); in apply() 50 editor.commit(); in apply()
|
D | OperationScheduler.java | 315 SharedPreferences.Editor editor = mStorage.edit(); in onTransientError() local 316 editor.putLong(PREFIX + "lastErrorTimeMillis", currentTimeMillis()); in onTransientError() 317 editor.putInt(PREFIX + "errorCount", in onTransientError() 319 SharedPreferencesCompat.apply(editor); in onTransientError()
|
/frameworks/base/core/java/android/preference/ |
D | Preference.java | 1618 private void tryCommit(SharedPreferences.Editor editor) { in tryCommit() argument 1621 editor.apply(); in tryCommit() 1626 editor.commit(); in tryCommit() 1655 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistString() local 1656 editor.putString(mKey, value); in persistString() 1657 tryCommit(editor); in persistString() 1708 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistStringSet() local 1709 editor.putStringSet(mKey, values); in persistStringSet() 1710 tryCommit(editor); in persistStringSet() 1761 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistInt() local [all …]
|
D | PreferenceManager.java | 672 SharedPreferences.Editor editor = in setDefaultValues() local 675 editor.apply(); in setDefaultValues() 680 editor.commit(); in setDefaultValues()
|
/frameworks/base/services/backup/java/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyRotationTracker.java | 103 SharedPreferences.Editor editor = mSharedPreferences.edit(); in markAllForRotation() local 105 editor.putInt(packageName, MAX_BACKUPS_UNTIL_TERTIARY_KEY_ROTATION); in markAllForRotation() 107 editor.apply(); in markAllForRotation()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | Phone.java | 848 SharedPreferences.Editor editor = sp.edit(); in disableDnsCheck() local 849 editor.putBoolean(DNS_SERVER_CHECK_DISABLED_KEY, b); in disableDnsCheck() 850 editor.apply(); in disableDnsCheck() 1460 SharedPreferences.Editor editor = sp.edit(); in updateSavedNetworkOperator() local 1461 editor.putString(NETWORK_SELECTION_KEY + subId, nsm.operatorNumeric); in updateSavedNetworkOperator() 1462 editor.putString(NETWORK_SELECTION_NAME_KEY + subId, nsm.operatorAlphaLong); in updateSavedNetworkOperator() 1463 editor.putString(NETWORK_SELECTION_SHORT_KEY + subId, nsm.operatorAlphaShort); in updateSavedNetworkOperator() 1466 if (!editor.commit()) { in updateSavedNetworkOperator() 1543 SharedPreferences.Editor editor = sp.edit(); in saveClirSetting() local 1544 editor.putInt(CLIR_KEY + getSubId(), commandInterfaceCLIRMode); in saveClirSetting() [all …]
|
D | CarrierKeyDownloadManager.java | 204 SharedPreferences.Editor editor = getDefaultSharedPreferences(mContext).edit(); in cleanupDownloadPreferences() local 205 editor.remove(String.valueOf(carrierKeyDownloadIdentifier)); in cleanupDownloadPreferences() 206 editor.commit(); in cleanupDownloadPreferences() 540 SharedPreferences.Editor editor = getDefaultSharedPreferences(mContext).edit(); in downloadKey() local 546 editor.putString(MCC_MNC_PREF_TAG + slotId, mccMnc); in downloadKey() 547 editor.commit(); in downloadKey()
|
D | LocaleTracker.java | 614 final SharedPreferences.Editor editor = prefs.edit(); in updateLastKnownCountryIso() local 615 editor.putString(LAST_KNOWN_COUNTRY_ISO_SHARED_PREFS_KEY, countryIso); in updateLastKnownCountryIso() 616 editor.commit(); in updateLastKnownCountryIso()
|
D | GsmCdmaPhone.java | 1637 SharedPreferences.Editor editor = sp.edit(); in storeVoiceMailNumber() local 1642 editor.putString(VM_NUMBER + getPhoneId(), number); in storeVoiceMailNumber() 1643 editor.apply(); in storeVoiceMailNumber() 1645 editor.putString(VM_NUMBER_CDMA + getPhoneId(), number); in storeVoiceMailNumber() 1646 editor.apply(); in storeVoiceMailNumber() 1720 SharedPreferences.Editor editor = sp.edit(); in setVmSimImsi() local 1721 editor.putString(VM_SIM_IMSI + getPhoneId(), imsi); in setVmSimImsi() 1722 editor.apply(); in setVmSimImsi() 2620 SharedPreferences.Editor editor = sp.edit(); in migrateClirSettingIfNeeded() local 2621 editor.putInt(CLIR_KEY + getSubId(), clirSetting); in migrateClirSettingIfNeeded() [all …]
|
D | SubscriptionInfoUpdater.java | 593 SharedPreferences.Editor editor = sp.edit(); in handleSimLoaded() local 594 editor.putInt(CURR_SUBID + phoneId, subId); in handleSimLoaded() 595 editor.apply(); in handleSimLoaded()
|
D | ServiceStateTracker.java | 439 SharedPreferences.Editor editor = sp.edit(); in onSubscriptionsChanged() local 440 editor.putString(Phone.NETWORK_SELECTION_KEY + mSubId, in onSubscriptionsChanged() 442 editor.putString(Phone.NETWORK_SELECTION_NAME_KEY + mSubId, in onSubscriptionsChanged() 444 editor.putString(Phone.NETWORK_SELECTION_SHORT_KEY + mSubId, in onSubscriptionsChanged() 446 editor.remove(Phone.NETWORK_SELECTION_KEY); in onSubscriptionsChanged() 447 editor.remove(Phone.NETWORK_SELECTION_NAME_KEY); in onSubscriptionsChanged() 448 editor.remove(Phone.NETWORK_SELECTION_SHORT_KEY); in onSubscriptionsChanged() 449 editor.commit(); in onSubscriptionsChanged()
|
/frameworks/base/tests/backup/src/com/android/backuptest/ |
D | BackupTestActivity.java | 125 SharedPreferences.Editor editor = prefs.edit(); 126 editor.putInt(PREF_KEY, val+1); 127 editor.commit();
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmCdmaPhoneTest.java | 721 SharedPreferences.Editor editor = sharedPreferences.edit(); in testVoiceMailCount() local 723 editor.putString("vm_id_key", imsi); in testVoiceMailCount() 724 editor.putInt("vm_count_key", 5); in testVoiceMailCount() 725 editor.apply(); in testVoiceMailCount() 790 SharedPreferences.Editor editor = sharedPreferences.edit(); in testGetCallForwardingOption() local 791 editor.remove(Phone.CF_STATUS + mPhoneUT.getSubId()); in testGetCallForwardingOption() 792 editor.apply(); in testGetCallForwardingOption() 1074 SharedPreferences.Editor editor = sp.edit(); in testCallForwardingIndicator() local 1075 editor.putString(Phone.CF_ID, imsi); in testCallForwardingIndicator() 1076 editor.putInt(Phone.CF_STATUS, IccRecords.CALL_FORWARDING_STATUS_ENABLED); in testCallForwardingIndicator() [all …]
|
D | CarrierKeyDownloadMgrTest.java | 243 SharedPreferences.Editor editor = getDefaultSharedPreferences(mContext).edit(); in testDownloadComplete() local 246 editor.putString("CARRIER_KEY_DM_MCC_MNC" + slotId, mccMnc); in testDownloadComplete() 247 editor.commit(); in testDownloadComplete()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDevice.java | 749 SharedPreferences.Editor editor = preferences.edit(); in migratePhonebookPermissionChoice() local 750 editor.remove(mDevice.getAddress()); in migratePhonebookPermissionChoice() 751 editor.commit(); in migratePhonebookPermissionChoice() 773 SharedPreferences.Editor editor = preferences.edit(); in migrateMessagePermissionChoice() local 774 editor.remove(mDevice.getAddress()); in migrateMessagePermissionChoice() 775 editor.commit(); in migrateMessagePermissionChoice()
|
/frameworks/base/core/java/android/widget/ |
D | SelectionActionModeHelper.java | 89 SelectionActionModeHelper(@NonNull Editor editor) { in SelectionActionModeHelper() argument 90 mEditor = Preconditions.checkNotNull(editor); in SelectionActionModeHelper() 101 editor.getTextView().mHighlightColor, mTextView::invalidate); in SelectionActionModeHelper() 633 public boolean resetSelection(int textIndex, Editor editor) { in resetSelection() argument 634 final TextView textView = editor.getTextView(); in resetSelection() 640 boolean selected = editor.selectCurrentWord(); in resetSelection()
|
D | Editor.java | 6482 public UndoInputFilter(Editor editor) { 6483 mEditor = editor; 6702 public EditOperation(Editor editor, String oldText, int dstart, String newText, 6704 super(editor.mUndoOwner); 6719 mOldCursorPos = editor.mTextView.getSelectionStart(); 6764 Editor editor = getOwnerData(); 6765 Editable text = (Editable) editor.mTextView.getText(); 6773 Editor editor = getOwnerData(); 6774 Editable text = (Editable) editor.mTextView.getText(); 6889 Editor editor = getOwnerData(); [all …]
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrintActivity.java | 3157 final IPdfEditor editor = IPdfEditor.Stub.asInterface(service); in onServiceConnected() local 3166 doTransform(editor); in onServiceConnected() 3190 private void doTransform(IPdfEditor editor) throws IOException, RemoteException { in doTransform() argument 3201 editor.openDocument(src); in doTransform() 3207 editor.removePages(mPagesToShred); in doTransform() 3211 editor.applyPrintAttributes(mAttributesToApply); in doTransform() 3218 editor.write(dst); in doTransform() 3222 editor.closeDocument(); in doTransform()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | UiccController.java | 891 SharedPreferences.Editor editor = in saveCardStrings() local 893 editor.putString(CARD_STRINGS, TextUtils.join(",", mCardStrings)); in saveCardStrings() 894 editor.commit(); in saveCardStrings()
|