Home
last modified time | relevance | path

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

12345678910>>...15

/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/Nfc/nci/jni/
DRouteDataSet.cpp197 xmlChar* value = xmlGetProp (node1, (const xmlChar*) "Type"); in import() local
198 if (value && (xmlStrcmp (value, (const xmlChar*) "SecElemSelectedRoutes") == 0)) in import()
211 else if (value && (xmlStrcmp (value, (const xmlChar*) "DefaultRoutes") == 0)) in import()
224 if (value) in import()
225 xmlFree (value); in import()
341 xmlChar* value = NULL; in importProtocolRoute() local
344 value = xmlGetProp (element, id); in importProtocolRoute()
345 if (value) in importProtocolRoute()
347 if (xmlStrcmp (value, (const xmlChar*) "T1T") == 0) in importProtocolRoute()
349 else if (xmlStrcmp (value, (const xmlChar*) "T2T") == 0) in importProtocolRoute()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
DResearchLog.java227 mJsonWriter.name(CURRENT_TIME_KEY).value(System.currentTimeMillis()); in outputEvent()
228 mJsonWriter.name(UPTIME_KEY).value(SystemClock.uptimeMillis()); in outputEvent()
229 mJsonWriter.name(EVENT_TYPE_KEY).value(keys[0]); in outputEvent()
233 Object value = values[i]; in outputEvent() local
234 if (value instanceof CharSequence) { in outputEvent()
235 mJsonWriter.value(value.toString()); in outputEvent()
236 } else if (value instanceof Number) { in outputEvent()
237 mJsonWriter.value((Number) value); in outputEvent()
238 } else if (value instanceof Boolean) { in outputEvent()
239 mJsonWriter.value((Boolean) value); in outputEvent()
[all …]
/packages/apps/Mms/src/com/android/mms/
DMmsConfig.java295 String value = parser.getAttributeValue(0); in loadMmsSettings() local
302 Log.v(TAG, "tag: " + tag + " value: " + value + " - " + in loadMmsSettings()
308 if ("enabledMMS".equalsIgnoreCase(value)) { in loadMmsSettings()
310 } else if ("enabledTransID".equalsIgnoreCase(value)) { in loadMmsSettings()
312 } else if ("enabledNotifyWapMMSC".equalsIgnoreCase(value)) { in loadMmsSettings()
314 } else if ("aliasEnabled".equalsIgnoreCase(value)) { in loadMmsSettings()
316 } else if ("allowAttachAudio".equalsIgnoreCase(value)) { in loadMmsSettings()
318 } else if ("enableMultipartSMS".equalsIgnoreCase(value)) { in loadMmsSettings()
320 } else if ("enableSlideDuration".equalsIgnoreCase(value)) { in loadMmsSettings()
322 } else if ("enableMMSReadReports".equalsIgnoreCase(value)) { in loadMmsSettings()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DConsumers.java29 A value) { in consumeCloseable() argument
32 accepted = consumer.consume(value); in consumeCloseable()
34 if (!accepted && value != null) value.close(); in consumeCloseable()
39 final Consumer<A> consumer, final A value) { in consumeAsync() argument
41 consumer.consume(value); in consumeAsync()
45 consumer.consume(value); in consumeAsync()
52 final Consumer<A> consumer, final A value) { in consumeCloseableAsync() argument
54 consumeCloseable(consumer, value); in consumeCloseableAsync()
58 consumeCloseable(consumer, value); in consumeCloseableAsync()
67 public boolean consume(A value) { in createAsyncConsumer()
[all …]
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DSuggestionCursorWithExtrasTest.java52 private void checkExtraRowString(String value) { in checkExtraRowString() argument
54 Cursor c = createCursorWithExtras(column, value); in checkExtraRowString()
55 assertEquals("Extra column value", value, c.getString(c.getColumnIndex(column))); in checkExtraRowString()
66 public void checkCursorExtraInt(int value) { in checkCursorExtraInt() argument
68 Cursor c = createCursorWithExtras(column, value); in checkCursorExtraInt()
69 assertEquals("Extra column value", value, c.getInt(c.getColumnIndex(column))); in checkCursorExtraInt()
80 public void checkCursorExtraRowDouble(double value) { in checkCursorExtraRowDouble() argument
82 Cursor c = createCursorWithExtras(column, value); in checkCursorExtraRowDouble()
83 assertEquals("Extra column value", value, c.getDouble(c.getColumnIndex(column))); in checkCursorExtraRowDouble()
94 public void checkCursorExtraRowFloat(float value) { in checkCursorExtraRowFloat() argument
[all …]
DIconLoaderTest.java46 public void assertNull(NowOrLater<?> value) { in assertNull() argument
47 if (value.haveNow()) { in assertNull()
48 assertNull(value.getNow()); in assertNull()
51 value.getLater(consumer); in assertNull()
56 public void assertNotNull(NowOrLater<?> value) { in assertNotNull() argument
57 if (value.haveNow()) { in assertNotNull()
58 assertNotNull(value.getNow()); in assertNotNull()
61 value.getLater(consumer); in assertNotNull()
69 public boolean consume(Object value) { in consume() argument
72 mValue = value; in consume()
/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/providers/ContactsProvider/src/com/android/providers/contacts/util/
DDbQueryUtils.java33 public static String getEqualityClause(String field, String value) { in getEqualityClause() argument
34 return getClauseWithOperator(field, "=", value); in getEqualityClause()
38 public static String getEqualityClause(String field, long value) { in getEqualityClause() argument
39 return getClauseWithOperator(field, "=", value); in getEqualityClause()
43 public static String getInequalityClause(String field, long value) { in getInequalityClause() argument
44 return getClauseWithOperator(field, "!=", value); in getInequalityClause()
47 private static String getClauseWithOperator(String field, String operator, String value) { in getClauseWithOperator() argument
52 DatabaseUtils.appendEscapedSQLString(clause, value); in getClauseWithOperator()
57 private static String getClauseWithOperator(String field, String operator, long value) { in getClauseWithOperator() argument
62 clause.append(value); in getClauseWithOperator()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/util/
DStreamItemEntryBuilder.java38 public StreamItemEntryBuilder setText(String value) { in setText() argument
39 mText = value; in setText()
43 public StreamItemEntryBuilder setComment(String value) { in setComment() argument
44 mComment = value; in setComment()
48 public StreamItemEntryBuilder setAccountType(String value) { in setAccountType() argument
49 mAccountType = value; in setAccountType()
53 public StreamItemEntryBuilder setAccountName(String value) { in setAccountName() argument
54 mAccountName = value; in setAccountName()
58 public StreamItemEntryBuilder setDataSet(String value) { in setDataSet() argument
59 mDataSet = value; in setDataSet()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DResultActivity.java68 Object value = extras.get(key); in addRowsForIntent() local
70 addRowForValue("", value); in addRowsForIntent()
83 private void addRowForValue(String label, Object value) { in addRowForValue() argument
84 if (value == null) { in addRowForValue()
86 } else if (value instanceof Bitmap) { in addRowForValue()
87 addRowWithBitmap(label, (Bitmap)value); in addRowForValue()
88 } else if (value instanceof Intent) { in addRowForValue()
90 addRowsForIntent((Intent)value); in addRowForValue()
91 } else if (value instanceof Uri) { in addRowForValue()
93 addRowsForQuery((Uri)value); in addRowForValue()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DResourceUtils.java69 final TypedValue value = a.peekValue(index); in getFraction() local
70 if (value == null || !isFractionValue(value)) { in getFraction()
81 final TypedValue value = a.peekValue(index); in getDimensionPixelSize() local
82 if (value == null || !isDimensionValue(value)) { in getDimensionPixelSize()
90 final TypedValue value = a.peekValue(index); in getDimensionOrFraction() local
91 if (value == null) { in getDimensionOrFraction()
94 if (isFractionValue(value)) { in getDimensionOrFraction()
96 } else if (isDimensionValue(value)) { in getDimensionOrFraction()
103 final TypedValue value = a.peekValue(index); in getEnumValue() local
104 if (value == null) { in getEnumValue()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
DSliderController.java78 int value = mOriginalValue + delta; in computeValue() local
79 if (value < -100) { in computeValue()
80 value = -100; in computeValue()
81 } else if (value > 100) { in computeValue()
82 value = 100; in computeValue()
84 setValue(value); in computeValue()
85 mToast = "" + value; in computeValue()
86 return value; in computeValue()
89 public void setValue(int value) { in setValue() argument
90 mValue = value; in setValue()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/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/Settings/src/com/android/settings/
DApplicationSettings.java71 String value = (String) newValue; in onCreate()
72 handleUpdateAppInstallLocation(value); in onCreate()
79 protected void handleUpdateAppInstallLocation(final String value) { in handleUpdateAppInstallLocation() argument
80 if(APP_INSTALL_DEVICE_ID.equals(value)) { in handleUpdateAppInstallLocation()
83 } else if (APP_INSTALL_SDCARD_ID.equals(value)) { in handleUpdateAppInstallLocation()
86 } else if (APP_INSTALL_AUTO_ID.equals(value)) { in handleUpdateAppInstallLocation()
94 mInstallLocation.setValue(value); in handleUpdateAppInstallLocation()
100 boolean value = mToggleAdvancedSettings.isChecked(); in onPreferenceTreeClick()
101 setAdvancedSettingsEnabled(value); in onPreferenceTreeClick()
114 int value = enabled ? 1 : 0; in setAdvancedSettingsEnabled() local
[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/Gallery2/src/com/android/gallery3d/ui/
DGalleryEGLConfigChooser.java79 int value[] = new int[1]; in chooseConfig() local
87 display, configs[i], EGL10.EGL_RED_SIZE, value)) { in chooseConfig()
89 if (value[0] == 8) continue; in chooseConfig()
93 display, configs[i], EGL10.EGL_STENCIL_SIZE, value)) { in chooseConfig()
94 if (value[0] == 0) continue; in chooseConfig()
95 if (value[0] < minStencil) { in chooseConfig()
96 minStencil = value[0]; in chooseConfig()
106 display, result, EGL10.EGL_STENCIL_SIZE, value); in chooseConfig()
127 int value[] = new int[1]; in logConfig() local
130 egl.eglGetConfigAttrib(display, config, ATTR_ID[j], value); in logConfig()
[all …]
DDialogDetailsView.java127 String value; in setDetails() local
132 value = DetailsHelper.resolveAddress(mActivity, latlng, this); in setDetails()
136 value = Formatter.formatFileSize( in setDetails()
141 value = "1".equals(detail.getValue()) in setDetails()
152 value = context.getString(R.string.flash_on); in setDetails()
154 value = context.getString(R.string.flash_off); in setDetails()
159 value = (String) detail.getValue(); in setDetails()
160 double time = Double.valueOf(value); in setDetails()
162 value = String.format("1/%d", (int) (0.5f + 1 / time)); in setDetails()
166 value = String.valueOf(integer) + "''"; in setDetails()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
DTweener.java70 Object value = vars[i+1]; in to() local
75 interpolator = (TimeInterpolator) value; // TODO: multiple interpolators? in to()
77 updateListener = (AnimatorUpdateListener) value; in to()
79 listener = (AnimatorListener) value; in to()
81 delay = ((Number) value).longValue(); in to()
84 } else if (value instanceof float[]) { in to()
86 ((float[])value)[0], ((float[])value)[1])); in to()
87 } else if (value instanceof int[]) { in to()
89 ((int[])value)[0], ((int[])value)[1])); in to()
90 } else if (value instanceof Number) { in to()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DComboPreferences.java168 public Editor putString(String key, String value) { in putString() argument
170 mEditorGlobal.putString(key, value); in putString()
172 mEditorLocal.putString(key, value); in putString()
177 public Editor putInt(String key, int value) { in putInt() argument
179 mEditorGlobal.putInt(key, value); in putInt()
181 mEditorLocal.putInt(key, value); in putInt()
186 public Editor putLong(String key, long value) { in putLong() argument
188 mEditorGlobal.putLong(key, value); in putLong()
190 mEditorLocal.putLong(key, value); in putLong()
195 public Editor putFloat(String key, float value) { in putFloat() argument
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherViewPropertyAnimator.java161 public void setInterpolator(TimeInterpolator value) { in setInterpolator() argument
163 mInterpolator = value; in setInterpolator()
221 public LauncherViewPropertyAnimator translationX(float value) { in translationX() argument
223 mTranslationX = value; in translationX()
227 public LauncherViewPropertyAnimator translationY(float value) { in translationY() argument
229 mTranslationY = value; in translationY()
233 public LauncherViewPropertyAnimator scaleX(float value) { in scaleX() argument
235 mScaleX = value; in scaleX()
239 public LauncherViewPropertyAnimator scaleY(float value) { in scaleY() argument
241 mScaleY = value; in scaleY()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageSmallFilter.java50 public static void setMargin(int value) { in setMargin() argument
51 mMargin = value; in setMargin()
54 public static void setTextMargin(int value) { in setTextMargin() argument
55 mTextMargin = value; in setTextMargin()
58 public static void setDefaultBackgroundColor(int value) { in setDefaultBackgroundColor() argument
59 mBackgroundColor = value; in setDefaultBackgroundColor()
81 public void setSelected(boolean value) { in setSelected() argument
82 if (mIsSelected != value) { in setSelected()
85 mIsSelected = value; in setSelected()
88 public void setBorder(boolean value) { in setBorder() argument
[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/LegacyCamera/src/com/android/camera/ui/
DEffectSettingPopup.java88 String value = entryValues[i].toString(); in initialize() local
89 if (value.equals(mNoEffect)) continue; // no effect, skip it. in initialize()
91 map.put("value", value); in initialize()
94 if (value.startsWith("goofy_face")) { in initialize()
96 } else if (value.startsWith("backdropper")) { in initialize()
157 String value = mPreference.getValue(); in reloadPreference() local
158 if (value.equals(mNoEffect)) return; in reloadPreference()
161 if (value.equals(mSillyFacesItem.get(i).get("value"))) { in reloadPreference()
168 if (value.equals(mBackgroundItem.get(i).get("value"))) { in reloadPreference()
174 Log.e(TAG, "Invalid preference value: " + value); in reloadPreference()
[all …]

12345678910>>...15