Home
last modified time | relevance | path

Searched refs:editor (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/
DSharedPreferenceLoggerTest.java59 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/
DVoicemailNotificationSettingsUtil.java49 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/
DApprovedPrintServices.java103 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/packages/SettingsLib/src/com/android/settingslib/media/
DConnectionRecordManager.java74 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/
DSharedPreferencesCompat.java39 public static void apply(SharedPreferences.Editor editor) { in apply() argument
42 sApplyMethod.invoke(editor); in apply()
50 editor.commit(); in apply()
DOperationScheduler.java315 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/media/java/android/media/
DRemoteControlClient.java589 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 …]
DRemoteController.java382 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/core/java/android/preference/
DPreference.java1618 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 …]
DPreferenceManager.java672 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/
DTertiaryKeyRotationTracker.java103 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/base/tests/RollbackTest/TestApp/src/com/android/tests/rollback/testapp/
DCrashingMainActivity.java38 SharedPreferences.Editor editor = preferences.edit(); in incrementCountAndBroadcast() local
40 editor.putInt("crash_count", ++count).commit(); in incrementCountAndBroadcast()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java509 SharedPreferences.Editor editor = sharedPreferences.edit(); in testVoiceMailCount() local
511 editor.putString("vm_id_key", imsi); in testVoiceMailCount()
512 editor.putInt("vm_count_key", 5); in testVoiceMailCount()
513 editor.apply(); in testVoiceMailCount()
578 SharedPreferences.Editor editor = sharedPreferences.edit(); in testGetCallForwardingOption() local
579 editor.remove(Phone.CF_STATUS + mPhoneUT.getSubId()); in testGetCallForwardingOption()
580 editor.apply(); in testGetCallForwardingOption()
859 SharedPreferences.Editor editor = sp.edit(); in testCallForwardingIndicator() local
860 editor.putString(Phone.CF_ID, imsi); in testCallForwardingIndicator()
861 editor.putInt(Phone.CF_STATUS, IccRecords.CALL_FORWARDING_STATUS_ENABLED); in testCallForwardingIndicator()
[all …]
DCarrierKeyDownloadMgrTest.java268 SharedPreferences.Editor editor = getDefaultSharedPreferences(mContext).edit(); in testDownloadComplete() local
271 editor.putString("CARRIER_KEY_DM_MCC_MNC" + slotId, mccMnc); in testDownloadComplete()
272 editor.commit(); in testDownloadComplete()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhone.java843 SharedPreferences.Editor editor = sp.edit(); in disableDnsCheck() local
844 editor.putBoolean(DNS_SERVER_CHECK_DISABLED_KEY, b); in disableDnsCheck()
845 editor.apply(); in disableDnsCheck()
1425 SharedPreferences.Editor editor = sp.edit(); in updateSavedNetworkOperator() local
1426 editor.putString(NETWORK_SELECTION_KEY + subId, nsm.operatorNumeric); in updateSavedNetworkOperator()
1427 editor.putString(NETWORK_SELECTION_NAME_KEY + subId, nsm.operatorAlphaLong); in updateSavedNetworkOperator()
1428 editor.putString(NETWORK_SELECTION_SHORT_KEY + subId, nsm.operatorAlphaShort); in updateSavedNetworkOperator()
1431 if (!editor.commit()) { in updateSavedNetworkOperator()
1508 SharedPreferences.Editor editor = sp.edit(); in saveClirSetting() local
1509 editor.putInt(CLIR_KEY + getPhoneId(), commandInterfaceCLIRMode); in saveClirSetting()
[all …]
DCarrierKeyDownloadManager.java202 SharedPreferences.Editor editor = getDefaultSharedPreferences(mContext).edit(); in cleanupDownloadPreferences() local
203 editor.remove(String.valueOf(carrierKeyDownloadIdentifier)); in cleanupDownloadPreferences()
204 editor.commit(); in cleanupDownloadPreferences()
555 SharedPreferences.Editor editor = getDefaultSharedPreferences(mContext).edit(); in downloadKey() local
561 editor.putString(MCC_MNC_PREF_TAG + slotId, mccMnc); in downloadKey()
562 editor.commit(); in downloadKey()
DGsmCdmaPhone.java1493 SharedPreferences.Editor editor = sp.edit(); in storeVoiceMailNumber() local
1495 editor.putString(VM_NUMBER + getPhoneId(), number); in storeVoiceMailNumber()
1496 editor.apply(); in storeVoiceMailNumber()
1499 editor.putString(VM_NUMBER_CDMA + getPhoneId(), number); in storeVoiceMailNumber()
1500 editor.apply(); in storeVoiceMailNumber()
1558 SharedPreferences.Editor editor = sp.edit(); in setVmSimImsi() local
1559 editor.putString(VM_SIM_IMSI + getPhoneId(), imsi); in setVmSimImsi()
1560 editor.apply(); in setVmSimImsi()
DSubscriptionInfoUpdater.java531 SharedPreferences.Editor editor = sp.edit(); in handleSimLoaded() local
532 editor.putInt(CURR_SUBID + slotId, subId); in handleSimLoaded()
533 editor.apply(); in handleSimLoaded()
/frameworks/base/tests/backup/src/com/android/backuptest/
DBackupTestActivity.java125 SharedPreferences.Editor editor = prefs.edit();
126 editor.putInt(PREF_KEY, val+1);
127 editor.commit();
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/editors/
DREADME.txt5 appropriate editor.
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java766 SharedPreferences.Editor editor = preferences.edit(); in migratePhonebookPermissionChoice() local
767 editor.remove(mDevice.getAddress()); in migratePhonebookPermissionChoice()
768 editor.commit(); in migratePhonebookPermissionChoice()
790 SharedPreferences.Editor editor = preferences.edit(); in migrateMessagePermissionChoice() local
791 editor.remove(mDevice.getAddress()); in migrateMessagePermissionChoice()
792 editor.commit(); in migrateMessagePermissionChoice()
/frameworks/base/core/java/android/widget/
DSelectionActionModeHelper.java89 SelectionActionModeHelper(@NonNull Editor editor) { in SelectionActionModeHelper() argument
90 mEditor = Preconditions.checkNotNull(editor); in SelectionActionModeHelper()
101 editor.getTextView().mHighlightColor, mTextView::invalidate); in SelectionActionModeHelper()
597 public boolean resetSelection(int textIndex, Editor editor) { in resetSelection() argument
598 final TextView textView = editor.getTextView(); in resetSelection()
604 boolean selected = editor.selectCurrentWord(); in resetSelection()
606 mSelectionStart = editor.getTextView().getSelectionStart(); in resetSelection()
607 mSelectionEnd = editor.getTextView().getSelectionEnd(); in resetSelection()
DEditor.java6482 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/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccController.java774 SharedPreferences.Editor editor = in saveCardStrings() local
776 editor.putString(CARD_STRINGS, TextUtils.join(",", mCardStrings)); in saveCardStrings()
777 editor.commit(); in saveCardStrings()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java3157 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()

12