/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchService.java | 259 SharedPreferences.Editor editor = prefs.edit(); in saveNotification() local 261 editor.putLong(Stopwatches.NOTIF_CLOCK_BASE, clockTime); in saveNotification() 262 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, -1); in saveNotification() 263 editor.putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, true); in saveNotification() 265 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, clockTime); in saveNotification() 266 editor.putLong(Stopwatches.NOTIF_CLOCK_BASE, -1); in saveNotification() 267 editor.putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, false); in saveNotification() 269 editor.putBoolean(Stopwatches.PREF_UPDATE_CIRCLE, false); in saveNotification() 270 editor.apply(); in saveNotification() 298 SharedPreferences.Editor editor = prefs.edit(); in clearSavedNotification() local [all …]
|
D | StopwatchFragment.java | 707 SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPref() local 708 editor.putLong (Stopwatches.PREF_START_TIME, mStartTime); in writeToSharedPref() 709 editor.putLong (Stopwatches.PREF_ACCUM_TIME, mAccumulatedTime); in writeToSharedPref() 710 editor.putInt (Stopwatches.PREF_STATE, mState); in writeToSharedPref() 714 editor.putInt (Stopwatches.PREF_LAP_NUM, laps.length); in writeToSharedPref() 717 editor.putLong (key, laps[i]); in writeToSharedPref() 722 editor.putLong(Stopwatches.NOTIF_CLOCK_BASE, mStartTime-mAccumulatedTime); in writeToSharedPref() 723 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, -1); in writeToSharedPref() 724 editor.putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, true); in writeToSharedPref() 726 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, mAccumulatedTime); in writeToSharedPref() [all …]
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | ControlPanelEffect.java | 161 final SharedPreferences.Editor editor = prefs.edit(); in initEffectsPreferences() local 169 editor.putBoolean(Key.global_enabled.toString(), isGlobalEnabled); in initEffectsPreferences() 179 editor.putBoolean(Key.virt_enabled.toString(), isVIEnabled); in initEffectsPreferences() 180 editor.putInt(Key.virt_strength.toString(), vIStrength); in initEffectsPreferences() 187 editor.putBoolean(Key.virt_strength_supported.toString(), in initEffectsPreferences() 203 editor.putBoolean(Key.bb_enabled.toString(), isBBEnabled); in initEffectsPreferences() 204 editor.putInt(Key.bb_strength.toString(), bBStrength); in initEffectsPreferences() 269 editor.putInt(Key.eq_level_range.toString() + 0, mEQBandLevelRange[0]); in initEffectsPreferences() 270 editor.putInt(Key.eq_level_range.toString() + 1, mEQBandLevelRange[1]); in initEffectsPreferences() 271 editor.putInt(Key.eq_num_bands.toString(), mEQNumBands); in initEffectsPreferences() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerObj.java | 86 final SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPref() local 88 editor.putInt(PREF_TIMER_ID + id, mTimerId); in writeToSharedPref() 89 editor.putLong(PREF_START_TIME + id, mStartTime); in writeToSharedPref() 90 editor.putLong (PREF_TIME_LEFT + id, mTimeLeft); in writeToSharedPref() 91 editor.putLong (PREF_ORIGINAL_TIME + id, mOriginalLength); in writeToSharedPref() 92 editor.putLong (PREF_SETUP_TIME + id, mSetupLength); in writeToSharedPref() 93 editor.putInt(PREF_STATE + id, mState); in writeToSharedPref() 96 editor.putStringSet(PREF_TIMERS_LIST, timersList); in writeToSharedPref() 97 editor.putString(PREF_LABEL + id, mLabel); in writeToSharedPref() 98 editor.putBoolean(PREF_DELETE_AFTER_USE + id, mDeleteAfterUse); in writeToSharedPref() [all …]
|
D | TimerFullScreenFragment.java | 508 SharedPreferences.Editor editor = mPrefs.edit(); in onResume() local 509 editor.putBoolean(Timers.FROM_NOTIFICATION, false); in onResume() 510 editor.apply(); in onResume() 515 SharedPreferences.Editor editor = mPrefs.edit(); in onResume() local 516 editor.putBoolean(Timers.FROM_ALERT, false); in onResume() 517 editor.apply(); in onResume() 686 SharedPreferences.Editor editor = mPrefs.edit(); in updateAllTimesUpTimers() local 687 editor.putBoolean(Timers.FROM_ALERT, true); in updateAllTimesUpTimers() 688 editor.apply(); in updateAllTimesUpTimers() 943 SharedPreferences.Editor editor = mPrefs.edit(); in onSharedPreferenceChanged() local [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | CircleTimerView.java | 225 SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPref() local 226 editor.putBoolean (key + PREF_CTV_PAUSED, mPaused); in writeToSharedPref() 227 editor.putLong (key + PREF_CTV_INTERVAL, mIntervalTime); in writeToSharedPref() 228 editor.putLong (key + PREF_CTV_INTERVAL_START, mIntervalStartTime); in writeToSharedPref() 229 editor.putLong (key + PREF_CTV_CURRENT_INTERVAL, mCurrentIntervalTime); in writeToSharedPref() 230 editor.putLong (key + PREF_CTV_ACCUM_TIME, mAccumulatedTime); in writeToSharedPref() 231 editor.putLong (key + PREF_CTV_MARKER_TIME, mMarkerTime); in writeToSharedPref() 232 editor.putBoolean (key + PREF_CTV_TIMER_MODE, mTimerMode); in writeToSharedPref() 233 editor.apply(); in writeToSharedPref() 248 SharedPreferences.Editor editor = prefs.edit(); in clearSharedPref() local [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | CameraSettings.java | 105 SharedPreferences.Editor editor = ComboPreferences in initialCameraPictureSize() local 107 editor.putString(KEY_PICTURE_SIZE, candidate); in initialCameraPictureSize() 108 editor.apply(); in initialCameraPictureSize() 296 SharedPreferences.Editor editor = pref.edit(); in upgradeLocalPreferences() 300 editor.remove("pref_video_quality_key"); in upgradeLocalPreferences() 302 editor.putInt(KEY_LOCAL_VERSION, CURRENT_LOCAL_VERSION); in upgradeLocalPreferences() 303 editor.apply(); in upgradeLocalPreferences() 315 SharedPreferences.Editor editor = pref.edit(); in upgradeGlobalPreferences() 331 editor.putString(KEY_JPEG_QUALITY, quality); in upgradeGlobalPreferences() 335 editor.putString(KEY_RECORD_LOCATION, in upgradeGlobalPreferences() [all …]
|
/packages/apps/Camera/src/com/android/camera/ |
D | CameraSettings.java | 116 SharedPreferences.Editor editor = ComboPreferences in initialCameraPictureSize() local 118 editor.putString(KEY_PICTURE_SIZE, candidate); in initialCameraPictureSize() 119 editor.apply(); in initialCameraPictureSize() 352 SharedPreferences.Editor editor = pref.edit(); in upgradeLocalPreferences() 356 editor.remove("pref_video_quality_key"); in upgradeLocalPreferences() 358 editor.putInt(KEY_LOCAL_VERSION, CURRENT_LOCAL_VERSION); in upgradeLocalPreferences() 359 editor.apply(); in upgradeLocalPreferences() 376 SharedPreferences.Editor editor = pref.edit(); in upgradeOldVersion() 392 editor.putString(KEY_JPEG_QUALITY, quality); in upgradeOldVersion() 396 editor.putString(KEY_RECORD_LOCATION, in upgradeOldVersion() [all …]
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | LocalBluetoothPreferences.java | 120 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker() local 121 editor.putString(KEY_LAST_SELECTED_DEVICE, in persistSelectedDeviceInPicker() 123 editor.putLong(KEY_LAST_SELECTED_DEVICE_TIME, in persistSelectedDeviceInPicker() 125 editor.apply(); in persistSelectedDeviceInPicker() 129 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp() local 130 editor.putLong(KEY_DISCOVERABLE_END_TIMESTAMP, endTimestamp); in persistDiscoverableEndTimestamp() 131 editor.apply(); in persistDiscoverableEndTimestamp() 139 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoveringTimestamp() 140 editor.putLong( in persistDiscoveringTimestamp() 143 editor.apply(); in persistDiscoveringTimestamp() [all …]
|
D | CachedBluetoothDevice.java | 701 SharedPreferences.Editor editor = preferences.edit(); in migratePhonebookPermissionChoice() local 702 editor.remove(mDevice.getAddress()); in migratePhonebookPermissionChoice() 703 editor.commit(); in migratePhonebookPermissionChoice() 744 SharedPreferences.Editor editor = preferences.edit(); in migrateMessagePermissionChoice() local 745 editor.remove(mDevice.getAddress()); in migrateMessagePermissionChoice() 746 editor.commit(); in migrateMessagePermissionChoice() 767 SharedPreferences.Editor editor = mContext.getSharedPreferences( in saveMessageRejectionCount() local 770 editor.remove(mDevice.getAddress()); in saveMessageRejectionCount() 772 editor.putInt(mDevice.getAddress(), mMessageRejectionCount); in saveMessageRejectionCount() 774 editor.commit(); in saveMessageRejectionCount()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | ContactEditorFragment.java | 17 package com.android.contacts.editor; 82 import com.android.contacts.editor.AggregationSuggestionEngine.Suggestion; 83 import com.android.contacts.editor.Editor.EditorListener; 846 final BaseRawContactEditorView editor; in bindEditors() local 848 editor = (BaseRawContactEditorView) inflater.inflate( in bindEditors() 851 editor = (RawContactEditorView) inflater.inflate(R.layout.raw_contact_editor_view, in bindEditors() 854 editor.setListener(this); in bindEditors() 858 addAccountSwitcher(mState.get(0), editor); in bindEditors() 861 editor.setEnabled(mEnabled); in bindEditors() 864 editor.setCollapsed(mExpandedEditors.get(rawContactId)); in bindEditors() [all …]
|
D | KindSectionView.java | 17 package com.android.contacts.editor; 43 import com.android.contacts.editor.Editor.EditorListener; 109 public void onDeleteRequested(Editor editor) { in onDeleteRequested() argument 113 editor.clearAllFields(); in onDeleteRequested() 116 editor.deleteEditor(); in onDeleteRequested() 194 Editor editor = (Editor) view; in createEditorView() local 195 editor.setDeletable(true); in createEditorView() 196 editor.setValues(mKind, entry, mState, mReadOnly, mViewIdGenerator); in createEditorView() 197 editor.setEditorListener(this); in createEditorView() 233 final Editor editor = (Editor) emptyEditorView; in updateEmptyEditors() local [all …]
|
D | ContactEditorUtils.java | 17 package com.android.contacts.editor; 119 final SharedPreferences.Editor editor = mPrefs.edit() in saveDefaultAndAllAccounts() local 127 editor.putString(KEY_KNOWN_ACCOUNTS, ""); in saveDefaultAndAllAccounts() 128 editor.putString(KEY_DEFAULT_ACCOUNT, ""); in saveDefaultAndAllAccounts() 130 editor.putString(KEY_KNOWN_ACCOUNTS, in saveDefaultAndAllAccounts() 132 editor.putString(KEY_DEFAULT_ACCOUNT, defaultAccount.stringify()); in saveDefaultAndAllAccounts() 134 editor.apply(); in saveDefaultAndAllAccounts()
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | VoicemailNotificationSettingsUtil.java | 50 SharedPreferences.Editor editor = prefs.edit(); in setVibrationEnabled() local 51 editor.putBoolean(getVoicemailVibrationSharedPrefsKey(phone), isEnabled); in setVibrationEnabled() 52 editor.commit(); in setVibrationEnabled() 65 SharedPreferences.Editor editor = prefs.edit(); in setRingtoneUri() local 66 editor.putString(getVoicemailRingtoneSharedPrefsKey(phone), ringtoneUriStr); in setRingtoneUri() 67 editor.commit(); in setRingtoneUri() 99 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded() local 100 editor.putBoolean(key, voicemailVibrate) in migrateVoicemailVibrationSettingsIfNeeded() 112 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded() local 113 editor.putBoolean(key, voicemailVibrate) in migrateVoicemailVibrationSettingsIfNeeded() [all …]
|
D | VoicemailProviderSettingsUtil.java | 104 SharedPreferences.Editor editor = prefs.edit(); in save() local 105 editor.putString(key + VM_NUMBER_TAG, newSettings.getVoicemailNumber()); in save() 110 editor.putInt(fwdKey + FWD_SETTINGS_LENGTH_TAG, s.length); in save() 114 editor.putInt(settingKey + FWD_SETTING_STATUS, fi.status); in save() 115 editor.putInt(settingKey + FWD_SETTING_REASON, fi.reason); in save() 116 editor.putString(settingKey + FWD_SETTING_NUMBER, fi.number); in save() 117 editor.putInt(settingKey + FWD_SETTING_TIME, fi.timeSeconds); in save() 120 editor.putInt(fwdKey + FWD_SETTINGS_LENGTH_TAG, 0); in save() 123 editor.apply(); in save()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppManager.java | 221 SharedPreferences.Editor editor = mContext.getSharedPreferences(OPP_PREFERENCE_FILE, 0) in storeApplicationData() local 223 editor.putBoolean(SENDING_FLAG, mSendingFlag); in storeApplicationData() 224 editor.putBoolean(MULTIPLE_FLAG, mMultipleFlag); in storeApplicationData() 226 editor.putString(MIME_TYPE_MULTIPLE, mMimeTypeOfSendingFiles); in storeApplicationData() 234 editor.putString(FILE_URIS, strUris); in storeApplicationData() 236 editor.remove(MIME_TYPE); in storeApplicationData() 237 editor.remove(FILE_URI); in storeApplicationData() 239 editor.putString(MIME_TYPE, mMimeTypeOfSendingFile); in storeApplicationData() 240 editor.putString(FILE_URI, mUriOfSendingFile); in storeApplicationData() 242 editor.remove(MIME_TYPE_MULTIPLE); in storeApplicationData() [all …]
|
/packages/apps/FMRadio/src/com/android/fmradio/ |
D | FmUtils.java | 226 SharedPreferences.Editor editor = prefs.edit(); in setLastSearchedLocation() local 229 editor.putString(FM_LOCATION_LATITUDE, strLatitude); in setLastSearchedLocation() 230 editor.putString(FM_LOCATION_LONGITUDE, strLongitude); in setLastSearchedLocation() 231 editor.commit(); in setLastSearchedLocation() 249 SharedPreferences.Editor editor = prefs.edit(); in setIsFirstTimePlayFm() local 250 editor.putBoolean(FM_IS_FIRST_TIME_PLAY, false); in setIsFirstTimePlayFm() 251 editor.commit(); in setIsFirstTimePlayFm() 261 SharedPreferences.Editor editor = prefs.edit(); in isFirstEnterStationList() local 262 editor.putBoolean(FM_IS_FIRST_ENTER_STATION_LIST, false); in isFirstEnterStationList() 263 editor.commit(); in isFirstEnterStationList()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
D | IntentStore.java | 102 SharedPreferences.Editor editor = mPrefs.edit(); in save() local 104 editor.clear(); in save() 106 editor.putString(key, data.getString(key)); in save() 109 editor.putLong(key, data.getLong(key)); in save() 112 editor.putInt(key, data.getInt(key)); in save() 115 editor.putBoolean(key, data.getBoolean(key)); in save() 121 editor.putString(key, accountString); in save() 130 editor.putString(key, bundleString); in save() 133 editor.putBoolean(IS_SET, true); in save() 134 editor.commit(); in save()
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | CameraPictureSizesCacher.java | 50 SharedPreferences.Editor editor = defaultPrefs.edit(); in updateSizesForCamera() local 51 editor.putString(key_build, Build.DISPLAY); in updateSizesForCamera() 52 editor.putString(key_sizes, Size.listToString(sizes)); in updateSizesForCamera() 53 editor.apply(); in updateSizesForCamera() 91 SharedPreferences.Editor editor = defaultPrefs.edit(); in getSizesForCamera() local 92 editor.putString(key_build, Build.DISPLAY); in getSizesForCamera() 93 editor.putString(key_sizes, Size.listToString(sizes)); in getSizesForCamera() 94 editor.apply(); in getSizesForCamera()
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | WidgetProvider.java | 50 final SharedPreferences.Editor editor = prefs.edit(); in onDeleted() local 53 editor.remove(LEGACY_ACCOUNT_ID_PREFIX + widgetId); in onDeleted() 54 editor.remove(LEGACY_MAILBOX_ID_PREFIX + widgetId); in onDeleted() 56 editor.apply(); in onDeleted() 90 final SharedPreferences.Editor editor = prefs.edit(); in migrateLegacyWidgetInformation() local 116 editor.remove(LEGACY_ACCOUNT_ID_PREFIX + widgetId); in migrateLegacyWidgetInformation() 117 editor.remove(LEGACY_MAILBOX_ID_PREFIX + widgetId); in migrateLegacyWidgetInformation() 119 editor.apply(); in migrateLegacyWidgetInformation()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
D | EditorPlaceHolder.java | 42 Editor editor = mEditors.get(type); in showEditor() local 43 if (editor == null) { in showEditor() 47 editor.createEditor(mActivity, mContainer); in showEditor() 48 editor.getImageShow().attach(); in showEditor() 51 View eview = editor.getTopLevelView(); in showEditor() 60 editor.setVisibility(View.VISIBLE); in showEditor() 61 return editor; in showEditor()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | MailAppProvider.java | 332 final SharedPreferences.Editor editor = getPreferences().edit(); in setLastViewedAccount() local 333 editor.putString(LAST_VIEWED_ACCOUNT_KEY, accountUriStr); in setLastViewedAccount() 334 editor.apply(); in setLastViewedAccount() 350 final SharedPreferences.Editor editor = getPreferences().edit(); in setLastSentFromAccount() local 351 editor.putString(LAST_SENT_FROM_ACCOUNT_KEY, accountUriStr); in setLastSentFromAccount() 352 editor.apply(); in setLastSentFromAccount() 412 final SharedPreferences.Editor editor = getPreferences().edit(); in cacheAccountList() local 413 editor.putString(ACCOUNT_LIST_KEY, arr.toString()); in cacheAccountList() 414 editor.apply(); in cacheAccountList()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | InstallShortcutReceiver.java | 69 SharedPreferences.Editor editor, String key, String value) { in addToStringSet() argument 77 editor.putStringSet(key, strings); in addToStringSet() 101 SharedPreferences.Editor editor = sharedPrefs.edit(); in addToInstallQueue() local 102 addToStringSet(sharedPrefs, editor, APPS_PENDING_INSTALL, json.toString()); in addToInstallQueue() 103 editor.commit(); in addToInstallQueue() 304 SharedPreferences.Editor editor = sharedPrefs.edit(); in installShortcut() local 307 editor, NEW_APPS_LIST_KEY, intent.toUri(0)); in installShortcut() 309 editor.putInt(NEW_APPS_PAGE_KEY, screen); in installShortcut() 310 editor.commit(); in installShortcut()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | CommonPreferences.java | 30 final SharedPreferences.Editor editor = pref.edit(); in enable() local 31 editor.putBoolean(id, true); in enable() 32 editor.apply(); in enable() 36 final SharedPreferences.Editor editor = pref.edit(); in disable() local 37 editor.putBoolean(id, false); in disable() 38 editor.apply(); in disable()
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
D | SipSharedPreferences.java | 63 SharedPreferences.Editor editor = mPreferences.edit(); in setProfilesCount() local 64 editor.putInt(KEY_NUMBER_OF_PROFILES, number); in setProfilesCount() 65 editor.apply(); in setProfilesCount() 111 SharedPreferences.Editor editor = mPreferences.edit(); in cleanupPrimaryAccountSetting() local 112 editor.remove(KEY_PRIMARY_ACCOUNT); in cleanupPrimaryAccountSetting() 113 editor.apply(); in cleanupPrimaryAccountSetting()
|