Searched defs:value (Results 401 - 425 of 922) sorted by relevance

<<11121314151617181920>>

/frameworks/base/core/java/android/os/
H A DTrace.java86 private static native void nativeTraceCounter(long tag, String name, int value); argument
97 // reads the value that the native code retrieved. It's essential that the native
150 * Writes trace message to indicate the value of a given counter.
154 * @param counterValue The counter value.
/frameworks/base/core/java/android/preference/
H A DListPreference.java33 * This preference will store a string into the SharedPreferences. This string will be the value
109 * The array to find the value to save for a preference when an entry from
137 * Sets the value of the key. This should be one of the entries in
140 * @param value The value to set for the key.
142 public void setValue(String value) { argument
144 final boolean changed = !TextUtils.equals(mValue, value);
146 mValue = value;
148 persistString(value);
159 * value wil
229 findIndexOfValue(String value) argument
325 String value; field in class:ListPreference.SavedState
[all...]
H A DMultiCheckPreference.java114 * The array to find the value to save for a preference when an entry from
154 * Get the boolean state of a given value.
161 * Set the boolean state of a given value.
185 * value will be substituted in its place.
203 * value will be substituted in its place when it's retrieved.
225 * Returns the index of the given value (in the entry values array).
227 * @param value The value whose index should be returned.
228 * @return The index of the value, or -1 if not found.
230 public int findIndexOfValue(String value) { argument
[all...]
H A DMultiSelectListPreference.java105 * The array to find the value to save for a preference when an entry from
133 * Sets the value of the key. This should contain entries in
146 * Retrieves the current value of the key.
153 * Returns the index of the given value (in the entry values array).
155 * @param value The value whose index should be returned.
156 * @return The index of the value, or -1 if not found.
158 public int findIndexOfValue(String value) { argument
159 if (value != null && mEntryValues != null) {
161 if (mEntryValues[i].equals(value)) {
[all...]
/frameworks/base/core/java/android/security/keymaster/
H A DKeymasterArguments.java65 * Adds an enum tag with the provided value.
69 public void addEnum(int tag, int value) { argument
74 addEnumTag(tag, value);
86 for (int value : values) {
87 addEnumTag(tag, value);
92 * Returns the value of the specified enum tag or {@code defaultValue} if the tag is not
126 private void addEnumTag(int tag, int value) { argument
127 mArguments.add(new KeymasterIntArgument(tag, value));
131 return ((KeymasterIntArgument) arg).value;
135 * Adds an unsigned 32-bit int tag with the provided value
140 addUnsignedInt(int tag, long value) argument
176 addUnsignedLong(int tag, BigInteger value) argument
202 addLongTag(int tag, BigInteger value) argument
250 addBytes(int tag, byte[] value) argument
283 addDate(int tag, Date value) argument
305 addDateIfNotNull(int tag, Date value) argument
374 toUint64(long value) argument
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DBlockingAudioTrack.java335 private static final long clip(long value, long min, long max) { argument
336 return value < min ? min : (value < max ? value : max);
339 private static final float clip(float value, float min, float max) { argument
340 return value < min ? min : (value < max ? value : max);
/frameworks/base/core/java/android/text/format/
H A DTimeFormatter.java38 // An arbitrary value outside the range representable by a char.
417 private void outputYear(int value, boolean outputTop, boolean outputBottom, int modifier) { argument
422 trail = value % DIVISOR;
423 lead = value / DIVISOR + trail / DIVISOR;
/frameworks/base/core/java/android/util/
H A DArrayMap.java26 * ArrayMap is a generic key->value mapping data structure that is
29 * codes for each item, and an Object array of the key/value pairs. This allows it to
79 * Special hash array value that indicates the container is immutable.
119 // Key not found -- return negative value indicating where a
157 // Key not found -- return negative value indicating where a
342 int indexOfValue(Object value) { argument
345 if (value == null) {
353 if (value.equals(array[i])) {
362 * Check whether a value exists in the array. This requires a linear search
365 * @param value Th
369 containsValue(Object value) argument
409 setValueAt(int index, V value) argument
433 put(K key, V value) argument
489 append(K key, V value) argument
[all...]
H A DArraySet.java108 // Key not found -- return negative value indicating where a
146 // Key not found -- return negative value indicating where a
292 * Check whether a value exists in the set.
294 * @param key The value to search for.
295 * @return Returns true if the value exists, else false.
303 * Returns the index of a value in the set.
305 * @param key The value to search for.
306 * @return Returns the index of the value if it exists, else a negative integer.
313 * Return the value at the given index in the array.
315 * @return Returns the value store
339 add(E value) argument
[all...]
H A DBase64.java237 private int value; field in class:Base64.Decoder
246 value = 0;
275 int value = this.value;
288 // (whitespace, etc.), value will end up negative. (All
291 // together will result in a value with its top bit set.)
297 (value = ((alphabet[input[p] & 0xff] << 18) |
301 output[op+2] = (byte) value;
302 output[op+1] = (byte) (value >> 8);
303 output[op] = (byte) (value >> 1
[all...]
H A DEventLog.java171 * @param value A value to log
174 public static native int writeEvent(int tag, int value); argument
179 * @param value A value to log
182 public static native int writeEvent(int tag, long value); argument
187 * @param value A value to log
190 public static native int writeEvent(int tag, float value); argument
195 * @param str A value t
[all...]
H A DMathUtils.java135 public static float acos(float value) { argument
136 return (float) Math.acos(value);
139 public static float asin(float value) { argument
140 return (float) Math.asin(value);
143 public static float atan(float value) { argument
144 return (float) Math.atan(value);
159 public static float norm(float start, float stop, float value) { argument
160 return (value - start) / (stop - start);
163 public static float map(float minStart, float minStop, float maxStart, float maxStop, float value) { argument
164 return maxStart + (maxStart - maxStop) * ((value
[all...]
/frameworks/base/core/java/android/widget/
H A DSimpleAdapter.java43 * is invoked. If the returned value is true, binding has occurred.
44 * If the returned value is false, the following views are then tried in order:
46 * <li> A view that implements Checkable (e.g. CheckBox). The expected bind value is a boolean.
47 * <li> TextView. The expected bind value is a string and {@link #setViewText(TextView, String)}
49 * <li> ImageView. The expected bind value is a resource id or a string and
271 * @param value the value retrieved from the data set
275 public void setViewImage(ImageView v, int value) { argument
276 v.setImageResource(value);
284 * By default, the value wil
296 setViewImage(ImageView v, String value) argument
[all...]
H A DSimpleCursorTreeAdapter.java33 * is invoked. If the returned value is true, binding has occurred. If the
34 * returned value is false and the view to bind is a TextView,
35 * {@link #setViewText(TextView, String)} is invoked. If the returned value
269 * value will be treated as a Uri. Intended to be overridden by Adapters
273 * @param value the value retrieved from the cursor
275 protected void setViewImage(ImageView v, String value) { argument
277 v.setImageResource(Integer.parseInt(value));
279 v.setImageURI(Uri.parse(value));
/frameworks/base/core/java/com/android/internal/os/
H A DBatterySipper.java90 public BatterySipper(DrainType drainType, Uid uid, double value) { argument
91 this.totalPowerMah = value;
112 // Return the flipped value because we want the items in descending order
166 * Sum all the powers and store the value into `value`.
/frameworks/base/core/java/com/android/internal/transition/
H A DEpicenterTranslateClipReveal.java308 public void set(View object, State value) { argument
312 tempRect.left = value.lower - (int) value.trans;
313 tempRect.right = value.upper - (int) value.trans;
315 tempRect.top = value.lower - (int) value.trans;
316 tempRect.bottom = value.upper - (int) value.trans;
322 object.setTranslationX(value
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DArrayUtils.java147 * Checks that value is present as at least one of the elements of the array.
149 * @param value the value to check for
150 * @return true if the value is present in the array
152 public static <T> boolean contains(T[] array, T value) { argument
153 return indexOf(array, value) != -1;
157 * Return first index of {@code value} in {@code array}, or {@code -1} if
160 public static <T> int indexOf(T[] array, T value) { argument
163 if (Objects.equals(array[i], value)) return i;
181 public static boolean contains(int[] array, int value) { argument
191 contains(long[] array, long value) argument
[all...]
H A DFastXmlSerializer.java166 public XmlSerializer attribute(String namespace, String name, String value) throws IOException, argument
176 escapeAndAppendString(value);
340 public void setProperty(String name, Object value) throws IllegalArgumentException, argument
H A DTypedProperties.java202 // Read a value of the appropriate type, and insert into the map.
203 final Object value = parseValue(st, type);
208 if (value.getClass() != oldValue.getClass()) {
213 map.put(propertyName, value);
229 * @return a Boolean, Number subclass, or String representing the value.
257 long value;
259 value = Long.decode(st.sval);
264 // Ensure that the type can hold this value, and return.
268 if (value < Byte.MIN_VALUE || value > Byt
419 TypeException(String property, Object value, String requestedType) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DDrawableHolder.java61 * Adds an animation that interpolates given property from its current value
62 * to the given value.
67 * @param toValue the target value
158 public void setX(float value) { argument
159 mX = value;
162 public void setY(float value) { argument
163 mY = value;
166 public void setScaleX(float value) { argument
167 mScaleX = value;
170 public void setScaleY(float value) { argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_database_CursorWindow.cpp184 const void* value = window->getFieldSlotValueBlob(fieldSlot, &size); local
191 env->SetByteArrayRegion(byteArray, 0, size, static_cast<const jbyte*>(value));
219 const char* value = window->getFieldSlotValueString(fieldSlot, &sizeIncludingNull); local
226 String16 utf16(value, sizeIncludingNull - 1);
229 int64_t value = window->getFieldSlotValueLong(fieldSlot); local
231 snprintf(buf, sizeof(buf), "%" PRId64, value);
234 double value = window->getFieldSlotValueDouble(fieldSlot); local
236 snprintf(buf, sizeof(buf), "%g", value);
311 const char* value = window->getFieldSlotValueString(fieldSlot, &sizeIncludingNull); local
313 fillCharArrayBufferUTF(env, bufferObj, value, sizeIncludingNul
318 int64_t value = window->getFieldSlotValueLong(fieldSlot); local
323 double value = window->getFieldSlotValueDouble(fieldSlot); local
352 const char* value = window->getFieldSlotValueString(fieldSlot, &sizeIncludingNull); local
383 const char* value = window->getFieldSlotValueString(fieldSlot, &sizeIncludingNull); local
403 void* value = env->GetPrimitiveArrayCritical(valueObj, NULL); local
438 nativePutLong(JNIEnv* env, jclass clazz, jlong windowPtr, jlong value, jint row, jint column) argument
452 nativePutDouble(JNIEnv* env, jclass clazz, jlong windowPtr, jdouble value, jint row, jint column) argument
[all...]
H A Dandroid_hardware_UsbDeviceConnection.cpp169 jint requestType, jint request, jint value, jint index,
184 value, index, bufferBytes + start, length, timeout);
168 android_hardware_UsbDeviceConnection_control_request(JNIEnv *env, jobject thiz, jint requestType, jint request, jint value, jint index, jbyteArray buffer, jint start, jint length, jint timeout) argument
H A Dandroid_util_EventLog.cpp50 * static native int writeEvent(int tag, int value)
54 jint tag, jint value)
56 return android_btWriteLog(tag, EVENT_TYPE_INT, &value, sizeof(value));
61 * static native int writeEvent(long tag, long value)
65 jint tag, jlong value)
67 return android_btWriteLog(tag, EVENT_TYPE_LONG, &value, sizeof(value));
72 * static native int writeEvent(long tag, float value)
76 jint tag, jfloat value)
52 android_util_EventLog_writeEvent_Integer(JNIEnv* env UNUSED, jobject clazz UNUSED, jint tag, jint value) argument
63 android_util_EventLog_writeEvent_Long(JNIEnv* env UNUSED, jobject clazz UNUSED, jint tag, jlong value) argument
74 android_util_EventLog_writeEvent_Float(JNIEnv* env UNUSED, jobject clazz UNUSED, jint tag, jfloat value) argument
85 android_util_EventLog_writeEvent_String(JNIEnv* env, jobject clazz UNUSED, jint tag, jstring value) argument
110 android_util_EventLog_writeEvent_Array(JNIEnv* env, jobject clazz, jint tag, jobjectArray value) argument
[all...]
H A Dandroid_util_XmlBlock.cpp328 Res_value value; local
329 if (st->getAttributeValue(idx, &value) < 0) {
333 return value.dataType == value.TYPE_REFERENCE
334 || value.dataType == value.TYPE_ATTRIBUTE
335 ? value.data : 0;
/frameworks/base/core/tests/coretests/src/android/os/
H A DPerformanceCollectorTest.java513 public void writeMeasurement(String label, long value) { argument
514 timingResults.putLong(label, value);
517 public void writeMeasurement(String label, float value) { argument
518 timingResults.putFloat(label, value);
521 public void writeMeasurement(String label, String value) { argument
522 timingResults.putString(label, value);

Completed in 4930 milliseconds

<<11121314151617181920>>