/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | LocalBluetoothPreferences.java | 116 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker() local 117 editor.putString(KEY_LAST_SELECTED_DEVICE, in persistSelectedDeviceInPicker() 119 editor.putLong(KEY_LAST_SELECTED_DEVICE_TIME, in persistSelectedDeviceInPicker() 121 editor.apply(); in persistSelectedDeviceInPicker() 125 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp() local 126 editor.putLong(KEY_DISCOVERABLE_END_TIMESTAMP, endTimestamp); in persistDiscoverableEndTimestamp() 127 editor.apply(); in persistDiscoverableEndTimestamp() 135 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoveringTimestamp() 136 editor.putLong( in persistDiscoveringTimestamp() 139 editor.apply(); in persistDiscoveringTimestamp() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchService.java | 246 SharedPreferences.Editor editor = prefs.edit(); in saveNotification() local 248 editor.putLong(Stopwatches.NOTIF_CLOCK_BASE, clockTime); in saveNotification() 249 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, -1); in saveNotification() 250 editor.putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, true); in saveNotification() 252 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, clockTime); in saveNotification() 253 editor.putLong(Stopwatches.NOTIF_CLOCK_BASE, -1); in saveNotification() 254 editor.putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, false); in saveNotification() 256 editor.putBoolean(Stopwatches.PREF_UPDATE_CIRCLE, false); in saveNotification() 257 editor.apply(); in saveNotification() 285 SharedPreferences.Editor editor = prefs.edit(); in clearSavedNotification() local [all …]
|
D | StopwatchFragment.java | 679 SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPref() local 680 editor.putLong (Stopwatches.PREF_START_TIME, mStartTime); in writeToSharedPref() 681 editor.putLong (Stopwatches.PREF_ACCUM_TIME, mAccumulatedTime); in writeToSharedPref() 682 editor.putInt (Stopwatches.PREF_STATE, mState); in writeToSharedPref() 686 editor.putInt (Stopwatches.PREF_LAP_NUM, laps.length); in writeToSharedPref() 689 editor.putLong (key, laps[i]); in writeToSharedPref() 694 editor.putLong(Stopwatches.NOTIF_CLOCK_BASE, mStartTime-mAccumulatedTime); in writeToSharedPref() 695 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, -1); in writeToSharedPref() 696 editor.putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, true); in writeToSharedPref() 698 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, mAccumulatedTime); in writeToSharedPref() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | CircleTimerView.java | 241 SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPref() local 242 editor.putBoolean (key + PREF_CTV_PAUSED, mPaused); in writeToSharedPref() 243 editor.putLong (key + PREF_CTV_INTERVAL, mIntervalTime); in writeToSharedPref() 244 editor.putLong (key + PREF_CTV_INTERVAL_START, mIntervalStartTime); in writeToSharedPref() 245 editor.putLong (key + PREF_CTV_CURRENT_INTERVAL, mCurrentIntervalTime); in writeToSharedPref() 246 editor.putLong (key + PREF_CTV_ACCUM_TIME, mAccumulatedTime); in writeToSharedPref() 247 editor.putLong (key + PREF_CTV_MARKER_TIME, mMarkerTime); in writeToSharedPref() 248 editor.putBoolean (key + PREF_CTV_TIMER_MODE, mTimerMode); in writeToSharedPref() 249 editor.apply(); in writeToSharedPref() 264 SharedPreferences.Editor editor = prefs.edit(); in clearSharedPref() local [all …]
|
D | AlarmInitReceiver.java | 74 SharedPreferences.Editor editor = prefs.edit(); in switchVolumeButtonDefault() local 76 editor.putString(SettingsActivity.KEY_VOLUME_BEHAVIOR, in switchVolumeButtonDefault() 80 editor.putBoolean(PREF_VOLUME_DEF_DONE, true); in switchVolumeButtonDefault() 81 editor.apply(); in switchVolumeButtonDefault()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerObj.java | 78 SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPref() local 81 editor.putInt (key, mTimerId); in writeToSharedPref() 83 editor.putLong (key, mStartTime); in writeToSharedPref() 85 editor.putLong (key, mTimeLeft); in writeToSharedPref() 87 editor.putLong (key, mOriginalLength); in writeToSharedPref() 89 editor.putLong (key, mSetupLength); in writeToSharedPref() 91 editor.putInt (key, mState); in writeToSharedPref() 94 editor.putStringSet(PREF_TIMERS_LIST, timersList); in writeToSharedPref() 96 editor.putString(key, mLabel); in writeToSharedPref() 97 editor.apply(); in writeToSharedPref() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/socialwidget/ |
D | SocialWidgetSettings.java | 51 final Editor editor = settings.edit(); in remove() local 56 editor.remove(getPreferenceKey(widgetId)); in remove() 58 editor.apply(); in remove() 79 final Editor editor = settings.edit(); in setContactUri() local 81 editor.remove(getPreferenceKey(widgetId)); in setContactUri() 83 editor.putString(getPreferenceKey(widgetId), contactLookupUri.toString()); in setContactUri() 85 editor.apply(); in setContactUri() 99 final SharedPreferences.Editor editor = settings.edit(); in ensureMigrated() local 109 editor.putString(PREFERENCES_PREFIX + key, value); in ensureMigrated() 112 editor.apply(); in ensureMigrated()
|
/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() 177 editor.putBoolean(Key.virt_enabled.toString(), isVIEnabled); in initEffectsPreferences() 178 editor.putInt(Key.virt_strength.toString(), vIStrength); in initEffectsPreferences() 185 editor.putBoolean(Key.virt_strength_supported.toString(), in initEffectsPreferences() 201 editor.putBoolean(Key.bb_enabled.toString(), isBBEnabled); in initEffectsPreferences() 202 editor.putInt(Key.bb_strength.toString(), bBStrength); in initEffectsPreferences() 267 editor.putInt(Key.eq_level_range.toString() + 0, mEQBandLevelRange[0]); in initEffectsPreferences() 268 editor.putInt(Key.eq_level_range.toString() + 1, mEQBandLevelRange[1]); in initEffectsPreferences() 269 editor.putInt(Key.eq_num_bands.toString(), mEQNumBands); in initEffectsPreferences() [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 | 114 SharedPreferences.Editor editor = ComboPreferences in initialCameraPictureSize() local 116 editor.putString(KEY_PICTURE_SIZE, candidate); in initialCameraPictureSize() 117 editor.apply(); in initialCameraPictureSize() 347 SharedPreferences.Editor editor = pref.edit(); in upgradeLocalPreferences() 351 editor.remove("pref_video_quality_key"); in upgradeLocalPreferences() 353 editor.putInt(KEY_LOCAL_VERSION, CURRENT_LOCAL_VERSION); in upgradeLocalPreferences() 354 editor.apply(); in upgradeLocalPreferences() 371 SharedPreferences.Editor editor = pref.edit(); in upgradeOldVersion() 387 editor.putString(KEY_JPEG_QUALITY, quality); in upgradeOldVersion() 391 editor.putString(KEY_RECORD_LOCATION, in upgradeOldVersion() [all …]
|
/packages/apps/Phone/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/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | Settings.java | 55 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/DeskClock/src/com/android/deskclock/worldclock/ |
D | CityObj.java | 53 public void saveCityToSharedPrefs(SharedPreferences.Editor editor, int index) { in saveCityToSharedPrefs() argument 54 editor.putString (CITY_NAME + index, mCityName); in saveCityToSharedPrefs() 55 editor.putString (CITY_TIME_ZONE + index, mTimeZone); in saveCityToSharedPrefs() 56 editor.putString (CITY_ID + index, mCityId); in saveCityToSharedPrefs()
|
D | Cities.java | 33 SharedPreferences.Editor editor = prefs.edit(); in saveCitiesToSharedPrefs() local 34 editor.putInt(NUMBER_OF_CITIES, cities.size()); in saveCitiesToSharedPrefs() 40 c.saveCityToSharedPrefs(editor, count); in saveCitiesToSharedPrefs() 43 editor.apply(); in saveCitiesToSharedPrefs()
|
/packages/screensavers/WebView/src/com/android/dreams/web/ |
D | SetURLInteractive.java | 49 final Editor editor = prefs.edit(); in set() local 50 editor.putString("url", url); in set() 51 editor.putBoolean("interactive", true); in set() 52 editor.commit(); in set()
|
D | SetURL.java | 49 final Editor editor = prefs.edit(); in set() local 50 editor.putString("url", url); in set() 51 editor.putBoolean("interactive", false); in set() 52 editor.commit(); in set()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | ContactEditorFragment.java | 17 package com.android.contacts.editor; 71 import com.android.contacts.editor.AggregationSuggestionEngine.Suggestion; 72 import com.android.contacts.editor.Editor.EditorListener; 727 final BaseRawContactEditorView editor; in bindEditors() local 729 editor = (BaseRawContactEditorView) inflater.inflate( in bindEditors() 731 ((RawContactReadOnlyEditorView) editor).setListener(this); in bindEditors() 733 editor = (RawContactEditorView) inflater.inflate(R.layout.raw_contact_editor_view, in bindEditors() 740 addAccountSwitcher(mState.get(0), editor); in bindEditors() 742 disableAccountSwitcher(editor); in bindEditors() 745 disableAccountSwitcher(editor); in bindEditors() [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()
|
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() 201 Editor editor = (Editor) view; in createEditorView() local 202 editor.setDeletable(true); in createEditorView() 203 editor.setValues(mKind, entry, mState, mReadOnly, mViewIdGenerator); in createEditorView() 204 editor.setEditorListener(this); in createEditorView()
|
/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/Music/src/com/android/music/ |
D | SharedPreferencesCompat.java | 41 public static void apply(SharedPreferences.Editor editor) { in apply() argument 44 sApplyMethod.invoke(editor); in apply() 52 editor.commit(); in apply()
|
/packages/apps/BasicSmsReceiver/src/com/android/basicsmsreceiver/ |
D | BasicSmsReceiverApp.java | 54 SharedPreferences.Editor editor = prefs.edit(); in getNextNotificationId() local 55 editor.putInt(PREF_KEY_NOTIFICATION_ID, notificationId); in getNextNotificationId() 56 editor.apply(); in getNextNotificationId()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarUtils.java | 328 SharedPreferences.Editor editor = prefs.edit(); in setSharedPreference() local 329 editor.putString(key, value); in setSharedPreference() 330 editor.apply(); in setSharedPreference() 343 SharedPreferences.Editor editor = prefs.edit(); in setSharedPreference() local 344 editor.putBoolean(key, value); in setSharedPreference() 345 editor.apply(); in setSharedPreference()
|
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/ |
D | NativeNfcManager.java | 89 SharedPreferences.Editor editor = prefs.edit(); in initialize() local 94 editor.putBoolean(NativeNfcSecureElement.PREF_SE_WIRED, false); in initialize() 95 editor.apply(); in initialize() 107 SharedPreferences.Editor editor = prefs.edit(); in deinitialize() local 109 editor.putBoolean(NativeNfcSecureElement.PREF_SE_WIRED, false); in deinitialize() 110 editor.apply(); in deinitialize()
|
/packages/apps/Nfc/nxp/src/com/android/nfc/dhimpl/ |
D | NativeNfcManager.java | 139 SharedPreferences.Editor editor = prefs.edit(); in initialize() local 144 editor.putBoolean(NativeNfcSecureElement.PREF_SE_WIRED, false); in initialize() 145 editor.apply(); in initialize() 157 SharedPreferences.Editor editor = prefs.edit(); in deinitialize() local 159 editor.putBoolean(NativeNfcSecureElement.PREF_SE_WIRED, false); in deinitialize() 160 editor.apply(); in deinitialize()
|