Searched refs:value (Results 476 - 500 of 1696) sorted by relevance

<<11121314151617181920>>

/frameworks/base/core/java/android/database/
H A DDatabaseUtils.java194 * @param value the value to bind
197 Object value) {
198 if (value == null) {
200 } else if (value instanceof Double || value instanceof Float) {
201 prog.bindDouble(index, ((Number)value).doubleValue());
202 } else if (value instanceof Number) {
203 prog.bindLong(index, ((Number)value).longValue());
204 } else if (value instanceo
196 bindObjectToProgram(SQLiteProgram prog, int index, Object value) argument
357 sqlEscapeString(String value) argument
368 appendValueToSql(StringBuilder sql, Object value) argument
1166 bind(int index, double value) argument
1176 bind(int index, float value) argument
1186 bind(int index, long value) argument
1196 bind(int index, int value) argument
1206 bind(int index, boolean value) argument
1225 bind(int index, byte[] value) argument
1239 bind(int index, String value) argument
[all...]
H A DCursorWindow.java79 private static native boolean nativePutBlob(long windowPtr, byte[] value, int row, int column); argument
80 private static native boolean nativePutString(long windowPtr, String value, int row, int column); argument
81 private static native boolean nativePutLong(long windowPtr, long value, int row, int column); argument
82 private static native boolean nativePutDouble(long windowPtr, double value, int row, int column); argument
100 /** The cursor window size. resource xml file specifies the value in kB.
380 * Gets the value of the field at the specified row and column index as a byte array.
387 * is the blob value.</li>
390 * string value.</li>
398 * @return The value of the field as a byte array.
410 * Gets the value o
605 putBlob(byte[] value, int row, int column) argument
622 putString(String value, int row, int column) argument
639 putLong(long value, int row, int column) argument
657 putDouble(double value, int row, int column) argument
[all...]
/frameworks/base/core/java/android/util/
H A DTypedValue.java23 * Container for a dynamically typed data value. Primarily used with
27 /** The value contains no data. */
44 * dimension value. */
50 /** Identifies the start of plain integer values. Any type value
52 * <var>data</var> field holds a generic integer value. */
145 * {@link #TYPE_NULL} data indicating the value was not specified.
149 * {@link #TYPE_NULL} data indicating the value was explicitly set to null.
156 * If {@link #density} is equal to this value, then the density should be
157 * treated as the system's default density value: {@link DisplayMetrics#DENSITY_DEFAULT}.
162 * If {@link #density} is equal to this value, the
345 applyDimension(int unit, float value, DisplayMetrics metrics) argument
[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);
180 public static float norm(float start, float stop, float value) { argument
181 return (value - start) / (stop - start);
184 public static float map(float minStart, float minStop, float maxStart, float maxStop, float value) { argument
185 return maxStart + (maxStart - maxStop) * ((value
[all...]
H A DJsonReader.java29 * encoded value as a stream of tokens. This stream includes both literal
33 * Within JSON objects, name/value pairs are represented by a single token.
58 * skip the value's nested tokens, which may otherwise conflict.
60 * <p>If a value may be null, you should first check using {@link #peek()}.
212 * #advance}. If null, peek() will assign a value.
220 * For the next literal value, we may have the text value, or the position
223 private String value; field in class:JsonReader
255 * was the omitted value.
258 * <li>Name/value pair
[all...]
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
63 * Special hash array value that indicates the container is immutable.
120 // Key not found -- return negative value indicating where a
158 // Key not found -- return negative value indicating where a
346 int indexOfValue(Object value) { argument
349 if (value == null) {
357 if (value.equals(array[i])) {
366 * Check whether a value exists in the array. This requires a linear search
369 * @param value Th
373 containsValue(Object value) argument
413 setValueAt(int index, V value) argument
437 put(K key, V value) argument
493 append(K key, V value) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DSparseWeakArray.java147 * Adds a mapping from the specified key to the specified value,
151 public void put(long key, E value) { argument
155 mValues[i] = new WeakReference(value);
161 mValues[i] = new WeakReference(value);
173 mValues = GrowingArrayUtils.insert(mValues, mSize, i, new WeakReference(value));
179 * Returns the number of key-value mappings that this SparseArray
192 * the key from the <code>index</code>th key-value mapping that this
205 * the value from the <code>index</code>th key-value mapping that this
218 * value fo
221 setValueAt(int index, E value) argument
250 indexOfValue(E value) argument
281 append(long key, E value) argument
[all...]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DStochasticLinearRankerWithPrior.java176 public boolean setModelParameter(String key, String value){ argument
178 mUseAutoAlpha = Boolean.parseBoolean(value);
180 mUsePrior = Boolean.parseBoolean(value);
182 mAlpha = Float.valueOf(value.trim()).floatValue();
184 mAutoAlpha = Float.valueOf(value.trim()).floatValue();
186 mForgetRate = Float.valueOf(value.trim()).floatValue();
188 mMinReqTrainingPair = (int) Float.valueOf(value.trim()).floatValue();
190 mUserRankerPerf = Float.valueOf(value.trim()).floatValue();
192 mPriorRankerPerf = Float.valueOf(value.trim()).floatValue();
194 mNumTrainPair = (int) Float.valueOf(value
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DContiguousFIFOAggregator.java168 final Value value = mTasks.get(hash);
169 if (value == null || task == null) {
176 value.task = task;
202 final Value value = mTasks.get(hash);
203 if (value.task == null) {
213 value.task.run();
225 final Value value = mTasks.get(hash);
226 if (value == null) {
229 final Callback<T> callback = value.callback;
260 final Value value
[all...]
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Dvlc_encode.cpp32 AVCEnc_Status se_v(AVCEncBitstream *bitstream, int value) argument
37 if (value <= 0)
39 codeNum = -value * 2;
43 codeNum = value * 2 - 1;
51 AVCEnc_Status te_v(AVCEncBitstream *bitstream, uint value, uint range) argument
57 return ue_v(bitstream, value);
61 status = BitstreamWrite1Bit(bitstream, 1 - value);
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DLayoutInflater_Delegate.java102 // massage the value to get a resource identifier out of it.
105 final String value = attrs.getAttributeValue(null, ATTR_LAYOUT);
106 if (value == null || value.length() <= 0) {
112 layout = context.getResources().getIdentifier(value.substring(1), null, null);
126 final String value = attrs.getAttributeValue(null, ATTR_LAYOUT);
127 if (value == null) {
132 + "reference. The layout ID " + value + " is not valid.");
/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...]
/frameworks/support/v4/java/android/support/v4/view/
H A DViewCompat.java299 value = {
418 void setRotation(View view, float value); argument
419 void setRotationX(View view, float value); argument
420 void setRotationY(View view, float value); argument
421 void setScaleX(View view, float value); argument
422 void setScaleY(View view, float value); argument
423 void setTranslationX(View view, float value); argument
424 void setTranslationY(View view, float value); argument
425 void setX(View view, float value); argument
426 void setY(View view, float value); argument
427 setAlpha(View view, float value) argument
428 setPivotX(View view, float value) argument
429 setPivotY(View view, float value) argument
764 setRotation(View view, float value) argument
769 setTranslationX(View view, float value) argument
774 setTranslationY(View view, float value) argument
779 setAlpha(View view, float value) argument
784 setRotationX(View view, float value) argument
789 setRotationY(View view, float value) argument
794 setScaleX(View view, float value) argument
799 setScaleY(View view, float value) argument
804 setX(View view, float value) argument
809 setY(View view, float value) argument
814 setPivotX(View view, float value) argument
819 setPivotY(View view, float value) argument
1196 setTranslationX(View view, float value) argument
1200 setTranslationY(View view, float value) argument
1204 setAlpha(View view, float value) argument
1208 setX(View view, float value) argument
1212 setY(View view, float value) argument
1216 setRotation(View view, float value) argument
1220 setRotationX(View view, float value) argument
1224 setRotationY(View view, float value) argument
1228 setScaleX(View view, float value) argument
1232 setScaleY(View view, float value) argument
1236 setPivotX(View view, float value) argument
1240 setPivotY(View view, float value) argument
2597 setTranslationX(View view, float value) argument
2613 setTranslationY(View view, float value) argument
2629 setAlpha(View view, @FloatRange(from=0.0, to=1.0) float value) argument
2643 setX(View view, float value) argument
2657 setY(View view, float value) argument
2669 setRotation(View view, float value) argument
2682 setRotationX(View view, float value) argument
2695 setRotationY(View view, float value) argument
2707 setScaleX(View view, float value) argument
2719 setScaleY(View view, float value) argument
2745 setPivotX(View view, float value) argument
2772 setPivotY(View view, float value) argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DAAMRAssembler.cpp33 static bool GetAttribute(const char *s, const char *key, AString *value) { argument
34 value->clear();
45 value->setTo(&s[keyLen + 1], len - keyLen - 1);
49 value->setTo("1");
67 AString value; local
68 CHECK(GetAttribute(params.c_str(), "octet-align", &value) && value == "1");
69 CHECK(!GetAttribute(params.c_str(), "crc", &value) || value == "0");
70 CHECK(!GetAttribute(params.c_str(), "interleaving", &value));
[all...]
/frameworks/base/tools/aapt2/
H A DResourceValues.h36 * A resource value. This is an all-encompassing representation
46 * Whether this value is weak and can be overridden without
58 * Returns the source where this value was defined.
93 * Clone the value.
98 * Human readable printout of this value.
117 * A resource item with a single value. This maps to android::ResTable_entry.
167 * An ID resource. Has no real value, just a place holder.
182 StringPool::Ref value; member in struct:aapt::RawString
192 StringPool::Ref value; member in struct:aapt::String
210 StringPool::StyleRef value; member in struct:aapt::StyledString
247 android::Res_value value; member in struct:aapt::BinaryPrimitive
261 uint32_t value; member in struct:aapt::Attribute::Symbol
280 std::unique_ptr<Item> value; member in struct:aapt::Style::Entry
331 operator <<(::std::ostream& out, const Value& value) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DResponseData.java61 int tag = 0x80 | ComprehensionTlvTag.ITEM_ID.value();
104 int tag = 0x80 | ComprehensionTlvTag.TEXT_STRING.value();
188 int tag = 0x80 | ComprehensionTlvTag.LANGUAGE.value();
226 int tag = 0x80 | CommandType.PROVIDE_LOCAL_INFORMATION.value();
268 private byte byteToBCD(int value) { argument
269 if (value < 0 && value > 99) {
270 CatLog.d(this, "Err: byteToBCD conversion Value is " + value +
275 return (byte) ((value / 10) | ((value
[all...]
/frameworks/base/services/core/java/com/android/server/policy/
H A DPolicyControl.java39 * Control by setting {@link Settings.Global.POLICY_CONTROL} to one or more name-value pairs.
48 * Separate multiple name-value pairs with ':'
115 String value = null;
117 value = Settings.Global.getStringForUser(context.getContentResolver(),
120 if (sSettingValue != null && sSettingValue.equals(value)) return;
121 setFilters(value);
122 sSettingValue = value;
124 Slog.w(TAG, "Error loading policy control, value=" + value, t);
143 private static void setFilters(String value) { argument
242 parse(String value) argument
[all...]
/frameworks/base/tools/aapt2/proto/
H A DTableProtoDeserializer.cpp39 if (!reference->id || !reference->id.value().isValid()) {
43 ResourceId id = reference->id.value();
138 if (configValue->value) {
144 configValue->value = deserializeValueFromPb(pbConfigValue.value(),
146 if (!configValue->value) {
224 std::unique_ptr<Value> value; local
226 value = deserializeItemFromPb(pbValue.item(), config, pool);
227 if (!value) {
243 symbol.value
[all...]
/frameworks/base/media/java/android/media/
H A DExifInterface.java387 // Formats for the value in IFD entry (See TIFF 6.0 spec Types page 15).
405 // Sizes of the components of each IFD value format
455 for (int value : values) {
456 buffer.putShort((short) value);
461 public static ExifAttribute createUShort(int value, ByteOrder byteOrder) { argument
462 return createUShort(new int[] {value}, byteOrder);
469 for (long value : values) {
470 buffer.putInt((int) value);
475 public static ExifAttribute createULong(long value, ByteOrder byteOrder) { argument
476 return createULong(new long[] {value}, byteOrde
489 createSLong(int value, ByteOrder byteOrder) argument
493 createByte(String value) argument
503 createString(String value) argument
519 createURational(Rational value, ByteOrder byteOrder) argument
534 createSRational(Rational value, ByteOrder byteOrder) argument
548 createDouble(double value, ByteOrder byteOrder) argument
1278 setAttribute(String tag, String value) argument
1420 updateAttribute(String tag, ExifAttribute value) argument
[all...]
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardUtils.java370 * Splits the given value into pieces using the delimiter ';' inside it.
374 public static List<String> constructListFromValue(final String value, argument
378 final int length = value.length();
380 char ch = value.charAt(i);
382 char nextCh = value.charAt(i + 1);
424 for (final String value : values) {
425 if (TextUtils.isEmpty(value)) {
428 if (!TextUtilsPort.isPrintableAsciiOnly(value)) {
457 for (final String value : values) {
458 if (TextUtils.isEmpty(value)) {
557 isV21Word(final String value) argument
595 toStringAsV30ParamValue(String value) argument
599 toStringAsV40ParamValue(String value) argument
603 toStringAsParamValue(String value, final int[] escapeIndicators) argument
706 appearsLikeAndroidVCardQuotedPrintable(String value) argument
726 parseQuotedPrintable( final String value, boolean strictLineBreaking, String sourceCharset, String targetCharset) argument
[all...]
/frameworks/av/media/libstagefright/codecs/aacdec/
H A DDrcPresModeWrap.cpp127 CDrcPresModeWrapper::setParam(const DRC_PRES_MODE_WRAP_PARAM param, const int value) argument
131 mDesTarget = value;
134 mDesAttFactor = value;
137 mDesBoostFactor = value;
140 mDesHeavy = value;
143 mEncoderTarget = value;
/frameworks/base/core/java/android/bluetooth/
H A DIBluetoothGattCallback.aidl34 void onCharacteristicRead(in String address, in int status, in int handle, in byte[] value);
37 void onDescriptorRead(in String address, in int status, in int handle, in byte[] value);
39 void onNotify(in String address, in int handle, in byte[] value);
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableArray.java61 public void marshal(T value, ByteBuffer buffer) { argument
62 int length = Array.getLength(value);
64 marshalArrayElement(mComponentMarshaler, buffer, value, i);
124 public int calculateMarshalSize(T value) { argument
126 int arrayLength = Array.getLength(value);
135 size += calculateElementMarshalSize(mComponentMarshaler, value, i);
H A DMarshalQueryableEnum.java34 * by providing a manual value with {@link #registerEnumValues}.</p>
59 public void marshal(T value, ByteBuffer buffer) { argument
60 int enumValue = getEnumValue(value);
67 "Enum value %x too large to fit into unsigned byte", enumValue));
84 // get the unsigned byte value; avoid sign extension
143 * <p>This enables get/set to correctly marshal the enum into a value that is C-compatible.</p>
162 * Get the numeric value from an enum.
164 * <p>This is usually the same as the ordinal value for
184 * Finds the enum corresponding to it's numeric value. Opposite of {@link #getEnumValue} method.
187 * @param value Th
190 getEnumFromValue(Class<T> enumType, int value) argument
[all...]
H A DMarshalQueryableRange.java76 public void marshal(Range<T> value, ByteBuffer buffer) { argument
77 mNestedTypeMarshaler.marshal(value.getLower(), buffer);
78 mNestedTypeMarshaler.marshal(value.getUpper(), buffer);
111 public int calculateMarshalSize(Range<T> value) { argument
117 int lowerSize = mNestedTypeMarshaler.calculateMarshalSize(value.getLower());
118 int upperSize = mNestedTypeMarshaler.calculateMarshalSize(value.getUpper());

Completed in 2527 milliseconds

<<11121314151617181920>>