/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | AlarmInitReceiver.java | 59 SharedPreferences prefs = 62 TimerObj.resetTimersInSharedPrefs(prefs); 63 Utils.clearSwSharedPref(prefs); 65 if (!prefs.getBoolean(PREF_VOLUME_DEF_DONE, false)) { 68 switchVolumeButtonDefault(prefs); 82 private void switchVolumeButtonDefault(SharedPreferences prefs) { argument 83 SharedPreferences.Editor editor = prefs.edit();
|
H A D | ClockFragment.java | 268 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { argument 270 mClockStyle = prefs.getString(SettingsActivity.KEY_CLOCK_STYLE, mDefaultClockStyle);
|
H A D | CircleTimerView.java | 224 public void writeToSharedPref(SharedPreferences prefs, String key) { argument 225 SharedPreferences.Editor editor = prefs.edit(); 236 public void readFromSharedPref(SharedPreferences prefs, String key) { argument 237 mPaused = prefs.getBoolean(key + PREF_CTV_PAUSED, false); 238 mIntervalTime = prefs.getLong(key + PREF_CTV_INTERVAL, 0); 239 mIntervalStartTime = prefs.getLong(key + PREF_CTV_INTERVAL_START, -1); 240 mCurrentIntervalTime = prefs.getLong(key + PREF_CTV_CURRENT_INTERVAL, 0); 241 mAccumulatedTime = prefs.getLong(key + PREF_CTV_ACCUM_TIME, 0); 242 mMarkerTime = prefs.getLong(key + PREF_CTV_MARKER_TIME, -1); 243 mTimerMode = prefs 247 clearSharedPref(SharedPreferences prefs, String key) argument [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
H A D | Cities.java | 32 SharedPreferences prefs, HashMap<String, CityObj> cities) { 33 SharedPreferences.Editor editor = prefs.edit(); 46 public static HashMap<String, CityObj> readCitiesFromSharedPrefs(SharedPreferences prefs) { argument 47 int size = prefs.getInt(NUMBER_OF_CITIES, -1); 51 CityObj o = new CityObj(prefs, i); 60 private static void dumpCities(SharedPreferences prefs, String title) { argument 61 int size = prefs.getInt(NUMBER_OF_CITIES, -1); 67 CityObj o = new CityObj(prefs, i); 31 saveCitiesToSharedPrefs( SharedPreferences prefs, HashMap<String, CityObj> cities) argument
|
H A D | CityObj.java | 46 public CityObj(SharedPreferences prefs, int index) { argument 47 mCityName = prefs.getString(CITY_NAME + index, null); 48 mTimeZone = prefs.getString(CITY_TIME_ZONE + index, null); 49 mCityId = prefs.getString(CITY_ID + index, null);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
H A D | AdditionalFeaturesSettingUtils.java | 40 final SharedPreferences prefs, final int[] additionalFeaturesPreferences) { 39 readAdditionalFeaturesPreferencesIntoArray( final SharedPreferences prefs, final int[] additionalFeaturesPreferences) argument
|
H A D | DebugSettings.java | 55 SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); 56 prefs.registerOnSharedPreferenceChangeListener(this); 61 checkbox.setChecked(prefs.getBoolean(PREF_USABILITY_STUDY_MODE, 62 LatinImeLogger.getUsabilityStudyMode(prefs))); 100 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { argument 103 mDebugMode.setChecked(prefs.getBoolean(PREF_DEBUG_MODE, false));
|
H A D | SettingsFragment.java | 93 addPreferencesFromResource(R.xml.prefs); 114 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); 115 prefs.registerOnSharedPreferenceChangeListener(this); 129 if (Settings.isInternal(prefs)) { 200 Settings.readKeyPreviewPopupEnabled(prefs, res)); 208 Settings.readShowsLanguageSwitchKey(prefs)); 237 setupKeyLongpressTimeoutSettings(prefs, res); 238 setupKeypressVibrationDurationSettings(prefs, res); 239 setupKeypressSoundVolumeSettings(prefs, res); 240 refreshEnablingsOfKeypressSoundAndVibrationSettings(prefs, re 269 onSharedPreferenceChanged(final SharedPreferences prefs, final String key) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
H A D | JsonUtils.java | 48 /* package */ static void writeJson(final SharedPreferences prefs, final JsonWriter jsonWriter) argument 51 for (Map.Entry<String,?> entry : prefs.getAll().entrySet()) {
|
H A D | ResearchSettings.java | 36 public static String readResearchLoggerUuid(final SharedPreferences prefs) { argument 37 if (prefs.contains(PREF_RESEARCH_LOGGER_UUID)) { 38 return prefs.getString(PREF_RESEARCH_LOGGER_UUID, null); 42 prefs.edit().putString(PREF_RESEARCH_LOGGER_UUID, newUuid).apply(); 46 public static boolean readResearchLoggerEnabledFlag(final SharedPreferences prefs) { argument 47 return prefs.getBoolean(PREF_RESEARCH_LOGGER_ENABLED_FLAG, false); 50 public static void writeResearchLoggerEnabledFlag(final SharedPreferences prefs, argument 52 prefs.edit().putBoolean(PREF_RESEARCH_LOGGER_ENABLED_FLAG, isEnabled).apply(); 55 public static boolean readHasSeenSplash(final SharedPreferences prefs) { argument 56 return prefs 59 writeHasSeenSplash(final SharedPreferences prefs, final boolean hasSeenSplash) argument 64 readResearchLastDirCleanupTime(final SharedPreferences prefs) argument 68 writeResearchLastDirCleanupTime(final SharedPreferences prefs, final long lastDirCleanupTime) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
H A D | PersonalizationDictionary.java | 40 final SharedPreferences prefs) { 39 PersonalizationDictionary(final Context context, final String locale, final SharedPreferences prefs) argument
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
H A D | SearchBaseUrlHelper.java | 53 SearchSettings searchSettings, SharedPreferences prefs) { 61 prefs.registerOnSharedPreferenceChangeListener(this); 52 SearchBaseUrlHelper(Context context, HttpHelper helper, SearchSettings searchSettings, SharedPreferences prefs) argument
|
/packages/apps/Mms/src/com/android/mms/util/ |
H A D | DownloadManager.java | 69 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { 77 mAutoDownload = getAutoDownloadState(prefs); 150 static boolean getAutoDownloadState(SharedPreferences prefs) { argument 151 return getAutoDownloadState(prefs, isRoaming()); 154 static boolean getAutoDownloadState(SharedPreferences prefs, boolean roaming) { argument 155 boolean autoDownload = prefs.getBoolean( 163 boolean alwaysAuto = prefs.getBoolean(
|
/packages/apps/Settings/src/com/android/settings/location/ |
H A D | LocationSettings.java | 92 private void addPreferencesSorted(List<Preference> prefs, PreferenceGroup container) { argument 94 Collections.sort(prefs, new Comparator<Preference>() { 100 for (Preference entry : prefs) {
|
H A D | SettingsInjector.java | 225 ArrayList<Preference> prefs = new ArrayList<Preference>(); 227 Preference pref = addServiceSetting(prefs, setting); 233 return prefs; 249 private Preference addServiceSetting(List<Preference> prefs, InjectedSetting info) { argument 261 prefs.add(pref);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | FastScrollingIndexCache.java | 92 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); 93 sSingleton = new FastScrollingIndexCache(prefs); 100 SharedPreferences prefs) { 101 sSingleton = new FastScrollingIndexCache(prefs); 105 private FastScrollingIndexCache(SharedPreferences prefs) { argument 106 mPrefs = prefs; 99 getInstanceForTest( SharedPreferences prefs) argument
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | CalendarUtils.java | 126 SharedPreferences prefs = getSharedPreferences((Context)cookie, mPrefsName); 127 // Write the prefs 128 setSharedPreference(prefs, KEY_HOME_TZ_ENABLED, mUseHomeTZ); 129 setSharedPreference(prefs, KEY_HOME_TZ, mHomeTZ); 144 * The name of the file where the shared prefs for Calendar are stored 222 // Write the prefs 223 SharedPreferences prefs = getSharedPreferences(context, mPrefsName); 224 setSharedPreference(prefs, KEY_HOME_TZ_ENABLED, mUseHomeTZ); 225 setSharedPreference(prefs, KEY_HOME_TZ, mHomeTZ); 273 SharedPreferences prefs 330 setSharedPreference(SharedPreferences prefs, String key, String value) argument 345 setSharedPreference(SharedPreferences prefs, String key, boolean value) argument [all...] |
H A D | GeneralPreferences.java | 191 SharedPreferences prefs = CalendarUtils.getSharedPreferences(activity, 197 if (!prefs.getBoolean(KEY_HOME_TZ_ENABLED, false)) { 198 mTimeZoneId = prefs.getString(KEY_HOME_TZ, Time.getCurrentTimezone()); 358 * @param prefs the preferences to upgrade 360 private void migrateOldPreferences(SharedPreferences prefs) { argument 363 mVibrate.setChecked(Utils.getDefaultVibrate(getActivity(), prefs)); 366 if (!prefs.contains(KEY_ALERTS) && prefs.contains(KEY_ALERTS_TYPE)) { 367 String type = prefs.getString(KEY_ALERTS_TYPE, ALERT_TYPE_STATUS_BAR); 382 prefs [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | ContactListFilter.java | 163 public static void storeToPreferences(SharedPreferences prefs, ContactListFilter filter) { argument 167 prefs.edit() 179 public static ContactListFilter restoreDefaultPreferences(SharedPreferences prefs) { argument 180 ContactListFilter filter = restoreFromPreferences(prefs); 193 private static ContactListFilter restoreFromPreferences(SharedPreferences prefs) { argument 194 int filterType = prefs.getInt(KEY_FILTER_TYPE, FILTER_TYPE_DEFAULT); 199 String accountName = prefs.getString(KEY_ACCOUNT_NAME, null); 200 String accountType = prefs.getString(KEY_ACCOUNT_TYPE, null); 201 String dataSet = prefs.getString(KEY_DATA_SET, null);
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
H A D | TimerObj.java | 83 public void writeToSharedPref(SharedPreferences prefs) { argument 84 SharedPreferences.Editor editor = prefs.edit(); 98 Set <String> timersList = prefs.getStringSet(PREF_TIMERS_LIST, new HashSet<String>()); 109 public void readFromSharedPref(SharedPreferences prefs) { argument 112 mStartTime = prefs.getLong(key, 0); 114 mTimeLeft = prefs.getLong(key, 0); 116 mOriginalLength = prefs.getLong(key, 0); 118 mSetupLength = prefs.getLong(key, 0); 120 mState = prefs.getInt(key, 0); 122 mLabel = prefs 127 deleteFromSharedPref(SharedPreferences prefs) argument 241 getTimersFromSharedPrefs( SharedPreferences prefs, ArrayList<TimerObj> timers) argument 261 getTimersFromSharedPrefs( SharedPreferences prefs, ArrayList<TimerObj> timers, int match) argument 277 putTimersInSharedPrefs( SharedPreferences prefs, ArrayList<TimerObj> timers) argument 287 dumpTimersFromSharedPrefs( SharedPreferences prefs) argument 300 resetTimersInSharedPrefs(SharedPreferences prefs) argument [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | SearchSettingsImpl.java | 137 private int getAndIncrementIntPreference(SharedPreferences prefs, String name) { argument 138 int i = prefs.getInt(name, 0); 150 SharedPreferences prefs = getSearchPreferences(); 154 int lastVoiceSearchVersion = prefs.getInt(LAST_SEEN_VOICE_SEARCH_VERSION, 0); 155 long firstHintTime = prefs.getLong(FIRST_VOICE_HINT_DISPLAY_TIME, 0); 157 SharedPreferencesCompat.apply(prefs.edit()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
H A D | ManageAccountsSettings.java | 348 PreferenceScreen prefs = addPreferencesForType(mAccountType, getPreferenceScreen()); 349 if (prefs != null) { 350 updatePreferenceIntents(prefs); 390 private void updatePreferenceIntents(PreferenceScreen prefs) { argument 392 for (int i = 0; i < prefs.getPreferenceCount();) { 393 Preference pref = prefs.getPreference(i); 420 prefs.removePreference(pref);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | DynamicGridKeyboard.java | 55 public DynamicGridKeyboard(final SharedPreferences prefs, final Keyboard templateKeyboard, argument 65 mPrefs = prefs;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | LatinImeLogger.java | 40 public static boolean getUsabilityStudyMode(final SharedPreferences prefs) { argument
|
H A D | RichInputMethodManager.java | 67 final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); 68 sInstance.initInternal(context, prefs); 81 private void initInternal(final Context context, final SharedPreferences prefs) { argument 91 prefs, context.getResources());
|