/packages/apps/DeskClock/src/com/android/deskclock/data/ |
H A D | WidgetDAO.java | 37 static int updateWidgetCount(SharedPreferences prefs, Class widgetProviderClass, int count) { argument 39 final int oldCount = prefs.getInt(key, 0); 41 prefs.edit().remove(key).apply(); 43 prefs.edit().putInt(key, count).apply();
|
H A D | StopwatchDAO.java | 58 static Stopwatch getStopwatch(SharedPreferences prefs) { argument 59 final int stateIndex = prefs.getInt(STATE, RESET.ordinal()); 61 final long lastStartTime = prefs.getLong(LAST_START_TIME, Stopwatch.UNUSED); 62 final long lastWallClockTime = prefs.getLong(LAST_WALL_CLOCK_TIME, Stopwatch.UNUSED); 63 final long accumulatedTime = prefs.getLong(ACCUMULATED_TIME, 0); 69 setStopwatch(prefs, s); 77 static void setStopwatch(SharedPreferences prefs, Stopwatch stopwatch) { argument 78 final SharedPreferences.Editor editor = prefs.edit(); 98 static List<Lap> getLaps(SharedPreferences prefs) { argument 100 final int lapCount = prefs 131 addLap(SharedPreferences prefs, int newLapCount, long accumulatedTime) argument 141 clearLaps(SharedPreferences prefs) argument [all...] |
H A D | SettingsDAO.java | 73 static int getGlobalIntentId(SharedPreferences prefs) { argument 74 return prefs.getInt(KEY_ALARM_GLOBAL_ID, -1); 80 static void updateGlobalIntentId(SharedPreferences prefs) { argument 81 final int globalId = prefs.getInt(KEY_ALARM_GLOBAL_ID, -1) + 1; 82 prefs.edit().putInt(KEY_ALARM_GLOBAL_ID, globalId).apply(); 88 static CitySort getCitySort(SharedPreferences prefs) { argument 90 final int citySortOrdinal = prefs.getInt(KEY_SORT_PREFERENCE, defaultSortOrdinal); 97 static void toggleCitySort(SharedPreferences prefs) { argument 98 final CitySort oldSort = getCitySort(prefs); 100 prefs 107 getAutoShowHomeClock(SharedPreferences prefs) argument 114 getHomeTimeZone(Context context, SharedPreferences prefs, TimeZone defaultTZ) argument 137 getClockStyle(Context context, SharedPreferences prefs) argument 144 getDisplayClockSeconds(SharedPreferences prefs) argument 151 setDisplayClockSeconds(SharedPreferences prefs, boolean displaySeconds) argument 159 setDefaultDisplayClockSeconds(Context context, SharedPreferences prefs) argument 170 getScreensaverClockStyle(Context context, SharedPreferences prefs) argument 177 getScreensaverNightModeOn(SharedPreferences prefs) argument 185 getTimerRingtoneUri(SharedPreferences prefs, Uri defaultUri) argument 193 getTimerVibrate(SharedPreferences prefs) argument 200 setTimerVibrate(SharedPreferences prefs, boolean enabled) argument 207 setTimerRingtoneUri(SharedPreferences prefs, Uri uri) argument 215 getDefaultAlarmRingtoneUri(SharedPreferences prefs) argument 223 setDefaultAlarmRingtoneUri(SharedPreferences prefs, Uri uri) argument 231 getAlarmCrescendoDuration(SharedPreferences prefs) argument 240 getTimerCrescendoDuration(SharedPreferences prefs) argument 249 getWeekdayOrder(SharedPreferences prefs) argument 265 isRestoreBackupFinished(SharedPreferences prefs) argument 272 setRestoreBackupFinished(SharedPreferences prefs, boolean finished) argument 283 getAlarmVolumeButtonBehavior(SharedPreferences prefs) argument 298 getAlarmTimeout(SharedPreferences prefs) argument 307 getSnoozeLength(SharedPreferences prefs) argument 352 getClockStyle(Context context, SharedPreferences prefs, String key) argument [all...] |
H A D | CustomRingtoneDAO.java | 53 static CustomRingtone addCustomRingtone(SharedPreferences prefs, Uri uri, String title) { argument 54 final long id = prefs.getLong(NEXT_RINGTONE_ID, 0); 55 final Set<String> ids = getRingtoneIds(prefs); 58 prefs.edit() 71 static void removeCustomRingtone(SharedPreferences prefs, long id) { argument 72 final Set<String> ids = getRingtoneIds(prefs); 75 final SharedPreferences.Editor editor = prefs.edit(); 90 static List<CustomRingtone> getCustomRingtones(SharedPreferences prefs) { argument 91 final Set<String> ids = prefs.getStringSet(RINGTONE_IDS, Collections.<String>emptySet()); 96 final Uri uri = Uri.parse(prefs 104 getRingtoneIds(SharedPreferences prefs) argument [all...] |
H A D | TimerDAO.java | 72 static List<Timer> getTimers(SharedPreferences prefs) { argument 74 final Set<String> timerIds = prefs.getStringSet(TIMER_IDS, Collections.<String>emptySet()); 80 final int stateValue = prefs.getInt(STATE + id, RESET.getValue()); 86 final long length = prefs.getLong(LENGTH + id, Long.MIN_VALUE); 87 final long totalLength = prefs.getLong(TOTAL_LENGTH + id, Long.MIN_VALUE); 88 final long lastStartTime = prefs.getLong(LAST_START_TIME + id, Timer.UNUSED); 89 final long lastWallClockTime = prefs.getLong(LAST_WALL_CLOCK_TIME + id, 91 final long remainingTime = prefs.getLong(REMAINING_TIME + id, totalLength); 92 final String label = prefs.getString(LABEL + id, null); 93 final boolean deleteAfterUse = prefs 105 addTimer(SharedPreferences prefs, Timer timer) argument 138 updateTimer(SharedPreferences prefs, Timer timer) argument 158 removeTimer(SharedPreferences prefs, Timer timer) argument 186 getTimerIds(SharedPreferences prefs) argument [all...] |
H A D | WidgetModel.java | 32 WidgetModel(SharedPreferences prefs) { argument 33 mPrefs = prefs;
|
/packages/apps/Email/provider_src/com/android/email/ |
H A D | DebugUtils.java | 18 final Preferences prefs = Preferences.getPreferences(context); 19 DEBUG = prefs.getEnableDebugLogging(); 20 DEBUG_EXCHANGE = prefs.getEnableExchangeLogging(); 21 DEBUG_FILE = prefs.getEnableExchangeFileLogging(); 25 enableStrictMode(prefs.getEnableStrictMode()); 32 Preferences prefs = Preferences.getPreferences(context); 33 int debugLogging = prefs.getEnableDebugLogging() ? EmailServiceProxy.DEBUG_BIT : 0; 35 prefs.getEnableExchangeLogging() ? EmailServiceProxy.DEBUG_EXCHANGE_BIT: 0; 37 prefs.getEnableExchangeFileLogging() ? EmailServiceProxy.DEBUG_FILE_BIT : 0; 39 prefs [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
H A D | TabDAO.java | 36 static Tab getSelectedTab(SharedPreferences prefs) { argument 37 final int ordinal = prefs.getInt(KEY_SELECTED_TAB, Tab.CLOCKS.ordinal()); 44 static void setSelectedTab(SharedPreferences prefs, Tab tab) { argument 45 prefs.edit().putInt(KEY_SELECTED_TAB, tab.ordinal()).apply();
|
/packages/services/Telephony/src/com/android/phone/vvm/ |
H A D | VisualVoicemailSettingsUtil.java | 34 VisualVoicemailPreferences prefs = new VisualVoicemailPreferences(context, 36 if (prefs.contains(IS_ENABLED_KEY)) { 38 prefs.getBoolean(IS_ENABLED_KEY, false)); 41 prefs.getString(DEFAULT_OLD_PIN_KEY));
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
H A D | Settings.java | 51 // In the same order as xml/prefs.xml 156 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { argument 177 final SharedPreferences prefs = mPrefs; 181 return new SettingsValues(context, prefs, res, inputAttributes); 204 public static boolean readKeypressSoundEnabled(final SharedPreferences prefs, argument 206 return prefs.getBoolean(PREF_SOUND_ON, 210 public static boolean readVibrationEnabled(final SharedPreferences prefs, argument 213 return hasVibrator && prefs.getBoolean(PREF_VIBRATE_ON, 217 public static boolean readAutoCorrectEnabled(final SharedPreferences prefs, argument 219 return prefs 226 readBlockPotentiallyOffensive(final SharedPreferences prefs, final Resources res) argument 236 readGestureInputEnabled(final SharedPreferences prefs, final Resources res) argument 246 readKeyPreviewPopupEnabled(final SharedPreferences prefs, final Resources res) argument 256 readKeyPreviewPopupDismissDelay(final SharedPreferences prefs, final Resources res) argument 263 readShowsLanguageSwitchKey(final SharedPreferences prefs) argument 275 readPrefAdditionalSubtypes(final SharedPreferences prefs, final Resources res) argument 282 writePrefAdditionalSubtypes(final SharedPreferences prefs, final String prefSubtypes) argument 287 readKeypressSoundVolume(final SharedPreferences prefs, final Resources res) argument 304 readKeyLongpressTimeout(final SharedPreferences prefs, final Resources res) argument 316 readKeypressVibrationDuration(final SharedPreferences prefs, final Resources res) argument 333 readKeyPreviewAnimationScale(final SharedPreferences prefs, final String prefKey, final float defaultValue) argument 339 readKeyPreviewAnimationDuration(final SharedPreferences prefs, final String prefKey, final int defaultValue) argument 345 readKeyboardHeight(final SharedPreferences prefs, final float defaultValue) argument 356 readShowSetupWizardIcon(final SharedPreferences prefs, final Context context) argument 377 isInternal(final SharedPreferences prefs) argument 412 writeEmojiRecentKeys(final SharedPreferences prefs, String str) argument 416 readEmojiRecentKeys(final SharedPreferences prefs) argument 420 writeLastTypedEmojiCategoryPageId( final SharedPreferences prefs, final int categoryId, final int categoryPageId) argument 426 readLastTypedEmojiCategoryPageId( final SharedPreferences prefs, final int categoryId) argument 432 writeLastShownEmojiCategoryId( final SharedPreferences prefs, final int categoryId) argument 437 readLastShownEmojiCategoryId( final SharedPreferences prefs, final int defValue) argument 442 upgradeAutocorrectionSettings(final SharedPreferences prefs, final Resources res) argument [all...] |
H A D | AdvancedSettingsFragment.java | 57 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); 59 if (!Settings.isInternal(prefs)) { 88 Settings.readKeyPreviewPopupEnabled(prefs, res)); 100 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); 105 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { argument 109 Settings.readKeyPreviewPopupEnabled(prefs, res)); 118 final SharedPreferences prefs = getSharedPreferences(); 121 Settings.readVibrationEnabled(prefs, res)); 123 Settings.readKeypressSoundEnabled(prefs, res)); 132 final SharedPreferences prefs [all...] |
H A D | SettingsValues.java | 64 // From preferences, in the same order as xml/prefs.xml: 122 public SettingsValues(final Context context, final SharedPreferences prefs, final Resources res, argument 134 mAutoCap = prefs.getBoolean(Settings.PREF_AUTO_CAP, true); 135 mVibrateOn = Settings.readVibrationEnabled(prefs, res); 136 mSoundOn = Settings.readKeypressSoundEnabled(prefs, res); 137 mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res); 138 mSlidingKeyInputPreviewEnabled = prefs.getBoolean( 140 mShowsVoiceInputKey = needsToShowVoiceInputKey(prefs, res) 144 ? prefs.getBoolean(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST, false) 147 ? Settings.readShowsLanguageSwitchKey(prefs) 306 readSuggestionsEnabled(final SharedPreferences prefs) argument 318 readBigramPredictionEnabled(final SharedPreferences prefs, final Resources res) argument 355 needsToShowVoiceInputKey(final SharedPreferences prefs, final Resources res) argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | BuglePrefsImpl.java | 24 * Thin wrapper to get/set shared prefs values. 35 * Validate the prefs key passed in. Subclasses should override this as needed to perform 45 final SharedPreferences prefs = mContext.getSharedPreferences( 47 return prefs.getInt(key, defaultValue); 53 final SharedPreferences prefs = mContext.getSharedPreferences( 55 return prefs.getLong(key, defaultValue); 61 final SharedPreferences prefs = mContext.getSharedPreferences( 63 return prefs.getBoolean(key, defaultValue); 69 final SharedPreferences prefs = mContext.getSharedPreferences( 71 return prefs [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/ |
H A D | Preferences.java | 16 package com.android.documentsui.prefs;
|
H A D | PreferencesMonitor.java | 17 package com.android.documentsui.prefs; 43 SharedPreferences prefs, 47 mPrefs = prefs; 60 void onSharedPreferenceChanged(SharedPreferences prefs, String key) { argument 41 PreferencesMonitor( @pplicationScope String packageName, SharedPreferences prefs, Consumer<String> listener) argument
|
H A D | PrefsBackupHelper.java | 16 package com.android.documentsui.prefs; 45 void getBackupPreferences(SharedPreferences prefs) { argument 46 Editor editor = prefs.edit(); 56 void putBackupPreferences(SharedPreferences prefs) { argument 59 copyMatchingPreferences(prefs, editor);
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
H A D | TestScopedPreferences.java | 19 import com.android.documentsui.prefs.ScopedPreferences;
|
/packages/inputmethods/LatinIME/java-overridable/src/com/android/inputmethod/latin/define/ |
H A D | DebugFlags.java | 29 public static void init(final SharedPreferences prefs) { argument
|
/packages/apps/Dialer/java/com/android/voicemail/impl/settings/ |
H A D | VisualVoicemailSettingsUtil.java | 64 VisualVoicemailPreferences prefs = new VisualVoicemailPreferences(context, phoneAccount); 65 if (prefs.contains(IS_ENABLED_KEY)) { 68 return prefs.getBoolean(IS_ENABLED_KEY, false); 76 VisualVoicemailPreferences prefs = new VisualVoicemailPreferences(context, phoneAccount); 77 return prefs.getBoolean( 91 VisualVoicemailPreferences prefs = new VisualVoicemailPreferences(context, phoneAccount); 92 return prefs.contains(IS_ENABLED_KEY);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | PackagesMonitor.java | 33 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); 34 return prefs.getInt(KEY_PACKAGES_VERSION, 1); 56 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); 58 int version = prefs.getInt(KEY_PACKAGES_VERSION, 1); 59 prefs.edit().putInt(KEY_PACKAGES_VERSION, version + 1).commit();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/accounts/ |
H A D | AccountsChangedReceiver.java | 48 final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); 49 final String currentAccount = prefs.getString( 51 removeUnknownAccountFromPreference(prefs, getAccountsForLogin(context), currentAccount); 66 private static void removeUnknownAccountFromPreference(final SharedPreferences prefs, argument 77 prefs.edit()
|
/packages/apps/BasicSmsReceiver/src/com/android/basicsmsreceiver/ |
H A D | BasicSmsReceiverApp.java | 45 SharedPreferences prefs = getSharedPreferences(SMS_LITE_PREFS_KEY, 47 int notificationId = prefs.getInt(PREF_KEY_NOTIFICATION_ID, 0); 54 SharedPreferences.Editor editor = prefs.edit();
|
/packages/apps/Nfc/src/com/android/nfc/ |
H A D | NfcBackupAgent.java | 41 SharedPreferences prefs = getSharedPreferences(NfcService.PREF, 43 if (prefs.getBoolean(NfcService.PREF_NDEF_PUSH_ON, 50 if (prefs.getBoolean(NfcService.PREF_NFC_ON,
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
H A D | RemoveReceiver.java | 33 SharedPreferences prefs = context.getSharedPreferences( 36 if (prefs.getBoolean(pkg, false)) { 37 prefs.edit().remove(pkg).apply();
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | ManagedProfileHeuristic.java | 72 ufi.prefs.edit().putLong(ufi.folderIdKey, ItemInfo.NO_ID).apply(); 108 final SharedPreferences prefs; field in class:ManagedProfileHeuristic.UserFolderInfo 123 prefs = prefs(context); 125 folderAlreadyCreated = prefs.contains(folderIdKey); 128 long folderId = prefs.getLong(folderIdKey, ItemInfo.NO_ID); 202 prefs.edit().putLong(folderIdKey, folderInfo.id).apply(); 217 SharedPreferences prefs = prefs(context); 218 SharedPreferences.Editor editor = prefs 250 public static SharedPreferences prefs(Context context) { method in class:ManagedProfileHeuristic [all...] |