/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchService.java | 257 SharedPreferences.Editor editor = prefs.edit(); in saveNotification() local 259 editor.putLong(Stopwatches.NOTIF_CLOCK_BASE, clockTime); in saveNotification() 260 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, -1); in saveNotification() 261 editor.putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, true); in saveNotification() 263 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, clockTime); in saveNotification() 264 editor.putLong(Stopwatches.NOTIF_CLOCK_BASE, -1); in saveNotification() 265 editor.putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, false); in saveNotification() 267 editor.putBoolean(Stopwatches.PREF_UPDATE_CIRCLE, false); in saveNotification() 268 editor.apply(); in saveNotification() 296 SharedPreferences.Editor editor = prefs.edit(); in clearSavedNotification() local [all …]
|
D | StopwatchFragment.java | 903 SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPref() local 904 editor.putLong (Stopwatches.PREF_START_TIME, mStartTime); in writeToSharedPref() 905 editor.putLong (Stopwatches.PREF_ACCUM_TIME, mAccumulatedTime); in writeToSharedPref() 906 editor.putInt (Stopwatches.PREF_STATE, mState); in writeToSharedPref() 910 editor.putInt (Stopwatches.PREF_LAP_NUM, laps.length); in writeToSharedPref() 913 editor.putLong (key, laps[i]); in writeToSharedPref() 918 editor.putLong(Stopwatches.NOTIF_CLOCK_BASE, mStartTime-mAccumulatedTime); in writeToSharedPref() 919 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, -1); in writeToSharedPref() 920 editor.putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, true); in writeToSharedPref() 922 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/ |
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 …]
|
D | DeskClock.java | 197 SharedPreferences.Editor editor = prefs.edit(); in onResume() local 198 editor.putBoolean(Timers.NOTIF_APP_OPEN, true); in onResume() 199 editor.apply(); in onResume() 212 SharedPreferences.Editor editor = prefs.edit(); in onPause() local 213 editor.putBoolean(Timers.NOTIF_APP_OPEN, false); in onPause() 214 editor.apply(); in onPause() 322 SharedPreferences.Editor editor = prefs.edit(); in setHomeTimeZone() local 323 editor.putString(SettingsActivity.KEY_HOME_TZ, homeTimeZone); in setHomeTimeZone() 324 editor.apply(); in setHomeTimeZone()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerObj.java | 84 SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPref() local 87 editor.putInt (key, mTimerId); in writeToSharedPref() 89 editor.putLong (key, mStartTime); in writeToSharedPref() 91 editor.putLong (key, mTimeLeft); in writeToSharedPref() 93 editor.putLong (key, mOriginalLength); in writeToSharedPref() 95 editor.putLong (key, mSetupLength); in writeToSharedPref() 97 editor.putInt (key, mState); in writeToSharedPref() 100 editor.putStringSet(PREF_TIMERS_LIST, timersList); in writeToSharedPref() 102 editor.putString(key, mLabel); in writeToSharedPref() 104 editor.putBoolean(key, mDeleteAfterUse); in writeToSharedPref() [all …]
|
D | TimerFragment.java | 571 SharedPreferences.Editor editor = mPrefs.edit(); in onResume() local 572 editor.putBoolean(Timers.FROM_NOTIFICATION, false); in onResume() 573 editor.apply(); in onResume() 578 SharedPreferences.Editor editor = mPrefs.edit(); in onResume() local 579 editor.putBoolean(Timers.FROM_ALERT, false); in onResume() 580 editor.apply(); in onResume() 681 SharedPreferences.Editor editor = mPrefs.edit(); in stopAllTimesUpTimers() local 682 editor.putBoolean(Timers.FROM_ALERT, true); in stopAllTimesUpTimers() 683 editor.apply(); in stopAllTimesUpTimers() 1050 SharedPreferences.Editor editor = mPrefs.edit(); in onSharedPreferenceChanged() local [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CameraSettings.java | 120 SharedPreferences.Editor editor = ComboPreferences in initialCameraPictureSize() local 122 editor.putString(KEY_PICTURE_SIZE, candidate); in initialCameraPictureSize() 123 editor.apply(); in initialCameraPictureSize() 356 SharedPreferences.Editor editor = pref.edit(); in upgradeLocalPreferences() 360 editor.remove("pref_video_quality_key"); in upgradeLocalPreferences() 362 editor.putInt(KEY_LOCAL_VERSION, CURRENT_LOCAL_VERSION); in upgradeLocalPreferences() 363 editor.apply(); in upgradeLocalPreferences() 380 SharedPreferences.Editor editor = pref.edit(); in upgradeOldVersion() 396 editor.putString(KEY_JPEG_QUALITY, quality); in upgradeOldVersion() 400 editor.putString(KEY_RECORD_LOCATION, in upgradeOldVersion() [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/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 | 675 SharedPreferences.Editor editor = in setPhonebookPermissionChoice() local 678 editor.remove(mDevice.getAddress()); in setPhonebookPermissionChoice() 680 editor.putInt(mDevice.getAddress(), permissionChoice); in setPhonebookPermissionChoice() 682 editor.commit(); in setPhonebookPermissionChoice() 699 SharedPreferences.Editor editor = in savePhonebookRejectTimes() local 703 editor.remove(mDevice.getAddress()); in savePhonebookRejectTimes() 705 editor.putInt(mDevice.getAddress(), mPhonebookRejectedTimes); in savePhonebookRejectTimes() 707 editor.commit(); in savePhonebookRejectTimes() 726 SharedPreferences.Editor editor = in setMessagePermissionChoice() local 729 editor.remove(mDevice.getAddress()); in setMessagePermissionChoice() [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/Contacts/src/com/android/contacts/editor/ |
D | ContactEditorFragment.java | 17 package com.android.contacts.editor; 79 import com.android.contacts.editor.AggregationSuggestionEngine.Suggestion; 80 import com.android.contacts.editor.Editor.EditorListener; 798 final BaseRawContactEditorView editor; in bindEditors() local 800 editor = (BaseRawContactEditorView) inflater.inflate( in bindEditors() 802 ((RawContactReadOnlyEditorView) editor).setListener(this); in bindEditors() 804 editor = (RawContactEditorView) inflater.inflate(R.layout.raw_contact_editor_view, in bindEditors() 811 addAccountSwitcher(mState.get(0), editor); in bindEditors() 813 disableAccountSwitcher(editor); in bindEditors() 816 disableAccountSwitcher(editor); in bindEditors() [all …]
|
D | KindSectionView.java | 17 package com.android.contacts.editor; 30 import com.android.contacts.editor.Editor.EditorListener; 113 public void onDeleteRequested(Editor editor) { in onDeleteRequested() argument 117 editor.clearAllFields(); in onDeleteRequested() 120 editor.deleteEditor(); in onDeleteRequested() 202 Editor editor = (Editor) view; in createEditorView() local 203 editor.setDeletable(true); in createEditorView() 204 editor.setValues(mKind, entry, mState, mReadOnly, mViewIdGenerator); in createEditorView() 205 editor.setEditorListener(this); in createEditorView()
|
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/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/Launcher3/src/com/android/launcher3/ |
D | LauncherClings.java | 301 SharedPreferences.Editor editor = prefs.edit(); in synchonouslyMarkFirstRunClingDismissed() local 302 editor.putBoolean(LauncherClings.FIRST_RUN_CLING_DISMISSED_KEY, true); in synchonouslyMarkFirstRunClingDismissed() 303 editor.commit(); in synchonouslyMarkFirstRunClingDismissed() 307 SharedPreferences.Editor editor = mLauncher.getSharedPrefs().edit(); in markFolderClingDismissed() local 308 editor.putBoolean(LauncherClings.FOLDER_CLING_DISMISSED_KEY, true); in markFolderClingDismissed() 309 editor.apply(); in markFolderClingDismissed() 336 SharedPreferences.Editor editor = mLauncher.getSharedPrefs().edit(); in dismissCling() 337 editor.putBoolean(flag, true); in dismissCling() 338 editor.apply(); in dismissCling() 417 SharedPreferences.Editor editor = sp.edit(); in dismissMigrationClingCopyApps() local [all …]
|
/packages/apps/Email/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 | 305 final SharedPreferences.Editor editor = getPreferences().edit(); in setLastViewedAccount() local 306 editor.putString(LAST_VIEWED_ACCOUNT_KEY, accountUriStr); in setLastViewedAccount() 307 editor.apply(); in setLastViewedAccount() 323 final SharedPreferences.Editor editor = getPreferences().edit(); in setLastSentFromAccount() local 324 editor.putString(LAST_SENT_FROM_ACCOUNT_KEY, accountUriStr); in setLastSentFromAccount() 325 editor.apply(); in setLastSentFromAccount() 385 final SharedPreferences.Editor editor = getPreferences().edit(); in cacheAccountList() local 386 editor.putString(ACCOUNT_LIST_KEY, arr.toString()); in cacheAccountList() 387 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/src/com/android/phone/sip/ |
D | SipSharedPreferences.java | 47 SharedPreferences.Editor editor = mPreferences.edit(); in setPrimaryAccount() local 48 editor.putString(KEY_PRIMARY_ACCOUNT, accountUri); in setPrimaryAccount() 49 editor.apply(); in setPrimaryAccount() 72 SharedPreferences.Editor editor = mPreferences.edit(); in setProfilesCount() local 73 editor.putInt(KEY_NUMBER_OF_PROFILES, number); in setProfilesCount() 74 editor.apply(); in setProfilesCount()
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlertUtils.java | 261 SharedPreferences.Editor editor = prefs.edit(); 262 editor.putLong(getFiredAlertsKey(eventId, beginTime, alarmTime), alarmTime); 263 editor.apply(); 283 SharedPreferences.Editor editor = prefs.edit(); 300 editor.remove(key); 315 editor.putLong(KEY_LAST_FLUSH_TIME_MS, nowTime); 316 editor.apply();
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | OtherPreferences.java | 190 SharedPreferences.Editor editor = prefs.edit(); in onTimeSet() local 196 editor.putInt(KEY_OTHER_QUIET_HOURS_START_HOUR, hourOfDay); in onTimeSet() 197 editor.putInt(KEY_OTHER_QUIET_HOURS_START_MINUTE, minute); in onTimeSet() 201 editor.putInt(KEY_OTHER_QUIET_HOURS_END_HOUR, hourOfDay); in onTimeSet() 202 editor.putInt(KEY_OTHER_QUIET_HOURS_END_MINUTE, minute); in onTimeSet() 208 editor.commit(); in onTimeSet()
|