Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 175) sorted by relevance

1234567

/packages/apps/Email/src/org/apache/commons/io/
DEndianUtils.java56 public static short swapShort(short value) { in swapShort() argument
57 return (short) ( ( ( ( value >> 0 ) & 0xff ) << 8 ) + in swapShort()
58 ( ( ( value >> 8 ) & 0xff ) << 0 ) ); in swapShort()
66 public static int swapInteger(int value) { in swapInteger() argument
68 ( ( ( value >> 0 ) & 0xff ) << 24 ) + in swapInteger()
69 ( ( ( value >> 8 ) & 0xff ) << 16 ) + in swapInteger()
70 ( ( ( value >> 16 ) & 0xff ) << 8 ) + in swapInteger()
71 ( ( ( value >> 24 ) & 0xff ) << 0 ); in swapInteger()
79 public static long swapLong(long value) { in swapLong() argument
81 ( ( ( value >> 0 ) & 0xff ) << 56 ) + in swapLong()
[all …]
/packages/apps/Mms/src/com/android/mms/
DMmsConfig.java244 String value = parser.getAttributeValue(0); in loadMmsSettings() local
251 Log.v(TAG, "tag: " + tag + " value: " + value); in loadMmsSettings()
256 if ("enabledMMS".equalsIgnoreCase(value)) { in loadMmsSettings()
258 } else if ("enabledTransID".equalsIgnoreCase(value)) { in loadMmsSettings()
260 } else if ("enabledNotifyWapMMSC".equalsIgnoreCase(value)) { in loadMmsSettings()
262 } else if ("aliasEnabled".equalsIgnoreCase(value)) { in loadMmsSettings()
264 } else if ("allowAttachAudio".equalsIgnoreCase(value)) { in loadMmsSettings()
266 } else if ("enableMultipartSMS".equalsIgnoreCase(value)) { in loadMmsSettings()
268 } else if ("enableSlideDuration".equalsIgnoreCase(value)) { in loadMmsSettings()
273 if ("maxMessageSize".equalsIgnoreCase(value)) { in loadMmsSettings()
[all …]
/packages/experimental/procstatlog/
Dprocstatlog.c59 char *value; // text to be reported when it changes member
77 data->value = NULL; in read_data()
85 data->value = NULL; in read_data()
91 data->value = malloc(len + 1); in read_data()
92 memcpy(data->value, buf, len); in read_data()
93 data->value[len] = '\0'; in read_data()
150 char *value = name_end + 1; in read_lines() local
151 while (isspace(*value)) ++value; in read_lines()
152 data->value = strdup(value); in read_lines()
201 char *value = name_end; in read_proc_yaffs() local
[all …]
/packages/apps/Gallery3D/src/com/cooliris/media/
DShared.java67 public static int clamp(int value, int min, int max) { in clamp() argument
68 if (value < min) { in clamp()
69 value = min; in clamp()
70 } else if (value > max) { in clamp()
71 value = max; in clamp()
73 return value; in clamp()
76 public static long clamp(long value, long min, long max) { in clamp() argument
77 if (value < min) { in clamp()
78 value = min; in clamp()
79 } else if (value > max) { in clamp()
[all …]
DFloatAnim.java27 public FloatAnim(float value) { in FloatAnim() argument
28 mValue = value; in FloatAnim()
52 public void animateValue(float value, float duration, long currentTime) { in animateValue() argument
53 mDelta = getValue(currentTime) - value; in animateValue()
54 mValue = value; in animateValue()
59 public void setValue(float value) { in setValue() argument
60 mValue = value; in setValue()
DLongSparseArray.java131 public void put(long key, E value) { in put() argument
135 mValues[i] = value; in put()
141 mValues[i] = value; in put()
173 mValues[i] = value; in put()
222 public void setValueAt(int index, E value) { in setValueAt() argument
227 mValues[index] = value; in setValueAt()
248 public int indexOfValue(E value) { in indexOfValue() argument
254 if (mValues[i] == value) in indexOfValue()
279 public void append(long key, E value) { in append() argument
281 put(key, value); in append()
[all …]
/packages/apps/Email/src/com/android/email/mail/internet/
DMimeHeader.java70 public void addHeader(String name, String value) throws MessagingException { in addHeader() argument
71 mFields.add(new Field(name, value)); in addHeader()
74 public void setHeader(String name, String value) throws MessagingException { in setHeader() argument
75 if (name == null || value == null) { in setHeader()
79 addHeader(name, value); in setHeader()
86 values.add(field.value); in getHeader()
118 builder.append(field.name + ": " + field.value + "\r\n"); in writeToString()
128 writer.write(field.name + ": " + field.value + "\r\n"); in writeTo()
136 final String value; field in MimeHeader.Field
138 public Field(String name, String value) { in Field() argument
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DSpinnerOption.java22 public final Object value; field in SpinnerOption
26 public static void setSpinnerOptionValue(Spinner spinner, Object value) { in setSpinnerOptionValue() argument
29 if (so.value.equals(value)) { in setSpinnerOptionValue()
36 public SpinnerOption(Object value, String label) { in SpinnerOption() argument
37 this.value = value; in SpinnerOption()
/packages/apps/Email/src/org/apache/james/mime4j/field/
DUnstructuredField.java32 private String value; field in UnstructuredField
34 protected UnstructuredField(String name, String body, String raw, String value) { in UnstructuredField() argument
36 this.value = value; in UnstructuredField()
40 return value; in getValue()
45 final String value = DecoderUtil.decodeEncodedWords(body); in parse() local
46 return new UnstructuredField(name, body, raw, value); in parse()
/packages/apps/Camera/src/com/android/camera/
DComboPreferences.java163 public Editor putString(String key, String value) { in putString() argument
165 mEditorGlobal.putString(key, value); in putString()
167 mEditorLocal.putString(key, value); in putString()
172 public Editor putInt(String key, int value) { in putInt() argument
174 mEditorGlobal.putInt(key, value); in putInt()
176 mEditorLocal.putInt(key, value); in putInt()
181 public Editor putLong(String key, long value) { in putLong() argument
183 mEditorGlobal.putLong(key, value); in putLong()
185 mEditorLocal.putLong(key, value); in putLong()
190 public Editor putFloat(String key, float value) { in putFloat() argument
[all …]
DListPreference.java87 public void setValue(String value) { in setValue() argument
88 if (findIndexOfValue(value) < 0) throw new IllegalArgumentException(); in setValue()
89 mValue = value; in setValue()
90 persistStringValue(value); in setValue()
97 public int findIndexOfValue(String value) { in findIndexOfValue() argument
99 if (Util.equals(mEntryValues[i], value)) return i; in findIndexOfValue()
108 protected void persistStringValue(String value) { in persistStringValue() argument
110 editor.putString(mKey, value); in persistStringValue()
/packages/apps/Tag/src/com/android/vcard/
DVCardEntryConstructor.java168 public void propertyParamValue(String value) { in propertyParamValue() argument
173 if (!VCardUtils.containsOnlyAlphaDigitHyphen(value)) { in propertyParamValue()
174 value = VCardUtils.convertStringCharset( in propertyParamValue()
175 value, mSourceCharset, VCardConfig.DEFAULT_IMPORT_CHARSET); in propertyParamValue()
177 mCurrentProperty.addParameter(mParamType, value); in propertyParamValue()
181 private String handleOneValue(String value, in handleOneValue() argument
185 if (TextUtils.isEmpty(value)) { in handleOneValue()
191 mCurrentProperty.setPropertyBytes(Base64.decode(value.getBytes(), Base64.DEFAULT)); in handleOneValue()
192 return value; in handleOneValue()
195 value, mStrictLineBreaking, sourceCharset, targetCharset); in handleOneValue()
[all …]
DVCardUtils.java379 public static List<String> constructListFromValue(final String value, in constructListFromValue() argument
383 final int length = value.length(); in constructListFromValue()
385 char ch = value.charAt(i); in constructListFromValue()
387 char nextCh = value.charAt(i + 1); in constructListFromValue()
429 for (final String value : values) { in containsOnlyPrintableAscii()
430 if (TextUtils.isEmpty(value)) { in containsOnlyPrintableAscii()
433 if (!TextUtils.isPrintableAsciiOnly(value)) { in containsOnlyPrintableAscii()
462 for (final String value : values) { in containsOnlyNonCrLfPrintableAscii()
463 if (TextUtils.isEmpty(value)) { in containsOnlyNonCrLfPrintableAscii()
466 final int length = value.length(); in containsOnlyNonCrLfPrintableAscii()
[all …]
/packages/apps/Mms/src/com/android/mms/dom/smil/
DTimeImpl.java207 private static float parseFloat(String value, int ignoreLast, boolean parseDecimal) { in parseFloat() argument
209 value = value.substring(0, value.length() - ignoreLast); in parseFloat()
212 int indexOfComma = value.indexOf('.'); in parseFloat()
218 value = value + "000"; in parseFloat()
220 result = Float.parseFloat(value.substring(0, indexOfComma)); in parseFloat()
222 value.substring(indexOfComma + 1, indexOfComma + 4))/1000; in parseFloat()
224 result = Integer.parseInt(value); in parseFloat()
/packages/apps/Camera/src/com/android/camera/gallery/
DLruCache.java49 public Entry(K key, V value, ReferenceQueue<V> queue) { in Entry() argument
50 super(value, queue); in Entry()
64 public synchronized V put(K key, V value) { in put() argument
66 mLruMap.put(key, value); in put()
68 key, new Entry<K, V>(key, value, mQueue)); in put()
74 V value = mLruMap.get(key); in get() local
75 if (value != null) return value; in get()
/packages/apps/Gallery/src/com/android/camera/gallery/
DLruCache.java45 public Entry(K key, V value, ReferenceQueue<V> queue) { in Entry() argument
46 super(value, queue); in Entry()
60 public synchronized V put(K key, V value) { in put() argument
62 mLruMap.put(key, value); in put()
64 key, new Entry<K, V>(key, value, mQueue)); in put()
70 V value = mLruMap.get(key); in get() local
71 if (value != null) return value; in get()
/packages/apps/Camera/src/com/android/camera/ui/
DCameraEGLConfigChooser.java71 int value[] = new int[1]; in chooseConfig() local
78 display, configs[i], EGL10.EGL_STENCIL_SIZE, value)) { in chooseConfig()
79 if (value[0] == 0) continue; in chooseConfig()
80 if (value[0] < minStencil) { in chooseConfig()
81 minStencil = value[0]; in chooseConfig()
91 display, result, EGL10.EGL_STENCIL_SIZE, value); in chooseConfig()
92 mStencilBits = value[0]; in chooseConfig()
/packages/apps/Browser/src/com/android/browser/
DBrowserPreferencesPage.java123 Boolean value = (Boolean) objValue; in onPreferenceChange() local
124 if (value.booleanValue() == true) { in onPreferenceChange()
128 String value = (String) objValue; in onPreferenceChange() local
129 boolean needUpdate = value.indexOf(' ') != -1; in onPreferenceChange()
131 value = value.trim().replace(" ", "%20"); in onPreferenceChange()
133 if (value.length() != 0 && Uri.parse(value).getScheme() == null) { in onPreferenceChange()
134 value = "http://" + value; in onPreferenceChange()
138 pref.setSummary(value); in onPreferenceChange()
142 ((EditTextPreference) pref).setText(value); in onPreferenceChange()
/packages/apps/Settings/src/com/android/settings/wifi/
DAdvancedSettings.java153 int value = Settings.System.getInt(getContentResolver(), in initSleepPolicyPreference() local
155 pref.setValue(String.valueOf(value)); in initSleepPolicyPreference()
197 boolean value = ((Boolean) newValue).booleanValue(); in onPreferenceChange()
201 Settings.System.WIFI_USE_STATIC_IP, value ? 1 : 0); in onPreferenceChange()
206 String value = (String) newValue; in onPreferenceChange() local
208 if (!isIpAddress(value)) { in onPreferenceChange()
213 preference.setSummary(value); in onPreferenceChange()
216 Settings.System.putString(getContentResolver(), mSettingNames[i], value); in onPreferenceChange() local
225 private boolean isIpAddress(String value) { in isIpAddress() argument
228 int end = value.indexOf('.'); in isIpAddress()
[all …]
/packages/apps/Email/src/com/android/email/mail/
DPackedString.java97 String value; in explode() local
101 value = packed.substring(elementStartIndex, elementEndIndex); in explode()
104 value = packed.substring(elementStartIndex, tagEndIndex); in explode()
109 map.put(tag, value); in explode()
142 public void put(String tag, String value) { in put() argument
143 if (value == null) { in put()
146 mMap.put(tag, value); in put()
/packages/apps/Gallery/src/com/android/camera/
DReverseGeocoderTask.java50 String value = MenuHelper.EMPTY_STRING; in doInBackground() local
59 value = sb.toString(); in doInBackground()
61 value = MenuHelper.EMPTY_STRING; in doInBackground()
64 value = MenuHelper.EMPTY_STRING; in doInBackground()
67 return value; in doInBackground()
/packages/apps/Camera/tests/src/com/android/camera/gallery/
DLruCacheUnitTests.java13 Integer value = Integer.valueOf(3); in testPut() local
14 cache.put(key, value); in testPut()
15 assertEquals(value, cache.get(key)); in testPut()
22 Integer value = new Integer(3); in testTracingInUsedObject() local
23 cache.put(key, value); in testTracingInUsedObject()
28 assertEquals(value, cache.get(key)); in testTracingInUsedObject()
/packages/apps/Gallery/tests/src/com/android/camera/gallery/
DLruCacheUnitTests.java11 Integer value = Integer.valueOf(3); in testPut() local
12 cache.put(key, value); in testPut()
13 assertEquals(value, cache.get(key)); in testPut()
19 Integer value = new Integer(3); in testTracingInUsedObject() local
20 cache.put(key, value); in testTracingInUsedObject()
25 assertEquals(value, cache.get(key)); in testTracingInUsedObject()
/packages/apps/Email/src/com/android/email/
DPreferences.java136 public void setEnableDebugLogging(boolean value) { in setEnableDebugLogging() argument
137 mSharedPreferences.edit().putBoolean(ENABLE_DEBUG_LOGGING, value).commit(); in setEnableDebugLogging()
144 public void setEnableSensitiveLogging(boolean value) { in setEnableSensitiveLogging() argument
145 mSharedPreferences.edit().putBoolean(ENABLE_SENSITIVE_LOGGING, value).commit(); in setEnableSensitiveLogging()
152 public void setEnableExchangeLogging(boolean value) { in setEnableExchangeLogging() argument
153 mSharedPreferences.edit().putBoolean(ENABLE_EXCHANGE_LOGGING, value).commit(); in setEnableExchangeLogging()
160 public void setEnableExchangeFileLogging(boolean value) { in setEnableExchangeFileLogging() argument
161 mSharedPreferences.edit().putBoolean(ENABLE_EXCHANGE_FILE_LOGGING, value).commit(); in setEnableExchangeFileLogging()
/packages/apps/Settings/src/com/android/settings/vpn/
DVpnProfileEditor.java137 int prefNameId, String value, in createEditTextPreference() argument
142 setSummary(pref, prefNameId, value); in createEditTextPreference()
143 pref.setText(value); in createEditTextPreference()
151 String value = (pref instanceof EditTextPreference) in validate() local
157 return (TextUtils.isEmpty(value) in validate()
198 String value = getSecretFromProfile(); in SecretHandler() local
199 mHadSecret = !TextUtils.isEmpty(value); in SecretHandler()
213 setSecretSummary(value); in SecretHandler()
233 String value = mPref.getText(); in validate() local
234 return ((TextUtils.isEmpty(value) && !mHadSecret) in validate()
[all …]

1234567