Home
last modified time | relevance | path

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

123456

/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.java201 String value = parser.getAttributeValue(0); in loadMmsSettings() local
208 Log.v(TAG, "tag: " + tag + " value: " + value); in loadMmsSettings()
213 if ("enabledMMS".equalsIgnoreCase(value)) { in loadMmsSettings()
215 } else if ("enabledTransID".equalsIgnoreCase(value)) { in loadMmsSettings()
217 } else if ("enabledNotifyWapMMSC".equalsIgnoreCase(value)) { in loadMmsSettings()
219 } else if ("aliasEnabled".equalsIgnoreCase(value)) { in loadMmsSettings()
221 } else if ("allowAttachAudio".equalsIgnoreCase(value)) { in loadMmsSettings()
226 if ("maxMessageSize".equalsIgnoreCase(value)) { in loadMmsSettings()
228 } else if ("maxImageHeight".equalsIgnoreCase(value)) { in loadMmsSettings()
230 } else if ("maxImageWidth".equalsIgnoreCase(value)) { in loadMmsSettings()
[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()
137 String value; field in MimeHeader.Field
139 public Field(String name, String value) { in Field() argument
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DSpinnerOption.java22 public 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/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/Browser/src/com/android/browser/
DBrowserPreferencesPage.java121 Boolean value = (Boolean) objValue; in onPreferenceChange() local
122 if (value.booleanValue() == true) { in onPreferenceChange()
126 String value = (String) objValue; in onPreferenceChange() local
127 boolean needUpdate = value.indexOf(' ') != -1; in onPreferenceChange()
129 value = value.trim().replace(" ", "%20"); in onPreferenceChange()
131 if (value.length() != 0 && Uri.parse(value).getScheme() == null) { in onPreferenceChange()
132 value = "http://" + value; in onPreferenceChange()
136 pref.setSummary(value); in onPreferenceChange()
140 ((EditTextPreference) pref).setText(value); in onPreferenceChange()
/packages/apps/IM/src/com/android/im/imps/
DPtsPrimitiveParser.java204 for (ParamValue value : elemValue.mValueGroup) { in translateParam()
205 p.addElement(ImpsTags.ContactList, value.mStrValue); in translateParam()
255 String value = valueGroup.get(1).mStrValue; in translateParam() local
256 if (name == null || value == null) { in translateParam()
257 … throw new ParserException("Null value found for property: " + name + "-" + value); in translateParam()
270 propertyElem.addChild(ImpsTags.Value, value); in translateParam()
282 ParamValue value = elemValue.mValueGroup.get(0); in translateParam() local
283 if (value.mStrValue != null) { in translateParam()
284 p.addElement(ImpsTags.Presence).addChild(ImpsTags.UserID, value.mStrValue); in translateParam()
287 p.addElement(translatePresence(value.mValueGroup)); in translateParam()
[all …]
DPrimitiveElement.java54 public void setAttribute(String key, String value) { in setAttribute() argument
55 if (key != null && value != null) { in setAttribute()
59 mAttributes.put(key, value); in setAttribute()
135 public void addChild(String tagName, boolean value) { in addChild() argument
136 addChild(tagName).setContents(value ? in addChild()
140 public void addPropertyChild(String name, String value) in addPropertyChild() argument
144 ret.addChild(ImpsTags.Value, value); in addPropertyChild()
147 public void addPropertyChild(String name, boolean value) in addPropertyChild() argument
151 ret.addChild(ImpsTags.Value, value); in addPropertyChild()
DPtsPrimitiveSerializer.java122 String value; in serialize() local
126 value = escapeValueString(elem.getContents()); in serialize()
128 value = encoder.encodeValue(p, elem); in serialize()
130 if (value == null) { in serialize()
134 writer.write(value); in serialize()
191 static boolean appendNameAndValue(StringBuilder buf, String name, String value, in appendNameAndValue() argument
201 valueCode = valueCodes.get(value); in appendNameAndValue()
204 value = valueCode; in appendNameAndValue()
210 value = escapeValueString(value); in appendNameAndValue()
212 appendPairValue(buf, nameCode, value); in appendNameAndValue()
[all …]
DImpsConnectionConfig.java317 String value = mOthers.get(ImpsConfigNames.SMS_PORT); in getSmsPort() local
318 if (value == null) { in getSmsPort()
322 return Integer.parseInt(value); in getSmsPort()
333 String value = mOthers.get(ImpsConfigNames.SMS_CIR_PORT); in getSmsCirPort() local
334 if (value == null) { in getSmsCirPort()
338 return Integer.parseInt(value); in getSmsCirPort()
345 String value = mOthers.get(ImpsConfigNames.POLL_PRESENCE); in usePrensencePolling() local
346 return isTrue(value); in usePrensencePolling()
350 String value = mOthers.get(ImpsConfigNames.PRESENCE_POLLING_INTERVAL); in getPresencePollInterval() local
351 if (value == null) { in getPresencePollInterval()
[all …]
DImpsConstants.java27 public static ImpsVersion fromString(String value) { in fromString() argument
28 if ("1.1".equals(value)) { in fromString()
30 } else if ("1.2".equals(value)) { in fromString()
32 } else if ("1.3".equals(value)) { in fromString()
/packages/apps/Camera/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/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/Settings/src/com/android/settings/wifi/
DAdvancedSettings.java129 int value = Settings.System.getInt(getContentResolver(), in initSleepPolicyPreference() local
131 pref.setValue(String.valueOf(value)); in initSleepPolicyPreference()
173 boolean value = ((Boolean) newValue).booleanValue(); in onPreferenceChange()
177 Settings.System.WIFI_USE_STATIC_IP, value ? 1 : 0); in onPreferenceChange()
182 String value = (String) newValue; in onPreferenceChange() local
184 if (!isIpAddress(value)) { in onPreferenceChange()
189 preference.setSummary(value); in onPreferenceChange()
192 Settings.System.putString(getContentResolver(), mSettingNames[i], value); in onPreferenceChange() local
201 private boolean isIpAddress(String value) { in isIpAddress() argument
204 int end = value.indexOf('.'); in isIpAddress()
[all …]
/packages/apps/Email/src/com/android/email/
DPreferences.java132 public void setEnableDebugLogging(boolean value) { in setEnableDebugLogging() argument
133 mSharedPreferences.edit().putBoolean(ENABLE_DEBUG_LOGGING, value).commit(); in setEnableDebugLogging()
140 public void setEnableSensitiveLogging(boolean value) { in setEnableSensitiveLogging() argument
141 mSharedPreferences.edit().putBoolean(ENABLE_SENSITIVE_LOGGING, value).commit(); in setEnableSensitiveLogging()
148 public void setEnableExchangeLogging(boolean value) { in setEnableExchangeLogging() argument
149 mSharedPreferences.edit().putBoolean(ENABLE_EXCHANGE_LOGGING, value).commit(); in setEnableExchangeLogging()
156 public void setEnableExchangeFileLogging(boolean value) { in setEnableExchangeFileLogging() argument
157 mSharedPreferences.edit().putBoolean(ENABLE_EXCHANGE_FILE_LOGGING, value).commit(); in setEnableExchangeFileLogging()
/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/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/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 …]
/packages/apps/Email/src/com/android/email/mail/transport/
DRfc822Output.java248 private static void writeHeader(Writer writer, String name, String value) throws IOException { in writeHeader() argument
249 if (value != null && value.length() > 0) { in writeHeader()
252 writer.append(value); in writeHeader()
264 private static void writeEncodedHeader(Writer writer, String name, String value) in writeEncodedHeader() argument
266 if (value != null && value.length() > 0) { in writeEncodedHeader()
269 writer.append(MimeUtility.foldAndEncode2(value, name.length() + 2)); in writeEncodedHeader()
281 private static void writeAddressHeader(Writer writer, String name, String value) in writeAddressHeader() argument
283 if (value != null && value.length() > 0) { in writeAddressHeader()
286 writer.append(MimeUtility.fold(Address.packedToHeader(value), name.length() + 2)); in writeAddressHeader()
/packages/apps/Camera/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/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/org/apache/james/mime4j/
DBodyDescriptor.java74 public void addField(String name, String value) { in addField() argument
81 value = value.trim().toLowerCase(); in addField()
82 if (value.length() > 0) { in addField()
83 transferEncoding = value; in addField()
89 value = value.trim(); in addField()
95 for (int i = 0; i < value.length(); i++) { in addField()
96 char c = value.charAt(i); in addField()
/packages/apps/Phone/src/com/android/phone/
DCLIRListPreference.java67 int value = CommandsInterface.CLIR_DEFAULT; in handleGetCLIRResult() local
74 value = CommandsInterface.CLIR_INVOCATION; in handleGetCLIRResult()
77 value = CommandsInterface.CLIR_SUPPRESSION; in handleGetCLIRResult()
81 value = CommandsInterface.CLIR_DEFAULT; in handleGetCLIRResult()
88 value = CommandsInterface.CLIR_DEFAULT; in handleGetCLIRResult()
91 setValueIndex(value); in handleGetCLIRResult()
95 switch (value) { in handleGetCLIRResult()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DVCal.java69 public String value; field in VCal.Parameter
76 public String value; field in VCal.Property
175 param.value = line.substring(start, i-1); in parse()
185 param.value = line.substring(start, i-1); in parse()
197 prop.value = line.substring(i); in parse()
210 vc.dtstart = prop.value; in parse()
236 vc.duration = prop.value; in parse()
238 vc.rrule = prop.value; in parse()
247 String dt = prop.value; in parseDateTime()
252 vc.tzid = param.value; in parseDateTime()

123456