Home
last modified time | relevance | path

Searched refs:prefs (Results 1 – 25 of 130) sorted by relevance

123456

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettings.java156 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { in onSharedPreferenceChanged() argument
177 final SharedPreferences prefs = mPrefs; in loadSettings() local
181 return new SettingsValues(context, prefs, res, inputAttributes); in loadSettings()
204 public static boolean readKeypressSoundEnabled(final SharedPreferences prefs, in readKeypressSoundEnabled() argument
206 return prefs.getBoolean(PREF_SOUND_ON, in readKeypressSoundEnabled()
210 public static boolean readVibrationEnabled(final SharedPreferences prefs, in readVibrationEnabled() argument
213 return hasVibrator && prefs.getBoolean(PREF_VIBRATE_ON, in readVibrationEnabled()
217 public static boolean readAutoCorrectEnabled(final SharedPreferences prefs, in readAutoCorrectEnabled() argument
219 return prefs.getBoolean(PREF_AUTO_CORRECTION, true); in readAutoCorrectEnabled()
226 public static boolean readBlockPotentiallyOffensive(final SharedPreferences prefs, in readBlockPotentiallyOffensive() argument
[all …]
DSettingsValues.java122 public SettingsValues(final Context context, final SharedPreferences prefs, final Resources res, in SettingsValues() argument
134 mAutoCap = prefs.getBoolean(Settings.PREF_AUTO_CAP, true); in SettingsValues()
135 mVibrateOn = Settings.readVibrationEnabled(prefs, res); in SettingsValues()
136 mSoundOn = Settings.readKeypressSoundEnabled(prefs, res); in SettingsValues()
137 mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res); in SettingsValues()
138 mSlidingKeyInputPreviewEnabled = prefs.getBoolean( in SettingsValues()
140 mShowsVoiceInputKey = needsToShowVoiceInputKey(prefs, res) in SettingsValues()
144 ? prefs.getBoolean(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST, false) in SettingsValues()
147 ? Settings.readShowsLanguageSwitchKey(prefs) : true /* forcibly */; in SettingsValues()
148 mUseContactsDict = prefs.getBoolean(Settings.PREF_KEY_USE_CONTACTS_DICT, true); in SettingsValues()
[all …]
DAdvancedSettingsFragment.java57 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in onCreate() local
59 if (!Settings.isInternal(prefs)) { in onCreate()
88 Settings.readKeyPreviewPopupEnabled(prefs, res)); in onCreate()
100 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in onResume() local
105 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { in onSharedPreferenceChanged() argument
109 Settings.readKeyPreviewPopupEnabled(prefs, res)); in onSharedPreferenceChanged()
118 final SharedPreferences prefs = getSharedPreferences(); in refreshEnablingsOfKeypressSoundAndVibrationSettings() local
121 Settings.readVibrationEnabled(prefs, res)); in refreshEnablingsOfKeypressSoundAndVibrationSettings()
123 Settings.readKeypressSoundEnabled(prefs, res)); in refreshEnablingsOfKeypressSoundAndVibrationSettings()
132 final SharedPreferences prefs = getSharedPreferences(); in setupKeypressVibrationDurationSettings() local
[all …]
DDebugSettingsFragment.java127 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { in onSharedPreferenceChanged() argument
129 mDebugMode.setChecked(prefs.getBoolean(DebugSettings.PREF_DEBUG_MODE, false)); in onSharedPreferenceChanged()
154 final SharedPreferences prefs = getSharedPreferences(); in setupKeyPreviewAnimationScale() local
173 prefs.edit().putFloat(key, getValueFromPercentage(value)).apply(); in setupKeyPreviewAnimationScale()
178 prefs.edit().remove(key).apply(); in setupKeyPreviewAnimationScale()
184 Settings.readKeyPreviewAnimationScale(prefs, key, defaultValue)); in setupKeyPreviewAnimationScale()
206 final SharedPreferences prefs = getSharedPreferences(); in setupKeyPreviewAnimationDuration() local
215 prefs.edit().putInt(key, value).apply(); in setupKeyPreviewAnimationDuration()
220 prefs.edit().remove(key).apply(); in setupKeyPreviewAnimationDuration()
225 return Settings.readKeyPreviewAnimationDuration(prefs, key, defaultValue); in setupKeyPreviewAnimationDuration()
[all …]
/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailNotificationSettingsUtil.java49 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); in setVibrationEnabled() local
50 SharedPreferences.Editor editor = prefs.edit(); in setVibrationEnabled()
56 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); in isVibrationEnabled() local
57 migrateVoicemailVibrationSettingsIfNeeded(phone, prefs); in isVibrationEnabled()
58 return prefs.getBoolean(getVoicemailVibrationSharedPrefsKey(phone), false /* defValue */); in isVibrationEnabled()
62 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); in setRingtoneUri() local
65 SharedPreferences.Editor editor = prefs.edit(); in setRingtoneUri()
71 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); in getRingtoneUri() local
72 migrateVoicemailRingtoneSettingsIfNeeded(phone, prefs); in getRingtoneUri()
73 String uriString = prefs.getString( in getRingtoneUri()
[all …]
DVisualVoicemailSettingsUtil.java61 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setVisualVoicemailEnabled() local
62 SharedPreferences.Editor editor = prefs.edit(); in setVisualVoicemailEnabled()
76 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in isVisualVoicemailEnabled() local
77 return prefs.getBoolean(getVisualVoicemailSharedPrefsKey(IS_ENABLED_KEY, phoneAccount), in isVisualVoicemailEnabled()
96 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in isVisualVoicemailUserSet() local
97 return prefs.getBoolean( in isVisualVoicemailUserSet()
104 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setVisualVoicemailCredentialsFromStatusMessage() local
105 SharedPreferences.Editor editor = prefs.edit(); in setVisualVoicemailCredentialsFromStatusMessage()
124 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getVisualVoicemailCredentials() local
125 return prefs.getString(getVisualVoicemailSharedPrefsKey(key, phoneAccount), null); in getVisualVoicemailCredentials()
[all …]
DVoicemailProviderSettingsUtil.java55 SharedPreferences prefs = getPrefs(context); in load() local
57 String vmNumberSetting = prefs.getString(key + VM_NUMBER_TAG, null); in load()
66 int fwdLen = prefs.getInt(fwdKey + FWD_SETTINGS_LENGTH_TAG, 0); in load()
72 cfi[i].status = prefs.getInt(settingKey + FWD_SETTING_STATUS, 0); in load()
73 cfi[i].reason = prefs.getInt( in load()
78 cfi[i].number = prefs.getString(settingKey + FWD_SETTING_NUMBER, ""); in load()
79 cfi[i].timeSeconds = prefs.getInt(settingKey + FWD_SETTING_TIME, 20); in load()
103 SharedPreferences prefs = getPrefs(context); in save() local
104 SharedPreferences.Editor editor = prefs.edit(); in save()
136 SharedPreferences prefs = getPrefs(context); in delete() local
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DSettingsDAO.java52 final SharedPreferences prefs = getSharedPreferences(context); in getCitySort() local
53 final int citySortOrdinal = prefs.getInt(KEY_SORT_PREFERENCE, defaultSortOrdinal); in getCitySort()
63 final SharedPreferences prefs = getSharedPreferences(context); in toggleCitySort() local
64 prefs.edit().putInt(KEY_SORT_PREFERENCE, newSort.ordinal()).apply(); in toggleCitySort()
72 final SharedPreferences prefs = getSharedPreferences(context); in getAutoShowHomeClock() local
73 return prefs.getBoolean(SettingsActivity.KEY_AUTO_HOME_CLOCK, false); in getAutoShowHomeClock()
80 final SharedPreferences prefs = getSharedPreferences(context); in getHomeTimeZone() local
82 final String timeZoneId = prefs.getString(SettingsActivity.KEY_HOME_TZ, defaultTimeZoneId); in getHomeTimeZone()
92 final SharedPreferences prefs = getSharedPreferences(context); in setDefaultHomeTimeZone() local
93 final String homeTimeZoneId = prefs.getString(SettingsActivity.KEY_HOME_TZ, null); in setDefaultHomeTimeZone()
[all …]
DTimerDAO.java76 final SharedPreferences prefs = getSharedPreferences(context); in getTimers() local
79 final Set<String> timerIds = prefs.getStringSet(TIMER_IDS, Collections.<String>emptySet()); in getTimers()
85 final int stateValue = prefs.getInt(STATE + id, RESET.getValue()); in getTimers()
91 final long length = prefs.getLong(LENGTH + id, Long.MIN_VALUE); in getTimers()
92 final long totalLength = prefs.getLong(TOTAL_LENGTH + id, Long.MIN_VALUE); in getTimers()
93 final long lastStartTime = prefs.getLong(LAST_START_TIME + id, Long.MIN_VALUE); in getTimers()
94 final long remainingTime = prefs.getLong(REMAINING_TIME + id, totalLength); in getTimers()
95 final String label = prefs.getString(LABEL + id, null); in getTimers()
96 final boolean deleteAfterUse = prefs.getBoolean(DELETE_AFTER_USE + id, false); in getTimers()
109 final SharedPreferences prefs = getSharedPreferences(context); in addTimer() local
[all …]
DStopwatchDAO.java62 final SharedPreferences prefs = getSharedPreferences(context); in getStopwatch() local
63 final int stateIndex = prefs.getInt(STATE, RESET.ordinal()); in getStopwatch()
65 final long lastStartTime = prefs.getLong(LAST_START_TIME, Long.MIN_VALUE); in getStopwatch()
66 final long accumulatedTime = prefs.getLong(ACCUMULATED_TIME, 0); in getStopwatch()
74 final SharedPreferences prefs = getSharedPreferences(context); in setStopwatch() local
75 final SharedPreferences.Editor editor = prefs.edit(); in setStopwatch()
94 final SharedPreferences prefs = getSharedPreferences(context); in getLaps() local
97 final int lapCount = prefs.getInt(LAP_COUNT, 0); in getLaps()
106 final long accumulatedTime = prefs.getLong(lapAccumulatedTimeKey, 0); in getLaps()
139 final SharedPreferences prefs = getSharedPreferences(context); in clearLaps() local
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DBuglePrefsImpl.java45 final SharedPreferences prefs = mContext.getSharedPreferences( in getInt() local
47 return prefs.getInt(key, defaultValue); in getInt()
53 final SharedPreferences prefs = mContext.getSharedPreferences( in getLong() local
55 return prefs.getLong(key, defaultValue); in getLong()
61 final SharedPreferences prefs = mContext.getSharedPreferences( in getBoolean() local
63 return prefs.getBoolean(key, defaultValue); in getBoolean()
69 final SharedPreferences prefs = mContext.getSharedPreferences( in getString() local
71 return prefs.getString(key, defaultValue); in getString()
83 final SharedPreferences prefs = mContext.getSharedPreferences( in putInt() local
85 final SharedPreferences.Editor editor = prefs.edit(); in putInt()
[all …]
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java159 final SharedPreferences prefs = context.getSharedPreferences(packageName, in initEffectsPreferences() local
161 final SharedPreferences.Editor editor = prefs.edit(); in initEffectsPreferences()
167 final boolean isGlobalEnabled = prefs.getBoolean(Key.global_enabled.toString(), in initEffectsPreferences()
173 final boolean isVIEnabled = prefs.getBoolean(Key.virt_enabled.toString(), in initEffectsPreferences()
176 final int vIStrength = prefs.getInt(Key.virt_strength.toString(), in initEffectsPreferences()
199 final boolean isBBEnabled = prefs.getBoolean(Key.bb_enabled.toString(), in initEffectsPreferences()
201 final int bBStrength = prefs.getInt(Key.bb_strength.toString(), in initEffectsPreferences()
259 mEQPresetNames[preset] = prefs.getString( in initEffectsPreferences()
279 final short eQPreset = (short) prefs.getInt(Key.eq_current_preset.toString(), in initEffectsPreferences()
293 bandLevel[band] = (short) prefs.getInt( in initEffectsPreferences()
[all …]
/packages/apps/Email/provider_src/com/android/email/
DDebugUtils.java18 final Preferences prefs = Preferences.getPreferences(context); in init() local
19 DEBUG = prefs.getEnableDebugLogging(); in init()
20 DEBUG_EXCHANGE = prefs.getEnableExchangeLogging(); in init()
21 DEBUG_FILE = prefs.getEnableExchangeFileLogging(); in init()
25 enableStrictMode(prefs.getEnableStrictMode()); in init()
32 Preferences prefs = Preferences.getPreferences(context); in updateLoggingFlags() local
33 int debugLogging = prefs.getEnableDebugLogging() ? EmailServiceProxy.DEBUG_BIT : 0; in updateLoggingFlags()
35 prefs.getEnableExchangeLogging() ? EmailServiceProxy.DEBUG_EXCHANGE_BIT: 0; in updateLoggingFlags()
37 prefs.getEnableExchangeFileLogging() ? EmailServiceProxy.DEBUG_FILE_BIT : 0; in updateLoggingFlags()
39 prefs.getEnableStrictMode() ? EmailServiceProxy.DEBUG_ENABLE_STRICT_MODE : 0; in updateLoggingFlags()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardTheme.java115 static KeyboardTheme getDefaultKeyboardTheme(final SharedPreferences prefs, in getDefaultKeyboardTheme() argument
117 final String klpThemeIdString = prefs.getString(KLP_KEYBOARD_THEME_KEY, null); in getDefaultKeyboardTheme()
134 prefs.edit().remove(KLP_KEYBOARD_THEME_KEY).apply(); in getDefaultKeyboardTheme()
150 public static void saveKeyboardThemeId(final int themeId, final SharedPreferences prefs) { in saveKeyboardThemeId() argument
151 saveKeyboardThemeId(themeId, prefs, BuildCompatUtils.EFFECTIVE_SDK_INT); in saveKeyboardThemeId()
163 static void saveKeyboardThemeId(final int themeId, final SharedPreferences prefs, in saveKeyboardThemeId() argument
166 prefs.edit().putString(prefKey, Integer.toString(themeId)).apply(); in saveKeyboardThemeId()
170 final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getKeyboardTheme() local
172 return getKeyboardTheme(prefs, BuildCompatUtils.EFFECTIVE_SDK_INT, availableThemeArray); in getKeyboardTheme()
195 static KeyboardTheme getKeyboardTheme(final SharedPreferences prefs, final int sdkVersion, in getKeyboardTheme() argument
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DCalendarUtils.java126 SharedPreferences prefs = getSharedPreferences((Context)cookie, mPrefsName); in onQueryComplete() local
128 setSharedPreference(prefs, KEY_HOME_TZ_ENABLED, mUseHomeTZ); in onQueryComplete()
129 setSharedPreference(prefs, KEY_HOME_TZ, mHomeTZ); in onQueryComplete()
223 SharedPreferences prefs = getSharedPreferences(context, mPrefsName); in setTimeZone() local
224 setSharedPreference(prefs, KEY_HOME_TZ_ENABLED, mUseHomeTZ); in setTimeZone()
225 setSharedPreference(prefs, KEY_HOME_TZ, mHomeTZ); in setTimeZone()
273 SharedPreferences prefs = getSharedPreferences(context, mPrefsName); in getTimeZone() local
274 mUseHomeTZ = prefs.getBoolean(KEY_HOME_TZ_ENABLED, false); in getTimeZone()
275 mHomeTZ = prefs.getString(KEY_HOME_TZ, Time.getCurrentTimezone()); in getTimeZone()
330 public static void setSharedPreference(SharedPreferences prefs, String key, String value) { in setSharedPreference() argument
[all …]
DUtils.java221 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(activity); in getViewTypeFromIntentAndSharedPref() local
229 return prefs.getInt(GeneralPreferences.KEY_DETAILED_VIEW, in getViewTypeFromIntentAndSharedPref()
238 return prefs.getInt( in getViewTypeFromIntentAndSharedPref()
310 public static boolean getDefaultVibrate(Context context, SharedPreferences prefs) { in getDefaultVibrate() argument
312 if (prefs.contains(KEY_ALERTS_VIBRATE_WHEN)) { in getDefaultVibrate()
317 String vibrateWhen = prefs.getString(KEY_ALERTS_VIBRATE_WHEN, null); in getDefaultVibrate()
320 prefs.edit().remove(KEY_ALERTS_VIBRATE_WHEN).commit(); in getDefaultVibrate()
324 vibrate = prefs.getBoolean(GeneralPreferences.KEY_ALERTS_VIBRATE, in getDefaultVibrate()
331 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference() local
332 Set<String> ss = prefs.getStringSet(key, null); in getSharedPreference()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DQuickResponseUtils.java63 final SharedPreferences prefs = context.getSharedPreferences( in maybeMigrateLegacyQuickResponses() local
67 final boolean responsesExist = prefs.contains(KEY_CANNED_RESPONSE_PREF_1) in maybeMigrateLegacyQuickResponses()
68 || prefs.contains(KEY_CANNED_RESPONSE_PREF_2) in maybeMigrateLegacyQuickResponses()
69 || prefs.contains(KEY_CANNED_RESPONSE_PREF_3) in maybeMigrateLegacyQuickResponses()
70 || prefs.contains(KEY_CANNED_RESPONSE_PREF_4); in maybeMigrateLegacyQuickResponses()
108 final SharedPreferences.Editor editor = prefs.edit(); in maybeMigrateLegacyQuickResponses()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListFilter.java163 public static void storeToPreferences(SharedPreferences prefs, ContactListFilter filter) { in storeToPreferences() argument
167 prefs.edit() in storeToPreferences()
179 public static ContactListFilter restoreDefaultPreferences(SharedPreferences prefs) { in restoreDefaultPreferences() argument
180 ContactListFilter filter = restoreFromPreferences(prefs); in restoreDefaultPreferences()
193 private static ContactListFilter restoreFromPreferences(SharedPreferences prefs) { in restoreFromPreferences() argument
194 int filterType = prefs.getInt(KEY_FILTER_TYPE, FILTER_TYPE_DEFAULT); in restoreFromPreferences()
199 String accountName = prefs.getString(KEY_ACCOUNT_NAME, null); in restoreFromPreferences()
200 String accountType = prefs.getString(KEY_ACCOUNT_TYPE, null); in restoreFromPreferences()
201 String dataSet = prefs.getString(KEY_DATA_SET, null); in restoreFromPreferences()
/packages/apps/Messaging/src/com/android/messaging/ui/
DWidgetPickConversationActivity.java98 final BuglePrefs prefs = Factory.get().getWidgetPrefs(); in saveConversationidPref() local
99 prefs.putString(UIIntents.UI_INTENT_EXTRA_CONVERSATION_ID + appWidgetId, conversationId); in saveConversationidPref()
104 final BuglePrefs prefs = Factory.get().getWidgetPrefs(); in getConversationIdPref() local
105 return prefs.getString(UIIntents.UI_INTENT_EXTRA_CONVERSATION_ID + appWidgetId, null); in getConversationIdPref()
110 final BuglePrefs prefs = Factory.get().getWidgetPrefs(); in deleteConversationIdPref() local
111 prefs.remove(UIIntents.UI_INTENT_EXTRA_CONVERSATION_ID + appWidgetId); in deleteConversationIdPref()
/packages/apps/Email/provider_src/com/android/email/provider/
DWidgetProvider.java49 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in onDeleted() local
50 final SharedPreferences.Editor editor = prefs.edit(); in onDeleted()
89 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in migrateLegacyWidgetInformation() local
90 final SharedPreferences.Editor editor = prefs.edit(); in migrateLegacyWidgetInformation()
176 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in loadAccountIdPref() local
177 long accountId = prefs.getLong(LEGACY_ACCOUNT_ID_PREFIX + appWidgetId, Account.NO_ACCOUNT); in loadAccountIdPref()
187 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in loadMailboxIdPref() local
188 long mailboxId = prefs.getLong(LEGACY_MAILBOX_ID_PREFIX + appWidgetId, Mailbox.NO_MAILBOX); in loadMailboxIdPref()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothConnectionsManager.java32 final SharedPreferences prefs = in onConnectionChanged() local
34 Set<String> connected = prefs.getStringSet(KEY_CONNECTED_SET, new HashSet<String>()); in onConnectionChanged()
35 int btState = prefs.getInt(KEY_BT_STATE, BluetoothAdapter.STATE_OFF); in onConnectionChanged()
68 SharedPreferences.Editor editor = prefs.edit(); in onConnectionChanged()
87 SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE); in getConnectedSet() local
88 return prefs.getStringSet(KEY_CONNECTED_SET, new HashSet<String>()); in getConnectedSet()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/accounts/
DAccountsChangedReceiver.java48 final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in onReceive() local
49 final String currentAccount = prefs.getString( in onReceive()
51 removeUnknownAccountFromPreference(prefs, getAccountsForLogin(context), currentAccount); in onReceive()
66 private static void removeUnknownAccountFromPreference(final SharedPreferences prefs, in removeUnknownAccountFromPreference() argument
77 prefs.edit() in removeUnknownAccountFromPreference()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPackagesMonitor.java33 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getPackagesVersion() local
34 return prefs.getInt(KEY_PACKAGES_VERSION, 1); in getPackagesVersion()
56 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in onReceiveAsync() local
58 int version = prefs.getInt(KEY_PACKAGES_VERSION, 1); in onReceiveAsync()
59 prefs.edit().putInt(KEY_PACKAGES_VERSION, version + 1).commit(); in onReceiveAsync()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchSettingsImpl.java137 private int getAndIncrementIntPreference(SharedPreferences prefs, String name) { in getAndIncrementIntPreference() argument
138 int i = prefs.getInt(name, 0); in getAndIncrementIntPreference()
150 SharedPreferences prefs = getSearchPreferences(); in haveVoiceSearchHintsExpired() local
154 int lastVoiceSearchVersion = prefs.getInt(LAST_SEEN_VOICE_SEARCH_VERSION, 0); in haveVoiceSearchHintsExpired()
155 long firstHintTime = prefs.getLong(FIRST_VOICE_HINT_DISPLAY_TIME, 0); in haveVoiceSearchHintsExpired()
157 SharedPreferencesCompat.apply(prefs.edit() in haveVoiceSearchHintsExpired()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/
DAllAppPermissionsFragment.java94 ArrayList<Preference> prefs = new ArrayList<>(); // Used for sorting. in updateUi() local
95 prefs.add(otherGroup); in updateUi()
133 findOrCreate(group != null ? group : perm, pm, prefs); in updateUi()
145 Collections.sort(prefs, new Comparator<Preference>() { in updateUi()
161 for (int i = 0; i < prefs.size(); i++) { in updateUi()
162 prefs.get(i).setOrder(i); in updateUi()
175 ArrayList<Preference> prefs) { in findOrCreate() argument
181 prefs.add(pref); in findOrCreate()

123456