Searched refs:defaultValue (Results 1 - 21 of 21) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/voice/
H A DSettingsUtil.java82 * @param defaultValue The default value to use if none can be found
83 * @return The value of the setting, or defaultValue if it couldn't be found
85 public static String getSettingsString(ContentResolver cr, String key, String defaultValue) { argument
87 return (result == null) ? defaultValue : result;
95 * @param defaultValue The default value to use if the setting couldn't be found or parsed
96 * @return The value of the setting, or defaultValue if it couldn't be found or parsed
98 public static int getSettingsInt(ContentResolver cr, String key, int defaultValue) { argument
99 return Settings.Secure.getInt(cr, key, defaultValue);
107 * @param defaultValue The default value to use if the setting couldn't be found or parsed
108 * @return The value of the setting, or defaultValue i
110 getSettingsFloat(ContentResolver cr, String key, float defaultValue) argument
[all...]
H A DVoiceInput.java345 String gservicesKey, String intentExtraKey, String defaultValue) {
347 String s = SettingsUtil.getSettingsString(cr, gservicesKey, defaultValue);
344 putEndpointerExtra(ContentResolver cr, Intent i, String gservicesKey, String intentExtraKey, String defaultValue) argument
/packages/apps/IM/src/com/android/im/imps/
H A DImpsUtils.java156 public static int parseInt(String s, int defaultValue) { argument
161 return defaultValue;
165 public static long parseLong(String s, long defaultValue) { argument
170 return defaultValue;
/packages/apps/Browser/tests/src/com/android/browser/
H A DJNIBindingsTestApp.java150 String defaultValue, JsPromptResult result) {
152 "Giving default value '%s'", message, url, defaultValue);
154 result.confirm(defaultValue);
H A DTestWebChromeClient.java119 String defaultValue, JsPromptResult result) {
120 return mWrappedClient.onJsPrompt(view, url, message, defaultValue, result);
118 onJsPrompt(WebView view, String url, String message, String defaultValue, JsPromptResult result) argument
H A DPopularUrlsTest.java168 String defaultValue, JsPromptResult result) {
170 "Giving default value '%s'", message, url, defaultValue);
172 result.confirm(defaultValue);
/packages/apps/Email/src/com/android/email/mail/
H A DFolder.java205 * @return the data saved by the Folder, or defaultValue if never set.
207 public String getPersistentString(String key, String defaultValue); argument
H A DStore.java283 * @param defaultValue The data to return if no data was ever saved for this store
286 public String getPersistentString(String key, String defaultValue); argument
/packages/apps/Calendar/src/com/android/calendar/
H A DUtils.java62 static String getSharedPreference(Context context, String key, String defaultValue) { argument
64 return prefs.getString(key, defaultValue);
/packages/apps/IM/src/com/android/im/app/
H A DPreferenceActivity.java111 private String getPreference(String prefName, String defaultValue) { argument
114 return value == null ? defaultValue : value;
/packages/apps/Phone/src/com/android/phone/
H A DEditPhoneNumberPreference.java389 protected void onSetInitialValue(boolean restoreValue, Object defaultValue) { argument
391 : (String) defaultValue);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DSocialProvider.java225 * {@code defaultValue}.
227 private long getThreadPublished(SQLiteDatabase db, String rawId, long defaultValue) { argument
229 long threadPublished = defaultValue;
H A DContactsDatabaseHelper.java2909 public String getProperty(String key, String defaultValue) { argument
2923 return value != null ? value : defaultValue;
H A DContactsProvider2.java5917 boolean defaultValue) {
5922 return defaultValue;
5927 return defaultValue;
5916 readBooleanQueryParameter(Uri uri, String parameter, boolean defaultValue) argument
/packages/apps/Email/src/com/android/email/mail/store/
H A DLocalStore.java538 public String getPersistentString(String key, String defaultValue) { argument
539 return getPersistentString(-1, key, defaultValue);
550 * @param defaultValue The value to return if the row is not found
553 private String getPersistentString(long folderId, String key, String defaultValue) { argument
554 String result = defaultValue;
1552 public String getPersistentString(String key, String defaultValue) { argument
1553 return LocalStore.this.getPersistentString(mFolderId, key, defaultValue);
/packages/apps/Contacts/src/com/android/contacts/model/
H A DEntityDelta.java571 public Integer getAsInteger(String key, Integer defaultValue) { argument
577 return defaultValue;
/packages/apps/Mms/src/com/android/mms/data/
H A DContact.java263 public synchronized Drawable getAvatar(Context context, Drawable defaultValue) { argument
270 return mAvatar != null ? mAvatar : defaultValue;
/packages/apps/Gallery/src/com/android/camera/
H A DViewImage.java678 SharedPreferences prefs, String key, int defaultValue) {
681 return value == null ? defaultValue : Integer.parseInt(value);
684 return defaultValue;
677 getPreferencesInteger( SharedPreferences prefs, String key, int defaultValue) argument
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DDockService.java753 private int getSettingInt(String key, int defaultValue) { argument
756 return sharedPref.getInt(key, defaultValue);
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarProvider2.java3443 boolean defaultValue) {
3446 ? defaultValue
3442 readBooleanQueryParameter(Uri uri, String name, boolean defaultValue) argument
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsProvider2Test.java2216 boolean defaultValue, boolean expectedValue) {
2218 Uri.parse(uriString), parameter, defaultValue));
2215 assertBooleanUriParameter(String uriString, String parameter, boolean defaultValue, boolean expectedValue) argument

Completed in 278 milliseconds