Home
last modified time | relevance | path

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

12345678910>>...13

/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.java275 String value = parser.getAttributeValue(0); in loadMmsSettings() local
282 Log.v(TAG, "tag: " + tag + " value: " + value + " - " + in loadMmsSettings()
288 if ("enabledMMS".equalsIgnoreCase(value)) { in loadMmsSettings()
290 } else if ("enabledTransID".equalsIgnoreCase(value)) { in loadMmsSettings()
292 } else if ("enabledNotifyWapMMSC".equalsIgnoreCase(value)) { in loadMmsSettings()
294 } else if ("aliasEnabled".equalsIgnoreCase(value)) { in loadMmsSettings()
296 } else if ("allowAttachAudio".equalsIgnoreCase(value)) { in loadMmsSettings()
298 } else if ("enableMultipartSMS".equalsIgnoreCase(value)) { in loadMmsSettings()
300 } else if ("enableSlideDuration".equalsIgnoreCase(value)) { in loadMmsSettings()
302 } 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/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/apps/Contacts/tests/src/com/android/contacts/util/
DStreamItemEntryBuilder.java40 public StreamItemEntryBuilder setText(String value) { in setText() argument
41 mText = value; in setText()
45 public StreamItemEntryBuilder setComment(String value) { in setComment() argument
46 mComment = value; in setComment()
50 public StreamItemEntryBuilder setAccountType(String value) { in setAccountType() argument
51 mAccountType = value; in setAccountType()
55 public StreamItemEntryBuilder setAccountName(String value) { in setAccountName() argument
56 mAccountName = value; in setAccountName()
60 public StreamItemEntryBuilder setDataSet(String value) { in setDataSet() argument
61 mDataSet = value; in setDataSet()
/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/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()
/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/Gallery2/src/com/android/gallery3d/ui/
DGalleryEGLConfigChooser.java66 int value[] = new int[1]; in chooseConfig() local
73 display, configs[i], EGL10.EGL_RED_SIZE, value)) { in chooseConfig()
75 if (value[0] == 8) continue; in chooseConfig()
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()
112 int value[] = new int[1]; in logConfig() local
115 egl.eglGetConfigAttrib(display, config, ATTR_ID[j], value); in logConfig()
[all …]
DDialogDetailsView.java123 String value; in setDetails() local
128 value = DetailsHelper.resolveAddress(mContext, latlng, this); in setDetails()
132 value = Formatter.formatFileSize( in setDetails()
137 value = "1".equals(detail.getValue()) in setDetails()
148 value = context.getString(R.string.flash_on); in setDetails()
150 value = context.getString(R.string.flash_off); in setDetails()
155 value = (String) detail.getValue(); in setDetails()
156 double time = Double.valueOf(value); in setDetails()
158 value = String.format("1/%d", (int) (0.5f + 1 / time)); in setDetails()
162 value = String.valueOf(integer) + "''"; in setDetails()
[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/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()
220 public LauncherViewPropertyAnimator translationX(float value) { in translationX() argument
222 mTranslationX = value; in translationX()
226 public LauncherViewPropertyAnimator translationY(float value) { in translationY() argument
228 mTranslationY = value; in translationY()
232 public LauncherViewPropertyAnimator scaleX(float value) { in scaleX() argument
234 mScaleX = value; in scaleX()
238 public LauncherViewPropertyAnimator scaleY(float value) { in scaleY() argument
240 mScaleY = value; in scaleY()
[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/ui/
DEffectSettingPopup.java87 String value = entryValues[i].toString(); in initialize() local
88 if (value.equals(mNoEffect)) continue; // no effect, skip it. in initialize()
90 map.put("value", value); in initialize()
93 if (value.startsWith("goofy_face")) { in initialize()
95 } else if (value.startsWith("backdropper")) { in initialize()
156 String value = mPreference.getValue(); in reloadPreference() local
157 if (value.equals(mNoEffect)) return; in reloadPreference()
160 if (value.equals(mSillyFacesItem.get(i).get("value"))) { in reloadPreference()
167 if (value.equals(mBackgroundItem.get(i).get("value"))) { in reloadPreference()
173 Log.e(TAG, "Invalid preference value: " + value); in reloadPreference()
[all …]
/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 …]
/packages/apps/Camera/src/com/android/camera/
DComboPreferences.java181 public Editor putString(String key, String value) { in putString() argument
183 mEditorGlobal.putString(key, value); in putString()
185 mEditorLocal.putString(key, value); in putString()
191 public Editor putInt(String key, int value) { in putInt() argument
193 mEditorGlobal.putInt(key, value); in putInt()
195 mEditorLocal.putInt(key, value); in putInt()
201 public Editor putLong(String key, long value) { in putLong() argument
203 mEditorGlobal.putLong(key, value); in putLong()
205 mEditorLocal.putLong(key, value); in putLong()
211 public Editor putFloat(String key, float value) { in putFloat() argument
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/
DMockSharedPreferences.java100 public Editor putBoolean(String key, boolean value) { in putBoolean() argument
101 mTempValues.put(key, Boolean.valueOf(value)); in putBoolean()
105 public Editor putFloat(String key, float value) { in putFloat() argument
106 mTempValues.put(key, value); in putFloat()
110 public Editor putInt(String key, int value) { in putInt() argument
111 mTempValues.put(key, value); in putInt()
115 public Editor putLong(String key, long value) { in putLong() argument
116 mTempValues.put(key, value); in putLong()
120 public Editor putString(String key, String value) { in putString() argument
121 mTempValues.put(key, value); in putString()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
DMockSharedPreferences.java100 public Editor putBoolean(String key, boolean value) { in putBoolean() argument
101 mTempValues.put(key, Boolean.valueOf(value)); in putBoolean()
105 public Editor putFloat(String key, float value) { in putFloat() argument
106 mTempValues.put(key, value); in putFloat()
110 public Editor putInt(String key, int value) { in putInt() argument
111 mTempValues.put(key, value); in putInt()
115 public Editor putLong(String key, long value) { in putLong() argument
116 mTempValues.put(key, value); in putLong()
120 public Editor putString(String key, String value) { in putString() argument
121 mTempValues.put(key, value); in putString()
/packages/apps/Email/tests/src/com/android/email/
DMockSharedPreferences.java102 public Editor putBoolean(String key, boolean value) { in putBoolean() argument
103 mTempValues.put(key, Boolean.valueOf(value)); in putBoolean()
107 public Editor putFloat(String key, float value) { in putFloat() argument
108 mTempValues.put(key, value); in putFloat()
112 public Editor putInt(String key, int value) { in putInt() argument
113 mTempValues.put(key, value); in putInt()
117 public Editor putLong(String key, long value) { in putLong() argument
118 mTempValues.put(key, value); in putLong()
122 public Editor putString(String key, String value) { in putString() argument
123 mTempValues.put(key, value); in putString()
/packages/apps/Email/src/com/android/email/
DPreferences.java117 public void setEnableDebugLogging(boolean value) { in setEnableDebugLogging() argument
118 mSharedPreferences.edit().putBoolean(ENABLE_DEBUG_LOGGING, value).apply(); in setEnableDebugLogging()
125 public void setEnableExchangeLogging(boolean value) { in setEnableExchangeLogging() argument
126 mSharedPreferences.edit().putBoolean(ENABLE_EXCHANGE_LOGGING, value).apply(); in setEnableExchangeLogging()
133 public void setEnableExchangeFileLogging(boolean value) { in setEnableExchangeFileLogging() argument
134 mSharedPreferences.edit().putBoolean(ENABLE_EXCHANGE_FILE_LOGGING, value).apply(); in setEnableExchangeFileLogging()
141 public void setInhibitGraphicsAcceleration(boolean value) { in setInhibitGraphicsAcceleration() argument
142 mSharedPreferences.edit().putBoolean(INHIBIT_GRAPHICS_ACCELERATION, value).apply(); in setInhibitGraphicsAcceleration()
149 public void setForceOneMinuteRefresh(boolean value) { in setForceOneMinuteRefresh() argument
150 mSharedPreferences.edit().putBoolean(FORCE_ONE_MINUTE_REFRESH, value).apply(); in setForceOneMinuteRefresh()
[all …]

12345678910>>...13