Home
last modified time | relevance | path

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

12345678910>>...17

/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/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifTag.java236 public boolean setValue(int[] value) { in setValue() argument
237 if (checkBadComponentCount(value.length)) { in setValue()
244 if (mDataType == TYPE_UNSIGNED_SHORT && checkOverflowForUnsignedShort(value)) { in setValue()
246 } else if (mDataType == TYPE_UNSIGNED_LONG && checkOverflowForUnsignedLong(value)) { in setValue()
250 long[] data = new long[value.length]; in setValue()
251 for (int i = 0; i < value.length; i++) { in setValue()
252 data[i] = value[i]; in setValue()
255 mComponentCountActual = value.length; in setValue()
270 public boolean setValue(int value) { in setValue() argument
272 value in setValue()
[all …]
DExifParser.java691 long value[] = new long[tag.getComponentCount()]; in readFullTagValue() local
692 for (int i = 0, n = value.length; i < n; i++) { in readFullTagValue()
693 value[i] = readUnsignedLong(); in readFullTagValue()
695 tag.setValue(value); in readFullTagValue()
699 Rational value[] = new Rational[tag.getComponentCount()]; in readFullTagValue() local
700 for (int i = 0, n = value.length; i < n; i++) { in readFullTagValue()
701 value[i] = readUnsignedRational(); in readFullTagValue()
703 tag.setValue(value); in readFullTagValue()
707 int value[] = new int[tag.getComponentCount()]; in readFullTagValue() local
708 for (int i = 0, n = value.length; i < n; i++) { in readFullTagValue()
[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/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
DLogStatement.java184 jsonWriter.name(CURRENT_TIME_KEY).value(System.currentTimeMillis()); in outputToLocked()
185 jsonWriter.name(UPTIME_KEY).value(time); in outputToLocked()
186 jsonWriter.name(EVENT_TYPE_KEY).value(mType); in outputToLocked()
190 final Object value = values[i]; in outputToLocked() local
191 if (value instanceof CharSequence) { in outputToLocked()
192 jsonWriter.value(value.toString()); in outputToLocked()
193 } else if (value instanceof Number) { in outputToLocked()
194 jsonWriter.value((Number) value); in outputToLocked()
195 } else if (value instanceof Boolean) { in outputToLocked()
196 jsonWriter.value((Boolean) value); in outputToLocked()
[all …]
DJsonUtils.java43 jsonWriter.value(ci[j].toString()); in writeJson()
57 jsonWriter.value((Boolean) innerValue); in writeJson()
59 jsonWriter.value((Number) innerValue); in writeJson()
61 jsonWriter.value(innerValue.toString()); in writeJson()
78 jsonWriter.name("code").value(key.mCode); in writeJson()
79 jsonWriter.name("altCode").value(key.getAltCode()); in writeJson()
80 jsonWriter.name("x").value(key.mX); in writeJson()
81 jsonWriter.name("y").value(key.mY); in writeJson()
82 jsonWriter.name("w").value(key.mWidth); in writeJson()
83 jsonWriter.name("h").value(key.mHeight); in writeJson()
[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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java690 private void assertNullOrEquals(Cursor c, Long value, String columnName) { in assertNullOrEquals() argument
691 if (value != NO_LONG) { in assertNullOrEquals()
692 if (value == null) assertTrue(c.isNull(c.getColumnIndexOrThrow(columnName))); in assertNullOrEquals()
693 else assertEquals((long) value, c.getLong(c.getColumnIndexOrThrow(columnName))); in assertNullOrEquals()
697 private void assertNullOrEquals(Cursor c, String value, String columnName) { in assertNullOrEquals() argument
698 if (value != NO_STRING) { in assertNullOrEquals()
699 if (value == null) assertTrue(c.isNull(c.getColumnIndexOrThrow(columnName))); in assertNullOrEquals()
700 else assertEquals(value, c.getString(c.getColumnIndexOrThrow(columnName))); in assertNullOrEquals()
785 protected void storeValue(Uri contentUri, long id, String column, String value) { in storeValue() argument
786 storeValue(ContentUris.withAppendedId(contentUri, id), column, value); in storeValue() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DDialogDetailsView.java134 String value; in setDetails() local
139 value = DetailsHelper.resolveAddress(mActivity, latlng, this); in setDetails()
143 value = Formatter.formatFileSize( in setDetails()
148 value = "1".equals(detail.getValue()) in setDetails()
159 value = context.getString(R.string.flash_on); in setDetails()
161 value = context.getString(R.string.flash_off); in setDetails()
166 value = (String) detail.getValue(); in setDetails()
167 double time = Double.valueOf(value); in setDetails()
169 value = String.format("1/%d", (int) (0.5f + 1 / time)); in setDetails()
173 value = String.valueOf(integer) + "''"; in setDetails()
[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/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 …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DResourceUtils.java60 final String value = BUILD_KEYS_AND_VALUES[index + 1];
61 sBuildKeyValues.put(key, value); in sBuildKeyValues.put() argument
62 keyValuePairs.add(key + '=' + value);
154 final String value = keyValuePairs.get(key); in fulfillsCondition() local
155 if (value == null) { in fulfillsCondition()
159 if (!value.matches(patternRegexpValue)) { in fulfillsCondition()
198 final TypedValue value = a.peekValue(index); in getFraction() local
199 if (value == null || !isFractionValue(value)) { in getFraction()
210 final TypedValue value = a.peekValue(index); in getDimensionPixelSize() local
211 if (value == null || !isDimensionValue(value)) { in getDimensionPixelSize()
[all …]
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java358 final int audioSession, final Key key, final boolean value) { in setParameterBoolean() argument
363 boolean enabled = value; in setParameterBoolean()
368 if (value == true) { in setParameterBoolean()
465 virtualizerEffect.setEnabled(value); in setParameterBoolean()
474 bassBoostEffect.setEnabled(value); in setParameterBoolean()
483 equalizerEffect.setEnabled(value); in setParameterBoolean()
514 Log.e(TAG, "setParameterBoolean: " + key + "; " + value + "; " + e); in setParameterBoolean()
532 boolean value = false; in getParameterBoolean()
535 value = prefs.getBoolean(key.toString(), value); in getParameterBoolean()
537 Log.e(TAG, "getParameterBoolean: " + key + "; " + value + "; " + e); in getParameterBoolean()
[all …]
/packages/apps/Gallery2/src/com/android/camera/
DOnScreenIndicators.java80 public void updateExposureOnScreenIndicator(Camera.Parameters params, int value) { in updateExposureOnScreenIndicator() argument
85 value = Math.round(value * step); in updateExposureOnScreenIndicator()
86 updateExposureOnScreenIndicator(value); in updateExposureOnScreenIndicator()
95 public void updateExposureOnScreenIndicator(int value) { in updateExposureOnScreenIndicator() argument
97 switch(value) { in updateExposureOnScreenIndicator()
146 public void updateFlashOnScreenIndicator(String value) { in updateFlashOnScreenIndicator() argument
150 if (value == null || Parameters.FLASH_MODE_OFF.equals(value)) { in updateFlashOnScreenIndicator()
153 if (Parameters.FLASH_MODE_AUTO.equals(value)) { in updateFlashOnScreenIndicator()
155 } else if (Parameters.FLASH_MODE_ON.equals(value) in updateFlashOnScreenIndicator()
156 || Parameters.FLASH_MODE_TORCH.equals(value)) { in updateFlashOnScreenIndicator()
[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/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 …]
/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/Gallery2/tests/exiftool_parser/
Dparser.py75 value = re.search("\(SubDirectory\) -->", s) variable
76 if value:
77 value = "NO_VALUE" variable
79 value = re.search("\(.*\)\n", s) variable
80 if (name != 'Model' and value):
81 value = value.group(0)[1:-2] variable
83 value = re.search("=.*\n", s) variable
84 value = value.group(0)[2:-1] variable
85 if "[snip]" in value:
86 value = "NO_VALUE" variable
[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/ui/
DEffectSettingPopup.java90 String value = entryValues[i].toString(); in initialize() local
91 if (value.equals(mNoEffect)) continue; // no effect, skip it. in initialize()
93 map.put("value", value); in initialize()
96 if (value.startsWith("goofy_face")) { in initialize()
98 } else if (value.startsWith("backdropper")) { in initialize()
160 String value = mPreference.getValue(); in reloadPreference() local
161 if (value.equals(mNoEffect)) return; in reloadPreference()
164 if (value.equals(mSillyFacesItem.get(i).get("value"))) { in reloadPreference()
171 if (value.equals(mBackgroundItem.get(i).get("value"))) { in reloadPreference()
177 Log.e(TAG, "Invalid preference value: " + value); in reloadPreference()
[all …]
/packages/apps/Gallery2/src/com/android/camera/ui/
DEffectSettingPopup.java90 String value = entryValues[i].toString(); in initialize() local
91 if (value.equals(mNoEffect)) continue; // no effect, skip it. in initialize()
93 map.put("value", value); in initialize()
96 if (value.startsWith("goofy_face")) { in initialize()
98 } else if (value.startsWith("backdropper")) { in initialize()
160 String value = mPreference.getValue(); in reloadPreference() local
161 if (value.equals(mNoEffect)) return; in reloadPreference()
164 if (value.equals(mSillyFacesItem.get(i).get("value"))) { in reloadPreference()
171 if (value.equals(mBackgroundItem.get(i).get("value"))) { in reloadPreference()
177 Log.e(TAG, "Invalid preference value: " + value); in reloadPreference()
[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/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/Exchange/exchange2/src/com/android/exchange/adapter/
DContactsSyncAdapter.java240 public boolean isSameAs(int type, String value); in isSameAs() argument
373 public boolean isSameAs(int type, String value) { in isSameAs() argument
374 return email.equalsIgnoreCase(value); in isSameAs()
391 public boolean isSameAs(int type, String value) { in isSameAs() argument
392 return im.equalsIgnoreCase(value); in isSameAs()
412 public boolean isSameAs(int _type, String value) { in isSameAs() argument
413 return type == _type && phone.equalsIgnoreCase(value); in isSameAs()
1010 RowBuilder withValue(String key, Object value) { in withValue() argument
1011 builder.withValue(key, value); in withValue()
1370 public void addRelation(Entity entity, int type, String value) { in addRelation() argument
[all …]

12345678910>>...17