Home
last modified time | relevance | path

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

12

/packages/apps/Email/src/com/android/email/
DAccount.java234 SharedPreferences.Editor editor = preferences.mSharedPreferences.edit(); in delete() local
235 editor.putString("accountUuids", accountUuids); in delete()
237 editor.remove(mUuid + ".storeUri"); in delete()
238 editor.remove(mUuid + ".localStoreUri"); in delete()
239 editor.remove(mUuid + ".senderUri"); in delete()
240 editor.remove(mUuid + ".description"); in delete()
241 editor.remove(mUuid + ".name"); in delete()
242 editor.remove(mUuid + ".email"); in delete()
243 editor.remove(mUuid + ".automaticCheckIntervalMinutes"); in delete()
244 editor.remove(mUuid + ".lastAutomaticCheckTime"); in delete()
[all …]
/packages/apps/Email/tests/src/com/android/email/
DAccountUnitTests.java66 SharedPreferences.Editor editor = mPreferences.mSharedPreferences.edit(); in testTransportToSenderUpdate() local
67 editor.remove(mUuid + ".senderUri"); in testTransportToSenderUpdate()
68 editor.putString(mUuid + ".transportUri", Utility.base64Encode(TEST_VALUE)); in testTransportToSenderUpdate()
69 editor.commit(); in testTransportToSenderUpdate()
101 SharedPreferences.Editor editor = mPreferences.mSharedPreferences.edit(); in testImapDeletePolicyUpdate() local
102 editor.putString(mUuid + ".storeUri", Utility.base64Encode(STORE_URI_POP3)); in testImapDeletePolicyUpdate()
103 editor.putInt(mUuid + ".deletePolicy", Account.DELETE_POLICY_NEVER); in testImapDeletePolicyUpdate()
104 editor.commit(); in testImapDeletePolicyUpdate()
123 editor = mPreferences.mSharedPreferences.edit(); in testImapDeletePolicyUpdate()
124 editor.putString(mUuid + ".storeUri", Utility.base64Encode(STORE_URI_IMAP)); in testImapDeletePolicyUpdate()
[all …]
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DSettings.java55 Editor editor = mSharedPref.edit(); in writeBack() local
56 editor.putBoolean(ANDPY_CONFS_VIBRATE_KEY, mVibrate); in writeBack()
57 editor.putBoolean(ANDPY_CONFS_KEYSOUND_KEY, mKeySound); in writeBack()
58 editor.putBoolean(ANDPY_CONFS_PREDICTION_KEY, mPrediction); in writeBack()
59 editor.commit(); in writeBack()
/packages/apps/Contacts/src/com/android/contacts/ui/widget/
DKindSectionView.java81 public void onDeleted(Editor editor) { in onDeleted() argument
117 final GenericEditorView editor = (GenericEditorView)mInflater.inflate( in rebuildFromState() local
119 editor.setValues(mKind, entry, mState, mReadOnly); in rebuildFromState()
120 editor.setEditorListener(this); in rebuildFromState()
121 editor.setId(entry.getViewId()); in rebuildFromState()
122 mEditors.addView(editor); in rebuildFromState()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppManager.java162 SharedPreferences.Editor editor = mContext.getSharedPreferences(OPP_PREFERENCE_FILE, 0) in onDestroy() local
164 editor.putBoolean(SENDING_FLAG, mSendingFlag).commit(); in onDestroy()
165 editor.putString(MIME_TYPE, mMimeTypeOfSendigFile).commit(); in onDestroy()
166 editor.putString(FILE_URI, mUriOfSendingFile).commit(); in onDestroy()
167 editor.putString(MIME_TYPE_MULTIPLE, mMimeTypeOfSendigFiles).commit(); in onDestroy()
168 editor.putBoolean(MULTIPLE_FLAG, mMultipleFlag).commit(); in onDestroy()
177 editor.putString(FILE_URIS, strUris).commit(); in onDestroy()
/packages/apps/Camera/src/com/android/camera/
DCameraSettings.java81 SharedPreferences.Editor editor = PreferenceManager in initialCameraPictureSize() local
83 editor.putString(KEY_PICTURE_SIZE, candidate); in initialCameraPictureSize()
84 editor.commit(); in initialCameraPictureSize()
246 SharedPreferences.Editor editor = pref.edit(); in upgradePreferences()
250 editor.putString(KEY_VIDEO_DURATION, "10"); in upgradePreferences()
264 editor.putString(KEY_JPEG_QUALITY, quality); in upgradePreferences()
267 editor.putInt(KEY_VERSION, CURRENT_VERSION); in upgradePreferences()
268 editor.commit(); in upgradePreferences()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java45 SharedPreferences.Editor editor = prefs.edit(); in setDefaultView() local
49 editor.putString(CalendarPreferenceActivity.KEY_DETAILED_VIEW, activityString); in setDefaultView()
53 editor.putString(CalendarPreferenceActivity.KEY_START_VIEW, activityString); in setDefaultView()
54 editor.commit(); in setDefaultView()
/packages/apps/Gallery/src/com/android/camera/
DCameraSettings.java83 SharedPreferences.Editor editor = PreferenceManager in initialCameraPictureSize() local
85 editor.putString(KEY_PICTURE_SIZE, candidate); in initialCameraPictureSize()
86 editor.commit(); in initialCameraPictureSize()
248 SharedPreferences.Editor editor = pref.edit(); in upgradePreferences()
252 editor.putString(KEY_VIDEO_DURATION, "10"); in upgradePreferences()
255 editor.putInt(KEY_VERSION, CURRENT_VERSION); in upgradePreferences()
256 editor.commit(); in upgradePreferences()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
DDefaultSoftKeyboardEN.java98 private int getShiftKeyState(EditorInfo editor) { in getShiftKeyState() argument
101 int caps = connection.getCursorCapsMode(editor.inputType); in getShiftKeyState()
147 @Override public void setPreferences(SharedPreferences pref, EditorInfo editor) { in setPreferences() argument
148 super.setPreferences(pref, editor); in setPreferences()
153 switch (editor.inputType & EditorInfo.TYPE_MASK_CLASS) { in setPreferences()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDiscoverableEnabler.java145 SharedPreferences.Editor editor = mLocalManager.getSharedPreferences().edit(); in persistDiscoverableEndTimestamp() local
146 editor.putLong(SHARED_PREFERENCES_KEY_DISCOVERABLE_END_TIMESTAMP, endTimestamp); in persistDiscoverableEndTimestamp()
147 editor.commit(); in persistDiscoverableEndTimestamp()
DLocalBluetoothManager.java335 SharedPreferences.Editor editor = getSharedPreferences().edit(); in persistSelectedDeviceInPicker() local
336 editor.putString(LocalBluetoothManager.SHARED_PREFERENCES_KEY_LAST_SELECTED_DEVICE, in persistSelectedDeviceInPicker()
338 editor.putLong(LocalBluetoothManager.SHARED_PREFERENCES_KEY_LAST_SELECTED_DEVICE_TIME, in persistSelectedDeviceInPicker()
340 editor.commit(); in persistSelectedDeviceInPicker()
DRequestPermissionActivity.java277 SharedPreferences.Editor editor = mLocalManager.getSharedPreferences().edit(); in persistDiscoverableEndTimestamp() local
278 editor.putLong( in persistDiscoverableEndTimestamp()
281 editor.commit(); in persistDiscoverableEndTimestamp()
/packages/apps/Contacts/src/com/android/contacts/ui/
DEditContactActivity.java347 BaseContactEditorView editor; in bindEditors() local
349 editor = (BaseContactEditorView) inflater.inflate(R.layout.item_contact_editor, in bindEditors()
352 editor = (BaseContactEditorView) inflater.inflate( in bindEditors()
355 PhotoEditorView photoEditor = editor.getPhotoEditor(); in bindEditors()
359 mContent.addView(editor); in bindEditors()
360 editor.setState(entity, source); in bindEditors()
375 public PhotoListener(long rawContactId, boolean readOnly, PhotoEditorView editor) { in PhotoListener() argument
378 mEditor = editor; in PhotoListener()
381 public void onDeleted(Editor editor) { in onDeleted() argument
446 BaseContactEditorView editor = (BaseContactEditorView) childView; in onClick() local
[all …]
DDisplayGroupsActivity.java650 Editor editor = mPrefs.edit(); in setDisplayOnlyPhones() local
651 editor.putBoolean(Prefs.DISPLAY_ONLY_PHONES, displayOnlyPhones); in setDisplayOnlyPhones()
652 editor.commit(); in setDisplayOnlyPhones()
/packages/apps/Calculator/src/com/android/calculator2/
DCalculatorDisplay.java133 EditText editor = (EditText) getCurrentView(); in insert() local
134 int cursor = editor.getSelectionStart(); in insert()
135 editor.getText().insert(cursor, delta); in insert()
/packages/apps/Settings/src/com/android/settings/
DPrivacySettings.java236 SharedPreferences.Editor editor = settings.edit(); in setAgreedToUseLocation() local
237 editor.putBoolean(PREFS_USE_LOCATION, true); in setAgreedToUseLocation()
238 editor.commit(); in setAgreedToUseLocation()
DRadioInfo.java564 SharedPreferences.Editor editor = sp.edit(); in updateQxdmState() local
565 editor.putBoolean("qxdmstatus", newQxdmStatus); in updateQxdmState()
566 editor.commit(); in updateQxdmState()
578 SharedPreferences.Editor editor = sp.edit(); in setCiphPref() local
579 editor.putBoolean(GSMPhone.CIPHERING_KEY, value); in setCiphPref()
580 editor.commit(); in setCiphPref()
1051 SharedPreferences.Editor editor = sp.edit(); in toggleDataDisabledOnBoot() local
1053 editor.putBoolean(GSMPhone.DATA_DISABLED_ON_BOOT_KEY, !value); in toggleDataDisabledOnBoot()
1060 editor.commit(); in toggleDataDisabledOnBoot()
DManageApplications.java1813 SharedPreferences.Editor editor = settings.edit(); in loadCache() local
1814 editor.putBoolean(PREF_DISABLE_CACHE, true); in loadCache()
1815 editor.commit(); in loadCache()
1819 editor.putBoolean(PREF_DISABLE_CACHE, false); in loadCache()
1820 editor.commit(); in loadCache()
1826 SharedPreferences.Editor editor = settings.edit(); in updateCache() local
1827 editor.putBoolean(PREF_DISABLE_CACHE, true); in updateCache()
1828 editor.commit(); in updateCache()
1834 editor.putBoolean(PREF_DISABLE_CACHE, false); in updateCache()
1835 editor.commit(); in updateCache()
/packages/apps/Mms/src/com/android/mms/ui/
DConversationList.java179 SharedPreferences.Editor editor = mPrefs.edit(); in runOneTimeStorageLimitCheckForLegacyMessages()
180 editor.putBoolean(MessagingPreferenceActivity.AUTO_DELETE, true); in runOneTimeStorageLimitCheckForLegacyMessages()
181 editor.commit(); in runOneTimeStorageLimitCheckForLegacyMessages()
201 SharedPreferences.Editor editor = mPrefs.edit(); in markCheckedMessageLimit() local
202 editor.putBoolean(CHECKED_MESSAGE_LIMITS, true); in markCheckedMessageLimit()
203 editor.commit(); in markCheckedMessageLimit()
/packages/apps/Contacts/src/com/android/contacts/
DDialtactsActivity.java97 SharedPreferences.Editor editor = getSharedPreferences(PREFS_DIALTACTS, MODE_PRIVATE) in onPause() local
99 editor.putBoolean(PREF_FAVORITES_AS_CONTACTS, currentTabIndex == TAB_INDEX_FAVORITES); in onPause()
100 editor.commit(); in onPause()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DInputViewManager.java60 public void setPreferences(SharedPreferences pref, EditorInfo editor); in setPreferences() argument
/packages/apps/Contacts/src/com/android/contacts/model/
DEditor.java36 public void onDeleted(Editor editor); in onDeleted() argument
/packages/apps/Phone/src/com/android/phone/
DCallFeaturesSetting.java1555 Editor editor = mPerProviderSavedVMNumbers.edit(); in maybeSaveSettingsForVoicemailProvider() local
1556 editor.putString(key + VM_NUMBER_TAG,newSettings.voicemailNumber); in maybeSaveSettingsForVoicemailProvider()
1560 editor.putInt(fwdKey + FWD_SETTINGS_LENGTH_TAG, s.length); in maybeSaveSettingsForVoicemailProvider()
1564 editor.putInt(settingKey + FWD_SETTING_STATUS, fi.status); in maybeSaveSettingsForVoicemailProvider()
1565 editor.putInt(settingKey + FWD_SETTING_REASON, fi.reason); in maybeSaveSettingsForVoicemailProvider()
1566 editor.putString(settingKey + FWD_SETTING_NUMBER, fi.number); in maybeSaveSettingsForVoicemailProvider()
1567 editor.putInt(settingKey + FWD_SETTING_TIME, fi.timeSeconds); in maybeSaveSettingsForVoicemailProvider()
1570 editor.putInt(fwdKey + FWD_SETTINGS_LENGTH_TAG, 0); in maybeSaveSettingsForVoicemailProvider()
1572 editor.commit(); in maybeSaveSettingsForVoicemailProvider()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DDefaultSoftKeyboardJAJP.java685 @Override public void setPreferences(SharedPreferences pref, EditorInfo editor) { in setPreferences() argument
692 super.setPreferences(pref, editor); in setPreferences()
694 int inputType = editor.inputType; in setPreferences()
1114 protected int getShiftKeyState(EditorInfo editor) { in getShiftKeyState() argument
1117 int caps = connection.getCursorCapsMode(editor.inputType); in getShiftKeyState()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java310 SharedPreferences.Editor editor = sp.edit(); in setPreferredApnId() local
311 editor.putLong(COLUMN_APN_ID, id != null ? id.longValue() : -1); in setPreferredApnId()
312 editor.commit(); in setPreferredApnId()

12