Searched refs:value (Results 101 - 125 of 405) sorted by relevance

1234567891011>>

/packages/apps/Dialer/src/com/android/dialer/
H A DProximitySensorManager.java102 // Make sure we have a valid value.
105 float value = event.values[0];
107 State state = getStateFromValue(value);
135 /** Returns the state of the sensor given its current value. */
136 private State getStateFromValue(float value) { argument
137 // Determine if the current value corresponds to the NEAR or FAR state.
138 // Take case of the case where the proximity sensor is binary: if the current value is
140 return (value > FAR_THRESHOLD || value == mMaxValue) ? State.FAR : State.NEAR;
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/
H A DSimpleIcsWriter.java62 * Write a tag with a value.
64 public void writeTag(String name, String value) { argument
65 // Belt and suspenders here; don't crash on null value; just return
66 if (TextUtils.isEmpty(value)) {
70 // The following properties take a TEXT value, which need to be escaped.
97 value = escapeTextValue(value);
99 writeLine(name + ":" + value);
122 * Quote a param-value string, according to RFC 5545, section 3.1
129 // The spec doesn't allow putting double-quotes in a param value, s
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DFingerprint.java116 int value = (toDigit(streamId, idx) << 4) | toDigit(streamId, idx + 1);
117 bytes[byteIdx++] = (byte) (value & 0xff);
182 int value = bytes[idx];
183 sb.append(Integer.toHexString((value >> 4) & 0x0f));
184 sb.append(Integer.toHexString(value& 0x0f));
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DFastScrollingIndexCache.java113 * {@code value} is null.
115 private static void appendIfNotNull(StringBuilder sb, Object value) { argument
116 if (value != null) {
117 sb.append(value.toString());
169 static Bundle buildExtraBundleFromValue(String value) { argument
171 if (TextUtils.isEmpty(value)) {
174 values = SEPARATOR_PATTERN.split(value);
193 Log.w(TAG, "Failed to parse cached value", e);
204 final String value = mCache.get(key);
205 if (value
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
H A DMimeBodyPart.java63 public void addHeader(String name, String value) throws MessagingException { argument
64 mHeader.addHeader(name, value);
67 public void setHeader(String name, String value) throws MessagingException { argument
68 mHeader.setHeader(name, value);
150 * @param value header value - flattened by removing CR-NL if any
151 * remove header if value is null
154 public void setExtendedHeader(String name, String value) throws MessagingException { argument
155 if (value == null) {
164 mExtendedHeader.setHeader(name, END_OF_LINE.matcher(value)
[all...]
/packages/apps/Email/src/com/android/email/activity/
H A DUiUtilities.java41 int value;
45 value = (int) size;
48 value = (int) (size / KB);
51 value = (int) (size / MB);
54 value = (int) (size / GB);
56 return res.getQuantityString(resId, value, value);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImageTinyPlanet.java64 int value = mTinyPlanetRep.getValue();
66 value = (int) (mScale);
67 value = Math.min(mTinyPlanetRep.getMaximum(), value);
68 value = Math.max(mTinyPlanetRep.getMinimum(), value);
69 mTinyPlanetRep.setValue(value);
/packages/apps/Phone/src/com/android/phone/
H A DCLIRListPreference.java69 // set the value of the preference based upon the clirArgs.
70 int value = CommandsInterface.CLIR_DEFAULT;
77 value = CommandsInterface.CLIR_INVOCATION;
80 value = CommandsInterface.CLIR_SUPPRESSION;
84 value = CommandsInterface.CLIR_DEFAULT;
91 value = CommandsInterface.CLIR_DEFAULT;
94 setValueIndex(value);
96 // set the string summary to reflect the value
98 switch (value) {
/packages/inputmethods/LatinIME/tools/maketext/src/com/android/inputmethod/latin/maketext/
H A DStringResourceMap.java125 String value = mValue.toString();
126 if (value.startsWith("\"") && value.endsWith("\"")) {
128 value = value.substring(1, value.length() - 1);
130 mResources.add(new StringResource(mName, value, comment));
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
H A DAudioTrackView.java248 double value = (smoothedGains[i] * scaleFactor - minGain) / range;
249 if (value < 0.0) {
250 value = 0.0;
253 if (value > 1.0) {
254 value = 1.0;
257 mNormalizedGains[i] = value * value * halfHeight;
306 short value;
319 value = (short)mNormalizedGains[index];
320 canvas.drawLine(i, ctr - value,
[all...]
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DPhoneticNameEditorView.java44 public void put(String key, String value) { argument
46 mPhoneticName = value;
47 parsePhoneticName(value);
49 mValues.put(key, value);
63 private void parsePhoneticName(String value) { argument
64 StructuredNameDataItem dataItem = PhoneticNameEditorView.parsePhoneticName(value, null);
182 public void onFieldChanged(String column, String value) { argument
183 if (!isFieldChanged(column, value)) {
193 // be called and incorrectly restore a null value for the hidden field, which ultimately
201 super.onFieldChanged(column, value);
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DSystemAllowGeolocationOrigins.java40 // Preference key for the value of the system setting last read by the browser
87 // Get the new value
90 // Get the last read value
96 // If the new value is the same as the last one we read, we're done.
101 // Save the new value as the last read value
111 // Remove the origins in the last read value
114 // Add the origins in the new value
120 * Parses the value of the default geolocation permissions setting.
158 String value
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/util/
H A DNameConverterTests.java83 * Checks that the given field and value are present in the structured name map (or not present
84 * if the given value is null). If the value is present and matches, the key is removed from
87 * @param value Expected value for the field (null if it is not expected to be populated).
90 private void checkNameComponent(String field, String value, argument
92 if (TextUtils.isEmpty(value)) {
95 assertEquals(value, structuredName.get(field));
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/format/
H A DFormatUtilsTests.java66 private void checkCopyToCharArrayBuffer(CharArrayBuffer buffer, String value, int length) { argument
67 FormatUtils.copyToCharArrayBuffer(value, buffer);
70 assertEquals(value.charAt(index), buffer.data[index]);
109 * @param expectedIndex the expected value to be returned by the function
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAlarmDatabaseHelper.java79 Object value = values.get(Alarm.Columns._ID);
80 if (value != null) {
81 int id = (Integer) value;
/packages/apps/Mms/src/com/android/mms/util/
H A DSimpleCache.java82 * cache (this value may be large if soft references are used because
110 public V put(K key, V value) { argument
112 unwrap(mSoftReferences.put(key, new SoftReference<V>(value)))
113 : mHardReferences.put(key, value);
/packages/apps/Contacts/src/com/android/contacts/socialwidget/
H A DSocialWidgetSettings.java104 final String value = legacySettings.getString(key, null);
105 if (value == null) continue; // Just in case.
107 Log.i(TAG, "Found: " + key + ": " + value);
109 editor.putString(PREFERENCES_PREFIX + key, value);
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
H A DValuesDelta.java46 * Next value to assign to {@link #mIdColumn} when building an insert
253 public void put(String key, String value) { argument
255 mAfter.put(key, value);
258 public void put(String key, byte[] value) { argument
260 mAfter.put(key, value);
263 public void put(String key, int value) { argument
265 mAfter.put(key, value);
268 public void put(String key, long value) { argument
270 mAfter.put(key, value);
393 // If they have value whe
469 setPhoto(byte[] value) argument
485 setPhoneticFamilyName(String value) argument
489 setPhoneticMiddleName(String value) argument
493 setPhoneticGivenName(String value) argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
H A DExternalAccountType.java312 String value = parser.getAttributeValue(i);
314 Log.d(TAG, attr + "=" + value);
317 mEditContactActivityClassName = value;
319 mCreateContactActivityClassName = value;
321 mInviteContactActivity = value;
323 mInviteActionLabelAttribute = value;
325 mViewContactNotifyService = value;
327 mViewGroupActivity = value;
329 mViewGroupLabelAttribute = value;
331 mViewStreamItemActivity = value;
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DFilterBasicRepresentation.java36 public FilterBasicRepresentation(String name, int minimum, int value, int maximum) { argument
40 setValue(value);
105 public void setValue(int value) { argument
106 mValue = value;
/packages/apps/Gallery2/tests/src/com/android/gallery3d/exif/
H A DExifXmlReader.java75 String value = "";
77 value = parser.getText();
89 if (NO_VALUE.equals(value)) {
92 tagData.add(value.trim());
/packages/apps/Settings/src/com/android/settings/wifi/
H A DWifiAPITest.java112 Editable value = input.getText();
113 netid = Integer.parseInt(value.toString());
132 Editable value = input.getText();
133 netid = Integer.parseInt(value.toString());
/packages/apps/Calendar/src/com/android/calendar/
H A DCalendarUtils.java107 String value = cursor.getString(valueColumn);
110 value, CalendarCache.TIMEZONE_TYPE_AUTO);
117 if (!TextUtils.isEmpty(value) && !TextUtils.equals(mHomeTZ, value)) {
119 mHomeTZ = value;
261 * will only be called if this query returns a value other than what is stored in
267 * @return The string value representing the time zone Calendar should display
319 * A helper method for writing a String value to the preferences
324 * @param value The value t
326 setSharedPreference(SharedPreferences prefs, String key, String value) argument
341 setSharedPreference(SharedPreferences prefs, String key, boolean value) argument
[all...]
/packages/apps/Email/src/org/apache/james/mime4j/
H A DBodyDescriptor.java69 * @param value the field value.
71 public void addField(String name, String value) { argument
78 value = value.trim().toLowerCase();
79 if (value.length() > 0) {
80 transferEncoding = value;
86 value = value.trim();
89 * Unfold Content-Type value
[all...]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
H A DMockProvider.java207 Object value = entry.getValue();
209 if (value instanceof Integer) {
210 targetValues.put(key, (Integer)value);
211 } else if (value instanceof Long) {
212 targetValues.put(key, (Long)value);
213 } else if (value instanceof String) {
214 targetValues.put(key, (String)value);
215 } else if (value instanceof Boolean) {
216 targetValues.put(key, (Boolean)value);

Completed in 7581 milliseconds

1234567891011>>